@wix/auto_sdk_ecom_subscription-contracts 1.0.133 → 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.
- package/build/cjs/index.js +213 -266
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +106 -155
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -2
- 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.d.mts +2 -2
- package/build/es/index.typings.mjs +106 -155
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -2
- package/build/es/meta.mjs +80 -122
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/meta.d.ts +2 -2
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/meta.d.mts +2 -2
- package/package.json +2 -2
|
@@ -238,7 +238,7 @@ interface OrderLineItem {
|
|
|
238
238
|
itemType?: ItemType;
|
|
239
239
|
/**
|
|
240
240
|
* Fulfiller ID. Field is empty when the line item is self-fulfilled.
|
|
241
|
-
* To get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://dev.wix.com/docs/
|
|
241
|
+
* To get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/order-fulfillments/list-fulfillments-for-single-order).
|
|
242
242
|
* @format GUID
|
|
243
243
|
*/
|
|
244
244
|
fulfillerId?: string | null;
|
|
@@ -335,7 +335,7 @@ interface OrderLineItem {
|
|
|
335
335
|
/**
|
|
336
336
|
* Custom extended fields for the line item object.
|
|
337
337
|
*
|
|
338
|
-
* [Extended fields](https://dev.wix.com/docs/
|
|
338
|
+
* [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
|
|
339
339
|
*/
|
|
340
340
|
extendedFields?: ExtendedFields;
|
|
341
341
|
/**
|
|
@@ -12,6 +12,82 @@ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/f
|
|
|
12
12
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
13
13
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
14
14
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
15
|
+
var TRANSFORM_PATHS_0 = [
|
|
16
|
+
{ path: "subscriptionContract.createdDate" },
|
|
17
|
+
{ path: "subscriptionContract.updatedDate" },
|
|
18
|
+
{ path: "subscriptionContract.subscriptionSettings.startDate" },
|
|
19
|
+
{ path: "subscriptionContract.lineItems.image.urlExpirationDate" },
|
|
20
|
+
{ path: "subscriptionContract.lineItems.digitalFile.expirationDate" },
|
|
21
|
+
{
|
|
22
|
+
path: "subscriptionContract.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
23
|
+
},
|
|
24
|
+
{ path: "subscriptionContract.lineItems.serviceProperties.scheduledDate" },
|
|
25
|
+
{ path: "subscriptionContract.lineItems.serviceProperties.endDate" },
|
|
26
|
+
{ path: "subscriptionContract.shippingInfo.logistics.deliverByDate" },
|
|
27
|
+
{ path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
28
|
+
{ path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
29
|
+
{ path: "subscriptionContract.activities.createdDate" }
|
|
30
|
+
];
|
|
31
|
+
var TRANSFORM_PATHS_1 = [
|
|
32
|
+
{ path: "subscriptionContract.lineItems.image.focalPoint.x" },
|
|
33
|
+
{ path: "subscriptionContract.lineItems.image.focalPoint.y" },
|
|
34
|
+
{ path: "subscriptionContract.lineItems.physicalProperties.weight" },
|
|
35
|
+
{ path: "subscriptionContract.billingInfo.address.geocode.latitude" },
|
|
36
|
+
{ path: "subscriptionContract.billingInfo.address.geocode.longitude" },
|
|
37
|
+
{
|
|
38
|
+
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
48
|
+
},
|
|
49
|
+
{ path: "subscriptionContract.recipientInfo.address.geocode.latitude" },
|
|
50
|
+
{ path: "subscriptionContract.recipientInfo.address.geocode.longitude" }
|
|
51
|
+
];
|
|
52
|
+
var TRANSFORM_PATHS_2 = [
|
|
53
|
+
{ path: "subscriptionContracts.createdDate" },
|
|
54
|
+
{ path: "subscriptionContracts.updatedDate" },
|
|
55
|
+
{ path: "subscriptionContracts.subscriptionSettings.startDate" },
|
|
56
|
+
{ path: "subscriptionContracts.lineItems.image.urlExpirationDate" },
|
|
57
|
+
{ path: "subscriptionContracts.lineItems.digitalFile.expirationDate" },
|
|
58
|
+
{
|
|
59
|
+
path: "subscriptionContracts.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
60
|
+
},
|
|
61
|
+
{ path: "subscriptionContracts.lineItems.serviceProperties.scheduledDate" },
|
|
62
|
+
{ path: "subscriptionContracts.lineItems.serviceProperties.endDate" },
|
|
63
|
+
{ path: "subscriptionContracts.shippingInfo.logistics.deliverByDate" },
|
|
64
|
+
{
|
|
65
|
+
path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
66
|
+
},
|
|
67
|
+
{ path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
68
|
+
{ path: "subscriptionContracts.activities.createdDate" }
|
|
69
|
+
];
|
|
70
|
+
var TRANSFORM_PATHS_3 = [
|
|
71
|
+
{ path: "subscriptionContracts.lineItems.image.focalPoint.x" },
|
|
72
|
+
{ path: "subscriptionContracts.lineItems.image.focalPoint.y" },
|
|
73
|
+
{ path: "subscriptionContracts.lineItems.physicalProperties.weight" },
|
|
74
|
+
{ path: "subscriptionContracts.billingInfo.address.geocode.latitude" },
|
|
75
|
+
{ path: "subscriptionContracts.billingInfo.address.geocode.longitude" },
|
|
76
|
+
{
|
|
77
|
+
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
87
|
+
},
|
|
88
|
+
{ path: "subscriptionContracts.recipientInfo.address.geocode.latitude" },
|
|
89
|
+
{ path: "subscriptionContracts.recipientInfo.address.geocode.longitude" }
|
|
90
|
+
];
|
|
15
91
|
function resolveWixEcomSubscriptionContractsV1SubscriptionContractsUrl(opts) {
|
|
16
92
|
const domainToMappings = {
|
|
17
93
|
"www.wixapis.com": [
|
|
@@ -77,70 +153,11 @@ function getSubscriptionContract(payload) {
|
|
|
77
153
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
78
154
|
{
|
|
79
155
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
80
|
-
paths:
|
|
81
|
-
{ path: "subscriptionContract.createdDate" },
|
|
82
|
-
{ path: "subscriptionContract.updatedDate" },
|
|
83
|
-
{ path: "subscriptionContract.subscriptionSettings.startDate" },
|
|
84
|
-
{
|
|
85
|
-
path: "subscriptionContract.lineItems.image.urlExpirationDate"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
path: "subscriptionContract.lineItems.digitalFile.expirationDate"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
path: "subscriptionContract.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
path: "subscriptionContract.lineItems.serviceProperties.scheduledDate"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
path: "subscriptionContract.lineItems.serviceProperties.endDate"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
path: "subscriptionContract.shippingInfo.logistics.deliverByDate"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
107
|
-
},
|
|
108
|
-
{ path: "subscriptionContract.activities.createdDate" }
|
|
109
|
-
]
|
|
156
|
+
paths: TRANSFORM_PATHS_0
|
|
110
157
|
},
|
|
111
158
|
{
|
|
112
159
|
transformFn: transformRESTFloatToSDKFloat,
|
|
113
|
-
paths:
|
|
114
|
-
{ path: "subscriptionContract.lineItems.image.focalPoint.x" },
|
|
115
|
-
{ path: "subscriptionContract.lineItems.image.focalPoint.y" },
|
|
116
|
-
{
|
|
117
|
-
path: "subscriptionContract.lineItems.physicalProperties.weight"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
path: "subscriptionContract.billingInfo.address.geocode.latitude"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
path: "subscriptionContract.billingInfo.address.geocode.longitude"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
path: "subscriptionContract.recipientInfo.address.geocode.latitude"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
path: "subscriptionContract.recipientInfo.address.geocode.longitude"
|
|
142
|
-
}
|
|
143
|
-
]
|
|
160
|
+
paths: TRANSFORM_PATHS_1
|
|
144
161
|
}
|
|
145
162
|
])
|
|
146
163
|
};
|
|
@@ -167,70 +184,11 @@ function querySubscriptionContracts(payload) {
|
|
|
167
184
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
168
185
|
{
|
|
169
186
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
170
|
-
paths:
|
|
171
|
-
{ path: "subscriptionContracts.createdDate" },
|
|
172
|
-
{ path: "subscriptionContracts.updatedDate" },
|
|
173
|
-
{ path: "subscriptionContracts.subscriptionSettings.startDate" },
|
|
174
|
-
{
|
|
175
|
-
path: "subscriptionContracts.lineItems.image.urlExpirationDate"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
path: "subscriptionContracts.lineItems.digitalFile.expirationDate"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
path: "subscriptionContracts.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
path: "subscriptionContracts.lineItems.serviceProperties.scheduledDate"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
path: "subscriptionContracts.lineItems.serviceProperties.endDate"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
path: "subscriptionContracts.shippingInfo.logistics.deliverByDate"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
197
|
-
},
|
|
198
|
-
{ path: "subscriptionContracts.activities.createdDate" }
|
|
199
|
-
]
|
|
187
|
+
paths: TRANSFORM_PATHS_2
|
|
200
188
|
},
|
|
201
189
|
{
|
|
202
190
|
transformFn: transformRESTFloatToSDKFloat,
|
|
203
|
-
paths:
|
|
204
|
-
{ path: "subscriptionContracts.lineItems.image.focalPoint.x" },
|
|
205
|
-
{ path: "subscriptionContracts.lineItems.image.focalPoint.y" },
|
|
206
|
-
{
|
|
207
|
-
path: "subscriptionContracts.lineItems.physicalProperties.weight"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
path: "subscriptionContracts.billingInfo.address.geocode.latitude"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
path: "subscriptionContracts.billingInfo.address.geocode.longitude"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
path: "subscriptionContracts.recipientInfo.address.geocode.latitude"
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
path: "subscriptionContracts.recipientInfo.address.geocode.longitude"
|
|
232
|
-
}
|
|
233
|
-
]
|
|
191
|
+
paths: TRANSFORM_PATHS_3
|
|
234
192
|
}
|
|
235
193
|
]),
|
|
236
194
|
fallback: [
|
|
@@ -255,6 +213,26 @@ import { transformRESTAddressToSDKAddress } from "@wix/sdk-runtime/transformatio
|
|
|
255
213
|
import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
|
|
256
214
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
257
215
|
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
216
|
+
var TRANSFORM_PATHS_02 = [{ path: "subscriptionContract.lineItems.image" }];
|
|
217
|
+
var TRANSFORM_PATHS_12 = [
|
|
218
|
+
{ path: "subscriptionContract.billingInfo.address" },
|
|
219
|
+
{
|
|
220
|
+
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address"
|
|
221
|
+
},
|
|
222
|
+
{ path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address" },
|
|
223
|
+
{ path: "subscriptionContract.recipientInfo.address" }
|
|
224
|
+
];
|
|
225
|
+
var TRANSFORM_PATHS_22 = [{ path: "subscriptionContracts.lineItems.image" }];
|
|
226
|
+
var TRANSFORM_PATHS_32 = [
|
|
227
|
+
{ path: "subscriptionContracts.billingInfo.address" },
|
|
228
|
+
{
|
|
229
|
+
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address"
|
|
233
|
+
},
|
|
234
|
+
{ path: "subscriptionContracts.recipientInfo.address" }
|
|
235
|
+
];
|
|
258
236
|
var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
|
|
259
237
|
SubscriptionFrequency2["UNDEFINED"] = "UNDEFINED";
|
|
260
238
|
SubscriptionFrequency2["DAY"] = "DAY";
|
|
@@ -483,20 +461,11 @@ async function getSubscriptionContract2(subscriptionContractId) {
|
|
|
483
461
|
transformPaths2(result.data, [
|
|
484
462
|
{
|
|
485
463
|
transformFn: transformRESTImageToSDKImage,
|
|
486
|
-
paths:
|
|
464
|
+
paths: TRANSFORM_PATHS_02
|
|
487
465
|
},
|
|
488
466
|
{
|
|
489
467
|
transformFn: transformRESTAddressToSDKAddress,
|
|
490
|
-
paths:
|
|
491
|
-
{ path: "subscriptionContract.billingInfo.address" },
|
|
492
|
-
{
|
|
493
|
-
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address"
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address"
|
|
497
|
-
},
|
|
498
|
-
{ path: "subscriptionContract.recipientInfo.address" }
|
|
499
|
-
]
|
|
468
|
+
paths: TRANSFORM_PATHS_12
|
|
500
469
|
}
|
|
501
470
|
])
|
|
502
471
|
)?.subscriptionContract;
|
|
@@ -545,20 +514,11 @@ function querySubscriptionContracts2() {
|
|
|
545
514
|
transformPaths2(data, [
|
|
546
515
|
{
|
|
547
516
|
transformFn: transformRESTImageToSDKImage,
|
|
548
|
-
paths:
|
|
517
|
+
paths: TRANSFORM_PATHS_22
|
|
549
518
|
},
|
|
550
519
|
{
|
|
551
520
|
transformFn: transformRESTAddressToSDKAddress,
|
|
552
|
-
paths:
|
|
553
|
-
{ path: "subscriptionContracts.billingInfo.address" },
|
|
554
|
-
{
|
|
555
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address"
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address"
|
|
559
|
-
},
|
|
560
|
-
{ path: "subscriptionContracts.recipientInfo.address" }
|
|
561
|
-
]
|
|
521
|
+
paths: TRANSFORM_PATHS_32
|
|
562
522
|
}
|
|
563
523
|
])
|
|
564
524
|
);
|
|
@@ -593,20 +553,11 @@ async function typedQuerySubscriptionContracts(query) {
|
|
|
593
553
|
transformPaths2(result.data, [
|
|
594
554
|
{
|
|
595
555
|
transformFn: transformRESTImageToSDKImage,
|
|
596
|
-
paths:
|
|
556
|
+
paths: TRANSFORM_PATHS_22
|
|
597
557
|
},
|
|
598
558
|
{
|
|
599
559
|
transformFn: transformRESTAddressToSDKAddress,
|
|
600
|
-
paths:
|
|
601
|
-
{ path: "subscriptionContracts.billingInfo.address" },
|
|
602
|
-
{
|
|
603
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address"
|
|
604
|
-
},
|
|
605
|
-
{
|
|
606
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address"
|
|
607
|
-
},
|
|
608
|
-
{ path: "subscriptionContracts.recipientInfo.address" }
|
|
609
|
-
]
|
|
560
|
+
paths: TRANSFORM_PATHS_32
|
|
610
561
|
}
|
|
611
562
|
])
|
|
612
563
|
);
|