@wix/referral 1.0.31 → 1.0.33

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.31",
3
+ "version": "1.0.33",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -18,9 +18,9 @@
18
18
  "type-bundles"
19
19
  ],
20
20
  "dependencies": {
21
- "@wix/referral_customers": "1.0.13",
21
+ "@wix/referral_customers": "1.0.14",
22
22
  "@wix/referral_friends": "1.0.10",
23
- "@wix/referral_programs": "1.0.18",
23
+ "@wix/referral_programs": "1.0.19",
24
24
  "@wix/referral_rewards": "1.0.13",
25
25
  "@wix/referral_tracker": "1.0.15"
26
26
  },
@@ -47,5 +47,5 @@
47
47
  "fqdn": ""
48
48
  }
49
49
  },
50
- "falconPackageHash": "1b8665aae270d0132f239fd9950b1ddf08d7651ea5bd03f198c6e78b"
50
+ "falconPackageHash": "136d2f2d04c9655789579dc82cc20eb39a8e5dbaf30a0504b041b98e"
51
51
  }
@@ -411,17 +411,7 @@ type MaybeContext<T extends Descriptors> = globalThis.ContextualClient extends {
411
411
  interface ReferralProgram {
412
412
  /** Referral program name. */
413
413
  name?: string | null;
414
- /**
415
- * Status of the referral program.
416
- *
417
- * Possible values:
418
- *
419
- * - `UNKNOWN`: The status of the referral program is unknown. This value is not used.
420
- * - `DRAFT`: The referral program is in a draft state and is being modified. It is not yet active.
421
- * - `ACTIVE`: The referral program is active.
422
- * - `PAUSED`: The referral program is paused.
423
- * @readonly
424
- */
414
+ /** @readonly */
425
415
  status?: ProgramStatus;
426
416
  /**
427
417
  * Revision number, which increments by 1 each time the program is updated.
@@ -481,14 +471,15 @@ interface ReferralProgram {
481
471
  */
482
472
  premiumFeatures?: PremiumFeatures;
483
473
  }
474
+ /** Status of the referral program. */
484
475
  declare enum ProgramStatus {
485
- /** Program status is unknown. */
476
+ /** The status of the referral program is unknown. This value is not used. */
486
477
  UNKNOWN = "UNKNOWN",
487
- /** Initial program status. The program was created but not activated. */
478
+ /** The referral program is in a draft state and is being modified. It is not yet active. */
488
479
  DRAFT = "DRAFT",
489
- /** Program is active. */
480
+ /** The referral program is active. */
490
481
  ACTIVE = "ACTIVE",
491
- /** Program was manually disabled by the user. Can be reactivated. */
482
+ /** The referral program is paused. */
492
483
  PAUSED = "PAUSED"
493
484
  }
494
485
  interface Reward$2 extends RewardOptionsOneOf$1 {
@@ -4319,7 +4310,6 @@ declare namespace context$1 {
4319
4310
  export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_CreateReferredFriendOptions as CreateReferredFriendOptions, type context$1_CreateReferredFriendRequest as CreateReferredFriendRequest, type context$1_CreateReferredFriendResponse as CreateReferredFriendResponse, type context$1_CreateReferredFriendResponseNonNullableFields as CreateReferredFriendResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$1 as Cursors, type context$1_DeleteReferredFriendOptions as DeleteReferredFriendOptions, type context$1_DeleteReferredFriendRequest as DeleteReferredFriendRequest, type context$1_DeleteReferredFriendResponse as DeleteReferredFriendResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type context$1_Empty as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type context$1_GetReferredFriendByContactIdRequest as GetReferredFriendByContactIdRequest, type context$1_GetReferredFriendByContactIdResponse as GetReferredFriendByContactIdResponse, type context$1_GetReferredFriendByContactIdResponseNonNullableFields as GetReferredFriendByContactIdResponseNonNullableFields, type context$1_GetReferredFriendRequest as GetReferredFriendRequest, type context$1_GetReferredFriendResponse as GetReferredFriendResponse, type context$1_GetReferredFriendResponseNonNullableFields as GetReferredFriendResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type context$1_QueryReferredFriendRequest as QueryReferredFriendRequest, type context$1_QueryReferredFriendResponse as QueryReferredFriendResponse, type context$1_QueryReferredFriendResponseNonNullableFields as QueryReferredFriendResponseNonNullableFields, type context$1_ReferredFriend as ReferredFriend, type context$1_ReferredFriendCreatedEnvelope as ReferredFriendCreatedEnvelope, type context$1_ReferredFriendDeletedEnvelope as ReferredFriendDeletedEnvelope, type context$1_ReferredFriendDetails as ReferredFriendDetails, type context$1_ReferredFriendNonNullableFields as ReferredFriendNonNullableFields, type context$1_ReferredFriendUpdatedEnvelope as ReferredFriendUpdatedEnvelope, type context$1_ReferredFriendsQueryBuilder as ReferredFriendsQueryBuilder, type context$1_ReferredFriendsQueryResult as ReferredFriendsQueryResult, type RestoreInfo$1 as RestoreInfo, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, context$1_Status as Status, type context$1_SuccessfulReferralEvent as SuccessfulReferralEvent, type context$1_UpdateReferredFriend as UpdateReferredFriend, type context$1_UpdateReferredFriendRequest as UpdateReferredFriendRequest, type context$1_UpdateReferredFriendResponse as UpdateReferredFriendResponse, type context$1_UpdateReferredFriendResponseNonNullableFields as UpdateReferredFriendResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, type context$1__publicOnReferredFriendCreatedType as _publicOnReferredFriendCreatedType, type context$1__publicOnReferredFriendDeletedType as _publicOnReferredFriendDeletedType, type context$1__publicOnReferredFriendUpdatedType as _publicOnReferredFriendUpdatedType, context$1_createReferredFriend as createReferredFriend, context$1_deleteReferredFriend as deleteReferredFriend, context$1_getReferredFriend as getReferredFriend, context$1_getReferredFriendByContactId as getReferredFriendByContactId, context$1_onReferredFriendCreated as onReferredFriendCreated, context$1_onReferredFriendDeleted as onReferredFriendDeleted, context$1_onReferredFriendUpdated as onReferredFriendUpdated, onReferredFriendCreated$1 as publicOnReferredFriendCreated, onReferredFriendDeleted$1 as publicOnReferredFriendDeleted, onReferredFriendUpdated$1 as publicOnReferredFriendUpdated, context$1_queryReferredFriend as queryReferredFriend, context$1_updateReferredFriend as updateReferredFriend };
4320
4311
  }
4321
4312
 
4322
- /** ReferringCustomer is the main entity of ReferringCustomers. */
4323
4313
  interface ReferringCustomer {
4324
4314
  /**
4325
4315
  * ID of the referring customer.
@@ -4757,12 +4747,19 @@ interface GetReferringCustomerByReferralCodeSignature {
4757
4747
  declare function queryReferringCustomers$1(httpClient: HttpClient): QueryReferringCustomersSignature;
4758
4748
  interface QueryReferringCustomersSignature {
4759
4749
  /**
4760
- * Retrieves a list of referred friends, given the provided paging, filtering, and sorting.
4750
+ * Creates a query to retrieve a list of referring customers.
4761
4751
  *
4762
- * To learn about working with _Query_ endpoints, see
4763
- * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
4764
- * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
4765
- * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
4752
+ * The `queryReferringCustomers()` function builds a query to retrieve a list of events and returns a `ReferringCustomersQueryBuilder` object.
4753
+ *
4754
+ * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
4755
+ *
4756
+ * You can refine the query by chaining `ReferringCustomersQueryBuilder` functions onto the query. `ReferringCustomersQueryBuilder` functions enable you to sort, filter, and control the results `queryReferringCustomers()` returns.
4757
+ *
4758
+ * `queryReferringCustomers()` runs with these `ReferringCustomersQueryBuilder` defaults, which you can override:
4759
+ *
4760
+ * - `limit(50)`
4761
+ * - `descending("_createdDate")`
4762
+ * The functions that are chained to `queryReferringCustomers()` are applied in the order they're called. For example, if you apply ascending('referralCode') and then descending('contactID'), the results are sorted first by the referral code, and then, if there are multiple results with the same referral code, the items are sorted by contact ID.
4766
4763
  */
4767
4764
  (): ReferringCustomersQueryBuilder;
4768
4765
  }
@@ -411,17 +411,7 @@ type MaybeContext<T extends Descriptors> = globalThis.ContextualClient extends {
411
411
  interface ReferralProgram {
412
412
  /** Referral program name. */
413
413
  name?: string | null;
414
- /**
415
- * Status of the referral program.
416
- *
417
- * Possible values:
418
- *
419
- * - `UNKNOWN`: The status of the referral program is unknown. This value is not used.
420
- * - `DRAFT`: The referral program is in a draft state and is being modified. It is not yet active.
421
- * - `ACTIVE`: The referral program is active.
422
- * - `PAUSED`: The referral program is paused.
423
- * @readonly
424
- */
414
+ /** @readonly */
425
415
  status?: ProgramStatus;
426
416
  /**
427
417
  * Revision number, which increments by 1 each time the program is updated.
@@ -481,14 +471,15 @@ interface ReferralProgram {
481
471
  */
482
472
  premiumFeatures?: PremiumFeatures;
483
473
  }
474
+ /** Status of the referral program. */
484
475
  declare enum ProgramStatus {
485
- /** Program status is unknown. */
476
+ /** The status of the referral program is unknown. This value is not used. */
486
477
  UNKNOWN = "UNKNOWN",
487
- /** Initial program status. The program was created but not activated. */
478
+ /** The referral program is in a draft state and is being modified. It is not yet active. */
488
479
  DRAFT = "DRAFT",
489
- /** Program is active. */
480
+ /** The referral program is active. */
490
481
  ACTIVE = "ACTIVE",
491
- /** Program was manually disabled by the user. Can be reactivated. */
482
+ /** The referral program is paused. */
492
483
  PAUSED = "PAUSED"
493
484
  }
494
485
  interface Reward$2 extends RewardOptionsOneOf$1 {
@@ -4319,7 +4310,6 @@ declare namespace index_d$1 {
4319
4310
  export { type ActionEvent$1 as ActionEvent, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_CreateReferredFriendOptions as CreateReferredFriendOptions, type index_d$1_CreateReferredFriendRequest as CreateReferredFriendRequest, type index_d$1_CreateReferredFriendResponse as CreateReferredFriendResponse, type index_d$1_CreateReferredFriendResponseNonNullableFields as CreateReferredFriendResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$1 as Cursors, type index_d$1_DeleteReferredFriendOptions as DeleteReferredFriendOptions, type index_d$1_DeleteReferredFriendRequest as DeleteReferredFriendRequest, type index_d$1_DeleteReferredFriendResponse as DeleteReferredFriendResponse, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_Empty as Empty, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_GetReferredFriendByContactIdRequest as GetReferredFriendByContactIdRequest, type index_d$1_GetReferredFriendByContactIdResponse as GetReferredFriendByContactIdResponse, type index_d$1_GetReferredFriendByContactIdResponseNonNullableFields as GetReferredFriendByContactIdResponseNonNullableFields, type index_d$1_GetReferredFriendRequest as GetReferredFriendRequest, type index_d$1_GetReferredFriendResponse as GetReferredFriendResponse, type index_d$1_GetReferredFriendResponseNonNullableFields as GetReferredFriendResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_QueryReferredFriendRequest as QueryReferredFriendRequest, type index_d$1_QueryReferredFriendResponse as QueryReferredFriendResponse, type index_d$1_QueryReferredFriendResponseNonNullableFields as QueryReferredFriendResponseNonNullableFields, type index_d$1_ReferredFriend as ReferredFriend, type index_d$1_ReferredFriendCreatedEnvelope as ReferredFriendCreatedEnvelope, type index_d$1_ReferredFriendDeletedEnvelope as ReferredFriendDeletedEnvelope, type index_d$1_ReferredFriendDetails as ReferredFriendDetails, type index_d$1_ReferredFriendNonNullableFields as ReferredFriendNonNullableFields, type index_d$1_ReferredFriendUpdatedEnvelope as ReferredFriendUpdatedEnvelope, type index_d$1_ReferredFriendsQueryBuilder as ReferredFriendsQueryBuilder, type index_d$1_ReferredFriendsQueryResult as ReferredFriendsQueryResult, type RestoreInfo$1 as RestoreInfo, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, index_d$1_Status as Status, type index_d$1_SuccessfulReferralEvent as SuccessfulReferralEvent, type index_d$1_UpdateReferredFriend as UpdateReferredFriend, type index_d$1_UpdateReferredFriendRequest as UpdateReferredFriendRequest, type index_d$1_UpdateReferredFriendResponse as UpdateReferredFriendResponse, type index_d$1_UpdateReferredFriendResponseNonNullableFields as UpdateReferredFriendResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, type index_d$1__publicOnReferredFriendCreatedType as _publicOnReferredFriendCreatedType, type index_d$1__publicOnReferredFriendDeletedType as _publicOnReferredFriendDeletedType, type index_d$1__publicOnReferredFriendUpdatedType as _publicOnReferredFriendUpdatedType, index_d$1_createReferredFriend as createReferredFriend, index_d$1_deleteReferredFriend as deleteReferredFriend, index_d$1_getReferredFriend as getReferredFriend, index_d$1_getReferredFriendByContactId as getReferredFriendByContactId, index_d$1_onReferredFriendCreated as onReferredFriendCreated, index_d$1_onReferredFriendDeleted as onReferredFriendDeleted, index_d$1_onReferredFriendUpdated as onReferredFriendUpdated, onReferredFriendCreated$1 as publicOnReferredFriendCreated, onReferredFriendDeleted$1 as publicOnReferredFriendDeleted, onReferredFriendUpdated$1 as publicOnReferredFriendUpdated, index_d$1_queryReferredFriend as queryReferredFriend, index_d$1_updateReferredFriend as updateReferredFriend };
4320
4311
  }
4321
4312
 
4322
- /** ReferringCustomer is the main entity of ReferringCustomers. */
4323
4313
  interface ReferringCustomer {
4324
4314
  /**
4325
4315
  * ID of the referring customer.
@@ -4757,12 +4747,19 @@ interface GetReferringCustomerByReferralCodeSignature {
4757
4747
  declare function queryReferringCustomers$1(httpClient: HttpClient): QueryReferringCustomersSignature;
4758
4748
  interface QueryReferringCustomersSignature {
4759
4749
  /**
4760
- * Retrieves a list of referred friends, given the provided paging, filtering, and sorting.
4750
+ * Creates a query to retrieve a list of referring customers.
4761
4751
  *
4762
- * To learn about working with _Query_ endpoints, see
4763
- * [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
4764
- * [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
4765
- * and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
4752
+ * The `queryReferringCustomers()` function builds a query to retrieve a list of events and returns a `ReferringCustomersQueryBuilder` object.
4753
+ *
4754
+ * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
4755
+ *
4756
+ * You can refine the query by chaining `ReferringCustomersQueryBuilder` functions onto the query. `ReferringCustomersQueryBuilder` functions enable you to sort, filter, and control the results `queryReferringCustomers()` returns.
4757
+ *
4758
+ * `queryReferringCustomers()` runs with these `ReferringCustomersQueryBuilder` defaults, which you can override:
4759
+ *
4760
+ * - `limit(50)`
4761
+ * - `descending("_createdDate")`
4762
+ * The functions that are chained to `queryReferringCustomers()` are applied in the order they're called. For example, if you apply ascending('referralCode') and then descending('contactID'), the results are sorted first by the referral code, and then, if there are multiple results with the same referral code, the items are sorted by contact ID.
4766
4763
  */
4767
4764
  (): ReferringCustomersQueryBuilder;
4768
4765
  }
@@ -1,17 +1,7 @@
1
1
  interface ReferralProgram$1 {
2
2
  /** Referral program name. */
3
3
  name?: string | null;
4
- /**
5
- * Status of the referral program.
6
- *
7
- * Possible values:
8
- *
9
- * - `UNKNOWN`: The status of the referral program is unknown. This value is not used.
10
- * - `DRAFT`: The referral program is in a draft state and is being modified. It is not yet active.
11
- * - `ACTIVE`: The referral program is active.
12
- * - `PAUSED`: The referral program is paused.
13
- * @readonly
14
- */
4
+ /** @readonly */
15
5
  status?: ProgramStatus$1;
16
6
  /**
17
7
  * Revision number, which increments by 1 each time the program is updated.
@@ -71,14 +61,15 @@ interface ReferralProgram$1 {
71
61
  */
72
62
  premiumFeatures?: PremiumFeatures$1;
73
63
  }
64
+ /** Status of the referral program. */
74
65
  declare enum ProgramStatus$1 {
75
- /** Program status is unknown. */
66
+ /** The status of the referral program is unknown. This value is not used. */
76
67
  UNKNOWN = "UNKNOWN",
77
- /** Initial program status. The program was created but not activated. */
68
+ /** The referral program is in a draft state and is being modified. It is not yet active. */
78
69
  DRAFT = "DRAFT",
79
- /** Program is active. */
70
+ /** The referral program is active. */
80
71
  ACTIVE = "ACTIVE",
81
- /** Program was manually disabled by the user. Can be reactivated. */
72
+ /** The referral program is paused. */
82
73
  PAUSED = "PAUSED"
83
74
  }
84
75
  interface Reward$3 extends RewardOptionsOneOf$1 {
@@ -383,17 +374,7 @@ interface GetReferralProgramPremiumFeaturesResponseNonNullableFields$1 {
383
374
  interface ReferralProgram {
384
375
  /** Referral program name. */
385
376
  name?: string | null;
386
- /**
387
- * Status of the referral program.
388
- *
389
- * Possible values:
390
- *
391
- * - `UNKNOWN`: The status of the referral program is unknown. This value is not used.
392
- * - `DRAFT`: The referral program is in a draft state and is being modified. It is not yet active.
393
- * - `ACTIVE`: The referral program is active.
394
- * - `PAUSED`: The referral program is paused.
395
- * @readonly
396
- */
377
+ /** @readonly */
397
378
  status?: ProgramStatus;
398
379
  /**
399
380
  * Revision number, which increments by 1 each time the program is updated.
@@ -453,14 +434,15 @@ interface ReferralProgram {
453
434
  */
454
435
  premiumFeatures?: PremiumFeatures;
455
436
  }
437
+ /** Status of the referral program. */
456
438
  declare enum ProgramStatus {
457
- /** Program status is unknown. */
439
+ /** The status of the referral program is unknown. This value is not used. */
458
440
  UNKNOWN = "UNKNOWN",
459
- /** Initial program status. The program was created but not activated. */
441
+ /** The referral program is in a draft state and is being modified. It is not yet active. */
460
442
  DRAFT = "DRAFT",
461
- /** Program is active. */
443
+ /** The referral program is active. */
462
444
  ACTIVE = "ACTIVE",
463
- /** Program was manually disabled by the user. Can be reactivated. */
445
+ /** The referral program is paused. */
464
446
  PAUSED = "PAUSED"
465
447
  }
466
448
  interface Reward$2 extends RewardOptionsOneOf {
@@ -3018,7 +3000,6 @@ declare namespace meta$1 {
3018
3000
  export { type __PublicMethodMetaInfo$1 as __PublicMethodMetaInfo, meta$1_createReferredFriend as createReferredFriend, meta$1_deleteReferredFriend as deleteReferredFriend, meta$1_getReferredFriend as getReferredFriend, meta$1_getReferredFriendByContactId as getReferredFriendByContactId, meta$1_queryReferredFriend as queryReferredFriend, meta$1_updateReferredFriend as updateReferredFriend };
3019
3001
  }
3020
3002
 
3021
- /** ReferringCustomer is the main entity of ReferringCustomers. */
3022
3003
  interface ReferringCustomer$1 {
3023
3004
  /**
3024
3005
  * ID of the referring customer.
@@ -3180,7 +3161,6 @@ interface QueryReferringCustomersResponseNonNullableFields$1 {
3180
3161
  referringCustomers: ReferringCustomerNonNullableFields$1[];
3181
3162
  }
3182
3163
 
3183
- /** ReferringCustomer is the main entity of ReferringCustomers. */
3184
3164
  interface ReferringCustomer {
3185
3165
  /**
3186
3166
  * ID of the referring customer.