{"version":3,"sources":["../../src/events-v2-policy-policies.http.ts","../../src/events-v2-policy-policies.types.ts","../../src/events-v2-policy-policies.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixEventsV2PolicyManagementUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    _: [\n      {\n        srcPath: '/_api/events-policies',\n        destPath: '',\n      },\n    ],\n    'api._api_base_domain_': [\n      {\n        srcPath: '/events-policies',\n        destPath: '',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/events-policies',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/events-policies',\n        destPath: '',\n      },\n      {\n        srcPath: '/events/v2/policies',\n        destPath: '/v2/policies',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/events-policies',\n        destPath: '',\n      },\n    ],\n    'editor.wixapps.net': [\n      {\n        srcPath: '/_api/events-policies',\n        destPath: '',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/events-policies',\n        destPath: '',\n      },\n    ],\n    'events.wixapps.net': [\n      {\n        srcPath: '/_api/events-policies',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_events_policies';\n\n/**\n * Creates a policy.\n *\n *\n * <!--\n * >  Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.\n * -->\n *\n * The `createPolicy()` function returns a Promise that resolves to the newly-created policy.\n *\n * You can create up to 3 policies per event. If you try to create more than 3, you'll get the \"Maximum number of policies for the event has been reached\" error.\n */\nexport function createPolicy(payload: object): RequestOptionsFactory<any> {\n  function __createPolicy({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [{ path: 'policy.createdDate' }, { path: 'policy.updatedDate' }],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.events.v2.policy',\n      method: 'POST' as any,\n      methodFqn: 'wix.events.v2.PolicyManagement.CreatePolicy',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEventsV2PolicyManagementUrl({\n        protoPath: '/v2/policies',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'policy.createdDate' },\n              { path: 'policy.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createPolicy;\n}\n\n/**\n * Updates a policy.\n *\n * <!--\n * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.\n * -->\n *\n * The `updatePolicy()` function returns a Promise that resolves to the newly-updated policy.\n *\n * Each time the policy is updated, `revision` increments by 1. The existing `revision` must be included when updating the policy. This ensures you're working with the latest policy and prevents unintended overwrites.\n */\nexport function updatePolicy(payload: object): RequestOptionsFactory<any> {\n  function __updatePolicy({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFieldMaskToRESTFieldMask,\n        paths: [{ path: 'mask' }],\n      },\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [{ path: 'policy.createdDate' }, { path: 'policy.updatedDate' }],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.events.v2.policy',\n      method: 'PATCH' as any,\n      methodFqn: 'wix.events.v2.PolicyManagement.UpdatePolicy',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEventsV2PolicyManagementUrl({\n        protoPath: '/v2/policies/{policy.id}',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'policy.createdDate' },\n              { path: 'policy.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updatePolicy;\n}\n\n/**\n * Permanently deletes a policy.\n *\n *\n * <!--\n * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.\n * -->\n *\n * The `deletePolicy()` function returns a Promise that resolves when the specified policy is deleted.\n *\n * Deleted policies are not returned by the `getPolicy()` or `queryPolicies()` functions.\n */\nexport function deletePolicy(payload: object): RequestOptionsFactory<any> {\n  function __deletePolicy({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.events.v2.policy',\n      method: 'DELETE' as any,\n      methodFqn: 'wix.events.v2.PolicyManagement.DeletePolicy',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEventsV2PolicyManagementUrl({\n        protoPath: '/v2/policies/{policyId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __deletePolicy;\n}\n\n/**\n * Creates a query to retrieve a list of policies, given the provided paging and filter.\n *\n *\n * The `queryPolicies()` function builds a query to retrieve a list of policies and returns a [PoliciesQueryBuilder](https://www.wix.com/velo/reference/wix-events-v2/policies/policiesquerybuilder) object.\n *\n * The returned object contains the query definition which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-events-v2/policies/policiesquerybuilder/find) function.\n *\n * You can refine the query by chaining `PoliciesQueryBuilder` functions onto the query. `PoliciesQueryBuilder` functions enable you to sort, filter and control the results that `PoliciesQueryBuilder.find()` returns.\n *\n * The query runs with the following `PoliciesQueryBuilder` defaults that you can override:\n *\n * [`limit`](https://www.wix.com/velo/reference/wix-events-v2/policies/policiesquerybuilder/limit): `50`\n * [`descending`](https://www.wix.com/velo/reference/wix-events-v2/policies/policiesquerybuilder/descending): `_createdDate`\n *\n * The functions that are chained to `queryPolicies()` are applied in the order they are called. For example, if you sort on the `_createdDate` property in ascending order and then on the id property in descending order, the results are sorted by the created date and then, if there are multiple results with the same date, the items are sorted by the id.\n *\n * The table below shows which `PoliciesQueryBuilder` functions are supported for `queryPoliciesGuests()`. You can only use one filter function for each property. If a property is used in more than one filter, only the first filter will work.\n */\nexport function queryPolicies(payload: object): RequestOptionsFactory<any> {\n  function __queryPolicies({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.events.v2.policy',\n      method: 'POST' as any,\n      methodFqn: 'wix.events.v2.PolicyManagement.QueryPolicies',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEventsV2PolicyManagementUrl({\n        protoPath: '/v2/policies/query',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'policies.createdDate' },\n              { path: 'policies.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __queryPolicies;\n}\n\n/**\n * Changes policy order in an event dashboard and agreement checkbox on the checkout form.\n * For example, if we have 3 policies in the list, after using this function the 3rd policy will become the 1st, and other policies will move by 1 position. By default, the policies are arranged by the created date in descending order.\n *\n * >  **Note**: it is possible to use both `beforePolicyId` and `afterPolicyId` at the same time but only the last one defined will be executed.\n *\n * <!--\n * >  Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.\n * -->\n *\n * The `reorderEventPolicies()` function returns a Promise that resolves to the newly-reordered policy.\n */\nexport function reorderEventPolicies(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __reorderEventPolicies({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.events.v2.policy',\n      method: 'POST' as any,\n      methodFqn: 'wix.events.v2.PolicyManagement.ReorderEventPolicies',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEventsV2PolicyManagementUrl({\n        protoPath: '/v2/policies/reorder',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'policies.createdDate' },\n              { path: 'policies.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __reorderEventPolicies;\n}\n\n/**\n * Retrieves a policy by ID.\n *\n *\n * The `getPolicy()` function returns a Promise that resolves to a policy whose ID matches the given ID.\n */\nexport function getPolicy(payload: object): RequestOptionsFactory<any> {\n  function __getPolicy({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.events.v2.policy',\n      method: 'GET' as any,\n      methodFqn: 'wix.events.v2.PolicyManagement.GetPolicy',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixEventsV2PolicyManagementUrl({\n        protoPath: '/v2/policies/{policyId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'policy.createdDate' },\n              { path: 'policy.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getPolicy;\n}\n","/**\n * A Policy is a set of terms and conditions attached to a specific event and shown during RSVP or checkout.\n *\n * You can use Policies to communicate refund, cancellation, and ticket-transfer rules by defining a policy name and body that attendees acknowledge.\n */\nexport interface Policy {\n  /**\n   * Policy ID.\n   * @format GUID\n   * @readonly\n   */\n  id?: string | null;\n  /**\n   * Revision number, which increments by 1 each time the policy is updated.\n   *\n   * To prevent conflicting changes, the current revision must be used when updating a policy.\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Date and time the policy was created in `yyyy-mm-ddThh:mm:sssZ` format.\n   * @readonly\n   */\n  createdDate?: Date | null;\n  /**\n   * Date and time the policy was updated in `yyyy-mm-ddThh:mm:sssZ` format.\n   * @readonly\n   */\n  updatedDate?: Date | null;\n  /**\n   * Policy name that is visible in the dashboard and checkout form.\n   *\n   * Min: 1 character  <br/>\n   * Max: 40 characters\n   * @minLength 1\n   * @maxLength 40\n   */\n  name?: string;\n  /**\n   * Policy body. Usually contains various terms and conditions.\n   *\n   * Min: 1 character\n   * Max: 50,000 characters\n   *\n   * <b>Note:</b> You can format text using various HTML tags such as `<p>`, `<b>`, `<ul>`, etc.\n   * @minLength 1\n   * @maxLength 50000\n   */\n  body?: string;\n  /**\n   * ID of the event to which the policy belongs.\n   * @format GUID\n   * @immutable\n   */\n  eventId?: string;\n}\n\nexport interface CreatePolicyRequest {\n  /** Policy info. */\n  policy: Policy;\n}\n\nexport interface CreatePolicyResponse {\n  /** Created policy. */\n  policy?: Policy;\n}\n\nexport interface UpdatePolicyRequest {\n  /** Policy info to update. */\n  policy: Policy;\n}\n\nexport interface UpdatePolicyResponse {\n  /** Updated policy. */\n  policy?: Policy;\n}\n\nexport interface UpdatePolicySortIndexRequest {\n  /**\n   * ID of the policy.\n   * @format GUID\n   */\n  policyId?: string;\n  /** Current revision number of the policy. */\n  revision?: string;\n  /** Index to sort of a policy. */\n  sortIndex?: number;\n}\n\nexport interface UpdatePolicySortIndexResponse {\n  /** Updated policy. */\n  policy?: Policy;\n}\n\nexport interface DeletePolicyRequest {\n  /**\n   * ID of the policy to delete.\n   * @format GUID\n   */\n  policyId: string;\n}\n\nexport interface DeletePolicyResponse {}\n\nexport interface QueryPoliciesRequest {\n  /** Query options. See [API Query Langauge](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details. */\n  query: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n  /** Pagination options. */\n  paging?: Paging;\n  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n  cursorPaging?: CursorPaging;\n  /** Filter object in the following format: <br/> `\"filter\" : { \"fieldName1\": \"value1\", \"fieldName2\":{\"$operator\":\"value2\"} }`. <br/> <br/> **Example:** <br/> `\"filter\" : { \"id\": \"2224a9d1-79e6-4549-a5c5-bf7ce5aac1a5\", \"revision\": {\"$ne\":\"1\"} }` <br/> <br/> See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/policy-v2/filter-and-sort) for more information. */\n  filter?: Record<string, any> | null;\n  /** Sort object in the following format: <br/> `[{\"fieldName\":\"sortField1\"},{\"fieldName\":\"sortField2\",\"direction\":\"DESC\"}]` <br/> <br/> **Example:** <br/> `[{\"fieldName\":\"createdDate\",\"direction\":\"DESC\"}]` <br/> <br/> See [supported fields](https://dev.wix.com/api/rest/wix-events/policy-v2/filter-and-sort) for more information. */\n  sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n  /** Pagination options. */\n  paging?: Paging;\n  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n  cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n  /**\n   * Name of the field to sort by.\n   * @maxLength 100\n   */\n  fieldName?: string;\n  /** Sort order (ASC/DESC). Defaults to ASC */\n  order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n  ASC = 'ASC',\n  DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n  /** Number of items to load per page. */\n  limit?: number | null;\n  /** Number of items to skip in the current sort order. */\n  offset?: number | null;\n}\n\nexport interface CursorPaging {\n  /**\n   * Number of items to load per page.\n   * @max 100\n   */\n  limit?: number | null;\n  /**\n   * Pointer to the next or previous page in the list of results.\n   * You can get the relevant cursor token\n   * from the `pagingMetadata` object in the previous call's response.\n   * Not relevant for the first request.\n   */\n  cursor?: string | null;\n}\n\nexport interface QueryPoliciesResponse {\n  /** List of policies. */\n  policies?: Policy[];\n  /** Metadata for the paginated results. */\n  metadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n  /** Number of items returned in the response. */\n  count?: number | null;\n  /** Offset that was requested. */\n  offset?: number | null;\n  /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n  total?: number | null;\n  /** Flag that indicates the server failed to calculate the `total` field. */\n  tooManyToCount?: boolean | null;\n  /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n  cursors?: Cursors;\n}\n\nexport interface Cursors {\n  /** Cursor pointing to next page in the list of results. */\n  next?: string | null;\n  /** Cursor pointing to previous page in the list of results. */\n  prev?: string | null;\n}\n\nexport interface ReorderEventPoliciesRequest\n  extends ReorderEventPoliciesRequestReferencePolicyOneOf {\n  /**\n   * Move the given policy before this specified policy.\n   * @format GUID\n   */\n  beforePolicyId?: string;\n  /**\n   * Move the given policy after this specified policy.\n   * @format GUID\n   */\n  afterPolicyId?: string;\n  /**\n   * Event ID to which the policy belongs.\n   * @format GUID\n   */\n  eventId: string;\n  /**\n   * ID of the policy to reorder.\n   * @format GUID\n   */\n  policyId: string;\n}\n\n/** @oneof */\nexport interface ReorderEventPoliciesRequestReferencePolicyOneOf {\n  /**\n   * Move the given policy before this specified policy.\n   * @format GUID\n   */\n  beforePolicyId?: string;\n  /**\n   * Move the given policy after this specified policy.\n   * @format GUID\n   */\n  afterPolicyId?: string;\n}\n\nexport interface ReorderEventPoliciesResponse {\n  /** Policies in the new order. */\n  policies?: Policy[];\n}\n\nexport interface GetPolicyRequest {\n  /**\n   * ID of the policy to retrieve.\n   * @format GUID\n   */\n  policyId: string;\n}\n\nexport interface GetPolicyResponse {\n  /** Retrieved policy. */\n  policy?: Policy;\n}\n\nexport interface EventCopied {\n  /** Event created timestamp in ISO UTC format. */\n  timestamp?: Date | null;\n  /**\n   * Event ID.\n   * @format GUID\n   */\n  eventId?: string;\n  /** Event location. */\n  location?: Location;\n  /** Event schedule configuration. */\n  scheduleConfig?: ScheduleConfig;\n  /** Event title. */\n  title?: string;\n  /**\n   * Event creator user ID.\n   * @format GUID\n   */\n  userId?: string | null;\n  /** Event status. */\n  status?: EventStatusWithLiterals;\n  /**\n   * Instance ID. Indicates the original app instance which current event was derived from.\n   * @format GUID\n   */\n  derivedFromInstanceId?: string | null;\n  /**\n   * Event ID. Indicates the original event which current event was derived from.\n   * @format GUID\n   */\n  derivedFromEventId?: string | null;\n  /**\n   * Map of copied ticket definitions from original event.\n   * Key represents ticket def id in the original event.\n   * Value represents ticket def id in the newly created event.\n   */\n  ticketDefinitions?: Record<string, string>;\n}\n\nexport interface Location {\n  /**\n   * Location name.\n   * @maxLength 50\n   */\n  name?: string | null;\n  /** Location map coordinates. */\n  coordinates?: MapCoordinates;\n  /**\n   * Single line address representation.\n   * @maxLength 300\n   */\n  address?: string | null;\n  /** Location type. */\n  type?: LocationTypeWithLiterals;\n  /**\n   * Full address derived from formatted single line `address`.\n   * When `full_address` is used to create or update the event, deprecated `address` and `coordinates` are ignored.\n   * If provided `full_address` has empty `formatted_address` or `coordinates`, it will be auto-completed using Atlas service.\n   *\n   * Migration notes:\n   * - `full_address.formatted_address` is equivalent to `address`.\n   * - `full_address.geocode` is equivalent to `coordinates`.\n   */\n  fullAddress?: Address;\n  /**\n   * Defines event location as TBD (To Be Determined).\n   * When event location is not yet defined, `name` is displayed instead of location address.\n   * `coordinates`, `address`, `type` and `full_address` are not required when location is TBD.\n   */\n  tbd?: boolean | null;\n}\n\nexport interface MapCoordinates {\n  /**\n   * Latitude.\n   * @min -90\n   * @max 90\n   */\n  lat?: number;\n  /**\n   * Longitude.\n   * @min -180\n   * @max 180\n   */\n  lng?: number;\n}\n\nexport enum LocationType {\n  VENUE = 'VENUE',\n  ONLINE = 'ONLINE',\n}\n\n/** @enumType */\nexport type LocationTypeWithLiterals = LocationType | 'VENUE' | 'ONLINE';\n\n/** Physical address */\nexport interface Address extends AddressStreetOneOf {\n  /** a break down of the street to number and street name */\n  streetAddress?: StreetAddress;\n  /** Main address line (usually street and number) as free text */\n  addressLine?: string | null;\n  /**\n   * country code\n   * @format COUNTRY\n   */\n  country?: string | null;\n  /** subdivision (usually state or region) code according to ISO 3166-2 */\n  subdivision?: string | null;\n  /** city name */\n  city?: string | null;\n  /** zip/postal code */\n  postalCode?: string | null;\n  /** Free text providing more detailed address info. Usually contains Apt, Suite, Floor */\n  addressLine2?: string | null;\n  /** A string containing the human-readable address of this location */\n  formattedAddress?: string | null;\n  /** Free text for human-to-human textual orientation aid purposes */\n  hint?: string | null;\n  /** coordinates of the physical address */\n  geocode?: AddressLocation;\n  /** country full-name */\n  countryFullname?: string | null;\n  /**\n   * multi-level subdivisions from top to bottom\n   * @maxSize 6\n   */\n  subdivisions?: Subdivision[];\n}\n\n/** @oneof */\nexport interface AddressStreetOneOf {\n  /** a break down of the street to number and street name */\n  streetAddress?: StreetAddress;\n  /** Main address line (usually street and number) as free text */\n  addressLine?: string | null;\n}\n\nexport interface StreetAddress {\n  /** street number */\n  number?: string;\n  /** street name */\n  name?: string;\n}\n\nexport interface AddressLocation {\n  /**\n   * address latitude coordinates\n   * @min -90\n   * @max 90\n   */\n  latitude?: number | null;\n  /**\n   * address longitude coordinates\n   * @min -180\n   * @max 180\n   */\n  longitude?: number | null;\n}\n\nexport interface Subdivision {\n  /** subdivision short code */\n  code?: string;\n  /** subdivision full-name */\n  name?: string;\n}\n\nexport enum SubdivisionType {\n  UNKNOWN_SUBDIVISION_TYPE = 'UNKNOWN_SUBDIVISION_TYPE',\n  /** State */\n  ADMINISTRATIVE_AREA_LEVEL_1 = 'ADMINISTRATIVE_AREA_LEVEL_1',\n  /** County */\n  ADMINISTRATIVE_AREA_LEVEL_2 = 'ADMINISTRATIVE_AREA_LEVEL_2',\n  /** City/town */\n  ADMINISTRATIVE_AREA_LEVEL_3 = 'ADMINISTRATIVE_AREA_LEVEL_3',\n  /** Neighborhood/quarter */\n  ADMINISTRATIVE_AREA_LEVEL_4 = 'ADMINISTRATIVE_AREA_LEVEL_4',\n  /** Street/block */\n  ADMINISTRATIVE_AREA_LEVEL_5 = 'ADMINISTRATIVE_AREA_LEVEL_5',\n  /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */\n  COUNTRY = 'COUNTRY',\n}\n\n/** @enumType */\nexport type SubdivisionTypeWithLiterals =\n  | SubdivisionType\n  | 'UNKNOWN_SUBDIVISION_TYPE'\n  | 'ADMINISTRATIVE_AREA_LEVEL_1'\n  | 'ADMINISTRATIVE_AREA_LEVEL_2'\n  | 'ADMINISTRATIVE_AREA_LEVEL_3'\n  | 'ADMINISTRATIVE_AREA_LEVEL_4'\n  | 'ADMINISTRATIVE_AREA_LEVEL_5'\n  | 'COUNTRY';\n\nexport interface ScheduleConfig {\n  /**\n   * Defines event as TBD (To Be Determined) schedule.\n   * When event time is not yet defined, TBD message is displayed instead of event start and end times.\n   * `startDate`, `endDate` and `timeZoneId` are not required when schedule is TBD.\n   */\n  scheduleTbd?: boolean;\n  /**\n   * TBD message.\n   * @maxLength 100\n   */\n  scheduleTbdMessage?: string | null;\n  /** Event start timestamp. */\n  startDate?: Date | null;\n  /** Event end timestamp. */\n  endDate?: Date | null;\n  /**\n   * Event time zone ID in TZ database format, e.g., `EST`, `America/Los_Angeles`.\n   * @maxLength 100\n   */\n  timeZoneId?: string | null;\n  /** Whether end date is hidden in the formatted schedule. */\n  endDateHidden?: boolean;\n  /** Whether time zone is displayed in formatted schedule. */\n  showTimeZone?: boolean;\n  /** Event recurrences. */\n  recurrences?: Recurrences;\n}\n\nexport interface Recurrences {\n  /**\n   * Event occurrences.\n   * @maxSize 1000\n   */\n  occurrences?: Occurrence[];\n  /**\n   * Recurring event category ID.\n   * @readonly\n   */\n  categoryId?: string | null;\n  /**\n   * Recurrence status.\n   * @readonly\n   */\n  status?: StatusWithLiterals;\n}\n\nexport interface Occurrence {\n  /** Event start timestamp. */\n  startDate?: Date | null;\n  /** Event end timestamp. */\n  endDate?: Date | null;\n  /**\n   * Event time zone ID in TZ database format, e.g., `EST`, `America/Los_Angeles`.\n   * @maxLength 100\n   */\n  timeZoneId?: string | null;\n  /** Whether time zone is displayed in formatted schedule. */\n  showTimeZone?: boolean;\n}\n\nexport enum Status {\n  /** Event occurs only once. */\n  ONE_TIME = 'ONE_TIME',\n  /** Event is recurring. */\n  RECURRING = 'RECURRING',\n  /** Marks the next upcoming occurrence of the recurring event. */\n  RECURRING_NEXT = 'RECURRING_NEXT',\n  /** Marks the most recent ended occurrence of the recurring event. */\n  RECURRING_LAST_ENDED = 'RECURRING_LAST_ENDED',\n  /** Marks the most recent canceled occurrence of the recurring event. */\n  RECURRING_LAST_CANCELED = 'RECURRING_LAST_CANCELED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n  | Status\n  | 'ONE_TIME'\n  | 'RECURRING'\n  | 'RECURRING_NEXT'\n  | 'RECURRING_LAST_ENDED'\n  | 'RECURRING_LAST_CANCELED';\n\nexport enum EventStatus {\n  /** Event is public and scheduled to start */\n  SCHEDULED = 'SCHEDULED',\n  /** Event has started */\n  STARTED = 'STARTED',\n  /** Event has ended */\n  ENDED = 'ENDED',\n  /** Event was canceled */\n  CANCELED = 'CANCELED',\n}\n\n/** @enumType */\nexport type EventStatusWithLiterals =\n  | EventStatus\n  | 'SCHEDULED'\n  | 'STARTED'\n  | 'ENDED'\n  | 'CANCELED';\n\nexport interface Empty {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n  id?: string;\n  /**\n   * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n   * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n   */\n  entityFqdn?: string;\n  /**\n   * Event action name, placed at the top level to make it easier for users to dispatch messages.\n   * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n   * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n   */\n  entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n  entityAsJson?: string;\n  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n  restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n  deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n  /**\n   * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n   * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n   * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n   */\n  currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n  /** Entity that was deleted. */\n  deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n  bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n  /**\n   * App instance ID.\n   * @format GUID\n   */\n  instanceId?: string | null;\n  /**\n   * Event type.\n   * @maxLength 150\n   */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Stringify payload. */\n  data?: string;\n  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n  /** @readonly */\n  identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n}\n\nexport enum WebhookIdentityType {\n  UNKNOWN = 'UNKNOWN',\n  ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n  MEMBER = 'MEMBER',\n  WIX_USER = 'WIX_USER',\n  APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n  | WebhookIdentityType\n  | 'UNKNOWN'\n  | 'ANONYMOUS_VISITOR'\n  | 'MEMBER'\n  | 'WIX_USER'\n  | 'APP';\n\nexport interface AccountInfo {\n  /**\n   * ID of the Wix account associated with the event.\n   * @format GUID\n   */\n  accountId?: string | null;\n  /**\n   * ID of the parent Wix account. Only included when accountId belongs to a child account.\n   * @format GUID\n   */\n  parentAccountId?: string | null;\n  /**\n   * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n   * @format GUID\n   */\n  siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type CreatePolicyApplicationErrors = {\n  code?: 'POLICIES_LIMIT_REACHED';\n  description?: string;\n  data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type ReorderEventPoliciesApplicationErrors = {\n  code?: 'INVALID_REORDER_INSTRUCTION';\n  description?: string;\n  data?: Record<string, any>;\n};\n","import * as ambassadorWixEventsV2Policy from './events-v2-policy-policies.http.js';\nimport * as ambassadorWixEventsV2PolicyTypes from './events-v2-policy-policies.types.js';\nimport * as ambassadorWixEventsV2PolicyUniversalTypes from './events-v2-policy-policies.universal.js';\n\nexport type __PublicMethodMetaInfo<\n  K = string,\n  M = unknown,\n  T = unknown,\n  S = unknown,\n  Q = unknown,\n  R = unknown\n> = {\n  getUrl: (context: any) => string;\n  httpMethod: K;\n  path: string;\n  pathParams: M;\n  __requestType: T;\n  __originalRequestType: S;\n  __responseType: Q;\n  __originalResponseType: R;\n};\n\nexport function createPolicy(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixEventsV2PolicyUniversalTypes.CreatePolicyRequest,\n  ambassadorWixEventsV2PolicyTypes.CreatePolicyRequest,\n  ambassadorWixEventsV2PolicyUniversalTypes.CreatePolicyResponse,\n  ambassadorWixEventsV2PolicyTypes.CreatePolicyResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions = ambassadorWixEventsV2Policy.createPolicy(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v2/policies',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function updatePolicy(): __PublicMethodMetaInfo<\n  'PATCH',\n  { policyId: string },\n  ambassadorWixEventsV2PolicyUniversalTypes.UpdatePolicyRequest,\n  ambassadorWixEventsV2PolicyTypes.UpdatePolicyRequest,\n  ambassadorWixEventsV2PolicyUniversalTypes.UpdatePolicyResponse,\n  ambassadorWixEventsV2PolicyTypes.UpdatePolicyResponse\n> {\n  const payload = { policy: { id: ':policyId' } } as any;\n\n  const getRequestOptions = ambassadorWixEventsV2Policy.updatePolicy(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'PATCH',\n    path: '/v2/policies/{policy.id}',\n    pathParams: { policyId: 'policyId' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function deletePolicy(): __PublicMethodMetaInfo<\n  'DELETE',\n  { policyId: string },\n  ambassadorWixEventsV2PolicyUniversalTypes.DeletePolicyRequest,\n  ambassadorWixEventsV2PolicyTypes.DeletePolicyRequest,\n  ambassadorWixEventsV2PolicyUniversalTypes.DeletePolicyResponse,\n  ambassadorWixEventsV2PolicyTypes.DeletePolicyResponse\n> {\n  const payload = { policyId: ':policyId' } as any;\n\n  const getRequestOptions = ambassadorWixEventsV2Policy.deletePolicy(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'DELETE',\n    path: '/v2/policies/{policyId}',\n    pathParams: { policyId: 'policyId' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function queryPolicies(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixEventsV2PolicyUniversalTypes.QueryPoliciesRequest,\n  ambassadorWixEventsV2PolicyTypes.QueryPoliciesRequest,\n  ambassadorWixEventsV2PolicyUniversalTypes.QueryPoliciesResponse,\n  ambassadorWixEventsV2PolicyTypes.QueryPoliciesResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions = ambassadorWixEventsV2Policy.queryPolicies(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v2/policies/query',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function reorderEventPolicies(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixEventsV2PolicyUniversalTypes.ReorderEventPoliciesRequest,\n  ambassadorWixEventsV2PolicyTypes.ReorderEventPoliciesRequest,\n  ambassadorWixEventsV2PolicyUniversalTypes.ReorderEventPoliciesResponse,\n  ambassadorWixEventsV2PolicyTypes.ReorderEventPoliciesResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixEventsV2Policy.reorderEventPolicies(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v2/policies/reorder',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function getPolicy(): __PublicMethodMetaInfo<\n  'GET',\n  { policyId: string },\n  ambassadorWixEventsV2PolicyUniversalTypes.GetPolicyRequest,\n  ambassadorWixEventsV2PolicyTypes.GetPolicyRequest,\n  ambassadorWixEventsV2PolicyUniversalTypes.GetPolicyResponse,\n  ambassadorWixEventsV2PolicyTypes.GetPolicyResponse\n> {\n  const payload = { policyId: ':policyId' } as any;\n\n  const getRequestOptions = ambassadorWixEventsV2Policy.getPolicy(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'GET',\n    path: '/v2/policies/{policyId}',\n    pathParams: { policyId: 'policyId' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport {\n  Policy as PolicyOriginal,\n  CreatePolicyRequest as CreatePolicyRequestOriginal,\n  CreatePolicyResponse as CreatePolicyResponseOriginal,\n  UpdatePolicyRequest as UpdatePolicyRequestOriginal,\n  UpdatePolicyResponse as UpdatePolicyResponseOriginal,\n  UpdatePolicySortIndexRequest as UpdatePolicySortIndexRequestOriginal,\n  UpdatePolicySortIndexResponse as UpdatePolicySortIndexResponseOriginal,\n  DeletePolicyRequest as DeletePolicyRequestOriginal,\n  DeletePolicyResponse as DeletePolicyResponseOriginal,\n  QueryPoliciesRequest as QueryPoliciesRequestOriginal,\n  QueryV2 as QueryV2Original,\n  QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal,\n  Sorting as SortingOriginal,\n  SortOrder as SortOrderOriginal,\n  SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n  Paging as PagingOriginal,\n  CursorPaging as CursorPagingOriginal,\n  QueryPoliciesResponse as QueryPoliciesResponseOriginal,\n  PagingMetadataV2 as PagingMetadataV2Original,\n  Cursors as CursorsOriginal,\n  ReorderEventPoliciesRequest as ReorderEventPoliciesRequestOriginal,\n  ReorderEventPoliciesRequestReferencePolicyOneOf as ReorderEventPoliciesRequestReferencePolicyOneOfOriginal,\n  ReorderEventPoliciesResponse as ReorderEventPoliciesResponseOriginal,\n  GetPolicyRequest as GetPolicyRequestOriginal,\n  GetPolicyResponse as GetPolicyResponseOriginal,\n  EventCopied as EventCopiedOriginal,\n  Location as LocationOriginal,\n  MapCoordinates as MapCoordinatesOriginal,\n  LocationType as LocationTypeOriginal,\n  LocationTypeWithLiterals as LocationTypeWithLiteralsOriginal,\n  Address as AddressOriginal,\n  AddressStreetOneOf as AddressStreetOneOfOriginal,\n  StreetAddress as StreetAddressOriginal,\n  AddressLocation as AddressLocationOriginal,\n  Subdivision as SubdivisionOriginal,\n  SubdivisionType as SubdivisionTypeOriginal,\n  SubdivisionTypeWithLiterals as SubdivisionTypeWithLiteralsOriginal,\n  ScheduleConfig as ScheduleConfigOriginal,\n  Recurrences as RecurrencesOriginal,\n  Occurrence as OccurrenceOriginal,\n  Status as StatusOriginal,\n  StatusWithLiterals as StatusWithLiteralsOriginal,\n  EventStatus as EventStatusOriginal,\n  EventStatusWithLiterals as EventStatusWithLiteralsOriginal,\n  Empty as EmptyOriginal,\n  DomainEvent as DomainEventOriginal,\n  DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n  EntityCreatedEvent as EntityCreatedEventOriginal,\n  RestoreInfo as RestoreInfoOriginal,\n  EntityUpdatedEvent as EntityUpdatedEventOriginal,\n  EntityDeletedEvent as EntityDeletedEventOriginal,\n  ActionEvent as ActionEventOriginal,\n  MessageEnvelope as MessageEnvelopeOriginal,\n  IdentificationData as IdentificationDataOriginal,\n  IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n  WebhookIdentityType as WebhookIdentityTypeOriginal,\n  WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n  AccountInfo as AccountInfoOriginal,\n  CreatePolicyApplicationErrors as CreatePolicyApplicationErrorsOriginal,\n  ReorderEventPoliciesApplicationErrors as ReorderEventPoliciesApplicationErrorsOriginal,\n} from './events-v2-policy-policies.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,sCACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,GAAG;AAAA,MACD;AAAA,QACE,SA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,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,UAAU,WAAW;AAAA,IACnC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","SortOrder","LocationType","SubdivisionType","Status","EventStatus","WebhookIdentityType","createPolicy","updatePolicy","deletePolicy","queryPolicies","reorderEventPolicies","getPolicy"]}