@things-factory/integration-sellercraft 4.2.2 → 4.2.7

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 (25) hide show
  1. package/dist-server/constants/order-status-mapping.js +13 -3
  2. package/dist-server/constants/order-status-mapping.js.map +1 -1
  3. package/dist-server/constants/platform.js +2 -1
  4. package/dist-server/constants/platform.js.map +1 -1
  5. package/dist-server/controllers/sellercraft-channel-integration/apis/ingest-channel-order.js +1 -1
  6. package/dist-server/controllers/sellercraft-channel-integration/apis/ingest-channel-order.js.map +1 -1
  7. package/dist-server/controllers/sellercraft-channel-integration/apis/ingest-channel-product.js +25 -8
  8. package/dist-server/controllers/sellercraft-channel-integration/apis/ingest-channel-product.js.map +1 -1
  9. package/dist-server/controllers/sellercraft-channel-integration/sellercraft-channel-integration.js +8 -4
  10. package/dist-server/controllers/sellercraft-channel-integration/sellercraft-channel-integration.js.map +1 -1
  11. package/dist-server/routers/sellercraft-router.js +2 -1
  12. package/dist-server/routers/sellercraft-router.js.map +1 -1
  13. package/dist-server/service/marketplace-channel/marketplace-channel-order-mutation.js +253 -231
  14. package/dist-server/service/marketplace-channel/marketplace-channel-order-mutation.js.map +1 -1
  15. package/dist-server/service/marketplace-channel/marketplace-channel-product-mutation.js +48 -23
  16. package/dist-server/service/marketplace-channel/marketplace-channel-product-mutation.js.map +1 -1
  17. package/package.json +3 -3
  18. package/server/constants/order-status-mapping.ts +13 -3
  19. package/server/constants/platform.ts +2 -1
  20. package/server/controllers/sellercraft-channel-integration/apis/ingest-channel-order.ts +1 -1
  21. package/server/controllers/sellercraft-channel-integration/apis/ingest-channel-product.ts +34 -15
  22. package/server/controllers/sellercraft-channel-integration/sellercraft-channel-integration.ts +8 -4
  23. package/server/routers/sellercraft-router.ts +2 -1
  24. package/server/service/marketplace-channel/marketplace-channel-order-mutation.ts +305 -270
  25. package/server/service/marketplace-channel/marketplace-channel-product-mutation.ts +47 -26
@@ -15,253 +15,275 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.MarketplaceChannelOrderMutation = void 0;
16
16
  const type_graphql_1 = require("type-graphql");
17
17
  const typeorm_1 = require("typeorm");
18
- const marketplace_channel_1 = require("./marketplace-channel");
19
18
  const env_1 = require("@things-factory/env");
20
19
  const integration_marketplace_1 = require("@things-factory/integration-marketplace");
21
20
  const sellercraft_channel_integration_api_1 = require("../../controllers/sellercraft-channel-integration-api");
