@things-factory/operato-wms 4.0.37 → 4.0.41

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 (37) hide show
  1. package/client/bootstrap.js +24 -1
  2. package/client/pages/bulk-operation/bulk-operation.js +4 -3
  3. package/client/pages/bulk-operation/validate-gan-popup.js +10 -2
  4. package/client/pages/bulk-operation/validate-ro-popup.js +3 -5
  5. package/client/pages/components/popup-reusable-pallet.js +0 -1
  6. package/client/pages/inbound/putaway-product.js +45 -38
  7. package/client/pages/inbound/unload-product.js +27 -27
  8. package/client/pages/inventory/inventory-adjustment.js +22 -26
  9. package/client/pages/inventory/inventory-by-product.js +0 -12
  10. package/client/pages/manifest/create-loading-manifest.js +1 -1
  11. package/client/pages/manifest/loading-manifest-list.js +3 -3
  12. package/client/pages/order/arrival-notice/assign-buffer-location.js +24 -9
  13. package/client/pages/order/arrival-notice/create-arrival-notice.js +1 -1
  14. package/client/pages/order/release-order/b2b/b2b-order-list.js +12 -1
  15. package/client/pages/order/release-order/b2c/b2c-order-requests.js +55 -3
  16. package/client/pages/order/release-order/create-release-order.js +14 -0
  17. package/client/pages/order/release-order/release-order-detail.js +2 -1
  18. package/client/pages/order/transport-order/contact-point-selector-popup.js +11 -10
  19. package/client/pages/outbound/picking-product.js +3 -1
  20. package/client/pages/outbound/single-outbound-worksheet.js +3 -3
  21. package/client/pages/outbound/worksheet-picking.js +1 -1
  22. package/client/pages/report/custom-elccl/elccl-daily-order-inventory-report.js +5 -1
  23. package/client/pages/report/custom-elccl/elccl-delivery-order-summary.js +1 -1
  24. package/client/pages/report/custom-elccl/elccl-inventory-report.js +13 -1
  25. package/client/pages/report/inventory-report.js +1 -0
  26. package/client/pages/report/product-label-report.js +0 -39
  27. package/config.development.js +73 -0
  28. package/config.production.js +113 -0
  29. package/helps/release-note.ko.md +3 -0
  30. package/helps/release-note.md +3 -0
  31. package/helps/release-note.ms.md +3 -0
  32. package/helps/release-note.zh.md +3 -0
  33. package/package.json +65 -65
  34. package/translations/en.json +9 -1
  35. package/translations/ko.json +9 -1
  36. package/translations/ms.json +9 -1
  37. package/translations/zh.json +9 -1
@@ -1,16 +1,20 @@
1
- import { MultiColumnFormStyles } from '@things-factory/form-ui'
2
- import { CommonButtonStyles } from '@things-factory/styles'
3
1
  import '@things-factory/grist-ui'
2
+ import '../../components/attachment-viewer'
3
+ import '../../components/popup-note'
4
+ import '../../components/vas-templates'
5
+ import '@things-factory/warehouse-ui'
6
+
7
+ import gql from 'graphql-tag'
8
+ import { css, html } from 'lit-element'
9
+
10
+ import { MultiColumnFormStyles } from '@things-factory/form-ui'
4
11
  import { getRenderer } from '@things-factory/grist-ui'
5
12
  import { i18next, localize } from '@things-factory/i18n-base'
6
13
  import { openPopup } from '@things-factory/layout-base'
7
14
  import { client, CustomAlert, navigate, PageView } from '@things-factory/shell'
15
+ import { CommonButtonStyles } from '@things-factory/styles'
8
16
  import { isMobileDevice } from '@things-factory/utils'
