{"version":3,"sources":["../../../src/badges-v4-badge-badges-v-2.http.ts","../../../src/badges-v4-badge-badges-v-2.types.ts","../../../src/badges-v4-badge-badges-v-2.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 resolveWixBadgesV4BadgesUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'www.wixapis.com': [\n      {\n        srcPath: '/badges/v4/badges',\n        destPath: '/v4/badges',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/badges/v4/badges',\n        destPath: '/v4/badges',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/badges/v4/badges',\n        destPath: '/v4/badges',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/badges/v4/badges',\n        destPath: '/v4/badges',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_members_badges-v-2';\n\n/** Creates a badge. */\nexport function createBadge(payload: object): RequestOptionsFactory<any> {\n  function __createBadge({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'badge.createdDate' },\n          { path: 'badge.updatedDate' },\n          { path: 'badge.icon.urlExpirationDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.badges.v4.badge',\n      method: 'POST' as any,\n      methodFqn: 'wix.badges.v4.Badges.CreateBadge',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixBadgesV4BadgesUrl({\n        protoPath: '/v4/badges',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'badge.createdDate' },\n              { path: 'badge.updatedDate' },\n              { path: 'badge.icon.urlExpirationDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createBadge;\n}\n\n/** Retrieves a badge by ID. */\nexport function getBadge(payload: object): RequestOptionsFactory<any> {\n  function __getBadge({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.badges.v4.badge',\n      method: 'GET' as any,\n      methodFqn: 'wix.badges.v4.Badges.GetBadge',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixBadgesV4BadgesUrl({\n        protoPath: '/v4/badges/{badgeId}',\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: 'badge.createdDate' },\n              { path: 'badge.updatedDate' },\n              { path: 'badge.icon.urlExpirationDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getBadge;\n}\n\n/**\n * Creates a query to retrieve a list of badges.\n *\n * The `queryBadges()` method builds a query to retrieve a list of badges and returns a `BadgesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `BadgesQueryBuilder` methods onto the query. `BadgesQueryBuilder` methods enable you to sort, filter, and control the results `queryBadges()` returns.\n *\n * `queryBadges()` runs with these `BadgesQueryBuilder` defaults, which you can override:\n *\n * - limit(50)\n * - descending(\"_createdDate\")\n *\n * The methods that are chained to `queryBadges()` are applied in the order they're called. For example, if you apply ascending('title') and then descending('id'), the results are sorted first by the title, and then, if there are multiple results with the same title, the items are sorted by ID.\n */\nexport function queryBadges(payload: object): RequestOptionsFactory<any> {\n  function __queryBadges({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.badges.v4.badge',\n      method: 'POST' as any,\n      methodFqn: 'wix.badges.v4.Badges.QueryBadges',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixBadgesV4BadgesUrl({\n        protoPath: '/v4/badges/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: 'badges.createdDate' },\n              { path: 'badges.updatedDate' },\n              { path: 'badges.icon.urlExpirationDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __queryBadges;\n}\n\n/** Updates a badge. */\nexport function updateBadge(payload: object): RequestOptionsFactory<any> {\n  function __updateBadge({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFieldMaskToRESTFieldMask,\n        paths: [{ path: 'fieldMask' }],\n      },\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'badge.createdDate' },\n          { path: 'badge.updatedDate' },\n          { path: 'badge.icon.urlExpirationDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.badges.v4.badge',\n      method: 'PATCH' as any,\n      methodFqn: 'wix.badges.v4.Badges.UpdateBadge',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixBadgesV4BadgesUrl({\n        protoPath: '/v4/badges/{badge.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: 'badge.createdDate' },\n              { path: 'badge.updatedDate' },\n              { path: 'badge.icon.urlExpirationDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updateBadge;\n}\n\n/**\n * Deletes a badge.\n *\n * Deleting a badge will remove it from all members who currently have it assigned.\n */\nexport function deleteBadge(payload: object): RequestOptionsFactory<any> {\n  function __deleteBadge({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.badges.v4.badge',\n      method: 'DELETE' as any,\n      methodFqn: 'wix.badges.v4.Badges.DeleteBadge',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixBadgesV4BadgesUrl({\n        protoPath: '/v4/badges/{badgeId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __deleteBadge;\n}\n\n/**\n * Updates the display order of badges.\n *\n * Provide an ordered array of badge IDs to set their display sequence.\n *\n * This affects how badges appear to site members and in the site dashboard.\n * @deprecated It has been replaced with wix.badges.v4.Badges.MoveBadge(), and will be removed on 2026-07-01.\n */\nexport function updateBadgesDisplayOrder(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __updateBadgesDisplayOrder({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.badges.v4.badge',\n      method: 'POST' as any,\n      methodFqn: 'wix.badges.v4.Badges.UpdateBadgesDisplayOrder',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixBadgesV4BadgesUrl({\n        protoPath: '/v4/badges/order',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'badges.createdDate' },\n              { path: 'badges.updatedDate' },\n              { path: 'badges.icon.urlExpirationDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updateBadgesDisplayOrder;\n}\n\n/**\n * Moves a badge to a specific position in the display order.\n *\n * You can position a badge first, last, or immediately after another badge.\n *\n * This affects how badges appear to site members and in the site dashboard.\n */\nexport function moveBadge(payload: object): RequestOptionsFactory<any> {\n  function __moveBadge({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.badges.v4.badge',\n      method: 'POST' as any,\n      methodFqn: 'wix.badges.v4.Badges.MoveBadge',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixBadgesV4BadgesUrl({\n        protoPath: '/v4/badges/{badgeId}/move',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __moveBadge;\n}\n","/**\n * A badge is a visible label displayed on a site member's profile.\n *\n * Site owners can create badges to categorize members and optionally grant them special permissions to access specific pages.\n *\n * Badges are managed separately from their assignment to members. To assign badges to members, use the [Badge Assignments](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/activity/badge-assignments/introduction) API.\n *\n * For more information, see [Creating and Managing Member Badges](https://support.wix.com/en/article/site-members-creating-and-managing-member-badges).\n */\nexport interface Badge {\n  /**\n   * Badge ID.\n   * @format GUID\n   * @readonly\n   */\n  id?: string | null;\n  /**\n   * Revision number, which increments by 1 each time the badge is updated. To prevent conflicting changes, the current revision must be passed when updating the badge.\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Badge title displayed on the member's profile.\n   * @minLength 1\n   * @maxLength 50\n   */\n  title?: string | null;\n  /**\n   * Badge description explaining its purpose or criteria for earning it.\n   * @maxLength 1500\n   */\n  description?: string | null;\n  /**\n   * Badge background color in hexadecimal RGB format.\n   * @format COLOR_HEX\n   */\n  backgroundColor?: string | null;\n  /**\n   * Badge text color in hexadecimal RGB format.\n   * @format COLOR_HEX\n   */\n  textColor?: string | null;\n  /**\n   * Badge icon image.\n   *\n   * Any image format is accepted with automatic conversion and resizing handled by the system.\n   * SVG format is recommended as it is resolution independent and looks great at any scale.\n   */\n  icon?: Image;\n  /**\n   * Whether the badge grants special permissions to access specific members-only pages.\n   *\n   * When `true`, members with this badge receive special permissions.\n   * Site owners can configure these permissions in the site dashboard. For more information, see [Creating and Managing Member Badges](https://support.wix.com/en/article/site-members-creating-and-managing-member-badges).\n   */\n  permissionsEnabled?: boolean | null;\n  /**\n   * URL-friendly slug for the badge, automatically generated from the title.\n   *\n   * Generated by converting the title to lowercase, replacing spaces with hyphens, and removing special characters.\n   * @readonly\n   * @minLength 1\n   * @maxLength 255\n   */\n  slug?: string | null;\n  /**\n   * Date and time the badge was created.\n   * @readonly\n   */\n  createdDate?: Date | null;\n  /**\n   * Date and time the badge was last updated.\n   * @readonly\n   */\n  updatedDate?: Date | null;\n}\n\nexport interface Image {\n  /** [WixMedia](https://support.wix.com/en/article/wix-media-about-the-media-manager) image ID. If you pass the ID, you don't need to pass `url`. */\n  id?: string;\n  /** Image URL. Could be any image from the internet. */\n  url?: string;\n  /**\n   * Original image height.\n   * @readonly\n   */\n  height?: number;\n  /**\n   * Original image width.\n   * @readonly\n   */\n  width?: number;\n  /** Image alt text. */\n  altText?: string | null;\n  /**\n   * Image filename. Only applicable when passing `id`.\n   * @readonly\n   */\n  filename?: string | null;\n}\n\nexport interface MigrationBadgeUpdated {\n  migrationBadge?: MigrationBadge;\n}\n\nexport interface MigrationBadge {\n  /**\n   * Badge ID.\n   * @format GUID\n   * @readonly\n   */\n  id?: string | null;\n  /**\n   * Revision number, which increments by 1 each time the Badge is updated.\n   * To prevent conflicting changes,\n   * the current revision must be passed when updating the Badge.\n   * Ignored when creating a Badge.\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Text displayed on the badge in the Wix UI.\n   * @minLength 1\n   * @maxLength 50\n   */\n  title?: string | null;\n  /**\n   * Badge description.\n   * @maxLength 1500\n   */\n  description?: string | null;\n  /**\n   * Badge background color in hexadecimal RGB format.\n   * Uppercase letters only.\n   * Example: `#FFFFFF`.\n   * @format COLOR_HEX\n   */\n  backgroundColor?: string | null;\n  /**\n   * Badge text color in hexadecimal RGB format.\n   * Uppercase letters only.\n   * Example: `#C81B53`.\n   * @format COLOR_HEX\n   */\n  textColor?: string | null;\n  /**\n   * Badge icon image.\n   * _Recommended_ to use `SVG` image format as it is resolution independent and looks great at any scale.\n   */\n  icon?: Image;\n  /**\n   * Whether the badge has special permissions\n   * to access specific members-only pages.\n   * When `true`, members with the badge receive special permissions,\n   * and site contributors can\n   * [manage badge permissions](https://support.wix.com/en/article/setting-permissions-for-a-member-badge)\n   * in the site dashboard.\n   * When `false`, members with the badge receive no special permissions.\n   */\n  permissionsEnabled?: boolean | null;\n  /**\n   * Slugified name. Used to represent the badge in a URL.\n   * @readonly\n   * @minLength 1\n   * @maxLength 255\n   */\n  slug?: string | null;\n  /**\n   * Date and time the Badge was created.\n   * @readonly\n   */\n  createdDate?: Date | null;\n  /**\n   * Date and time the Badge was last updated.\n   * @readonly\n   */\n  updatedDate?: Date | null;\n  /**\n   * Order rank of the badge in the site\n   * @readonly\n   */\n  orderRank?: number | null;\n}\n\nexport interface MigrationBadgeCreated {\n  migrationBadge?: MigrationBadge;\n}\n\nexport interface CreateBadgeRequest {\n  /** Badge to create. */\n  badge: Badge;\n}\n\nexport interface CreateBadgeResponse {\n  /** Created badge. */\n  badge?: Badge;\n}\n\nexport interface GetBadgeRequest {\n  /**\n   * Badge ID.\n   * @format GUID\n   */\n  badgeId: string;\n}\n\nexport interface GetBadgeResponse {\n  /** Retrieved badge. */\n  badge?: Badge;\n}\n\nexport interface QueryBadgesRequest {\n  /** Query options including filters, sorting, and paging. */\n  query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\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   * Filter object in the following format:\n   * `\"filter\" : {\n   * \"fieldName1\": \"value1\",\n   * \"fieldName2\":{\"$operator\":\"value2\"}\n   * }`\n   * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n   */\n  filter?: Record<string, any> | null;\n  /**\n   * Sort object in the following format:\n   * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n   */\n  sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\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  /** Name of the field to sort by. */\n  fieldName?: string;\n  /** Sort order. */\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 CursorPaging {\n  /**\n   * Number of items to load.\n   * @max 100\n   */\n  limit?: number | null;\n  /**\n   * Pointer to the next or previous page in the list of results.\n   *\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 QueryBadgesResponse {\n  /** List of badges matching the query criteria. */\n  badges?: Badge[];\n  /** Paging metadata for retrieving additional results. */\n  pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n  /** Number of items returned in the response. */\n  count?: number | null;\n  /** Offset that was requested. */\n  cursors?: Cursors;\n  /**\n   * Indicates if there are more results after the current page.\n   * If `true`, another page of results can be retrieved.\n   * If `false`, this is the last page.\n   */\n  hasNext?: boolean | null;\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 QueryBadgesLegacyRequest {\n  /** Filter criteria */\n  filter?: Record<string, any> | null;\n  /**\n   * Sorting criteria\n   * @maxSize 1000\n   */\n  sort?: Sorting[];\n  /** Result paging data */\n  paging?: Paging;\n}\n\nexport interface Paging {\n  /** Number of items to load. */\n  limit?: number | null;\n  /** Number of items to skip in the current sort order. */\n  offset?: number | null;\n}\n\nexport interface QueryBadgesLegacyResponse {\n  /** List of sorted badges in a site that satisfy filter and paging */\n  badges?: Badge[];\n  /** Total count of badges in a site that satisfy given filter */\n  metadata?: PagingMetadata;\n}\n\nexport interface PagingMetadata {\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. */\n  total?: number | null;\n  /** Flag that indicates the server failed to calculate the `total` field. */\n  tooManyToCount?: boolean | null;\n}\n\nexport interface UpdateBadgeRequest {\n  /** Badge to update. Must include ID and revision to prevent conflicts. */\n  badge: Badge;\n}\n\nexport interface UpdateBadgeResponse {\n  /** Updated badge with incremented revision and updated timestamp. */\n  badge?: Badge;\n}\n\nexport interface DeleteBadgeRequest {\n  /**\n   * Badge ID.\n   * @format GUID\n   */\n  badgeId: string;\n}\n\nexport interface DeleteBadgeResponse {}\n\nexport interface UpdateBadgesDisplayOrderRequest {\n  /**\n   * Ordered list of badge IDs.\n   * @format GUID\n   * @minSize 1\n   * @maxSize 100\n   */\n  ids: string[];\n}\n\nexport interface UpdateBadgesDisplayOrderResponse {\n  /** Badges in their new display order. */\n  badges?: Badge[];\n}\n\nexport interface MoveBadgeRequest {\n  /**\n   * ID of the badge to move.\n   * @format GUID\n   */\n  badgeId: string;\n  /** Target position for the badge. */\n  position?: PositionWithLiterals;\n  /**\n   * ID of the badge after which to position your badge.\n   * @format GUID\n   */\n  moveAfterBadgeId?: string | null;\n}\n\nexport enum Position {\n  /** Position the badge at the end of the display sequence. */\n  LAST = 'LAST',\n  /** Position the badge at the beginning of the display sequence. */\n  FIRST = 'FIRST',\n  /**\n   * Position the badge after another specific badge.\n   * In this case you need to specify `moveAfterBadgeId`.\n   */\n  AFTER = 'AFTER',\n}\n\n/** @enumType */\nexport type PositionWithLiterals = Position | 'LAST' | 'FIRST' | 'AFTER';\n\nexport interface MoveBadgeResponse {}\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 Empty {}\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 UpdateBadgeValidationErrors = {\n  ruleName?: 'BADGE_NOT_PROVIDED';\n};\n","import * as ambassadorWixBadgesV4Badge from './badges-v4-badge-badges-v-2.http.js';\nimport * as ambassadorWixBadgesV4BadgeTypes from './badges-v4-badge-badges-v-2.types.js';\nimport * as ambassadorWixBadgesV4BadgeUniversalTypes from './badges-v4-badge-badges-v-2.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 createBadge(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixBadgesV4BadgeUniversalTypes.CreateBadgeRequest,\n  ambassadorWixBadgesV4BadgeTypes.CreateBadgeRequest,\n  ambassadorWixBadgesV4BadgeUniversalTypes.CreateBadgeResponse,\n  ambassadorWixBadgesV4BadgeTypes.CreateBadgeResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions = ambassadorWixBadgesV4Badge.createBadge(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: '/v4/badges',\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 getBadge(): __PublicMethodMetaInfo<\n  'GET',\n  { badgeId: string },\n  ambassadorWixBadgesV4BadgeUniversalTypes.GetBadgeRequest,\n  ambassadorWixBadgesV4BadgeTypes.GetBadgeRequest,\n  ambassadorWixBadgesV4BadgeUniversalTypes.GetBadgeResponse,\n  ambassadorWixBadgesV4BadgeTypes.GetBadgeResponse\n> {\n  const payload = { badgeId: ':badgeId' } as any;\n\n  const getRequestOptions = ambassadorWixBadgesV4Badge.getBadge(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: '/v4/badges/{badgeId}',\n    pathParams: { badgeId: 'badgeId' },\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 queryBadges(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixBadgesV4BadgeUniversalTypes.QueryBadgesRequest,\n  ambassadorWixBadgesV4BadgeTypes.QueryBadgesRequest,\n  ambassadorWixBadgesV4BadgeUniversalTypes.QueryBadgesResponse,\n  ambassadorWixBadgesV4BadgeTypes.QueryBadgesResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions = ambassadorWixBadgesV4Badge.queryBadges(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: '/v4/badges/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 updateBadge(): __PublicMethodMetaInfo<\n  'PATCH',\n  { badgeId: string },\n  ambassadorWixBadgesV4BadgeUniversalTypes.UpdateBadgeRequest,\n  ambassadorWixBadgesV4BadgeTypes.UpdateBadgeRequest,\n  ambassadorWixBadgesV4BadgeUniversalTypes.UpdateBadgeResponse,\n  ambassadorWixBadgesV4BadgeTypes.UpdateBadgeResponse\n> {\n  const payload = { badge: { id: ':badgeId' } } as any;\n\n  const getRequestOptions = ambassadorWixBadgesV4Badge.updateBadge(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: '/v4/badges/{badge.id}',\n    pathParams: { badgeId: 'badgeId' },\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 deleteBadge(): __PublicMethodMetaInfo<\n  'DELETE',\n  { badgeId: string },\n  ambassadorWixBadgesV4BadgeUniversalTypes.DeleteBadgeRequest,\n  ambassadorWixBadgesV4BadgeTypes.DeleteBadgeRequest,\n  ambassadorWixBadgesV4BadgeUniversalTypes.DeleteBadgeResponse,\n  ambassadorWixBadgesV4BadgeTypes.DeleteBadgeResponse\n> {\n  const payload = { badgeId: ':badgeId' } as any;\n\n  const getRequestOptions = ambassadorWixBadgesV4Badge.deleteBadge(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: '/v4/badges/{badgeId}',\n    pathParams: { badgeId: 'badgeId' },\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 updateBadgesDisplayOrder(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixBadgesV4BadgeUniversalTypes.UpdateBadgesDisplayOrderRequest,\n  ambassadorWixBadgesV4BadgeTypes.UpdateBadgesDisplayOrderRequest,\n  ambassadorWixBadgesV4BadgeUniversalTypes.UpdateBadgesDisplayOrderResponse,\n  ambassadorWixBadgesV4BadgeTypes.UpdateBadgesDisplayOrderResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixBadgesV4Badge.updateBadgesDisplayOrder(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: '/v4/badges/order',\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 moveBadge(): __PublicMethodMetaInfo<\n  'POST',\n  { badgeId: string },\n  ambassadorWixBadgesV4BadgeUniversalTypes.MoveBadgeRequest,\n  ambassadorWixBadgesV4BadgeTypes.MoveBadgeRequest,\n  ambassadorWixBadgesV4BadgeUniversalTypes.MoveBadgeResponse,\n  ambassadorWixBadgesV4BadgeTypes.MoveBadgeResponse\n> {\n  const payload = { badgeId: ':badgeId' } as any;\n\n  const getRequestOptions = ambassadorWixBadgesV4Badge.moveBadge(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: '/v4/badges/{badgeId}/move',\n    pathParams: { badgeId: 'badgeId' },\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  Badge as BadgeOriginal,\n  Image as ImageOriginal,\n  MigrationBadgeUpdated as MigrationBadgeUpdatedOriginal,\n  MigrationBadge as MigrationBadgeOriginal,\n  MigrationBadgeCreated as MigrationBadgeCreatedOriginal,\n  CreateBadgeRequest as CreateBadgeRequestOriginal,\n  CreateBadgeResponse as CreateBadgeResponseOriginal,\n  GetBadgeRequest as GetBadgeRequestOriginal,\n  GetBadgeResponse as GetBadgeResponseOriginal,\n  QueryBadgesRequest as QueryBadgesRequestOriginal,\n  CursorQuery as CursorQueryOriginal,\n  CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n  Sorting as SortingOriginal,\n  SortOrder as SortOrderOriginal,\n  SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n  CursorPaging as CursorPagingOriginal,\n  QueryBadgesResponse as QueryBadgesResponseOriginal,\n  CursorPagingMetadata as CursorPagingMetadataOriginal,\n  Cursors as CursorsOriginal,\n  QueryBadgesLegacyRequest as QueryBadgesLegacyRequestOriginal,\n  Paging as PagingOriginal,\n  QueryBadgesLegacyResponse as QueryBadgesLegacyResponseOriginal,\n  PagingMetadata as PagingMetadataOriginal,\n  UpdateBadgeRequest as UpdateBadgeRequestOriginal,\n  UpdateBadgeResponse as UpdateBadgeResponseOriginal,\n  DeleteBadgeRequest as DeleteBadgeRequestOriginal,\n  DeleteBadgeResponse as DeleteBadgeResponseOriginal,\n  UpdateBadgesDisplayOrderRequest as UpdateBadgesDisplayOrderRequestOriginal,\n  UpdateBadgesDisplayOrderResponse as UpdateBadgesDisplayOrderResponseOriginal,\n  MoveBadgeRequest as MoveBadgeRequestOriginal,\n  Position as PositionOriginal,\n  PositionWithLiterals as PositionWithLiteralsOriginal,\n  MoveBadgeResponse as MoveBadgeResponseOriginal,\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  Empty as EmptyOriginal,\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  UpdateBadgeValidationErrors as UpdateBadgeValidationErrorsOrigin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;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,aAOd;AACA,QAAM,UAAU,EAAE,SAAS,WAAW;AAEtC,QAAM,oBAA+C,UAAU,OAAO;AAEtE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,SAAS,UAAU;AAAA,IACjC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","SortOrder","Position","WebhookIdentityType","createBadge","getBadge","queryBadges","updateBadge","deleteBadge","updateBadgesDisplayOrder","moveBadge"]}