@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
package/build/es/meta.mjs
CHANGED
|
@@ -4,6 +4,82 @@ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/f
|
|
|
4
4
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
5
5
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
6
6
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
7
|
+
var TRANSFORM_PATHS_0 = [
|
|
8
|
+
{ path: "subscriptionContract.createdDate" },
|
|
9
|
+
{ path: "subscriptionContract.updatedDate" },
|
|
10
|
+
{ path: "subscriptionContract.subscriptionSettings.startDate" },
|
|
11
|
+
{ path: "subscriptionContract.lineItems.image.urlExpirationDate" },
|
|
12
|
+
{ path: "subscriptionContract.lineItems.digitalFile.expirationDate" },
|
|
13
|
+
{
|
|
14
|
+
path: "subscriptionContract.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
15
|
+
},
|
|
16
|
+
{ path: "subscriptionContract.lineItems.serviceProperties.scheduledDate" },
|
|
17
|
+
{ path: "subscriptionContract.lineItems.serviceProperties.endDate" },
|
|
18
|
+
{ path: "subscriptionContract.shippingInfo.logistics.deliverByDate" },
|
|
19
|
+
{ path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
20
|
+
{ path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
21
|
+
{ path: "subscriptionContract.activities.createdDate" }
|
|
22
|
+
];
|
|
23
|
+
var TRANSFORM_PATHS_1 = [
|
|
24
|
+
{ path: "subscriptionContract.lineItems.image.focalPoint.x" },
|
|
25
|
+
{ path: "subscriptionContract.lineItems.image.focalPoint.y" },
|
|
26
|
+
{ path: "subscriptionContract.lineItems.physicalProperties.weight" },
|
|
27
|
+
{ path: "subscriptionContract.billingInfo.address.geocode.latitude" },
|
|
28
|
+
{ path: "subscriptionContract.billingInfo.address.geocode.longitude" },
|
|
29
|
+
{
|
|
30
|
+
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
40
|
+
},
|
|
41
|
+
{ path: "subscriptionContract.recipientInfo.address.geocode.latitude" },
|
|
42
|
+
{ path: "subscriptionContract.recipientInfo.address.geocode.longitude" }
|
|
43
|
+
];
|
|
44
|
+
var TRANSFORM_PATHS_2 = [
|
|
45
|
+
{ path: "subscriptionContracts.createdDate" },
|
|
46
|
+
{ path: "subscriptionContracts.updatedDate" },
|
|
47
|
+
{ path: "subscriptionContracts.subscriptionSettings.startDate" },
|
|
48
|
+
{ path: "subscriptionContracts.lineItems.image.urlExpirationDate" },
|
|
49
|
+
{ path: "subscriptionContracts.lineItems.digitalFile.expirationDate" },
|
|
50
|
+
{
|
|
51
|
+
path: "subscriptionContracts.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
52
|
+
},
|
|
53
|
+
{ path: "subscriptionContracts.lineItems.serviceProperties.scheduledDate" },
|
|
54
|
+
{ path: "subscriptionContracts.lineItems.serviceProperties.endDate" },
|
|
55
|
+
{ path: "subscriptionContracts.shippingInfo.logistics.deliverByDate" },
|
|
56
|
+
{
|
|
57
|
+
path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
58
|
+
},
|
|
59
|
+
{ path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
60
|
+
{ path: "subscriptionContracts.activities.createdDate" }
|
|
61
|
+
];
|
|
62
|
+
var TRANSFORM_PATHS_3 = [
|
|
63
|
+
{ path: "subscriptionContracts.lineItems.image.focalPoint.x" },
|
|
64
|
+
{ path: "subscriptionContracts.lineItems.image.focalPoint.y" },
|
|
65
|
+
{ path: "subscriptionContracts.lineItems.physicalProperties.weight" },
|
|
66
|
+
{ path: "subscriptionContracts.billingInfo.address.geocode.latitude" },
|
|
67
|
+
{ path: "subscriptionContracts.billingInfo.address.geocode.longitude" },
|
|
68
|
+
{
|
|
69
|
+
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
79
|
+
},
|
|
80
|
+
{ path: "subscriptionContracts.recipientInfo.address.geocode.latitude" },
|
|
81
|
+
{ path: "subscriptionContracts.recipientInfo.address.geocode.longitude" }
|
|
82
|
+
];
|
|
7
83
|
function resolveWixEcomSubscriptionContractsV1SubscriptionContractsUrl(opts) {
|
|
8
84
|
const domainToMappings = {
|
|
9
85
|
"www.wixapis.com": [
|
|
@@ -69,70 +145,11 @@ function getSubscriptionContract(payload) {
|
|
|
69
145
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
70
146
|
{
|
|
71
147
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
72
|
-
paths:
|
|
73
|
-
{ path: "subscriptionContract.createdDate" },
|
|
74
|
-
{ path: "subscriptionContract.updatedDate" },
|
|
75
|
-
{ path: "subscriptionContract.subscriptionSettings.startDate" },
|
|
76
|
-
{
|
|
77
|
-
path: "subscriptionContract.lineItems.image.urlExpirationDate"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
path: "subscriptionContract.lineItems.digitalFile.expirationDate"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
path: "subscriptionContract.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
path: "subscriptionContract.lineItems.serviceProperties.scheduledDate"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
path: "subscriptionContract.lineItems.serviceProperties.endDate"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
path: "subscriptionContract.shippingInfo.logistics.deliverByDate"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
99
|
-
},
|
|
100
|
-
{ path: "subscriptionContract.activities.createdDate" }
|
|
101
|
-
]
|
|
148
|
+
paths: TRANSFORM_PATHS_0
|
|
102
149
|
},
|
|
103
150
|
{
|
|
104
151
|
transformFn: transformRESTFloatToSDKFloat,
|
|
105
|
-
paths:
|
|
106
|
-
{ path: "subscriptionContract.lineItems.image.focalPoint.x" },
|
|
107
|
-
{ path: "subscriptionContract.lineItems.image.focalPoint.y" },
|
|
108
|
-
{
|
|
109
|
-
path: "subscriptionContract.lineItems.physicalProperties.weight"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
path: "subscriptionContract.billingInfo.address.geocode.latitude"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
path: "subscriptionContract.billingInfo.address.geocode.longitude"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
path: "subscriptionContract.recipientInfo.address.geocode.latitude"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
path: "subscriptionContract.recipientInfo.address.geocode.longitude"
|
|
134
|
-
}
|
|
135
|
-
]
|
|
152
|
+
paths: TRANSFORM_PATHS_1
|
|
136
153
|
}
|
|
137
154
|
])
|
|
138
155
|
};
|
|
@@ -159,70 +176,11 @@ function querySubscriptionContracts(payload) {
|
|
|
159
176
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
160
177
|
{
|
|
161
178
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
162
|
-
paths:
|
|
163
|
-
{ path: "subscriptionContracts.createdDate" },
|
|
164
|
-
{ path: "subscriptionContracts.updatedDate" },
|
|
165
|
-
{ path: "subscriptionContracts.subscriptionSettings.startDate" },
|
|
166
|
-
{
|
|
167
|
-
path: "subscriptionContracts.lineItems.image.urlExpirationDate"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
path: "subscriptionContracts.lineItems.digitalFile.expirationDate"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
path: "subscriptionContracts.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
path: "subscriptionContracts.lineItems.serviceProperties.scheduledDate"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
path: "subscriptionContracts.lineItems.serviceProperties.endDate"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
path: "subscriptionContracts.shippingInfo.logistics.deliverByDate"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
189
|
-
},
|
|
190
|
-
{ path: "subscriptionContracts.activities.createdDate" }
|
|
191
|
-
]
|
|
179
|
+
paths: TRANSFORM_PATHS_2
|
|
192
180
|
},
|
|
193
181
|
{
|
|
194
182
|
transformFn: transformRESTFloatToSDKFloat,
|
|
195
|
-
paths:
|
|
196
|
-
{ path: "subscriptionContracts.lineItems.image.focalPoint.x" },
|
|
197
|
-
{ path: "subscriptionContracts.lineItems.image.focalPoint.y" },
|
|
198
|
-
{
|
|
199
|
-
path: "subscriptionContracts.lineItems.physicalProperties.weight"
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
path: "subscriptionContracts.billingInfo.address.geocode.latitude"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
path: "subscriptionContracts.billingInfo.address.geocode.longitude"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
path: "subscriptionContracts.recipientInfo.address.geocode.latitude"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
path: "subscriptionContracts.recipientInfo.address.geocode.longitude"
|
|
224
|
-
}
|
|
225
|
-
]
|
|
183
|
+
paths: TRANSFORM_PATHS_3
|
|
226
184
|
}
|
|
227
185
|
]),
|
|
228
186
|
fallback: [
|