@things-factory/operato-mms 4.1.3 → 4.1.10
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/client/pages/order/logistics/batch-init-popup.js +15 -3
- package/client/pages/order/logistics/lazada-order-init-batch-popup.js +32 -27
- package/client/pages/order/logistics/order-init-popup.js +13 -10
- package/client/pages/order/logistics/order-shipping-items.js +23 -26
- package/client/pages/order/logistics/request-ro-popup.js +18 -16
- package/client/pages/order/logistics/shopee-order-init-batch-popup.js +32 -27
- package/client/pages/order/order-by-store.js +34 -29
- package/client/pages/order/select-datetime-popup.js +2 -2
- package/config.development.js +160 -0
- package/dist-server/graphql/resolvers/interface-with-hub/add-release-order.js +25 -24
- package/dist-server/graphql/resolvers/interface-with-hub/add-release-order.js.map +1 -1
- package/dist-server/graphql/resolvers/interface-with-hub/auto-add-release-order.js +26 -24
- package/dist-server/graphql/resolvers/interface-with-hub/auto-add-release-order.js.map +1 -1
- package/dist-server/routers/etrax-router.js +26 -6
- package/dist-server/routers/etrax-router.js.map +1 -1
- package/package.json +61 -61
- package/server/graphql/resolvers/interface-with-hub/add-release-order.ts +41 -33
- package/server/graphql/resolvers/interface-with-hub/auto-add-release-order.ts +42 -33
- package/server/routers/etrax-router.ts +33 -7
- package/translations/en.json +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
|
@@ -62,7 +62,7 @@ class BatchInitPopup extends localize(i18next)(LitElement) {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
render() {
|
|
65
|
-
const shippingProviders = [{ name: 'SeeBuu Logistics' }, { name: 'GDex' }]
|
|
65
|
+
const shippingProviders = [{ name: 'SeeBuu Logistics' }, { name: 'GDex' }, { name: 'Others' }]
|
|
66
66
|
|
|
67
67
|
return html`
|
|
68
68
|
<search-form id="search-form" .fields=${this._searchFields} @submit=${e => this.dataGrist.fetch()}></search-form>
|
|
@@ -223,6 +223,15 @@ class BatchInitPopup extends localize(i18next)(LitElement) {
|
|
|
223
223
|
sortable: false,
|
|
224
224
|
width: 130
|
|
225
225
|
},
|
|
226
|
+
{
|
|
227
|
+
type: 'string',
|
|
228
|
+
name: 'trackingUrl',
|
|
229
|
+
header: i18next.t('field.tracking_url'),
|
|
230
|
+
record: { editable: true },
|
|
231
|
+
label: true,
|
|
232
|
+
sortable: false,
|
|
233
|
+
width: 130
|
|
234
|
+
},
|
|
226
235
|
{
|
|
227
236
|
type: 'string',
|
|
228
237
|
name: 'shippingProvider',
|
|
@@ -360,6 +369,7 @@ class BatchInitPopup extends localize(i18next)(LitElement) {
|
|
|
360
369
|
weightUnit
|
|
361
370
|
totalVolume
|
|
362
371
|
volumeUnit
|
|
372
|
+
trackingUrl
|
|
363
373
|
marketplaceStore {
|
|
364
374
|
id
|
|
365
375
|
name
|
|
@@ -406,7 +416,7 @@ class BatchInitPopup extends localize(i18next)(LitElement) {
|
|
|
406
416
|
return {
|
|
407
417
|
...itm,
|
|
408
418
|
status: itm.marketplaceOrder.status,
|
|
409
|
-
|
|
419
|
+
isSplitted: itm.marketplaceOrder.isSplitted,
|
|
410
420
|
shippingProvider: itm.transporter,
|
|
411
421
|
ownShippingProvider: itm.ownTransporter,
|
|
412
422
|
orderCreatedAt: itm.marketplaceOrder.orderCreatedAt,
|
|
@@ -504,7 +514,9 @@ class BatchInitPopup extends localize(i18next)(LitElement) {
|
|
|
504
514
|
id: patch.id,
|
|
505
515
|
orderNo: patch.marketplaceOrder.orderNo,
|
|
506
516
|
trackingNo: patch?.trackingNo,
|
|
507
|
-
shippingProvider: patch?.shippingProvider
|
|
517
|
+
shippingProvider: patch?.shippingProvider,
|
|
518
|
+
ownTrackingNo: patch?.ownTrackingNo,
|
|
519
|
+
trackingUrl: patch?.trackingUrl
|
|
508
520
|
}
|
|
509
521
|
})
|
|
510
522
|
|
|
@@ -314,29 +314,31 @@ class LazadaOrderInitBatchPopup extends localize(i18next)(LitElement) {
|
|
|
314
314
|
description
|
|
315
315
|
}
|
|
316
316
|
marketplaceOrderItems {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
317
|
+
marketplaceOrderShippingItems {
|
|
318
|
+
marketplaceOrderShipping {
|
|
319
|
+
id
|
|
320
|
+
name
|
|
321
|
+
address1
|
|
322
|
+
address2
|
|
323
|
+
address3
|
|
324
|
+
address4
|
|
325
|
+
address5
|
|
326
|
+
city
|
|
327
|
+
postCode
|
|
328
|
+
country
|
|
329
|
+
state
|
|
330
|
+
phone1
|
|
331
|
+
phone2
|
|
332
|
+
attentionTo
|
|
333
|
+
trackingNo
|
|
334
|
+
ownTrackingNo
|
|
335
|
+
transporter
|
|
336
|
+
ownTransporter
|
|
337
|
+
totalWeight
|
|
338
|
+
weightUnit
|
|
339
|
+
totalVolume
|
|
340
|
+
volumeUnit
|
|
341
|
+
}
|
|
340
342
|
}
|
|
341
343
|
marketplaceProductVariation {
|
|
342
344
|
name
|
|
@@ -423,11 +425,14 @@ class LazadaOrderInitBatchPopup extends localize(i18next)(LitElement) {
|
|
|
423
425
|
let marketplaceOrderShippings = []
|
|
424
426
|
|
|
425
427
|
marketplaceOrderItems.map(item => {
|
|
426
|
-
const
|
|
428
|
+
const marketplaceOrderShippingItems = item.marketplaceOrderShippingItems
|
|
429
|
+
marketplaceOrderShippingItems.map(itm => {
|
|
430
|
+
const marketplaceOrderShipping = itm.marketplaceOrderShipping
|
|
427
431
|
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
432
|
+
if (marketplaceOrderShipping) {
|
|
433
|
+
marketplaceOrderShippings.push(marketplaceOrderShipping)
|
|
434
|
+
}
|
|
435
|
+
})
|
|
431
436
|
})
|
|
432
437
|
|
|
433
438
|
const uniqueMarketplaceOrderShippings = Array.from(new Set(marketplaceOrderShippings.map(a => a.id))).map(id => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import '@things-factory/component-ui'
|
|
2
|
-
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
3
2
|
import '@things-factory/grist-ui'
|
|
4
|
-
import { i18next, localize } from '@things-factory/i18n-base'
|
|
5
|
-
import { isMobileDevice } from '@things-factory/utils'
|
|
6
|
-
import { css, html, LitElement } from 'lit-element'
|
|
7
|
-
import { PLATFORM } from '../../constants'
|
|
8
|
-
|
|
9
3
|
import './order-items'
|
|
10
4
|
import './order-shipping'
|
|
5
|
+
|
|
6
|
+
import { css, html, LitElement } from 'lit-element'
|
|
7
|
+
|
|
8
|
+
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
9
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
10
|
+
|
|
11
11
|
class OrderInitPopup extends localize(i18next)(LitElement) {
|
|
12
12
|
static get properties() {
|
|
13
13
|
return {
|
|
@@ -88,11 +88,14 @@ class OrderInitPopup extends localize(i18next)(LitElement) {
|
|
|
88
88
|
const marketplaceOrderItems = this.orderInformation.marketplaceOrderItems
|
|
89
89
|
|
|
90
90
|
marketplaceOrderItems.map(item => {
|
|
91
|
-
const
|
|
91
|
+
const marketplaceOrderShippingItems = item.marketplaceOrderShippingItems
|
|
92
|
+
marketplaceOrderShippingItems.map(itm => {
|
|
93
|
+
const marketplaceOrderShipping = itm.marketplaceOrderShipping
|
|
92
94
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
if (marketplaceOrderShipping) {
|
|
96
|
+
marketplaceOrderShippings.push(marketplaceOrderShipping)
|
|
97
|
+
}
|
|
98
|
+
})
|
|
96
99
|
})
|
|
97
100
|
|
|
98
101
|
return Array.from(new Set(marketplaceOrderShippings.map(a => a.id))).map(id => {
|
|
@@ -240,18 +240,6 @@ class OrderShippingItems extends localize(i18next)(LitElement) {
|
|
|
240
240
|
header: i18next.t('field.product_name'),
|
|
241
241
|
width: 400
|
|
242
242
|
},
|
|
243
|
-
{
|
|
244
|
-
type: 'string',
|
|
245
|
-
name: 'variationSku',
|
|
246
|
-
header: i18next.t('field.variation_sku'),
|
|
247
|
-
width: 200
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
type: 'string',
|
|
251
|
-
name: 'sku',
|
|
252
|
-
header: i18next.t('field.variation_name'),
|
|
253
|
-
width: 200
|
|
254
|
-
},
|
|
255
243
|
{
|
|
256
244
|
type: 'float',
|
|
257
245
|
name: 'qty',
|
|
@@ -279,17 +267,23 @@ class OrderShippingItems extends localize(i18next)(LitElement) {
|
|
|
279
267
|
ownTrackingNo
|
|
280
268
|
transporter
|
|
281
269
|
ownTransporter
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
isku
|
|
286
|
-
name
|
|
287
|
-
}
|
|
270
|
+
marketplaceOrderShippingItems {
|
|
271
|
+
product {
|
|
272
|
+
sku
|
|
288
273
|
name
|
|
289
|
-
variationSku
|
|
290
274
|
}
|
|
291
275
|
qty
|
|
292
|
-
|
|
276
|
+
marketplaceOrderItem {
|
|
277
|
+
marketplaceProductVariation {
|
|
278
|
+
marketplaceProduct {
|
|
279
|
+
isku
|
|
280
|
+
name
|
|
281
|
+
}
|
|
282
|
+
name
|
|
283
|
+
variationSku
|
|
284
|
+
}
|
|
285
|
+
paidPrice
|
|
286
|
+
}
|
|
293
287
|
}
|
|
294
288
|
}
|
|
295
289
|
}
|
|
@@ -300,15 +294,18 @@ class OrderShippingItems extends localize(i18next)(LitElement) {
|
|
|
300
294
|
if (!response.errors) {
|
|
301
295
|
this.fillUpForm(this.shippingForm, this.massageOrderShippingInformation())
|
|
302
296
|
|
|
297
|
+
const marketplaceOrderShippingItems = response.data.marketplaceOrderShipping.marketplaceOrderShippingItems
|
|
303
298
|
return {
|
|
304
299
|
records:
|
|
305
|
-
|
|
300
|
+
marketplaceOrderShippingItems.map(mosi => {
|
|
301
|
+
const product = mosi.product
|
|
302
|
+
const marketplaceOrderItem = mosi.marketplaceOrderItem
|
|
306
303
|
return {
|
|
307
|
-
...
|
|
308
|
-
...
|
|
309
|
-
|
|
310
|
-
productSku:
|
|
311
|
-
productName:
|
|
304
|
+
...marketplaceOrderItem,
|
|
305
|
+
...marketplaceOrderItem.marketplaceProductVariation,
|
|
306
|
+
qty: mosi.qty,
|
|
307
|
+
productSku: product.sku,
|
|
308
|
+
productName: product.name
|
|
312
309
|
}
|
|
313
310
|
}) || []
|
|
314
311
|
}
|
|
@@ -381,22 +381,24 @@ class RequestROPopup extends LitElement {
|
|
|
381
381
|
description
|
|
382
382
|
}
|
|
383
383
|
marketplaceOrderItems {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
384
|
+
marketplaceOrderShippingItems {
|
|
385
|
+
marketplaceOrderShipping {
|
|
386
|
+
id
|
|
387
|
+
name
|
|
388
|
+
address1
|
|
389
|
+
address2
|
|
390
|
+
address3
|
|
391
|
+
address4
|
|
392
|
+
address5
|
|
393
|
+
city
|
|
394
|
+
postCode
|
|
395
|
+
country
|
|
396
|
+
state
|
|
397
|
+
phone1
|
|
398
|
+
phone2
|
|
399
|
+
attentionTo
|
|
400
|
+
trackingNo
|
|
401
|
+
}
|
|
400
402
|
}
|
|
401
403
|
marketplaceProductVariation {
|
|
402
404
|
marketplaceProduct {
|
|
@@ -378,29 +378,31 @@ class ShopeeOrderInitBatchPopup extends localize(i18next)(LitElement) {
|
|
|
378
378
|
description
|
|
379
379
|
}
|
|
380
380
|
marketplaceOrderItems {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
381
|
+
marketplaceOrderShippingItems {
|
|
382
|
+
marketplaceOrderShipping {
|
|
383
|
+
id
|
|
384
|
+
name
|
|
385
|
+
address1
|
|
386
|
+
address2
|
|
387
|
+
address3
|
|
388
|
+
address4
|
|
389
|
+
address5
|
|
390
|
+
city
|
|
391
|
+
postCode
|
|
392
|
+
country
|
|
393
|
+
state
|
|
394
|
+
phone1
|
|
395
|
+
phone2
|
|
396
|
+
attentionTo
|
|
397
|
+
trackingNo
|
|
398
|
+
ownTrackingNo
|
|
399
|
+
transporter
|
|
400
|
+
ownTransporter
|
|
401
|
+
totalWeight
|
|
402
|
+
weightUnit
|
|
403
|
+
totalVolume
|
|
404
|
+
volumeUnit
|
|
405
|
+
}
|
|
404
406
|
}
|
|
405
407
|
marketplaceProductVariation {
|
|
406
408
|
name
|
|
@@ -573,11 +575,14 @@ class ShopeeOrderInitBatchPopup extends localize(i18next)(LitElement) {
|
|
|
573
575
|
let marketplaceOrderShippings = []
|
|
574
576
|
|
|
575
577
|
marketplaceOrderItems.map(item => {
|
|
576
|
-
const
|
|
578
|
+
const marketplaceOrderShippingItems = item.marketplaceOrderShippingItems
|
|
579
|
+
marketplaceOrderShippingItems.map(itm => {
|
|
580
|
+
const marketplaceOrderShipping = itm.marketplaceOrderShipping
|
|
577
581
|
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
582
|
+
if (marketplaceOrderShipping) {
|
|
583
|
+
marketplaceOrderShippings.push(marketplaceOrderShipping)
|
|
584
|
+
}
|
|
585
|
+
})
|
|
581
586
|
})
|
|
582
587
|
|
|
583
588
|
const uniqueMarketplaceOrderShippings = Array.from(new Set(marketplaceOrderShippings.map(a => a.id))).map(id => {
|
|
@@ -441,31 +441,33 @@ class OrderByStore extends localize(i18next)(PageView) {
|
|
|
441
441
|
description
|
|
442
442
|
}
|
|
443
443
|
marketplaceOrderItems {
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
444
|
+
marketplaceOrderShippingItems {
|
|
445
|
+
marketplaceOrderShipping {
|
|
446
|
+
id
|
|
447
|
+
name
|
|
448
|
+
address1
|
|
449
|
+
address2
|
|
450
|
+
address3
|
|
451
|
+
address4
|
|
452
|
+
address5
|
|
453
|
+
city
|
|
454
|
+
postCode
|
|
455
|
+
country
|
|
456
|
+
state
|
|
457
|
+
phone1
|
|
458
|
+
phone2
|
|
459
|
+
attentionTo
|
|
460
|
+
trackingNo
|
|
461
|
+
ownTrackingNo
|
|
462
|
+
totalWeight
|
|
463
|
+
weightUnit
|
|
464
|
+
totalVolume
|
|
465
|
+
volumeUnit
|
|
466
|
+
transporter
|
|
467
|
+
ownTransporter
|
|
468
|
+
orderNoRef
|
|
469
|
+
subOrderNoRef
|
|
470
|
+
}
|
|
469
471
|
}
|
|
470
472
|
marketplaceProductVariation {
|
|
471
473
|
marketplaceProduct {
|
|
@@ -523,11 +525,14 @@ class OrderByStore extends localize(i18next)(PageView) {
|
|
|
523
525
|
let marketplaceOrderShippings = []
|
|
524
526
|
|
|
525
527
|
marketplaceOrderItems.map(item => {
|
|
526
|
-
const
|
|
528
|
+
const marketplaceOrderShippingItems = item.marketplaceOrderShippingItems
|
|
529
|
+
marketplaceOrderShippingItems.map(itm => {
|
|
530
|
+
const marketplaceOrderShipping = itm.marketplaceOrderShipping
|
|
527
531
|
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
532
|
+
if (marketplaceOrderShipping) {
|
|
533
|
+
marketplaceOrderShippings.push(marketplaceOrderShipping)
|
|
534
|
+
}
|
|
535
|
+
})
|
|
531
536
|
})
|
|
532
537
|
|
|
533
538
|
const uniqueMarketplaceOrderShippings = Array.from(new Set(marketplaceOrderShippings.map(a => a.id))).map(id => {
|
|
@@ -72,8 +72,8 @@ export class SelectDateTimePopup extends localize(i18next)(LitElement) {
|
|
|
72
72
|
`,
|
|
73
73
|
variables: {
|
|
74
74
|
storeId: this.storeId,
|
|
75
|
-
fromDate: this._getInputByName('fromDate').value,
|
|
76
|
-
toDate: this._getInputByName('toDate').value
|
|
75
|
+
fromDate: new Date(this._getInputByName('fromDate').value).toISOString(),
|
|
76
|
+
toDate: new Date(this._getInputByName('toDate').value).toISOString()
|
|
77
77
|
}
|
|
78
78
|
})
|
|
79
79
|
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
domainType: 'company',
|
|
3
|
+
domainExtType: 'company',
|
|
4
|
+
subdomainOffset: 2,
|
|
5
|
+
ormconfig: {
|
|
6
|
+
name: 'default',
|
|
7
|
+
type: 'postgres',
|
|
8
|
+
database: 'postgres',
|
|
9
|
+
username: 'postgres',
|
|
10
|
+
password: 'hatio',
|
|
11
|
+
host: 'localhost',
|
|
12
|
+
port: 15432,
|
|
13
|
+
synchronize: true,
|
|
14
|
+
logging: true
|
|
15
|
+
},
|
|
16
|
+
// ormconfig: {
|
|
17
|
+
// name: 'default',
|
|
18
|
+
// type: 'postgres',
|
|
19
|
+
// database: 'postgres3',
|
|
20
|
+
// username: 'postgres',
|
|
21
|
+
// password: 'mysecretpassword',
|
|
22
|
+
// host: 'samhouse.asuscomm.com',
|
|
23
|
+
// port: 15432,
|
|
24
|
+
// synchronize: true,
|
|
25
|
+
// logging: true
|
|
26
|
+
// },
|
|
27
|
+
inspect: '9280',
|
|
28
|
+
password: {
|
|
29
|
+
lowerCase: true,
|
|
30
|
+
upperCase: false,
|
|
31
|
+
digit: false,
|
|
32
|
+
specialCharacter: false,
|
|
33
|
+
allowRepeat: true,
|
|
34
|
+
useTightPattern: false,
|
|
35
|
+
useLoosePattern: true,
|
|
36
|
+
tightCharacterLength: 4,
|
|
37
|
+
looseCharacterLength: 4,
|
|
38
|
+
history: 2
|
|
39
|
+
},
|
|
40
|
+
oauth2: {
|
|
41
|
+
platforms: [
|
|
42
|
+
{
|
|
43
|
+
name: 'Operato Hub',
|
|
44
|
+
apiURL: 'http://operato-s.com:3000/api'
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
useVirtualHostBasedDomain: false,
|
|
49
|
+
port: 5000,
|
|
50
|
+
uploads: 'uploads',
|
|
51
|
+
attachmentsPath: 'attachments',
|
|
52
|
+
SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
|
|
53
|
+
logger: {
|
|
54
|
+
file: {
|
|
55
|
+
filename: 'logs/application-%DATE%.log',
|
|
56
|
+
datePattern: 'YYYY-MM-DD-HH',
|
|
57
|
+
zippedArchive: true,
|
|
58
|
+
maxSize: '200m',
|
|
59
|
+
maxFiles: '1m',
|
|
60
|
+
level: 'info'
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
email: {
|
|
64
|
+
host: 'smtp.office365.com',
|
|
65
|
+
port: 587,
|
|
66
|
+
secure: false, // true for 465, false for other ports
|
|
67
|
+
auth: {
|
|
68
|
+
user: 'no-reply@hatiolab.com', // generated ethereal user
|
|
69
|
+
pass: 'h@ti0LAB1008' // generated ethereal password
|
|
70
|
+
},
|
|
71
|
+
secureConnection: false,
|
|
72
|
+
tls: {
|
|
73
|
+
ciphers: 'SSLv3'
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
sender: 'no-reply@hatiolab.com',
|
|
77
|
+
notification: {
|
|
78
|
+
fcm: {
|
|
79
|
+
serviceAccount: {
|
|
80
|
+
project_id: 'operato',
|
|
81
|
+
private_key:
|
|
82
|
+
'-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDYNOfyNjPMSeG9\nzU1qs0cpVK5cVfadcUaw5g+hkQZMOMlAA7uqW2eX4vkayj7MzbYUayH+sei8044Q\nJIyl6f26dNX1VT3UgTmSmCS0v48EBEZHCgusrUGFjduLRN6OS6uvrXW1xKA18k9q\nai1C2EHCXF2AE4PTvf239RC1UIOnVePcMtT7rMTdHRO4s8OKVuSDbzIt8k1cV3Zt\nES0YsJlkELqBisYpV//2/ZSILTt39J9JzrVef03X9kkoo9p+YnNyy6tWsfQPfgJO\nybiRGBNxiyJ/E2pxRo/WqU0go9OzYJlGaSUrUx09heNiRD1b0MAOmyPDJz/6AaTk\nkU/A+kLzAgMBAAECggEADQ5s2gtR53VSujk1V/Xe8e0Di99DwaWUj5w6YhcK7/wX\nPdQRN4Fw6RLeLjL7xeG/rCNSwzm6hKSrQJL5zLnWW7XbMdyQRk6jdmnVAEv3zACi\nFH9+eFK3e+Q214XfgWz/v4p/FZdRLCYni5VBNHcwyWxLLS/V1ynzB3KM1sDiTRmI\npcT7+uTtwrKgJq64sXtFE2pYrFxDdCiyqzkhv/2ed4YIowAjpKBbbcCDKeVxVkoz\nC1P4PAzs9EeUuKSWYrWaUjN17lqtRlYeT1ylR1PIJuWqd4cKfgoEgz+lHwRPDCEX\nAYbk3nofiJIPBhSfCHrXS755wK48mY8vMwFdfCPJeQKBgQDsz4tjYTHdat5A25n5\nekwMxZwFQ5OvMV4eulwZUDMypTAYSz1iB6sDlgwKDm5omZIfuneqCEIvrqxV/kx3\n5wV/DANHO3hYxdp/NV7rM23xmqlaKZhHQbDono1Fm/LP6DEmJiD7N2eFKsXYcPpR\nSAIdCv0X3zkDQ4zRi51yJlCXzQKBgQDpufJBxCoXngiQJ2j14lWVAeOOdQ6zh5Ip\nBcDwF0X67cNSN3Wl40bS4yLFdolhEAyj5m0WPuYYXpjzhHhZ0W3V3ItdBkrmwIvy\nWOWu26qN0ZbwxVS2qVpHuj6iHWJKHuDZZUkFtJg3BeeBSOUHSA8TvjnA0xd83xeb\n8ZJasWoFvwKBgQDFs/gQ/gIdcq0exLfluh5nw0qgcmyHpNWJHdjqITS9IX/nqFkU\n0IYLtmdStf2jQiLmbkydHcvz9wZVvLqml67VBHhwLcwpgPULoskd34/4V0Dvzy4c\nv1Esw8H5zVqIDLeLu+VpFjZMzQrjyl6RIWbyTExEc84rVWfpQYAu3qIGOQKBgAFr\nXatEk7TdAtRNSPflTfu/rTAaSeKROjQBkvBiU8x4US1YpOBDBxUUyAtG8wKh5FHC\nfnsaGq+fM3KXJVv2R6J62mXQOfg4xyDLpWlwcBK4aSBBMoiBcsjouqSlZQlqMpdf\nZBgixqHe6U8BsFJg/6ZxC0y+e3AIss4Bo4/lb+1lAoGAFOexvaBh21K6W3inmRW4\nLlkVYJaBJ20OwokXg5aXjBiHxqmk7VLAuFbkpb5LOKH2xPILRQ0OEkn51yVymS3T\n9lLpHOFTQXt5tF2/F7NW7kaQJNlLr/h5jPi3O9XHeFmuaN2z150ZB6zzgjeGKzr8\ni+1fgTsRfDtNw8xkSH9qL1Y=\n-----END PRIVATE KEY-----\n',
|
|
83
|
+
client_email: 'firebase-adminsdk-xmm2e@operato.iam.gserviceaccount.com'
|
|
84
|
+
},
|
|
85
|
+
appConfig: {
|
|
86
|
+
apiKey: 'AIzaSyDdTM2BTLHSt2LNS0G5QB8G0i4KBXFiG7U',
|
|
87
|
+
projectId: 'operato',
|
|
88
|
+
messagingSenderId: 79537064975,
|
|
89
|
+
appId: '1:79537064975:web:32f53119e9c8c6ee2a277a'
|
|
90
|
+
},
|
|
91
|
+
serverKey:
|
|
92
|
+
'AAAAEoTHTA8:APA91bGwt-4HT82Dfwf_VwbQaKT0_qHd0Y3tuW41udjWz5Lz0Ko0mEMD6WbHHSILvQpa6yuoGGKCMsrU7VW2qWRrUm3CYpyG9oSwshNm1tIhljAnOuUfwHCoawbVLwf9qlWpHt4dwCoc'
|
|
93
|
+
},
|
|
94
|
+
vapidKey: {
|
|
95
|
+
subject: 'mailto:heartyoh@hatiolab.com',
|
|
96
|
+
publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
|
|
97
|
+
privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
marketplaceIntegrationShopee: {
|
|
101
|
+
platform: 'shopee',
|
|
102
|
+
isUAT: false,
|
|
103
|
+
application: 'Operato MMS',
|
|
104
|
+
partnerId: 846025,
|
|
105
|
+
partnerKey: 'd34cfd85a603f196a0d74ebe08043280c1a27788bb36bdffd61e7e0bb1c90b64'
|
|
106
|
+
},
|
|
107
|
+
// marketplaceIntegrationShopee: {
|
|
108
|
+
// platform: 'shopee',
|
|
109
|
+
// isUAT: true,
|
|
110
|
+
// application: 'Staging MMS',
|
|
111
|
+
// partnerId: 845525,
|
|
112
|
+
// partnerKey: '4a3f4214fd0f0bda970b342a99b6f8705fc7bacad2743cffa7ed67b79840665e'
|
|
113
|
+
// },
|
|
114
|
+
marketplaceIntegrationLazada: {
|
|
115
|
+
platform: 'lazada',
|
|
116
|
+
application: 'operato-mms',
|
|
117
|
+
appKey: '120961',
|
|
118
|
+
appSecret: 'HB3RTNEXHlVSlBr9SmWF8AjbSUT7a825',
|
|
119
|
+
callback: 'https://maybank.operato-m.com/lazada-callback'
|
|
120
|
+
},
|
|
121
|
+
fulfillmentIntegrationOperato: {
|
|
122
|
+
host: 'operato-s.com:3000',
|
|
123
|
+
protocol: 'http',
|
|
124
|
+
platform: 'operato',
|
|
125
|
+
application: 'Operato MMS',
|
|
126
|
+
appKey: 'a9bf751e622bf146662b240d58971051',
|
|
127
|
+
appSecret: '1c385935dc131c4b902b9bbf6a4798af',
|
|
128
|
+
callback: 'http://operato-s.com:5000/callback-operato'
|
|
129
|
+
},
|
|
130
|
+
marketplaceIntegrationShopify: {
|
|
131
|
+
platform: 'shopify',
|
|
132
|
+
application: 'Operato',
|
|
133
|
+
apiKey: '37da47200ab87c8aaf0634869c80bd5f',
|
|
134
|
+
apiSecret: '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'
|
|
135
|
+
},
|
|
136
|
+
marketplaceIntegrationShopifyPrivate: {
|
|
137
|
+
platform: 'shopify',
|
|
138
|
+
application: 'Beacon Chicken 1',
|
|
139
|
+
apiKey: '37da47200ab87c8aaf0634869c80bd5f',
|
|
140
|
+
apiSecret: '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'
|
|
141
|
+
},
|
|
142
|
+
marketplaceIntegrationWoocommerce: {
|
|
143
|
+
key_id: '',
|
|
144
|
+
user_id: '',
|
|
145
|
+
consumer_key: '',
|
|
146
|
+
consumer_secret: '',
|
|
147
|
+
key_permission: 'read' | 'write' | 'read_write'
|
|
148
|
+
},
|
|
149
|
+
marketplaceIntegrationMagento: {
|
|
150
|
+
oauth_signature_method: 'HMAC-SHA1',
|
|
151
|
+
oauth_verifier: '',
|
|
152
|
+
oauth_consumer_key: '',
|
|
153
|
+
oauth_consumer_secret: ''
|
|
154
|
+
},
|
|
155
|
+
sellercraftChannelIntegrationConfig: {
|
|
156
|
+
apiKey: 'eqDVmIp0kxakM4sNnzqTkySBM73UGMS1nOPDN5Z1',
|
|
157
|
+
tokenCraftUrl: 'https://staging-tokencraft.sellercraft.co/v1/get-shop',
|
|
158
|
+
getShopsTokenCraftUrl: 'https://staging-tokencraft.sellercraft.co/v1/get-shops'
|
|
159
|
+
}
|
|
160
|
+
}
|