@wix/referral 1.0.11 → 1.0.12

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.
@@ -933,7 +933,6 @@ declare namespace meta$4 {
933
933
  export { type __PublicMethodMetaInfo$4 as __PublicMethodMetaInfo, meta$4_activateReferralProgram as activateReferralProgram, meta$4_generateAiSocialMediaPostsSuggestions as generateAiSocialMediaPostsSuggestions, meta$4_getAiSocialMediaPostsSuggestions as getAiSocialMediaPostsSuggestions, meta$4_getReferralProgram as getReferralProgram, meta$4_getReferralProgramPremiumFeatures as getReferralProgramPremiumFeatures, meta$4_pauseReferralProgram as pauseReferralProgram, meta$4_queryReferralPrograms as queryReferralPrograms, meta$4_updateReferralProgram as updateReferralProgram };
934
934
  }
935
935
 
936
- /** ReferralEvent. */
937
936
  interface ReferralEvent$1 extends ReferralEventEventTypeOneOf$1 {
938
937
  /** ReferredFriendSignupEvent is an event that is triggered when a referred friend signs up. */
939
938
  referredFriendSignupEvent?: ReferredFriendSignupEvent$1;
@@ -1248,34 +1247,41 @@ interface ReferredFriendActionRewardTypeOptionsOneOf$1 {
1248
1247
  }
1249
1248
  interface V1Coupon$3 {
1250
1249
  /**
1251
- * Coupon ID.
1250
+ * Coupon ID. Example: `8934b045-7052-4a90-be2b-832c70afc9da`.
1252
1251
  * @readonly
1253
1252
  */
1254
1253
  id?: string;
1255
1254
  /**
1256
- * Coupon code.
1255
+ * The code that customers can use to apply the coupon. Example: `6RFD2A3HSPXW`.
1257
1256
  * @readonly
1258
1257
  */
1259
1258
  code?: string;
1260
1259
  /**
1261
- * Coupon status.
1260
+ * Current status of the coupon.
1261
+ *
1262
+ * Possible values:
1263
+ *
1264
+ * - `UNKNOWN`: Unknown coupon status.
1265
+ * - `ACTIVE`: Coupon is active and can be applied.
1266
+ * - `APPLIED`: Coupon was already applied and can't be used anymore.
1267
+ * - `DELETED`: Coupon was deleted.
1262
1268
  * @readonly
1263
1269
  */
1264
1270
  status?: Status$5;
1265
1271
  /**
1266
- * Coupon specification.
1272
+ * Detailed specifications of the coupon.
1267
1273
  * @readonly
1268
1274
  */
1269
1275
  couponSpecification?: Coupon$3;
1270
1276
  }
1271
1277
  declare enum Status$5 {
1272
- /** Unknown coupon status. */
1278
+ /** The coupon status is unknown or not specified. */
1273
1279
  UNKNOWN = "UNKNOWN",
1274
- /** Coupon is active and can be applied. */
1280
+ /** The coupon is active and can be applied to purchases. */
1275
1281
  ACTIVE = "ACTIVE",
1276
- /** Coupon was already applied and can not be used anymore. */
1282
+ /** The coupon has been applied and can't be used again. */
1277
1283
  APPLIED = "APPLIED",
1278
- /** Coupon was deleted. */
1284
+ /** The coupon has been deleted and is no longer valid. */
1279
1285
  DELETED = "DELETED"
1280
1286
  }
1281
1287
  interface Coupon$3 extends CouponDiscountTypeOptionsOneOf$3, CouponScopeOrMinSubtotalOneOf$3 {
@@ -1368,7 +1374,7 @@ interface LoyaltyPoints$1 {
1368
1374
  */
1369
1375
  transactionId?: string;
1370
1376
  /**
1371
- * Loyalty points amount given.
1377
+ * The number of loyalty points awarded.
1372
1378
  * @readonly
1373
1379
  */
1374
1380
  amount?: number;
@@ -1467,7 +1473,6 @@ interface QueryReferredFriendActionsResponseNonNullableFields$1 {
1467
1473
  referredFriendActions: ReferredFriendActionNonNullableFields$1[];
1468
1474
  }
1469
1475
 
1470
- /** ReferralEvent. */
1471
1476
  interface ReferralEvent extends ReferralEventEventTypeOneOf {
1472
1477
  /** ReferredFriendSignupEvent is an event that is triggered when a referred friend signs up. */
1473
1478
  referredFriendSignupEvent?: ReferredFriendSignupEvent;
@@ -1782,34 +1787,41 @@ interface ReferredFriendActionRewardTypeOptionsOneOf {
1782
1787
  }
1783
1788
  interface V1Coupon$2 {
1784
1789
  /**
1785
- * Coupon ID.
1790
+ * Coupon ID. Example: `8934b045-7052-4a90-be2b-832c70afc9da`.
1786
1791
  * @readonly
1787
1792
  */
1788
1793
  _id?: string;
1789
1794
  /**
1790
- * Coupon code.
1795
+ * The code that customers can use to apply the coupon. Example: `6RFD2A3HSPXW`.
1791
1796
  * @readonly
1792
1797
  */
1793
1798
  code?: string;
1794
1799
  /**
1795
- * Coupon status.
1800
+ * Current status of the coupon.
1801
+ *
1802
+ * Possible values:
1803
+ *
1804
+ * - `UNKNOWN`: Unknown coupon status.
1805
+ * - `ACTIVE`: Coupon is active and can be applied.
1806
+ * - `APPLIED`: Coupon was already applied and can't be used anymore.
1807
+ * - `DELETED`: Coupon was deleted.
1796
1808
  * @readonly
1797
1809
  */
1798
1810
  status?: Status$4;
1799
1811
  /**
1800
- * Coupon specification.
1812
+ * Detailed specifications of the coupon.
1801
1813
  * @readonly
1802
1814
  */
1803
1815
  couponSpecification?: Coupon$2;
1804
1816
  }
1805
1817
  declare enum Status$4 {
1806
- /** Unknown coupon status. */
1818
+ /** The coupon status is unknown or not specified. */
1807
1819
  UNKNOWN = "UNKNOWN",
1808
- /** Coupon is active and can be applied. */
1820
+ /** The coupon is active and can be applied to purchases. */
1809
1821
  ACTIVE = "ACTIVE",
1810
- /** Coupon was already applied and can not be used anymore. */
1822
+ /** The coupon has been applied and can't be used again. */
1811
1823
  APPLIED = "APPLIED",
1812
- /** Coupon was deleted. */
1824
+ /** The coupon has been deleted and is no longer valid. */
1813
1825
  DELETED = "DELETED"
1814
1826
  }
1815
1827
  interface Coupon$2 extends CouponDiscountTypeOptionsOneOf$2, CouponScopeOrMinSubtotalOneOf$2 {
@@ -1902,7 +1914,7 @@ interface LoyaltyPoints {
1902
1914
  */
1903
1915
  transactionId?: string;
1904
1916
  /**
1905
- * Loyalty points amount given.
1917
+ * The number of loyalty points awarded.
1906
1918
  * @readonly
1907
1919
  */
1908
1920
  amount?: number;
@@ -2641,7 +2653,6 @@ declare namespace meta$2 {
2641
2653
  export { type __PublicMethodMetaInfo$2 as __PublicMethodMetaInfo, meta$2_getReferralReward as getReferralReward, meta$2_queryReferralRewards as queryReferralRewards };
2642
2654
  }
2643
2655
 
2644
- /** ReferredFriend is the main entity of ReferredFriends that can be used for lorem ipsum dolor */
2645
2656
  interface ReferredFriend$1 {
2646
2657
  /**
2647
2658
  * ReferredFriend ID.
@@ -2685,6 +2696,8 @@ declare enum Status$1 {
2685
2696
  ACTIONS_COMPLETED = "ACTIONS_COMPLETED"
2686
2697
  }
2687
2698
  interface CreateReferredFriendRequest$1 {
2699
+ /** Referral code for referred friend */
2700
+ referralCode?: string | null;
2688
2701
  }
2689
2702
  interface CreateReferredFriendResponse$1 {
2690
2703
  /** The created ReferredFriend. */
@@ -2727,26 +2740,32 @@ interface QueryReferredFriendRequest$1 {
2727
2740
  query: CursorQuery$3;
2728
2741
  }
2729
2742
  interface CursorQuery$3 extends CursorQueryPagingMethodOneOf$3 {
2730
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
2743
+ /**
2744
+ * Cursor paging options.
2745
+ *
2746
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
2747
+ */
2731
2748
  cursorPaging?: CursorPaging$3;
2732
2749
  /**
2733
- * Filter object in the following format:
2734
- * `"filter" : {
2735
- * "fieldName1": "value1",
2736
- * "fieldName2":{"$operator":"value2"}
2737
- * }`
2738
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
2750
+ * Filter object.
2751
+ *
2752
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
2739
2753
  */
2740
2754
  filter?: Record<string, any> | null;
2741
2755
  /**
2742
- * Sort object in the following format:
2743
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
2756
+ * Sort object.
2757
+ *
2758
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
2744
2759
  */
2745
2760
  sort?: Sorting$3[];
2746
2761
  }
2747
2762
  /** @oneof */
2748
2763
  interface CursorQueryPagingMethodOneOf$3 {
2749
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
2764
+ /**
2765
+ * Cursor paging options.
2766
+ *
2767
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
2768
+ */
2750
2769
  cursorPaging?: CursorPaging$3;
2751
2770
  }
2752
2771
  interface Sorting$3 {
@@ -2777,7 +2796,7 @@ interface QueryReferredFriendResponse$1 {
2777
2796
  metadata?: CursorPagingMetadata$3;
2778
2797
  }
2779
2798
  interface CursorPagingMetadata$3 {
2780
- /** Number of items returned in the response. */
2799
+ /** Number of items returned in current page. */
2781
2800
  count?: number | null;
2782
2801
  /** Cursor strings that point to the next page, previous page, or both. */
2783
2802
  cursors?: Cursors$3;
@@ -2817,7 +2836,6 @@ interface QueryReferredFriendResponseNonNullableFields$1 {
2817
2836
  referredFriends: ReferredFriendNonNullableFields$1[];
2818
2837
  }
2819
2838
 
2820
- /** ReferredFriend is the main entity of ReferredFriends that can be used for lorem ipsum dolor */
2821
2839
  interface ReferredFriend {
2822
2840
  /**
2823
2841
  * ReferredFriend ID.
@@ -2861,6 +2879,8 @@ declare enum Status {
2861
2879
  ACTIONS_COMPLETED = "ACTIONS_COMPLETED"
2862
2880
  }
2863
2881
  interface CreateReferredFriendRequest {
2882
+ /** Referral code for referred friend */
2883
+ referralCode?: string | null;
2864
2884
  }
2865
2885
  interface CreateReferredFriendResponse {
2866
2886
  /** The created ReferredFriend. */
@@ -2903,26 +2923,32 @@ interface QueryReferredFriendRequest {
2903
2923
  query: CursorQuery$2;
2904
2924
  }
2905
2925
  interface CursorQuery$2 extends CursorQueryPagingMethodOneOf$2 {
2906
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
2926
+ /**
2927
+ * Cursor paging options.
2928
+ *
2929
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
2930
+ */
2907
2931
  cursorPaging?: CursorPaging$2;
2908
2932
  /**
2909
- * Filter object in the following format:
2910
- * `"filter" : {
2911
- * "fieldName1": "value1",
2912
- * "fieldName2":{"$operator":"value2"}
2913
- * }`
2914
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
2933
+ * Filter object.
2934
+ *
2935
+ * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
2915
2936
  */
2916
2937
  filter?: Record<string, any> | null;
2917
2938
  /**
2918
- * Sort object in the following format:
2919
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
2939
+ * Sort object.
2940
+ *
2941
+ * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
2920
2942
  */
2921
2943
  sort?: Sorting$2[];
2922
2944
  }
2923
2945
  /** @oneof */
2924
2946
  interface CursorQueryPagingMethodOneOf$2 {
2925
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
2947
+ /**
2948
+ * Cursor paging options.
2949
+ *
2950
+ * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
2951
+ */
2926
2952
  cursorPaging?: CursorPaging$2;
2927
2953
  }
2928
2954
  interface Sorting$2 {
@@ -2953,7 +2979,7 @@ interface QueryReferredFriendResponse {
2953
2979
  metadata?: CursorPagingMetadata$2;
2954
2980
  }
2955
2981
  interface CursorPagingMetadata$2 {
2956
- /** Number of items returned in the response. */
2982
+ /** Number of items returned in current page. */
2957
2983
  count?: number | null;
2958
2984
  /** Cursor strings that point to the next page, previous page, or both. */
2959
2985
  cursors?: Cursors$2;