{"version":3,"sources":["../../src/reviews-v2-review-request-review-requests.http.ts","../../src/reviews-v2-review-request-review-requests.types.ts","../../src/reviews-v2-review-request-review-requests.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 { 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\nconst TRANSFORM_PATHS_0 = [\n  { path: 'reviewRequest.createdDate' },\n  { path: 'reviewRequest.updatedDate' },\n  { path: 'reviewRequest.sendDate' },\n];\nconst TRANSFORM_PATHS_1 = [\n  { path: 'reviewRequests.createdDate' },\n  { path: 'reviewRequests.updatedDate' },\n  { path: 'reviewRequests.sendDate' },\n];\nconst TRANSFORM_PATHS_2 = [\n  { path: 'results.item.createdDate' },\n  { path: 'results.item.updatedDate' },\n  { path: 'results.item.sendDate' },\n];\n\nfunction resolveComWixpressCritiqueRequestsV2ReviewRequestsV2Url(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/reviews-review-requests/v1/bulk/review-requests',\n        destPath: '/v1/bulk/review-requests',\n      },\n      {\n        srcPath: '/_api/reviews-review-requests/v1/review-requests',\n        destPath: '/v1/review-requests',\n      },\n      {\n        srcPath: '/_api/reviews-review-requests/v2/bulk/review-requests',\n        destPath: '/v2/bulk/review-requests',\n      },\n      {\n        srcPath: '/_api/reviews-review-requests/v2/review-requests',\n        destPath: '/v2/review-requests',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/reviews-review-requests/v1/review-requests',\n        destPath: '/v1/review-requests',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/reviews/v2/review-requests',\n        destPath: '/v2/review-requests',\n      },\n      {\n        srcPath: '/reviews/v2/bulk/review-requests',\n        destPath: '/v2/bulk/review-requests',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/reviews/v2/review-requests',\n        destPath: '/v2/review-requests',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/reviews/v2/review-requests',\n        destPath: '/v2/review-requests',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_reviews_review-requests';\n\n/**\n * Creates a new review request.\n *\n * A review request is a request sent to a customer to solicit a review for a specific order or specific items.\n * This method requires either the `order.id` or `items.catalogItemId`.\n *\n * You must pass either an order ID or at least 1 item ID:\n * + **Order ID only:** The review request automatically includes the 5 most expensive items from the order.\n * + **Item IDs only:** The review request includes only the specified items.\n * + **Order ID and item IDs:** The review request includes the specified items from the given order.\n */\nexport function createReviewRequest(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __createReviewRequest({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: TRANSFORM_PATHS_0,\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.reviews.v2.review_request',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.critique.requests.v2.ReviewRequestsV2.CreateReviewRequest',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressCritiqueRequestsV2ReviewRequestsV2Url({\n        protoPath: '/v2/review-requests',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_0,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createReviewRequest;\n}\n\n/** Creates a bulk review requests. */\nexport function bulkCreateReviewRequests(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkCreateReviewRequests({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: TRANSFORM_PATHS_1,\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.reviews.v2.review_request',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.critique.requests.v2.ReviewRequestsV2.BulkCreateReviewRequests',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressCritiqueRequestsV2ReviewRequestsV2Url({\n        protoPath: '/v2/bulk/review-requests/create',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_2,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __bulkCreateReviewRequests;\n}\n\n/** Retrieves a review request. */\nexport function getReviewRequest(payload: object): RequestOptionsFactory<any> {\n  function __getReviewRequest({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.reviews.v2.review_request',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wixpress.critique.requests.v2.ReviewRequestsV2.GetReviewRequest',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressCritiqueRequestsV2ReviewRequestsV2Url({\n        protoPath: '/v2/review-requests/{reviewRequestId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_0,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getReviewRequest;\n}\n\n/**\n * Deletes a review request.\n *\n * Only review requests with `status` set to `CANCELED` can be deleted.\n */\nexport function deleteReviewRequest(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __deleteReviewRequest({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.reviews.v2.review_request',\n      method: 'DELETE' as any,\n      methodFqn:\n        'com.wixpress.critique.requests.v2.ReviewRequestsV2.DeleteReviewRequest',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressCritiqueRequestsV2ReviewRequestsV2Url({\n        protoPath: '/v2/review-requests/{reviewRequestId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __deleteReviewRequest;\n}\n\n/**\n * Creates a query to retrieve a list of review requests.\n *\n * The `queryReviewRequests()` function builds a query to retrieve a list of review requests and returns a `ReviewRequestsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/reviews/review-requests/review-requests-query-builder/find) function.\n *\n * You can refine the query by chaining `ReviewRequestsQueryBuilder` functions onto the query. `ReviewRequestsQueryBuilder` functions enable you to sort, filter, and control the results that `queryReviewRequests()` returns.\n *\n * `queryReviewRequests()` runs with the following `ReviewRequestsBuilder` default that you can override:\n * + `ascending(\"_createdDate\")`\n *\n * The functions that are chained to `queryReviewRequests()` are applied in the order they are called. For example, if you apply `in(\"items.catalogItemId\")` and then `(\"requestedBy.appId\")`, the results are sorted first by the `\"items.catalogItem\"`, and then, if there are multiple results with the same `\"items.catalogItem\"`, the items are sorted by `\"appId\"`.\n *\n * The following `ReviewRequestsQueryBuilder` functions are supported for the `queryReviewRequests()` function. For a full description of the review request object, see the object returned for the [`items`](https://dev.wix.com/docs/sdk/backend-modules/reviews/review-requests/review-requests-query-result/items) property in `ReviewRequestsQueryResult`.\n */\nexport function queryReviewRequests(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __queryReviewRequests({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.reviews.v2.review_request',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.critique.requests.v2.ReviewRequestsV2.QueryReviewRequests',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressCritiqueRequestsV2ReviewRequestsV2Url({\n        protoPath: '/v2/review-requests/query',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: TRANSFORM_PATHS_1,\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __queryReviewRequests;\n}\n\n/**\n * Counts review requests, given the specified filtering.\n *\n * For a list of supported filters, see the table in [`queryReviewRequests`](https://dev.wix.com/docs/sdk/backend-modules/reviews/review-requests/query-review-requests).\n *\n * If a filter isn't passed in the request, the method returns the count of all review requests.\n */\nexport function countReviewRequests(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __countReviewRequests({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.reviews.v2.review_request',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.critique.requests.v2.ReviewRequestsV2.CountReviewRequests',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressCritiqueRequestsV2ReviewRequestsV2Url({\n        protoPath: '/v2/review-requests/count',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __countReviewRequests;\n}\n\n/**\n * Cancels review requests given specified filters.\n *\n * When this method is used, a bulk job is started and the job ID is returned. The job might not complete right away, depending on its size. The job's status can be retrieved with [`getAsyncJob()`](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/get-async-job) or [`listAsyncJobItems()`](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/list-async-job-items).\n *\n * For a list of supported filters, see the table in [`queryReviewRequests`](https://dev.wix.com/docs/sdk/backend-modules/reviews/review-requests/query-review-requests).\n *\n * To check which review requests will be canceled with this filter, you can run the filter with [`queryReviewRequests()`](https://dev.wix.com/docs/sdk/backend-modules/reviews/review-requests/query-review-requests) and confirm which review requests are returned with that filter.\n */\nexport function bulkCancelReviewRequestsByFilter(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkCancelReviewRequestsByFilter({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.reviews.v2.review_request',\n      method: 'PUT' as any,\n      methodFqn:\n        'com.wixpress.critique.requests.v2.ReviewRequestsV2.BulkCancelReviewRequestsByFilter',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressCritiqueRequestsV2ReviewRequestsV2Url({\n        protoPath: '/v2/bulk/review-requests/cancel-by-filter',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __bulkCancelReviewRequestsByFilter;\n}\n","/** A review request is a request sent to a customer to solicit a review for a specific order or specific items. */\nexport interface ReviewRequest extends ReviewRequestStatusOptionsOneOf {\n  /**\n   * Info if `status` is `SENT`.\n   * @readonly\n   */\n  sentOptions?: SentOptions;\n  /**\n   * Info if `status` is `FAILED`.\n   * @readonly\n   */\n  failedOptions?: FailedOptions;\n  /**\n   * Review request ID.\n   * @format GUID\n   * @readonly\n   */\n  id?: string | null;\n  /**\n   * Revision number, which increments by 1 each time the review request is updated.\n   * To prevent conflicting changes, the current revision must be passed when updating the review request.\n   *\n   * Ignored when creating a review request.\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Date and time the review request was created.\n   * @readonly\n   */\n  createdDate?: Date | null;\n  /**\n   * Date and time the review request was last updated.\n   * @readonly\n   */\n  updatedDate?: Date | null;\n  /**\n   * Date and time the review request was, or will be, sent. This field is only informational and does not trigger a send action.\n   * @immutable\n   */\n  sendDate?: Date | null;\n  /**\n   * Name of the Wix app whose catalog the items being reviewed belong to.\n   *\n   * Supported values:\n   * + Wix Stores: `stores`\n   *\n   * Currently, only Wix Stores is fully integrated with the Wix Reviews app.\n   * @immutable\n   * @minLength 1\n   * @maxLength 100\n   */\n  namespace?: string;\n  /**\n   * Order that a review is requested for.\n   * @immutable\n   */\n  order?: Order;\n  /**\n   * Items that a review is requested for.\n   * @immutable\n   * @maxSize 5\n   */\n  items?: Item[];\n  /**\n   * Customer to send a review request to.\n   * @immutable\n   */\n  recipient?: Recipient;\n  /**\n   * Communication channel for sending the review request.\n   * @immutable\n   */\n  communicationChannel?: CommunicationChannelWithLiterals;\n  /**\n   * Review request status.\n   * @readonly\n   */\n  status?: ReviewRequestStatusWithLiterals;\n  /**\n   * ID of the automation action that triggered the review request to be created.\n   *\n   * This field is only used if a review request was created by the [automation included with Wix Reviews](https://support.wix.com/en/article/wix-stores-adding-and-setting-up-wix-reviews#step-3-optional-customize-review-requests).\n   * Also see the Automations API for more information.\n   * @immutable\n   * @format GUID\n   */\n  automationActivationId?: string | null;\n  /**\n   * ID of the user or app that generated the review request.\n   * @readonly\n   */\n  requestedBy?: IdentificationData;\n  /**\n   * Wix data extensions.\n   * @internal\n   */\n  extendedFields?: ExtendedFields;\n}\n\n/** @oneof */\nexport interface ReviewRequestStatusOptionsOneOf {\n  /**\n   * Info if `status` is `SENT`.\n   * @readonly\n   */\n  sentOptions?: SentOptions;\n  /**\n   * Info if `status` is `FAILED`.\n   * @readonly\n   */\n  failedOptions?: FailedOptions;\n}\n\nexport interface Order {\n  /**\n   * Order ID.\n   * @format GUID\n   */\n  id?: string;\n}\n\n/** Item that a review is requested for. */\nexport interface Item {\n  /**\n   * ID of the item within the catalog it belongs to.\n   *\n   * For example, `product.id` for items from the Stores Catalog API.\n   * @immutable\n   * @minLength 1\n   * @maxLength 36\n   */\n  catalogItemId?: string;\n  /**\n   * ID of the review created for this item by the review request recipient.\n   * @readonly\n   * @format GUID\n   */\n  reviewId?: string | null;\n}\n\n/** Customer to send a review request to. */\nexport interface Recipient {\n  /**\n   * Recipient contact ID. See the Contacts API for more information.\n   * @immutable\n   * @format GUID\n   */\n  contactId?: string;\n}\n\n/** Communication channel for sending the review request. */\nexport enum CommunicationChannel {\n  /** @internal */\n  UNKNOWN_COMMUNICATION_CHANNEL = 'UNKNOWN_COMMUNICATION_CHANNEL',\n  EMAIL = 'EMAIL',\n}\n\n/** @enumType */\nexport type CommunicationChannelWithLiterals = CommunicationChannel | 'EMAIL';\n\n/** Status of a review request. */\nexport enum ReviewRequestStatus {\n  /** Unknown review request status. */\n  UNKNOWN_REVIEW_REQUEST_STATUS = 'UNKNOWN_REVIEW_REQUEST_STATUS',\n  /** Review request scheduled. */\n  SCHEDULED = 'SCHEDULED',\n  /** Review request canceled. */\n  CANCELED = 'CANCELED',\n  /** Review request failed to send. */\n  FAILED = 'FAILED',\n  /** Review request sent. */\n  SENT = 'SENT',\n}\n\n/** @enumType */\nexport type ReviewRequestStatusWithLiterals =\n  | ReviewRequestStatus\n  | 'UNKNOWN_REVIEW_REQUEST_STATUS'\n  | 'SCHEDULED'\n  | 'CANCELED'\n  | 'FAILED'\n  | 'SENT';\n\n/** Info if `status` is `SENT`. */\nexport interface SentOptions {\n  /** Whether the recipient opened the review request email. */\n  opened?: boolean;\n}\n\n/** Info if `status` is `FAILED`. */\nexport interface FailedOptions {\n  /** Reason review request `status` is `FAILED`. */\n  reason?: FailureReasonWithLiterals;\n  /**\n   * Error message for review request failure.\n   * @maxLength 1000\n   */\n  message?: string | null;\n}\n\nexport enum FailureReason {\n  /** Unknown reason for review request failure. */\n  UNKNOWN_FAILURE_REASON = 'UNKNOWN_FAILURE_REASON',\n  /** Review request failed due to a failure in the activation flow. */\n  ACTIVATION_FAILED = 'ACTIVATION_FAILED',\n  /** Email bounced. */\n  BOUNCED = 'BOUNCED',\n  /**\n   * Review request failed because `deliverabilityStatus` is set to\n   * `inactiveSubscription` in the recipient's contact information.\n   */\n  SUBSCRIPTION_INACTIVE = 'SUBSCRIPTION_INACTIVE',\n}\n\n/** @enumType */\nexport type FailureReasonWithLiterals =\n  | FailureReason\n  | 'UNKNOWN_FAILURE_REASON'\n  | 'ACTIVATION_FAILED'\n  | 'BOUNCED'\n  | 'SUBSCRIPTION_INACTIVE';\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n  /**\n   * Anonymous site visitor ID.\n   * @internal\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * Member ID.\n   * @internal\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * Wix user ID.\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * Wix app ID.\n   * @format GUID\n   */\n  appId?: string;\n  /**\n   * Identity type.\n   * @readonly\n   */\n  identityType?: IdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n  /**\n   * Anonymous site visitor ID.\n   * @internal\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * Member ID.\n   * @internal\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * Wix user ID.\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * Wix app ID.\n   * @format GUID\n   */\n  appId?: string;\n}\n\nexport enum IdentityType {\n  WIX_USER = 'WIX_USER',\n  APP = 'APP',\n}\n\n/** @enumType */\nexport type IdentityTypeWithLiterals = IdentityType | 'WIX_USER' | 'APP';\n\nexport interface ExtendedFields {\n  /**\n   * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n   * The value of each key is structured according to the schema defined when the extended fields were configured.\n   *\n   * You can only access fields for which you have the appropriate permissions.\n   *\n   * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n   */\n  namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface CreateReviewRequestRequest {\n  /** Review request to create. */\n  reviewRequest: ReviewRequest;\n}\n\nexport interface CreateReviewRequestResponse {\n  /** Created review request. */\n  reviewRequest?: ReviewRequest;\n}\n\nexport interface BulkCreateReviewRequestsRequest {\n  /**\n   * ReviewRequests to be created\n   * @minSize 1\n   * @maxSize 50\n   */\n  reviewRequests: ReviewRequest[];\n  /** Whether to return the created ReviewRequest entities */\n  returnEntity?: boolean;\n}\n\nexport interface BulkCreateReviewRequestsResponse {\n  /**\n   * @minSize 1\n   * @maxSize 50\n   */\n  results?: BulkReviewRequestResult[];\n  bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ItemMetadata {\n  /**\n   * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\n   * @format GUID\n   */\n  id?: string | null;\n  /** Index of the item within the request array. Allows for correlation between request and response items. */\n  originalIndex?: number;\n  /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n  success?: boolean;\n  /** Details about the error in case of failure. */\n  error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n  /** Error code. */\n  code?: string;\n  /** Description of the error. */\n  description?: string;\n  /** Data related to the error. */\n  data?: Record<string, any> | null;\n}\n\nexport interface BulkReviewRequestResult {\n  /** Defined in wix.commons */\n  itemMetadata?: ItemMetadata;\n  /** Only exists if `returnEntity` was set to true in the request */\n  item?: ReviewRequest;\n}\n\nexport interface BulkActionMetadata {\n  /** Number of items that were successfully processed. */\n  totalSuccesses?: number;\n  /** Number of items that couldn't be processed. */\n  totalFailures?: number;\n  /** Number of failures without details because detailed failure threshold was exceeded. */\n  undetailedFailures?: number;\n}\n\nexport interface GetReviewRequestRequest {\n  /**\n   * ID of the review request to retrieve.\n   * @format GUID\n   */\n  reviewRequestId: string;\n}\n\nexport interface GetReviewRequestResponse {\n  /** Retrieved review request. */\n  reviewRequest?: ReviewRequest;\n}\n\nexport interface DeleteReviewRequestRequest {\n  /**\n   * ID of the review request to delete.\n   * @format GUID\n   */\n  reviewRequestId: string;\n}\n\nexport interface DeleteReviewRequestResponse {}\n\nexport interface QueryReviewRequestsRequest {\n  /** Query options. */\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   * @maxSize 5\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  /**\n   * Name of the field to sort by.\n   * @maxLength 512\n   */\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   * Maximum number of items to return in the results.\n   * @max 100\n   */\n  limit?: number | null;\n  /**\n   * Pointer to the next or previous page in the list of results.\n   *\n   * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n   * Not relevant for the first request.\n   * @maxLength 16000\n   */\n  cursor?: string | null;\n}\n\nexport interface QueryReviewRequestsResponse {\n  /** Retrieved review requests. */\n  reviewRequests?: ReviewRequest[];\n  /** Paging metadata. */\n  pagingMetadata?: CursorPagingMetadata;\n}\n\n/** This is the preferred message for cursor-paging enabled services */\nexport interface CursorPagingMetadata {\n  /** Number of items returned in the response. */\n  count?: number | null;\n  /** Cursor strings that point to the next page, previous page, or both. */\n  cursors?: Cursors;\n  /**\n   * Whether there are more pages to retrieve following the current page.\n   *\n   * + `true`: Another page of results can be retrieved.\n   * + `false`: This is the last page.\n   */\n  hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n  /**\n   * Cursor string pointing to the next page in the list of results.\n   * @maxLength 16000\n   */\n  next?: string | null;\n  /**\n   * Cursor pointing to the previous page in the list of results.\n   * @maxLength 16000\n   */\n  prev?: string | null;\n}\n\nexport interface CountReviewRequestsRequest {\n  /**\n   * Filter object in the following format:\n   * `\"filter\" : {\n   * \"fieldName1\": \"value1\",\n   * \"fieldName2\":{\"$operator\":\"value2\"}\n   * }`\n   */\n  filter?: Record<string, any> | null;\n}\n\nexport interface CountReviewRequestsResponse {\n  /** Number of review requests. */\n  count?: number;\n}\n\nexport interface BulkCancelReviewRequestsByFilterRequest {\n  /**\n   * Filter object in the following format:\n   * `\"filter\" : {\n   * \"fieldName1\": \"value1\",\n   * \"fieldName2\":{\"$operator\":\"value2\"}\n   * }`\n   */\n  filter?: Record<string, any> | null;\n}\n\nexport interface BulkCancelReviewRequestsByFilterResponse {\n  /**\n   * Bulk job ID. The job's status can be retrieved with Get Bulk Job or List Bulk Jobs.\n   * @format GUID\n   */\n  jobId?: string;\n}\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  /**\n   * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n   * @internal\n   */\n  triggeredByUndelete?: boolean | null;\n  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n  restoreInfo?: RestoreInfo;\n  /**\n   * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n   * @internal\n   */\n  additionalMetadataAsJson?: string | null;\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   * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n   * wont populate it / have any reference to it in the API.\n   * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n   * the developer should send only the new (current) entity.\n   * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n   * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n   * @internal\n   * @deprecated\n   */\n  previousEntityAsJson?: string | null;\n  /**\n   * Map of fully qualified field paths to their previous values for fields that changed.\n   * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n   * @internal\n   */\n  modifiedFields?: Record<string, any>;\n  /**\n   * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n   * @internal\n   */\n  additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n  /**\n   * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n   * @internal\n   */\n  movedToTrash?: boolean | null;\n  /** Entity that was deleted. */\n  deletedEntityAsJson?: string | null;\n  /**\n   * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n   * @internal\n   */\n  additionalMetadataAsJson?: 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?: WebhooksIdentificationData;\n  /** Stringify payload. */\n  data?: string;\n  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface WebhooksIdentificationData\n  extends WebhooksIdentificationDataIdOneOf {\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 WebhooksIdentificationDataIdOneOf {\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 CreateReviewRequestApplicationErrors =\n  | {\n      code?: 'INITIATOR_IDENTITY_NOT_SUPPORTED';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'ORDER_IS_EMPTY';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'ORDER_NOT_FOUND';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'EITHER_ORDER_OR_ITEMS_REQUIRED';\n      description?: string;\n      data?: Record<string, any>;\n    };\n/** @docsIgnore */\nexport type CountReviewRequestsApplicationErrors = {\n  code?: 'TOO_MANY_TO_COUNT';\n  description?: string;\n  data?: Record<string, any>;\n};\n","import * as ambassadorWixReviewsV2ReviewRequest from './reviews-v2-review-request-review-requests.http.js';\nimport * as ambassadorWixReviewsV2ReviewRequestTypes from './reviews-v2-review-request-review-requests.types.js';\nimport * as ambassadorWixReviewsV2ReviewRequestUniversalTypes from './reviews-v2-review-request-review-requests.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 createReviewRequest(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixReviewsV2ReviewRequestUniversalTypes.CreateReviewRequestRequest,\n  ambassadorWixReviewsV2ReviewRequestTypes.CreateReviewRequestRequest,\n  ambassadorWixReviewsV2ReviewRequestUniversalTypes.CreateReviewRequestResponse,\n  ambassadorWixReviewsV2ReviewRequestTypes.CreateReviewRequestResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixReviewsV2ReviewRequest.createReviewRequest(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/review-requests',\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 bulkCreateReviewRequests(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixReviewsV2ReviewRequestUniversalTypes.BulkCreateReviewRequestsRequest,\n  ambassadorWixReviewsV2ReviewRequestTypes.BulkCreateReviewRequestsRequest,\n  ambassadorWixReviewsV2ReviewRequestUniversalTypes.BulkCreateReviewRequestsResponse,\n  ambassadorWixReviewsV2ReviewRequestTypes.BulkCreateReviewRequestsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixReviewsV2ReviewRequest.bulkCreateReviewRequests(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/bulk/review-requests/create',\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 getReviewRequest(): __PublicMethodMetaInfo<\n  'GET',\n  { reviewRequestId: string },\n  ambassadorWixReviewsV2ReviewRequestUniversalTypes.GetReviewRequestRequest,\n  ambassadorWixReviewsV2ReviewRequestTypes.GetReviewRequestRequest,\n  ambassadorWixReviewsV2ReviewRequestUniversalTypes.GetReviewRequestResponse,\n  ambassadorWixReviewsV2ReviewRequestTypes.GetReviewRequestResponse\n> {\n  const payload = { reviewRequestId: ':reviewRequestId' } as any;\n\n  const getRequestOptions =\n    ambassadorWixReviewsV2ReviewRequest.getReviewRequest(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/review-requests/{reviewRequestId}',\n    pathParams: { reviewRequestId: 'reviewRequestId' },\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 deleteReviewRequest(): __PublicMethodMetaInfo<\n  'DELETE',\n  { reviewRequestId: string },\n  ambassadorWixReviewsV2ReviewRequestUniversalTypes.DeleteReviewRequestRequest,\n  ambassadorWixReviewsV2ReviewRequestTypes.DeleteReviewRequestRequest,\n  ambassadorWixReviewsV2ReviewRequestUniversalTypes.DeleteReviewRequestResponse,\n  ambassadorWixReviewsV2ReviewRequestTypes.DeleteReviewRequestResponse\n> {\n  const payload = { reviewRequestId: ':reviewRequestId' } as any;\n\n  const getRequestOptions =\n    ambassadorWixReviewsV2ReviewRequest.deleteReviewRequest(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/review-requests/{reviewRequestId}',\n    pathParams: { reviewRequestId: 'reviewRequestId' },\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 queryReviewRequests(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixReviewsV2ReviewRequestUniversalTypes.QueryReviewRequestsRequest,\n  ambassadorWixReviewsV2ReviewRequestTypes.QueryReviewRequestsRequest,\n  ambassadorWixReviewsV2ReviewRequestUniversalTypes.QueryReviewRequestsResponse,\n  ambassadorWixReviewsV2ReviewRequestTypes.QueryReviewRequestsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixReviewsV2ReviewRequest.queryReviewRequests(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/review-requests/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 countReviewRequests(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixReviewsV2ReviewRequestUniversalTypes.CountReviewRequestsRequest,\n  ambassadorWixReviewsV2ReviewRequestTypes.CountReviewRequestsRequest,\n  ambassadorWixReviewsV2ReviewRequestUniversalTypes.CountReviewRequestsResponse,\n  ambassadorWixReviewsV2ReviewRequestTypes.CountReviewRequestsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixReviewsV2ReviewRequest.countReviewRequests(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/review-requests/count',\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 bulkCancelReviewRequestsByFilter(): __PublicMethodMetaInfo<\n  'PUT',\n  {},\n  ambassadorWixReviewsV2ReviewRequestUniversalTypes.BulkCancelReviewRequestsByFilterRequest,\n  ambassadorWixReviewsV2ReviewRequestTypes.BulkCancelReviewRequestsByFilterRequest,\n  ambassadorWixReviewsV2ReviewRequestUniversalTypes.BulkCancelReviewRequestsByFilterResponse,\n  ambassadorWixReviewsV2ReviewRequestTypes.BulkCancelReviewRequestsByFilterResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixReviewsV2ReviewRequest.bulkCancelReviewRequestsByFilter(\n      payload\n    );\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'PUT',\n    path: '/v2/bulk/review-requests/cancel-by-filter',\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 {\n  ReviewRequest as ReviewRequestOriginal,\n  ReviewRequestStatusOptionsOneOf as ReviewRequestStatusOptionsOneOfOriginal,\n  Order as OrderOriginal,\n  Item as ItemOriginal,\n  Recipient as RecipientOriginal,\n  CommunicationChannel as CommunicationChannelOriginal,\n  CommunicationChannelWithLiterals as CommunicationChannelWithLiteralsOriginal,\n  ReviewRequestStatus as ReviewRequestStatusOriginal,\n  ReviewRequestStatusWithLiterals as ReviewRequestStatusWithLiteralsOriginal,\n  SentOptions as SentOptionsOriginal,\n  FailedOptions as FailedOptionsOriginal,\n  FailureReason as FailureReasonOriginal,\n  FailureReasonWithLiterals as FailureReasonWithLiteralsOriginal,\n  IdentificationData as IdentificationDataOriginal,\n  IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n  IdentityType as IdentityTypeOriginal,\n  IdentityTypeWithLiterals as IdentityTypeWithLiteralsOriginal,\n  ExtendedFields as ExtendedFieldsOriginal,\n  CreateReviewRequestRequest as CreateReviewRequestRequestOriginal,\n  CreateReviewRequestResponse as CreateReviewRequestResponseOriginal,\n  BulkCreateReviewRequestsRequest as BulkCreateReviewRequestsRequestOriginal,\n  BulkCreateReviewRequestsResponse as BulkCreateReviewRequestsResponseOriginal,\n  ItemMetadata as ItemMetadataOriginal,\n  ApplicationError as ApplicationErrorOriginal,\n  BulkReviewRequestResult as BulkReviewRequestResultOriginal,\n  BulkActionMetadata as BulkActionMetadataOriginal,\n  GetReviewRequestRequest as GetReviewRequestRequestOriginal,\n  GetReviewRequestResponse as GetReviewRequestResponseOriginal,\n  DeleteReviewRequestRequest as DeleteReviewRequestRequestOriginal,\n  DeleteReviewRequestResponse as DeleteReviewRequestResponseOriginal,\n  QueryReviewRequestsRequest as QueryReviewRequestsRequestOriginal,\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  QueryReviewRequestsResponse as QueryReviewRequestsResponseOriginal,\n  CursorPagingMetadata as CursorPagingMetadataOriginal,\n  Cursors as CursorsOriginal,\n  CountReviewRequestsRequest as CountReviewRequestsRequestOriginal,\n  CountReviewRequestsResponse as CountReviewRequestsResponseOriginal,\n  BulkCancelReviewRequestsByFilterRequest as BulkCancelReviewRequestsByFilterRequestOriginal,\n  BulkCancelReviewRequestsByFilterResponse as BulkCancelReviewRequestsByFilterResponseOriginal,\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  WebhooksIdentificationData as WebhooksIdentificationDataOriginal,\n  WebhooksIdentificationDataIdOneOf as WebhooksIdentificationDataIdOneOfOriginal,\n  WebhookIdentityType as WebhookIdentityTypeOriginal,\n  WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n  AccountInfo as AccountInfoOriginal,\n  CreateReviewRequestApplicationErrors as CreateReviewRequestApplicationErrorsOriginal,\n  CountReviewRequestsApplicationErrors as CountReviewRequestsApplicationErrorsOriginal,\n} from './reviews-v2-review-request-review-requests.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,4BAA4B;AAAA,EACpC,EAAE,MAAM,4BAA4B;AAAA,EACpC,EAAE,MAAM,yBAAyB;AACnC;AACA,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,6BAA6B;AAAA,EACrC,EAAE,MAAM,6BAA6B;AAAA,EACrC,EAAE,MAAM,0BAA0B;AACpC;AACA,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,2BAA2B;AAAA,EACnC,EAAE,MAAM,2BAA2B;AAAA,EACnC,EAAE,MAAM,wBAAwB;AAClC;AAEA,SAAS,wDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AA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AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,uBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACgC,oBAAoB,OAAO;AAEjE,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,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,oCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACgC;AAAA,IAClC;AAAA,EACF;AAEF,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,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","CommunicationChannel","ReviewRequestStatus","FailureReason","IdentityType","SortOrder","WebhookIdentityType","createReviewRequest","bulkCreateReviewRequests","getReviewRequest","deleteReviewRequest","queryReviewRequests","countReviewRequests","bulkCancelReviewRequestsByFilter"]}