@wix/auto_sdk_ecom_delivery-profile 1.0.43 → 1.0.44

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.
Files changed (134) hide show
  1. package/build/{cjs/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts → ecom-v1-delivery-profile-delivery-profile.universal-CQYvMtsF.d.mts} +371 -136
  2. package/build/{internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts → ecom-v1-delivery-profile-delivery-profile.universal-CQYvMtsF.d.ts} +371 -136
  3. package/build/index.d.mts +176 -0
  4. package/build/index.d.ts +176 -0
  5. package/build/index.js +1260 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +1213 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts → ecom-v1-delivery-profile-delivery-profile.universal-CQYvMtsF.d.mts} +371 -136
  10. package/build/{es/src/ecom-v1-delivery-profile-delivery-profile.types.d.ts → internal/ecom-v1-delivery-profile-delivery-profile.universal-CQYvMtsF.d.ts} +371 -136
  11. package/build/internal/index.d.mts +176 -0
  12. package/build/internal/index.d.ts +176 -0
  13. package/build/internal/index.js +1260 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +1213 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +733 -0
  18. package/build/internal/meta.d.ts +733 -0
  19. package/build/internal/meta.js +855 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +813 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +733 -0
  24. package/build/meta.d.ts +733 -0
  25. package/build/meta.js +855 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +813 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.d.ts +0 -20
  40. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.js +0 -31
  41. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.js.map +0 -1
  42. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.d.ts +0 -73
  43. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.js +0 -567
  44. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.js.map +0 -1
  45. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.d.ts +0 -46
  46. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.js +0 -344
  47. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.js.map +0 -1
  48. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.d.ts +0 -159
  49. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.js +0 -111
  50. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.js.map +0 -1
  51. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.js +0 -142
  52. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +0 -1
  53. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +0 -2011
  54. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js +0 -967
  55. package/build/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.context.d.ts +0 -20
  67. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.context.js +0 -20
  68. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.context.js.map +0 -1
  69. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.http.d.ts +0 -73
  70. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.http.js +0 -548
  71. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.http.js.map +0 -1
  72. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.meta.d.ts +0 -46
  73. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.meta.js +0 -302
  74. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.meta.js.map +0 -1
  75. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.public.d.ts +0 -159
  76. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.public.js +0 -84
  77. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.public.js.map +0 -1
  78. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.types.js +0 -139
  79. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +0 -1
  80. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +0 -2011
  81. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js +0 -925
  82. package/build/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.d.ts +0 -20
  93. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.js +0 -31
  94. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.context.js.map +0 -1
  95. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.d.ts +0 -73
  96. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.js +0 -567
  97. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.http.js.map +0 -1
  98. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.d.ts +0 -46
  99. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.js +0 -344
  100. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.meta.js.map +0 -1
  101. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.d.ts +0 -159
  102. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.js +0 -111
  103. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.public.js.map +0 -1
  104. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.js +0 -142
  105. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +0 -1
  106. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +0 -2011
  107. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js +0 -967
  108. package/build/internal/cjs/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.context.d.ts +0 -20
  119. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.context.js +0 -20
  120. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.context.js.map +0 -1
  121. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.http.d.ts +0 -73
  122. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.http.js +0 -548
  123. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.http.js.map +0 -1
  124. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.meta.d.ts +0 -46
  125. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.meta.js +0 -302
  126. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.meta.js.map +0 -1
  127. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.public.d.ts +0 -159
  128. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.public.js +0 -84
  129. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.public.js.map +0 -1
  130. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.types.js +0 -139
  131. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.types.js.map +0 -1
  132. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.universal.d.ts +0 -2011
  133. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js +0 -925
  134. package/build/internal/es/src/ecom-v1-delivery-profile-delivery-profile.universal.js.map +0 -1