9
- import gql from 'graphql-tag'
10
- import { css, html } from 'lit-element'
11
- import '../../components/attachment-viewer'
12
- import '../../components/popup-note'
13
- import '../../components/vas-templates'
17
+
14
18
  import {
15
19
  ORDER_STATUS,
16
20
  VAS_BATCH_AND_PRODUCT_TYPE,
@@ -18,7 +22,6 @@ import {
18
22
  VAS_ETC_TYPE,
19
23
  VAS_PRODUCT_TYPE
20
24
  } from '../../constants'
21
- import { BufferLocationSelector } from '@things-factory/warehouse-ui'
22
25
 
23
26
  class AssignBufferLocation extends localize(i18next)(PageView) {
24
27
  static get properties() {
@@ -432,6 +435,12 @@ class AssignBufferLocation extends localize(i18next)(PageView) {
432
435
  refNo2
433
436
  refNo3
434
437
  importCargo
438
+ purchaseOrder {
439
+ bufferLocation {
440
+ id
441
+ name
442
+ }
443
+ }
435
444
  attachment {
436
445
  id
437
446
  name
@@ -504,7 +513,13 @@ class AssignBufferLocation extends localize(i18next)(PageView) {
504
513
 
505
514
  if (!response.errors) {
506
515
  const { arrivalNotice } = response.data
507
- const { orderProducts, orderVass } = arrivalNotice
516
+ const { orderProducts, orderVass, purchaseOrder } = arrivalNotice
517
+
518
+ if (purchaseOrder) {
519
+ const bufferLocation = purchaseOrder.bufferLocation
520
+ this.bufferLocationField.value = bufferLocation?.name
521
+ this.bufferLocationField.setAttribute('location-id', bufferLocation.id)
522
+ }
508
523
 
509
524
  this.orderBizplace = arrivalNotice.bizplace
510
525
  this._hasContainer = arrivalNotice.containerNo ? true : false
@@ -1658,7 +1658,7 @@ class CreateArrivalNotice extends localize(i18next)(PageView) {
1658
1658
  async bulkUploadValidateOrderProducts(patches) {
1659
1659
  const response = await client.query({
1660
1660
  query: gql`
1661
- query bulkUploadValidateOrderProducts($orderProducts: [NewOrderProduct], $partnerBizplaceId: String!) {
1661
+ query bulkUploadValidateOrderProducts($orderProducts: [NewOrderProduct!], $partnerBizplaceId: String!) {
1662
1662
  bulkUploadValidateOrderProducts(orderProducts: $orderProducts, partnerBizplaceId: $partnerBizplaceId) {
1663
1663
  id
1664
1664
  packingType
@@ -106,7 +106,7 @@ class B2bOrderList extends localize(i18next)(PageView) {
106
106
  async pageInitialized() {
107
107
  this.isUserBelongsDomain = await this._checkUserBelongsDomain()
108
108
  const [_orderStatusReq, _bizplacesReq] = await Promise.allSettled([
109
- getCodeByName('RO_LIST_STATUS'),
109
+ getCodeByName('RO_REQUESTS_STATUS'),
110
110
  this._fetchBizplaces()
111
111
  ])
112
112
 
@@ -577,6 +577,17 @@ class B2bOrderList extends localize(i18next)(PageView) {
577
577
  })
578
578
  return { header: headerSetting, data: data }
579
579
  }
580
+
581
+ _showToast({ type, message }) {
582
+ document.dispatchEvent(
583
+ new CustomEvent('notify', {
584
+ detail: {
585
+ type,
586
+ message
587
+ }
588
+ })
589
+ )
590
+ }
580
591
  }
581
592
 
582
593
  window.customElements.define('b2b-order-list', B2bOrderList)
@@ -6,6 +6,7 @@ import '../batch-generate-single-picking-worksheet-popup'
6
6
  import gql from 'graphql-tag'
7
7
  import { css, html } from 'lit-element'
8
8
 
9
+ import { GhostPrint } from '@operato/ghost-print'
9
10
  import { getCodeByName } from '@things-factory/code-base'
10
11
  import { i18next, localize } from '@things-factory/i18n-base'
11
12
  import { openPopup } from '@things-factory/layout-base'
@@ -15,6 +16,11 @@ import { isMobileDevice } from '@things-factory/utils'
15
16
 
16
17
  import { ORDER_STATUS } from '../../../constants'
17
18
 
19
+ const HEADER_JSON = {
20
+ 'Content-Type': 'application/json',
21
+ Accept: 'application/json'
22
+ }
23
+
18
24
  class B2cOrderRequests extends localize(i18next)(PageView) {
19
25
  static get styles() {
20
26
  return [
@@ -62,6 +68,11 @@ class B2cOrderRequests extends localize(i18next)(PageView) {
62
68
  return {
63
69
  title: i18next.t('title.release_order_requests'),
64
70
  actions: [
71
+ {
72
+ title: i18next.t('button.print_invoice'),
73
+ action: this._printInvoices.bind(this),
74
+ ...CommonButtonStyles.label
75
+ },
65
76
  {
66
77
  title: i18next.t('button.generate_packing_list'),
67
78
  action: this._generatePackingList.bind(this),
@@ -179,7 +190,7 @@ class B2cOrderRequests extends localize(i18next)(PageView) {
179
190
  value: new Date().toISOString().split('T')[0]
180
191
  },
181
192
  {
182
- label: i18next.t('field.shipping_provider'),
193
+ label: i18next.t('field.transporter'),
183
194
  name: 'transporter',
184
195
  type: 'select',
185
196
  props: {
@@ -288,7 +299,7 @@ class B2cOrderRequests extends localize(i18next)(PageView) {
288
299
  {
289
300
  type: 'string',
290
301
  name: 'transporter',
291
- header: i18next.t('field.courier'),
302
+ header: i18next.t('field.transporter'),
292
303
  sortable: true,
293
304
  width: 120
294
305
  },
@@ -495,6 +506,47 @@ class B2cOrderRequests extends localize(i18next)(PageView) {
495
506
  )
496
507
  }
497
508
 
509
+ async _printInvoices() {
510
+ try {
511
+ if (this.dataGrist.selected && this.dataGrist.selected.length > 0) {
512
+ var timezoneOffSet = new Date().getTimezoneOffset().toString()
513
+ let url = new URL(window.location)
514
+
515
+ let data = await Promise.all(
516
+ this.dataGrist.selected.map(async x => {
517
+ return x.id
518
+ })
519
+ )
520
+
521
+ let response = await fetch(`/view_invoices/${timezoneOffSet}`, {
522
+ method: 'POST',
523
+ credentials: 'include',
524
+ headers: HEADER_JSON,
525
+ body: JSON.stringify({ roIds: data })
526
+ }).then(function (response) {
527
+ return response.text()
528
+ })
529
+
530
+ this._callPrintDialog(response)
531
+
532
+ // navigate(`print_invoices/${data}`)
533
+ } else {
534
+ throw new Error(`Please select a record.`)
535
+ }
536
+ } catch (e) {
537
+ this._showToast(e)
538
+ }
539
+ }
540
+
541
+ async _callPrintDialog(contentSource) {
542
+ GhostPrint.print({
543
+ srcdoc: contentSource,
544
+ onfinish: () => {
545
+ this._showToast({ message: i18next.t('text.document_has_been_generated') })
546
+ }
547
+ })
548
+ }
549
+
498
550
  _compareValues(key, order = 'asc') {
499
551
  return function innerSort(a, b) {
500
552
  if (!a.hasOwnProperty(key) || !b.hasOwnProperty(key)) {
@@ -547,7 +599,7 @@ class B2cOrderRequests extends localize(i18next)(PageView) {
547
599
  type: 'string'
548
600
  },
549
601
  { header: i18next.t('field.warehouse_status'), key: 'status', width: 30, type: 'string' },
550
- { header: i18next.t('field.courier'), key: 'transporter', width: 30, type: 'string' },
602
+ { header: i18next.t('field.transporter'), key: 'transporter', width: 30, type: 'string' },
551
603
  { header: i18next.t('field.delivery_address'), key: 'deliveryAddress1', width: 30, type: 'string' },
552
604
  { header: i18next.t('field.attention_to'), key: 'attentionTo', width: 30, type: 'string' },
553
605
  { header: i18next.t('field.phone'), key: 'phone1', width: 30, type: 'string' }
@@ -252,6 +252,8 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
252
252
  } else {
253
253
  this._warehouseTransportInput.checked = true
254
254
  this._warehouseTransport = true
255
+ this._exportOptionInput.checked = false
256
+ this._exportOption = false
255
257
  }
256
258
  this._validateTransport()
257
259
  }}"
@@ -269,6 +271,8 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
269
271
  if (this._warehouseTransport) {
270
272
  this._ownTransportInput.checked = false
271
273
  this._ownTransport = false
274
+ this._exportOptionInput.checked = false
275
+ this._exportOption = false
272
276
  } else {
273
277
  this._ownTransportInput.checked = true
274
278
  this._ownTransport = true
@@ -288,6 +292,16 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
288
292
  ?hidden="${!this._checkTransport}"
289
293
  @change="${e => {
290
294
  this._exportOption = e.currentTarget.checked
295
+ if (this._exportOption == true) {
296
+ this._warehouseTransportInput.checked = false
297
+ this._warehouseTransport = false
298
+ this._ownTransportInput.checked = true
299
+ this._ownTransport = true
300
+ }
301
+ if (this._warehouseTransport) {
302
+ this._exportOptionInput.checked = false
303
+ this._exportOption = false
304
+ }
291
305
  }}"
292
306
  />
293
307
  <label for="exportOption" ?hidden="${!this._checkTransport}">${i18next.t('label.export')}</label>
@@ -294,7 +294,8 @@ class ReleaseOrderDetail extends connect(store)(localize(i18next)(PageView)) {
294
294
  <input name="refNo3" ?readonly="${!this?._editable}" />
295
295
 
296
296
  <label>${i18next.t('label.release_date')}</label>
297
- <input name="releaseDate" type="date" ?readonly="${!this?._editable}" required />
297
+ <input name="releaseDate" type="date" ?readonly="${!this
298
+ ?._editable}" min="${this._getStdDate()}" required />
298
299
 
299
300
  <label ?hidden="${!this._ownTransport}">${i18next.t('label.co_no')}</label>
300
301
  <input name="collectionOrderNo" ?hidden="${!this._ownTransport}" ?readonly="${!this?._editable}" />
@@ -209,17 +209,18 @@ class ContactPointSelectorPopup extends localize(i18next)(LitElement) {
209
209
 
210
210
  const response = await client.query({
211
211
  query: gql`
212
- query contactPoints(($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
213
- contactPoints(filters: $filters, pagination: $pagination, sortings: $sortings) {) {
214
- items {
215
- id
216
- name
217
- companyName
218
- email
219
- address
220
- billingAddress
212
+ query contactPoints($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
213
+ contactPoints(filters: $filters, pagination: $pagination, sortings: $sortings) {
214
+ items {
215
+ id
216
+ name
217
+ companyName
218
+ email
219
+ address
220
+ billingAddress
221
+ }
222
+ total
221
223
  }
222
- total
223
224
  }
224
225
  `,
225
226
  variables: {
@@ -342,7 +342,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
342
342
  <barcode-scanable-input name="cartonId" custom-input></barcode-scanable-input>
343
343
  `
344
344
  : html`
345
- <label>${i18next.t('label.lot_barcode')}</label>
345
+ <label>${i18next.t('label.lot_id')}</label>
346
346
  <barcode-scanable-input name="palletId" custom-input></barcode-scanable-input>
347
347
  `}
348
348
  ${this._enableProductScanning
@@ -1474,6 +1474,8 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1474
1474
  .releaseGoodNo="${this.releaseGoodNo}"
1475
1475
  @reusable-pallet-info="${e => {
1476
1476
  this._reusablePalletList = e.detail
1477
+ const plasticPallet = this._reusablePalletList.records.map(itm => itm.name)
1478
+ this._worksheetInfo.plasticPallet = plasticPallet.toString()
1477
1479
  }}"
1478
1480
  ></outbound-reusable-pallet>
1479
1481
  `,
@@ -167,7 +167,7 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
167
167
  attrs: ['indeterminate']
168
168
  },
169
169
  {
170
- label: i18next.t('field.courier'),
170
+ label: i18next.t('field.transporter'),
171
171
  name: 'courierOption',
172
172
  type: 'checkbox',
173
173
  props: { searchOper: 'eq' },
@@ -241,8 +241,8 @@ class SingleOutboundWorksheet extends localize(i18next)(PageView) {
241
241
  {
242
242
  type: 'boolean',
243
243
  name: 'courierOption',
244
- header: i18next.t('field.courier'),
245
- imex: { header: i18next.t('field.courier'), key: 'courierOption', width: 20, type: 'string' },
244
+ header: i18next.t('field.transporter'),
245
+ imex: { header: i18next.t('field.transporter'), key: 'courierOption', width: 20, type: 'string' },
246
246
  width: 60
247
247
  },
248
248
  {
@@ -196,7 +196,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
196
196
  <label>${i18next.t('field.cross_docking')}</label>
197
197
 
198
198
  <input name="courierOption" type="checkbox" .checked="${this.courierOption}" disabled />
199
- <label>${i18next.t('field.courier')}</label>
199
+ <label>${i18next.t('field.transporter')}</label>
200
200
 
201
201
  <input name="packingOption" type="checkbox" .checked="${this.packingOption}" disabled />
202
202
  <label>${i18next.t('field.packing')}</label>
@@ -357,7 +357,11 @@ class ElcclDailyOrderInventoryReport extends connect(store)(localize(i18next)(Pa
357
357
  })
358
358
  ]
359
359
 
360
- let data = (await this.fetchHandler({ page: 1, limit: 9999999 })).records
360
+ header.filter(hdr => hdr.type == 'date').map(hdr => (hdr.type = 'string'))
361
+
362
+ let data = (await this.fetchHandler({ page: 1, limit: 9999999 })).records.map(itm =>
363
+ flattenObject({ ...itm, createdAt: new Date(parseInt(itm.createdAt)).toLocaleDateString() })
364
+ )
361
365
 
362
366
  return { header, data }
363
367
  } catch (e) {
@@ -229,7 +229,7 @@ class ElcclDeliveryOrderSummary extends connect(store)(localize(i18next)(PageVie
229
229
 
230
230
  const response = await client.query({
231
231
  query: gql`
232
- query deliveryOrders($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
232
+ query deliveryOrderSummaryReport($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
233
233
  deliveryOrders(filters: $filters, pagination: $pagination, sortings: $sortings) {
234
234
  items {
235
235
  id
@@ -332,7 +332,7 @@ class ElcclInventoryReport extends connect(store)(localize(i18next)(PageView)) {
332
332
  _validate() {
333
333
  if (!this.searchForm.shadowRoot.querySelector('form').checkValidity())
334
334
  throw new Error(i18next.t('text.invalid_form_value'))
335
- if (!this._partnerselector.value) throw new Error(i18next.t('text.company_does_not_selected'))
335
+ if (!this._partnerselector.value) throw new Error(i18next.t('text.company_is_not_selected'))
336
336
  if (!this._fromDateInput.value) throw new Error(i18next.t('text.from_date_is_empty'))
337
337
  if (!this._toDateInput.value) throw new Error(i18next.t('text.to_date_is_empty'))
338
338
  }
@@ -370,6 +370,7 @@ class ElcclInventoryReport extends connect(store)(localize(i18next)(PageView)) {
370
370
  }
371
371
  }
372
372
 
373
+ // unused function ?
373
374
  async _bizplaceChange(e) {
374
375
  let bizplace = [{ name: 'bizplace', operator: 'eq', value: e.currentTarget.value }]
375
376
  if (e.currentTarget.value == '') {
@@ -429,6 +430,17 @@ class ElcclInventoryReport extends connect(store)(localize(i18next)(PageView)) {
429
430
  this._showToast(e)
430
431
  }
431
432
  }
433
+
434
+ _showToast({ type, message }) {
435
+ document.dispatchEvent(
436
+ new CustomEvent('notify', {
437
+ detail: {
438
+ type,
439
+ message
440
+ }
441
+ })
442
+ )
443
+ }
432
444
  }
433
445
 
434
446
  window.customElements.define('elccl-inventory-report', ElcclInventoryReport)
@@ -401,6 +401,7 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
401
401
  }
402
402
  }
403
403
 
404
+ // unused function ?
404
405
  async _bizplaceChange(e) {
405
406
  let bizplace = [{ name: 'bizplace', operator: 'eq', value: e.currentTarget.value }]
406
407
  if (e.currentTarget.value == '') {
@@ -325,45 +325,6 @@ class ProductLabelReport extends connect(store)(localize(i18next)(PageView)) {
325
325
  }
326
326
  }
327
327
 
328
- // @farishelmi any usage for this function? If no please remove.
329
- async _bizplaceChange(e) {
330
- /* let bizplace = [{ name: 'bizplace', operator: 'eq', value: e.currentTarget.value }]
331
- if (e.currentTarget.value == '') {
332
- this.searchFields
333
- this._searchFields.filter(x => x.name == 'product')[0].options = [{ name: 'All', value: '' }]
334
- this._searchFields = [...this._searchFields]
335
- } else {
336
- const response = await client.query({
337
- query: gql`
338
- query {
339
- productsByBizplace(${gqlBuilder.buildArgs({
340
- filters: [...bizplace]
341
- })}) {
342
- items {
343
- id
344
- name
345
- }
346
- }
347
- }
348
- `
349
- })
350
-
351
- if (!response.errors) {
352
- this.searchFields
353
- this._searchFields.filter(x => x.name == 'product')[0].options = [
354
- { name: 'All', value: '' },
355
- ...response.data.productsByBizplace.items.map(item => {
356
- return {
357
- name: item.name,
358
- value: item.id
359
- }
360
- })
361
- ]
362
- this._searchFields = [...this._searchFields]
363
- }
364
- } */
365
- }
366
-
367
328
  _exportableData() {
368
329
  try {
369
330
  const report = this.report
@@ -0,0 +1,73 @@
1
+ module.exports = {
2
+ useVirtualHostBasedDomain: false,
3
+ ormconfig: {
4
+ name: 'default',
5
+ type: 'postgres',
6
+ host: 'operato-instance-1.cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
7
+ database: 'operato',
8
+ username: 'operato',
9
+ password: 'abcd1234',
10
+ port: 55432,
11
+ synchronize: false,
12
+ logging: true
13
+ },
14
+ reportApiUrl: 'http://localhost:8090/rest/report/show_html',
15
+ storage: {
16
+ type: 's3',
17
+ accessKeyId: 'AKIAUQEOPWEJCDH6AR5H',
18
+ secretAccessKey: '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',
19
+ bucketName: 'opa-one'
20
+ },
21
+ port: 3000,
22
+ uploads: 'uploads',
23
+ attachmentsPath: 'attachments',
24
+ SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
25
+ logger: {
26
+ file: {
27
+ filename: 'logs/application-%DATE%.log',
28
+ datePattern: 'YYYY-MM-DD-HH',
29
+ zippedArchive: true,
30
+ maxSize: '200m',
31
+ maxFiles: '1m',
32
+ level: 'info'
33
+ }
34
+ },
35
+
36
+ email: {
37
+ host: 'smtp.office365.com',
38
+ port: 587,
39
+ secure: false, // true for 465, false for other ports
40
+ auth: {
41
+ user: 'no-reply@hatiolab.com', // generated ethereal user
42
+ pass: 'h@ti0LAB1008' // generated ethereal password
43
+ },
44
+ secureConnection: false,
45
+ tls: {
46
+ ciphers: 'SSLv3'
47
+ }
48
+ },
49
+
50
+ notification: {
51
+ fcm: {
52
+ serviceAccount: {
53
+ project_id: 'operato',
54
+ private_key:
55
+ '-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDYNOfyNjPMSeG9\nzU1qs0cpVK5cVfadcUaw5g+hkQZMOMlAA7uqW2eX4vkayj7MzbYUayH+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mdStf2jQiLmbkydHcvz9wZVvLqml67VBHhwLcwpgPULoskd34/4V0Dvzy4c\nv1Esw8H5zVqIDLeLu+VpFjZMzQrjyl6RIWbyTExEc84rVWfpQYAu3qIGOQKBgAFr\nXatEk7TdAtRNSPflTfu/rTAaSeKROjQBkvBiU8x4US1YpOBDBxUUyAtG8wKh5FHC\nfnsaGq+fM3KXJVv2R6J62mXQOfg4xyDLpWlwcBK4aSBBMoiBcsjouqSlZQlqMpdf\nZBgixqHe6U8BsFJg/6ZxC0y+e3AIss4Bo4/lb+1lAoGAFOexvaBh21K6W3inmRW4\nLlkVYJaBJ20OwokXg5aXjBiHxqmk7VLAuFbkpb5LOKH2xPILRQ0OEkn51yVymS3T\n9lLpHOFTQXt5tF2/F7NW7kaQJNlLr/h5jPi3O9XHeFmuaN2z150ZB6zzgjeGKzr8\ni+1fgTsRfDtNw8xkSH9qL1Y=\n-----END PRIVATE KEY-----\n',
56
+ client_email: 'firebase-adminsdk-xmm2e@operato.iam.gserviceaccount.com'
57
+ },
58
+ appConfig: {
59
+ apiKey: 'AIzaSyDdTM2BTLHSt2LNS0G5QB8G0i4KBXFiG7U',
60
+ projectId: 'operato',
61
+ messagingSenderId: 79537064975,
62
+ appId: '1:79537064975:web:32f53119e9c8c6ee2a277a'
63
+ },
64
+ serverKey:
65
+ 'AAAAEoTHTA8:APA91bGwt-4HT82Dfwf_VwbQaKT0_qHd0Y3tuW41udjWz5Lz0Ko0mEMD6WbHHSILvQpa6yuoGGKCMsrU7VW2qWRrUm3CYpyG9oSwshNm1tIhljAnOuUfwHCoawbVLwf9qlWpHt4dwCoc'
66
+ },
67
+ vapidKey: {
68
+ subject: 'mailto:heartyoh@hatiolab.com',
69
+ publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
70
+ privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
71
+ }
72
+ }
73
+ }
@@ -0,0 +1,113 @@
1
+ module.exports = {
2
+ useVirtualHostBasedDomain: false,
3
+
4
+ ormconfig: {
5
+ name: 'default',
6
+
7
+ type: 'postgres',
8
+
9
+ host: 'operato-instance-1.cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
10
+
11
+ database: 'operato',
12
+
13
+ username: 'operato',
14
+
15
+ password: 'abcd1234',
16
+
17
+ port: 55432,
18
+
19
+ synchronize: false,
20
+
21
+ logging: true
22
+ },
23
+
24
+ reportApiUrl: 'http://localhost:8090/rest/report/show_html',
25
+
26
+ storage: {
27
+ type: 's3',
28
+
29
+ accessKeyId: 'AKIAUQEOPWEJCDH6AR5H',
30
+
31
+ secretAccessKey: 'AuDAgmODf9EJNB24OveRhTSLV/OJy6IFFoRxe8k2',
32
+
33
+ bucketName: 'opa-one'
34
+ },
35
+
36
+ port: 3000,
37
+
38
+ uploads: 'uploads',
39
+
40
+ attachmentsPath: 'attachments',
41
+
42
+ SECRET: '0xD58F835B69D207A76CC5F84a70a1D0d4C79dfC95',
43
+
44
+ logger: {
45
+ file: {
46
+ filename: 'logs/application-%DATE%.log',
47
+
48
+ datePattern: 'YYYY-MM-DD-HH',
49
+
50
+ zippedArchive: true,
51
+
52
+ maxSize: '200m',
53
+
54
+ maxFiles: '1m',
55
+
56
+ level: 'info'
57
+ }
58
+ },
59
+
60
+ email: {
61
+ host: 'smtp.office365.com',
62
+
63
+ port: 587,
64
+
65
+ secure: false, // true for 465, false for other ports
66
+
67
+ auth: {
68
+ user: 'no-reply@hatiolab.com', // generated ethereal user
69
+
70
+ pass: 'h@ti0LAB1008' // generated ethereal password
71
+ },
72
+
73
+ secureConnection: false,
74
+
75
+ tls: {
76
+ ciphers: 'SSLv3'
77
+ }
78
+ },
79
+
80
+ notification: {
81
+ fcm: {
82
+ serviceAccount: {
83
+ project_id: 'operato',
84
+
85
+ private_key:
86
+ '-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqh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kFtJg3BeeBSOUHSA8TvjnA0xd83xeb\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',
87
+
88
+ client_email: 'firebase-adminsdk-xmm2e@operato.iam.gserviceaccount.com'
89
+ },
90
+
91
+ appConfig: {
92
+ apiKey: 'AIzaSyDdTM2BTLHSt2LNS0G5QB8G0i4KBXFiG7U',
93
+
94
+ projectId: 'operato',
95
+
96
+ messagingSenderId: 79537064975,
97
+
98
+ appId: '1:79537064975:web:32f53119e9c8c6ee2a277a'
99
+ },
100
+
101
+ serverKey:
102
+ 'AAAAEoTHTA8:APA91bGwt-4HT82Dfwf_VwbQaKT0_qHd0Y3tuW41udjWz5Lz0Ko0mEMD6WbHHSILvQpa6yuoGGKCMsrU7VW2qWRrUm3CYpyG9oSwshNm1tIhljAnOuUfwHCoawbVLwf9qlWpHt4dwCoc'
103
+ },
104
+
105
+ vapidKey: {
106
+ subject: 'mailto:heartyoh@hatiolab.com',
107
+
108
+ publicKey: 'BAkVkITsCXBIsYL1yeaBmx5_dn57we-ZXMjirPPHzC2dan82cdEnAio_53PQ-1_w3ykWCBPrrFAWQ_d9N4cFF0o',
109
+
110
+ privateKey: '4pmlt3Wk019u7nqU3Q_oGZE6LbUDjjf8DpmAcn9-iss'
111
+ }
112
+ }
113
+ }
@@ -0,0 +1,3 @@
1
+ # 알림
2
+
3
+ 이 알림은 Operato WMS를 위해 마크다운 형식으로 작성된 샘플입니다.
@@ -0,0 +1,3 @@
1
+ # NOTICE BOARD
2
+
3
+ This is a sample notice board written in markdown for Operato WMS.
@@ -0,0 +1,3 @@
1
+ # NOTICE BOARD
2
+
3
+ This is a sample notice board written in markdown for Operato WMS.
@@ -0,0 +1,3 @@
1
+ # NOTICE BOARD
2
+
3
+ This is a sample notice board written in markdown for Operato WMS.