@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,189 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
- Object.defineProperty(exports, "__esModule", { value: true });
35
- exports.queryAbandonedCarts = exports.getAbandonedCart = exports.ActivityType = exports.Identity = exports.Status = exports.__debug = void 0;
36
- const velo_1 = require("@wix/metro-runtime/velo");
37
- const ambassadorWixStoresV1AbandonedCart = __importStar(require("./stores-v1-abandoned-cart.http"));
38
- let __verbose = false;
39
- function __log(...args) {
40
- __verbose && console.log(...args);
41
- }
42
- function __inspect(obj) {
43
- return obj;
44
- }
45
- exports.__debug = {
46
- verboseLogging: {
47
- on: () => (__verbose = true),
48
- off: () => (__verbose = false),
49
- },
50
- };
51
- const _toVeloEntity = '$';
52
- const _fromVeloEntity = '$';
53
- var Status;
54
- (function (Status) {
55
- Status["ABANDONED"] = "ABANDONED";
56
- Status["RECOVERED"] = "RECOVERED";
57
- })(Status || (exports.Status = Status = {}));
58
- var Identity;
59
- (function (Identity) {
60
- /** Customer is the site owner */
61
- Identity["ADMIN"] = "ADMIN";
62
- /** Customer is logged in */
63
- Identity["MEMBER"] = "MEMBER";
64
- /** Customer is not logged in */
65
- Identity["VISITOR"] = "VISITOR";
66
- /** Contact was created for the customer */
67
- Identity["CONTACT"] = "CONTACT";
68
- })(Identity || (exports.Identity = Identity = {}));
69
- var ActivityType;
70
- (function (ActivityType) {
71
- ActivityType["UNRECOGNIZED_TYPE"] = "UNRECOGNIZED_TYPE";
72
- ActivityType["SCHEDULED"] = "SCHEDULED";
73
- ActivityType["EMAIL_SENT"] = "EMAIL_SENT";
74
- ActivityType["EMAIL_NOT_SENT"] = "EMAIL_NOT_SENT";
75
- ActivityType["NOTIFICATION_SENT"] = "NOTIFICATION_SENT";
76
- ActivityType["TASK_CREATED"] = "TASK_CREATED";
77
- ActivityType["CUSTOM_ACTIVITY"] = "CUSTOM_ACTIVITY";
78
- })(ActivityType || (exports.ActivityType = ActivityType = {}));
79
- const _getAbandonedCartRequest = {};
80
- const _getAbandonedCartResponse = {};
81
- const _queryAbandonedCartsRequest = {};
82
- const _queryAbandonedCartsResponse = {};
83
- /**
84
- * Returns abandoned carts based on the cart ID
85
- * @param _id - Cart ID
86
- * @public
87
- * @requiredField _id
88
- * @permissionScope Manage Orders
89
- * @permissionScope Read Orders
90
- * @applicableIdentity APP
91
- * @returns Cart details
92
- */
93
- function getAbandonedCart(_id) {
94
- var _a, _b, _c;
95
- return __awaiter(this, arguments, void 0, function* () {
96
- const requestTransformation = { id: '$[0]' };
97
- const responseTransformation = '$.abandonedCart';
98
- // @ts-ignore
99
- const { httpClient, sideEffects } = arguments[1];
100
- const { toAmbassadorRequest } = (0, velo_1.serializer)({
101
- rootSchema: _getAbandonedCartRequest,
102
- depSchemas: {},
103
- fqdnTransformation: {
104
- paths: [],
105
- transformation: _fromVeloEntity,
106
- },
107
- customTransformation: requestTransformation,
108
- });
109
- const { fromJSON } = (0, velo_1.serializer)({
110
- rootSchema: _getAbandonedCartResponse,
111
- depSchemas: {},
112
- fqdnTransformation: {
113
- paths: [...['abandonedCart']],
114
- transformation: _toVeloEntity,
115
- },
116
- customTransformation: responseTransformation,
117
- });
118
- const payload = toAmbassadorRequest([_id]);
119
- const reqOpts = ambassadorWixStoresV1AbandonedCart.getAbandonedCart(payload);
120
- __log(`"GetAbandonedCart" sending request with: ${__inspect(reqOpts)}`);
121
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
122
- try {
123
- const result = yield httpClient.request(reqOpts);
124
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
125
- return fromJSON(result.data);
126
- }
127
- catch (err) {
128
- const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
129
- '_id',
130
- ]);
131
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
132
- throw transformedError;
133
- }
134
- });
135
- }
136
- exports.getAbandonedCart = getAbandonedCart;
137
- /**
138
- * Returns abandoned carts based on the requested query parameters
139
- * @public
140
- * @documentationMaturity preview
141
- * @permissionScope Manage Orders
142
- * @permissionScope Read Orders
143
- * @applicableIdentity APP
144
- */
145
- function queryAbandonedCarts(options) {
146
- var _a, _b, _c;
147
- return __awaiter(this, arguments, void 0, function* () {
148
- const requestTransformation = { query: '$[0].query' };
149
- const responseTransformation = '$';
150
- // @ts-ignore
151
- const { httpClient, sideEffects } = arguments[1];
152
- const { toAmbassadorRequest } = (0, velo_1.serializer)({
153
- rootSchema: _queryAbandonedCartsRequest,
154
- depSchemas: {},
155
- fqdnTransformation: {
156
- paths: [],
157
- transformation: _fromVeloEntity,
158
- },
159
- customTransformation: requestTransformation,
160
- });
161
- const { fromJSON } = (0, velo_1.serializer)({
162
- rootSchema: _queryAbandonedCartsResponse,
163
- depSchemas: {},
164
- fqdnTransformation: {
165
- paths: [...['Array#abandonedCarts']],
166
- transformation: _toVeloEntity,
167
- },
168
- customTransformation: responseTransformation,
169
- });
170
- const payload = toAmbassadorRequest([options]);
171
- const reqOpts = ambassadorWixStoresV1AbandonedCart.queryAbandonedCarts(payload);
172
- __log(`"QueryAbandonedCarts" sending request with: ${__inspect(reqOpts)}`);
173
- (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
174
- try {
175
- const result = yield httpClient.request(reqOpts);
176
- (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
177
- return fromJSON(result.data);
178
- }
179
- catch (err) {
180
- const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
181
- 'options',
182
- ]);
183
- (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
184
- throw transformedError;
185
- }
186
- });
187
- }
188
- exports.queryAbandonedCarts = queryAbandonedCarts;
189
- //# 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,kDAAqE;AAErE,oGAAsF;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,S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,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,IAAA,qBAAc,EAAC,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;AAvDD,kDAuDC"}
@@ -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,209 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getOneTimePurchasesStatus = exports.getProductIdsForSubscriptionOption = exports.getSubscriptionOptionsForProduct = exports.getSubscriptionOption = exports.allowOneTimePurchases = exports.assignSubscriptionOptionsToProduct = exports.bulkDeleteSubscriptionOptions = exports.bulkUpdateSubscriptionOptions = exports.bulkCreateSubscriptionOptions = exports.deleteSubscriptionOption = exports.updateSubscriptionOption = exports.createSubscriptionOption = void 0;
4
- const stores_v1_subscription_option_public_1 = require("./stores-v1-subscription-option.public");
5
- const createSubscriptionOption = (...args) => {
6
- var _a;
7
- const context =
8
- // @ts-expect-error
9
- typeof $wixContext !== 'undefined'
10
- ? // @ts-expect-error
11
- $wixContext
12
- : // @ts-expect-error
13
- globalThis.__wix_context__;
14
- if (!context) {
15
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
16
- }
17
- return context
18
- .initWixModules(stores_v1_subscription_option_public_1.createSubscriptionOption, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
19
- .apply(undefined, args);
20
- };
21
- exports.createSubscriptionOption = createSubscriptionOption;
22
- const updateSubscriptionOption = (...args) => {
23
- var _a;
24
- const context =
25
- // @ts-expect-error
26
- typeof $wixContext !== 'undefined'
27
- ? // @ts-expect-error
28
- $wixContext
29
- : // @ts-expect-error
30
- globalThis.__wix_context__;
31
- if (!context) {
32
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
33
- }
34
- return context
35
- .initWixModules(stores_v1_subscription_option_public_1.updateSubscriptionOption, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
36
- .apply(undefined, args);
37
- };
38
- exports.updateSubscriptionOption = updateSubscriptionOption;
39
- const deleteSubscriptionOption = (...args) => {
40
- var _a;
41
- const context =
42
- // @ts-expect-error
43
- typeof $wixContext !== 'undefined'
44
- ? // @ts-expect-error
45
- $wixContext
46
- : // @ts-expect-error
47
- globalThis.__wix_context__;
48
- if (!context) {
49
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
50
- }
51
- return context
52
- .initWixModules(stores_v1_subscription_option_public_1.deleteSubscriptionOption, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
53
- .apply(undefined, args);
54
- };
55
- exports.deleteSubscriptionOption = deleteSubscriptionOption;
56
- const bulkCreateSubscriptionOptions = (...args) => {
57
- var _a;
58
- const context =
59
- // @ts-expect-error
60
- typeof $wixContext !== 'undefined'
61
- ? // @ts-expect-error
62
- $wixContext
63
- : // @ts-expect-error
64
- globalThis.__wix_context__;
65
- if (!context) {
66
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
67
- }
68
- return context
69
- .initWixModules(stores_v1_subscription_option_public_1.bulkCreateSubscriptionOptions, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
70
- .apply(undefined, args);
71
- };
72
- exports.bulkCreateSubscriptionOptions = bulkCreateSubscriptionOptions;
73
- const bulkUpdateSubscriptionOptions = (...args) => {
74
- var _a;
75
- const context =
76
- // @ts-expect-error
77
- typeof $wixContext !== 'undefined'
78
- ? // @ts-expect-error
79
- $wixContext
80
- : // @ts-expect-error
81
- globalThis.__wix_context__;
82
- if (!context) {
83
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
84
- }
85
- return context
86
- .initWixModules(stores_v1_subscription_option_public_1.bulkUpdateSubscriptionOptions, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
87
- .apply(undefined, args);
88
- };
89
- exports.bulkUpdateSubscriptionOptions = bulkUpdateSubscriptionOptions;
90
- const bulkDeleteSubscriptionOptions = (...args) => {
91
- var _a;
92
- const context =
93
- // @ts-expect-error
94
- typeof $wixContext !== 'undefined'
95
- ? // @ts-expect-error
96
- $wixContext
97
- : // @ts-expect-error
98
- globalThis.__wix_context__;
99
- if (!context) {
100
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
101
- }
102
- return context
103
- .initWixModules(stores_v1_subscription_option_public_1.bulkDeleteSubscriptionOptions, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
104
- .apply(undefined, args);
105
- };
106
- exports.bulkDeleteSubscriptionOptions = bulkDeleteSubscriptionOptions;
107
- const assignSubscriptionOptionsToProduct = (...args) => {
108
- var _a;
109
- const context =
110
- // @ts-expect-error
111
- typeof $wixContext !== 'undefined'
112
- ? // @ts-expect-error
113
- $wixContext
114
- : // @ts-expect-error
115
- globalThis.__wix_context__;
116
- if (!context) {
117
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
118
- }
119
- return context
120
- .initWixModules(stores_v1_subscription_option_public_1.assignSubscriptionOptionsToProduct, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
121
- .apply(undefined, args);
122
- };
123
- exports.assignSubscriptionOptionsToProduct = assignSubscriptionOptionsToProduct;
124
- const allowOneTimePurchases = (...args) => {
125
- var _a;
126
- const context =
127
- // @ts-expect-error
128
- typeof $wixContext !== 'undefined'
129
- ? // @ts-expect-error
130
- $wixContext
131
- : // @ts-expect-error
132
- globalThis.__wix_context__;
133
- if (!context) {
134
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
135
- }
136
- return context
137
- .initWixModules(stores_v1_subscription_option_public_1.allowOneTimePurchases, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
138
- .apply(undefined, args);
139
- };
140
- exports.allowOneTimePurchases = allowOneTimePurchases;
141
- const getSubscriptionOption = (...args) => {
142
- var _a;
143
- const context =
144
- // @ts-expect-error
145
- typeof $wixContext !== 'undefined'
146
- ? // @ts-expect-error
147
- $wixContext
148
- : // @ts-expect-error
149
- globalThis.__wix_context__;
150
- if (!context) {
151
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
152
- }
153
- return context
154
- .initWixModules(stores_v1_subscription_option_public_1.getSubscriptionOption, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
155
- .apply(undefined, args);
156
- };
157
- exports.getSubscriptionOption = getSubscriptionOption;
158
- const getSubscriptionOptionsForProduct = (...args) => {
159
- var _a;
160
- const context =
161
- // @ts-expect-error
162
- typeof $wixContext !== 'undefined'
163
- ? // @ts-expect-error
164
- $wixContext
165
- : // @ts-expect-error
166
- globalThis.__wix_context__;
167
- if (!context) {
168
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
169
- }
170
- return context
171
- .initWixModules(stores_v1_subscription_option_public_1.getSubscriptionOptionsForProduct, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
172
- .apply(undefined, args);
173
- };
174
- exports.getSubscriptionOptionsForProduct = getSubscriptionOptionsForProduct;
175
- const getProductIdsForSubscriptionOption = (...args) => {
176
- var _a;
177
- const context =
178
- // @ts-expect-error
179
- typeof $wixContext !== 'undefined'
180
- ? // @ts-expect-error
181
- $wixContext
182
- : // @ts-expect-error
183
- globalThis.__wix_context__;
184
- if (!context) {
185
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
186
- }
187
- return context
188
- .initWixModules(stores_v1_subscription_option_public_1.getProductIdsForSubscriptionOption, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
189
- .apply(undefined, args);
190
- };
191
- exports.getProductIdsForSubscriptionOption = getProductIdsForSubscriptionOption;
192
- const getOneTimePurchasesStatus = (...args) => {
193
- var _a;
194
- const context =
195
- // @ts-expect-error
196
- typeof $wixContext !== 'undefined'
197
- ? // @ts-expect-error
198
- $wixContext
199
- : // @ts-expect-error
200
- globalThis.__wix_context__;
201
- if (!context) {
202
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
203
- }
204
- return context
205
- .initWixModules(stores_v1_subscription_option_public_1.getOneTimePurchasesStatus, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
206
- .apply(undefined, args);
207
- };
208
- exports.getOneTimePurchasesStatus = getOneTimePurchasesStatus;
209
- //# 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,iGAagD;AAGzC,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,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,OAAO,OAAO;SACX,cAAc,CACb,+DAA8B,EAC9B,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,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