@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
package/build/es/index.mjs
CHANGED
|
@@ -21,6 +21,82 @@ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/f
|
|
|
21
21
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
22
22
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
23
23
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
24
|
+
var TRANSFORM_PATHS_0 = [
|
|
25
|
+
{ path: "subscriptionContract.createdDate" },
|
|
26
|
+
{ path: "subscriptionContract.updatedDate" },
|
|
27
|
+
{ path: "subscriptionContract.subscriptionSettings.startDate" },
|
|
28
|
+
{ path: "subscriptionContract.lineItems.image.urlExpirationDate" },
|
|
29
|
+
{ path: "subscriptionContract.lineItems.digitalFile.expirationDate" },
|
|
30
|
+
{
|
|
31
|
+
path: "subscriptionContract.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
32
|
+
},
|
|
33
|
+
{ path: "subscriptionContract.lineItems.serviceProperties.scheduledDate" },
|
|
34
|
+
{ path: "subscriptionContract.lineItems.serviceProperties.endDate" },
|
|
35
|
+
{ path: "subscriptionContract.shippingInfo.logistics.deliverByDate" },
|
|
36
|
+
{ path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
37
|
+
{ path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
38
|
+
{ path: "subscriptionContract.activities.createdDate" }
|
|
39
|
+
];
|
|
40
|
+
var TRANSFORM_PATHS_1 = [
|
|
41
|
+
{ path: "subscriptionContract.lineItems.image.focalPoint.x" },
|
|
42
|
+
{ path: "subscriptionContract.lineItems.image.focalPoint.y" },
|
|
43
|
+
{ path: "subscriptionContract.lineItems.physicalProperties.weight" },
|
|
44
|
+
{ path: "subscriptionContract.billingInfo.address.geocode.latitude" },
|
|
45
|
+
{ path: "subscriptionContract.billingInfo.address.geocode.longitude" },
|
|
46
|
+
{
|
|
47
|
+
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
57
|
+
},
|
|
58
|
+
{ path: "subscriptionContract.recipientInfo.address.geocode.latitude" },
|
|
59
|
+
{ path: "subscriptionContract.recipientInfo.address.geocode.longitude" }
|
|
60
|
+
];
|
|
61
|
+
var TRANSFORM_PATHS_2 = [
|
|
62
|
+
{ path: "subscriptionContracts.createdDate" },
|
|
63
|
+
{ path: "subscriptionContracts.updatedDate" },
|
|
64
|
+
{ path: "subscriptionContracts.subscriptionSettings.startDate" },
|
|
65
|
+
{ path: "subscriptionContracts.lineItems.image.urlExpirationDate" },
|
|
66
|
+
{ path: "subscriptionContracts.lineItems.digitalFile.expirationDate" },
|
|
67
|
+
{
|
|
68
|
+
path: "subscriptionContracts.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
69
|
+
},
|
|
70
|
+
{ path: "subscriptionContracts.lineItems.serviceProperties.scheduledDate" },
|
|
71
|
+
{ path: "subscriptionContracts.lineItems.serviceProperties.endDate" },
|
|
72
|
+
{ path: "subscriptionContracts.shippingInfo.logistics.deliverByDate" },
|
|
73
|
+
{
|
|
74
|
+
path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
75
|
+
},
|
|
76
|
+
{ path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
77
|
+
{ path: "subscriptionContracts.activities.createdDate" }
|
|
78
|
+
];
|
|
79
|
+
var TRANSFORM_PATHS_3 = [
|
|
80
|
+
{ path: "subscriptionContracts.lineItems.image.focalPoint.x" },
|
|
81
|
+
{ path: "subscriptionContracts.lineItems.image.focalPoint.y" },
|
|
82
|
+
{ path: "subscriptionContracts.lineItems.physicalProperties.weight" },
|
|
83
|
+
{ path: "subscriptionContracts.billingInfo.address.geocode.latitude" },
|
|
84
|
+
{ path: "subscriptionContracts.billingInfo.address.geocode.longitude" },
|
|
85
|
+
{
|
|
86
|
+
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
96
|
+
},
|
|
97
|
+
{ path: "subscriptionContracts.recipientInfo.address.geocode.latitude" },
|
|
98
|
+
{ path: "subscriptionContracts.recipientInfo.address.geocode.longitude" }
|
|
99
|
+
];
|
|
24
100
|
function resolveWixEcomSubscriptionContractsV1SubscriptionContractsUrl(opts) {
|
|
25
101
|
const domainToMappings = {
|
|
26
102
|
"www.wixapis.com": [
|
|
@@ -86,70 +162,11 @@ function getSubscriptionContract(payload) {
|
|
|
86
162
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
87
163
|
{
|
|
88
164
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
89
|
-
paths:
|
|
90
|
-
{ path: "subscriptionContract.createdDate" },
|
|
91
|
-
{ path: "subscriptionContract.updatedDate" },
|
|
92
|
-
{ path: "subscriptionContract.subscriptionSettings.startDate" },
|
|
93
|
-
{
|
|
94
|
-
path: "subscriptionContract.lineItems.image.urlExpirationDate"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
path: "subscriptionContract.lineItems.digitalFile.expirationDate"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
path: "subscriptionContract.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
path: "subscriptionContract.lineItems.serviceProperties.scheduledDate"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
path: "subscriptionContract.lineItems.serviceProperties.endDate"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
path: "subscriptionContract.shippingInfo.logistics.deliverByDate"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
116
|
-
},
|
|
117
|
-
{ path: "subscriptionContract.activities.createdDate" }
|
|
118
|
-
]
|
|
165
|
+
paths: TRANSFORM_PATHS_0
|
|
119
166
|
},
|
|
120
167
|
{
|
|
121
168
|
transformFn: transformRESTFloatToSDKFloat,
|
|
122
|
-
paths:
|
|
123
|
-
{ path: "subscriptionContract.lineItems.image.focalPoint.x" },
|
|
124
|
-
{ path: "subscriptionContract.lineItems.image.focalPoint.y" },
|
|
125
|
-
{
|
|
126
|
-
path: "subscriptionContract.lineItems.physicalProperties.weight"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
path: "subscriptionContract.billingInfo.address.geocode.latitude"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
path: "subscriptionContract.billingInfo.address.geocode.longitude"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
path: "subscriptionContract.recipientInfo.address.geocode.latitude"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
path: "subscriptionContract.recipientInfo.address.geocode.longitude"
|
|
151
|
-
}
|
|
152
|
-
]
|
|
169
|
+
paths: TRANSFORM_PATHS_1
|
|
153
170
|
}
|
|
154
171
|
])
|
|
155
172
|
};
|
|
@@ -176,70 +193,11 @@ function querySubscriptionContracts(payload) {
|
|
|
176
193
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
177
194
|
{
|
|
178
195
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
179
|
-
paths:
|
|
180
|
-
{ path: "subscriptionContracts.createdDate" },
|
|
181
|
-
{ path: "subscriptionContracts.updatedDate" },
|
|
182
|
-
{ path: "subscriptionContracts.subscriptionSettings.startDate" },
|
|
183
|
-
{
|
|
184
|
-
path: "subscriptionContracts.lineItems.image.urlExpirationDate"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
path: "subscriptionContracts.lineItems.digitalFile.expirationDate"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
path: "subscriptionContracts.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
path: "subscriptionContracts.lineItems.serviceProperties.scheduledDate"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
path: "subscriptionContracts.lineItems.serviceProperties.endDate"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
path: "subscriptionContracts.shippingInfo.logistics.deliverByDate"
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
206
|
-
},
|
|
207
|
-
{ path: "subscriptionContracts.activities.createdDate" }
|
|
208
|
-
]
|
|
196
|
+
paths: TRANSFORM_PATHS_2
|
|
209
197
|
},
|
|
210
198
|
{
|
|
211
199
|
transformFn: transformRESTFloatToSDKFloat,
|
|
212
|
-
paths:
|
|
213
|
-
{ path: "subscriptionContracts.lineItems.image.focalPoint.x" },
|
|
214
|
-
{ path: "subscriptionContracts.lineItems.image.focalPoint.y" },
|
|
215
|
-
{
|
|
216
|
-
path: "subscriptionContracts.lineItems.physicalProperties.weight"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
path: "subscriptionContracts.billingInfo.address.geocode.latitude"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
path: "subscriptionContracts.billingInfo.address.geocode.longitude"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
path: "subscriptionContracts.recipientInfo.address.geocode.latitude"
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
path: "subscriptionContracts.recipientInfo.address.geocode.longitude"
|
|
241
|
-
}
|
|
242
|
-
]
|
|
200
|
+
paths: TRANSFORM_PATHS_3
|
|
243
201
|
}
|
|
244
202
|
]),
|
|
245
203
|
fallback: [
|
|
@@ -264,6 +222,26 @@ import { transformRESTAddressToSDKAddress } from "@wix/sdk-runtime/transformatio
|
|
|
264
222
|
import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
|
|
265
223
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
266
224
|
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
225
|
+
var TRANSFORM_PATHS_02 = [{ path: "subscriptionContract.lineItems.image" }];
|
|
226
|
+
var TRANSFORM_PATHS_12 = [
|
|
227
|
+
{ path: "subscriptionContract.billingInfo.address" },
|
|
228
|
+
{
|
|
229
|
+
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address"
|
|
230
|
+
},
|
|
231
|
+
{ path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address" },
|
|
232
|
+
{ path: "subscriptionContract.recipientInfo.address" }
|
|
233
|
+
];
|
|
234
|
+
var TRANSFORM_PATHS_22 = [{ path: "subscriptionContracts.lineItems.image" }];
|
|
235
|
+
var TRANSFORM_PATHS_32 = [
|
|
236
|
+
{ path: "subscriptionContracts.billingInfo.address" },
|
|
237
|
+
{
|
|
238
|
+
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address"
|
|
242
|
+
},
|
|
243
|
+
{ path: "subscriptionContracts.recipientInfo.address" }
|
|
244
|
+
];
|
|
267
245
|
var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
|
|
268
246
|
SubscriptionFrequency2["UNDEFINED"] = "UNDEFINED";
|
|
269
247
|
SubscriptionFrequency2["DAY"] = "DAY";
|
|
@@ -492,20 +470,11 @@ async function getSubscriptionContract2(subscriptionContractId) {
|
|
|
492
470
|
transformPaths2(result.data, [
|
|
493
471
|
{
|
|
494
472
|
transformFn: transformRESTImageToSDKImage,
|
|
495
|
-
paths:
|
|
473
|
+
paths: TRANSFORM_PATHS_02
|
|
496
474
|
},
|
|
497
475
|
{
|
|
498
476
|
transformFn: transformRESTAddressToSDKAddress,
|
|
499
|
-
paths:
|
|
500
|
-
{ path: "subscriptionContract.billingInfo.address" },
|
|
501
|
-
{
|
|
502
|
-
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address"
|
|
503
|
-
},
|
|
504
|
-
{
|
|
505
|
-
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address"
|
|
506
|
-
},
|
|
507
|
-
{ path: "subscriptionContract.recipientInfo.address" }
|
|
508
|
-
]
|
|
477
|
+
paths: TRANSFORM_PATHS_12
|
|
509
478
|
}
|
|
510
479
|
])
|
|
511
480
|
)?.subscriptionContract;
|
|
@@ -554,20 +523,11 @@ function querySubscriptionContracts2() {
|
|
|
554
523
|
transformPaths2(data, [
|
|
555
524
|
{
|
|
556
525
|
transformFn: transformRESTImageToSDKImage,
|
|
557
|
-
paths:
|
|
526
|
+
paths: TRANSFORM_PATHS_22
|
|
558
527
|
},
|
|
559
528
|
{
|
|
560
529
|
transformFn: transformRESTAddressToSDKAddress,
|
|
561
|
-
paths:
|
|
562
|
-
{ path: "subscriptionContracts.billingInfo.address" },
|
|
563
|
-
{
|
|
564
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address"
|
|
565
|
-
},
|
|
566
|
-
{
|
|
567
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address"
|
|
568
|
-
},
|
|
569
|
-
{ path: "subscriptionContracts.recipientInfo.address" }
|
|
570
|
-
]
|
|
530
|
+
paths: TRANSFORM_PATHS_32
|
|
571
531
|
}
|
|
572
532
|
])
|
|
573
533
|
);
|
|
@@ -602,20 +562,11 @@ async function typedQuerySubscriptionContracts(query) {
|
|
|
602
562
|
transformPaths2(result.data, [
|
|
603
563
|
{
|
|
604
564
|
transformFn: transformRESTImageToSDKImage,
|
|
605
|
-
paths:
|
|
565
|
+
paths: TRANSFORM_PATHS_22
|
|
606
566
|
},
|
|
607
567
|
{
|
|
608
568
|
transformFn: transformRESTAddressToSDKAddress,
|
|
609
|
-
paths:
|
|
610
|
-
{ path: "subscriptionContracts.billingInfo.address" },
|
|
611
|
-
{
|
|
612
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address"
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address"
|
|
616
|
-
},
|
|
617
|
-
{ path: "subscriptionContracts.recipientInfo.address" }
|
|
618
|
-
]
|
|
569
|
+
paths: TRANSFORM_PATHS_32
|
|
619
570
|
}
|
|
620
571
|
])
|
|
621
572
|
);
|
|
@@ -638,6 +589,101 @@ var utils = {
|
|
|
638
589
|
};
|
|
639
590
|
|
|
640
591
|
// src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.ts
|
|
592
|
+
var TRANSFORM_PATHS_03 = [
|
|
593
|
+
{ path: "entity.createdDate" },
|
|
594
|
+
{ path: "entity.updatedDate" },
|
|
595
|
+
{ path: "entity.subscriptionSettings.startDate" },
|
|
596
|
+
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
597
|
+
{ path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
|
|
598
|
+
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
599
|
+
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
600
|
+
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
601
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
602
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
603
|
+
{ path: "entity.activities.createdDate" },
|
|
604
|
+
{ path: "metadata.eventTime" }
|
|
605
|
+
];
|
|
606
|
+
var TRANSFORM_PATHS_13 = [{ path: "entity.lineItems.image" }];
|
|
607
|
+
var TRANSFORM_PATHS_23 = [
|
|
608
|
+
{ path: "entity.lineItems.physicalProperties.weight" }
|
|
609
|
+
];
|
|
610
|
+
var TRANSFORM_PATHS_33 = [
|
|
611
|
+
{ path: "entity.billingInfo.address" },
|
|
612
|
+
{ path: "entity.shippingInfo.logistics.shippingDestination.address" },
|
|
613
|
+
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
614
|
+
{ path: "entity.recipientInfo.address" }
|
|
615
|
+
];
|
|
616
|
+
var TRANSFORM_PATHS_4 = [
|
|
617
|
+
{ path: "undefined.createdDate" },
|
|
618
|
+
{ path: "undefined.updatedDate" },
|
|
619
|
+
{ path: "undefined.subscriptionSettings.startDate" },
|
|
620
|
+
{ path: "undefined.lineItems.digitalFile.expirationDate" },
|
|
621
|
+
{
|
|
622
|
+
path: "undefined.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
623
|
+
},
|
|
624
|
+
{ path: "undefined.lineItems.serviceProperties.scheduledDate" },
|
|
625
|
+
{ path: "undefined.lineItems.serviceProperties.endDate" },
|
|
626
|
+
{ path: "undefined.shippingInfo.logistics.deliverByDate" },
|
|
627
|
+
{ path: "undefined.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
628
|
+
{ path: "undefined.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
629
|
+
{ path: "undefined.activities.createdDate" },
|
|
630
|
+
{ path: "metadata.eventTime" }
|
|
631
|
+
];
|
|
632
|
+
var TRANSFORM_PATHS_5 = [{ path: "undefined.lineItems.image" }];
|
|
633
|
+
var TRANSFORM_PATHS_6 = [
|
|
634
|
+
{ path: "undefined.lineItems.physicalProperties.weight" }
|
|
635
|
+
];
|
|
636
|
+
var TRANSFORM_PATHS_7 = [
|
|
637
|
+
{ path: "undefined.billingInfo.address" },
|
|
638
|
+
{ path: "undefined.shippingInfo.logistics.shippingDestination.address" },
|
|
639
|
+
{ path: "undefined.shippingInfo.logistics.pickupDetails.address" },
|
|
640
|
+
{ path: "undefined.recipientInfo.address" }
|
|
641
|
+
];
|
|
642
|
+
var TRANSFORM_PATHS_8 = [
|
|
643
|
+
{ path: "entity.createdDate" },
|
|
644
|
+
{ path: "entity.updatedDate" },
|
|
645
|
+
{ path: "entity.subscriptionSettings.startDate" },
|
|
646
|
+
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
647
|
+
{ path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate" },
|
|
648
|
+
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
649
|
+
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
650
|
+
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
651
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
652
|
+
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
653
|
+
{ path: "entity.activities.createdDate" },
|
|
654
|
+
{ path: "metadata.eventTime" },
|
|
655
|
+
{ path: "modifiedFields.createdDate" },
|
|
656
|
+
{ path: "modifiedFields.updatedDate" },
|
|
657
|
+
{ path: "modifiedFields.subscriptionSettings.startDate" },
|
|
658
|
+
{ path: "modifiedFields.lineItems.digitalFile.expirationDate" },
|
|
659
|
+
{
|
|
660
|
+
path: "modifiedFields.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
661
|
+
},
|
|
662
|
+
{ path: "modifiedFields.lineItems.serviceProperties.scheduledDate" },
|
|
663
|
+
{ path: "modifiedFields.lineItems.serviceProperties.endDate" },
|
|
664
|
+
{ path: "modifiedFields.shippingInfo.logistics.deliverByDate" },
|
|
665
|
+
{ path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
666
|
+
{ path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
667
|
+
{ path: "modifiedFields.activities.createdDate" }
|
|
668
|
+
];
|
|
669
|
+
var TRANSFORM_PATHS_9 = [
|
|
670
|
+
{ path: "entity.lineItems.image" },
|
|
671
|
+
{ path: "modifiedFields.lineItems.image" }
|
|
672
|
+
];
|
|
673
|
+
var TRANSFORM_PATHS_10 = [
|
|
674
|
+
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
675
|
+
{ path: "modifiedFields.lineItems.physicalProperties.weight" }
|
|
676
|
+
];
|
|
677
|
+
var TRANSFORM_PATHS_11 = [
|
|
678
|
+
{ path: "entity.billingInfo.address" },
|
|
679
|
+
{ path: "entity.shippingInfo.logistics.shippingDestination.address" },
|
|
680
|
+
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
681
|
+
{ path: "entity.recipientInfo.address" },
|
|
682
|
+
{ path: "modifiedFields.billingInfo.address" },
|
|
683
|
+
{ path: "modifiedFields.shippingInfo.logistics.shippingDestination.address" },
|
|
684
|
+
{ path: "modifiedFields.shippingInfo.logistics.pickupDetails.address" },
|
|
685
|
+
{ path: "modifiedFields.recipientInfo.address" }
|
|
686
|
+
];
|
|
641
687
|
function getSubscriptionContract3(httpClient) {
|
|
642
688
|
return (subscriptionContractId) => getSubscriptionContract2(
|
|
643
689
|
subscriptionContractId,
|
|
@@ -665,41 +711,19 @@ var onSubscriptionContractCreated = /* @__PURE__ */ EventDefinition(
|
|
|
665
711
|
transformPaths3(event, [
|
|
666
712
|
{
|
|
667
713
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
668
|
-
paths:
|
|
669
|
-
{ path: "entity.createdDate" },
|
|
670
|
-
{ path: "entity.updatedDate" },
|
|
671
|
-
{ path: "entity.subscriptionSettings.startDate" },
|
|
672
|
-
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
673
|
-
{
|
|
674
|
-
path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
675
|
-
},
|
|
676
|
-
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
677
|
-
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
678
|
-
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
679
|
-
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
680
|
-
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
681
|
-
{ path: "entity.activities.createdDate" },
|
|
682
|
-
{ path: "metadata.eventTime" }
|
|
683
|
-
]
|
|
714
|
+
paths: TRANSFORM_PATHS_03
|
|
684
715
|
},
|
|
685
716
|
{
|
|
686
717
|
transformFn: transformRESTImageToSDKImage2,
|
|
687
|
-
paths:
|
|
718
|
+
paths: TRANSFORM_PATHS_13
|
|
688
719
|
},
|
|
689
720
|
{
|
|
690
721
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
691
|
-
paths:
|
|
722
|
+
paths: TRANSFORM_PATHS_23
|
|
692
723
|
},
|
|
693
724
|
{
|
|
694
725
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
695
|
-
paths:
|
|
696
|
-
{ path: "entity.billingInfo.address" },
|
|
697
|
-
{
|
|
698
|
-
path: "entity.shippingInfo.logistics.shippingDestination.address"
|
|
699
|
-
},
|
|
700
|
-
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
701
|
-
{ path: "entity.recipientInfo.address" }
|
|
702
|
-
]
|
|
726
|
+
paths: TRANSFORM_PATHS_33
|
|
703
727
|
}
|
|
704
728
|
])
|
|
705
729
|
)
|
|
@@ -711,41 +735,19 @@ var onSubscriptionContractDeleted = /* @__PURE__ */ EventDefinition(
|
|
|
711
735
|
transformPaths3(event, [
|
|
712
736
|
{
|
|
713
737
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
714
|
-
paths:
|
|
715
|
-
{ path: "undefined.createdDate" },
|
|
716
|
-
{ path: "undefined.updatedDate" },
|
|
717
|
-
{ path: "undefined.subscriptionSettings.startDate" },
|
|
718
|
-
{ path: "undefined.lineItems.digitalFile.expirationDate" },
|
|
719
|
-
{
|
|
720
|
-
path: "undefined.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
721
|
-
},
|
|
722
|
-
{ path: "undefined.lineItems.serviceProperties.scheduledDate" },
|
|
723
|
-
{ path: "undefined.lineItems.serviceProperties.endDate" },
|
|
724
|
-
{ path: "undefined.shippingInfo.logistics.deliverByDate" },
|
|
725
|
-
{ path: "undefined.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
726
|
-
{ path: "undefined.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
727
|
-
{ path: "undefined.activities.createdDate" },
|
|
728
|
-
{ path: "metadata.eventTime" }
|
|
729
|
-
]
|
|
738
|
+
paths: TRANSFORM_PATHS_4
|
|
730
739
|
},
|
|
731
740
|
{
|
|
732
741
|
transformFn: transformRESTImageToSDKImage2,
|
|
733
|
-
paths:
|
|
742
|
+
paths: TRANSFORM_PATHS_5
|
|
734
743
|
},
|
|
735
744
|
{
|
|
736
745
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
737
|
-
paths:
|
|
746
|
+
paths: TRANSFORM_PATHS_6
|
|
738
747
|
},
|
|
739
748
|
{
|
|
740
749
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
741
|
-
paths:
|
|
742
|
-
{ path: "undefined.billingInfo.address" },
|
|
743
|
-
{
|
|
744
|
-
path: "undefined.shippingInfo.logistics.shippingDestination.address"
|
|
745
|
-
},
|
|
746
|
-
{ path: "undefined.shippingInfo.logistics.pickupDetails.address" },
|
|
747
|
-
{ path: "undefined.recipientInfo.address" }
|
|
748
|
-
]
|
|
750
|
+
paths: TRANSFORM_PATHS_7
|
|
749
751
|
}
|
|
750
752
|
])
|
|
751
753
|
)
|
|
@@ -757,74 +759,19 @@ var onSubscriptionContractUpdated = /* @__PURE__ */ EventDefinition(
|
|
|
757
759
|
transformPaths3(event, [
|
|
758
760
|
{
|
|
759
761
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
760
|
-
paths:
|
|
761
|
-
{ path: "entity.createdDate" },
|
|
762
|
-
{ path: "entity.updatedDate" },
|
|
763
|
-
{ path: "entity.subscriptionSettings.startDate" },
|
|
764
|
-
{ path: "entity.lineItems.digitalFile.expirationDate" },
|
|
765
|
-
{
|
|
766
|
-
path: "entity.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
767
|
-
},
|
|
768
|
-
{ path: "entity.lineItems.serviceProperties.scheduledDate" },
|
|
769
|
-
{ path: "entity.lineItems.serviceProperties.endDate" },
|
|
770
|
-
{ path: "entity.shippingInfo.logistics.deliverByDate" },
|
|
771
|
-
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.from" },
|
|
772
|
-
{ path: "entity.shippingInfo.logistics.deliveryTimeSlot.to" },
|
|
773
|
-
{ path: "entity.activities.createdDate" },
|
|
774
|
-
{ path: "metadata.eventTime" },
|
|
775
|
-
{ path: "modifiedFields.createdDate" },
|
|
776
|
-
{ path: "modifiedFields.updatedDate" },
|
|
777
|
-
{ path: "modifiedFields.subscriptionSettings.startDate" },
|
|
778
|
-
{ path: "modifiedFields.lineItems.digitalFile.expirationDate" },
|
|
779
|
-
{
|
|
780
|
-
path: "modifiedFields.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
781
|
-
},
|
|
782
|
-
{
|
|
783
|
-
path: "modifiedFields.lineItems.serviceProperties.scheduledDate"
|
|
784
|
-
},
|
|
785
|
-
{ path: "modifiedFields.lineItems.serviceProperties.endDate" },
|
|
786
|
-
{ path: "modifiedFields.shippingInfo.logistics.deliverByDate" },
|
|
787
|
-
{
|
|
788
|
-
path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
789
|
-
},
|
|
790
|
-
{
|
|
791
|
-
path: "modifiedFields.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
792
|
-
},
|
|
793
|
-
{ path: "modifiedFields.activities.createdDate" }
|
|
794
|
-
]
|
|
762
|
+
paths: TRANSFORM_PATHS_8
|
|
795
763
|
},
|
|
796
764
|
{
|
|
797
765
|
transformFn: transformRESTImageToSDKImage2,
|
|
798
|
-
paths:
|
|
799
|
-
{ path: "entity.lineItems.image" },
|
|
800
|
-
{ path: "modifiedFields.lineItems.image" }
|
|
801
|
-
]
|
|
766
|
+
paths: TRANSFORM_PATHS_9
|
|
802
767
|
},
|
|
803
768
|
{
|
|
804
769
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
805
|
-
paths:
|
|
806
|
-
{ path: "entity.lineItems.physicalProperties.weight" },
|
|
807
|
-
{ path: "modifiedFields.lineItems.physicalProperties.weight" }
|
|
808
|
-
]
|
|
770
|
+
paths: TRANSFORM_PATHS_10
|
|
809
771
|
},
|
|
810
772
|
{
|
|
811
773
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
812
|
-
paths:
|
|
813
|
-
{ path: "entity.billingInfo.address" },
|
|
814
|
-
{
|
|
815
|
-
path: "entity.shippingInfo.logistics.shippingDestination.address"
|
|
816
|
-
},
|
|
817
|
-
{ path: "entity.shippingInfo.logistics.pickupDetails.address" },
|
|
818
|
-
{ path: "entity.recipientInfo.address" },
|
|
819
|
-
{ path: "modifiedFields.billingInfo.address" },
|
|
820
|
-
{
|
|
821
|
-
path: "modifiedFields.shippingInfo.logistics.shippingDestination.address"
|
|
822
|
-
},
|
|
823
|
-
{
|
|
824
|
-
path: "modifiedFields.shippingInfo.logistics.pickupDetails.address"
|
|
825
|
-
},
|
|
826
|
-
{ path: "modifiedFields.recipientInfo.address" }
|
|
827
|
-
]
|
|
774
|
+
paths: TRANSFORM_PATHS_11
|
|
828
775
|
}
|
|
829
776
|
])
|
|
830
777
|
)
|