@wix/stores 1.0.134 → 1.0.135

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.
Files changed (235) hide show
  1. package/build/cjs/context.d.ts +5 -5
  2. package/build/cjs/context.js +5 -5
  3. package/build/cjs/context.js.map +1 -1
  4. package/build/cjs/index.d.ts +5 -6
  5. package/build/cjs/index.js +6 -7
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/meta.d.ts +5 -6
  8. package/build/cjs/meta.js +6 -7
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/context.d.ts +5 -5
  11. package/build/es/context.js +5 -5
  12. package/build/es/context.js.map +1 -1
  13. package/build/es/index.d.ts +5 -6
  14. package/build/es/index.js +5 -6
  15. package/build/es/index.js.map +1 -1
  16. package/build/es/meta.d.ts +5 -6
  17. package/build/es/meta.js +5 -6
  18. package/build/es/meta.js.map +1 -1
  19. package/package.json +15 -9
  20. package/build/cjs/index.typings.d.ts +0 -6
  21. package/build/cjs/index.typings.js +0 -33
  22. package/build/cjs/index.typings.js.map +0 -1
  23. package/build/cjs/src/platform-v1-wishlist.context.d.ts +0 -3
  24. package/build/cjs/src/platform-v1-wishlist.context.js +0 -22
  25. package/build/cjs/src/platform-v1-wishlist.context.js.map +0 -1
  26. package/build/cjs/src/platform-v1-wishlist.http.d.ts +0 -3
  27. package/build/cjs/src/platform-v1-wishlist.http.js +0 -91
  28. package/build/cjs/src/platform-v1-wishlist.http.js.map +0 -1
  29. package/build/cjs/src/platform-v1-wishlist.meta.d.ts +0 -13
  30. package/build/cjs/src/platform-v1-wishlist.meta.js +0 -47
  31. package/build/cjs/src/platform-v1-wishlist.meta.js.map +0 -1
  32. package/build/cjs/src/platform-v1-wishlist.public.d.ts +0 -15
  33. package/build/cjs/src/platform-v1-wishlist.public.js +0 -12
  34. package/build/cjs/src/platform-v1-wishlist.public.js.map +0 -1
  35. package/build/cjs/src/platform-v1-wishlist.types.d.ts +0 -104
  36. package/build/cjs/src/platform-v1-wishlist.types.js +0 -3
  37. package/build/cjs/src/platform-v1-wishlist.types.js.map +0 -1
  38. package/build/cjs/src/platform-v1-wishlist.universal.d.ts +0 -121
  39. package/build/cjs/src/platform-v1-wishlist.universal.js +0 -106
  40. package/build/cjs/src/platform-v1-wishlist.universal.js.map +0 -1
  41. package/build/cjs/src/stores-catalog-v1-collection.context.d.ts +0 -5
  42. package/build/cjs/src/stores-catalog-v1-collection.context.js +0 -56
  43. package/build/cjs/src/stores-catalog-v1-collection.context.js.map +0 -1
  44. package/build/cjs/src/stores-catalog-v1-collection.http.d.ts +0 -10
  45. package/build/cjs/src/stores-catalog-v1-collection.http.js +0 -110
  46. package/build/cjs/src/stores-catalog-v1-collection.http.js.map +0 -1
  47. package/build/cjs/src/stores-catalog-v1-collection.meta.d.ts +0 -19
  48. package/build/cjs/src/stores-catalog-v1-collection.meta.js +0 -85
  49. package/build/cjs/src/stores-catalog-v1-collection.meta.js.map +0 -1
  50. package/build/cjs/src/stores-catalog-v1-collection.public.d.ts +0 -59
  51. package/build/cjs/src/stores-catalog-v1-collection.public.js +0 -27
  52. package/build/cjs/src/stores-catalog-v1-collection.public.js.map +0 -1
  53. package/build/cjs/src/stores-catalog-v1-collection.types.d.ts +0 -414
  54. package/build/cjs/src/stores-catalog-v1-collection.types.js +0 -18
  55. package/build/cjs/src/stores-catalog-v1-collection.types.js.map +0 -1
  56. package/build/cjs/src/stores-catalog-v1-collection.universal.d.ts +0 -452
  57. package/build/cjs/src/stores-catalog-v1-collection.universal.js +0 -225
  58. package/build/cjs/src/stores-catalog-v1-collection.universal.js.map +0 -1
  59. package/build/cjs/src/stores-catalog-v1-product.context.d.ts +0 -35
  60. package/build/cjs/src/stores-catalog-v1-product.context.js +0 -566
  61. package/build/cjs/src/stores-catalog-v1-product.context.js.map +0 -1
  62. package/build/cjs/src/stores-catalog-v1-product.http.d.ts +0 -89
  63. package/build/cjs/src/stores-catalog-v1-product.http.js +0 -1716
  64. package/build/cjs/src/stores-catalog-v1-product.http.js.map +0 -1
  65. package/build/cjs/src/stores-catalog-v1-product.meta.d.ts +0 -95
  66. package/build/cjs/src/stores-catalog-v1-product.meta.js +0 -655
  67. package/build/cjs/src/stores-catalog-v1-product.meta.js.map +0 -1
  68. package/build/cjs/src/stores-catalog-v1-product.public.d.ts +0 -1216
  69. package/build/cjs/src/stores-catalog-v1-product.public.js +0 -221
  70. package/build/cjs/src/stores-catalog-v1-product.public.js.map +0 -1
  71. package/build/cjs/src/stores-catalog-v1-product.types.d.ts +0 -4235
  72. package/build/cjs/src/stores-catalog-v1-product.types.js +0 -78
  73. package/build/cjs/src/stores-catalog-v1-product.types.js.map +0 -1
  74. package/build/cjs/src/stores-catalog-v1-product.universal.d.ts +0 -5074
  75. package/build/cjs/src/stores-catalog-v1-product.universal.js +0 -2220
  76. package/build/cjs/src/stores-catalog-v1-product.universal.js.map +0 -1
  77. package/build/cjs/src/stores-v1-abandoned-cart.http.d.ts +0 -6
  78. package/build/cjs/src/stores-v1-abandoned-cart.http.js +0 -103
  79. package/build/cjs/src/stores-v1-abandoned-cart.http.js.map +0 -1
  80. package/build/cjs/src/stores-v1-abandoned-cart.meta.d.ts +0 -16
  81. package/build/cjs/src/stores-v1-abandoned-cart.meta.js +0 -66
  82. package/build/cjs/src/stores-v1-abandoned-cart.meta.js.map +0 -1
  83. package/build/cjs/src/stores-v1-abandoned-cart.public.d.ts +0 -19
  84. package/build/cjs/src/stores-v1-abandoned-cart.public.js +0 -22
  85. package/build/cjs/src/stores-v1-abandoned-cart.public.js.map +0 -1
  86. package/build/cjs/src/stores-v1-abandoned-cart.types.d.ts +0 -216
  87. package/build/cjs/src/stores-v1-abandoned-cart.types.js +0 -30
  88. package/build/cjs/src/stores-v1-abandoned-cart.types.js.map +0 -1
  89. package/build/cjs/src/stores-v1-abandoned-cart.universal.d.ts +0 -246
  90. package/build/cjs/src/stores-v1-abandoned-cart.universal.js +0 -189
  91. package/build/cjs/src/stores-v1-abandoned-cart.universal.js.map +0 -1
  92. package/build/cjs/src/stores-v1-subscription-option.context.d.ts +0 -14
  93. package/build/cjs/src/stores-v1-subscription-option.context.js +0 -209
  94. package/build/cjs/src/stores-v1-subscription-option.context.js.map +0 -1
  95. package/build/cjs/src/stores-v1-subscription-option.http.d.ts +0 -128
  96. package/build/cjs/src/stores-v1-subscription-option.http.js +0 -466
  97. package/build/cjs/src/stores-v1-subscription-option.http.js.map +0 -1
  98. package/build/cjs/src/stores-v1-subscription-option.meta.d.ts +0 -40
  99. package/build/cjs/src/stores-v1-subscription-option.meta.js +0 -258
  100. package/build/cjs/src/stores-v1-subscription-option.meta.js.map +0 -1
  101. package/build/cjs/src/stores-v1-subscription-option.public.d.ts +0 -46
  102. package/build/cjs/src/stores-v1-subscription-option.public.js +0 -81
  103. package/build/cjs/src/stores-v1-subscription-option.public.js.map +0 -1
  104. package/build/cjs/src/stores-v1-subscription-option.types.d.ts +0 -351
  105. package/build/cjs/src/stores-v1-subscription-option.types.js +0 -20
  106. package/build/cjs/src/stores-v1-subscription-option.types.js.map +0 -1
  107. package/build/cjs/src/stores-v1-subscription-option.universal.d.ts +0 -646
  108. package/build/cjs/src/stores-v1-subscription-option.universal.js +0 -893
  109. package/build/cjs/src/stores-v1-subscription-option.universal.js.map +0 -1
  110. package/build/cjs/src/stores-v2-inventory.context.d.ts +0 -7
  111. package/build/cjs/src/stores-v2-inventory.context.js +0 -90
  112. package/build/cjs/src/stores-v2-inventory.context.js.map +0 -1
  113. package/build/cjs/src/stores-v2-inventory.http.d.ts +0 -31
  114. package/build/cjs/src/stores-v2-inventory.http.js +0 -289
  115. package/build/cjs/src/stores-v2-inventory.http.js.map +0 -1
  116. package/build/cjs/src/stores-v2-inventory.meta.d.ts +0 -21
  117. package/build/cjs/src/stores-v2-inventory.meta.js +0 -125
  118. package/build/cjs/src/stores-v2-inventory.meta.js.map +0 -1
  119. package/build/cjs/src/stores-v2-inventory.public.d.ts +0 -13
  120. package/build/cjs/src/stores-v2-inventory.public.js +0 -41
  121. package/build/cjs/src/stores-v2-inventory.public.js.map +0 -1
  122. package/build/cjs/src/stores-v2-inventory.types.d.ts +0 -283
  123. package/build/cjs/src/stores-v2-inventory.types.js +0 -11
  124. package/build/cjs/src/stores-v2-inventory.types.js.map +0 -1
  125. package/build/cjs/src/stores-v2-inventory.universal.d.ts +0 -425
  126. package/build/cjs/src/stores-v2-inventory.universal.js +0 -382
  127. package/build/cjs/src/stores-v2-inventory.universal.js.map +0 -1
  128. package/build/es/index.typings.d.ts +0 -6
  129. package/build/es/index.typings.js +0 -7
  130. package/build/es/index.typings.js.map +0 -1
  131. package/build/es/src/platform-v1-wishlist.context.d.ts +0 -3
  132. package/build/es/src/platform-v1-wishlist.context.js +0 -18
  133. package/build/es/src/platform-v1-wishlist.context.js.map +0 -1
  134. package/build/es/src/platform-v1-wishlist.http.d.ts +0 -3
  135. package/build/es/src/platform-v1-wishlist.http.js +0 -87
  136. package/build/es/src/platform-v1-wishlist.http.js.map +0 -1
  137. package/build/es/src/platform-v1-wishlist.meta.d.ts +0 -13
  138. package/build/es/src/platform-v1-wishlist.meta.js +0 -20
  139. package/build/es/src/platform-v1-wishlist.meta.js.map +0 -1
  140. package/build/es/src/platform-v1-wishlist.public.d.ts +0 -15
  141. package/build/es/src/platform-v1-wishlist.public.js +0 -8
  142. package/build/es/src/platform-v1-wishlist.public.js.map +0 -1
  143. package/build/es/src/platform-v1-wishlist.types.d.ts +0 -104
  144. package/build/es/src/platform-v1-wishlist.types.js +0 -2
  145. package/build/es/src/platform-v1-wishlist.types.js.map +0 -1
  146. package/build/es/src/platform-v1-wishlist.universal.d.ts +0 -121
  147. package/build/es/src/platform-v1-wishlist.universal.js +0 -79
  148. package/build/es/src/platform-v1-wishlist.universal.js.map +0 -1
  149. package/build/es/src/stores-catalog-v1-collection.context.d.ts +0 -5
  150. package/build/es/src/stores-catalog-v1-collection.context.js +0 -50
  151. package/build/es/src/stores-catalog-v1-collection.context.js.map +0 -1
  152. package/build/es/src/stores-catalog-v1-collection.http.d.ts +0 -10
  153. package/build/es/src/stores-catalog-v1-collection.http.js +0 -104
  154. package/build/es/src/stores-catalog-v1-collection.http.js.map +0 -1
  155. package/build/es/src/stores-catalog-v1-collection.meta.d.ts +0 -19
  156. package/build/es/src/stores-catalog-v1-collection.meta.js +0 -56
  157. package/build/es/src/stores-catalog-v1-collection.meta.js.map +0 -1
  158. package/build/es/src/stores-catalog-v1-collection.public.d.ts +0 -59
  159. package/build/es/src/stores-catalog-v1-collection.public.js +0 -19
  160. package/build/es/src/stores-catalog-v1-collection.public.js.map +0 -1
  161. package/build/es/src/stores-catalog-v1-collection.types.d.ts +0 -414
  162. package/build/es/src/stores-catalog-v1-collection.types.js +0 -15
  163. package/build/es/src/stores-catalog-v1-collection.types.js.map +0 -1
  164. package/build/es/src/stores-catalog-v1-collection.universal.d.ts +0 -452
  165. package/build/es/src/stores-catalog-v1-collection.universal.js +0 -196
  166. package/build/es/src/stores-catalog-v1-collection.universal.js.map +0 -1
  167. package/build/es/src/stores-catalog-v1-product.context.d.ts +0 -35
  168. package/build/es/src/stores-catalog-v1-product.context.js +0 -530
  169. package/build/es/src/stores-catalog-v1-product.context.js.map +0 -1
  170. package/build/es/src/stores-catalog-v1-product.http.d.ts +0 -89
  171. package/build/es/src/stores-catalog-v1-product.http.js +0 -1680
  172. package/build/es/src/stores-catalog-v1-product.http.js.map +0 -1
  173. package/build/es/src/stores-catalog-v1-product.meta.d.ts +0 -95
  174. package/build/es/src/stores-catalog-v1-product.meta.js +0 -596
  175. package/build/es/src/stores-catalog-v1-product.meta.js.map +0 -1
  176. package/build/es/src/stores-catalog-v1-product.public.d.ts +0 -1216
  177. package/build/es/src/stores-catalog-v1-product.public.js +0 -170
  178. package/build/es/src/stores-catalog-v1-product.public.js.map +0 -1
  179. package/build/es/src/stores-catalog-v1-product.types.d.ts +0 -4235
  180. package/build/es/src/stores-catalog-v1-product.types.js +0 -75
  181. package/build/es/src/stores-catalog-v1-product.types.js.map +0 -1
  182. package/build/es/src/stores-catalog-v1-product.universal.d.ts +0 -5074
  183. package/build/es/src/stores-catalog-v1-product.universal.js +0 -2161
  184. package/build/es/src/stores-catalog-v1-product.universal.js.map +0 -1
  185. package/build/es/src/stores-v1-abandoned-cart.http.d.ts +0 -6
  186. package/build/es/src/stores-v1-abandoned-cart.http.js +0 -98
  187. package/build/es/src/stores-v1-abandoned-cart.http.js.map +0 -1
  188. package/build/es/src/stores-v1-abandoned-cart.meta.d.ts +0 -16
  189. package/build/es/src/stores-v1-abandoned-cart.meta.js +0 -38
  190. package/build/es/src/stores-v1-abandoned-cart.meta.js.map +0 -1
  191. package/build/es/src/stores-v1-abandoned-cart.public.d.ts +0 -19
  192. package/build/es/src/stores-v1-abandoned-cart.public.js +0 -14
  193. package/build/es/src/stores-v1-abandoned-cart.public.js.map +0 -1
  194. package/build/es/src/stores-v1-abandoned-cart.types.d.ts +0 -216
  195. package/build/es/src/stores-v1-abandoned-cart.types.js +0 -27
  196. package/build/es/src/stores-v1-abandoned-cart.types.js.map +0 -1
  197. package/build/es/src/stores-v1-abandoned-cart.universal.d.ts +0 -246
  198. package/build/es/src/stores-v1-abandoned-cart.universal.js +0 -161
  199. package/build/es/src/stores-v1-abandoned-cart.universal.js.map +0 -1
  200. package/build/es/src/stores-v1-subscription-option.context.d.ts +0 -14
  201. package/build/es/src/stores-v1-subscription-option.context.js +0 -194
  202. package/build/es/src/stores-v1-subscription-option.context.js.map +0 -1
  203. package/build/es/src/stores-v1-subscription-option.http.d.ts +0 -128
  204. package/build/es/src/stores-v1-subscription-option.http.js +0 -451
  205. package/build/es/src/stores-v1-subscription-option.http.js.map +0 -1
  206. package/build/es/src/stores-v1-subscription-option.meta.d.ts +0 -40
  207. package/build/es/src/stores-v1-subscription-option.meta.js +0 -220
  208. package/build/es/src/stores-v1-subscription-option.meta.js.map +0 -1
  209. package/build/es/src/stores-v1-subscription-option.public.d.ts +0 -46
  210. package/build/es/src/stores-v1-subscription-option.public.js +0 -64
  211. package/build/es/src/stores-v1-subscription-option.public.js.map +0 -1
  212. package/build/es/src/stores-v1-subscription-option.types.d.ts +0 -351
  213. package/build/es/src/stores-v1-subscription-option.types.js +0 -17
  214. package/build/es/src/stores-v1-subscription-option.types.js.map +0 -1
  215. package/build/es/src/stores-v1-subscription-option.universal.d.ts +0 -646
  216. package/build/es/src/stores-v1-subscription-option.universal.js +0 -855
  217. package/build/es/src/stores-v1-subscription-option.universal.js.map +0 -1
  218. package/build/es/src/stores-v2-inventory.context.d.ts +0 -7
  219. package/build/es/src/stores-v2-inventory.context.js +0 -82
  220. package/build/es/src/stores-v2-inventory.context.js.map +0 -1
  221. package/build/es/src/stores-v2-inventory.http.d.ts +0 -31
  222. package/build/es/src/stores-v2-inventory.http.js +0 -281
  223. package/build/es/src/stores-v2-inventory.http.js.map +0 -1
  224. package/build/es/src/stores-v2-inventory.meta.d.ts +0 -21
  225. package/build/es/src/stores-v2-inventory.meta.js +0 -94
  226. package/build/es/src/stores-v2-inventory.meta.js.map +0 -1
  227. package/build/es/src/stores-v2-inventory.public.d.ts +0 -13
  228. package/build/es/src/stores-v2-inventory.public.js +0 -30
  229. package/build/es/src/stores-v2-inventory.public.js.map +0 -1
  230. package/build/es/src/stores-v2-inventory.types.d.ts +0 -283
  231. package/build/es/src/stores-v2-inventory.types.js +0 -8
  232. package/build/es/src/stores-v2-inventory.types.js.map +0 -1
  233. package/build/es/src/stores-v2-inventory.universal.d.ts +0 -425
  234. package/build/es/src/stores-v2-inventory.universal.js +0 -351
  235. package/build/es/src/stores-v2-inventory.universal.js.map +0 -1
