@wix/auto_sdk_ecom_subscription-contracts 1.0.132 → 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/build/internal/cjs/index.typings.d.ts +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/es/index.typings.d.mts +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -76,6 +76,82 @@ var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
|
76
76
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
77
77
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
78
78
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
79
|
+
var TRANSFORM_PATHS_0 = [
|
|
80
|
+
{ path: "subscriptionContract.createdDate" },
|
|
81
|
+
{ path: "subscriptionContract.updatedDate" },
|
|
82
|
+
{ path: "subscriptionContract.subscriptionSettings.startDate" },
|
|
83
|
+
{ path: "subscriptionContract.lineItems.image.urlExpirationDate" },
|
|
84
|
+
{ path: "subscriptionContract.lineItems.digitalFile.expirationDate" },
|
|
85
|
+
{
|
|
86
|
+
path: "subscriptionContract.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
87
|
+
},
|
|
88
|
+
{ path: "subscriptionContract.lineItems.serviceProperties.scheduledDate" },
|
|
89
|
+
{ path: "subscriptionContract.lineItems.serviceProperties.endDate" },
|
|
90
|
+
{ path: "subscriptionContract.shippingInfo.logistics.deliverByDate" },
|
|
91
|
+
{ path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
92
|
+
{ path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
93
|
+
{ path: "subscriptionContract.activities.createdDate" }
|
|
94
|
+
];
|
|
95
|
+
var TRANSFORM_PATHS_1 = [
|
|
96
|
+
{ path: "subscriptionContract.lineItems.image.focalPoint.x" },
|
|
97
|
+
{ path: "subscriptionContract.lineItems.image.focalPoint.y" },
|
|
98
|
+
{ path: "subscriptionContract.lineItems.physicalProperties.weight" },
|
|
99
|
+
{ path: "subscriptionContract.billingInfo.address.geocode.latitude" },
|
|
100
|
+
{ path: "subscriptionContract.billingInfo.address.geocode.longitude" },
|
|
101
|
+
{
|
|
102
|
+
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
112
|
+
},
|
|
113
|
+
{ path: "subscriptionContract.recipientInfo.address.geocode.latitude" },
|
|
114
|
+
{ path: "subscriptionContract.recipientInfo.address.geocode.longitude" }
|
|
115
|
+
];
|
|
116
|
+
var TRANSFORM_PATHS_2 = [
|
|
117
|
+
{ path: "subscriptionContracts.createdDate" },
|
|
118
|
+
{ path: "subscriptionContracts.updatedDate" },
|
|
119
|
+
{ path: "subscriptionContracts.subscriptionSettings.startDate" },
|
|
120
|
+
{ path: "subscriptionContracts.lineItems.image.urlExpirationDate" },
|
|
121
|
+
{ path: "subscriptionContracts.lineItems.digitalFile.expirationDate" },
|
|
122
|
+
{
|
|
123
|
+
path: "subscriptionContracts.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
124
|
+
},
|
|
125
|
+
{ path: "subscriptionContracts.lineItems.serviceProperties.scheduledDate" },
|
|
126
|
+
{ path: "subscriptionContracts.lineItems.serviceProperties.endDate" },
|
|
127
|
+
{ path: "subscriptionContracts.shippingInfo.logistics.deliverByDate" },
|
|
128
|
+
{
|
|
129
|
+
path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
130
|
+
},
|
|
131
|
+
{ path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
132
|
+
{ path: "subscriptionContracts.activities.createdDate" }
|
|
133
|
+
];
|
|
134
|
+
var TRANSFORM_PATHS_3 = [
|
|
135
|
+
{ path: "subscriptionContracts.lineItems.image.focalPoint.x" },
|
|
136
|
+
{ path: "subscriptionContracts.lineItems.image.focalPoint.y" },
|
|
137
|
+
{ path: "subscriptionContracts.lineItems.physicalProperties.weight" },
|
|
138
|
+
{ path: "subscriptionContracts.billingInfo.address.geocode.latitude" },
|
|
139
|
+
{ path: "subscriptionContracts.billingInfo.address.geocode.longitude" },
|
|
140
|
+
{
|
|
141
|
+
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
151
|
+
},
|
|
152
|
+
{ path: "subscriptionContracts.recipientInfo.address.geocode.latitude" },
|
|
153
|
+
{ path: "subscriptionContracts.recipientInfo.address.geocode.longitude" }
|
|
154
|
+
];
|
|
79
155
|
function resolveWixEcomSubscriptionContractsV1SubscriptionContractsUrl(opts) {
|
|
80
156
|
const domainToMappings = {
|
|
81
157
|
"www.wixapis.com": [
|
|
@@ -141,70 +217,11 @@ function getSubscriptionContract(payload) {
|
|
|
141
217
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
142
218
|
{
|
|
143
219
|
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
144
|
-
paths:
|
|
145
|
-
{ path: "subscriptionContract.createdDate" },
|
|
146
|
-
{ path: "subscriptionContract.updatedDate" },
|
|
147
|
-
{ path: "subscriptionContract.subscriptionSettings.startDate" },
|
|
148
|
-
{
|
|
149
|
-
path: "subscriptionContract.lineItems.image.urlExpirationDate"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
path: "subscriptionContract.lineItems.digitalFile.expirationDate"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
path: "subscriptionContract.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
path: "subscriptionContract.lineItems.serviceProperties.scheduledDate"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
path: "subscriptionContract.lineItems.serviceProperties.endDate"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
path: "subscriptionContract.shippingInfo.logistics.deliverByDate"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
171
|
-
},
|
|
172
|
-
{ path: "subscriptionContract.activities.createdDate" }
|
|
173
|
-
]
|
|
220
|
+
paths: TRANSFORM_PATHS_0
|
|
174
221
|
},
|
|
175
222
|
{
|
|
176
223
|
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
177
|
-
paths:
|
|
178
|
-
{ path: "subscriptionContract.lineItems.image.focalPoint.x" },
|
|
179
|
-
{ path: "subscriptionContract.lineItems.image.focalPoint.y" },
|
|
180
|
-
{
|
|
181
|
-
path: "subscriptionContract.lineItems.physicalProperties.weight"
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
path: "subscriptionContract.billingInfo.address.geocode.latitude"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
path: "subscriptionContract.billingInfo.address.geocode.longitude"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
path: "subscriptionContract.recipientInfo.address.geocode.latitude"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
path: "subscriptionContract.recipientInfo.address.geocode.longitude"
|
|
206
|
-
}
|
|
207
|
-
]
|
|
224
|
+
paths: TRANSFORM_PATHS_1
|
|
208
225
|
}
|
|
209
226
|
])
|
|
210
227
|
};
|
|
@@ -231,70 +248,11 @@ function querySubscriptionContracts(payload) {
|
|
|
231
248
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
232
249
|
{
|
|
233
250
|
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
234
|
-
paths:
|
|
235
|
-
{ path: "subscriptionContracts.createdDate" },
|
|
236
|
-
{ path: "subscriptionContracts.updatedDate" },
|
|
237
|
-
{ path: "subscriptionContracts.subscriptionSettings.startDate" },
|
|
238
|
-
{
|
|
239
|
-
path: "subscriptionContracts.lineItems.image.urlExpirationDate"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
path: "subscriptionContracts.lineItems.digitalFile.expirationDate"
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
path: "subscriptionContracts.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
path: "subscriptionContracts.lineItems.serviceProperties.scheduledDate"
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
path: "subscriptionContracts.lineItems.serviceProperties.endDate"
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
path: "subscriptionContracts.shippingInfo.logistics.deliverByDate"
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
261
|
-
},
|
|
262
|
-
{ path: "subscriptionContracts.activities.createdDate" }
|
|
263
|
-
]
|
|
251
|
+
paths: TRANSFORM_PATHS_2
|
|
264
252
|
},
|
|
265
253
|
{
|
|
266
254
|
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
267
|
-
paths:
|
|
268
|
-
{ path: "subscriptionContracts.lineItems.image.focalPoint.x" },
|
|
269
|
-
{ path: "subscriptionContracts.lineItems.image.focalPoint.y" },
|
|
270
|
-
{
|
|
271
|
-
path: "subscriptionContracts.lineItems.physicalProperties.weight"
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
path: "subscriptionContracts.billingInfo.address.geocode.latitude"
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
path: "subscriptionContracts.billingInfo.address.geocode.longitude"
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
path: "subscriptionContracts.recipientInfo.address.geocode.latitude"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
path: "subscriptionContracts.recipientInfo.address.geocode.longitude"
|
|
296
|
-
}
|
|
297
|
-
]
|
|
255
|
+
paths: TRANSFORM_PATHS_3
|
|
298
256
|
}
|
|
299
257
|
]),
|
|
300
258
|
fallback: [
|
|
@@ -319,6 +277,26 @@ var import_address = require("@wix/sdk-runtime/transformations/address");
|
|
|
319
277
|
var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
320
278
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
321
279
|
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
280
|
+
var TRANSFORM_PATHS_02 = [{ path: "subscriptionContract.lineItems.image" }];
|
|
281
|
+
var TRANSFORM_PATHS_12 = [
|
|
282
|
+
{ path: "subscriptionContract.billingInfo.address" },
|
|
283
|
+
{
|
|
284
|
+
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address"
|
|
285
|
+
},
|
|
286
|
+
{ path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address" },
|
|
287
|
+
{ path: "subscriptionContract.recipientInfo.address" }
|
|
288
|
+
];
|
|
289
|
+
var TRANSFORM_PATHS_22 = [{ path: "subscriptionContracts.lineItems.image" }];
|
|
290
|
+
var TRANSFORM_PATHS_32 = [
|
|
291
|
+
{ path: "subscriptionContracts.billingInfo.address" },
|
|
292
|
+
{
|
|
293
|
+
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address"
|
|
297
|
+
},
|
|
298
|
+
{ path: "subscriptionContracts.recipientInfo.address" }
|
|
299
|
+
];
|
|
322
300
|
var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
|
|
323
301
|
SubscriptionFrequency2["UNDEFINED"] = "UNDEFINED";
|
|
324
302
|
SubscriptionFrequency2["DAY"] = "DAY";
|
|
@@ -547,20 +525,11 @@ async function getSubscriptionContract2(subscriptionContractId) {
|
|
|
547
525
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
548
526
|
{
|
|
549
527
|
transformFn: import_image.transformRESTImageToSDKImage,
|
|
550
|
-
paths:
|
|
528
|
+
paths: TRANSFORM_PATHS_02
|
|
551
529
|
},
|
|
552
530
|
{
|
|
553
531
|
transformFn: import_address.transformRESTAddressToSDKAddress,
|
|
554
|
-
paths:
|
|
555
|
-
{ path: "subscriptionContract.billingInfo.address" },
|
|
556
|
-
{
|
|
557
|
-
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address"
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address"
|
|
561
|
-
},
|
|
562
|
-
{ path: "subscriptionContract.recipientInfo.address" }
|
|
563
|
-
]
|
|
532
|
+
paths: TRANSFORM_PATHS_12
|
|
564
533
|
}
|
|
565
534
|
])
|
|
566
535
|
)?.subscriptionContract;
|
|
@@ -609,20 +578,11 @@ function querySubscriptionContracts2() {
|
|
|
609
578
|
(0, import_transform_paths2.transformPaths)(data, [
|
|
610
579
|
{
|
|
611
580
|
transformFn: import_image.transformRESTImageToSDKImage,
|
|
612
|
-
paths:
|
|
581
|
+
paths: TRANSFORM_PATHS_22
|
|
613
582
|
},
|
|
614
583
|
{
|
|
615
584
|
transformFn: import_address.transformRESTAddressToSDKAddress,
|
|
616
|
-
paths:
|
|
617
|
-
{ path: "subscriptionContracts.billingInfo.address" },
|
|
618
|
-
{
|
|
619
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address"
|
|
620
|
-
},
|
|
621
|
-
{
|
|
622
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address"
|
|
623
|
-
},
|
|
624
|
-
{ path: "subscriptionContracts.recipientInfo.address" }
|
|
625
|
-
]
|
|
585
|
+
paths: TRANSFORM_PATHS_32
|
|
626
586
|
}
|
|
627
587
|
])
|
|
628
588
|
);
|
|
@@ -657,20 +617,11 @@ async function typedQuerySubscriptionContracts(query) {
|
|
|
657
617
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
658
618
|
{
|
|
659
619
|
transformFn: import_image.transformRESTImageToSDKImage,
|
|
660
|
-
paths:
|
|
620
|
+
paths: TRANSFORM_PATHS_22
|
|
661
621
|
},
|
|
662
622
|
{
|
|
663
623
|
transformFn: import_address.transformRESTAddressToSDKAddress,
|
|
664
|
-
paths:
|
|
665
|
-
{ path: "subscriptionContracts.billingInfo.address" },
|
|
666
|
-
{
|
|
667
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address"
|
|
668
|
-
},
|
|
669
|
-
{
|
|
670
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address"
|
|
671
|
-
},
|
|
672
|
-
{ path: "subscriptionContracts.recipientInfo.address" }
|
|
673
|
-
]
|
|
624
|
+
paths: TRANSFORM_PATHS_32
|
|
674
625
|
}
|
|
675
626
|
])
|
|
676
627
|
);
|
|
@@ -693,6 +644,101 @@ var utils = {
|
|
|
693
644
|
};
|
|
694
645
|
|
|
695
646
|
// src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.ts
|
|
647
|
+
var TRANSFORM_PATHS_03 = [
|
|
648
|
+
{ path: "entity.createdDate" },
|
|
649
|
+
{ path: "entity.updatedDate" },
|
|
650
|
+
{ path: "entity.subscriptionSettings.startDate" },
|
|
651
|
+
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
652
|
+
{ path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
|
|
653
|
+
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
654
|
+
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
655
|
+
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
656
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
657
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
658
|
+
{ path: "entity.activities.createdDate" },
|
|
659
|
+
{ path: "metadata.eventTime" }
|
|
660
|
+
];
|
|
661
|
+
var TRANSFORM_PATHS_13 = [{ path: "entity.lineItems.image" }];
|
|
662
|
+
var TRANSFORM_PATHS_23 = [
|
|
663
|
+
{ path: "entity.lineItems.physicalProperties.weight" }
|
|
664
|
+
];
|
|
665
|
+
var TRANSFORM_PATHS_33 = [
|
|
666
|
+
{ path: "entity.billingInfo.address" },
|
|
667
|
+
{ path: "entity.shippingInfo.logistics.shippingDestination.address" },
|
|
668
|
+
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
669
|
+
{ path: "entity.recipientInfo.address" }
|
|
670
|
+
];
|
|
671
|
+
var TRANSFORM_PATHS_4 = [
|
|
672
|
+
{ path: "undefined.createdDate" },
|
|
673
|
+
{ path: "undefined.updatedDate" },
|
|
674
|
+
{ path: "undefined.subscriptionSettings.startDate" },
|
|
675
|
+
{ path: "undefined.lineItems.digitalFile.expirationDate" },
|
|
676
|
+
{
|
|
677
|
+
path: "undefined.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
678
|
+
},
|
|
679
|
+
{ path: "undefined.lineItems.serviceProperties.scheduledDate" },
|
|
680
|
+
{ path: "undefined.lineItems.serviceProperties.endDate" },
|
|
681
|
+
{ path: "undefined.shippingInfo.logistics.deliverByDate" },
|
|
682
|
+
{ path: "undefined.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
683
|
+
{ path: "undefined.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
684
|
+
{ path: "undefined.activities.createdDate" },
|
|
685
|
+
{ path: "metadata.eventTime" }
|
|
686
|
+
];
|
|
687
|
+
var TRANSFORM_PATHS_5 = [{ path: "undefined.lineItems.image" }];
|
|
688
|
+
var TRANSFORM_PATHS_6 = [
|
|
689
|
+
{ path: "undefined.lineItems.physicalProperties.weight" }
|
|
690
|
+
];
|
|
691
|
+
var TRANSFORM_PATHS_7 = [
|
|
692
|
+
{ path: "undefined.billingInfo.address" },
|
|
693
|
+
{ path: "undefined.shippingInfo.logistics.shippingDestination.address" },
|
|
694
|
+
{ path: "undefined.shippingInfo.logistics.pickupDetails.address" },
|
|
695
|
+
{ path: "undefined.recipientInfo.address" }
|
|
696
|
+
];
|
|
697
|
+
var TRANSFORM_PATHS_8 = [
|
|
698
|
+
{ path: "entity.createdDate" },
|
|
699
|
+
{ path: "entity.updatedDate" },
|
|
700
|
+
{ path: "entity.subscriptionSettings.startDate" },
|
|
701
|
+
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
702
|
+
{ path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
|
|
703
|
+
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
704
|
+
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
705
|
+
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
706
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
707
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
708
|
+
{ path: "entity.activities.createdDate" },
|
|
709
|
+
{ path: "metadata.eventTime" },
|
|
710
|
+
{ path: "modifiedFields.createdDate" },
|
|
711
|
+
{ path: "modifiedFields.updatedDate" },
|
|
712
|
+
{ path: "modifiedFields.subscriptionSettings.startDate" },
|
|
713
|
+
{ path: "modifiedFields.lineItems.digitalFile.expirationDate" },
|
|
714
|
+
{
|
|
715
|
+
path: "modifiedFields.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
716
|
+
},
|
|
717
|
+
{ path: "modifiedFields.lineItems.serviceProperties.scheduledDate" },
|
|
718
|
+
{ path: "modifiedFields.lineItems.serviceProperties.endDate" },
|
|
719
|
+
{ path: "modifiedFields.shippingInfo.logistics.deliverByDate" },
|
|
720
|
+
{ path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
721
|
+
{ path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
722
|
+
{ path: "modifiedFields.activities.createdDate" }
|
|
723
|
+
];
|
|
724
|
+
var TRANSFORM_PATHS_9 = [
|
|
725
|
+
{ path: "entity.lineItems.image" },
|
|
726
|
+
{ path: "modifiedFields.lineItems.image" }
|
|
727
|
+
];
|
|
728
|
+
var TRANSFORM_PATHS_10 = [
|
|
729
|
+
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
730
|
+
{ path: "modifiedFields.lineItems.physicalProperties.weight" }
|
|
731
|
+
];
|
|
732
|
+
var TRANSFORM_PATHS_11 = [
|
|
733
|
+
{ path: "entity.billingInfo.address" },
|
|
734
|
+
{ path: "entity.shippingInfo.logistics.shippingDestination.address" },
|
|
735
|
+
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
736
|
+
{ path: "entity.recipientInfo.address" },
|
|
737
|
+
{ path: "modifiedFields.billingInfo.address" },
|
|
738
|
+
{ path: "modifiedFields.shippingInfo.logistics.shippingDestination.address" },
|
|
739
|
+
{ path: "modifiedFields.shippingInfo.logistics.pickupDetails.address" },
|
|
740
|
+
{ path: "modifiedFields.recipientInfo.address" }
|
|
741
|
+
];
|
|
696
742
|
function getSubscriptionContract3(httpClient) {
|
|
697
743
|
return (subscriptionContractId) => getSubscriptionContract2(
|
|
698
744
|
subscriptionContractId,
|
|
@@ -720,41 +766,19 @@ var onSubscriptionContractCreated = /* @__PURE__ */ (0, import_sdk_types.EventDe
|
|
|
720
766
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
721
767
|
{
|
|
722
768
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
723
|
-
paths:
|
|
724
|
-
{ path: "entity.createdDate" },
|
|
725
|
-
{ path: "entity.updatedDate" },
|
|
726
|
-
{ path: "entity.subscriptionSettings.startDate" },
|
|
727
|
-
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
728
|
-
{
|
|
729
|
-
path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
730
|
-
},
|
|
731
|
-
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
732
|
-
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
733
|
-
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
734
|
-
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
735
|
-
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
736
|
-
{ path: "entity.activities.createdDate" },
|
|
737
|
-
{ path: "metadata.eventTime" }
|
|
738
|
-
]
|
|
769
|
+
paths: TRANSFORM_PATHS_03
|
|
739
770
|
},
|
|
740
771
|
{
|
|
741
772
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
742
|
-
paths:
|
|
773
|
+
paths: TRANSFORM_PATHS_13
|
|
743
774
|
},
|
|
744
775
|
{
|
|
745
776
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
746
|
-
paths:
|
|
777
|
+
paths: TRANSFORM_PATHS_23
|
|
747
778
|
},
|
|
748
779
|
{
|
|
749
780
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
750
|
-
paths:
|
|
751
|
-
{ path: "entity.billingInfo.address" },
|
|
752
|
-
{
|
|
753
|
-
path: "entity.shippingInfo.logistics.shippingDestination.address"
|
|
754
|
-
},
|
|
755
|
-
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
756
|
-
{ path: "entity.recipientInfo.address" }
|
|
757
|
-
]
|
|
781
|
+
paths: TRANSFORM_PATHS_33
|
|
758
782
|
}
|
|
759
783
|
])
|
|
760
784
|
)
|
|
@@ -766,41 +790,19 @@ var onSubscriptionContractDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDe
|
|
|
766
790
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
767
791
|
{
|
|
768
792
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
769
|
-
paths:
|
|
770
|
-
{ path: "undefined.createdDate" },
|
|
771
|
-
{ path: "undefined.updatedDate" },
|
|
772
|
-
{ path: "undefined.subscriptionSettings.startDate" },
|
|
773
|
-
{ path: "undefined.lineItems.digitalFile.expirationDate" },
|
|
774
|
-
{
|
|
775
|
-
path: "undefined.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
776
|
-
},
|
|
777
|
-
{ path: "undefined.lineItems.serviceProperties.scheduledDate" },
|
|
778
|
-
{ path: "undefined.lineItems.serviceProperties.endDate" },
|
|
779
|
-
{ path: "undefined.shippingInfo.logistics.deliverByDate" },
|
|
780
|
-
{ path: "undefined.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
781
|
-
{ path: "undefined.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
782
|
-
{ path: "undefined.activities.createdDate" },
|
|
783
|
-
{ path: "metadata.eventTime" }
|
|
784
|
-
]
|
|
793
|
+
paths: TRANSFORM_PATHS_4
|
|
785
794
|
},
|
|
786
795
|
{
|
|
787
796
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
788
|
-
paths:
|
|
797
|
+
paths: TRANSFORM_PATHS_5
|
|
789
798
|
},
|
|
790
799
|
{
|
|
791
800
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
792
|
-
paths:
|
|
801
|
+
paths: TRANSFORM_PATHS_6
|
|
793
802
|
},
|
|
794
803
|
{
|
|
795
804
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
796
|
-
paths:
|
|
797
|
-
{ path: "undefined.billingInfo.address" },
|
|
798
|
-
{
|
|
799
|
-
path: "undefined.shippingInfo.logistics.shippingDestination.address"
|
|
800
|
-
},
|
|
801
|
-
{ path: "undefined.shippingInfo.logistics.pickupDetails.address" },
|
|
802
|
-
{ path: "undefined.recipientInfo.address" }
|
|
803
|
-
]
|
|
805
|
+
paths: TRANSFORM_PATHS_7
|
|
804
806
|
}
|
|
805
807
|
])
|
|
806
808
|
)
|
|
@@ -812,74 +814,19 @@ var onSubscriptionContractUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDe
|
|
|
812
814
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
813
815
|
{
|
|
814
816
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
815
|
-
paths:
|
|
816
|
-
{ path: "entity.createdDate" },
|
|
817
|
-
{ path: "entity.updatedDate" },
|
|
818
|
-
{ path: "entity.subscriptionSettings.startDate" },
|
|
819
|
-
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
820
|
-
{
|
|
821
|
-
path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
822
|
-
},
|
|
823
|
-
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
824
|
-
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
825
|
-
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
826
|
-
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
827
|
-
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
828
|
-
{ path: "entity.activities.createdDate" },
|
|
829
|
-
{ path: "metadata.eventTime" },
|
|
830
|
-
{ path: "modifiedFields.createdDate" },
|
|
831
|
-
{ path: "modifiedFields.updatedDate" },
|
|
832
|
-
{ path: "modifiedFields.subscriptionSettings.startDate" },
|
|
833
|
-
{ path: "modifiedFields.lineItems.digitalFile.expirationDate" },
|
|
834
|
-
{
|
|
835
|
-
path: "modifiedFields.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
836
|
-
},
|
|
837
|
-
{
|
|
838
|
-
path: "modifiedFields.lineItems.serviceProperties.scheduledDate"
|
|
839
|
-
},
|
|
840
|
-
{ path: "modifiedFields.lineItems.serviceProperties.endDate" },
|
|
841
|
-
{ path: "modifiedFields.shippingInfo.logistics.deliverByDate" },
|
|
842
|
-
{
|
|
843
|
-
path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
844
|
-
},
|
|
845
|
-
{
|
|
846
|
-
path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
847
|
-
},
|
|
848
|
-
{ path: "modifiedFields.activities.createdDate" }
|
|
849
|
-
]
|
|
817
|
+
paths: TRANSFORM_PATHS_8
|
|
850
818
|
},
|
|
851
819
|
{
|
|
852
820
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
853
|
-
paths:
|
|
854
|
-
{ path: "entity.lineItems.image" },
|
|
855
|
-
{ path: "modifiedFields.lineItems.image" }
|
|
856
|
-
]
|
|
821
|
+
paths: TRANSFORM_PATHS_9
|
|
857
822
|
},
|
|
858
823
|
{
|
|
859
824
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
860
|
-
paths:
|
|
861
|
-
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
862
|
-
{ path: "modifiedFields.lineItems.physicalProperties.weight" }
|
|
863
|
-
]
|
|
825
|
+
paths: TRANSFORM_PATHS_10
|
|
864
826
|
},
|
|
865
827
|
{
|
|
866
828
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
867
|
-
paths:
|
|
868
|
-
{ path: "entity.billingInfo.address" },
|
|
869
|
-
{
|
|
870
|
-
path: "entity.shippingInfo.logistics.shippingDestination.address"
|
|
871
|
-
},
|
|
872
|
-
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
873
|
-
{ path: "entity.recipientInfo.address" },
|
|
874
|
-
{ path: "modifiedFields.billingInfo.address" },
|
|
875
|
-
{
|
|
876
|
-
path: "modifiedFields.shippingInfo.logistics.shippingDestination.address"
|
|
877
|
-
},
|
|
878
|
-
{
|
|
879
|
-
path: "modifiedFields.shippingInfo.logistics.pickupDetails.address"
|
|
880
|
-
},
|
|
881
|
-
{ path: "modifiedFields.recipientInfo.address" }
|
|
882
|
-
]
|
|
829
|
+
paths: TRANSFORM_PATHS_11
|
|
883
830
|
}
|
|
884
831
|
])
|
|
885
832
|
)
|