@things-factory/operato-mms 4.3.376 → 4.3.378
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/config.development.js +26 -34
- package/dist-server/index 3.js +34 -0
- package/dist-server/index.js 3.map +1 -0
- package/dist-server/routes 3.js +11 -0
- package/dist-server/routes.js 3.map +1 -0
- package/package.json +45 -45
package/config.development.js
CHANGED
|
@@ -2,7 +2,6 @@ module.exports = {
|
|
|
2
2
|
domainType: 'company',
|
|
3
3
|
domainExtType: 'company',
|
|
4
4
|
subdomainOffset: 2,
|
|
5
|
-
port: 1300,
|
|
6
5
|
ormconfig: {
|
|
7
6
|
name: 'default',
|
|
8
7
|
type: 'postgres',
|
|
@@ -17,31 +16,14 @@ module.exports = {
|
|
|
17
16
|
// ormconfig: {
|
|
18
17
|
// name: 'default',
|
|
19
18
|
// type: 'postgres',
|
|
20
|
-
// database: '
|
|
19
|
+
// database: 'postgres3',
|
|
21
20
|
// username: 'postgres',
|
|
22
|
-
// password: '
|
|
23
|
-
// host: '
|
|
21
|
+
// password: 'mysecretpassword',
|
|
22
|
+
// host: 'samhouse.asuscomm.com',
|
|
24
23
|
// port: 15432,
|
|
25
24
|
// synchronize: true,
|
|
26
25
|
// logging: true
|
|
27
26
|
// },
|
|
28
|
-
sftpFileStorage: {
|
|
29
|
-
type: 's3',
|
|
30
|
-
accessKeyId: 'AKIAUQEOPWEJKL43OMZA',
|
|
31
|
-
secretAccessKey: 'OG2qS0Usg4wyjPWbfv1ahPZzP80/w8z4i8MYHl+e',
|
|
32
|
-
bucketName: 'operato-sftp'
|
|
33
|
-
},
|
|
34
|
-
// ormconfig: {
|
|
35
|
-
// name: 'default',
|
|
36
|
-
// type: 'postgres',
|
|
37
|
-
// database: 'postgres',
|
|
38
|
-
// username: 'postgres',
|
|
39
|
-
// password: 'hatio',
|
|
40
|
-
// host: 'localhost',
|
|
41
|
-
// port: 35432,
|
|
42
|
-
// synchronize: true,
|
|
43
|
-
// logging: true
|
|
44
|
-
// },
|
|
45
27
|
inspect: '9280',
|
|
46
28
|
password: {
|
|
47
29
|
lowerCase: true,
|
|
@@ -64,6 +46,7 @@ module.exports = {
|
|
|
64
46
|
]
|
|
65
47
|
},
|
|
66
48
|
useVirtualHostBasedDomain: false,
|
|
49
|
+
port: 9000,
|
|
67
50
|
uploads: 'uploads',
|
|
68
51
|
attachmentsPath: 'attachments',
|
|
69
52
|
SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
|
|
@@ -114,19 +97,6 @@ module.exports = {
|
|
|
114
97
|
privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
|
|
115
98
|
}
|
|
116
99
|
},
|
|
117
|
-
fulfillmentIntegrationOperato: {
|
|
118
|
-
host: 'operato-h.com:3000',
|
|
119
|
-
protocol: 'http',
|
|
120
|
-
platform: 'operato',
|
|
121
|
-
application: 'Operato MMS',
|
|
122
|
-
appKey: 'a9bf751e622bf146662b240d58971051',
|
|
123
|
-
appSecret: '1c385935dc131c4b902b9bbf6a4798af',
|
|
124
|
-
callback: 'http://operato-h.com:5000/callback-operato'
|
|
125
|
-
},
|
|
126
|
-
sellercraftChannelIntegrationConfig: {
|
|
127
|
-
apiKey: 'eqDVmIp0kxakM4sNnzqTkySBM73UGMS1nOPDN5Z1',
|
|
128
|
-
tokenCraftUrl: 'https://staging-tokencraft.sellercraft.co/v1/get-shop'
|
|
129
|
-
},
|
|
130
100
|
marketplaceIntegrationShopee: {
|
|
131
101
|
platform: 'shopee',
|
|
132
102
|
isUAT: false,
|
|
@@ -134,6 +104,13 @@ module.exports = {
|
|
|
134
104
|
partnerId: 846025,
|
|
135
105
|
partnerKey: 'd34cfd85a603f196a0d74ebe08043280c1a27788bb36bdffd61e7e0bb1c90b64'
|
|
136
106
|
},
|
|
107
|
+
// marketplaceIntegrationShopee: {
|
|
108
|
+
// platform: 'shopee',
|
|
109
|
+
// isUAT: true,
|
|
110
|
+
// application: 'Staging MMS',
|
|
111
|
+
// partnerId: 845525,
|
|
112
|
+
// partnerKey: '4a3f4214fd0f0bda970b342a99b6f8705fc7bacad2743cffa7ed67b79840665e'
|
|
113
|
+
// },
|
|
137
114
|
marketplaceIntegrationLazada: {
|
|
138
115
|
platform: 'lazada',
|
|
139
116
|
application: 'operato-mms',
|
|
@@ -141,6 +118,15 @@ module.exports = {
|
|
|
141
118
|
appSecret: 'HB3RTNEXHlVSlBr9SmWF8AjbSUT7a825',
|
|
142
119
|
callback: 'https://maybank.operato-m.com/lazada-callback'
|
|
143
120
|
},
|
|
121
|
+
fulfillmentIntegrationOperato: {
|
|
122
|
+
host: '127.0.0.1:3000',
|
|
123
|
+
protocol: 'http',
|
|
124
|
+
platform: 'operato',
|
|
125
|
+
application: 'Operato MMS',
|
|
126
|
+
appKey: 'a9bf751e622bf146662b240d58971051',
|
|
127
|
+
appSecret: '1c385935dc131c4b902b9bbf6a4798af',
|
|
128
|
+
callback: 'http://127.0.0.1:9000/callback-operato'
|
|
129
|
+
},
|
|
144
130
|
marketplaceIntegrationShopify: {
|
|
145
131
|
platform: 'shopify',
|
|
146
132
|
application: 'Operato',
|
|
@@ -166,4 +152,10 @@ module.exports = {
|
|
|
166
152
|
oauth_consumer_key: '',
|
|
167
153
|
oauth_consumer_secret: ''
|
|
168
154
|
}
|
|
155
|
+
// sellercraftChannelIntegrationConfig: {
|
|
156
|
+
// tokenCraftApiKey: 'gf2oZbK2rv47qO0bQPbkV8RsqhlHcnSVq267W5I8',
|
|
157
|
+
// apiKey: 'eqDVmIp0kxakM4sNnzqTkySBM73UGMS1nOPDN5Z1',
|
|
158
|
+
// tokenCraftUrl: 'https://tokencraft.piggylabs.com/v1/get-shop',
|
|
159
|
+
// getShopsTokenCraftUrl: 'https://tokencraft.piggylabs.com/v1/get-shops'
|
|
160
|
+
// }
|
|
169
161
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./entities"), exports);
|
|
18
|
+
__exportStar(require("./graphql"), exports);
|
|
19
|
+
__exportStar(require("./migrations"), exports);
|
|
20
|
+
require("./routes");
|
|
21
|
+
const integration_base_1 = require("@things-factory/integration-base");
|
|
22
|
+
const debug = require('debug')('things-factory:operato-mms:bootstrap');
|
|
23
|
+
process.on('bootstrap-module-start', async ({ app, config, client }) => {
|
|
24
|
+
debug('%%%%%%%%%%%%%%%% TASK ENGINE - BEGIN %%%%%%%%%%%%%%%%');
|
|
25
|
+
try {
|
|
26
|
+
await integration_base_1.ConnectionManager.ready();
|
|
27
|
+
await integration_base_1.ScenarioEngine.loadAll();
|
|
28
|
+
}
|
|
29
|
+
catch (ex) {
|
|
30
|
+
integration_base_1.ConnectionManager.logger.error(ex);
|
|
31
|
+
}
|
|
32
|
+
debug('%%%%%%%%%%%%%%%% TASK ENGINE - END %%%%%%%%%%%%%%%%');
|
|
33
|
+
});
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,4CAAyB;AACzB,+CAA4B;AAE5B,oBAAiB;AACjB,uEAAoF;AAEpF,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,sCAAsC,CAAC,CAAA;AAEtE,OAAO,CAAC,EAAE,CAAC,wBAA+B,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAO,EAAE,EAAE;IACjF,KAAK,CAAC,uDAAuD,CAAC,CAAA;IAC9D,IAAI;QACF,MAAM,oCAAiB,CAAC,KAAK,EAAE,CAAA;QAC/B,MAAM,iCAAc,CAAC,OAAO,EAAE,CAAA;KAC/B;IAAC,OAAO,EAAE,EAAE;QACX,oCAAiB,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;KACnC;IACD,KAAK,CAAC,qDAAqD,CAAC,CAAA;AAC9D,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const shopify_pos_public_router_1 = require("./routers/shopify-pos-public-router");
|
|
4
|
+
const etrax_router_1 = require("./routers/etrax-router");
|
|
5
|
+
const debug = require('debug')('things-factory:operato-mms:routes');
|
|
6
|
+
process.on('bootstrap-module-global-public-route', (app, globalPublicRouter) => {
|
|
7
|
+
globalPublicRouter.use(shopify_pos_public_router_1.shopifyPosPublicRouter.routes(), shopify_pos_public_router_1.shopifyPosPublicRouter.allowedMethods());
|
|
8
|
+
globalPublicRouter.use(etrax_router_1.etraxRouter.routes(), etrax_router_1.etraxRouter.allowedMethods());
|
|
9
|
+
});
|
|
10
|
+
process.on('bootstrap-module-domain-private-route', (app, domainPrivateRouter) => { });
|
|
11
|
+
//# sourceMappingURL=routes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../server/routes.ts"],"names":[],"mappings":";;AAAA,mFAA4E;AAC5E,yDAAoD;AAEpD,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,mCAAmC,CAAC,CAAA;AAEnE,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE;IACpF,kBAAkB,CAAC,GAAG,CAAC,kDAAsB,CAAC,MAAM,EAAE,EAAE,kDAAsB,CAAC,cAAc,EAAE,CAAC,CAAA;IAChG,kBAAkB,CAAC,GAAG,CAAC,0BAAW,CAAC,MAAM,EAAE,EAAE,0BAAW,CAAC,cAAc,EAAE,CAAC,CAAA;AAC5E,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,uCAA8C,EAAE,CAAC,GAAG,EAAE,mBAAmB,EAAE,EAAE,GAAE,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-mms",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.378",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -59,52 +59,52 @@
|
|
|
59
59
|
"@operato/scene-table": "^0.1.8",
|
|
60
60
|
"@operato/scene-timer": "^0.1.8",
|
|
61
61
|
"@operato/scene-wheel-sorter": "^0.1.8",
|
|
62
|
-
"@things-factory/apptool-ui": "^4.3.
|
|
63
|
-
"@things-factory/attachment-base": "^4.3.
|
|
64
|
-
"@things-factory/auth-ui": "^4.3.
|
|
65
|
-
"@things-factory/biz-base": "^4.3.
|
|
66
|
-
"@things-factory/board-service": "^4.3.
|
|
67
|
-
"@things-factory/board-ui": "^4.3.
|
|
68
|
-
"@things-factory/code-ui": "^4.3.
|
|
69
|
-
"@things-factory/context-ui": "^4.3.
|
|
70
|
-
"@things-factory/dashboard": "^4.3.
|
|
71
|
-
"@things-factory/export-ui": "^4.3.
|
|
72
|
-
"@things-factory/export-ui-csv": "^4.3.
|
|
73
|
-
"@things-factory/export-ui-excel": "^4.3.
|
|
74
|
-
"@things-factory/geography": "^4.3.
|
|
75
|
-
"@things-factory/grist-ui": "^4.3.
|
|
76
|
-
"@things-factory/help": "^4.3.
|
|
77
|
-
"@things-factory/i18n-base": "^4.3.
|
|
78
|
-
"@things-factory/import-ui": "^4.3.
|
|
79
|
-
"@things-factory/import-ui-excel": "^4.3.
|
|
80
|
-
"@things-factory/integration-fulfillment": "^4.3.
|
|
81
|
-
"@things-factory/integration-lmd": "^4.3.
|
|
82
|
-
"@things-factory/lite-menu": "^4.3.
|
|
83
|
-
"@things-factory/marketplace-base": "^4.3.
|
|
84
|
-
"@things-factory/more-ui": "^4.3.
|
|
85
|
-
"@things-factory/notification": "^4.3.
|
|
86
|
-
"@things-factory/oauth2-client": "^4.3.
|
|
87
|
-
"@things-factory/pdf": "^4.3.
|
|
88
|
-
"@things-factory/product-base": "^4.3.
|
|
89
|
-
"@things-factory/resource-ui": "^4.3.
|
|
90
|
-
"@things-factory/scene-data-transform": "^4.3.
|
|
91
|
-
"@things-factory/scene-excel": "^4.3.
|
|
92
|
-
"@things-factory/scene-firebase": "^4.3.
|
|
93
|
-
"@things-factory/scene-form": "^4.3.
|
|
94
|
-
"@things-factory/scene-google-map": "^4.3.
|
|
95
|
-
"@things-factory/scene-graphql": "^4.3.
|
|
96
|
-
"@things-factory/scene-label": "^4.3.
|
|
97
|
-
"@things-factory/scene-marker": "^4.3.
|
|
98
|
-
"@things-factory/scene-mqtt": "^4.3.
|
|
99
|
-
"@things-factory/scene-restful": "^4.3.
|
|
100
|
-
"@things-factory/scene-visualizer": "^4.3.
|
|
101
|
-
"@things-factory/setting-ui": "^4.3.
|
|
102
|
-
"@things-factory/system-ui": "^4.3.
|
|
103
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
62
|
+
"@things-factory/apptool-ui": "^4.3.378",
|
|
63
|
+
"@things-factory/attachment-base": "^4.3.378",
|
|
64
|
+
"@things-factory/auth-ui": "^4.3.378",
|
|
65
|
+
"@things-factory/biz-base": "^4.3.378",
|
|
66
|
+
"@things-factory/board-service": "^4.3.378",
|
|
67
|
+
"@things-factory/board-ui": "^4.3.378",
|
|
68
|
+
"@things-factory/code-ui": "^4.3.378",
|
|
69
|
+
"@things-factory/context-ui": "^4.3.378",
|
|
70
|
+
"@things-factory/dashboard": "^4.3.378",
|
|
71
|
+
"@things-factory/export-ui": "^4.3.378",
|
|
72
|
+
"@things-factory/export-ui-csv": "^4.3.378",
|
|
73
|
+
"@things-factory/export-ui-excel": "^4.3.378",
|
|
74
|
+
"@things-factory/geography": "^4.3.378",
|
|
75
|
+
"@things-factory/grist-ui": "^4.3.378",
|
|
76
|
+
"@things-factory/help": "^4.3.378",
|
|
77
|
+
"@things-factory/i18n-base": "^4.3.378",
|
|
78
|
+
"@things-factory/import-ui": "^4.3.378",
|
|
79
|
+
"@things-factory/import-ui-excel": "^4.3.378",
|
|
80
|
+
"@things-factory/integration-fulfillment": "^4.3.378",
|
|
81
|
+
"@things-factory/integration-lmd": "^4.3.378",
|
|
82
|
+
"@things-factory/lite-menu": "^4.3.378",
|
|
83
|
+
"@things-factory/marketplace-base": "^4.3.378",
|
|
84
|
+
"@things-factory/more-ui": "^4.3.378",
|
|
85
|
+
"@things-factory/notification": "^4.3.378",
|
|
86
|
+
"@things-factory/oauth2-client": "^4.3.378",
|
|
87
|
+
"@things-factory/pdf": "^4.3.378",
|
|
88
|
+
"@things-factory/product-base": "^4.3.378",
|
|
89
|
+
"@things-factory/resource-ui": "^4.3.378",
|
|
90
|
+
"@things-factory/scene-data-transform": "^4.3.378",
|
|
91
|
+
"@things-factory/scene-excel": "^4.3.378",
|
|
92
|
+
"@things-factory/scene-firebase": "^4.3.378",
|
|
93
|
+
"@things-factory/scene-form": "^4.3.378",
|
|
94
|
+
"@things-factory/scene-google-map": "^4.3.378",
|
|
95
|
+
"@things-factory/scene-graphql": "^4.3.378",
|
|
96
|
+
"@things-factory/scene-label": "^4.3.378",
|
|
97
|
+
"@things-factory/scene-marker": "^4.3.378",
|
|
98
|
+
"@things-factory/scene-mqtt": "^4.3.378",
|
|
99
|
+
"@things-factory/scene-restful": "^4.3.378",
|
|
100
|
+
"@things-factory/scene-visualizer": "^4.3.378",
|
|
101
|
+
"@things-factory/setting-ui": "^4.3.378",
|
|
102
|
+
"@things-factory/system-ui": "^4.3.378",
|
|
103
|
+
"@things-factory/warehouse-base": "^4.3.378"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
|
-
"@things-factory/builder": "^4.3.
|
|
106
|
+
"@things-factory/builder": "^4.3.378",
|
|
107
107
|
"@types/node-fetch": "^2.5.7"
|
|
108
108
|
},
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "9de7af5e7b61574cdb4773876a41e1b9b77c1689"
|
|
110
110
|
}
|