@@ -1,246 +0,0 @@
1
- export declare const __debug: {
2
- verboseLogging: {
3
- on: () => boolean;
4
- off: () => boolean;
5
- };
6
- };
7
- export interface AbandonedCart {
8
- /** Original cart ID */
9
- _id?: string;
10
- /** Cart status */
11
- status?: Status;
12
- /**
13
- * Time the cart was abandoned
14
- * @readonly
15
- */
16
- abandonTime?: Date;
17
- /** Buyer information */
18
- buyerInfo?: BuyerInfo;
19
- /** Cart total including currency symbol */
20
- total?: string | null;
21
- /**
22
- * History activities
23
- * @readonly
24
- */
25
- activities?: Activity[];
26
- }
27
- export declare enum Status {
28
- ABANDONED = "ABANDONED",
29
- RECOVERED = "RECOVERED"
30
- }
31
- export interface BuyerInfo {
32
- /** Wix customer ID */
33
- _id?: string;
34
- /** Customer information */
35
- identityType?: Identity;
36
- /** Customer's email address */
37
- email?: string | null;
38
- /** Customer's phone number */
39
- phone?: string | null;
40
- /** Customer's first name */
41
- firstName?: string | null;
42
- /** Customer's last name */
43
- lastName?: string | null;
44
- }
45
- export declare enum Identity {
46
- /** Customer is the site owner */
47
- ADMIN = "ADMIN",
48
- /** Customer is logged in */
49
- MEMBER = "MEMBER",
50
- /** Customer is not logged in */
51
- VISITOR = "VISITOR",
52
- /** Contact was created for the customer */
53
- CONTACT = "CONTACT"
54
- }
55
- export interface Activity {
56
- /**
57
- * Log item type
58
- * @readonly
59
- */
60
- activityType?: ActivityType;
61
- /**
62
- * Comment added to Log item
63
- * @readonly
64
- */
65
- message?: string | null;
66
- /**
67
- * Log item occurrence timestamp
68
- * @readonly
69
- */
70
- timestamp?: Date;
71
- /** Custom data for un-typed activities */
72
- customData?: CustomData;
73
- }
74
- export declare enum ActivityType {
75
- UNRECOGNIZED_TYPE = "UNRECOGNIZED_TYPE",
76
- SCHEDULED = "SCHEDULED",
77
- EMAIL_SENT = "EMAIL_SENT",
78
- EMAIL_NOT_SENT = "EMAIL_NOT_SENT",
79
- NOTIFICATION_SENT = "NOTIFICATION_SENT",
80
- TASK_CREATED = "TASK_CREATED",
81
- CUSTOM_ACTIVITY = "CUSTOM_ACTIVITY"
82
- }
83
- export interface CustomData {
84
- /** Activity unique namespace */
85
- namespace?: string | null;
86
- /** Custom json field for any desired data */
87
- customValue?: Record<string, any> | null;
88
- }
89
- export interface CartAbandonedEvent {
90
- cartId?: string;
91
- /**
92
- * Time the cart was created
93
- * @readonly
94
- */
95
- creationTime?: Date;
96
- /**
97
- * Time the cart was abandoned
98
- * @readonly
99
- */
100
- abandonTime?: Date;
101
- /** Buyer information */
102
- buyerInfo?: BuyerInfo;
103
- /** Amount of items in cart */
104
- itemsCount?: number;
105
- /** Coupon ID (if relevant) */
106
- couponId?: string;
107
- /** Subtotal of all line items in cart, not before shipping and taxes */
108
- totals?: Totals;
109
- /** Checkout URL - checkout with the abandoned cart details */
110
- checkoutUrl?: string;
111
- }
112
- export interface Totals {
113
- /** Subtotal of all line items in cart, without shipping and taxes */
114
- subtotal?: number | null;
115
- /** Total cart price */
116
- total?: number | null;
117
- /** Formatted total cart price includes currency symbol */
118
- formattedTotal?: string;
119
- }
120
- export interface CartRecoveredEvent {
121
- cartId?: string;
122
- /**
123
- * Time the cart was recovered
124
- * @readonly
125
- */
126
- recoveredTime?: Date;
127
- /**
128
- * Time the cart was created
129
- * @readonly
130
- */
131
- creationTime?: Date;
132
- /**
133
- * Time the cart was abandoned
134
- * @readonly
135
- */
136
- abandonedTime?: Date;
137
- }
138
- export interface CartDeletedEvent {
139
- instanceId?: string;
140
- cartId?: string;
141
- }
142
- export interface GetAbandonedCartRequest {
143
- /** Cart ID */
144
- _id: string;
145
- }
146
- export interface GetAbandonedCartResponse {
147
- /** Cart details */
148
- abandonedCart?: AbandonedCart;
149
- }
150
- export interface QueryAbandonedCartsRequest {
151
- /** Query details */
152
- query?: Query;
153
- }
154
- export interface Query {
155
- paging?: Paging;
156
- /** A filter string, for more information see the intro section */
157
- filter?: string | null;
158
- /** Sort string, for more information see the intro section */
159
- sort?: string | null;
160
- }
161
- export interface Paging {
162
- /** The number of items to load */
163
- limit?: number | null;
164
- /** The offset since the beginning of the collection */
165
- offset?: number | null;
166
- }
167
- export interface QueryAbandonedCartsResponse {
168
- /** Abandoned carts list */
169
- abandonedCarts?: AbandonedCart[];
170
- /** Total number of carts */
171
- totalResults?: number;
172
- }
173
- export interface DeleteCartRequest {
174
- /** Cart ID */
175
- _id?: string;
176
- }
177
- export interface DeleteCartResponse {
178
- }
179
- export interface RedirectToCheckoutRequest {
180
- /** abandoned cart id */
181
- _id?: string;
182
- /** Identifier of the metaSite this cart uses */
183
- metaSiteId?: string;
184
- /** The currency code to create the redirection link with */
185
- currency?: string | null;
186
- }
187
- export interface RawHttpResponse {
188
- body?: Uint8Array;
189
- statusCode?: number | null;
190
- headers?: HeadersEntry[];
191
- }
192
- export interface HeadersEntry {
193
- key?: string;
194
- value?: string;
195
- }
196
- export interface GetAbandonedCartResponseNonNullableFields {
197
- abandonedCart?: {
198
- _id: string;
199
- status: Status;
200
- buyerInfo?: {
201
- _id: string;
202
- identityType: Identity;
203
- };
204
- activities: {
205
- activityType: ActivityType;
206
- }[];
207
- };
208
- }
209
- export interface QueryAbandonedCartsResponseNonNullableFields {
210
- abandonedCarts: {
211
- _id: string;
212
- status: Status;
213
- buyerInfo?: {
214
- _id: string;
215
- identityType: Identity;
216
- };
217
- activities: {
218
- activityType: ActivityType;
219
- }[];
220
- }[];
221
- totalResults: number;
222
- }
223
- /**
224
- * Returns abandoned carts based on the cart ID
225
- * @param _id - Cart ID
226
- * @public
227
- * @requiredField _id
228
- * @permissionScope Manage Orders
229
- * @permissionScope Read Orders
230
- * @applicableIdentity APP
231
- * @returns Cart details
232
- */
233
- export declare function getAbandonedCart(_id: string): Promise<AbandonedCart & NonNullable<GetAbandonedCartResponseNonNullableFields>['abandonedCart']>;
234
- /**
235
- * Returns abandoned carts based on the requested query parameters
236
- * @public
237
- * @documentationMaturity preview
238
- * @permissionScope Manage Orders
239
- * @permissionScope Read Orders
240
- * @applicableIdentity APP
241
- */
242
- export declare function queryAbandonedCarts(options?: QueryAbandonedCartsOptions): Promise<QueryAbandonedCartsResponse & QueryAbandonedCartsResponseNonNullableFields>;
243
- export interface QueryAbandonedCartsOptions {
244
- /** Query details */
245
- query?: Query;
246
- }
@@ -1,161 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { serializer, transformError } from '@wix/metro-runtime/velo';
11
- import * as ambassadorWixStoresV1AbandonedCart from './stores-v1-abandoned-cart.http';
12
- let __verbose = false;
13
- function __log(...args) {
14
- __verbose && console.log(...args);
15
- }
16
- function __inspect(obj) {
17
- return obj;
18
- }
19
- export const __debug = {
20
- verboseLogging: {
21
- on: () => (__verbose = true),
22
- off: () => (__verbose = false),
23
- },
24
- };
25
- const _toVeloEntity = '$';
26
- const _fromVeloEntity = '$';
27
- export var Status;
28
- (function (Status) {
29
- Status["ABANDONED"] = "ABANDONED";
30
- Status["RECOVERED"] = "RECOVERED";
31
- })(Status || (Status = {}));
32
- export var Identity;
33
- (function (Identity) {
34
- /** Customer is the site owner */
35
- Identity["ADMIN"] = "ADMIN";
36
- /** Customer is logged in */
37
- Identity["MEMBER"] = "MEMBER";
38
- /** Customer is not logged in */
39
- Identity["VISITOR"] = "VISITOR";
40
- /** Contact was created for the customer */
41
- Identity["CONTACT"] = "CONTACT";
42
- })(Identity || (Identity = {}));
43
- export var ActivityType;
44
- (function (ActivityType) {
45
- ActivityType["UNRECOGNIZED_TYPE"] = "UNRECOGNIZED_TYPE";
46
- ActivityType["SCHEDULED"] = "SCHEDULED";
47
- ActivityType["EMAIL_SENT"] = "EMAIL_SENT";
48
- ActivityType["EMAIL_NOT_SENT"] = "EMAIL_NOT_SENT";
49
- ActivityType["NOTIFICATION_SENT"] = "NOTIFICATION_SENT";
50
- ActivityType["TASK_CREATED"] = "TASK_CREATED";
51
- ActivityType["CUSTOM_ACTIVITY"] = "CUSTOM_ACTIVITY";
52
- })(ActivityType || (ActivityType = {}));
53
- const _getAbandonedCartRequest = {};
54
- const _getAbandonedCartResponse = {};
55
- const _queryAbandonedCartsRequest = {};
56
- const _queryAbandonedCartsResponse = {};
57
- /**
58
- * Returns abandoned carts based on the cart ID
59
- * @param _id - Cart ID
60
- * @public
61
- * @requiredField _id
62
- * @permissionScope Manage Orders
63
- * @permissionScope Read Orders
64
- * @applicableIdentity APP
65
- * @returns Cart details
66
- */
67
- export function getAbandonedCart(_id) {
68
- var _a, _b, _c;
69
- return __awaiter(this, arguments, void 0, function* () {
70
- const requestTransformation = { id: '$[0]' };
71
- const responseTransformation = '$.abandonedCart';
72
- // @ts-ignore
73
- const { httpClient, sideEffects } = arguments[1];
74
- const { toAmbassadorRequest } = serializer({
75
- rootSchema: _getAbandonedCartRequest,
76
- depSchemas: {},
77
- fqdnTransformation: {
78
- paths: [],
79
- transformation: _fromVeloEntity,
80
- },
81
- customTransformation: requestTransformation,
82
- });
83
- const { fromJSON } = serializer({
84
- rootSchema: _getAbandonedCartResponse,
85
- depSchemas: {},
86
- fqdnTransformation: {
87
- paths: [...['abandonedCart']],
88
- transformation: _toVeloEntity,
89
- },
90
- customTransformation: responseTransformation,
91
- });
92
- const payload = toAmbassadorRequest([_id]);
93
- const reqOpts = ambassadorWixStoresV1AbandonedCart.getAbandonedCart(payload);
94
- __log(`"GetAbandonedCart" sending request with: ${__inspect(reqOpts)}`);
95
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
96
- try {
97
- const result = yield httpClient.request(reqOpts);
98
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
99
- return fromJSON(result.data);
100
- }
101
- catch (err) {
102
- const transformedError = transformError(err, requestTransformation, [
103
- '_id',
104
- ]);
105
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
106
- throw transformedError;
107
- }
108
- });
109
- }
110
- /**
111
- * Returns abandoned carts based on the requested query parameters
112
- * @public
113
- * @documentationMaturity preview
114
- * @permissionScope Manage Orders
115
- * @permissionScope Read Orders
116
- * @applicableIdentity APP
117
- */
118
- export function queryAbandonedCarts(options) {
119
- var _a, _b, _c;
120
- return __awaiter(this, arguments, void 0, function* () {
121
- const requestTransformation = { query: '$[0].query' };
122
- const responseTransformation = '$';
123
- // @ts-ignore
124
- const { httpClient, sideEffects } = arguments[1];
125
- const { toAmbassadorRequest } = serializer({
126
- rootSchema: _queryAbandonedCartsRequest,
127
- depSchemas: {},
128
- fqdnTransformation: {
129
- paths: [],
130
- transformation: _fromVeloEntity,
131
- },
132
- customTransformation: requestTransformation,
133
- });
134
- const { fromJSON } = serializer({
135
- rootSchema: _queryAbandonedCartsResponse,
136
- depSchemas: {},
137
- fqdnTransformation: {
138
- paths: [...['Array#abandonedCarts']],
139
- transformation: _toVeloEntity,
140
- },
141
- customTransformation: responseTransformation,
142
- });
143
- const payload = toAmbassadorRequest([options]);
144
- const reqOpts = ambassadorWixStoresV1AbandonedCart.queryAbandonedCarts(payload);
145
- __log(`"QueryAbandonedCarts" sending request with: ${__inspect(reqOpts)}`);
146
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
147
- try {
148
- const result = yield httpClient.request(reqOpts);
149
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
150
- return fromJSON(result.data);
151
- }
152
- catch (err) {
153
- const transformedError = transformError(err, requestTransformation, [
154
- 'options',
155
- ]);
156
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
157
- throw transformedError;
158
- }
159
- });
160
- }
161
- //# sourceMappingURL=stores-v1-abandoned-cart.universal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stores-v1-abandoned-cart.universal.js","sourceRoot":"","sources":["../../../src/stores-v1-abandoned-cart.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,kCAAkC,MAAM,iCAAiC,CAAC;AAEtF,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AAuB5B,MAAM,CAAN,IAAY,MAGX;AAHD,WAAY,MAAM;IAChB,iCAAuB,CAAA;IACvB,iCAAuB,CAAA;AACzB,CAAC,EAHW,MAAM,KAAN,MAAM,QAGjB;AAiBD,MAAM,CAAN,IAAY,QASX;AATD,WAAY,QAAQ;IAClB,iCAAiC;IACjC,2BAAe,CAAA;IACf,4BAA4B;IAC5B,6BAAiB,CAAA;IACjB,gCAAgC;IAChC,+BAAmB,CAAA;IACnB,2CAA2C;IAC3C,+BAAmB,CAAA;AACrB,CAAC,EATW,QAAQ,KAAR,QAAQ,QASnB;AAsBD,MAAM,CAAN,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,uDAAuC,CAAA;IACvC,uCAAuB,CAAA;IACvB,yCAAyB,CAAA;IACzB,iDAAiC,CAAA;IACjC,uD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E,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAE/C,MAAM,OAAO,GACX,kCAAkC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;QAElE,KAAK,CAAC,+CAA+C,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAE3E,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,2DAAI,CAAC;QAC5B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,4DAAG,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;QACtC,CAAC;QAAC,OAAO,GAAQ,EAAE,CAAC;YAClB,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,4DAAG,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;QACzB,CAAC;;CACF"}
@@ -1,14 +0,0 @@
1
- import { createSubscriptionOption as publicCreateSubscriptionOption, updateSubscriptionOption as publicUpdateSubscriptionOption, deleteSubscriptionOption as publicDeleteSubscriptionOption, bulkCreateSubscriptionOptions as publicBulkCreateSubscriptionOptions, bulkUpdateSubscriptionOptions as publicBulkUpdateSubscriptionOptions, bulkDeleteSubscriptionOptions as publicBulkDeleteSubscriptionOptions, assignSubscriptionOptionsToProduct as publicAssignSubscriptionOptionsToProduct, allowOneTimePurchases as publicAllowOneTimePurchases, getSubscriptionOption as publicGetSubscriptionOption, getSubscriptionOptionsForProduct as publicGetSubscriptionOptionsForProduct, getProductIdsForSubscriptionOption as publicGetProductIdsForSubscriptionOption, getOneTimePurchasesStatus as publicGetOneTimePurchasesStatus } from './stores-v1-subscription-option.public';
2
- import { BuildRESTFunction } from '@wix/sdk-types';
3
- export declare const createSubscriptionOption: BuildRESTFunction<typeof publicCreateSubscriptionOption>;
4
- export declare const updateSubscriptionOption: BuildRESTFunction<typeof publicUpdateSubscriptionOption>;
5
- export declare const deleteSubscriptionOption: BuildRESTFunction<typeof publicDeleteSubscriptionOption>;
6
- export declare const bulkCreateSubscriptionOptions: BuildRESTFunction<typeof publicBulkCreateSubscriptionOptions>;
7
- export declare const bulkUpdateSubscriptionOptions: BuildRESTFunction<typeof publicBulkUpdateSubscriptionOptions>;
8
- export declare const bulkDeleteSubscriptionOptions: BuildRESTFunction<typeof publicBulkDeleteSubscriptionOptions>;
9
- export declare const assignSubscriptionOptionsToProduct: BuildRESTFunction<typeof publicAssignSubscriptionOptionsToProduct>;
10
- export declare const allowOneTimePurchases: BuildRESTFunction<typeof publicAllowOneTimePurchases>;
11
- export declare const getSubscriptionOption: BuildRESTFunction<typeof publicGetSubscriptionOption>;
12
- export declare const getSubscriptionOptionsForProduct: BuildRESTFunction<typeof publicGetSubscriptionOptionsForProduct>;
13
- export declare const getProductIdsForSubscriptionOption: BuildRESTFunction<typeof publicGetProductIdsForSubscriptionOption>;
14
- export declare const getOneTimePurchasesStatus: BuildRESTFunction<typeof publicGetOneTimePurchasesStatus>;
@@ -1,194 +0,0 @@
1
- import { createSubscriptionOption as publicCreateSubscriptionOption, updateSubscriptionOption as publicUpdateSubscriptionOption, deleteSubscriptionOption as publicDeleteSubscriptionOption, bulkCreateSubscriptionOptions as publicBulkCreateSubscriptionOptions, bulkUpdateSubscriptionOptions as publicBulkUpdateSubscriptionOptions, bulkDeleteSubscriptionOptions as publicBulkDeleteSubscriptionOptions, assignSubscriptionOptionsToProduct as publicAssignSubscriptionOptionsToProduct, allowOneTimePurchases as publicAllowOneTimePurchases, getSubscriptionOption as publicGetSubscriptionOption, getSubscriptionOptionsForProduct as publicGetSubscriptionOptionsForProduct, getProductIdsForSubscriptionOption as publicGetProductIdsForSubscriptionOption, getOneTimePurchasesStatus as publicGetOneTimePurchasesStatus, } from './stores-v1-subscription-option.public';
2
- export const createSubscriptionOption = (...args) => {
3
- var _a;
4
- const context =
5
- // @ts-expect-error
6
- typeof $wixContext !== 'undefined'
7
- ? // @ts-expect-error
8
- $wixContext
9
- : // @ts-expect-error
10
- globalThis.__wix_context__;
11
- if (!context) {
12
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
13
- }
14
- return context
15
- .initWixModules(publicCreateSubscriptionOption, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
16
- .apply(undefined, args);
17
- };
18
- export const updateSubscriptionOption = (...args) => {
19
- var _a;
20
- const context =
21
- // @ts-expect-error
22
- typeof $wixContext !== 'undefined'
23
- ? // @ts-expect-error
24
- $wixContext
25
- : // @ts-expect-error
26
- globalThis.__wix_context__;
27
- if (!context) {
28
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
29
- }
30
- return context
31
- .initWixModules(publicUpdateSubscriptionOption, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
32
- .apply(undefined, args);
33
- };
34
- export const deleteSubscriptionOption = (...args) => {
35
- var _a;
36
- const context =
37
- // @ts-expect-error
38
- typeof $wixContext !== 'undefined'
39
- ? // @ts-expect-error
40
- $wixContext
41
- : // @ts-expect-error
42
- globalThis.__wix_context__;
43
- if (!context) {
44
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
45
- }
46
- return context
47
- .initWixModules(publicDeleteSubscriptionOption, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
48
- .apply(undefined, args);
49
- };
50
- export const bulkCreateSubscriptionOptions = (...args) => {
51
- var _a;
52
- const context =
53
- // @ts-expect-error
54
- typeof $wixContext !== 'undefined'
55
- ? // @ts-expect-error
56
- $wixContext
57
- : // @ts-expect-error
58
- globalThis.__wix_context__;
59
- if (!context) {
60
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
61
- }
62
- return context
63
- .initWixModules(publicBulkCreateSubscriptionOptions, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
64
- .apply(undefined, args);
65
- };
66
- export const bulkUpdateSubscriptionOptions = (...args) => {
67
- var _a;
68
- const context =
69
- // @ts-expect-error
70
- typeof $wixContext !== 'undefined'
71
- ? // @ts-expect-error
72
- $wixContext
73
- : // @ts-expect-error
74
- globalThis.__wix_context__;
75
- if (!context) {
76
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
77
- }
78
- return context
79
- .initWixModules(publicBulkUpdateSubscriptionOptions, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
80
- .apply(undefined, args);
81
- };
82
- export const bulkDeleteSubscriptionOptions = (...args) => {
83
- var _a;
84
- const context =
85
- // @ts-expect-error
86
- typeof $wixContext !== 'undefined'
87
- ? // @ts-expect-error
88
- $wixContext
89
- : // @ts-expect-error
90
- globalThis.__wix_context__;
91
- if (!context) {
92
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
93
- }
94
- return context
95
- .initWixModules(publicBulkDeleteSubscriptionOptions, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
96
- .apply(undefined, args);
97
- };
98
- export const assignSubscriptionOptionsToProduct = (...args) => {
99
- var _a;
100
- const context =
101
- // @ts-expect-error
102
- typeof $wixContext !== 'undefined'
103
- ? // @ts-expect-error
104
- $wixContext
105
- : // @ts-expect-error
106
- globalThis.__wix_context__;
107
- if (!context) {
108
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
109
- }
110
- return context
111
- .initWixModules(publicAssignSubscriptionOptionsToProduct, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
112
- .apply(undefined, args);
113
- };
114
- export const allowOneTimePurchases = (...args) => {
115
- var _a;
116
- const context =
117
- // @ts-expect-error
118
- typeof $wixContext !== 'undefined'
119
- ? // @ts-expect-error
120
- $wixContext
121
- : // @ts-expect-error
122
- globalThis.__wix_context__;
123
- if (!context) {
124
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
125
- }
126
- return context
127
- .initWixModules(publicAllowOneTimePurchases, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
128
- .apply(undefined, args);
129
- };
130
- export const getSubscriptionOption = (...args) => {
131
- var _a;
132
- const context =
133
- // @ts-expect-error
134
- typeof $wixContext !== 'undefined'
135
- ? // @ts-expect-error
136
- $wixContext
137
- : // @ts-expect-error
138
- globalThis.__wix_context__;
139
- if (!context) {
140
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
141
- }
142
- return context
143
- .initWixModules(publicGetSubscriptionOption, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
144
- .apply(undefined, args);
145
- };
146
- export const getSubscriptionOptionsForProduct = (...args) => {
147
- var _a;
148
- const context =
149
- // @ts-expect-error
150
- typeof $wixContext !== 'undefined'
151
- ? // @ts-expect-error
152
- $wixContext
153
- : // @ts-expect-error
154
- globalThis.__wix_context__;
155
- if (!context) {
156
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
157
- }
158
- return context
159
- .initWixModules(publicGetSubscriptionOptionsForProduct, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
160
- .apply(undefined, args);
161
- };
162
- export const getProductIdsForSubscriptionOption = (...args) => {
163
- var _a;
164
- const context =
165
- // @ts-expect-error
166
- typeof $wixContext !== 'undefined'
167
- ? // @ts-expect-error
168
- $wixContext
169
- : // @ts-expect-error
170
- globalThis.__wix_context__;
171
- if (!context) {
172
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
173
- }
174
- return context
175
- .initWixModules(publicGetProductIdsForSubscriptionOption, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
176
- .apply(undefined, args);
177
- };
178
- export const getOneTimePurchasesStatus = (...args) => {
179
- var _a;
180
- const context =
181
- // @ts-expect-error
182
- typeof $wixContext !== 'undefined'
183
- ? // @ts-expect-error
184
- $wixContext
185
- : // @ts-expect-error
186
- globalThis.__wix_context__;
187
- if (!context) {
188
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
189
- }
190
- return context
191
- .initWixModules(publicGetOneTimePurchasesStatus, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
192
- .apply(undefined, args);
193
- };
194
- //# sourceMappingURL=stores-v1-subscription-option.context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stores-v1-subscription-option.context.js","sourceRoot":"","sources":["../../../src/stores-v1-subscription-option.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,IAAI,8BAA8B,EAC1D,wBAAwB,IAAI,8BAA8B,EAC1D,wBAAwB,IAAI,8BAA8B,EAC1D,6BAA6B,IAAI,mCAAmC,EACpE,6BAA6B,IAAI,mCAAmC,EACpE,6BAA6B,IAAI,mCAAmC,EACpE,kCAAkC,IAAI,wCAAwC,EAC9E,qBAAqB,IAAI,2BAA2B,EACpD,qBAAqB,IAAI,2BAA2B,EACpD,gCAAgC,IAAI,sCAAsC,EAC1E,kCAAkC,IAAI,wCAAwC,EAC9E,yBAAyB,IAAI,+BAA+B,GAC7D,MAAM,wCAAwC,CAAC;AAGhD,MAAM,CAAC,MAAM,wBAAwB,GAEjC,CAAC,GAAG,IAAS,EAAE,EAAE;;IACnB,MAAM,OAAO;IACX,mBAAmB;IACnB,OAAO,WAAW,KAAK,WAAW;QAChC,CAAC,CAAC,mBAAmB;YACnB,WAAW;QACb,CAAC,CAAC,mBAAmB;YACnB,UAAU,CAAC,eAAe,CAAC;IACjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI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