@wix/referral 1.0.21 → 1.0.23
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.
|
|
3
|
+
"version": "1.0.23",
|
|
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.
|
|
24
|
-
"@wix/referral_rewards": "1.0.
|
|
23
|
+
"@wix/referral_programs": "1.0.11",
|
|
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": "
|
|
50
|
+
"falconPackageHash": "d47cf7b84c9699f7dd8b7868602d5fceed3338a9fec7e292989b0fa3"
|
|
51
51
|
}
|
|
@@ -697,7 +697,12 @@ declare enum Namespace {
|
|
|
697
697
|
*/
|
|
698
698
|
BRANDED_FIRST = "BRANDED_FIRST",
|
|
699
699
|
/** Nownia.com Siteless account management for Ai Scheduling Assistant. */
|
|
700
|
-
NOWNIA = "NOWNIA"
|
|
700
|
+
NOWNIA = "NOWNIA",
|
|
701
|
+
/**
|
|
702
|
+
* UGC Templates are templates that are created by users for personal use and to sale to other users.
|
|
703
|
+
* The Partners company owns this namespace.
|
|
704
|
+
*/
|
|
705
|
+
UGC_TEMPLATE = "UGC_TEMPLATE"
|
|
701
706
|
}
|
|
702
707
|
/** Site transferred to another user. */
|
|
703
708
|
interface SiteTransferred {
|
|
@@ -1505,14 +1510,14 @@ interface ProgramUpdatedEnvelope {
|
|
|
1505
1510
|
entity: ReferralProgram;
|
|
1506
1511
|
metadata: EventMetadata$3;
|
|
1507
1512
|
}
|
|
1508
|
-
interface QueryCursorResult$
|
|
1513
|
+
interface QueryCursorResult$4 {
|
|
1509
1514
|
cursors: Cursors$4;
|
|
1510
1515
|
hasNext: () => boolean;
|
|
1511
1516
|
hasPrev: () => boolean;
|
|
1512
1517
|
length: number;
|
|
1513
1518
|
pageSize: number;
|
|
1514
1519
|
}
|
|
1515
|
-
interface ReferralProgramsQueryResult extends QueryCursorResult$
|
|
1520
|
+
interface ReferralProgramsQueryResult extends QueryCursorResult$4 {
|
|
1516
1521
|
items: ReferralProgram[];
|
|
1517
1522
|
query: ReferralProgramsQueryBuilder;
|
|
1518
1523
|
next: () => Promise<ReferralProgramsQueryResult>;
|
|
@@ -2508,14 +2513,14 @@ interface ReferralEventCreatedEnvelope {
|
|
|
2508
2513
|
entity: ReferralEvent;
|
|
2509
2514
|
metadata: EventMetadata$2;
|
|
2510
2515
|
}
|
|
2511
|
-
interface QueryCursorResult$
|
|
2516
|
+
interface QueryCursorResult$3 {
|
|
2512
2517
|
cursors: Cursors$3;
|
|
2513
2518
|
hasNext: () => boolean;
|
|
2514
2519
|
hasPrev: () => boolean;
|
|
2515
2520
|
length: number;
|
|
2516
2521
|
pageSize: number;
|
|
2517
2522
|
}
|
|
2518
|
-
interface ReferralEventsQueryResult extends QueryCursorResult$
|
|
2523
|
+
interface ReferralEventsQueryResult extends QueryCursorResult$3 {
|
|
2519
2524
|
items: ReferralEvent[];
|
|
2520
2525
|
query: ReferralEventsQueryBuilder;
|
|
2521
2526
|
next: () => Promise<ReferralEventsQueryResult>;
|
|
@@ -3231,7 +3236,84 @@ interface QueryReferralRewardsResponseNonNullableFields {
|
|
|
3231
3236
|
}
|
|
3232
3237
|
interface QueryReferralRewardsOptions {
|
|
3233
3238
|
/** Contact ID to filter rewards by. Use `"me"` for current identity's rewards. */
|
|
3234
|
-
contactId?: string | null;
|
|
3239
|
+
contactId?: string | null | undefined;
|
|
3240
|
+
}
|
|
3241
|
+
interface QueryCursorResult$2 {
|
|
3242
|
+
cursors: Cursors$2;
|
|
3243
|
+
hasNext: () => boolean;
|
|
3244
|
+
hasPrev: () => boolean;
|
|
3245
|
+
length: number;
|
|
3246
|
+
pageSize: number;
|
|
3247
|
+
}
|
|
3248
|
+
interface ReferralRewardsQueryResult extends QueryCursorResult$2 {
|
|
3249
|
+
items: ReferralReward[];
|
|
3250
|
+
query: ReferralRewardsQueryBuilder;
|
|
3251
|
+
next: () => Promise<ReferralRewardsQueryResult>;
|
|
3252
|
+
prev: () => Promise<ReferralRewardsQueryResult>;
|
|
3253
|
+
}
|
|
3254
|
+
interface ReferralRewardsQueryBuilder {
|
|
3255
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
3256
|
+
* @param value - Value to compare against.
|
|
3257
|
+
* @documentationMaturity preview
|
|
3258
|
+
*/
|
|
3259
|
+
eq: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: any) => ReferralRewardsQueryBuilder;
|
|
3260
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
3261
|
+
* @param value - Value to compare against.
|
|
3262
|
+
* @documentationMaturity preview
|
|
3263
|
+
*/
|
|
3264
|
+
ne: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: any) => ReferralRewardsQueryBuilder;
|
|
3265
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
3266
|
+
* @param value - Value to compare against.
|
|
3267
|
+
* @documentationMaturity preview
|
|
3268
|
+
*/
|
|
3269
|
+
ge: (propertyName: '_createdDate' | '_updatedDate', value: any) => ReferralRewardsQueryBuilder;
|
|
3270
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
3271
|
+
* @param value - Value to compare against.
|
|
3272
|
+
* @documentationMaturity preview
|
|
3273
|
+
*/
|
|
3274
|
+
gt: (propertyName: '_createdDate' | '_updatedDate', value: any) => ReferralRewardsQueryBuilder;
|
|
3275
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
3276
|
+
* @param value - Value to compare against.
|
|
3277
|
+
* @documentationMaturity preview
|
|
3278
|
+
*/
|
|
3279
|
+
le: (propertyName: '_createdDate' | '_updatedDate', value: any) => ReferralRewardsQueryBuilder;
|
|
3280
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
3281
|
+
* @param value - Value to compare against.
|
|
3282
|
+
* @documentationMaturity preview
|
|
3283
|
+
*/
|
|
3284
|
+
lt: (propertyName: '_createdDate' | '_updatedDate', value: any) => ReferralRewardsQueryBuilder;
|
|
3285
|
+
/** @param propertyName - Property whose value is compared with `string`.
|
|
3286
|
+
* @param string - String to compare against. Case-insensitive.
|
|
3287
|
+
* @documentationMaturity preview
|
|
3288
|
+
*/
|
|
3289
|
+
startsWith: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId', value: string) => ReferralRewardsQueryBuilder;
|
|
3290
|
+
/** @param propertyName - Property whose value is compared with `values`.
|
|
3291
|
+
* @param values - List of values to compare against.
|
|
3292
|
+
* @documentationMaturity preview
|
|
3293
|
+
*/
|
|
3294
|
+
hasSome: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: any[]) => ReferralRewardsQueryBuilder;
|
|
3295
|
+
/** @documentationMaturity preview */
|
|
3296
|
+
in: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: any) => ReferralRewardsQueryBuilder;
|
|
3297
|
+
/** @documentationMaturity preview */
|
|
3298
|
+
exists: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: boolean) => ReferralRewardsQueryBuilder;
|
|
3299
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
3300
|
+
* @documentationMaturity preview
|
|
3301
|
+
*/
|
|
3302
|
+
ascending: (...propertyNames: Array<'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType'>) => ReferralRewardsQueryBuilder;
|
|
3303
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
3304
|
+
* @documentationMaturity preview
|
|
3305
|
+
*/
|
|
3306
|
+
descending: (...propertyNames: Array<'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType'>) => ReferralRewardsQueryBuilder;
|
|
3307
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
3308
|
+
* @documentationMaturity preview
|
|
3309
|
+
*/
|
|
3310
|
+
limit: (limit: number) => ReferralRewardsQueryBuilder;
|
|
3311
|
+
/** @param cursor - A pointer to specific record
|
|
3312
|
+
* @documentationMaturity preview
|
|
3313
|
+
*/
|
|
3314
|
+
skipTo: (cursor: string) => ReferralRewardsQueryBuilder;
|
|
3315
|
+
/** @documentationMaturity preview */
|
|
3316
|
+
find: () => Promise<ReferralRewardsQueryResult>;
|
|
3235
3317
|
}
|
|
3236
3318
|
|
|
3237
3319
|
declare function getReferralReward$1(httpClient: HttpClient): GetReferralRewardSignature;
|
|
@@ -3252,9 +3334,8 @@ interface QueryReferralRewardsSignature {
|
|
|
3252
3334
|
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
|
|
3253
3335
|
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
|
|
3254
3336
|
* and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
3255
|
-
* @param - Query to filter referral rewards.
|
|
3256
3337
|
*/
|
|
3257
|
-
(
|
|
3338
|
+
(options?: QueryReferralRewardsOptions | undefined): ReferralRewardsQueryBuilder;
|
|
3258
3339
|
}
|
|
3259
3340
|
|
|
3260
3341
|
declare const getReferralReward: BuildRESTFunction<typeof getReferralReward$1> & typeof getReferralReward$1;
|
|
@@ -3283,6 +3364,8 @@ type context$2_ReferralReward = ReferralReward;
|
|
|
3283
3364
|
type context$2_ReferralRewardNonNullableFields = ReferralRewardNonNullableFields;
|
|
3284
3365
|
type context$2_ReferralRewardReceiverOneOf = ReferralRewardReceiverOneOf;
|
|
3285
3366
|
type context$2_ReferralRewardRewardTypeOptionsOneOf = ReferralRewardRewardTypeOptionsOneOf;
|
|
3367
|
+
type context$2_ReferralRewardsQueryBuilder = ReferralRewardsQueryBuilder;
|
|
3368
|
+
type context$2_ReferralRewardsQueryResult = ReferralRewardsQueryResult;
|
|
3286
3369
|
type context$2_Reward = Reward;
|
|
3287
3370
|
type context$2_RewardOptionsOneOf = RewardOptionsOneOf;
|
|
3288
3371
|
type context$2_RewardTypeType = RewardTypeType;
|
|
@@ -3297,7 +3380,7 @@ type context$2_ValidateReferralRewardResponse = ValidateReferralRewardResponse;
|
|
|
3297
3380
|
declare const context$2_getReferralReward: typeof getReferralReward;
|
|
3298
3381
|
declare const context$2_queryReferralRewards: typeof queryReferralRewards;
|
|
3299
3382
|
declare namespace context$2 {
|
|
3300
|
-
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 };
|
|
3383
|
+
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 };
|
|
3301
3384
|
}
|
|
3302
3385
|
|
|
3303
3386
|
interface ReferredFriend {
|
|
@@ -697,7 +697,12 @@ declare enum Namespace {
|
|
|
697
697
|
*/
|
|
698
698
|
BRANDED_FIRST = "BRANDED_FIRST",
|
|
699
699
|
/** Nownia.com Siteless account management for Ai Scheduling Assistant. */
|
|
700
|
-
NOWNIA = "NOWNIA"
|
|
700
|
+
NOWNIA = "NOWNIA",
|
|
701
|
+
/**
|
|
702
|
+
* UGC Templates are templates that are created by users for personal use and to sale to other users.
|
|
703
|
+
* The Partners company owns this namespace.
|
|
704
|
+
*/
|
|
705
|
+
UGC_TEMPLATE = "UGC_TEMPLATE"
|
|
701
706
|
}
|
|
702
707
|
/** Site transferred to another user. */
|
|
703
708
|
interface SiteTransferred {
|
|
@@ -1505,14 +1510,14 @@ interface ProgramUpdatedEnvelope {
|
|
|
1505
1510
|
entity: ReferralProgram;
|
|
1506
1511
|
metadata: EventMetadata$3;
|
|
1507
1512
|
}
|
|
1508
|
-
interface QueryCursorResult$
|
|
1513
|
+
interface QueryCursorResult$4 {
|
|
1509
1514
|
cursors: Cursors$4;
|
|
1510
1515
|
hasNext: () => boolean;
|
|
1511
1516
|
hasPrev: () => boolean;
|
|
1512
1517
|
length: number;
|
|
1513
1518
|
pageSize: number;
|
|
1514
1519
|
}
|
|
1515
|
-
interface ReferralProgramsQueryResult extends QueryCursorResult$
|
|
1520
|
+
interface ReferralProgramsQueryResult extends QueryCursorResult$4 {
|
|
1516
1521
|
items: ReferralProgram[];
|
|
1517
1522
|
query: ReferralProgramsQueryBuilder;
|
|
1518
1523
|
next: () => Promise<ReferralProgramsQueryResult>;
|
|
@@ -2508,14 +2513,14 @@ interface ReferralEventCreatedEnvelope {
|
|
|
2508
2513
|
entity: ReferralEvent;
|
|
2509
2514
|
metadata: EventMetadata$2;
|
|
2510
2515
|
}
|
|
2511
|
-
interface QueryCursorResult$
|
|
2516
|
+
interface QueryCursorResult$3 {
|
|
2512
2517
|
cursors: Cursors$3;
|
|
2513
2518
|
hasNext: () => boolean;
|
|
2514
2519
|
hasPrev: () => boolean;
|
|
2515
2520
|
length: number;
|
|
2516
2521
|
pageSize: number;
|
|
2517
2522
|
}
|
|
2518
|
-
interface ReferralEventsQueryResult extends QueryCursorResult$
|
|
2523
|
+
interface ReferralEventsQueryResult extends QueryCursorResult$3 {
|
|
2519
2524
|
items: ReferralEvent[];
|
|
2520
2525
|
query: ReferralEventsQueryBuilder;
|
|
2521
2526
|
next: () => Promise<ReferralEventsQueryResult>;
|
|
@@ -3231,7 +3236,84 @@ interface QueryReferralRewardsResponseNonNullableFields {
|
|
|
3231
3236
|
}
|
|
3232
3237
|
interface QueryReferralRewardsOptions {
|
|
3233
3238
|
/** Contact ID to filter rewards by. Use `"me"` for current identity's rewards. */
|
|
3234
|
-
contactId?: string | null;
|
|
3239
|
+
contactId?: string | null | undefined;
|
|
3240
|
+
}
|
|
3241
|
+
interface QueryCursorResult$2 {
|
|
3242
|
+
cursors: Cursors$2;
|
|
3243
|
+
hasNext: () => boolean;
|
|
3244
|
+
hasPrev: () => boolean;
|
|
3245
|
+
length: number;
|
|
3246
|
+
pageSize: number;
|
|
3247
|
+
}
|
|
3248
|
+
interface ReferralRewardsQueryResult extends QueryCursorResult$2 {
|
|
3249
|
+
items: ReferralReward[];
|
|
3250
|
+
query: ReferralRewardsQueryBuilder;
|
|
3251
|
+
next: () => Promise<ReferralRewardsQueryResult>;
|
|
3252
|
+
prev: () => Promise<ReferralRewardsQueryResult>;
|
|
3253
|
+
}
|
|
3254
|
+
interface ReferralRewardsQueryBuilder {
|
|
3255
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
3256
|
+
* @param value - Value to compare against.
|
|
3257
|
+
* @documentationMaturity preview
|
|
3258
|
+
*/
|
|
3259
|
+
eq: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: any) => ReferralRewardsQueryBuilder;
|
|
3260
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
3261
|
+
* @param value - Value to compare against.
|
|
3262
|
+
* @documentationMaturity preview
|
|
3263
|
+
*/
|
|
3264
|
+
ne: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: any) => ReferralRewardsQueryBuilder;
|
|
3265
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
3266
|
+
* @param value - Value to compare against.
|
|
3267
|
+
* @documentationMaturity preview
|
|
3268
|
+
*/
|
|
3269
|
+
ge: (propertyName: '_createdDate' | '_updatedDate', value: any) => ReferralRewardsQueryBuilder;
|
|
3270
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
3271
|
+
* @param value - Value to compare against.
|
|
3272
|
+
* @documentationMaturity preview
|
|
3273
|
+
*/
|
|
3274
|
+
gt: (propertyName: '_createdDate' | '_updatedDate', value: any) => ReferralRewardsQueryBuilder;
|
|
3275
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
3276
|
+
* @param value - Value to compare against.
|
|
3277
|
+
* @documentationMaturity preview
|
|
3278
|
+
*/
|
|
3279
|
+
le: (propertyName: '_createdDate' | '_updatedDate', value: any) => ReferralRewardsQueryBuilder;
|
|
3280
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
3281
|
+
* @param value - Value to compare against.
|
|
3282
|
+
* @documentationMaturity preview
|
|
3283
|
+
*/
|
|
3284
|
+
lt: (propertyName: '_createdDate' | '_updatedDate', value: any) => ReferralRewardsQueryBuilder;
|
|
3285
|
+
/** @param propertyName - Property whose value is compared with `string`.
|
|
3286
|
+
* @param string - String to compare against. Case-insensitive.
|
|
3287
|
+
* @documentationMaturity preview
|
|
3288
|
+
*/
|
|
3289
|
+
startsWith: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId', value: string) => ReferralRewardsQueryBuilder;
|
|
3290
|
+
/** @param propertyName - Property whose value is compared with `values`.
|
|
3291
|
+
* @param values - List of values to compare against.
|
|
3292
|
+
* @documentationMaturity preview
|
|
3293
|
+
*/
|
|
3294
|
+
hasSome: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: any[]) => ReferralRewardsQueryBuilder;
|
|
3295
|
+
/** @documentationMaturity preview */
|
|
3296
|
+
in: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: any) => ReferralRewardsQueryBuilder;
|
|
3297
|
+
/** @documentationMaturity preview */
|
|
3298
|
+
exists: (propertyName: 'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType', value: boolean) => ReferralRewardsQueryBuilder;
|
|
3299
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
3300
|
+
* @documentationMaturity preview
|
|
3301
|
+
*/
|
|
3302
|
+
ascending: (...propertyNames: Array<'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType'>) => ReferralRewardsQueryBuilder;
|
|
3303
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
3304
|
+
* @documentationMaturity preview
|
|
3305
|
+
*/
|
|
3306
|
+
descending: (...propertyNames: Array<'rewardedReferringCustomerId' | 'rewardedReferredFriendId' | '_createdDate' | '_updatedDate' | 'rewardType'>) => ReferralRewardsQueryBuilder;
|
|
3307
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
3308
|
+
* @documentationMaturity preview
|
|
3309
|
+
*/
|
|
3310
|
+
limit: (limit: number) => ReferralRewardsQueryBuilder;
|
|
3311
|
+
/** @param cursor - A pointer to specific record
|
|
3312
|
+
* @documentationMaturity preview
|
|
3313
|
+
*/
|
|
3314
|
+
skipTo: (cursor: string) => ReferralRewardsQueryBuilder;
|
|
3315
|
+
/** @documentationMaturity preview */
|
|
3316
|
+
find: () => Promise<ReferralRewardsQueryResult>;
|
|
3235
3317
|
}
|
|
3236
3318
|
|
|
3237
3319
|
declare function getReferralReward$1(httpClient: HttpClient): GetReferralRewardSignature;
|
|
@@ -3252,9 +3334,8 @@ interface QueryReferralRewardsSignature {
|
|
|
3252
3334
|
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
|
|
3253
3335
|
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
|
|
3254
3336
|
* and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
3255
|
-
* @param - Query to filter referral rewards.
|
|
3256
3337
|
*/
|
|
3257
|
-
(
|
|
3338
|
+
(options?: QueryReferralRewardsOptions | undefined): ReferralRewardsQueryBuilder;
|
|
3258
3339
|
}
|
|
3259
3340
|
|
|
3260
3341
|
declare const getReferralReward: BuildRESTFunction<typeof getReferralReward$1> & typeof getReferralReward$1;
|
|
@@ -3283,6 +3364,8 @@ type index_d$2_ReferralReward = ReferralReward;
|
|
|
3283
3364
|
type index_d$2_ReferralRewardNonNullableFields = ReferralRewardNonNullableFields;
|
|
3284
3365
|
type index_d$2_ReferralRewardReceiverOneOf = ReferralRewardReceiverOneOf;
|
|
3285
3366
|
type index_d$2_ReferralRewardRewardTypeOptionsOneOf = ReferralRewardRewardTypeOptionsOneOf;
|
|
3367
|
+
type index_d$2_ReferralRewardsQueryBuilder = ReferralRewardsQueryBuilder;
|
|
3368
|
+
type index_d$2_ReferralRewardsQueryResult = ReferralRewardsQueryResult;
|
|
3286
3369
|
type index_d$2_Reward = Reward;
|
|
3287
3370
|
type index_d$2_RewardOptionsOneOf = RewardOptionsOneOf;
|
|
3288
3371
|
type index_d$2_RewardTypeType = RewardTypeType;
|
|
@@ -3297,7 +3380,7 @@ type index_d$2_ValidateReferralRewardResponse = ValidateReferralRewardResponse;
|
|
|
3297
3380
|
declare const index_d$2_getReferralReward: typeof getReferralReward;
|
|
3298
3381
|
declare const index_d$2_queryReferralRewards: typeof queryReferralRewards;
|
|
3299
3382
|
declare namespace index_d$2 {
|
|
3300
|
-
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 };
|
|
3383
|
+
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 };
|
|
3301
3384
|
}
|
|
3302
3385
|
|
|
3303
3386
|
interface ReferredFriend {
|