@@ -1,548 +0,0 @@
1
- import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';
2
- import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
3
- import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
4
- import { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';
5
- import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
6
- import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
7
- function resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl(opts) {
8
- const domainToMappings = {
9
- 'manage._base_domain_': [
10
- {
11
- srcPath: '/ecom/v1/list-delivery-carriers',
12
- destPath: '/v1/list-delivery-carriers',
13
- },
14
- {
15
- srcPath: '/ecom/v1/list-delivery-carrier-details',
16
- destPath: '/v1/list-delivery-carrier-details',
17
- },
18
- {
19
- srcPath: '/ecom/v1/delivery-profiles',
20
- destPath: '/v1/delivery-profiles',
21
- },
22
- {
23
- srcPath: '/ecom/v1/delivery-carriers',
24
- destPath: '/v1/delivery-carriers',
25
- },
26
- ],
27
- 'api._api_base_domain_': [
28
- {
29
- srcPath: '/delivery-profiles-service',
30
- destPath: '',
31
- },
32
- ],
33
- };
34
- return resolveUrl(Object.assign(opts, { domainToMappings }));
35
- }
36
- const PACKAGE_NAME = '@wix/auto_sdk_ecom_delivery-profile';
37
- /**
38
- * Creates a DeliveryProfile.
39
- *
40
- * The request body must include the DeliveryProfiles name. DeliveryRegions are optional.
41
- */
42
- export function createDeliveryProfile(payload) {
43
- function __createDeliveryProfile({ host }) {
44
- const serializedData = transformPaths(payload, [
45
- {
46
- transformFn: transformSDKTimestampToRESTTimestamp,
47
- paths: [
48
- { path: 'deliveryProfile.createdDate' },
49
- { path: 'deliveryProfile.updatedDate' },
50
- { path: 'deliveryProfile.deliveryRegions.createdDate' },
51
- ],
52
- },
53
- ]);
54
- const metadata = {
55
- entityFqdn: 'wix.ecom.v1.delivery_profile',
56
- method: 'POST',
57
- methodFqn: 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.CreateDeliveryProfile',
58
- packageName: PACKAGE_NAME,
59
- url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
60
- protoPath: '/v1/delivery-profiles',
61
- data: serializedData,
62
- host,
63
- }),
64
- data: serializedData,
65
- transformResponse: (payload) => transformPaths(payload, [
66
- {
67
- transformFn: transformRESTTimestampToSDKTimestamp,
68
- paths: [
69
- { path: 'deliveryProfile.createdDate' },
70
- { path: 'deliveryProfile.updatedDate' },
71
- { path: 'deliveryProfile.deliveryRegions.createdDate' },
72
- ],
73
- },
74
- ]),
75
- };
76
- return metadata;
77
- }
78
- return __createDeliveryProfile;
79
- }
80
- /** Retrieves a DeliveryProfile. */
81
- export function getDeliveryProfile(payload) {
82
- function __getDeliveryProfile({ host }) {
83
- const metadata = {
84
- entityFqdn: 'wix.ecom.v1.delivery_profile',
85
- method: 'GET',
86
- methodFqn: 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.GetDeliveryProfile',
87
- packageName: PACKAGE_NAME,
88
- url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
89
- protoPath: '/v1/delivery-profiles/{deliveryProfileId}',
90
- data: payload,
91
- host,
92
- }),
93
- params: toURLSearchParams(payload),
94
- transformResponse: (payload) => transformPaths(payload, [
95
- {
96
- transformFn: transformRESTTimestampToSDKTimestamp,
97
- paths: [
98
- { path: 'deliveryProfile.createdDate' },
99
- { path: 'deliveryProfile.updatedDate' },
100
- { path: 'deliveryProfile.deliveryRegions.createdDate' },
101
- ],
102
- },
103
- ]),
104
- };
105
- return metadata;
106
- }
107
- return __getDeliveryProfile;
108
- }
109
- /**
110
- * Updates a DeliveryProfile.
111
- *
112
- *
113
- * Each time the DeliveryProfile is updated,
114
- * `revision` increments by 1.
115
- * The current `revision` must be passed when updating the DeliveryProfile.
116
- * This ensures you're working with the latest DeliveryProfile
117
- * and prevents unintended overwrites.
118
- *
119
- * This method does not allow updating the DeliveryRegions in this DeliveryProfile.
120
- * Use AddDeliveryRegion, UpdateDeliveryRegion and RemoveDeliveryRegion for these functionalities.
121
- */
122
- export function updateDeliveryProfile(payload) {
123
- function __updateDeliveryProfile({ host }) {
124
- const serializedData = transformPaths(payload, [
125
- {
126
- transformFn: transformSDKFieldMaskToRESTFieldMask,
127
- paths: [{ path: 'fieldMask' }],
128
- },
129
- {
130
- transformFn: transformSDKTimestampToRESTTimestamp,
131
- paths: [
132
- { path: 'deliveryProfile.createdDate' },
133
- { path: 'deliveryProfile.updatedDate' },
134
- { path: 'deliveryProfile.deliveryRegions.createdDate' },
135
- ],
136
- },
137
- ]);
138
- const metadata = {
139
- entityFqdn: 'wix.ecom.v1.delivery_profile',
140
- method: 'PATCH',
141
- methodFqn: 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryProfile',
142
- packageName: PACKAGE_NAME,
143
- url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
144
- protoPath: '/v1/delivery-profiles/{deliveryProfile.id}',
145
- data: serializedData,
146
- host,
147
- }),
148
- data: serializedData,
149
- transformResponse: (payload) => transformPaths(payload, [
150
- {
151
- transformFn: transformRESTTimestampToSDKTimestamp,
152
- paths: [
153
- { path: 'deliveryProfile.createdDate' },
154
- { path: 'deliveryProfile.updatedDate' },
155
- { path: 'deliveryProfile.deliveryRegions.createdDate' },
156
- ],
157
- },
158
- ]),
159
- };
160
- return metadata;
161
- }
162
- return __updateDeliveryProfile;
163
- }
164
- /**
165
- * Deletes a DeliveryProfile.
166
- *
167
- * Deleting a DeliveryProfile permanently removes them from the DeliveryProfile List.
168
- */
169
- export function deleteDeliveryProfile(payload) {
170
- function __deleteDeliveryProfile({ host }) {
171
- const metadata = {
172
- entityFqdn: 'wix.ecom.v1.delivery_profile',
173
- method: 'DELETE',
174
- methodFqn: 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.DeleteDeliveryProfile',
175
- packageName: PACKAGE_NAME,
176
- url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
177
- protoPath: '/v1/delivery-profiles/{deliveryProfileId}',
178
- data: payload,
179
- host,
180
- }),
181
- params: toURLSearchParams(payload),
182
- };
183
- return metadata;
184
- }
185
- return __deleteDeliveryProfile;
186
- }
187
- /**
188
- * Retrieves a list of DeliveryProfiles, given the provided [paging, filtering, and sorting][1].
189
- *
190
- * Up to 1,000 DeliveryProfiles can be returned per request.
191
- *
192
- * To learn how to query DeliveryProfiles, see [API Query Language][2].
193
- *
194
- * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging
195
- * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language
196
- */
197
- export function queryDeliveryProfiles(payload) {
198
- function __queryDeliveryProfiles({ host }) {
199
- const metadata = {
200
- entityFqdn: 'wix.ecom.v1.delivery_profile',
201
- method: 'POST',
202
- methodFqn: 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.QueryDeliveryProfiles',
203
- packageName: PACKAGE_NAME,
204
- url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
205
- protoPath: '/v1/delivery-profiles/query',
206
- data: payload,
207
- host,
208
- }),
209
- data: payload,
210
- transformResponse: (payload) => transformPaths(payload, [
211
- {
212
- transformFn: transformRESTTimestampToSDKTimestamp,
213
- paths: [
214
- { path: 'deliveryProfiles.createdDate' },
215
- { path: 'deliveryProfiles.updatedDate' },
216
- { path: 'deliveryProfiles.deliveryRegions.createdDate' },
217
- ],
218
- },
219
- ]),
220
- fallback: [
221
- {
222
- method: 'POST',
223
- url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
224
- protoPath: '/v1/delivery-profiles/query',
225
- data: payload,
226
- host,
227
- }),
228
- data: payload,
229
- },
230
- ],
231
- };
232
- return metadata;
233
- }
234
- return __queryDeliveryProfiles;
235
- }
236
- /** Creates a new DeliveryRegion in an existing DeliveryProfile. */
237
- export function addDeliveryRegion(payload) {
238
- function __addDeliveryRegion({ host }) {
239
- const serializedData = transformPaths(payload, [
240
- {
241
- transformFn: transformSDKTimestampToRESTTimestamp,
242
- paths: [{ path: 'deliveryRegion.createdDate' }],
243
- },
244
- ]);
245
- const metadata = {
246
- entityFqdn: 'wix.ecom.v1.delivery_profile',
247
- method: 'POST',
248
- methodFqn: 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.AddDeliveryRegion',
249
- packageName: PACKAGE_NAME,
250
- url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
251
- protoPath: '/v1/delivery-profiles/{deliveryProfileId}/delivery-region',
252
- data: serializedData,
253
- host,
254
- }),
255
- data: serializedData,
256
- transformResponse: (payload) => transformPaths(payload, [
257
- {
258
- transformFn: transformRESTTimestampToSDKTimestamp,
259
- paths: [
260
- { path: 'deliveryProfile.createdDate' },
261
- { path: 'deliveryProfile.updatedDate' },
262
- { path: 'deliveryProfile.deliveryRegions.createdDate' },
263
- ],
264
- },
265
- ]),
266
- };
267
- return metadata;
268
- }
269
- return __addDeliveryRegion;
270
- }
271
- /**
272
- * Update a DeliveryRegion, supports partial update
273
- * Pass the latest `revision` for a successful update
274
- *
275
- * This method does not allow setting or updating the delivery delivery_carriers in this delivery_region.
276
- * Use AddDeliveryCarrier, UpdateDeliveryCarrier and RemoveDeliveryCarrier for these functionalities.
277
- */
278
- export function updateDeliveryRegion(payload) {
279
- function __updateDeliveryRegion({ host }) {
280
- const serializedData = transformPaths(payload, [
281
- {
282
- transformFn: transformSDKFieldMaskToRESTFieldMask,
283
- paths: [{ path: 'fieldMask' }],
284
- },
285
- {
286
- transformFn: transformSDKTimestampToRESTTimestamp,
287
- paths: [{ path: 'deliveryRegion.createdDate' }],
288
- },
289
- ]);
290
- const metadata = {
291
- entityFqdn: 'wix.ecom.v1.delivery_profile',
292
- method: 'PATCH',
293
- methodFqn: 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryRegion',
294
- packageName: PACKAGE_NAME,
295
- url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
296
- protoPath: '/v1/delivery-profiles/{deliveryProfileId}/delivery-region/{deliveryRegion.id}',
297
- data: serializedData,
298
- host,
299
- }),
300
- data: serializedData,
301
- transformResponse: (payload) => transformPaths(payload, [
302
- {
303
- transformFn: transformRESTTimestampToSDKTimestamp,
304
- paths: [
305
- { path: 'deliveryProfile.createdDate' },
306
- { path: 'deliveryProfile.updatedDate' },
307
- { path: 'deliveryProfile.deliveryRegions.createdDate' },
308
- ],
309
- },
310
- ]),
311
- };
312
- return metadata;
313
- }
314
- return __updateDeliveryRegion;
315
- }
316
- /** Delete a DeliveryRegion */
317
- export function removeDeliveryRegion(payload) {
318
- function __removeDeliveryRegion({ host }) {
319
- const metadata = {
320
- entityFqdn: 'wix.ecom.v1.delivery_profile',
321
- method: 'DELETE',
322
- methodFqn: 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.RemoveDeliveryRegion',
323
- packageName: PACKAGE_NAME,
324
- url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
325
- protoPath: '/v1/delivery-profiles/{deliveryProfileId}/delivery-region/{deliveryRegionId}',
326
- data: payload,
327
- host,
328
- }),
329
- params: toURLSearchParams(payload),
330
- transformResponse: (payload) => transformPaths(payload, [
331
- {
332
- transformFn: transformRESTTimestampToSDKTimestamp,
333
- paths: [
334
- { path: 'deliveryProfile.createdDate' },
335
- { path: 'deliveryProfile.updatedDate' },
336
- { path: 'deliveryProfile.deliveryRegions.createdDate' },
337
- ],
338
- },
339
- ]),
340
- };
341
- return metadata;
342
- }
343
- return __removeDeliveryRegion;
344
- }
345
- /** Add a delivery_carrier to a delivery region */
346
- export function addDeliveryCarrier(payload) {
347
- function __addDeliveryCarrier({ host }) {
348
- const metadata = {
349
- entityFqdn: 'wix.ecom.v1.delivery_profile',
350
- method: 'POST',
351
- methodFqn: 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.AddDeliveryCarrier',
352
- packageName: PACKAGE_NAME,
353
- url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
354
- protoPath: '/v1/delivery-profiles/add-delivery-carrier',
355
- data: payload,
356
- host,
357
- }),
358
- data: payload,
359
- transformResponse: (payload) => transformPaths(payload, [
360
- {
361
- transformFn: transformRESTTimestampToSDKTimestamp,
362
- paths: [
363
- { path: 'deliveryProfile.createdDate' },
364
- { path: 'deliveryProfile.updatedDate' },
365
- { path: 'deliveryProfile.deliveryRegions.createdDate' },
366
- ],
367
- },
368
- ]),
369
- };
370
- return metadata;
371
- }
372
- return __addDeliveryCarrier;
373
- }
374
- /** Remove a delivery_carrier from a delivery region */
375
- export function removeDeliveryCarrier(payload) {
376
- function __removeDeliveryCarrier({ host }) {
377
- const metadata = {
378
- entityFqdn: 'wix.ecom.v1.delivery_profile',
379
- method: 'POST',
380
- methodFqn: 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.RemoveDeliveryCarrier',
381
- packageName: PACKAGE_NAME,
382
- url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
383
- protoPath: '/v1/delivery-profiles/remove-delivery-carrier',
384
- data: payload,
385
- host,
386
- }),
387
- data: payload,
388
- transformResponse: (payload) => transformPaths(payload, [
389
- {
390
- transformFn: transformRESTTimestampToSDKTimestamp,
391
- paths: [
392
- { path: 'deliveryProfile.createdDate' },
393
- { path: 'deliveryProfile.updatedDate' },
394
- { path: 'deliveryProfile.deliveryRegions.createdDate' },
395
- ],
396
- },
397
- ]),
398
- };
399
- return metadata;
400
- }
401
- return __removeDeliveryCarrier;
402
- }
403
- /** Update a delivery carrier in a delivery region */
404
- export function updateDeliveryCarrier(payload) {
405
- function __updateDeliveryCarrier({ host }) {
406
- const serializedData = transformPaths(payload, [
407
- {
408
- transformFn: transformSDKFieldMaskToRESTFieldMask,
409
- paths: [{ path: 'fieldMask' }],
410
- },
411
- ]);
412
- const metadata = {
413
- entityFqdn: 'wix.ecom.v1.delivery_profile',
414
- method: 'PATCH',
415
- methodFqn: 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateDeliveryCarrier',
416
- packageName: PACKAGE_NAME,
417
- url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
418
- protoPath: '/v1/delivery-profiles/update-delivery-carrier',
419
- data: serializedData,
420
- host,
421
- }),
422
- data: serializedData,
423
- transformResponse: (payload) => transformPaths(payload, [
424
- {
425
- transformFn: transformRESTTimestampToSDKTimestamp,
426
- paths: [
427
- { path: 'deliveryProfile.createdDate' },
428
- { path: 'deliveryProfile.updatedDate' },
429
- { path: 'deliveryProfile.deliveryRegions.createdDate' },
430
- ],
431
- },
432
- ]),
433
- };
434
- return metadata;
435
- }
436
- return __updateDeliveryCarrier;
437
- }
438
- /**
439
- * List all installed delivery carriers in order to set their ids in delivery rules
440
- * @deprecated It has been replaced with ListInstalledDeliveryCarriers(), and will be removed on 2025-04-01.
441
- */
442
- export function listDeliveryCarrierDetails(payload) {
443
- function __listDeliveryCarrierDetails({ host }) {
444
- const metadata = {
445
- entityFqdn: 'wix.ecom.v1.delivery_profile',
446
- method: 'GET',
447
- methodFqn: 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListDeliveryCarrierDetails',
448
- packageName: PACKAGE_NAME,
449
- url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
450
- protoPath: '/v1/delivery-carriers',
451
- data: payload,
452
- host,
453
- }),
454
- params: toURLSearchParams(payload),
455
- };
456
- return metadata;
457
- }
458
- return __listDeliveryCarrierDetails;
459
- }
460
- export function listInstalledDeliveryCarriers(payload) {
461
- function __listInstalledDeliveryCarriers({ host }) {
462
- const metadata = {
463
- entityFqdn: 'wix.ecom.v1.delivery_profile',
464
- method: 'GET',
465
- methodFqn: 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListInstalledDeliveryCarriers',
466
- packageName: PACKAGE_NAME,
467
- url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
468
- protoPath: '/v1/delivery-profiles/installed-carriers',
469
- data: payload,
470
- host,
471
- }),
472
- params: toURLSearchParams(payload),
473
- };
474
- return metadata;
475
- }
476
- return __listInstalledDeliveryCarriers;
477
- }
478
- /**
479
- * Get delivery carrier settings for a delivery profile and delivery region.
480
- * These are returned in a table format for the dashboard.
481
- */
482
- export function listDeliveryCarriers(payload) {
483
- function __listDeliveryCarriers({ host }) {
484
- const metadata = {
485
- entityFqdn: 'wix.ecom.v1.delivery_profile',
486
- method: 'POST',
487
- methodFqn: 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.ListDeliveryCarriers',
488
- packageName: PACKAGE_NAME,
489
- url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
490
- protoPath: '/v1/delivery-profiles/{deliveryProfileId}/delivery-carriers',
491
- data: payload,
492
- host,
493
- }),
494
- data: payload,
495
- };
496
- return metadata;
497
- }
498
- return __listDeliveryCarriers;
499
- }
500
- /** Update carrier's external active settings */
501
- export function updateCarrierSettings(payload) {
502
- function __updateCarrierSettings({ host }) {
503
- const metadata = {
504
- entityFqdn: 'wix.ecom.v1.delivery_profile',
505
- method: 'POST',
506
- methodFqn: 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateCarrierSettings',
507
- packageName: PACKAGE_NAME,
508
- url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
509
- protoPath: '/v1/delivery-carriers/update-settings',
510
- data: payload,
511
- host,
512
- }),
513
- data: payload,
514
- };
515
- return metadata;
516
- }
517
- return __updateCarrierSettings;
518
- }
519
- /** Updates extended fields of a DeliveryProfile without incrementing revision */
520
- export function updateExtendedFields(payload) {
521
- function __updateExtendedFields({ host }) {
522
- const metadata = {
523
- entityFqdn: 'wix.ecom.v1.delivery_profile',
524
- method: 'POST',
525
- methodFqn: 'wix.ecom.deliveryprofile.v1.DeliveryProfiles.UpdateExtendedFields',
526
- packageName: PACKAGE_NAME,
527
- url: resolveWixEcomDeliveryprofileV1DeliveryProfilesUrl({
528
- protoPath: '/v1/delivery-profiles/{id}/update-extended-fields',
529
- data: payload,
530
- host,
531
- }),
532
- data: payload,
533
- transformResponse: (payload) => transformPaths(payload, [
534
- {
535
- transformFn: transformRESTTimestampToSDKTimestamp,
536
- paths: [
537
- { path: 'deliveryProfile.createdDate' },
538
- { path: 'deliveryProfile.updatedDate' },
539
- { path: 'deliveryProfile.deliveryRegions.createdDate' },
540
- ],
541
- },
542
- ]),
543
- };
544
- return metadata;
545
- }
546
- return __updateExtendedFields;
547
- }
548
- //# sourceMappingURL=ecom-v1-delivery-profile-delivery-profile.http.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ecom-v1-delivery-profile-delivery-profile.http.js","sourceRoot":"","sources":["../../../../src/ecom-v1-delivery-profile-delivery-profile.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,kDAAkD,CACzD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,4BAA4B;aACvC;YACD;gBACE,OAAO,EAAE,wCAAwC;gBACjD,QAAQ,EAAE,mCAAmC;aAC9C;YACD;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,uBAAuB;aAClC;YACD;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,uBAAuB;aAClC;SACF;QACD,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,4BAA4B;gBACrC,QAAQ,EAAE,EAAE;aACb;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,qCAAqC,CAAC;AAE3D;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CACnC,OAAe;IAEf,SAAS,uBAAuB,CAAC,EAAE,IAAI,EAAO;QAC5C,MAAM,cAAc,GAAG,cAAc,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B;oBACE,WAAW,EAAE,oCAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,6BAA6B,EAAE;wBACvC,EAAE,IAAI,EAAE,6BAA6B,EAAE;wBACvC,EAAE,IAAI,EAAE,6CAA6C,EAAE;qBACxD;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,sBAAsB,CAAC;AAChC,CAAC"}
@@ -1,46 +0,0 @@
1
- import * as ambassadorWixEcomV1DeliveryProfileTypes from './ecom-v1-delivery-profile-delivery-profile.types.js';
2
- import * as ambassadorWixEcomV1DeliveryProfileUniversalTypes from './ecom-v1-delivery-profile-delivery-profile.universal.js';
3
- export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
- getUrl: (context: any) => string;
5
- httpMethod: K;
6
- path: string;
7
- pathParams: M;
8
- __requestType: T;
9
- __originalRequestType: S;
10
- __responseType: Q;
11
- __originalResponseType: R;
12
- };
13
- export declare function createDeliveryProfile(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixEcomV1DeliveryProfileUniversalTypes.CreateDeliveryProfileRequest, ambassadorWixEcomV1DeliveryProfileTypes.CreateDeliveryProfileRequest, ambassadorWixEcomV1DeliveryProfileUniversalTypes.CreateDeliveryProfileResponse, ambassadorWixEcomV1DeliveryProfileTypes.CreateDeliveryProfileResponse>;
14
- export declare function getDeliveryProfile(): __PublicMethodMetaInfo<'GET', {
15
- deliveryProfileId: string;
16
- }, ambassadorWixEcomV1DeliveryProfileUniversalTypes.GetDeliveryProfileRequest, ambassadorWixEcomV1DeliveryProfileTypes.GetDeliveryProfileRequest, ambassadorWixEcomV1DeliveryProfileUniversalTypes.GetDeliveryProfileResponse, ambassadorWixEcomV1DeliveryProfileTypes.GetDeliveryProfileResponse>;
17
- export declare function updateDeliveryProfile(): __PublicMethodMetaInfo<'PATCH', {
18
- deliveryProfileId: string;
19
- }, ambassadorWixEcomV1DeliveryProfileUniversalTypes.UpdateDeliveryProfileRequest, ambassadorWixEcomV1DeliveryProfileTypes.UpdateDeliveryProfileRequest, ambassadorWixEcomV1DeliveryProfileUniversalTypes.UpdateDeliveryProfileResponse, ambassadorWixEcomV1DeliveryProfileTypes.UpdateDeliveryProfileResponse>;
20
- export declare function deleteDeliveryProfile(): __PublicMethodMetaInfo<'DELETE', {
21
- deliveryProfileId: string;
22
- }, ambassadorWixEcomV1DeliveryProfileUniversalTypes.DeleteDeliveryProfileRequest, ambassadorWixEcomV1DeliveryProfileTypes.DeleteDeliveryProfileRequest, ambassadorWixEcomV1DeliveryProfileUniversalTypes.DeleteDeliveryProfileResponse, ambassadorWixEcomV1DeliveryProfileTypes.DeleteDeliveryProfileResponse>;
23
- export declare function queryDeliveryProfiles(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixEcomV1DeliveryProfileUniversalTypes.QueryDeliveryProfilesRequest, ambassadorWixEcomV1DeliveryProfileTypes.QueryDeliveryProfilesRequest, ambassadorWixEcomV1DeliveryProfileUniversalTypes.QueryDeliveryProfilesResponse, ambassadorWixEcomV1DeliveryProfileTypes.QueryDeliveryProfilesResponse>;
24
- export declare function addDeliveryRegion(): __PublicMethodMetaInfo<'POST', {
25
- deliveryProfileId: string;
26
- }, ambassadorWixEcomV1DeliveryProfileUniversalTypes.AddDeliveryRegionRequest, ambassadorWixEcomV1DeliveryProfileTypes.AddDeliveryRegionRequest, ambassadorWixEcomV1DeliveryProfileUniversalTypes.AddDeliveryRegionResponse, ambassadorWixEcomV1DeliveryProfileTypes.AddDeliveryRegionResponse>;
27
- export declare function updateDeliveryRegion(): __PublicMethodMetaInfo<'PATCH', {
28
- deliveryProfileId: string;
29
- deliveryRegionId: string;
30
- }, ambassadorWixEcomV1DeliveryProfileUniversalTypes.UpdateDeliveryRegionRequest, ambassadorWixEcomV1DeliveryProfileTypes.UpdateDeliveryRegionRequest, ambassadorWixEcomV1DeliveryProfileUniversalTypes.UpdateDeliveryRegionResponse, ambassadorWixEcomV1DeliveryProfileTypes.UpdateDeliveryRegionResponse>;
31
- export declare function removeDeliveryRegion(): __PublicMethodMetaInfo<'DELETE', {
32
- deliveryProfileId: string;
33
- deliveryRegionId: string;
34
- }, ambassadorWixEcomV1DeliveryProfileUniversalTypes.RemoveDeliveryRegionRequest, ambassadorWixEcomV1DeliveryProfileTypes.RemoveDeliveryRegionRequest, ambassadorWixEcomV1DeliveryProfileUniversalTypes.RemoveDeliveryRegionResponse, ambassadorWixEcomV1DeliveryProfileTypes.RemoveDeliveryRegionResponse>;
35
- export declare function addDeliveryCarrier(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixEcomV1DeliveryProfileUniversalTypes.AddDeliveryCarrierRequest, ambassadorWixEcomV1DeliveryProfileTypes.AddDeliveryCarrierRequest, ambassadorWixEcomV1DeliveryProfileUniversalTypes.AddDeliveryCarrierResponse, ambassadorWixEcomV1DeliveryProfileTypes.AddDeliveryCarrierResponse>;
36
- export declare function removeDeliveryCarrier(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixEcomV1DeliveryProfileUniversalTypes.RemoveDeliveryCarrierRequest, ambassadorWixEcomV1DeliveryProfileTypes.RemoveDeliveryCarrierRequest, ambassadorWixEcomV1DeliveryProfileUniversalTypes.RemoveDeliveryCarrierResponse, ambassadorWixEcomV1DeliveryProfileTypes.RemoveDeliveryCarrierResponse>;
37
- export declare function updateDeliveryCarrier(): __PublicMethodMetaInfo<'PATCH', {}, ambassadorWixEcomV1DeliveryProfileUniversalTypes.UpdateDeliveryCarrierRequest, ambassadorWixEcomV1DeliveryProfileTypes.UpdateDeliveryCarrierRequest, ambassadorWixEcomV1DeliveryProfileUniversalTypes.UpdateDeliveryCarrierResponse, ambassadorWixEcomV1DeliveryProfileTypes.UpdateDeliveryCarrierResponse>;
38
- export declare function listDeliveryCarrierDetails(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixEcomV1DeliveryProfileUniversalTypes.ListDeliveryCarrierDetailsRequest, ambassadorWixEcomV1DeliveryProfileTypes.ListDeliveryCarrierDetailsRequest, ambassadorWixEcomV1DeliveryProfileUniversalTypes.ListDeliveryCarrierDetailsResponse, ambassadorWixEcomV1DeliveryProfileTypes.ListDeliveryCarrierDetailsResponse>;
39
- export declare function listInstalledDeliveryCarriers(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixEcomV1DeliveryProfileUniversalTypes.ListInstalledDeliveryCarriersRequest, ambassadorWixEcomV1DeliveryProfileTypes.ListInstalledDeliveryCarriersRequest, ambassadorWixEcomV1DeliveryProfileUniversalTypes.ListInstalledDeliveryCarriersResponse, ambassadorWixEcomV1DeliveryProfileTypes.ListInstalledDeliveryCarriersResponse>;
40
- export declare function listDeliveryCarriers(): __PublicMethodMetaInfo<'POST', {
41
- deliveryProfileId: string;
42
- }, ambassadorWixEcomV1DeliveryProfileUniversalTypes.ListDeliveryCarriersRequest, ambassadorWixEcomV1DeliveryProfileTypes.ListDeliveryCarriersRequest, ambassadorWixEcomV1DeliveryProfileUniversalTypes.ListDeliveryCarriersResponse, ambassadorWixEcomV1DeliveryProfileTypes.ListDeliveryCarriersResponse>;
43
- export declare function updateCarrierSettings(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixEcomV1DeliveryProfileUniversalTypes.UpdateCarrierSettingsRequest, ambassadorWixEcomV1DeliveryProfileTypes.UpdateCarrierSettingsRequest, ambassadorWixEcomV1DeliveryProfileUniversalTypes.UpdateCarrierSettingsResponse, ambassadorWixEcomV1DeliveryProfileTypes.UpdateCarrierSettingsResponse>;
44
- export declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', {
45
- id: string;
46
- }, ambassadorWixEcomV1DeliveryProfileUniversalTypes.UpdateExtendedFieldsRequest, ambassadorWixEcomV1DeliveryProfileTypes.UpdateExtendedFieldsRequest, ambassadorWixEcomV1DeliveryProfileUniversalTypes.UpdateExtendedFieldsResponse, ambassadorWixEcomV1DeliveryProfileTypes.UpdateExtendedFieldsResponse>;