{"version":3,"sources":["../../src/loyalty-referral-v1-referral-event-tracker.http.ts","../../src/loyalty-referral-v1-referral-event-tracker.types.ts","../../src/loyalty-referral-v1-referral-event-tracker.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\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\nfunction resolveWixLoyaltyReferralTrackerV1ReferralEventsUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'api._api_base_domain_': [\n      {\n        srcPath: '/referral-tracker',\n        destPath: '',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/referral-tracker',\n        destPath: '',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/referral-tracker',\n        destPath: '',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/referral-tracker',\n        destPath: '',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/referral-tracker',\n        destPath: '',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/referral-tracker',\n        destPath: '',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/referral-tracker',\n        destPath: '',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/referral-tracker',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/_api/referral-tracker',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_referral_tracker';\n\n/** Retrieves a referral event by ID. */\nexport function getReferralEvent(payload: object): RequestOptionsFactory<any> {\n  function __getReferralEvent({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.loyalty.referral.v1.referral_event',\n      method: 'GET' as any,\n      methodFqn:\n        'wix.loyalty.referral.tracker.v1.ReferralEvents.GetReferralEvent',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixLoyaltyReferralTrackerV1ReferralEventsUrl({\n        protoPath: '/v1/referral-events/{referralEventId}',\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: 'referralEvent.createdDate' },\n              { path: 'referralEvent.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getReferralEvent;\n}\n\n/**\n * Creates a query to retrieve a list of referral events.\n *\n * The `queryReferralEvents()` function builds a query to retrieve a list of referral events and returns a `ReferralEventsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the `find()` function.\n *\n * You can refine the query by chaining `ReferralEventsQueryBuilder` functions onto the query. `ReferralEventsQueryBuilder` functions enable you to sort, filter, and control the results `queryReferralEvents()` returns.\n *\n * `queryReferralEvents()` runs with these `ReferralEventsQueryBuilder` defaults, which you can override:\n *\n * - skip(0)\n * - limit(50)\n * - descending(\"_createdDate\")\n *\n * The functions that are chained to `queryReferralEvents()` are applied in the order they're called. For example, if you apply ascending('actionEvent') and then descending('rewardEvent'), the results are sorted first by the action events, and then, if there are multiple results with the same action events, the items are sorted by reward events.\n */\nexport function queryReferralEvent(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __queryReferralEvent({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.loyalty.referral.v1.referral_event',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.loyalty.referral.tracker.v1.ReferralEvents.QueryReferralEvent',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixLoyaltyReferralTrackerV1ReferralEventsUrl({\n        protoPath: '/v1/referral-events/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: 'referralEvents.createdDate' },\n              { path: 'referralEvents.updatedDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __queryReferralEvent;\n}\n\n/** Retrieves referral statistics. */\nexport function getReferralStatistics(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getReferralStatistics({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.loyalty.referral.v1.referral_event',\n      method: 'GET' as any,\n      methodFqn:\n        'wix.loyalty.referral.tracker.v1.ReferralEvents.GetReferralStatistics',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixLoyaltyReferralTrackerV1ReferralEventsUrl({\n        protoPath: '/v1/referral-statistics',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __getReferralStatistics;\n}\n\n/**\n * Retrieves a list of referring customer totals, given the provided paging, filtering, and sorting.\n *\n * To learn about working with Query endpoints, see\n * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),\n * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),\n * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).\n */\nexport function queryReferringCustomerTotals(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __queryReferringCustomerTotals({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.loyalty.referral.v1.referral_event',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.loyalty.referral.tracker.v1.ReferralEvents.QueryReferringCustomerTotals',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixLoyaltyReferralTrackerV1ReferralEventsUrl({\n        protoPath: '/v1/referring-customer-totals/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: 'referringCustomerTotals.lastSuccessfulReferral' },\n              { path: 'referringCustomerTotals.lastFriendAction' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __queryReferringCustomerTotals;\n}\n\n/**\n * Retrieves a list of referred friend actions, given the provided paging, filtering, and sorting.\n *\n * To learn about working with Query endpoints, see\n * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),\n * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),\n * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).\n */\nexport function queryReferredFriendActions(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __queryReferredFriendActions({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.loyalty.referral.v1.referral_event',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.loyalty.referral.tracker.v1.ReferralEvents.QueryReferredFriendActions',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixLoyaltyReferralTrackerV1ReferralEventsUrl({\n        protoPath: '/v1/referred-friend-actions/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: 'referredFriendActions.actionDate' },\n              { path: 'referredFriendActions.signupDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'referredFriendActions.coupon.couponSpecification.minimumSubtotal',\n              },\n              {\n                path: 'referredFriendActions.coupon.couponSpecification.fixedAmountOptions.amount',\n              },\n              {\n                path: 'referredFriendActions.coupon.couponSpecification.percentageOptions.percentage',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __queryReferredFriendActions;\n}\n","export interface ReferralEvent extends ReferralEventEventTypeOneOf {\n  /** Event triggered when a referred friend signs up. */\n  referredFriendSignupEvent?: ReferredFriendSignupEvent;\n  /** Event triggered when a referral is successful. For example, customer places and pays for an order. */\n  successfulReferralEvent?: V1SuccessfulReferralEvent;\n  /** Event triggered when an action is performed. For example, placing an order. */\n  actionEvent?: V1ActionEvent;\n  /** Event triggered when a reward is given. */\n  rewardEvent?: RewardEvent;\n  /**\n   * Referral event ID.\n   * @format GUID\n   * @readonly\n   */\n  id?: string | null;\n  /**\n   * Revision number, which increments by 1 each time the referral event is updated.\n   * To prevent conflicting changes, the current revision must be passed when updating the referral event.\n   * @immutable\n   */\n  revision?: string | null;\n  /**\n   * Date and time the referral event was created.\n   * @readonly\n   */\n  createdDate?: Date | null;\n  /**\n   * Date and time the referral event was last updated.\n   * @readonly\n   */\n  updatedDate?: Date | null;\n}\n\n/** @oneof */\nexport interface ReferralEventEventTypeOneOf {\n  /** Event triggered when a referred friend signs up. */\n  referredFriendSignupEvent?: ReferredFriendSignupEvent;\n  /** Event triggered when a referral is successful. For example, customer places and pays for an order. */\n  successfulReferralEvent?: V1SuccessfulReferralEvent;\n  /** Event triggered when an action is performed. For example, placing an order. */\n  actionEvent?: V1ActionEvent;\n  /** Event triggered when a reward is given. */\n  rewardEvent?: RewardEvent;\n}\n\nexport interface ReferredFriendSignupEvent {\n  /**\n   * ID of the referred friend.\n   * @format GUID\n   */\n  referredFriendId?: string;\n}\n\nexport interface V1SuccessfulReferralEvent {\n  /**\n   * ID of the referred friend.\n   * @format GUID\n   */\n  referredFriendId?: string;\n  /**\n   * ID of the referring customer.\n   * @format GUID\n   */\n  referringCustomerId?: string;\n}\n\nexport interface V1ActionEvent {\n  /**\n   * ID of the referred friend.\n   * @format GUID\n   */\n  referredFriendId?: string;\n  /**\n   * ID of the referring customer.\n   * @format GUID\n   */\n  referringCustomerId?: string;\n  /** Trigger for the action. */\n  trigger?: V1Trigger;\n  /** Amount associated with the action. */\n  amount?: string | null;\n  /** Currency of the amount. */\n  currency?: string | null;\n  /** ID of the associated order. */\n  orderId?: string | null;\n}\n\nexport interface V1Trigger {\n  /** ID of the app that triggered the event. */\n  appId?: string;\n  /** Type of activity that triggered the event. */\n  activityType?: string;\n}\n\nexport interface RewardEvent extends RewardEventReceiverOneOf {\n  /**\n   * ID of the rewarded referring customer.\n   * @format GUID\n   * @readonly\n   */\n  rewardedReferringCustomerId?: string;\n  /**\n   * ID of the rewarded referred friend.\n   * @format GUID\n   * @readonly\n   */\n  rewardedReferredFriendId?: string;\n  /**\n   * ID of the referral reward.\n   * @format GUID\n   */\n  referralRewardId?: string;\n  /** Type of reward. */\n  rewardType?: RewardWithLiterals;\n}\n\n/** @oneof */\nexport interface RewardEventReceiverOneOf {\n  /**\n   * ID of the rewarded referring customer.\n   * @format GUID\n   * @readonly\n   */\n  rewardedReferringCustomerId?: string;\n  /**\n   * ID of the rewarded referred friend.\n   * @format GUID\n   * @readonly\n   */\n  rewardedReferredFriendId?: string;\n}\n\nexport enum Reward {\n  /** Unknown reward. This field is not used. */\n  UNKNOWN = 'UNKNOWN',\n  /** Reward is a coupon. */\n  COUPON = 'COUPON',\n  /** Reward is loyalty points. */\n  LOYALTY_POINTS = 'LOYALTY_POINTS',\n  /** No reward. */\n  NOTHING = 'NOTHING',\n}\n\n/** @enumType */\nexport type RewardWithLiterals =\n  | Reward\n  | 'UNKNOWN'\n  | 'COUPON'\n  | 'LOYALTY_POINTS'\n  | 'NOTHING';\n\nexport interface CreateReferralEventRequest {\n  /** Referral event to create. */\n  referralEvent?: ReferralEvent;\n}\n\nexport interface CreateReferralEventResponse {\n  /** Created referral event. */\n  referralEvent?: ReferralEvent;\n}\n\nexport interface GetReferralEventRequest {\n  /**\n   * ID of the referral event to retrieve.\n   * @format GUID\n   */\n  referralEventId: string;\n}\n\nexport interface GetReferralEventResponse {\n  /** Retrieved referral event. */\n  referralEvent?: ReferralEvent;\n}\n\nexport interface QueryReferralEventRequest {\n  /** Query to filter referral events. */\n  query: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n  /**\n   * Cursor paging options.\n   *\n   * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n   */\n  cursorPaging?: CursorPaging;\n  /**\n   * Filter object.\n   *\n   * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n   */\n  filter?: Record<string, any> | null;\n  /**\n   * Sort object.\n   *\n   * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n   * @maxSize 5\n   */\n  sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n  /**\n   * Cursor paging options.\n   *\n   * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n   */\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 QueryReferralEventResponse {\n  /** List of referral events. */\n  referralEvents?: ReferralEvent[];\n  /** Metadata for the paginated results. */\n  metadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n  /** Number of items returned in current page. */\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 GetReferralStatisticsRequest {}\n\nexport interface GetReferralStatisticsResponse {\n  /** Total number of sign-ups completed by referred friends. */\n  totalSignUpsCompleted?: number;\n  /** Total number of actions completed by referred friends. */\n  totalActionsCompleted?: number;\n  /** Total amount of purchases made by referred friends. */\n  totalAmountGenerated?: string;\n}\n\nexport interface QueryReferringCustomerTotalsRequest {\n  /** Query to filter referring customer totals. */\n  query?: CursorQuery;\n  /**\n   * List of contact IDs to filter referring customer totals.\n   * @format GUID\n   */\n  contactIds?: string[];\n}\n\nexport interface QueryReferringCustomerTotalsResponse {\n  referringCustomerTotals?: ReferringCustomerTotal[];\n  /** Paging metadata. */\n  metadata?: CursorPagingMetadata;\n}\n\nexport interface ReferringCustomerTotal {\n  /**\n   * ID of the referring customer.\n   * @format GUID\n   * @readonly\n   */\n  referringCustomerId?: string;\n  /**\n   * Contact ID.\n   * @format GUID\n   * @readonly\n   */\n  contactId?: string;\n  /**\n   * Date and time of the last successful referral.\n   * @readonly\n   */\n  lastSuccessfulReferral?: Date | null;\n  /**\n   * Total number of successful referrals made by this customer.\n   * @readonly\n   */\n  totalSuccessfulReferrals?: number;\n  /**\n   * Total amount of revenue generated by friends referred by this customer.\n   * @readonly\n   */\n  totalAmountGenerated?: string;\n  /**\n   * Date and time of the last friend action.\n   * @readonly\n   */\n  lastFriendAction?: Date | null;\n  /**\n   * Number of friends who have completed actions.\n   * @readonly\n   */\n  totalFriendsWithActions?: number;\n}\n\nexport interface QueryReferredFriendActionsRequest {\n  /** Query to filter referred friend actions. */\n  query?: CursorQuery;\n  /**\n   * List of contact IDs to filter referred friend actions.\n   * @format GUID\n   */\n  contactIds?: string[];\n}\n\nexport interface QueryReferredFriendActionsResponse {\n  /** List of referred friend actions matching the query. */\n  referredFriendActions?: ReferredFriendAction[];\n  /** Paging metadata. */\n  metadata?: CursorPagingMetadata;\n}\n\nexport interface ReferredFriendAction\n  extends ReferredFriendActionRewardTypeOptionsOneOf {\n  /** Coupon reward type options. */\n  coupon?: V1Coupon;\n  /** Loyalty points reward type options. */\n  loyaltyPoints?: LoyaltyPoints;\n  /**\n   * Referred friend ID.\n   * @format GUID\n   * @readonly\n   */\n  referredFriendId?: string;\n  /**\n   * Contact ID.\n   * @format GUID\n   * @readonly\n   */\n  contactId?: string;\n  /**\n   * Trigger for the first action.\n   * @readonly\n   */\n  trigger?: V1Trigger;\n  /**\n   * Date and time of the first action.\n   * @readonly\n   */\n  actionDate?: Date | null;\n  /** Type of issued reward. */\n  rewardType?: RewardWithLiterals;\n  /** Number of actions completed. */\n  totalActions?: number;\n  /**\n   * Total amount spent by this referred friend.\n   * @readonly\n   */\n  totalAmountSpent?: string;\n  /**\n   * Date and time of friend signup.\n   * @readonly\n   */\n  signupDate?: Date | null;\n}\n\n/** @oneof */\nexport interface ReferredFriendActionRewardTypeOptionsOneOf {\n  /** Coupon reward type options. */\n  coupon?: V1Coupon;\n  /** Loyalty points reward type options. */\n  loyaltyPoints?: LoyaltyPoints;\n}\n\nexport interface V1Coupon {\n  /**\n   * Coupon ID. Example: `8934b045-7052-4a90-be2b-832c70afc9da`.\n   * @format GUID\n   * @readonly\n   */\n  id?: string;\n  /**\n   * The code that customers can use to apply the coupon. Example: `6RFD2A3HSPXW`.\n   * @readonly\n   */\n  code?: string;\n  /**\n   * Current status of the coupon.\n   * @readonly\n   */\n  status?: StatusWithLiterals;\n  /**\n   * Detailed specifications of the coupon.\n   * @readonly\n   */\n  couponSpecification?: Coupon;\n}\n\nexport enum Status {\n  /** Coupon status is unknown or not specified. */\n  UNKNOWN = 'UNKNOWN',\n  /** Coupon is active and can be applied to purchases. */\n  ACTIVE = 'ACTIVE',\n  /** Coupon was applied and can't be used again. */\n  APPLIED = 'APPLIED',\n  /** Coupon was deleted and is no longer valid. */\n  DELETED = 'DELETED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n  | Status\n  | 'UNKNOWN'\n  | 'ACTIVE'\n  | 'APPLIED'\n  | 'DELETED';\n\nexport interface Coupon\n  extends CouponDiscountTypeOptionsOneOf,\n    CouponScopeOrMinSubtotalOneOf {\n  /** Options for fixed amount discount. */\n  fixedAmountOptions?: FixedAmountDiscount;\n  /** Options for percentage discounts. */\n  percentageOptions?: PercentageDiscount;\n  /** Limit the coupon to carts with a subtotal above this number. */\n  minimumSubtotal?: number;\n  /** Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */\n  scope?: CouponScope;\n  /**\n   * Coupon name.\n   * @minLength 1\n   * @maxLength 50\n   */\n  name?: string;\n  /** Coupon discount type. */\n  discountType?: DiscountTypeWithLiterals;\n  /**\n   * Whether the coupon is limited to one item.\n   * If `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.\n   * Coupons with a bookings `scope.namespace` are always limited to one item.\n   */\n  limitedToOneItem?: boolean | null;\n  /** Whether the coupon applies to subscription products. */\n  appliesToSubscriptions?: boolean | null;\n  /**\n   * Specifies the amount of discounted cycles for a subscription item.\n   *\n   * - Can only be set when `scope.namespace = pricingPlans`.\n   * - If `discountedCycleCount` is empty, the coupon applies to all available cycles.\n   * - `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.\n   *\n   * Max: `999`\n   */\n  discountedCycleCount?: number | null;\n}\n\n/** @oneof */\nexport interface CouponDiscountTypeOptionsOneOf {\n  /** Options for fixed amount discount. */\n  fixedAmountOptions?: FixedAmountDiscount;\n  /** Options for percentage discounts. */\n  percentageOptions?: PercentageDiscount;\n}\n\n/** @oneof */\nexport interface CouponScopeOrMinSubtotalOneOf {\n  /** Limit the coupon to carts with a subtotal above this number. */\n  minimumSubtotal?: number;\n  /** Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */\n  scope?: CouponScope;\n}\n\nexport enum DiscountType {\n  /** Unknown discount type. */\n  UNKNOWN = 'UNKNOWN',\n  /** Discount as a fixed amount. */\n  FIXED_AMOUNT = 'FIXED_AMOUNT',\n  /** Discount as a percentage. */\n  PERCENTAGE = 'PERCENTAGE',\n  /** Free shipping. If `true`, the coupon applies to all items in all `namespaces`. */\n  FREE_SHIPPING = 'FREE_SHIPPING',\n}\n\n/** @enumType */\nexport type DiscountTypeWithLiterals =\n  | DiscountType\n  | 'UNKNOWN'\n  | 'FIXED_AMOUNT'\n  | 'PERCENTAGE'\n  | 'FREE_SHIPPING';\n\nexport interface FixedAmountDiscount {\n  /**\n   * Amount of the discount as a fixed value.\n   * @min 0.01\n   */\n  amount?: number;\n}\n\nexport interface PercentageDiscount {\n  /**\n   * Percentage of discount.\n   * @max 100\n   */\n  percentage?: number;\n}\n\nexport interface CouponScope {\n  /** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */\n  namespace?: string;\n  /** Coupon scope's applied group, for example, Event or ticket in Wix Events. */\n  group?: Group;\n}\n\nexport interface Group {\n  /** Name of the group. */\n  name?: string;\n  /** Entity ID of the group. */\n  entityId?: string | null;\n}\n\nexport interface LoyaltyPoints {\n  /**\n   * Loyalty transaction ID.\n   * @format GUID\n   * @readonly\n   */\n  transactionId?: string;\n  /**\n   * The number of loyalty points awarded.\n   * @readonly\n   */\n  amount?: number;\n}\n\nexport interface ReprocessReferralEventsRequest\n  extends ReprocessReferralEventsRequestEntityOneOf {\n  /**\n   * ID of the referring customer.\n   * @format GUID\n   */\n  referringCustomerId?: string;\n  /**\n   * ID of the referred friend.\n   * @format GUID\n   */\n  referredFriendId?: string;\n}\n\n/** @oneof */\nexport interface ReprocessReferralEventsRequestEntityOneOf {\n  /**\n   * ID of the referring customer.\n   * @format GUID\n   */\n  referringCustomerId?: string;\n  /**\n   * ID of the referred friend.\n   * @format GUID\n   */\n  referredFriendId?: string;\n}\n\nexport interface ReprocessReferralEventsResponse {}\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 SuccessfulReferralEvent {\n  /** Details of the referred friend who completed their referral. */\n  referredFriendDetails?: ReferredFriendDetails;\n}\n\nexport interface ReferredFriendDetails {\n  /**\n   * ID of the referred friend.\n   * @format GUID\n   * @readonly\n   */\n  referredFriendId?: string;\n  /**\n   * Contact ID of the referred friend.\n   * @format GUID\n   * @readonly\n   */\n  contactId?: string;\n  /**\n   * ID of the customer who referred this friend.\n   * @format GUID\n   * @readonly\n   */\n  referringCustomerId?: string;\n}\n\nexport interface ReferredFriendActionEvent {\n  /** Details of the referred friend. */\n  referredFriendDetails?: ReferredFriendDetails;\n  /** Details of the trigger. */\n  trigger?: Trigger;\n  /** Amount of the referral reward. */\n  amount?: string | null;\n  /** Currency of the referral reward. */\n  currency?: string | null;\n  /** ID of the order associated with the referral. */\n  orderId?: string | null;\n}\n\nexport interface Trigger {\n  /** ID of the app associated with the referral activity. */\n  appId?: string;\n  /** Type of referral activity. */\n  activityType?: 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","import * as ambassadorWixLoyaltyReferralV1ReferralEvent from './loyalty-referral-v1-referral-event-tracker.http.js';\nimport * as ambassadorWixLoyaltyReferralV1ReferralEventTypes from './loyalty-referral-v1-referral-event-tracker.types.js';\nimport * as ambassadorWixLoyaltyReferralV1ReferralEventUniversalTypes from './loyalty-referral-v1-referral-event-tracker.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 getReferralEvent(): __PublicMethodMetaInfo<\n  'GET',\n  { referralEventId: string },\n  ambassadorWixLoyaltyReferralV1ReferralEventUniversalTypes.GetReferralEventRequest,\n  ambassadorWixLoyaltyReferralV1ReferralEventTypes.GetReferralEventRequest,\n  ambassadorWixLoyaltyReferralV1ReferralEventUniversalTypes.GetReferralEventResponse,\n  ambassadorWixLoyaltyReferralV1ReferralEventTypes.GetReferralEventResponse\n> {\n  const payload = { referralEventId: ':referralEventId' } as any;\n\n  const getRequestOptions =\n    ambassadorWixLoyaltyReferralV1ReferralEvent.getReferralEvent(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: '/v1/referral-events/{referralEventId}',\n    pathParams: { referralEventId: 'referralEventId' },\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 queryReferralEvent(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixLoyaltyReferralV1ReferralEventUniversalTypes.QueryReferralEventRequest,\n  ambassadorWixLoyaltyReferralV1ReferralEventTypes.QueryReferralEventRequest,\n  ambassadorWixLoyaltyReferralV1ReferralEventUniversalTypes.QueryReferralEventResponse,\n  ambassadorWixLoyaltyReferralV1ReferralEventTypes.QueryReferralEventResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixLoyaltyReferralV1ReferralEvent.queryReferralEvent(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: '/v1/referral-events/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 getReferralStatistics(): __PublicMethodMetaInfo<\n  'GET',\n  {},\n  ambassadorWixLoyaltyReferralV1ReferralEventUniversalTypes.GetReferralStatisticsRequest,\n  ambassadorWixLoyaltyReferralV1ReferralEventTypes.GetReferralStatisticsRequest,\n  ambassadorWixLoyaltyReferralV1ReferralEventUniversalTypes.GetReferralStatisticsResponse,\n  ambassadorWixLoyaltyReferralV1ReferralEventTypes.GetReferralStatisticsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixLoyaltyReferralV1ReferralEvent.getReferralStatistics(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: '/v1/referral-statistics',\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 queryReferringCustomerTotals(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixLoyaltyReferralV1ReferralEventUniversalTypes.QueryReferringCustomerTotalsRequest,\n  ambassadorWixLoyaltyReferralV1ReferralEventTypes.QueryReferringCustomerTotalsRequest,\n  ambassadorWixLoyaltyReferralV1ReferralEventUniversalTypes.QueryReferringCustomerTotalsResponse,\n  ambassadorWixLoyaltyReferralV1ReferralEventTypes.QueryReferringCustomerTotalsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixLoyaltyReferralV1ReferralEvent.queryReferringCustomerTotals(\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: 'POST',\n    path: '/v1/referring-customer-totals/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 queryReferredFriendActions(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixLoyaltyReferralV1ReferralEventUniversalTypes.QueryReferredFriendActionsRequest,\n  ambassadorWixLoyaltyReferralV1ReferralEventTypes.QueryReferredFriendActionsRequest,\n  ambassadorWixLoyaltyReferralV1ReferralEventUniversalTypes.QueryReferredFriendActionsResponse,\n  ambassadorWixLoyaltyReferralV1ReferralEventTypes.QueryReferredFriendActionsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixLoyaltyReferralV1ReferralEvent.queryReferredFriendActions(\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: 'POST',\n    path: '/v1/referred-friend-actions/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 {\n  ReferralEvent as ReferralEventOriginal,\n  ReferralEventEventTypeOneOf as ReferralEventEventTypeOneOfOriginal,\n  ReferredFriendSignupEvent as ReferredFriendSignupEventOriginal,\n  V1SuccessfulReferralEvent as V1SuccessfulReferralEventOriginal,\n  V1ActionEvent as V1ActionEventOriginal,\n  V1Trigger as V1TriggerOriginal,\n  RewardEvent as RewardEventOriginal,\n  RewardEventReceiverOneOf as RewardEventReceiverOneOfOriginal,\n  Reward as RewardOriginal,\n  RewardWithLiterals as RewardWithLiteralsOriginal,\n  CreateReferralEventRequest as CreateReferralEventRequestOriginal,\n  CreateReferralEventResponse as CreateReferralEventResponseOriginal,\n  GetReferralEventRequest as GetReferralEventRequestOriginal,\n  GetReferralEventResponse as GetReferralEventResponseOriginal,\n  QueryReferralEventRequest as QueryReferralEventRequestOriginal,\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  QueryReferralEventResponse as QueryReferralEventResponseOriginal,\n  CursorPagingMetadata as CursorPagingMetadataOriginal,\n  Cursors as CursorsOriginal,\n  GetReferralStatisticsRequest as GetReferralStatisticsRequestOriginal,\n  GetReferralStatisticsResponse as GetReferralStatisticsResponseOriginal,\n  QueryReferringCustomerTotalsRequest as QueryReferringCustomerTotalsRequestOriginal,\n  QueryReferringCustomerTotalsResponse as QueryReferringCustomerTotalsResponseOriginal,\n  ReferringCustomerTotal as ReferringCustomerTotalOriginal,\n  QueryReferredFriendActionsRequest as QueryReferredFriendActionsRequestOriginal,\n  QueryReferredFriendActionsResponse as QueryReferredFriendActionsResponseOriginal,\n  ReferredFriendAction as ReferredFriendActionOriginal,\n  ReferredFriendActionRewardTypeOptionsOneOf as ReferredFriendActionRewardTypeOptionsOneOfOriginal,\n  V1Coupon as V1CouponOriginal,\n  Status as StatusOriginal,\n  StatusWithLiterals as StatusWithLiteralsOriginal,\n  Coupon as CouponOriginal,\n  CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOfOriginal,\n  CouponScopeOrMinSubtotalOneOf as CouponScopeOrMinSubtotalOneOfOriginal,\n  DiscountType as DiscountTypeOriginal,\n  DiscountTypeWithLiterals as DiscountTypeWithLiteralsOriginal,\n  FixedAmountDiscount as FixedAmountDiscountOriginal,\n  PercentageDiscount as PercentageDiscountOriginal,\n  CouponScope as CouponScopeOriginal,\n  Group as GroupOriginal,\n  LoyaltyPoints as LoyaltyPointsOriginal,\n  ReprocessReferralEventsRequest as ReprocessReferralEventsRequestOriginal,\n  ReprocessReferralEventsRequestEntityOneOf as ReprocessReferralEventsRequestEntityOneOfOriginal,\n  ReprocessReferralEventsResponse as ReprocessReferralEventsResponseOriginal,\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  SuccessfulReferralEvent as SuccessfulReferralEventOriginal,\n  ReferredFriendDetails as ReferredFriendDetailsOriginal,\n  ReferredFriendActionEvent as ReferredFriendActionEventOriginal,\n  Trigger as TriggerOriginal,\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} from './loyalty-referral-v1-referral-event-tracker.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,oDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,M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,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,gCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACwC;AAAA,IAC1C;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;AAEO,SAASC,8BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACwC;AAAA,IAC1C;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","Reward","SortOrder","Status","DiscountType","WebhookIdentityType","getReferralEvent","queryReferralEvent","getReferralStatistics","queryReferringCustomerTotals","queryReferredFriendActions"]}