@things-factory/operato-hub 4.3.782 → 4.3.783

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.
@@ -4,15 +4,9 @@ module.exports = {
4
4
  useVirtualHostBasedDomain: false,
5
5
  fallbackRoute: '/',
6
6
  subdomainOffset: 2,
7
- port: 4445,
7
+ port: 3000,
8
8
  inspect: '9260',
9
- storage: {
10
- type: 's3',
11
- accessKeyId: 'AKIAUQEOPWEJHCE4MTH4',
12
- secretAccessKey: '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',
13
- bucketName: 'opa-one',
14
- region: 'ap-southeast-1'
15
- },
9
+ //postgres
16
10
  // ormconfig: {
17
11
  // name: 'default',
18
12
  // type: 'postgres',
@@ -24,7 +18,30 @@ module.exports = {
24
18
  // synchronize: false,
25
19
  // logging: true
26
20
  // },
27
-
21
+ //operato
22
+ // ormconfig: {
23
+ // name: 'default',
24
+ // type: 'postgres',
25
+ // database: 'operato',
26
+ // username: 'postgres',
27
+ // password: 'hatio',
28
+ // host: '192.168.0.151',
29
+ // port: 15432,
30
+ // synchronize: false,
31
+ // logging: true
32
+ // },
33
+ //eric2
34
+ // ormconfig: {
35
+ // name: 'default',
36
+ // type: 'postgres',
37
+ // database: 'eric2',
38
+ // username: 'postgres',
39
+ // password: 'hatio',
40
+ // host: '192.168.0.153',
41
+ // port: 15432,
42
+ // synchronize: false,
43
+ // logging: true
44
+ // },
28
45
  // STAGING DATABASE
29
46
  ormconfig: {
30
47
  name: 'default',
@@ -37,34 +54,30 @@ module.exports = {
37
54
  synchronize: false,
38
55
  logging: true
39
56
  },
40
-
57
+ //EMS
41
58
  // ormconfig: {
42
59
  // name: 'default',
43
60
  // type: 'postgres',
44
- // database: 'operato',
61
+ // database: 'EMS',
45
62
  // username: 'postgres',
46
63
  // password: 'hatio',
47
- // host: '192.168.0.153',
64
+ // host: '192.168.0.161',
48
65
  // port: 15432,
49
66
  // synchronize: false,
50
67
  // logging: true
51
68
  // },
52
-
53
- //db izzah
69
+ //db nora
54
70
  // ormconfig: {
55
71
  // name: 'default',
56
72
  // type: 'postgres',
57
- // database: '06072023',
73
+ // database: 'postgres',
58
74
  // username: 'postgres',
59
75
  // password: 'hatio',
60
- // host: '192.168.0.153',
76
+ // host: '192.168.0.36',
61
77
  // port: 15432,
62
78
  // synchronize: true,
63
79
  // logging: true
64
80
  // },
65
- //postgres
66
-
67
- // //ERIC
68
81
  // ormconfig: {
69
82
  // name: 'default',
70
83
  // type: 'postgres',
@@ -76,33 +89,32 @@ module.exports = {
76
89
  // synchronize: true,
77
90
  // logging: true
78
91
  // },
79
-
80
- //eric2
92
+ //db izzah
81
93
  // ormconfig: {
82
94
  // name: 'default',
83
95
  // type: 'postgres',
84
- // database: 'eric2',
96
+ // database: '06072023',
85
97
  // username: 'postgres',
86
98
  // password: 'hatio',
87
99
  // host: '192.168.0.153',
88
100
  // port: 15432,
89
- // synchronize: false,
101
+ // synchronize: true,
90
102
  // logging: true
91
103
  // },
92
-
93
104
  // ormconfig: {
94
105
  // name: 'default',
95
106
  // type: 'postgres',
96
- // database: 'dev2', // dev2
97
- // username: 'postgres',
98
- // password: 'abcd1234',
99
- // host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
100
- // port: 55432,
101
- // synchronize:false,
102
- // logging: false,
107
+ // host: 'a6cf0bb5671f54555985dede599d5a87-649005352.ap-southeast-1.elb.amazonaws.com',
108
+ // port: 15432,
109
+ // database: 'postgres',
110
+ // username: 'operato-hub-app',
111
+ // password: 'a5Z(7|6n$Zti',
112
+ // synchronize: false,
113
+ // logging: true,
103
114
  // connectTimeoutMS: 30000,
104
115
  // extra: { poolSize: 30 }
105
116
  // },
117
+
106
118
  // ormconfig: {
107
119
  // name: 'default',
108
120
  // type: 'postgres',
@@ -116,6 +128,7 @@ module.exports = {
116
128
  // connectTimeoutMS: 30000,
117
129
  // extra: { poolSize: 30 }
118
130
  // },
131
+
119
132
  password: {
120
133
  lowerCase: true,
121
134
  upperCase: false,
@@ -167,11 +180,6 @@ module.exports = {
167
180
  ciphers: 'SSLv3'
168
181
  }
169
182
  },
170
- jobQueue: {
171
- // For JobQueueService/JobWorker (FIFO queue is supported)
172
- queueUrl: 'https://sqs.ap-southeast-5.amazonaws.com/309536469266/operato-job-queue.fifo',
173
- sqsRegion: 'ap-southeast-5'
174
- },
175
183
  sender: 'noreply@hatiolab.com',
176
184
  notification: {
177
185
  // fcm: {
@@ -210,7 +218,8 @@ module.exports = {
210
218
  isUAT: false,
211
219
  application: 'Operato MMS',
212
220
  partnerId: 846025,
213
- partnerKey: 'd34cfd85a603f196a0d74ebe08043280c1a27788bb36bdffd61e7e0bb1c90b64'
221
+ partnerKey: 'd34cfd85a603f196a0d74ebe08043280c1a27788bb36bdffd61e7e0bb1c90b64',
222
+ v2: true
214
223
  },
215
224
  marketplaceIntegrationLazada: {
216
225
  platform: 'lazada',
@@ -219,6 +228,16 @@ module.exports = {
219
228
  appSecret: 'HB3RTNEXHlVSlBr9SmWF8AjbSUT7a825',
220
229
  callback: 'https://maybank.operato-m.com/lazada-callback'
221
230
  },
231
+
232
+ //testinglazada
233
+ // marketplaceIntegrationLazada: {
234
+ // platform: 'lazada',
235
+ // application: 'powrup_bi',
236
+ // appKey: '117890',
237
+ // appSecret: 'tQVllnUa7irAHoNxAwXEVxoP1we1bUjE',
238
+ // callback: 'https://73c5-175-141-30-142.ngrok-free.app/lazada-callback'
239
+ // },
240
+
222
241
  accountingIntegrationXero: {
223
242
  platform: 'xero',
224
243
  application: 'Operato WMS',
@@ -227,23 +246,48 @@ module.exports = {
227
246
  callback: 'http://operato-h.com:3000/callback-xero',
228
247
  hostname: 'http://operato-h.com:3000/'
229
248
  },
230
- lambda: {
231
- region: 'ap-southeast-1',
232
- accessKeyId: 'AKIAUQEOPWEJKL43OMZA',
233
- secretAccessKey: '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'
249
+ lmdIntegrationNinjavan: {
250
+ clientId: 'P8WCEwMo0FHNlPECwTLetwN3diAmt5KF',
251
+ secretKey: '1D0yNZGseOjhxnwri29xmuZiiuRp131L',
252
+ refreshThreshold: 43200
234
253
  },
254
+
255
+ lmdIntegrationEms: { refreshThreshold: 43200 },
256
+
257
+ lmdIntegrationCitylink: { refreshThreshold: 172800000 },
235
258
  awbFileStorage: {
236
259
  type: 's3',
237
- accessKeyId: 'AKIAUQEOPWEJKL43OMZA',
238
- secretAccessKey: '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',
260
+ accessKeyId: 'AKIAUQEOPWEJPXIVER74',
261
+ secretAccessKey: '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',
239
262
  bucketName: 'operato-awb',
240
263
  region: 'ap-southeast-1'
241
264
  },
265
+ lambda: {
266
+ region: 'ap-southeast-1',
267
+ accessKeyId: 'AKIAUQEOPWEJPXIVER74',
268
+ secretAccessKey: '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'
269
+ },
270
+ lambdaMy: {
271
+ region: 'ap-southeast-5',
272
+ accessKeyId: 'AKIAUQEOPWEJHCE4MTH4',
273
+ secretAccessKey: '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'
274
+ },
275
+ lmdIntegrationConfig: {
276
+ version: {
277
+ v1: 'lmdMiddleware',
278
+ v2: 'lmdMiddlewareV2'
279
+ }
280
+ },
242
281
  awsSesEmail: {
243
- accessKeyId: 'AKIAUQEOPWEJKQDJSEOG',
244
- secretAccessKey: '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',
282
+ accessKeyId: 'AKIAUQEOPWEJPXIVER74',
283
+ secretAccessKey: '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',
245
284
  email: 'support@hatio.asia'
246
285
  },
286
+ jobQueue: {
287
+ // For JobQueueService/JobWorker (FIFO queue is supported)
288
+ queueUrl: 'https://sqs.ap-southeast-5.amazonaws.com/309536469266/operato-job-queue.fifo',
289
+ sqsRegion: 'ap-southeast-5'
290
+ },
247
291
  reportApiUrl:
248
292
  'http://k8s-default-operator-2fd6178d98-66c66a0f76c09575.elb.ap-southeast-1.amazonaws.com/rest/report/show_html'
249
293
  }
@@ -7,13 +7,10 @@ const lodash_1 = __importDefault(require("lodash"));
7
7
  const typeorm_1 = require("typeorm");
8
8
  const api_1 = require("@things-factory/api");
9
9
  const warehouse_base_1 = require("@things-factory/warehouse-base");
10
+ const middlewares_1 = require("../middlewares");
10
11
  const error_util_1 = require("../utils/error-util");
11
- api_1.restfulApiRouter.get('/v1/warehouse/get-inventory-adjustment-details',
12
- // businessMiddleware,
13
- // validationMiddleware,
14
- // loggingMiddleware,
15
- async (context, next) => {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23;
12
+ api_1.restfulApiRouter.get('/v1/warehouse/get-inventory-adjustment-details', middlewares_1.businessMiddleware, middlewares_1.validationMiddleware, middlewares_1.loggingMiddleware, async (context, next) => {
13
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28;
17
14
  try {
18
15
  // get contact points for that bizplace
19
16
  // optional query parameter filter
@@ -67,11 +64,12 @@ async (context, next) => {
67
64
  type: (_b = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.location) === null || _b === void 0 ? void 0 : _b.type,
68
65
  warehouse: {
69
66
  name: (_d = (_c = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.location) === null || _c === void 0 ? void 0 : _c.warehouse) === null || _d === void 0 ? void 0 : _d.name,
70
- description: (_f = (_e = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.location) === null || _e === void 0 ? void 0 : _e.warehouse) === null || _f === void 0 ? void 0 : _f.description
67
+ description: (_f = (_e = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.location) === null || _e === void 0 ? void 0 : _e.warehouse) === null || _f === void 0 ? void 0 : _f.description,
68
+ refCode: (_h = (_g = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.location) === null || _g === void 0 ? void 0 : _g.warehouse) === null || _h === void 0 ? void 0 : _h.refCode
71
69
  }
72
70
  },
73
71
  bizplace: {
74
- name: (_g = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.bizplace) === null || _g === void 0 ? void 0 : _g.name
72
+ name: (_j = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.bizplace) === null || _j === void 0 ? void 0 : _j.name
75
73
  },
76
74
  qty: inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.qty,
77
75
  uom: inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.uom,
@@ -88,42 +86,43 @@ async (context, next) => {
88
86
  },
89
87
  previous: {
90
88
  productDetail: {
91
- refCode: (_j = (_h = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _h === void 0 ? void 0 : _h.productDetail) === null || _j === void 0 ? void 0 : _j.refCode,
92
- packingType: (_l = (_k = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _k === void 0 ? void 0 : _k.productDetail) === null || _l === void 0 ? void 0 : _l.packingType,
93
- packingSize: (_o = (_m = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _m === void 0 ? void 0 : _m.productDetail) === null || _o === void 0 ? void 0 : _o.packingSize,
94
- uom: (_q = (_p = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _p === void 0 ? void 0 : _p.productDetail) === null || _q === void 0 ? void 0 : _q.uom,
95
- uomValue: (_s = (_r = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _r === void 0 ? void 0 : _r.productDetail) === null || _s === void 0 ? void 0 : _s.uomValue
89
+ refCode: (_l = (_k = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _k === void 0 ? void 0 : _k.productDetail) === null || _l === void 0 ? void 0 : _l.refCode,
90
+ packingType: (_o = (_m = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _m === void 0 ? void 0 : _m.productDetail) === null || _o === void 0 ? void 0 : _o.packingType,
91
+ packingSize: (_q = (_p = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _p === void 0 ? void 0 : _p.productDetail) === null || _q === void 0 ? void 0 : _q.packingSize,
92
+ uom: (_s = (_r = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _r === void 0 ? void 0 : _r.productDetail) === null || _s === void 0 ? void 0 : _s.uom,
93
+ uomValue: (_u = (_t = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _t === void 0 ? void 0 : _t.productDetail) === null || _u === void 0 ? void 0 : _u.uomValue
96
94
  },
97
95
  product: {
98
- sku: (_u = (_t = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _t === void 0 ? void 0 : _t.product) === null || _u === void 0 ? void 0 : _u.sku,
99
- name: (_w = (_v = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _v === void 0 ? void 0 : _v.product) === null || _w === void 0 ? void 0 : _w.name,
100
- description: (_y = (_x = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _x === void 0 ? void 0 : _x.product) === null || _y === void 0 ? void 0 : _y.description
96
+ sku: (_w = (_v = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _v === void 0 ? void 0 : _v.product) === null || _w === void 0 ? void 0 : _w.sku,
97
+ name: (_y = (_x = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _x === void 0 ? void 0 : _x.product) === null || _y === void 0 ? void 0 : _y.name,
98
+ description: (_0 = (_z = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _z === void 0 ? void 0 : _z.product) === null || _0 === void 0 ? void 0 : _0.description
101
99
  },
102
100
  location: {
103
- name: (_0 = (_z = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _z === void 0 ? void 0 : _z.location) === null || _0 === void 0 ? void 0 : _0.name,
104
- type: (_2 = (_1 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _1 === void 0 ? void 0 : _1.location) === null || _2 === void 0 ? void 0 : _2.type,
101
+ name: (_2 = (_1 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _1 === void 0 ? void 0 : _1.location) === null || _2 === void 0 ? void 0 : _2.name,
102
+ type: (_4 = (_3 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _3 === void 0 ? void 0 : _3.location) === null || _4 === void 0 ? void 0 : _4.type,
105
103
  warehouse: {
106
- name: (_5 = (_4 = (_3 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _3 === void 0 ? void 0 : _3.location) === null || _4 === void 0 ? void 0 : _4.warehouse) === null || _5 === void 0 ? void 0 : _5.name,
107
- description: (_8 = (_7 = (_6 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _6 === void 0 ? void 0 : _6.location) === null || _7 === void 0 ? void 0 : _7.warehouse) === null || _8 === void 0 ? void 0 : _8.description
104
+ name: (_7 = (_6 = (_5 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _5 === void 0 ? void 0 : _5.location) === null || _6 === void 0 ? void 0 : _6.warehouse) === null || _7 === void 0 ? void 0 : _7.name,
105
+ description: (_10 = (_9 = (_8 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _8 === void 0 ? void 0 : _8.location) === null || _9 === void 0 ? void 0 : _9.warehouse) === null || _10 === void 0 ? void 0 : _10.description,
106
+ refCode: (_13 = (_12 = (_11 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _11 === void 0 ? void 0 : _11.location) === null || _12 === void 0 ? void 0 : _12.warehouse) === null || _13 === void 0 ? void 0 : _13.refCode
108
107
  }
109
108
  },
110
109
  bizplace: {
111
- name: (_9 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.bizplace) === null || _9 === void 0 ? void 0 : _9.name
110
+ name: (_14 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.bizplace) === null || _14 === void 0 ? void 0 : _14.name
112
111
  },
113
- qty: (((_10 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _10 === void 0 ? void 0 : _10.openingQty) || 0) +
114
- (((_11 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _11 === void 0 ? void 0 : _11.qty) || 0),
115
- uom: (_12 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _12 === void 0 ? void 0 : _12.uom,
116
- uomValue: (((_13 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _13 === void 0 ? void 0 : _13.openingUomValue) || 0) +
117
- (((_14 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _14 === void 0 ? void 0 : _14.uomValue) || 0),
118
- packingType: (_15 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _15 === void 0 ? void 0 : _15.packingType,
119
- packingSize: (_16 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _16 === void 0 ? void 0 : _16.packingSize,
120
- batchId: (_17 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _17 === void 0 ? void 0 : _17.batchId,
121
- batchIdRef: (_18 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _18 === void 0 ? void 0 : _18.batchIdRef,
122
- expirationDate: (_19 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _19 === void 0 ? void 0 : _19.expirationDate,
123
- manufactureYear: (_20 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _20 === void 0 ? void 0 : _20.manufactureYear,
124
- manufactureDate: (_21 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _21 === void 0 ? void 0 : _21.manufactureDate,
125
- palletId: (_22 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _22 === void 0 ? void 0 : _22.palletId,
126
- cartonId: (_23 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _23 === void 0 ? void 0 : _23.cartonId
112
+ qty: (((_15 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _15 === void 0 ? void 0 : _15.openingQty) || 0) +
113
+ (((_16 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _16 === void 0 ? void 0 : _16.qty) || 0),
114
+ uom: (_17 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _17 === void 0 ? void 0 : _17.uom,
115
+ uomValue: (((_18 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _18 === void 0 ? void 0 : _18.openingUomValue) || 0) +
116
+ (((_19 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _19 === void 0 ? void 0 : _19.uomValue) || 0),
117
+ packingType: (_20 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _20 === void 0 ? void 0 : _20.packingType,
118
+ packingSize: (_21 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _21 === void 0 ? void 0 : _21.packingSize,
119
+ batchId: (_22 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _22 === void 0 ? void 0 : _22.batchId,
120
+ batchIdRef: (_23 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _23 === void 0 ? void 0 : _23.batchIdRef,
121
+ expirationDate: (_24 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _24 === void 0 ? void 0 : _24.expirationDate,
122
+ manufactureYear: (_25 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _25 === void 0 ? void 0 : _25.manufactureYear,
123
+ manufactureDate: (_26 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _26 === void 0 ? void 0 : _26.manufactureDate,
124
+ palletId: (_27 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _27 === void 0 ? void 0 : _27.palletId,
125
+ cartonId: (_28 = inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.lastInventoryHistory) === null || _28 === void 0 ? void 0 : _28.cartonId
127
126
  },
128
127
  adjustmentCode: inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.adjustmentCode,
129
128
  adjustmentNote: inventoryChange === null || inventoryChange === void 0 ? void 0 : inventoryChange.adjustmentNote,
@@ -1 +1 @@
1
- {"version":3,"file":"get-inventory-adjustment-details.js","sourceRoot":"","sources":["../../../../../../server/routers/api/restful-apis/v1/warehouse/get-inventory-adjustment-details.ts"],"names":[],"mappings":";;;;;AAAA,oDAAsB;AACtB,qCAAuC;AAEvC,6CAAgE;AAChE,mEAAgE;AAGhE,oDAAyF;AAEzF,sBAAM,CAAC,GAAG,CACR,gDAAgD;AAChD,sBAAsB;AACtB,wBAAwB;AACxB,qBAAqB;AACrB,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;;IACtB,IAAI;QACF,uCAAuC;QACvC,kCAAkC;QAClC,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAChC,IAAI,MAAM,mCAAQ,OAAO,CAAC,KAAK,KAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAE,CAAA;QACpD,IAAI,gBAAC,CAAC,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE;YAC/B,MAAM,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,YAAY,CAAC,CAAA;YACzC,OAAO,MAAM,CAAC,YAAY,CAAC,CAAA;SAC5B;QAED,MAAM,eAAe,GAAoB,MAAM,IAAA,uBAAa,EAAC,gCAAe,CAAC,CAAC,OAAO,CAAC;YACpF,KAAK,EAAE,MAAM;YACb,SAAS,EAAE;gBACT,SAAS;gBACT,eAAe;gBACf,UAAU;gBACV,UAAU;gBACV,oBAAoB;gBACpB,sBAAsB;gBACtB,WAAW;gBACX,mBAAmB;gBACnB,yBAAyB;gBACzB,oCAAoC;gBACpC,8BAA8B;gBAC9B,+BAA+B;gBAC/B,yCAAyC;aAC1C;SACF,CAAC,CAAA;QAEF,IAAI,CAAC,eAAe,EAAE;YACpB,MAAM,IAAI,qBAAQ,CAAC,KAAK,EAAE,gCAA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AQ;aAC1D;YACD,cAAc,EAAE,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,cAAc;YAC/C,cAAc,EAAE,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,cAAc;YAC/C,IAAI,EAAE,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,eAAe;YACtC,MAAM,EAAE,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,MAAM;YAC/B,SAAS,EAAE,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,SAAS;YACrC,SAAS,EAAE,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,SAAS;SACtC,CAAA;QAED,OAAO,CAAC,IAAI,GAAG;YACb,IAAI;SACL,CAAA;KACF;IAAC,OAAO,CAAC,EAAE;QACV,IAAI,CAAC,YAAY,qBAAQ;YAAE,IAAA,4BAAe,EAAC,OAAO,EAAE,CAAC,CAAC,CAAA;;YACjD,IAAA,qCAAwB,EAAC,OAAO,EAAE,CAAC,CAAC,CAAA;KAC1C;AACH,CAAC,CACF,CAAA"}
1
+ {"version":3,"file":"get-inventory-adjustment-details.js","sourceRoot":"","sources":["../../../../../../server/routers/api/restful-apis/v1/warehouse/get-inventory-adjustment-details.ts"],"names":[],"mappings":";;;;;AAAA,oDAAsB;AACtB,qCAAuC;AAEvC,6CAAgE;AAChE,mEAAgE;AAEhE,gDAA4F;AAC5F,oDAAyF;AAEzF,sBAAM,CAAC,GAAG,CACR,gDAAgD,EAChD,gCAAkB,EAClB,kCAAoB,EACpB,+BAAiB,EACjB,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;;IACtB,IAAI;QACF,uCAAuC;QACvC,kCAAkC;QAClC,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAChC,IAAI,MAAM,mCAAQ,OAAO,CAAC,KAAK,KAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAE,CAAA;QACpD,IAAI,gBAAC,CAAC,GAAG,CAAC,MAAM,EA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,OAAO,CAAC,EAAE;QACV,IAAI,CAAC,YAAY,qBAAQ;YAAE,IAAA,4BAAe,EAAC,OAAO,EAAE,CAAC,CAAC,CAAA;;YACjD,IAAA,qCAAwB,EAAC,OAAO,EAAE,CAAC,CAAC,CAAA;KAC1C;AACH,CAAC,CACF,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-hub",
3
- "version": "4.3.782",
3
+ "version": "4.3.783",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -93,7 +93,7 @@
93
93
  "@things-factory/pdf": "^4.3.767",
94
94
  "@things-factory/product-ui": "^4.3.782",
95
95
  "@things-factory/resource-ui": "^4.3.770",
96
- "@things-factory/sales-base": "^4.3.782",
96
+ "@things-factory/sales-base": "^4.3.783",
97
97
  "@things-factory/scene-data-transform": "^4.3.767",
98
98
  "@things-factory/scene-excel": "^4.3.767",
99
99
  "@things-factory/scene-firebase": "^4.3.767",
@@ -110,7 +110,7 @@
110
110
  "@things-factory/system-ui": "^4.3.767",
111
111
  "@things-factory/transport-base": "^4.3.767",
112
112
  "@things-factory/warehouse-base": "^4.3.782",
113
- "@things-factory/worksheet-base": "^4.3.782",
113
+ "@things-factory/worksheet-base": "^4.3.783",
114
114
  "cron-parser": "^4.7.0",
115
115
  "koa2-swagger-ui": "^5.0.2",
116
116
  "swagger-jsdoc": "^5.0.0",
@@ -123,5 +123,5 @@
123
123
  "resolutions": {
124
124
  "core-js": "^3.16.0"
125
125
  },
126
- "gitHead": "bd283bc6af2b21ba15814c8674937034560840a8"
126
+ "gitHead": "caafdd945941a4559bcb8de1b6498eceae9b94c0"
127
127
  }
@@ -9,9 +9,9 @@ import { ApiError, ApiErrorHandler, throwInternalServerError } from '../utils/er
9
9
 
10
10
  router.get(
11
11
  '/v1/warehouse/get-inventory-adjustment-details',
12
- // businessMiddleware,
13
- // validationMiddleware,
14
- // loggingMiddleware,
12
+ businessMiddleware,
13
+ validationMiddleware,
14
+ loggingMiddleware,
15
15
  async (context, next) => {
16
16
  try {
17
17
  // get contact points for that bizplace
@@ -69,7 +69,8 @@ router.get(
69
69
  type: inventoryChange?.location?.type,
70
70
  warehouse: {
71
71
  name: inventoryChange?.location?.warehouse?.name,
72
- description: inventoryChange?.location?.warehouse?.description
72
+ description: inventoryChange?.location?.warehouse?.description,
73
+ refCode: inventoryChange?.location?.warehouse?.refCode
73
74
  }
74
75
  },
75
76
  bizplace: {
@@ -106,7 +107,8 @@ router.get(
106
107
  type: inventoryChange?.lastInventoryHistory?.location?.type,
107
108
  warehouse: {
108
109
  name: inventoryChange?.lastInventoryHistory?.location?.warehouse?.name,
109
- description: inventoryChange?.lastInventoryHistory?.location?.warehouse?.description
110
+ description: inventoryChange?.lastInventoryHistory?.location?.warehouse?.description,
111
+ refCode: inventoryChange?.lastInventoryHistory?.location?.warehouse?.refCode
110
112
  }
111
113
  },
112
114
  bizplace: {