@wix/auto_sdk_ecom_subscription-contracts 1.0.133 → 1.0.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +213 -266
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +106 -155
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +80 -122
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +213 -266
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +106 -155
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +80 -122
- package/build/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -65,6 +65,82 @@ var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
|
65
65
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
66
66
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
67
67
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
68
|
+
var TRANSFORM_PATHS_0 = [
|
|
69
|
+
{ path: "subscriptionContract.createdDate" },
|
|
70
|
+
{ path: "subscriptionContract.updatedDate" },
|
|
71
|
+
{ path: "subscriptionContract.subscriptionSettings.startDate" },
|
|
72
|
+
{ path: "subscriptionContract.lineItems.image.urlExpirationDate" },
|
|
73
|
+
{ path: "subscriptionContract.lineItems.digitalFile.expirationDate" },
|
|
74
|
+
{
|
|
75
|
+
path: "subscriptionContract.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
76
|
+
},
|
|
77
|
+
{ path: "subscriptionContract.lineItems.serviceProperties.scheduledDate" },
|
|
78
|
+
{ path: "subscriptionContract.lineItems.serviceProperties.endDate" },
|
|
79
|
+
{ path: "subscriptionContract.shippingInfo.logistics.deliverByDate" },
|
|
80
|
+
{ path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
81
|
+
{ path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
82
|
+
{ path: "subscriptionContract.activities.createdDate" }
|
|
83
|
+
];
|
|
84
|
+
var TRANSFORM_PATHS_1 = [
|
|
85
|
+
{ path: "subscriptionContract.lineItems.image.focalPoint.x" },
|
|
86
|
+
{ path: "subscriptionContract.lineItems.image.focalPoint.y" },
|
|
87
|
+
{ path: "subscriptionContract.lineItems.physicalProperties.weight" },
|
|
88
|
+
{ path: "subscriptionContract.billingInfo.address.geocode.latitude" },
|
|
89
|
+
{ path: "subscriptionContract.billingInfo.address.geocode.longitude" },
|
|
90
|
+
{
|
|
91
|
+
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
101
|
+
},
|
|
102
|
+
{ path: "subscriptionContract.recipientInfo.address.geocode.latitude" },
|
|
103
|
+
{ path: "subscriptionContract.recipientInfo.address.geocode.longitude" }
|
|
104
|
+
];
|
|
105
|
+
var TRANSFORM_PATHS_2 = [
|
|
106
|
+
{ path: "subscriptionContracts.createdDate" },
|
|
107
|
+
{ path: "subscriptionContracts.updatedDate" },
|
|
108
|
+
{ path: "subscriptionContracts.subscriptionSettings.startDate" },
|
|
109
|
+
{ path: "subscriptionContracts.lineItems.image.urlExpirationDate" },
|
|
110
|
+
{ path: "subscriptionContracts.lineItems.digitalFile.expirationDate" },
|
|
111
|
+
{
|
|
112
|
+
path: "subscriptionContracts.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
113
|
+
},
|
|
114
|
+
{ path: "subscriptionContracts.lineItems.serviceProperties.scheduledDate" },
|
|
115
|
+
{ path: "subscriptionContracts.lineItems.serviceProperties.endDate" },
|
|
116
|
+
{ path: "subscriptionContracts.shippingInfo.logistics.deliverByDate" },
|
|
117
|
+
{
|
|
118
|
+
path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
119
|
+
},
|
|
120
|
+
{ path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
121
|
+
{ path: "subscriptionContracts.activities.createdDate" }
|
|
122
|
+
];
|
|
123
|
+
var TRANSFORM_PATHS_3 = [
|
|
124
|
+
{ path: "subscriptionContracts.lineItems.image.focalPoint.x" },
|
|
125
|
+
{ path: "subscriptionContracts.lineItems.image.focalPoint.y" },
|
|
126
|
+
{ path: "subscriptionContracts.lineItems.physicalProperties.weight" },
|
|
127
|
+
{ path: "subscriptionContracts.billingInfo.address.geocode.latitude" },
|
|
128
|
+
{ path: "subscriptionContracts.billingInfo.address.geocode.longitude" },
|
|
129
|
+
{
|
|
130
|
+
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
140
|
+
},
|
|
141
|
+
{ path: "subscriptionContracts.recipientInfo.address.geocode.latitude" },
|
|
142
|
+
{ path: "subscriptionContracts.recipientInfo.address.geocode.longitude" }
|
|
143
|
+
];
|
|
68
144
|
function resolveWixEcomSubscriptionContractsV1SubscriptionContractsUrl(opts) {
|
|
69
145
|
const domainToMappings = {
|
|
70
146
|
"www.wixapis.com": [
|
|
@@ -130,70 +206,11 @@ function getSubscriptionContract(payload) {
|
|
|
130
206
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
131
207
|
{
|
|
132
208
|
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
133
|
-
paths:
|
|
134
|
-
{ path: "subscriptionContract.createdDate" },
|
|
135
|
-
{ path: "subscriptionContract.updatedDate" },
|
|
136
|
-
{ path: "subscriptionContract.subscriptionSettings.startDate" },
|
|
137
|
-
{
|
|
138
|
-
path: "subscriptionContract.lineItems.image.urlExpirationDate"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
path: "subscriptionContract.lineItems.digitalFile.expirationDate"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
path: "subscriptionContract.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
path: "subscriptionContract.lineItems.serviceProperties.scheduledDate"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
path: "subscriptionContract.lineItems.serviceProperties.endDate"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
path: "subscriptionContract.shippingInfo.logistics.deliverByDate"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
160
|
-
},
|
|
161
|
-
{ path: "subscriptionContract.activities.createdDate" }
|
|
162
|
-
]
|
|
209
|
+
paths: TRANSFORM_PATHS_0
|
|
163
210
|
},
|
|
164
211
|
{
|
|
165
212
|
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
166
|
-
paths:
|
|
167
|
-
{ path: "subscriptionContract.lineItems.image.focalPoint.x" },
|
|
168
|
-
{ path: "subscriptionContract.lineItems.image.focalPoint.y" },
|
|
169
|
-
{
|
|
170
|
-
path: "subscriptionContract.lineItems.physicalProperties.weight"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
path: "subscriptionContract.billingInfo.address.geocode.latitude"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
path: "subscriptionContract.billingInfo.address.geocode.longitude"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
path: "subscriptionContract.recipientInfo.address.geocode.latitude"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
path: "subscriptionContract.recipientInfo.address.geocode.longitude"
|
|
195
|
-
}
|
|
196
|
-
]
|
|
213
|
+
paths: TRANSFORM_PATHS_1
|
|
197
214
|
}
|
|
198
215
|
])
|
|
199
216
|
};
|
|
@@ -220,70 +237,11 @@ function querySubscriptionContracts(payload) {
|
|
|
220
237
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
221
238
|
{
|
|
222
239
|
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
223
|
-
paths:
|
|
224
|
-
{ path: "subscriptionContracts.createdDate" },
|
|
225
|
-
{ path: "subscriptionContracts.updatedDate" },
|
|
226
|
-
{ path: "subscriptionContracts.subscriptionSettings.startDate" },
|
|
227
|
-
{
|
|
228
|
-
path: "subscriptionContracts.lineItems.image.urlExpirationDate"
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
path: "subscriptionContracts.lineItems.digitalFile.expirationDate"
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
path: "subscriptionContracts.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
path: "subscriptionContracts.lineItems.serviceProperties.scheduledDate"
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
path: "subscriptionContracts.lineItems.serviceProperties.endDate"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
path: "subscriptionContracts.shippingInfo.logistics.deliverByDate"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
250
|
-
},
|
|
251
|
-
{ path: "subscriptionContracts.activities.createdDate" }
|
|
252
|
-
]
|
|
240
|
+
paths: TRANSFORM_PATHS_2
|
|
253
241
|
},
|
|
254
242
|
{
|
|
255
243
|
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
256
|
-
paths:
|
|
257
|
-
{ path: "subscriptionContracts.lineItems.image.focalPoint.x" },
|
|
258
|
-
{ path: "subscriptionContracts.lineItems.image.focalPoint.y" },
|
|
259
|
-
{
|
|
260
|
-
path: "subscriptionContracts.lineItems.physicalProperties.weight"
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
path: "subscriptionContracts.billingInfo.address.geocode.latitude"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
path: "subscriptionContracts.billingInfo.address.geocode.longitude"
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
path: "subscriptionContracts.recipientInfo.address.geocode.latitude"
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
path: "subscriptionContracts.recipientInfo.address.geocode.longitude"
|
|
285
|
-
}
|
|
286
|
-
]
|
|
244
|
+
paths: TRANSFORM_PATHS_3
|
|
287
245
|
}
|
|
288
246
|
]),
|
|
289
247
|
fallback: [
|
|
@@ -308,6 +266,26 @@ var import_address = require("@wix/sdk-runtime/transformations/address");
|
|
|
308
266
|
var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
309
267
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
310
268
|
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
269
|
+
var TRANSFORM_PATHS_02 = [{ path: "subscriptionContract.lineItems.image" }];
|
|
270
|
+
var TRANSFORM_PATHS_12 = [
|
|
271
|
+
{ path: "subscriptionContract.billingInfo.address" },
|
|
272
|
+
{
|
|
273
|
+
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address"
|
|
274
|
+
},
|
|
275
|
+
{ path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address" },
|
|
276
|
+
{ path: "subscriptionContract.recipientInfo.address" }
|
|
277
|
+
];
|
|
278
|
+
var TRANSFORM_PATHS_22 = [{ path: "subscriptionContracts.lineItems.image" }];
|
|
279
|
+
var TRANSFORM_PATHS_32 = [
|
|
280
|
+
{ path: "subscriptionContracts.billingInfo.address" },
|
|
281
|
+
{
|
|
282
|
+
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address"
|
|
286
|
+
},
|
|
287
|
+
{ path: "subscriptionContracts.recipientInfo.address" }
|
|
288
|
+
];
|
|
311
289
|
var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
|
|
312
290
|
SubscriptionFrequency2["UNDEFINED"] = "UNDEFINED";
|
|
313
291
|
SubscriptionFrequency2["DAY"] = "DAY";
|
|
@@ -536,20 +514,11 @@ async function getSubscriptionContract2(subscriptionContractId) {
|
|
|
536
514
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
537
515
|
{
|
|
538
516
|
transformFn: import_image.transformRESTImageToSDKImage,
|
|
539
|
-
paths:
|
|
517
|
+
paths: TRANSFORM_PATHS_02
|
|
540
518
|
},
|
|
541
519
|
{
|
|
542
520
|
transformFn: import_address.transformRESTAddressToSDKAddress,
|
|
543
|
-
paths:
|
|
544
|
-
{ path: "subscriptionContract.billingInfo.address" },
|
|
545
|
-
{
|
|
546
|
-
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address"
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address"
|
|
550
|
-
},
|
|
551
|
-
{ path: "subscriptionContract.recipientInfo.address" }
|
|
552
|
-
]
|
|
521
|
+
paths: TRANSFORM_PATHS_12
|
|
553
522
|
}
|
|
554
523
|
])
|
|
555
524
|
)?.subscriptionContract;
|
|
@@ -598,20 +567,11 @@ function querySubscriptionContracts2() {
|
|
|
598
567
|
(0, import_transform_paths2.transformPaths)(data, [
|
|
599
568
|
{
|
|
600
569
|
transformFn: import_image.transformRESTImageToSDKImage,
|
|
601
|
-
paths:
|
|
570
|
+
paths: TRANSFORM_PATHS_22
|
|
602
571
|
},
|
|
603
572
|
{
|
|
604
573
|
transformFn: import_address.transformRESTAddressToSDKAddress,
|
|
605
|
-
paths:
|
|
606
|
-
{ path: "subscriptionContracts.billingInfo.address" },
|
|
607
|
-
{
|
|
608
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address"
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address"
|
|
612
|
-
},
|
|
613
|
-
{ path: "subscriptionContracts.recipientInfo.address" }
|
|
614
|
-
]
|
|
574
|
+
paths: TRANSFORM_PATHS_32
|
|
615
575
|
}
|
|
616
576
|
])
|
|
617
577
|
);
|
|
@@ -646,20 +606,11 @@ async function typedQuerySubscriptionContracts(query) {
|
|
|
646
606
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
647
607
|
{
|
|
648
608
|
transformFn: import_image.transformRESTImageToSDKImage,
|
|
649
|
-
paths:
|
|
609
|
+
paths: TRANSFORM_PATHS_22
|
|
650
610
|
},
|
|
651
611
|
{
|
|
652
612
|
transformFn: import_address.transformRESTAddressToSDKAddress,
|
|
653
|
-
paths:
|
|
654
|
-
{ path: "subscriptionContracts.billingInfo.address" },
|
|
655
|
-
{
|
|
656
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address"
|
|
657
|
-
},
|
|
658
|
-
{
|
|
659
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address"
|
|
660
|
-
},
|
|
661
|
-
{ path: "subscriptionContracts.recipientInfo.address" }
|
|
662
|
-
]
|
|
613
|
+
paths: TRANSFORM_PATHS_32
|
|
663
614
|
}
|
|
664
615
|
])
|
|
665
616
|
);
|