import { CreatePolicyRequest as CreatePolicyRequest$1, CreatePolicyResponse as CreatePolicyResponse$1, GetPolicyRequest as GetPolicyRequest$1, GetPolicyResponse as GetPolicyResponse$1, UpdatePolicyRequest as UpdatePolicyRequest$1, UpdatePolicyResponse as UpdatePolicyResponse$1 } from './index.typings.js'; import '@wix/sdk-types'; /** Policy is the main entity of OrderPacingPolicies that can be used for lorem ipsum dolor */ interface Policy { /** * The policy's id * @format GUID */ id?: string | null; /** * Current state of this policy. * Each time the policy is modified, its `revision` changes. * For an update operation to succeed, you MUST pass the latest revision */ revision?: string | null; /** The active state of this policy - is it enabled or not */ enabled?: boolean; /** * The location id this policy is related to * @format GUID */ locationId?: string | null; /** * The pacing rules this policy should enforce * @minSize 1 * @maxSize 1 */ rules?: PolicyRule[]; /** Extended fields. */ extendedFields?: ExtendedFields; } interface PolicyRule { /** * The volume limit * @min 1 */ volumeLimit?: number; /** Should the volume limit include contactless dine-in orders. */ includeContactlessDineinOrders?: boolean; /** * A list of weekly time intervals in which the policy should be enforced. * An empty list means that the enforcement times are during the opening hours of the restaurant. */ enforcementTimes?: WeeklyTimeInterval[]; } interface WeeklyTimeInterval { /** * The minute of the week the interval starts * @max 10080 */ minuteOfWeek?: number; /** * The duration in minutes of the interval, starting from the minute_of_week * @min 1 * @max 10080 */ durationInMinutes?: number; } interface ExtendedFields { /** * Extended field data. Each key corresponds to the namespace of the app that created the extended fields. * The value of each key is structured according to the schema defined when the extended fields were configured. * * You can only access fields for which you have the appropriate permissions. * * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields). */ namespaces?: Record>; } interface CreatePolicyRequest { /** The policy to be created */ policy: Policy; } interface CreatePolicyResponse { /** The created Policy */ policy?: Policy; } interface GetPolicyRequest { /** * The location_id the policy belongs to * @format GUID */ locationId?: string | null; } interface GetPolicyResponse { /** The retrieved Policy */ policy?: Policy; } interface UpdatePolicyRequest { /** Policy to be updated, may be partial */ policy: Policy; } interface UpdatePolicyResponse { /** The updated Policy */ policy?: Policy; } type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function createPolicy(): __PublicMethodMetaInfo<'POST', {}, CreatePolicyRequest$1, CreatePolicyRequest, CreatePolicyResponse$1, CreatePolicyResponse>; declare function getPolicy(): __PublicMethodMetaInfo<'GET', {}, GetPolicyRequest$1, GetPolicyRequest, GetPolicyResponse$1, GetPolicyResponse>; declare function updatePolicy(): __PublicMethodMetaInfo<'POST', { policyId: string; }, UpdatePolicyRequest$1, UpdatePolicyRequest, UpdatePolicyResponse$1, UpdatePolicyResponse>; export { type __PublicMethodMetaInfo, createPolicy, getPolicy, updatePolicy };