@wix/referral 1.0.22 → 1.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/referral",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -20,8 +20,8 @@
20
20
  "dependencies": {
21
21
  "@wix/referral_customers": "1.0.10",
22
22
  "@wix/referral_friends": "1.0.7",
23
- "@wix/referral_programs": "1.0.11",
24
- "@wix/referral_rewards": "1.0.9",
23
+ "@wix/referral_programs": "1.0.12",
24
+ "@wix/referral_rewards": "1.0.10",
25
25
  "@wix/referral_tracker": "1.0.12"
26
26
  },
27
27
  "devDependencies": {
@@ -47,5 +47,5 @@
47
47
  "fqdn": ""
48
48
  }
49
49
  },
50
- "falconPackageHash": "28896ffca80e0f980ededfd93279d4cb284f81cd39c74d66ba7a6838"
50
+ "falconPackageHash": "a90e7fdc149c4fdb11a1163ce225affa47608013a8801d9ffe277bb4"
51
51
  }
@@ -702,7 +702,9 @@ declare enum Namespace {
702
702
  * UGC Templates are templates that are created by users for personal use and to sale to other users.
703
703
  * The Partners company owns this namespace.
704
704
  */
705
- UGC_TEMPLATE = "UGC_TEMPLATE"
705
+ UGC_TEMPLATE = "UGC_TEMPLATE",
706
+ /** Codux Headless Sites */
707
+ CODUX = "CODUX"
706
708
  }
707
709
  /** Site transferred to another user. */