21
+ const marketplace_channel_1 = require("./marketplace-channel");
22
22
  let MarketplaceChannelOrderMutation = class MarketplaceChannelOrderMutation {
23
23
  async syncAllMarketplaceChannelOrders(fromDate, toDate, context) {
24
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
24
25
  const sellercraftChannelIntegrationConfig = env_1.config.get('sellercraftChannelIntegrationConfig', {});
25
26
  const { tokenCraftApiKey: apiKey, getShopsTokenCraftUrl } = sellercraftChannelIntegrationConfig;
26
27
  const channels = await (0, typeorm_1.getRepository)(marketplace_channel_1.MarketplaceChannel).find();
27
28
  for (var i = 0; i < channels.length; i++) {
28
- var channelsFullPath = getShopsTokenCraftUrl + '?channel_id=' + channels[i].channelId;
29
- const channelResponse = await fetch(channelsFullPath, {
30
- method: 'get',
31
- headers: {
32
- 'Content-Type': 'application/json',
33
- 'x-api-key': apiKey
29
+ try {
30
+ var channelsFullPath = getShopsTokenCraftUrl + '?channel_id=' + channels[i].channelId;
31
+ const channelResponse = await fetch(channelsFullPath, {
32
+ method: 'get',
33
+ headers: {
34
+ 'Content-Type': 'application/json',
35
+ 'x-api-key': apiKey
36
+ }
37
+ });
38
+ if (!channelResponse.ok) {
39
+ throw new Error(channelResponse);
34
40
  }
35
- });
36
- if (!channelResponse.ok) {
37
- throw new Error(channelResponse);
38
- }
39
- var shopsResponse = await channelResponse.json();
40
- var shops = shopsResponse.shops;
41
- for (var j = 0; j < shops.length; j++) {
42
- var store = {
43
- accessKey: shops[j].credential.consumer_key,
44
- accessSecret: shops[j].credential.consumer_secret,
45
- storeURL: shops[j].credential.store_url,
46
- platform: channels[i].name,
47
- accessToken: shops[j].credential.access_token // Magento+
48
- };
49
- // let countryCode = shops[j].country_code
50
- // let channelCode = shops[j].org_prefix
51
- let organisationId = shops[j].account_id;
52
- let channelShopId = shops[j].channel_shop_id;
53
- const orderReq = {
54
- fromDate: fromDate,
55
- toDate: toDate
56
- };
57
- const orderResult = await integration_marketplace_1.StoreAPI.getStoreOrders(store, orderReq);
58
- var sellercraftStore = Object.assign(Object.assign({}, store), { platform: 'sellercraftChannelIntegration' });
59
- let mappedOrderResult = orderResult.results.map(order => {
60
- let { firstName: custFirstName, lastName: custLastName, orderCreatedAt: createdAt, orderUpdatedAt: updatedAt, orderNo: id, status } = order;
61
- let { first_name: billFirstName, last_name: billLastName, address_1: billAddress1, address_2: billAddress2, address_3: billAddress3, address_4: billAddress4, address_5: billAddress5, city: billCity, postcode: billPostalCode, country: billCountry, phone: billPhone1, phone_2: billPhone2 } = order === null || order === void 0 ? void 0 : order.billing;
62
- let { first_name: shipFirstName, last_name: shipLastName, address_1: shipAddress1, address_2: shipAddress2, address_3: shipAddress3, address_4: shipAddress4, address_5: shipAddress5, city: shipCity, postcode: shipPostalCode, country: shipCountry, phone: shipPhone1, phone_2: shipPhone2 } = order.shipping;
63
- let orderItems = order.orderItems.map(item => {
64
- let { name: id, variationId: variationId, slaExpiresAt, total, totalTax, subtotal, subtotalTax, qty } = item;
41
+ var shopsResponse = await channelResponse.json();
42
+ var shops = shopsResponse.shops;
43
+ for (var j = 0; j < shops.length; j++) {
44
+ var store = {
45
+ accessKey: ((_b = (_a = shops[j]) === null || _a === void 0 ? void 0 : _a.credential) === null || _b === void 0 ? void 0 : _b.consumer_key) || '',
46
+ accessSecret: ((_d = (_c = shops[j]) === null || _c === void 0 ? void 0 : _c.credential) === null || _d === void 0 ? void 0 : _d.consumer_secret) || '',
47
+ storeURL: ((_f = (_e = shops[j]) === null || _e === void 0 ? void 0 : _e.credential) === null || _f === void 0 ? void 0 : _f.store_url) || '',
48
+ platform: channels[i].name,
49
+ accessToken: (_h = (_g = shops[j]) === null || _g === void 0 ? void 0 : _g.credential) === null || _h === void 0 ? void 0 : _h.access_token,
50
+ channelShopId: (_j = shops[j]) === null || _j === void 0 ? void 0 : _j.channel_shop_id
51
+ };
52
+ // let countryCode = shops[j].country_code
53
+ // let channelCode = shops[j].org_prefix
54
+ let organisationId = shops[j].account_id;
55
+ let channelShopId = shops[j].channel_shop_id;
56
+ let orderResult = [];
57
+ let page = 1;
58
+ let hasMorePage = true;
59
+ let lastOrderId;
60
+ let nextCursor;
61
+ var limit = 50;
62
+ while (hasMorePage) {
63
+ const { results: marketplaceOrders, more, nextCursor } = await integration_marketplace_1.StoreAPI.getStoreOrders(store, {
64
+ fromDate,
65
+ toDate,
66
+ pagination: { page, limit },
67
+ lastOrderId,
68
+ nextCursor: lastOrderId
69
+ });
70
+ orderResult.push(...marketplaceOrders);
71
+ if (more)
72
+ page++;
73
+ hasMorePage = more;
74
+ lastOrderId = nextCursor;
75
+ }
76
+ var sellercraftStore = Object.assign(Object.assign({}, store), { platform: 'sellercraftChannelIntegration' });
77
+ let mappedOrderResult = orderResult.map(order => {
78
+ let { firstName: custFirstName, lastName: custLastName, orderCreatedAt: createdAt, orderUpdatedAt: updatedAt, orderNo: id, status } = order;
79
+ let { first_name: billFirstName, last_name: billLastName, address_1: billAddress1, address_2: billAddress2, address_3: billAddress3, address_4: billAddress4, address_5: billAddress5, city: billCity, postcode: billPostalCode, country: billCountry, phone: billPhone1, phone_2: billPhone2 } = order === null || order === void 0 ? void 0 : order.billing;
80
+ let { first_name: shipFirstName, last_name: shipLastName, address_1: shipAddress1, address_2: shipAddress2, address_3: shipAddress3, address_4: shipAddress4, address_5: shipAddress5, city: shipCity, postcode: shipPostalCode, country: shipCountry, phone: shipPhone1, phone_2: shipPhone2 } = order.shipping;
81
+ let orderItems = order.orderItems.map(item => {
82
+ let { name: id, variationId: variationId, slaExpiresAt, total, totalTax, subtotal, subtotalTax, qty } = item;
83
+ return {
84
+ id,
85
+ variationId,
86
+ currency: order.orderShipping.collectionCurrency,
87
+ createdAt: order.orderCreatedAt,
88
+ updatedAt: order.orderUpdatedAt,
89
+ charges: [
90
+ {
91
+ name: 'CHARGES_MARKETING',
92
+ grossAmount: 0,
93
+ nettAmount: 0
94
+ },
95
+ {
96
+ name: 'CLAIMS_DAMAGE',
97
+ grossAmount: 0,
98
+ nettAmount: 0
99
+ },
100
+ {
101
+ name: 'CLAIMS_LOST',
102
+ grossAmount: 0,
103
+ nettAmount: 0
104
+ },
105
+ {
106
+ name: 'COMMISSION_PLATFORM',
107
+ grossAmount: 0,
108
+ nettAmount: 0
109
+ },
110
+ {
111
+ name: 'DEPOSIT_PRESALE',
112
+ grossAmount: 0,
113
+ nettAmount: 0
114
+ },
115
+ {
116
+ name: 'FEE_MISCELLANEOUS',
117
+ grossAmount: 0,
118
+ nettAmount: 0
119
+ },
120
+ {
121
+ name: 'FEE_TRANSACTION',
122
+ grossAmount: 0,
123
+ nettAmount: 0
124
+ },
125
+ {
126
+ name: 'PRICE_NORMAL_SELLING',
127
+ grossAmount: total,
128
+ nettAmount: subtotal
129
+ },
130
+ {
131
+ name: 'PRICE_RECOMMENDED_RETAIL',
132
+ grossAmount: 0,
133
+ nettAmount: 0
134
+ },
135
+ {
136
+ name: 'PROMOTIONS_CUSTOMER_RECEIVED',
137
+ grossAmount: 0,
138
+ nettAmount: 0
139
+ },
140
+ {
141
+ name: 'PROMOTIONS_REBATE_PLATFORM',
142
+ grossAmount: 0,
143
+ nettAmount: 0
144
+ },
145
+ {
146
+ name: 'PROMOTIONS_REBATE_SELLER',
147
+ grossAmount: 0,
148
+ nettAmount: 0
149
+ },
150
+ {
151
+ name: 'REVERSAL_CHARGES_MARKETING',
152
+ grossAmount: 0,
153
+ nettAmount: 0
154
+ },
155
+ {
156
+ name: 'REVERSAL_COMMISSION',
157
+ grossAmount: 0,
158
+ nettAmount: 0
159
+ },
160
+ {
161
+ name: 'REVERSAL_FEE_MISCELLANEOUS',
162
+ grossAmount: 0,
163
+ nettAmount: 0
164
+ },
165
+ {
166
+ name: 'REVERSAL_PROMOTIONS_CUSTOMER_RECEIVED',
167
+ grossAmount: 0,
168
+ nettAmount: 0
169
+ },
170
+ {
171
+ name: 'REVERSAL_SELLER_RETURN_REFUND_AMOUNT',
172
+ grossAmount: 0,
173
+ nettAmount: 0
174
+ },
175
+ {
176
+ name: 'REVERSAL_SHIPPING_CUSTOMER_PAID',
177
+ grossAmount: 0,
178
+ nettAmount: 0
179
+ },
180
+ {
181
+ name: 'REVERSAL_SHIPPING_REBATE_PLATFORM',
182
+ grossAmount: 0,
183
+ nettAmount: 0
184
+ },
185
+ {
186
+ name: 'REVERSAL_SHIPPING_SELLER_PAID',
187
+ grossAmount: 0,
188
+ nettAmount: 0
189
+ },
190
+ {
191
+ name: 'SHIPPING_COST_TOTAL',
192
+ grossAmount: 0,
193
+ nettAmount: 0
194
+ },
195
+ {
196
+ name: 'SHIPPING_CUSTOMER_PAID',
197
+ grossAmount: 0,
198
+ nettAmount: 0
199
+ },
200
+ {
201
+ name: 'SHIPPING_REBATE_PLATFORM',
202
+ grossAmount: 0,
203
+ nettAmount: 0
204
+ },
205
+ {
206
+ name: 'SHIPPING_SELLER_PAID',
207
+ grossAmount: 0,
208
+ nettAmount: 0
209
+ },
210
+ {
211
+ name: 'TAXES',
212
+ grossAmount: totalTax,
213
+ nettAmount: subtotalTax
214
+ },
215
+ {
216
+ name: 'VOUCHERS_CUSTOMER_RECEIVED',
217
+ grossAmount: 0,
218
+ nettAmount: 0
219
+ },
220
+ {
221
+ name: 'VOUCHERS_REBATE_PLATFORM',
222
+ grossAmount: 0,
223
+ nettAmount: 0
224
+ },
225
+ {
226
+ name: 'VOUCHERS_REBATE_SELLER',
227
+ grossAmount: 0,
228
+ nettAmount: 0
229
+ }
230
+ ],
231
+ slaExpiresAt,
232
+ qty
233
+ };
234
+ });
235
+ let mappedOrderItems = [];
236
+ orderItems.map(oi => {
237
+ for (let i = 0; i < oi.qty; i++) {
238
+ mappedOrderItems.push(Object.assign(Object.assign({}, oi), { id: `${oi.id}-${i + 1}` }));
239
+ }
240
+ });
65
241
  return {
242
+ custFirstName,
243
+ custLastName,
244
+ createdAt,
245
+ updatedAt,
66
246
  id,
67
- variationId,
68
- currency: order.orderShipping.collectionCurrency,
69
- createdAt: order.orderCreatedAt,
70
- updatedAt: order.orderUpdatedAt,
71
- charges: [
72
- {
73
- name: 'CHARGES_MARKETING',
74
- grossAmount: 0,
75
- nettAmount: 0
76
- },
77
- {
78
- name: 'CLAIMS_DAMAGE',
79
- grossAmount: 0,
80
- nettAmount: 0
81
- },
82
- {
83
- name: 'CLAIMS_LOST',
84
- grossAmount: 0,
85
- nettAmount: 0
86
- },
87
- {
88
- name: 'COMMISSION_PLATFORM',
89
- grossAmount: 0,
90
- nettAmount: 0
91
- },
92
- {
93
- name: 'DEPOSIT_PRESALE',
94
- grossAmount: 0,
95
- nettAmount: 0
96
- },
97
- {
98
- name: 'FEE_MISCELLANEOUS',
99
- grossAmount: 0,
100
- nettAmount: 0
101
- },
102
- {
103
- name: 'FEE_TRANSACTION',
104
- grossAmount: 0,
105
- nettAmount: 0
106
- },
107
- {
108
- name: 'PRICE_NORMAL_SELLING',
109
- grossAmount: total,
110
- nettAmount: subtotal
111
- },
112
- {
113
- name: 'PRICE_RECOMMENDED_RETAIL',
114
- grossAmount: 0,
115
- nettAmount: 0
116
- },
117
- {
118
- name: 'PROMOTIONS_CUSTOMER_RECEIVED',
119
- grossAmount: 0,
120
- nettAmount: 0
121
- },
122
- {
123
- name: 'PROMOTIONS_REBATE_PLATFORM',
124
- grossAmount: 0,
125
- nettAmount: 0
126
- },
127
- {
128
- name: 'PROMOTIONS_REBATE_SELLER',
129
- grossAmount: 0,
130
- nettAmount: 0
131
- },
132
- {
133
- name: 'REVERSAL_CHARGES_MARKETING',
134
- grossAmount: 0,
135
- nettAmount: 0
136
- },
137
- {
138
- name: 'REVERSAL_COMMISSION',
139
- grossAmount: 0,
140
- nettAmount: 0
141
- },
142
- {
143
- name: 'REVERSAL_FEE_MISCELLANEOUS',
144
- grossAmount: 0,
145
- nettAmount: 0
146
- },
147
- {
148
- name: 'REVERSAL_PROMOTIONS_CUSTOMER_RECEIVED',
149
- grossAmount: 0,
150
- nettAmount: 0
151
- },
152
- {
153
- name: 'REVERSAL_SELLER_RETURN_REFUND_AMOUNT',
154
- grossAmount: 0,
155
- nettAmount: 0
156
- },
157
- {
158
- name: 'REVERSAL_SHIPPING_CUSTOMER_PAID',
159
- grossAmount: 0,
160
- nettAmount: 0
161
- },
162
- {
163
- name: 'REVERSAL_SHIPPING_REBATE_PLATFORM',
164
- grossAmount: 0,
165
- nettAmount: 0
166
- },
167
- {
168
- name: 'REVERSAL_SHIPPING_SELLER_PAID',
169
- grossAmount: 0,
170
- nettAmount: 0
171
- },
172
- {
173
- name: 'SHIPPING_COST_TOTAL',
174
- grossAmount: 0,
175
- nettAmount: 0
176
- },
177
- {
178
- name: 'SHIPPING_CUSTOMER_PAID',
179
- grossAmount: 0,
180
- nettAmount: 0
181
- },
182
- {
183
- name: 'SHIPPING_REBATE_PLATFORM',
184
- grossAmount: 0,
185
- nettAmount: 0
186
- },
187
- {
188
- name: 'SHIPPING_SELLER_PAID',
189
- grossAmount: 0,
190
- nettAmount: 0
191
- },
192
- {
193
- name: 'TAXES',
194
- grossAmount: totalTax,
195
- nettAmount: subtotalTax
196
- },
197
- {
198
- name: 'VOUCHERS_CUSTOMER_RECEIVED',
199
- grossAmount: 0,
200
- nettAmount: 0
201
- },
202
- {
203
- name: 'VOUCHERS_REBATE_PLATFORM',
204
- grossAmount: 0,
205
- nettAmount: 0
206
- },
207
- {
208
- name: 'VOUCHERS_REBATE_SELLER',
209
- grossAmount: 0,
210
- nettAmount: 0
211
- }
212
- ],
213
- slaExpiresAt,
214
- qty
247
+ billFirstName,
248
+ billLastName,
249
+ billAddress1: billAddress1.toString() || shipAddress1.toString(),
250
+ billAddress2: billAddress2 || shipAddress2,
251
+ billAddress3: billAddress3 || shipAddress3,
252
+ billAddress4: billAddress4 || shipAddress4,
253
+ billAddress5: billAddress5 || shipAddress5,
254
+ billCity: billCity || shipCity,
255
+ billPostalCode: billPostalCode || shipPostalCode,
256
+ billCountry: billCountry || shipCountry,
257
+ billPhone1: billPhone1 || shipPhone1,
258
+ billPhone2: billPhone2 || shipPhone2,
259
+ shipFirstName,
260
+ shipLastName,
261
+ shipAddress1: shipAddress1.toString(),
262
+ shipAddress2,
263
+ shipAddress3,
264
+ shipAddress4,
265
+ shipAddress5,
266
+ shipCity,
267
+ shipPostalCode,
268
+ shipCountry,
269
+ shipPhone1,
270
+ shipPhone2,
271
+ mappedOrderItems,
272
+ channelShopId,
273
+ organisationId,
274
+ status,
275
+ charges: getOrderCharges(mappedOrderItems)
215
276
  };
216
277
  });
217
- let mappedOrderItems = [];
218
- orderItems.map(oi => {
219
- for (let i = 0; i < oi.qty; i++) {
220
- mappedOrderItems.push(Object.assign(Object.assign({}, oi), { id: `${oi.id}-${i + 1}` }));
221
- }
222
- });
223
- return {
224
- custFirstName,
225
- custLastName,
226
- createdAt,
227
- updatedAt,
228
- id,
229
- billFirstName,
230
- billLastName,
231
- billAddress1: billAddress1.toString() || shipAddress1.toString(),
232
- billAddress2: billAddress2 || shipAddress2,
233
- billAddress3: billAddress3 || shipAddress3,
234
- billAddress4: billAddress4 || shipAddress4,
235
- billAddress5: billAddress5 || shipAddress5,
236
- billCity: billCity || shipCity,
237
- billPostalCode: billPostalCode || shipPostalCode,
238
- billCountry: billCountry || shipCountry,
239
- billPhone1: billPhone1 || shipPhone1,
240
- billPhone2: billPhone2 || shipPhone2,
241
- shipFirstName,
242
- shipLastName,
243
- shipAddress1: shipAddress1.toString(),
244
- shipAddress2,
245
- shipAddress3,
246
- shipAddress4,
247
- shipAddress5,
248
- shipCity,
249
- shipPostalCode,
250
- shipCountry,
251
- shipPhone1,
252
- shipPhone2,
253
- mappedOrderItems,
254
- channelShopId,
255
- organisationId,
256
- status,
257
- charges: getOrderCharges(mappedOrderItems)
258
- };
259
- });
260
- if (mappedOrderResult.length > 0) {
261
- await sellercraft_channel_integration_api_1.SellercraftChannelIntegrationAPI.ingestChannelOrder(sellercraftStore, { orders: mappedOrderResult });
278
+ if (mappedOrderResult.length > 0) {
279
+ await sellercraft_channel_integration_api_1.SellercraftChannelIntegrationAPI.ingestChannelOrder(sellercraftStore, { orders: mappedOrderResult });
280
+ }
262
281
  }
282
+ return true;
283
+ }
284
+ catch (e) {
285
+ debugger;
263
286
  }
264
- return true;
265
287
  }
266
288
  }
267
289
  };
@@ -1 +1 @@
1
- {"version":3,"file":"marketplace-channel-order-mutation.js","sourceRoot":"","sources":["../../../server/service/marketplace-channel/marketplace-channel-order-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAA2D;AAC3D,qCAAuC;AAEvC,+DAA0D;AAE1D,6CAA4C;AAC5C,qFAAkE;AAClE,+GAAwG;AAGxG,IAAa,+BAA+B,GAA5C,MAAa,+BAA+B;IAE1C,KAAK,CAAC,+BAA+B,CAClB,QAAgB,EAClB,MAAc,EACtB,OAAY;QAEnB,MAAM,mCAAmC,GAAG,YAAM,CAAC,GAAG,CAAC,qCAAqC,EAAE,EAAE,CAAC,CAAA;QACjG,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,qBAAqB,EAAE,GAAG,mCAAmC,CAAA;QAE/F,MAAM,QAAQ,GAAyB,MAAM,IAAA,uBAAa,EAAC,wCAAkB,CAAC,CAAC,IAAI,EAAE,CAAA;QAErF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACxC,IAAI,gBAAgB,GAAG,qBAAqB,GAAG,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;YACrF,MAAM,eAAe,GAAQ,MAAM,KAAK,CAAC,gBAAgB,EAAE;gBACzD,MAAM,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AAW,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAA;gBACtE,WAAW,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAA;gBACnE,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,CAAA;aAC/D;iBAAM;gBACL,WAAW,GAAG;oBACZ,IAAI,EAAE,MAAM,CAAC,IAAI;oBACjB,WAAW,EAAE,MAAM,CAAC,WAAW;oBAC/B,UAAU,EAAE,MAAM,CAAC,UAAU;iBAC9B,CAAA;aACF;YACD,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;SAC9B;KACF;IACD,OAAO,WAAW,CAAA;AACpB,CAAC"}
1
+ {"version":3,"file":"marketplace-channel-order-mutation.js","sourceRoot":"","sources":["../../../server/service/marketplace-channel/marketplace-channel-order-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAA2D;AAC3D,qCAAuC;AAEvC,6CAA4C;AAC5C,qFAAkE;AAElE,+GAAwG;AACxG,+DAA0D;AAG1D,IAAa,+BAA+B,GAA5C,MAAa,+BAA+B;IAE1C,KAAK,CAAC,+BAA+B,CAClB,QAAgB,EAClB,MAAc,EACtB,OAAY;;QAEnB,MAAM,mCAAmC,GAAG,YAAM,CAAC,GAAG,CAAC,qCAAqC,EAAE,EAAE,CAAC,CAAA;QACjG,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,qBAAqB,EAAE,GAAG,mCAAmC,CAAA;QAE/F,MAAM,QAAQ,GAAyB,MAAM,IAAA,uBAAa,EAAC,wCAAkB,CAAC,CAAC,IAAI,EAAE,CAAA;QAErF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACxC,IAAI;gBACF,IAAI,gBAAgB,GAAG,qBAAqB,GA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