@things-factory/operato-hub 3.6.10 → 3.6.19
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/Dockerfile +1 -0
- package/client/bootstrap.js +34 -21
- package/config.development.js +22 -105
- package/dist-server/graphql/resolvers/synchronization/fetch-sync-invoices.js +4 -4
- package/dist-server/graphql/resolvers/synchronization/fetch-sync-invoices.js.map +1 -1
- package/package.json +68 -68
- package/server/graphql/resolvers/synchronization/fetch-sync-invoices.ts +4 -4
- package/config.production.js +0 -83
package/Dockerfile
CHANGED
|
@@ -23,6 +23,7 @@ RUN apt-get install -y gconf-service libasound2 libatk1.0-0 libcairo2 libcups2 l
|
|
|
23
23
|
RUN apt update
|
|
24
24
|
RUN apt-get install -y ghostscript
|
|
25
25
|
RUN apt-get install -y curl
|
|
26
|
+
RUN apt-get install -y git
|
|
26
27
|
|
|
27
28
|
# install chrome
|
|
28
29
|
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
package/client/bootstrap.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
+
import '@things-factory/auth-ui' /* for domain-switch */
|
|
2
|
+
import '@things-factory/notification'
|
|
3
|
+
import './viewparts/user-circle'
|
|
4
|
+
import './menu'
|
|
5
|
+
|
|
1
6
|
import { html } from 'lit-element'
|
|
2
|
-
|
|
7
|
+
|
|
8
|
+
import { APPEND_APP_TOOL } from '@things-factory/apptool-base'
|
|
3
9
|
import { auth } from '@things-factory/auth-base'
|
|
4
|
-
import '@things-factory/
|
|
5
|
-
import {
|
|
6
|
-
import { appendViewpart, toggleOverlay, VIEWPART_POSITION, TOOL_POSITION } from '@things-factory/layout-base'
|
|
10
|
+
import { appendViewpart, toggleOverlay, TOOL_POSITION, VIEWPART_POSITION } from '@things-factory/layout-base'
|
|
11
|
+
import { setupMenuPart } from '@things-factory/lite-menu'
|
|
7
12
|
import { ADD_MORENDA } from '@things-factory/more-base'
|
|
8
|
-
import { APPEND_APP_TOOL } from '@things-factory/apptool-base'
|
|
9
13
|
import { ADD_SETTING } from '@things-factory/setting-base'
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
import '@things-factory/notification'
|
|
14
|
+
import { navigate, store } from '@things-factory/shell'
|
|
15
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
13
16
|
|
|
14
|
-
import hub from './reducers/hub'
|
|
15
17
|
import { fetchHubStatus } from './actions/hub'
|
|
16
|
-
|
|
17
|
-
import './viewparts/user-circle'
|
|
18
|
-
import './menu'
|
|
18
|
+
import hub from './reducers/hub'
|
|
19
19
|
|
|
20
20
|
console.log(
|
|
21
21
|
`%c
|
|
@@ -93,6 +93,28 @@ export default function bootstrap() {
|
|
|
93
93
|
position: VIEWPART_POSITION.ASIDEBAR
|
|
94
94
|
})
|
|
95
95
|
|
|
96
|
+
store.dispatch({
|
|
97
|
+
type: ADD_MORENDA,
|
|
98
|
+
morenda: {
|
|
99
|
+
icon: html` <mwc-icon>device_hub</mwc-icon> `,
|
|
100
|
+
name: html` <i18n-msg msgid="text.connection"></i18n-msg> `,
|
|
101
|
+
action: () => {
|
|
102
|
+
navigate('connection')
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
})
|
|
106
|
+
|
|
107
|
+
store.dispatch({
|
|
108
|
+
type: ADD_MORENDA,
|
|
109
|
+
morenda: {
|
|
110
|
+
icon: html` <mwc-icon>format_list_numbered</mwc-icon> `,
|
|
111
|
+
name: html` <i18n-msg msgid="text.scenario"></i18n-msg> `,
|
|
112
|
+
action: () => {
|
|
113
|
+
navigate('scenario')
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
})
|
|
117
|
+
|
|
96
118
|
store.dispatch({
|
|
97
119
|
type: ADD_SETTING,
|
|
98
120
|
setting: {
|
|
@@ -100,13 +122,4 @@ export default function bootstrap() {
|
|
|
100
122
|
template: html` <notification-setting-let></notification-setting-let> `
|
|
101
123
|
}
|
|
102
124
|
})
|
|
103
|
-
|
|
104
|
-
// store.dispatch({
|
|
105
|
-
// type: APPEND_APP_TOOL,
|
|
106
|
-
// tool: {
|
|
107
|
-
// name: 'user-circle',
|
|
108
|
-
// template: html` <user-circle> </user-circle> `,
|
|
109
|
-
// position: TOOL_POSITION.REAR
|
|
110
|
-
// }
|
|
111
|
-
// })
|
|
112
125
|
}
|
package/config.development.js
CHANGED
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
domainExtType: 'company',
|
|
2
|
+
port: 4000,
|
|
4
3
|
useVirtualHostBasedDomain: false,
|
|
5
4
|
subdomainOffset: 2,
|
|
6
|
-
|
|
5
|
+
email: {
|
|
6
|
+
host: 'smtp.office365.com',
|
|
7
|
+
port: 587,
|
|
8
|
+
secure: false, // true for 465, false for other ports
|
|
9
|
+
auth: {
|
|
10
|
+
user: 'no-reply@hatiolab.com', // generated ethereal user
|
|
11
|
+
pass: 'h@ti0LAB1008' // generated ethereal password
|
|
12
|
+
},
|
|
13
|
+
secureConnection: false,
|
|
14
|
+
tls: {
|
|
15
|
+
ciphers: 'SSLv3'
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
accountingIntegrationXero: {
|
|
19
|
+
platform: 'xero',
|
|
20
|
+
application: 'Operato WMS',
|
|
21
|
+
apiKey: '6B12D1AAC05347DC92159C2AEC812859',
|
|
22
|
+
apiSecret: 'SAcir6NZwekYGGbPCTGGLd6Ot7BzFUsV_HMXJ7VXVWg403Xi',
|
|
23
|
+
callback: 'http://localhost:4000/callback-xero',
|
|
24
|
+
hostname: 'http://{subdomain}.local.localhost:4000'
|
|
25
|
+
},
|
|
7
26
|
notification: {
|
|
8
27
|
fcm: {
|
|
9
28
|
serviceAccount: {
|
|
@@ -26,107 +45,5 @@ module.exports = {
|
|
|
26
45
|
publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
|
|
27
46
|
privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
|
|
28
47
|
}
|
|
29
|
-
},
|
|
30
|
-
email: {
|
|
31
|
-
host: 'smtp.office365.com',
|
|
32
|
-
port: 587,
|
|
33
|
-
secure: false,
|
|
34
|
-
auth: {
|
|
35
|
-
user: 'no-reply@hatiolab.com', // generated ethereal user
|
|
36
|
-
pass: 'h@ti0LAB1008' // generated ethereal password
|
|
37
|
-
},
|
|
38
|
-
secureConnection: false,
|
|
39
|
-
tls: {
|
|
40
|
-
ciphers: 'SSLv3'
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
logger: {
|
|
44
|
-
file: {
|
|
45
|
-
filename: 'logs/application-%DATE%.log',
|
|
46
|
-
datePattern: 'YYYY-MM-DD-HH',
|
|
47
|
-
zippedArchive: false,
|
|
48
|
-
maxSize: '20m',
|
|
49
|
-
maxFiles: '2d',
|
|
50
|
-
level: 'info'
|
|
51
|
-
},
|
|
52
|
-
console: {
|
|
53
|
-
level: 'silly'
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
ormconfig: {
|
|
57
|
-
name: 'default',
|
|
58
|
-
type: 'postgres',
|
|
59
|
-
database: 'postgres',
|
|
60
|
-
username: 'postgres',
|
|
61
|
-
password: 'abcd1234',
|
|
62
|
-
host: 'localhost',
|
|
63
|
-
port: 15432,
|
|
64
|
-
synchronize: true,
|
|
65
|
-
logging: true
|
|
66
|
-
},
|
|
67
|
-
// ormconfig: {
|
|
68
|
-
// name: 'default',
|
|
69
|
-
// type: 'postgres',
|
|
70
|
-
// database: 'postgres',
|
|
71
|
-
// username: 'postgres',
|
|
72
|
-
// password: 'abcd1234',
|
|
73
|
-
// host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
|
|
74
|
-
// port: 55432,
|
|
75
|
-
// synchronize: true,
|
|
76
|
-
// logging: true
|
|
77
|
-
// },
|
|
78
|
-
uploads: 'uploads',
|
|
79
|
-
// storage: {
|
|
80
|
-
// type: 's3',
|
|
81
|
-
// accessKeyId: 'AKIAUQEOPWEJCDH6AR5H',
|
|
82
|
-
// secretAccessKey: 'AuDAgmODf9EJNB24OveRhTSLV/OJy6IFFoRxe8k2',
|
|
83
|
-
// bucketName: 'opa-one'
|
|
84
|
-
// },
|
|
85
|
-
attachmentsPath: 'attachments',
|
|
86
|
-
sellercraftIntegrationConfig: {
|
|
87
|
-
apiKey: 'Et0KqtLvA6e92bDvOywy9eCCud4hpAal8akpqI90'
|
|
88
|
-
},
|
|
89
|
-
accountingIntegrationXero: {
|
|
90
|
-
platform: 'xero',
|
|
91
|
-
application: 'Operato',
|
|
92
|
-
apiKey: '8F15D8AACFBB40C0B06C80C10A6EF804',
|
|
93
|
-
apiSecret: 'T9ETHxCuRr2x7dMxwI8i3kPK4X9HJ9qLuSD2Qr2YgRzJgNlw',
|
|
94
|
-
callback: 'http://localhost:3000/callback-xero',
|
|
95
|
-
hostname: 'http://localhost:3000'
|
|
96
|
-
},
|
|
97
|
-
marketplaceIntegrationShopee: {
|
|
98
|
-
platform: 'shopee',
|
|
99
|
-
isUAT: false,
|
|
100
|
-
application: 'Operato MMS',
|
|
101
|
-
partnerId: 846025,
|
|
102
|
-
partnerKey: 'd34cfd85a603f196a0d74ebe08043280c1a27788bb36bdffd61e7e0bb1c90b64'
|
|
103
|
-
},
|
|
104
|
-
marketplaceIntegrationLazada: {
|
|
105
|
-
platform: 'lazada',
|
|
106
|
-
application: 'operato-mms',
|
|
107
|
-
appKey: '120961',
|
|
108
|
-
appSecret: 'HB3RTNEXHlVSlBr9SmWF8AjbSUT7a825',
|
|
109
|
-
callback: 'https://myoperato.com/lazada-callback'
|
|
110
|
-
},
|
|
111
|
-
marketplaceIntegrationShopify: {
|
|
112
|
-
platform: 'shopify',
|
|
113
|
-
application: 'Operato MMS',
|
|
114
|
-
apiKey: '21e55f83b2b705172364c93a18cf560c',
|
|
115
|
-
apiSecret: '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'
|
|
116
|
-
},
|
|
117
|
-
marketplaceIntegrationShopifyPrivate: {
|
|
118
|
-
platform: 'shopify',
|
|
119
|
-
application: 'Operato MMS Test',
|
|
120
|
-
apiKey: '5be8c95bc9a03d41e3c0da3d8c033747',
|
|
121
|
-
apiSecret: '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'
|
|
122
|
-
},
|
|
123
|
-
fulfillmentIntegrationOperato: {
|
|
124
|
-
protocol: 'http',
|
|
125
|
-
host: 'localhost:3000',
|
|
126
|
-
platform: 'operato',
|
|
127
|
-
application: 'Operato MMS',
|
|
128
|
-
appKey: 'a9bf751e622bf146662b240d58971051',
|
|
129
|
-
appSecret: '1c385935dc131c4b902b9bbf6a4798af',
|
|
130
|
-
callback: 'http://localhost:3000/callback-operato'
|
|
131
48
|
}
|
|
132
49
|
}
|
|
@@ -20,15 +20,15 @@ async function getAccountingInvoices(accountId, warehouseId, customerBizplaceId)
|
|
|
20
20
|
const fulfilmentCenter = await integration_fulfillment_1.FulfillmentAPI.getFulfillmentCenter(warehouseId);
|
|
21
21
|
const invoices = await integration_accounting_1.AccountingAPI.getInvoices(accounting);
|
|
22
22
|
for (var i = 0; i < invoices.length; i++) {
|
|
23
|
-
const
|
|
23
|
+
const releaseOrder = invoices[i];
|
|
24
24
|
const existingReleaseOrder = await integration_fulfillment_1.FulfillmentAPI.getOutboundOrder(fulfilmentCenter, {
|
|
25
25
|
customerBizplaceId,
|
|
26
|
-
refNo:
|
|
26
|
+
refNo: releaseOrder.refNo
|
|
27
27
|
});
|
|
28
|
-
if (!
|
|
28
|
+
if (!existingReleaseOrder) {
|
|
29
29
|
await integration_fulfillment_1.FulfillmentAPI.createOutboundOrder(fulfilmentCenter, {
|
|
30
30
|
customerBizplaceId,
|
|
31
|
-
|
|
31
|
+
releaseOrder
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-sync-invoices.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/synchronization/fetch-sync-invoices.ts"],"names":[],"mappings":";;;AAAA,mFAAsE;AACtE,qFAA2F;AAE9E,QAAA,yBAAyB,GAAG;IACvC,KAAK,CAAC,iBAAiB,CACrB,CAAO,EACP,EACE,SAAS,EACT,WAAW,EACX,kBAAkB,EAKnB,EACD,OAAY;QAEZ,IAAI;YACF,MAAM,qBAAqB,CAAC,SAAS,EAAE,WAAW,EAAE,kBAAkB,CAAC,CAAA;YACvE,OAAM;SACP;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,CAAC,CAAA;SACR;IACH,CAAC;CACF,CAAA;AAEM,KAAK,UAAU,qBAAqB,CAAC,SAAiB,EAAE,WAAmB,EAAE,kBAA0B;IAC5G,IAAI;QACF,MAAM,UAAU,GAAkB,MAAM,sCAAa,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;QAE9E,MAAM,gBAAgB,GAAsB,MAAM,wCAAc,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAA;QAClG,MAAM,QAAQ,GAAU,MAAM,sCAAa,CAAC,WAAW,CAAC,UAAU,CAAC,CAAA;QAEnE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACxC,MAAM,
|
|
1
|
+
{"version":3,"file":"fetch-sync-invoices.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/synchronization/fetch-sync-invoices.ts"],"names":[],"mappings":";;;AAAA,mFAAsE;AACtE,qFAA2F;AAE9E,QAAA,yBAAyB,GAAG;IACvC,KAAK,CAAC,iBAAiB,CACrB,CAAO,EACP,EACE,SAAS,EACT,WAAW,EACX,kBAAkB,EAKnB,EACD,OAAY;QAEZ,IAAI;YACF,MAAM,qBAAqB,CAAC,SAAS,EAAE,WAAW,EAAE,kBAAkB,CAAC,CAAA;YACvE,OAAM;SACP;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,CAAC,CAAA;SACR;IACH,CAAC;CACF,CAAA;AAEM,KAAK,UAAU,qBAAqB,CAAC,SAAiB,EAAE,WAAmB,EAAE,kBAA0B;IAC5G,IAAI;QACF,MAAM,UAAU,GAAkB,MAAM,sCAAa,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;QAE9E,MAAM,gBAAgB,GAAsB,MAAM,wCAAc,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAA;QAClG,MAAM,QAAQ,GAAU,MAAM,sCAAa,CAAC,WAAW,CAAC,UAAU,CAAC,CAAA;QAEnE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACxC,MAAM,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAA;YAEhC,MAAM,oBAAoB,GAAG,MAAM,wCAAc,CAAC,gBAAgB,CAAC,gBAAgB,EAAE;gBACnF,kBAAkB;gBAClB,KAAK,EAAE,YAAY,CAAC,KAAK;aAC1B,CAAC,CAAA;YAEF,IAAI,CAAC,oBAAoB,EAAE;gBACzB,MAAM,wCAAc,CAAC,mBAAmB,CAAC,gBAAgB,EAAE;oBACzD,kBAAkB;oBAClB,YAAY;iBACb,CAAC,CAAA;aACH;SACF;KACF;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;KAC9B;AACH,CAAC;AAzBD,sDAyBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-hub",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.19",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -41,80 +41,80 @@
|
|
|
41
41
|
"@material/mwc-formfield": "^0.22.1",
|
|
42
42
|
"@material/mwc-linear-progress": "^0.22.1",
|
|
43
43
|
"@material/mwc-radio": "^0.22.1",
|
|
44
|
-
"@things-factory/api": "^3.6.
|
|
45
|
-
"@things-factory/apptool-ui": "^3.6.
|
|
46
|
-
"@things-factory/attachment-base": "^3.6.
|
|
47
|
-
"@things-factory/auth-base": "^3.6.
|
|
48
|
-
"@things-factory/auth-ui": "^3.6.
|
|
49
|
-
"@things-factory/biz-base": "^3.6.
|
|
50
|
-
"@things-factory/biz-ui": "^3.6.
|
|
51
|
-
"@things-factory/board-service": "^3.6.
|
|
52
|
-
"@things-factory/board-ui": "^3.6.
|
|
53
|
-
"@things-factory/code-ui": "^3.6.
|
|
54
|
-
"@things-factory/component-ui": "^3.6.
|
|
55
|
-
"@things-factory/context-ui": "^3.6.
|
|
56
|
-
"@things-factory/document-template-ui": "^3.6.
|
|
57
|
-
"@things-factory/export-ui": "^3.6.
|
|
58
|
-
"@things-factory/export-ui-csv": "^3.6.
|
|
59
|
-
"@things-factory/export-ui-excel": "^3.6.
|
|
60
|
-
"@things-factory/grist-ui": "^3.6.
|
|
61
|
-
"@things-factory/i18n-base": "^3.6.
|
|
62
|
-
"@things-factory/i18n-ui": "^3.6.
|
|
63
|
-
"@things-factory/import-ui": "^3.6.
|
|
64
|
-
"@things-factory/import-ui-excel": "^3.6.
|
|
65
|
-
"@things-factory/integration-accounting": "^3.6.
|
|
66
|
-
"@things-factory/integration-fulfillment": "^3.6.
|
|
67
|
-
"@things-factory/integration-lmd": "^3.6.
|
|
68
|
-
"@things-factory/integration-marketplace": "^3.6.
|
|
69
|
-
"@things-factory/integration-pos": "^3.6.
|
|
70
|
-
"@things-factory/integration-sellercraft": "^3.6.
|
|
71
|
-
"@things-factory/lite-menu": "^3.6.
|
|
72
|
-
"@things-factory/more-ui": "^3.6.
|
|
73
|
-
"@things-factory/notification": "^3.6.
|
|
74
|
-
"@things-factory/pdf": "^3.6.
|
|
75
|
-
"@things-factory/product-ui": "^3.6.
|
|
76
|
-
"@things-factory/resource-ui": "^3.6.
|
|
77
|
-
"@things-factory/sales-base": "^3.6.
|
|
78
|
-
"@things-factory/scene-chartjs": "^3.6.
|
|
79
|
-
"@things-factory/scene-clock": "^3.6.
|
|
80
|
-
"@things-factory/scene-clone": "^3.6.
|
|
81
|
-
"@things-factory/scene-compass": "^3.6.
|
|
82
|
-
"@things-factory/scene-data-transform": "^3.6.
|
|
83
|
-
"@things-factory/scene-excel": "^3.6.
|
|
84
|
-
"@things-factory/scene-firebase": "^3.6.
|
|
85
|
-
"@things-factory/scene-form": "^3.6.
|
|
86
|
-
"@things-factory/scene-gauge": "^3.6.
|
|
87
|
-
"@things-factory/scene-google-map": "^3.6.
|
|
88
|
-
"@things-factory/scene-graphql": "^3.6.
|
|
89
|
-
"@things-factory/scene-half-roundrect": "^3.6.
|
|
90
|
-
"@things-factory/scene-indoor-map": "^3.6.
|
|
91
|
-
"@things-factory/scene-label": "^3.6.
|
|
92
|
-
"@things-factory/scene-legend": "^3.6.
|
|
93
|
-
"@things-factory/scene-marker": "^3.6.
|
|
94
|
-
"@things-factory/scene-mqtt": "^3.6.
|
|
95
|
-
"@things-factory/scene-news-ticker": "^3.6.
|
|
96
|
-
"@things-factory/scene-progressbar": "^3.6.
|
|
97
|
-
"@things-factory/scene-random": "^3.6.
|
|
98
|
-
"@things-factory/scene-restful": "^3.6.
|
|
99
|
-
"@things-factory/scene-switch": "^3.6.
|
|
100
|
-
"@things-factory/scene-tab": "^3.6.
|
|
101
|
-
"@things-factory/scene-table": "^3.6.
|
|
102
|
-
"@things-factory/scene-visualizer": "^3.6.
|
|
103
|
-
"@things-factory/scene-wheel-sorter": "^3.6.
|
|
104
|
-
"@things-factory/setting-ui": "^3.6.
|
|
105
|
-
"@things-factory/shell": "^3.6.
|
|
106
|
-
"@things-factory/system-ui": "^3.6.
|
|
107
|
-
"@things-factory/warehouse-base": "^3.6.
|
|
108
|
-
"@things-factory/worksheet-base": "^3.6.
|
|
44
|
+
"@things-factory/api": "^3.6.19",
|
|
45
|
+
"@things-factory/apptool-ui": "^3.6.19",
|
|
46
|
+
"@things-factory/attachment-base": "^3.6.19",
|
|
47
|
+
"@things-factory/auth-base": "^3.6.19",
|
|
48
|
+
"@things-factory/auth-ui": "^3.6.19",
|
|
49
|
+
"@things-factory/biz-base": "^3.6.19",
|
|
50
|
+
"@things-factory/biz-ui": "^3.6.19",
|
|
51
|
+
"@things-factory/board-service": "^3.6.19",
|
|
52
|
+
"@things-factory/board-ui": "^3.6.19",
|
|
53
|
+
"@things-factory/code-ui": "^3.6.19",
|
|
54
|
+
"@things-factory/component-ui": "^3.6.19",
|
|
55
|
+
"@things-factory/context-ui": "^3.6.19",
|
|
56
|
+
"@things-factory/document-template-ui": "^3.6.19",
|
|
57
|
+
"@things-factory/export-ui": "^3.6.19",
|
|
58
|
+
"@things-factory/export-ui-csv": "^3.6.19",
|
|
59
|
+
"@things-factory/export-ui-excel": "^3.6.19",
|
|
60
|
+
"@things-factory/grist-ui": "^3.6.19",
|
|
61
|
+
"@things-factory/i18n-base": "^3.6.19",
|
|
62
|
+
"@things-factory/i18n-ui": "^3.6.19",
|
|
63
|
+
"@things-factory/import-ui": "^3.6.19",
|
|
64
|
+
"@things-factory/import-ui-excel": "^3.6.19",
|
|
65
|
+
"@things-factory/integration-accounting": "^3.6.19",
|
|
66
|
+
"@things-factory/integration-fulfillment": "^3.6.19",
|
|
67
|
+
"@things-factory/integration-lmd": "^3.6.19",
|
|
68
|
+
"@things-factory/integration-marketplace": "^3.6.19",
|
|
69
|
+
"@things-factory/integration-pos": "^3.6.19",
|
|
70
|
+
"@things-factory/integration-sellercraft": "^3.6.19",
|
|
71
|
+
"@things-factory/lite-menu": "^3.6.19",
|
|
72
|
+
"@things-factory/more-ui": "^3.6.19",
|
|
73
|
+
"@things-factory/notification": "^3.6.19",
|
|
74
|
+
"@things-factory/pdf": "^3.6.19",
|
|
75
|
+
"@things-factory/product-ui": "^3.6.19",
|
|
76
|
+
"@things-factory/resource-ui": "^3.6.19",
|
|
77
|
+
"@things-factory/sales-base": "^3.6.19",
|
|
78
|
+
"@things-factory/scene-chartjs": "^3.6.19",
|
|
79
|
+
"@things-factory/scene-clock": "^3.6.19",
|
|
80
|
+
"@things-factory/scene-clone": "^3.6.19",
|
|
81
|
+
"@things-factory/scene-compass": "^3.6.19",
|
|
82
|
+
"@things-factory/scene-data-transform": "^3.6.19",
|
|
83
|
+
"@things-factory/scene-excel": "^3.6.19",
|
|
84
|
+
"@things-factory/scene-firebase": "^3.6.19",
|
|
85
|
+
"@things-factory/scene-form": "^3.6.19",
|
|
86
|
+
"@things-factory/scene-gauge": "^3.6.19",
|
|
87
|
+
"@things-factory/scene-google-map": "^3.6.19",
|
|
88
|
+
"@things-factory/scene-graphql": "^3.6.19",
|
|
89
|
+
"@things-factory/scene-half-roundrect": "^3.6.19",
|
|
90
|
+
"@things-factory/scene-indoor-map": "^3.6.19",
|
|
91
|
+
"@things-factory/scene-label": "^3.6.19",
|
|
92
|
+
"@things-factory/scene-legend": "^3.6.19",
|
|
93
|
+
"@things-factory/scene-marker": "^3.6.19",
|
|
94
|
+
"@things-factory/scene-mqtt": "^3.6.19",
|
|
95
|
+
"@things-factory/scene-news-ticker": "^3.6.19",
|
|
96
|
+
"@things-factory/scene-progressbar": "^3.6.19",
|
|
97
|
+
"@things-factory/scene-random": "^3.6.19",
|
|
98
|
+
"@things-factory/scene-restful": "^3.6.19",
|
|
99
|
+
"@things-factory/scene-switch": "^3.6.19",
|
|
100
|
+
"@things-factory/scene-tab": "^3.6.19",
|
|
101
|
+
"@things-factory/scene-table": "^3.6.19",
|
|
102
|
+
"@things-factory/scene-visualizer": "^3.6.19",
|
|
103
|
+
"@things-factory/scene-wheel-sorter": "^3.6.19",
|
|
104
|
+
"@things-factory/setting-ui": "^3.6.19",
|
|
105
|
+
"@things-factory/shell": "^3.6.19",
|
|
106
|
+
"@things-factory/system-ui": "^3.6.19",
|
|
107
|
+
"@things-factory/warehouse-base": "^3.6.19",
|
|
108
|
+
"@things-factory/worksheet-base": "^3.6.19",
|
|
109
109
|
"koa2-swagger-ui": "^5.0.2",
|
|
110
110
|
"swagger-jsdoc": "^5.0.0",
|
|
111
111
|
"yamljs": "^0.3.0"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
|
-
"@things-factory/builder": "^3.6.
|
|
114
|
+
"@things-factory/builder": "^3.6.19"
|
|
115
115
|
},
|
|
116
116
|
"resolutions": {
|
|
117
117
|
"core-js": "^3.16.0"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "e8a5ade8e7c470c6e51dca428409c405b7cccf3a"
|
|
120
120
|
}
|
|
@@ -32,17 +32,17 @@ export async function getAccountingInvoices(accountId: string, warehouseId: stri
|
|
|
32
32
|
const invoices: any[] = await AccountingAPI.getInvoices(accounting)
|
|
33
33
|
|
|
34
34
|
for (var i = 0; i < invoices.length; i++) {
|
|
35
|
-
const
|
|
35
|
+
const releaseOrder = invoices[i]
|
|
36
36
|
|
|
37
37
|
const existingReleaseOrder = await FulfillmentAPI.getOutboundOrder(fulfilmentCenter, {
|
|
38
38
|
customerBizplaceId,
|
|
39
|
-
refNo:
|
|
39
|
+
refNo: releaseOrder.refNo
|
|
40
40
|
})
|
|
41
41
|
|
|
42
|
-
if (!existingReleaseOrder
|
|
42
|
+
if (!existingReleaseOrder) {
|
|
43
43
|
await FulfillmentAPI.createOutboundOrder(fulfilmentCenter, {
|
|
44
44
|
customerBizplaceId,
|
|
45
|
-
|
|
45
|
+
releaseOrder
|
|
46
46
|
})
|
|
47
47
|
}
|
|
48
48
|
}
|
package/config.production.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
domainType: 'company',
|
|
3
|
-
domainExtType: 'company',
|
|
4
|
-
useVirtualHostBasedDomain: false,
|
|
5
|
-
subdomainOffset: 2,
|
|
6
|
-
SECRET: '0xD58F835B61C217A76CA5FA4a70a1D0d4D79dBD20',
|
|
7
|
-
notification: {
|
|
8
|
-
fcm: {
|
|
9
|
-
serviceAccount: {
|
|
10
|
-
project_id: 'operato',
|
|
11
|
-
private_key:
|
|
12
|
-
'-----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',
|
|
13
|
-
client_email: 'firebase-adminsdk-xmm2e@operato.iam.gserviceaccount.com'
|
|
14
|
-
},
|
|
15
|
-
appConfig: {
|
|
16
|
-
apiKey: 'AIzaSyDdTM2BTLHSt2LNS0G5QB8G0i4KBXFiG7U',
|
|
17
|
-
projectId: 'operato',
|
|
18
|
-
messagingSenderId: 79537064975,
|
|
19
|
-
appId: '1:79537064975:web:32f53119e9c8c6ee2a277a'
|
|
20
|
-
},
|
|
21
|
-
serverKey:
|
|
22
|
-
'AAAAEoTHTA8:APA91bGwt-4HT82Dfwf_VwbQaKT0_qHd0Y3tuW41udjWz5Lz0Ko0mEMD6WbHHSILvQpa6yuoGGKCMsrU7VW2qWRrUm3CYpyG9oSwshNm1tIhljAnOuUfwHCoawbVLwf9qlWpHt4dwCoc'
|
|
23
|
-
},
|
|
24
|
-
vapidKey: {
|
|
25
|
-
subject: 'mailto:heartyoh@hatiolab.com',
|
|
26
|
-
publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
|
|
27
|
-
privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
email: {
|
|
31
|
-
host: 'smtp.office365.com',
|
|
32
|
-
port: 587,
|
|
33
|
-
secure: false,
|
|
34
|
-
auth: {
|
|
35
|
-
user: 'no-reply@hatiolab.com', // generated ethereal user
|
|
36
|
-
pass: 'h@ti0LAB1008' // generated ethereal password
|
|
37
|
-
},
|
|
38
|
-
secureConnection: false,
|
|
39
|
-
tls: {
|
|
40
|
-
ciphers: 'SSLv3'
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
logger: {
|
|
44
|
-
file: {
|
|
45
|
-
filename: 'logs/application-%DATE%.log',
|
|
46
|
-
datePattern: 'YYYY-MM-DD-HH',
|
|
47
|
-
zippedArchive: false,
|
|
48
|
-
maxSize: '20m',
|
|
49
|
-
maxFiles: '2d',
|
|
50
|
-
level: 'info'
|
|
51
|
-
},
|
|
52
|
-
console: {
|
|
53
|
-
level: 'silly'
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
ormconfig: {
|
|
57
|
-
name: 'default',
|
|
58
|
-
type: 'postgres',
|
|
59
|
-
database: 'postgres',
|
|
60
|
-
username: 'postgres',
|
|
61
|
-
password: 'abcd1234',
|
|
62
|
-
host: 'localhost',
|
|
63
|
-
port: 15432,
|
|
64
|
-
synchronize: true,
|
|
65
|
-
logging: true
|
|
66
|
-
},
|
|
67
|
-
uploads: 'uploads',
|
|
68
|
-
storage: {
|
|
69
|
-
type: 's3',
|
|
70
|
-
accessKeyId: 'AKIAUQEOPWEJCDH6AR5H',
|
|
71
|
-
secretAccessKey: 'AuDAgmODf9EJNB24OveRhTSLV/OJy6IFFoRxe8k2',
|
|
72
|
-
bucketName: 'opa-one'
|
|
73
|
-
},
|
|
74
|
-
attachmentsPath: 'attachments',
|
|
75
|
-
accountingIntegrationXero: {
|
|
76
|
-
platform: 'xero',
|
|
77
|
-
application: 'Operato WMS',
|
|
78
|
-
apiKey: '6B12D1AAC05347DC92159C2AEC812859',
|
|
79
|
-
apiSecret: 'T139_ItMjObC82mmy7iwnNflhd2iV0kUvDBj0P_201EmA7Sj',
|
|
80
|
-
callback: 'https://operatohub.com/callback-xero',
|
|
81
|
-
hostname: 'https://{subdomain}.operatohub.com'
|
|
82
|
-
}
|
|
83
|
-
}
|