708
710
  interface SiteTransferred {
@@ -1510,14 +1512,14 @@ interface ProgramUpdatedEnvelope {
1510
1512
  entity: ReferralProgram;
1511
1513
  metadata: EventMetadata$3;
1512
1514
  }
1513
- interface QueryCursorResult$3 {
1515
+ interface QueryCursorResult$4 {
1514
1516
  cursors: Cursors$4;
1515
1517
  hasNext: () => boolean;
1516
1518
  hasPrev: () => boolean;
1517
1519
  length: number;
1518
1520
  pageSize: number;
1519
1521
  }
1520
- interface ReferralProgramsQueryResult extends QueryCursorResult$3 {
1522
+ interface ReferralProgramsQueryResult extends QueryCursorResult$4 {
1521
1523
  items: ReferralProgram[];
1522
1524
  query: ReferralProgramsQueryBuilder;
1523
1525
  next: () => Promise<ReferralProgramsQueryResult>;
@@ -2513,14 +2515,14 @@ interface ReferralEventCreatedEnvelope {
2513
2515
  entity: ReferralEvent;
2514
2516
  metadata: EventMetadata$2;
2515
2517
  }
2516
- interface QueryCursorResult$2 {
2518
+ interface QueryCursorResult$3 {
2517
2519
  cursors: Cursors$3;
2518
2520
  hasNext: () => boolean;
2519
2521
  hasPrev: () => boolean;
2520
2522
  length: number;
2521
2523
  pageSize: number;
2522
2524
  }
2523
- interface ReferralEventsQueryResult extends QueryCursorResult$2 {
2525
+ interface ReferralEventsQueryResult extends QueryCursorResult$3 {
2524
2526
  items: ReferralEvent[];
2525
2527
  query: ReferralEventsQueryBuilder;
2526
2528
  next: () => Promise<ReferralEventsQueryResult>;
@@ -3236,7 +3238,84 @@ interface QueryReferralRewardsResponseNonNullableFields {
3236
3238
  }
3237
3239
  interface QueryReferralRewardsOptions {
3238
3240
  /** Contact ID to filter rewards by. Use `"me"` for current identity's rewards. */
3239
- contactId?: string | null;
3241
+ contactId?: string | null | undefined;
3242
+ }
3243
+ interface QueryCursorResult$2 {
3244
+ cursors: Cursors$2;
3245
+ hasNext: () => boolean;
3246
+ hasPrev: () => boolean;
3247
+ length: number;
3248
+ pageSize: number;
3249
+ }
3250
+ interface ReferralRewardsQueryResult extends QueryCursorResult$2 {
3251
+ items: ReferralReward[];
3252
+ query: ReferralRewardsQueryBuilder;
3253
+ next: () => Promise<ReferralRewardsQueryResult>;
3254
+ prev: () => Promise<ReferralRewardsQueryResult>;
3255
+ }
3256
+ interface ReferralRewardsQueryBuilder {
3257
+ /** @param propertyName - Property whose value is compared with `value`.
3258
+ * @param value - Value to compare against.
3259
+ * @documentationMaturity preview
3260
+ */
3261
+ eq: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: any) => ReferralRewardsQueryBuilder;
3262
+ /** @param propertyName - Property whose value is compared with `value`.
3263
+ * @param value - Value to compare against.
3264
+ * @documentationMaturity preview
3265
+ */
3266
+ ne: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: any) => ReferralRewardsQueryBuilder;
3267
+ /** @param propertyName - Property whose value is compared with `value`.
3268
+ * @param value - Value to compare against.
3269
+ * @documentationMaturity preview
3270
+ */
3271
+ ge: (propertyName: '_createdDate' | '_updatedDate', value: any) => ReferralRewardsQueryBuilder;
3272
+ /** @param propertyName - Property whose value is compared with `value`.
3273
+ * @param value - Value to compare against.
3274
+ * @documentationMaturity preview
3275
+ */
3276
+ gt: (propertyName: '_createdDate' | '_updatedDate', value: any) => ReferralRewardsQueryBuilder;
3277
+ /** @param propertyName - Property whose value is compared with `value`.
3278
+ * @param value - Value to compare against.
3279
+ * @documentationMaturity preview
3280
+ */
3281
+ le: (propertyName: '_createdDate' | '_updatedDate', value: any) => ReferralRewardsQueryBuilder;
3282
+ /** @param propertyName - Property whose value is compared with `value`.
3283
+ * @param value - Value to compare against.
3284
+ * @documentationMaturity preview
3285
+ */
3286
+ lt: (propertyName: '_createdDate' | '_updatedDate', value: any) => ReferralRewardsQueryBuilder;
3287
+ /** @param propertyName - Property whose value is compared with `string`.
3288
+ * @param string - String to compare against. Case-insensitive.
3289
+ * @documentationMaturity preview
3290
+ */
3291
+ startsWith: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId', value: string) => ReferralRewardsQueryBuilder;
3292
+ /** @param propertyName - Property whose value is compared with `values`.
3293
+ * @param values - List of values to compare against.
3294
+ * @documentationMaturity preview
3295
+ */
3296
+ hasSome: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: any[]) => ReferralRewardsQueryBuilder;
3297
+ /** @documentationMaturity preview */
3298
+ in: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: any) => ReferralRewardsQueryBuilder;
3299
+ /** @documentationMaturity preview */
3300
+ exists: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: boolean) => ReferralRewardsQueryBuilder;
3301
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
3302
+ * @documentationMaturity preview
3303
+ */
3304
+ ascending: (...propertyNames: Array<'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType'>) => ReferralRewardsQueryBuilder;
3305
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
3306
+ * @documentationMaturity preview
3307
+ */
3308
+ descending: (...propertyNames: Array<'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType'>) => ReferralRewardsQueryBuilder;
3309
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
3310
+ * @documentationMaturity preview
3311
+ */
3312
+ limit: (limit: number) => ReferralRewardsQueryBuilder;
3313
+ /** @param cursor - A pointer to specific record
3314
+ * @documentationMaturity preview
3315
+ */
3316
+ skipTo: (cursor: string) => ReferralRewardsQueryBuilder;
3317
+ /** @documentationMaturity preview */
3318
+ find: () => Promise<ReferralRewardsQueryResult>;
3240
3319
  }
3241
3320
 
3242
3321
  declare function getReferralReward$1(httpClient: HttpClient): GetReferralRewardSignature;
@@ -3257,9 +3336,8 @@ interface QueryReferralRewardsSignature {
3257
3336
  * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
3258
3337
  * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
3259
3338
  * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
3260
- * @param - Query to filter referral rewards.
3261
3339
  */
3262
- (query: CursorQuery$2, options?: QueryReferralRewardsOptions | undefined): Promise<QueryReferralRewardsResponse & QueryReferralRewardsResponseNonNullableFields>;
3340
+ (options?: QueryReferralRewardsOptions | undefined): ReferralRewardsQueryBuilder;
3263
3341
  }
3264
3342
 
3265
3343
  declare const getReferralReward: BuildRESTFunction<typeof getReferralReward$1> & typeof getReferralReward$1;
@@ -3288,6 +3366,8 @@ type context$2_ReferralReward = ReferralReward;
3288
3366
  type context$2_ReferralRewardNonNullableFields = ReferralRewardNonNullableFields;
3289
3367
  type context$2_ReferralRewardReceiverOneOf = ReferralRewardReceiverOneOf;
3290
3368
  type context$2_ReferralRewardRewardTypeOptionsOneOf = ReferralRewardRewardTypeOptionsOneOf;
3369
+ type context$2_ReferralRewardsQueryBuilder = ReferralRewardsQueryBuilder;
3370
+ type context$2_ReferralRewardsQueryResult = ReferralRewardsQueryResult;
3291
3371
  type context$2_Reward = Reward;
3292
3372
  type context$2_RewardOptionsOneOf = RewardOptionsOneOf;
3293
3373
  type context$2_RewardTypeType = RewardTypeType;
@@ -3302,7 +3382,7 @@ type context$2_ValidateReferralRewardResponse = ValidateReferralRewardResponse;
3302
3382
  declare const context$2_getReferralReward: typeof getReferralReward;
3303
3383
  declare const context$2_queryReferralRewards: typeof queryReferralRewards;
3304
3384
  declare namespace context$2 {
3305
- export { type ActionEvent$2 as ActionEvent, type context$2_BulkGetReferralRewardsRequest as BulkGetReferralRewardsRequest, type context$2_BulkGetReferralRewardsResponse as BulkGetReferralRewardsResponse, type context$2_Coupon as Coupon, type context$2_CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOf, type context$2_CouponScope as CouponScope, type context$2_CouponScopeOrMinSubtotalOneOf as CouponScopeOrMinSubtotalOneOf, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type CursorQuery$2 as CursorQuery, type CursorQueryPagingMethodOneOf$2 as CursorQueryPagingMethodOneOf, type Cursors$2 as Cursors, context$2_DiscountType as DiscountType, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type context$2_FixedAmountDiscount as FixedAmountDiscount, type context$2_GetReferralRewardRequest as GetReferralRewardRequest, type context$2_GetReferralRewardResponse as GetReferralRewardResponse, type context$2_GetReferralRewardResponseNonNullableFields as GetReferralRewardResponseNonNullableFields, type context$2_Group as Group, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type context$2_LoyaltyPoints as LoyaltyPoints, type MessageEnvelope$2 as MessageEnvelope, type context$2_PercentageDiscount as PercentageDiscount, type context$2_QueryReferralRewardsOptions as QueryReferralRewardsOptions, type context$2_QueryReferralRewardsRequest as QueryReferralRewardsRequest, type context$2_QueryReferralRewardsResponse as QueryReferralRewardsResponse, type context$2_QueryReferralRewardsResponseNonNullableFields as QueryReferralRewardsResponseNonNullableFields, type context$2_ReferralReward as ReferralReward, type context$2_ReferralRewardNonNullableFields as ReferralRewardNonNullableFields, type context$2_ReferralRewardReceiverOneOf as ReferralRewardReceiverOneOf, type context$2_ReferralRewardRewardTypeOptionsOneOf as ReferralRewardRewardTypeOptionsOneOf, type ReferredFriendDetails$1 as ReferredFriendDetails, type RestoreInfo$2 as RestoreInfo, type context$2_Reward as Reward, type context$2_RewardOptionsOneOf as RewardOptionsOneOf, context$2_RewardTypeType as RewardTypeType, type context$2_RewardsInSite as RewardsInSite, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, Status$1 as Status, type SuccessfulReferralEvent$1 as SuccessfulReferralEvent, context$2_Type as Type, type context$2_V1Coupon as V1Coupon, type context$2_V1LoyaltyPoints as V1LoyaltyPoints, type context$2_ValidateReferralRewardRequest as ValidateReferralRewardRequest, type context$2_ValidateReferralRewardResponse as ValidateReferralRewardResponse, WebhookIdentityType$2 as WebhookIdentityType, context$2_getReferralReward as getReferralReward, context$2_queryReferralRewards as queryReferralRewards };
3385
+ export { type ActionEvent$2 as ActionEvent, type context$2_BulkGetReferralRewardsRequest as BulkGetReferralRewardsRequest, type context$2_BulkGetReferralRewardsResponse as BulkGetReferralRewardsResponse, type context$2_Coupon as Coupon, type context$2_CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOf, type context$2_CouponScope as CouponScope, type context$2_CouponScopeOrMinSubtotalOneOf as CouponScopeOrMinSubtotalOneOf, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type CursorQuery$2 as CursorQuery, type CursorQueryPagingMethodOneOf$2 as CursorQueryPagingMethodOneOf, type Cursors$2 as Cursors, context$2_DiscountType as DiscountType, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type context$2_FixedAmountDiscount as FixedAmountDiscount, type context$2_GetReferralRewardRequest as GetReferralRewardRequest, type context$2_GetReferralRewardResponse as GetReferralRewardResponse, type context$2_GetReferralRewardResponseNonNullableFields as GetReferralRewardResponseNonNullableFields, type context$2_Group as Group, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type context$2_LoyaltyPoints as LoyaltyPoints, type MessageEnvelope$2 as MessageEnvelope, type context$2_PercentageDiscount as PercentageDiscount, type context$2_QueryReferralRewardsOptions as QueryReferralRewardsOptions, type context$2_QueryReferralRewardsRequest as QueryReferralRewardsRequest, type context$2_QueryReferralRewardsResponse as QueryReferralRewardsResponse, type context$2_QueryReferralRewardsResponseNonNullableFields as QueryReferralRewardsResponseNonNullableFields, type context$2_ReferralReward as ReferralReward, type context$2_ReferralRewardNonNullableFields as ReferralRewardNonNullableFields, type context$2_ReferralRewardReceiverOneOf as ReferralRewardReceiverOneOf, type context$2_ReferralRewardRewardTypeOptionsOneOf as ReferralRewardRewardTypeOptionsOneOf, type context$2_ReferralRewardsQueryBuilder as ReferralRewardsQueryBuilder, type context$2_ReferralRewardsQueryResult as ReferralRewardsQueryResult, type ReferredFriendDetails$1 as ReferredFriendDetails, type RestoreInfo$2 as RestoreInfo, type context$2_Reward as Reward, type context$2_RewardOptionsOneOf as RewardOptionsOneOf, context$2_RewardTypeType as RewardTypeType, type context$2_RewardsInSite as RewardsInSite, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, Status$1 as Status, type SuccessfulReferralEvent$1 as SuccessfulReferralEvent, context$2_Type as Type, type context$2_V1Coupon as V1Coupon, type context$2_V1LoyaltyPoints as V1LoyaltyPoints, type context$2_ValidateReferralRewardRequest as ValidateReferralRewardRequest, type context$2_ValidateReferralRewardResponse as ValidateReferralRewardResponse, WebhookIdentityType$2 as WebhookIdentityType, context$2_getReferralReward as getReferralReward, context$2_queryReferralRewards as queryReferralRewards };
3306
3386
  }
3307
3387
 
3308
3388
  interface ReferredFriend {
@@ -702,7 +702,9 @@ declare enum Namespace {
702
702
  * UGC Templates are templates that are created by users for personal use and to sale to other users.
703
703
  * The Partners company owns this namespace.
704
704
  */
705
- UGC_TEMPLATE = "UGC_TEMPLATE"
705
+ UGC_TEMPLATE = "UGC_TEMPLATE",
706
+ /** Codux Headless Sites */
707
+ CODUX = "CODUX"
706
708
  }
707
709
  /** Site transferred to another user. */
708
710
  interface SiteTransferred {
@@ -1510,14 +1512,14 @@ interface ProgramUpdatedEnvelope {
1510
1512
  entity: ReferralProgram;
1511
1513
  metadata: EventMetadata$3;
1512
1514
  }
1513
- interface QueryCursorResult$3 {
1515
+ interface QueryCursorResult$4 {
1514
1516
  cursors: Cursors$4;
1515
1517
  hasNext: () => boolean;
1516
1518
  hasPrev: () => boolean;
1517
1519
  length: number;
1518
1520
  pageSize: number;
1519
1521
  }
1520
- interface ReferralProgramsQueryResult extends QueryCursorResult$3 {
1522
+ interface ReferralProgramsQueryResult extends QueryCursorResult$4 {
1521
1523
  items: ReferralProgram[];
1522
1524
  query: ReferralProgramsQueryBuilder;
1523
1525
  next: () => Promise<ReferralProgramsQueryResult>;
@@ -2513,14 +2515,14 @@ interface ReferralEventCreatedEnvelope {
2513
2515
  entity: ReferralEvent;
2514
2516
  metadata: EventMetadata$2;
2515
2517
  }
2516
- interface QueryCursorResult$2 {
2518
+ interface QueryCursorResult$3 {
2517
2519
  cursors: Cursors$3;
2518
2520
  hasNext: () => boolean;
2519
2521
  hasPrev: () => boolean;
2520
2522
  length: number;
2521
2523
  pageSize: number;
2522
2524
  }
2523
- interface ReferralEventsQueryResult extends QueryCursorResult$2 {
2525
+ interface ReferralEventsQueryResult extends QueryCursorResult$3 {
2524
2526
  items: ReferralEvent[];
2525
2527
  query: ReferralEventsQueryBuilder;
2526
2528
  next: () => Promise<ReferralEventsQueryResult>;
@@ -3236,7 +3238,84 @@ interface QueryReferralRewardsResponseNonNullableFields {
3236
3238
  }
3237
3239
  interface QueryReferralRewardsOptions {
3238
3240
  /** Contact ID to filter rewards by. Use `"me"` for current identity's rewards. */
3239
- contactId?: string | null;
3241
+ contactId?: string | null | undefined;
3242
+ }
3243
+ interface QueryCursorResult$2 {
3244
+ cursors: Cursors$2;
3245
+ hasNext: () => boolean;
3246
+ hasPrev: () => boolean;
3247
+ length: number;
3248
+ pageSize: number;
3249
+ }
3250
+ interface ReferralRewardsQueryResult extends QueryCursorResult$2 {
3251
+ items: ReferralReward[];
3252
+ query: ReferralRewardsQueryBuilder;
3253
+ next: () => Promise<ReferralRewardsQueryResult>;
3254
+ prev: () => Promise<ReferralRewardsQueryResult>;
3255
+ }
3256
+ interface ReferralRewardsQueryBuilder {
3257
+ /** @param propertyName - Property whose value is compared with `value`.
3258
+ * @param value - Value to compare against.
3259
+ * @documentationMaturity preview
3260
+ */
3261
+ eq: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: any) => ReferralRewardsQueryBuilder;
3262
+ /** @param propertyName - Property whose value is compared with `value`.
3263
+ * @param value - Value to compare against.
3264
+ * @documentationMaturity preview
3265
+ */
3266
+ ne: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: any) => ReferralRewardsQueryBuilder;
3267
+ /** @param propertyName - Property whose value is compared with `value`.
3268
+ * @param value - Value to compare against.
3269
+ * @documentationMaturity preview
3270
+ */
3271
+ ge: (propertyName: '_createdDate' | '_updatedDate', value: any) => ReferralRewardsQueryBuilder;
3272
+ /** @param propertyName - Property whose value is compared with `value`.
3273
+ * @param value - Value to compare against.
3274
+ * @documentationMaturity preview
3275
+ */
3276
+ gt: (propertyName: '_createdDate' | '_updatedDate', value: any) => ReferralRewardsQueryBuilder;
3277
+ /** @param propertyName - Property whose value is compared with `value`.
3278
+ * @param value - Value to compare against.
3279
+ * @documentationMaturity preview
3280
+ */
3281
+ le: (propertyName: '_createdDate' | '_updatedDate', value: any) => ReferralRewardsQueryBuilder;
3282
+ /** @param propertyName - Property whose value is compared with `value`.
3283
+ * @param value - Value to compare against.
3284
+ * @documentationMaturity preview
3285
+ */
3286
+ lt: (propertyName: '_createdDate' | '_updatedDate', value: any) => ReferralRewardsQueryBuilder;
3287
+ /** @param propertyName - Property whose value is compared with `string`.
3288
+ * @param string - String to compare against. Case-insensitive.
3289
+ * @documentationMaturity preview
3290
+ */
3291
+ startsWith: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId', value: string) => ReferralRewardsQueryBuilder;
3292
+ /** @param propertyName - Property whose value is compared with `values`.
3293
+ * @param values - List of values to compare against.
3294
+ * @documentationMaturity preview
3295
+ */
3296
+ hasSome: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: any[]) => ReferralRewardsQueryBuilder;
3297
+ /** @documentationMaturity preview */
3298
+ in: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: any) => ReferralRewardsQueryBuilder;
3299
+ /** @documentationMaturity preview */
3300
+ exists: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: boolean) => ReferralRewardsQueryBuilder;
3301
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
3302
+ * @documentationMaturity preview
3303
+ */
3304
+ ascending: (...propertyNames: Array<'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType'>) => ReferralRewardsQueryBuilder;
3305
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
3306
+ * @documentationMaturity preview
3307
+ */
3308
+ descending: (...propertyNames: Array<'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType'>) => ReferralRewardsQueryBuilder;
3309
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
3310
+ * @documentationMaturity preview
3311
+ */
3312
+ limit: (limit: number) => ReferralRewardsQueryBuilder;
3313
+ /** @param cursor - A pointer to specific record
3314
+ * @documentationMaturity preview
3315
+ */
3316
+ skipTo: (cursor: string) => ReferralRewardsQueryBuilder;
3317
+ /** @documentationMaturity preview */
3318
+ find: () => Promise<ReferralRewardsQueryResult>;
3240
3319
  }
3241
3320
 
3242
3321
  declare function getReferralReward$1(httpClient: HttpClient): GetReferralRewardSignature;
@@ -3257,9 +3336,8 @@ interface QueryReferralRewardsSignature {
3257
3336
  * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
3258
3337
  * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
3259
3338
  * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
3260
- * @param - Query to filter referral rewards.
3261
3339
  */
3262
- (query: CursorQuery$2, options?: QueryReferralRewardsOptions | undefined): Promise<QueryReferralRewardsResponse & QueryReferralRewardsResponseNonNullableFields>;
3340
+ (options?: QueryReferralRewardsOptions | undefined): ReferralRewardsQueryBuilder;
3263
3341
  }
3264
3342
 
3265
3343
  declare const getReferralReward: BuildRESTFunction<typeof getReferralReward$1> & typeof getReferralReward$1;
@@ -3288,6 +3366,8 @@ type index_d$2_ReferralReward = ReferralReward;
3288
3366
  type index_d$2_ReferralRewardNonNullableFields = ReferralRewardNonNullableFields;
3289
3367
  type index_d$2_ReferralRewardReceiverOneOf = ReferralRewardReceiverOneOf;
3290
3368
  type index_d$2_ReferralRewardRewardTypeOptionsOneOf = ReferralRewardRewardTypeOptionsOneOf;
3369
+ type index_d$2_ReferralRewardsQueryBuilder = ReferralRewardsQueryBuilder;
3370
+ type index_d$2_ReferralRewardsQueryResult = ReferralRewardsQueryResult;
3291
3371
  type index_d$2_Reward = Reward;
3292
3372
  type index_d$2_RewardOptionsOneOf = RewardOptionsOneOf;
3293
3373
  type index_d$2_RewardTypeType = RewardTypeType;
@@ -3302,7 +3382,7 @@ type index_d$2_ValidateReferralRewardResponse = ValidateReferralRewardResponse;
3302
3382
  declare const index_d$2_getReferralReward: typeof getReferralReward;
3303
3383
  declare const index_d$2_queryReferralRewards: typeof queryReferralRewards;
3304
3384
  declare namespace index_d$2 {
3305
- export { type ActionEvent$2 as ActionEvent, type index_d$2_BulkGetReferralRewardsRequest as BulkGetReferralRewardsRequest, type index_d$2_BulkGetReferralRewardsResponse as BulkGetReferralRewardsResponse, type index_d$2_Coupon as Coupon, type index_d$2_CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOf, type index_d$2_CouponScope as CouponScope, type index_d$2_CouponScopeOrMinSubtotalOneOf as CouponScopeOrMinSubtotalOneOf, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type CursorQuery$2 as CursorQuery, type CursorQueryPagingMethodOneOf$2 as CursorQueryPagingMethodOneOf, type Cursors$2 as Cursors, index_d$2_DiscountType as DiscountType, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type index_d$2_FixedAmountDiscount as FixedAmountDiscount, type index_d$2_GetReferralRewardRequest as GetReferralRewardRequest, type index_d$2_GetReferralRewardResponse as GetReferralRewardResponse, type index_d$2_GetReferralRewardResponseNonNullableFields as GetReferralRewardResponseNonNullableFields, type index_d$2_Group as Group, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$2_LoyaltyPoints as LoyaltyPoints, type MessageEnvelope$2 as MessageEnvelope, type index_d$2_PercentageDiscount as PercentageDiscount, type index_d$2_QueryReferralRewardsOptions as QueryReferralRewardsOptions, type index_d$2_QueryReferralRewardsRequest as QueryReferralRewardsRequest, type index_d$2_QueryReferralRewardsResponse as QueryReferralRewardsResponse, type index_d$2_QueryReferralRewardsResponseNonNullableFields as QueryReferralRewardsResponseNonNullableFields, type index_d$2_ReferralReward as ReferralReward, type index_d$2_ReferralRewardNonNullableFields as ReferralRewardNonNullableFields, type index_d$2_ReferralRewardReceiverOneOf as ReferralRewardReceiverOneOf, type index_d$2_ReferralRewardRewardTypeOptionsOneOf as ReferralRewardRewardTypeOptionsOneOf, type ReferredFriendDetails$1 as ReferredFriendDetails, type RestoreInfo$2 as RestoreInfo, type index_d$2_Reward as Reward, type index_d$2_RewardOptionsOneOf as RewardOptionsOneOf, index_d$2_RewardTypeType as RewardTypeType, type index_d$2_RewardsInSite as RewardsInSite, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, Status$1 as Status, type SuccessfulReferralEvent$1 as SuccessfulReferralEvent, index_d$2_Type as Type, type index_d$2_V1Coupon as V1Coupon, type index_d$2_V1LoyaltyPoints as V1LoyaltyPoints, type index_d$2_ValidateReferralRewardRequest as ValidateReferralRewardRequest, type index_d$2_ValidateReferralRewardResponse as ValidateReferralRewardResponse, WebhookIdentityType$2 as WebhookIdentityType, index_d$2_getReferralReward as getReferralReward, index_d$2_queryReferralRewards as queryReferralRewards };
3385
+ export { type ActionEvent$2 as ActionEvent, type index_d$2_BulkGetReferralRewardsRequest as BulkGetReferralRewardsRequest, type index_d$2_BulkGetReferralRewardsResponse as BulkGetReferralRewardsResponse, type index_d$2_Coupon as Coupon, type index_d$2_CouponDiscountTypeOptionsOneOf as CouponDiscountTypeOptionsOneOf, type index_d$2_CouponScope as CouponScope, type index_d$2_CouponScopeOrMinSubtotalOneOf as CouponScopeOrMinSubtotalOneOf, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type CursorQuery$2 as CursorQuery, type CursorQueryPagingMethodOneOf$2 as CursorQueryPagingMethodOneOf, type Cursors$2 as Cursors, index_d$2_DiscountType as DiscountType, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$1 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type index_d$2_FixedAmountDiscount as FixedAmountDiscount, type index_d$2_GetReferralRewardRequest as GetReferralRewardRequest, type index_d$2_GetReferralRewardResponse as GetReferralRewardResponse, type index_d$2_GetReferralRewardResponseNonNullableFields as GetReferralRewardResponseNonNullableFields, type index_d$2_Group as Group, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$2_LoyaltyPoints as LoyaltyPoints, type MessageEnvelope$2 as MessageEnvelope, type index_d$2_PercentageDiscount as PercentageDiscount, type index_d$2_QueryReferralRewardsOptions as QueryReferralRewardsOptions, type index_d$2_QueryReferralRewardsRequest as QueryReferralRewardsRequest, type index_d$2_QueryReferralRewardsResponse as QueryReferralRewardsResponse, type index_d$2_QueryReferralRewardsResponseNonNullableFields as QueryReferralRewardsResponseNonNullableFields, type index_d$2_ReferralReward as ReferralReward, type index_d$2_ReferralRewardNonNullableFields as ReferralRewardNonNullableFields, type index_d$2_ReferralRewardReceiverOneOf as ReferralRewardReceiverOneOf, type index_d$2_ReferralRewardRewardTypeOptionsOneOf as ReferralRewardRewardTypeOptionsOneOf, type index_d$2_ReferralRewardsQueryBuilder as ReferralRewardsQueryBuilder, type index_d$2_ReferralRewardsQueryResult as ReferralRewardsQueryResult, type ReferredFriendDetails$1 as ReferredFriendDetails, type RestoreInfo$2 as RestoreInfo, type index_d$2_Reward as Reward, type index_d$2_RewardOptionsOneOf as RewardOptionsOneOf, index_d$2_RewardTypeType as RewardTypeType, type index_d$2_RewardsInSite as RewardsInSite, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, Status$1 as Status, type SuccessfulReferralEvent$1 as SuccessfulReferralEvent, index_d$2_Type as Type, type index_d$2_V1Coupon as V1Coupon, type index_d$2_V1LoyaltyPoints as V1LoyaltyPoints, type index_d$2_ValidateReferralRewardRequest as ValidateReferralRewardRequest, type index_d$2_ValidateReferralRewardResponse as ValidateReferralRewardResponse, WebhookIdentityType$2 as WebhookIdentityType, index_d$2_getReferralReward as getReferralReward, index_d$2_queryReferralRewards as queryReferralRewards };
3306
3386
  }
3307
3387
 
3308
3388
  interface ReferredFriend {