@things-factory/operato-wms 4.0.12 → 4.0.13

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.
@@ -1119,9 +1119,8 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1119
1119
  }
1120
1120
  }
1121
1121
 
1122
- //need to enhance
1123
- async _checkedLotScannedProduct() {
1124
- const response = await client.query({
1122
+ async fetchProductDetail(gtin, productId) {
1123
+ return await client.query({
1125
1124
  query: gql`
1126
1125
  query productDetail($gtin: String!, $productId: String!, $customerCompanyDomainId: String!) {
1127
1126
  productDetail(gtin: $gtin, productId: $productId, customerCompanyDomainId: $customerCompanyDomainId) {
@@ -1141,11 +1140,16 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1141
1140
  }
1142
1141
  `,
1143
1142
  variables: {
1144
- gtin: '',
1145
- productId: this._selectedOrderProduct.product.id,
1143
+ gtin,
1144
+ productId,
1146
1145
  customerCompanyDomainId: this.customerCompanyDomainId
1147
1146
  }
1148
1147
  })
1148
+ }
1149
+
1150
+ //need to enhance
1151
+ async _checkedLotScannedProduct() {
1152
+ const response = await this.fetchProductDetail('', this._selectedOrderProduct.product.id)
1149
1153
  if (!response.errors) {
1150
1154
  this._expirationPeriod = response.data.productDetail.product.expirationPeriod
1151
1155
  }
@@ -1153,31 +1157,8 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
1153
1157
 
1154
1158
  async _checkedScannedProduct() {
1155
1159
  try {
1156
- const response = await client.query({
1157
- query: gql`
1158
- query productDetail($gtin: String!, $productId: String!, $customerCompanyDomainId: String!) {
1159
- productDetail(gtin: $gtin, productId: $productId, customerCompanyDomainId: $customerCompanyDomainId) {
1160
- id
1161
- name
1162
- packingType
1163
- packingSize
1164
- gtin
1165
- product {
1166
- id
1167
- name
1168
- sku
1169
- isRequiredCheckExpiry
1170
- expirationPeriod
1171
- }
1172
- }
1173
- }
1174
- `,
1175
- variables: {
1176
- gtin: this.productBarcodeInput?.value || '',
1177
- productId: '',
1178
- customerCompanyDomainId: this.customerCompanyDomainId
1179
- }
1180
- })
1160
+ const response = await this.fetchProductDetail(this.productBarcodeInput?.value || '', '')
1161
+
1181
1162
  if (!response.errors) {
1182
1163
  const { product, packingSize, packingType, id } = response.data.productDetail
1183
1164
  const foundOrderProducts = this.orderProductData.records.filter(
@@ -670,6 +670,13 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
670
670
 
671
671
  if (columnName === 'bizplace' && record.before?.bizplace?.id != record.after?.bizplace?.id) {
672
672
  delete this.dataGrist._data.records[event.detail.row].product
673
+ delete this.dataGrist._data.records[event.detail.row].sku
674
+ delete this.dataGrist._data.records[event.detail.row].brand
675
+ delete this.dataGrist._data.records[event.detail.row].packingType
676
+ delete this.dataGrist._data.records[event.detail.row].packingSize
677
+ delete this.dataGrist._data.records[event.detail.row].uom
678
+ delete this.dataGrist._data.records[event.detail.row].qty
679
+ delete this.dataGrist._data.records[event.detail.row].uomValue
673
680
  }
674
681
  }
675
682
 
@@ -710,6 +717,10 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
710
717
  this.dataGrist._data.records[e.detail.row].packingSize = e.detail.after?.packingSize
711
718
  ? e.detail.after.packingSize
712
719
  : 1
720
+
721
+ this.dataGrist._data.records[e.detail.row].brand = e.detail.after?.brand ? e.detail.after.brand : ''
722
+
723
+ this.dataGrist._data.records[e.detail.row].sku = e.detail.after?.sku ? e.detail.after.sku : ''
713
724
  break
714
725
  default:
715
726
  break
@@ -717,38 +728,47 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
717
728
  }
718
729
 
719
730
  async saveInventories() {
720
- var patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
721
- patches = patches.map(row => {
722
- delete row.productUomValue
723
- if (row.bizplace) {
724
- row.bizplace = { id: row.bizplace.id }
725
- }
726
- if (row.location) {
727
- row.location = { id: row.location.id }
728
- }
729
- if (row.product) {
730
- row.product = { id: row.product.productId }
731
- }
732
- if (row.uomValue) {
733
- row.uomValue = parseFloat(row.uomValue)
734
- }
735
- return row
736
- })
737
-
738
- if (patches && patches.length) {
739
- const response = await client.mutate({
740
- mutation: gql`
741
- mutation submitInventoryChanges($patches: [InventoryPatch!]!) {
742
- submitInventoryChanges(patches: $patches)
731
+ try {
732
+ var patches = this.dataGrist.exportPatchList({ flagName: 'cuFlag' })
733
+ patches = patches.map(row => {
734
+ delete row.productUomValue
735
+ if (row.cuFlag == '+') {
736
+ if (!row.bizplace || !row.location || !row.product || !row.batchId || !row.qty || !row.uomValue) {
737
+ throw new Error(i18next.t('text.empty_value_in_list'))
743
738
  }
744
- `,
745
- variables: { patches }
739
+ }
740
+ if (row.bizplace) {
741
+ row.bizplace = { id: row.bizplace.id }
742
+ }
743
+ if (row.location) {
744
+ row.location = { id: row.location.id }
745
+ }
746
+ if (row.product) {
747
+ row.product = { id: row.product.productId }
748
+ }
749
+ if (row.uomValue) {
750
+ row.uomValue = parseFloat(row.uomValue)
751
+ }
752
+ return row
746
753
  })
747
754
 
748
- if (!response.errors) {
749
- this.dataGrist.fetch()
750
- this._showToast({ message: i18next.t('text.data_submitted_for_approval') })
755
+ if (patches && patches.length) {
756
+ const response = await client.mutate({
757
+ mutation: gql`
758
+ mutation submitInventoryChanges($patches: [InventoryPatch!]!) {
759
+ submitInventoryChanges(patches: $patches)
760
+ }
761
+ `,
762
+ variables: { patches }
763
+ })
764
+
765
+ if (!response.errors) {
766
+ this.dataGrist.fetch()
767
+ this._showToast({ message: i18next.t('text.data_submitted_for_approval') })
768
+ }
751
769
  }
770
+ } catch (e) {
771
+ this._showToast(e)
752
772
  }
753
773
  }
754
774
 
@@ -505,7 +505,7 @@ class ReverseKittingOrderDetail extends connect(store)(localize(i18next)(PageVie
505
505
  name
506
506
  description
507
507
  }
508
- orderReverseKittings {
508
+ reverseKittingOrderInventories {
509
509
  id
510
510
  name
511
511
  set
@@ -558,14 +558,14 @@ class ReverseKittingOrderDetail extends connect(store)(localize(i18next)(PageVie
558
558
  this._bizplaceName = reverseKittingOrder.bizplace.name
559
559
  this._status = reverseKittingOrder.status
560
560
  this.inventoryData = {
561
- records: reverseKittingOrder.orderReverseKittings.map(orderReverseKitting => {
561
+ records: reverseKittingOrder.reverseKittingOrderInventories.map(reverseKittingOI => {
562
562
  return {
563
- ...orderReverseKitting,
564
- ...orderReverseKitting.inventory,
565
- orderReverseKittingId: orderReverseKitting.id,
566
- productSKU: orderReverseKitting.inventory.product.sku,
567
- productName: orderReverseKitting.inventory.product.name,
568
- productCombination: this.displayProductCombination(JSON.parse(orderReverseKitting.operationGuide))
563
+ ...reverseKittingOI,
564
+ ...reverseKittingOI.inventory,
565
+ orderReverseKittingId: reverseKittingOI.id,
566
+ productSKU: reverseKittingOI.inventory.product.sku,
567
+ productName: reverseKittingOI.inventory.product.name,
568
+ productCombination: this.displayProductCombination(JSON.parse(reverseKittingOI.operationGuide))
569
569
  }
570
570
  })
571
571
  }
@@ -804,12 +804,12 @@ class ReverseKittingOrderDetail extends connect(store)(localize(i18next)(PageVie
804
804
 
805
805
  _getReverseKittingOrder() {
806
806
  return {
807
- orderReverseKittings: this._getOrderReverseKittings(),
807
+ orderReverseKittings: this._getReverseKittingOrderInventories(),
808
808
  customerBizplaceId: this._bizplaceId
809
809
  }
810
810
  }
811
811
 
812
- _getOrderReverseKittings() {
812
+ _getReverseKittingOrderInventories() {
813
813
  if (
814
814
  !this.inventoryGrist.dirtyData ||
815
815
  !this.inventoryGrist.dirtyData.records ||
@@ -141,8 +141,8 @@ class ReverseKittingPalletLabelPopup extends connect(store)(localize(i18next)(Li
141
141
 
142
142
  const response = await client.query({
143
143
  query: gql`
144
- query generateReverseKittingPalletId($targets: [PalletInfo], $type: String!) {
145
- generateReverseKittingPalletId(targets: $targets, type: $type) {
144
+ query generateReverseKittingLotId($targets: [LotInfo], $type: String!) {
145
+ generateReverseKittingLotId(targets: $targets, type: $type) {
146
146
  product {
147
147
  sku
148
148
  name
@@ -167,7 +167,7 @@ class ReverseKittingPalletLabelPopup extends connect(store)(localize(i18next)(Li
167
167
  })
168
168
 
169
169
  if (!response.errors) {
170
- const results = response.data.generateReverseKittingPalletId
170
+ const results = response.data.generateReverseKittingLotId
171
171
 
172
172
  for (let i = 0; i < results.length; i++) {
173
173
  let searchParams = new URLSearchParams()
@@ -106,7 +106,7 @@ class ExecuteReverseKitting extends connect(store)(localize(i18next)(PageView))
106
106
 
107
107
  get completable() {
108
108
  let completable = false
109
- const orderDataWithIssues = this.orderData.records.filter(orderReverseKitting => !orderReverseKitting.completed)
109
+ const orderDataWithIssues = this.orderData.records.filter(reverseKittingOI => !reverseKittingOI.completed)
110
110
  if (!orderDataWithIssues?.length) {
111
111
  completable = this.orderData.records.every(record => record.completed)
112
112
  } else {
@@ -205,7 +205,7 @@ class ExecuteReverseKitting extends connect(store)(localize(i18next)(PageView))
205
205
  name
206
206
  description
207
207
  }
208
- orderReverseKittings {
208
+ reverseKittingOrderInventories {
209
209
  id
210
210
  name
211
211
  set
@@ -255,20 +255,15 @@ class ExecuteReverseKitting extends connect(store)(localize(i18next)(PageView))
255
255
 
256
256
  if (!response.errors) {
257
257
  const reverseKittingOrder = response.data.executingReverseKittingOrder
258
- const orderReverseKittings = reverseKittingOrder.orderReverseKittings
258
+ const reverseKittingOIs = reverseKittingOrder.reverseKittingOrderInventories
259
259
  this._orderStatus = reverseKittingOrder.status
260
260
 
261
- // this._fillupForm({
262
- // ...reverseKittingOrder,
263
- // bizplace: reverseKittingOrder.bizplace.name
264
- // })
265
-
266
261
  this.orderData = {
267
- records: orderReverseKittings.map(orderReverseKitting => {
268
- const inventory = orderReverseKitting.inventory
262
+ records: reverseKittingOIs.map(reverseKittingOI => {
263
+ const inventory = reverseKittingOI.inventory
269
264
  return {
270
- ...orderReverseKitting,
271
- completed: this.checkComplete(orderReverseKitting),
265
+ ...reverseKittingOI,
266
+ completed: this.checkComplete(reverseKittingOI),
272
267
  batchId: inventory.batchId,
273
268
  palletId: inventory.palletId,
274
269
  location: inventory.location,
@@ -164,7 +164,7 @@ class PopupCombinationSets extends localize(i18next)(LitElement) {
164
164
  name
165
165
  description
166
166
  }
167
- orderReverseKittings {
167
+ reverseKittingOrderInventories {
168
168
  id
169
169
  name
170
170
  set
@@ -213,28 +213,15 @@ class PopupCombinationSets extends localize(i18next)(LitElement) {
213
213
 
214
214
  if (!response.errors) {
215
215
  const reverseKittingOrder = response.data.executingReverseKittingOrder
216
- const orderReverseKittings = reverseKittingOrder.orderReverseKittings
216
+ const reverseKittingOIs = reverseKittingOrder.reverseKittingOrderInventories
217
217
 
218
- // this.data = {
219
- // records: orderReverseKittings.map(orderReverseKitting => {
220
- // const inventory = orderReverseKitting.inventory
221
- // return {
222
- // ...orderReverseKitting,
223
- // batchId: inventory.batchId,
224
- // palletId: inventory.palletId,
225
- // location: inventory.location,
226
- // product: inventory.product
227
- // }
228
- // })
229
- // }
230
-
231
- const previousOrderReverseKittingName = this.data.name
232
- const matchedOrderReverseKitting = orderReverseKittings
233
- .filter(item => item.name === previousOrderReverseKittingName)
234
- .map(orderReverseKitting => {
235
- const inventory = orderReverseKitting.inventory
218
+ const prevReverseKittingOIName = this.data.name
219
+ const matchedReverseKittingOI = reverseKittingOIs
220
+ .filter(item => item.name === prevReverseKittingOIName)
221
+ .map(reverseKittingOI => {
222
+ const inventory = reverseKittingOI.inventory
236
223
  return {
237
- ...orderReverseKitting,
224
+ ...reverseKittingOI,
238
225
  batchId: inventory.batchId,
239
226
  palletId: inventory.palletId,
240
227
  location: inventory.location,
@@ -242,25 +229,25 @@ class PopupCombinationSets extends localize(i18next)(LitElement) {
242
229
  }
243
230
  })
244
231
 
245
- this.data = { ...matchedOrderReverseKitting[0] }
232
+ this.data = { ...matchedReverseKittingOI[0] }
246
233
 
247
234
  this.getProductCombination()
248
235
  }
249
236
  }
250
237
 
251
- async updateReverseKittingIssue(orderReverseKitting, issue) {
238
+ async updateReverseKittingIssue(reverseKittingOrder, issue) {
252
239
  try {
253
240
  if (!issue) return
254
241
  const response = await client.mutate({
255
242
  mutation: gql`
256
- mutation updateOrderReverseKitting($id: String!, $patch: OrderReverseKittingPatch!) {
257
- updateOrderReverseKitting(id: $id, patch: $patch) {
243
+ mutation updateReverseKittingOrderInventory($id: String!, $patch: ReverseKittingOrderInventoryPatch!) {
244
+ updateReverseKittingOrderInventory(id: $id, patch: $patch) {
258
245
  id
259
246
  name
260
247
  }
261
248
  }
262
249
  `,
263
- variables: { id: orderReverseKitting.id, patch: { issue } }
250
+ variables: { id: reverseKittingOrder.id, patch: { issue } }
264
251
  })
265
252
 
266
253
  if (!response.errors) {
@@ -311,7 +298,7 @@ class PopupCombinationSets extends localize(i18next)(LitElement) {
311
298
  openPopup(
312
299
  html`
313
300
  <popup-reverse-kitting-template
314
- .orderReverseKittingName="${this.data.name}"
301
+ .reverseKittingOIName="${this.data.name}"
315
302
  .data="${record}"
316
303
  @updated="${async () => {
317
304
  await this.fetchReverseKittingOrder()
@@ -13,7 +13,7 @@ import { isMobileDevice } from '@things-factory/utils'
13
13
  class PopupReverseKittingTemplate extends localize(i18next)(LitElement) {
14
14
  static get properties() {
15
15
  return {
16
- orderReverseKittingName: String,
16
+ reverseKittingOIName: String,
17
17
  data: Object,
18
18
  productSku: String,
19
19
  qty: Number,
@@ -235,11 +235,8 @@ class PopupReverseKittingTemplate extends localize(i18next)(LitElement) {
235
235
  async _fetchInventories() {
236
236
  const response = await client.query({
237
237
  query: gql`
238
- query reverseKittingInventories($orderReverseKittingName: String!, $productDetailId: String) {
239
- reverseKittingInventories(
240
- orderReverseKittingName: $orderReverseKittingName
241
- productDetailId: $productDetailId
242
- ) {
238
+ query reverseKittingInventories($reverseKittingOIName: String!, $productDetailId: String) {
239
+ reverseKittingInventories(reverseKittingOIName: $reverseKittingOIName, productDetailId: $productDetailId) {
243
240
  batchId
244
241
  packingType
245
242
  bizplace {
@@ -268,7 +265,7 @@ class PopupReverseKittingTemplate extends localize(i18next)(LitElement) {
268
265
  }
269
266
  }
270
267
  `,
271
- variables: { orderReverseKittingName: this.orderReverseKittingName, productDetailId: this.data.productDetailId }
268
+ variables: { reverseKittingOIName: this.reverseKittingOIName, productDetailId: this.data.productDetailId }
272
269
  })
273
270
 
274
271
  if (!response.errors) {
@@ -306,7 +303,7 @@ class PopupReverseKittingTemplate extends localize(i18next)(LitElement) {
306
303
  }
307
304
  `,
308
305
  variables: {
309
- name: this.orderReverseKittingName,
306
+ name: this.reverseKittingOIName,
310
307
  inventory: {
311
308
  palletId: this.palletInput.value.trim(),
312
309
  qty: parseInt(this.qtyInput.value),
@@ -344,12 +341,12 @@ class PopupReverseKittingTemplate extends localize(i18next)(LitElement) {
344
341
 
345
342
  let response = await client.mutate({
346
343
  mutation: gql`
347
- mutation undoReverseKittingInventory($orderReverseKittingName: String!, $palletId: String!) {
348
- undoReverseKittingInventory(orderReverseKittingName: $orderReverseKittingName, palletId: $palletId)
344
+ mutation undoReverseKittingInventory($reverseKittingOIName: String!, $palletId: String!) {
345
+ undoReverseKittingInventory(reverseKittingOIName: $reverseKittingOIName, palletId: $palletId)
349
346
  }
350
347
  `,
351
348
  variables: {
352
- orderReverseKittingName: this.orderReverseKittingName,
349
+ reverseKittingOIName: this.reverseKittingOIName,
353
350
  palletId: this._palletId.trim()
354
351
  }
355
352
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.0.12",
3
+ "version": "4.0.13",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -42,71 +42,71 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@operato/ghost-print": "^0.2.43",
45
- "@operato/scene-chartjs": "^0.0.15",
46
- "@operato/scene-clock": "^0.0.15",
47
- "@operato/scene-clone": "^0.0.15",
48
- "@operato/scene-compass": "^0.0.15",
49
- "@operato/scene-legend": "^0.0.15",
50
- "@operato/scene-progressbar": "^0.0.15",
51
- "@operato/scene-random": "^0.0.15",
52
- "@operato/scene-switch": "^0.0.15",
53
- "@operato/scene-wheel-sorter": "^0.0.15",
54
- "@things-factory/apptool-ui": "^4.0.12",
55
- "@things-factory/attachment-ui": "^4.0.12",
56
- "@things-factory/auth-ui": "^4.0.12",
57
- "@things-factory/barcode-ui": "^4.0.12",
58
- "@things-factory/biz-ui": "^4.0.12",
59
- "@things-factory/board-service": "^4.0.12",
60
- "@things-factory/board-ui": "^4.0.12",
61
- "@things-factory/code-ui": "^4.0.12",
62
- "@things-factory/context-ui": "^4.0.12",
63
- "@things-factory/export-ui": "^4.0.12",
64
- "@things-factory/export-ui-csv": "^4.0.12",
65
- "@things-factory/export-ui-excel": "^4.0.12",
66
- "@things-factory/fav-base": "^4.0.12",
67
- "@things-factory/form-ui": "^4.0.12",
68
- "@things-factory/grist-ui": "^4.0.12",
69
- "@things-factory/help": "^4.0.12",
70
- "@things-factory/i18n-ui": "^4.0.12",
71
- "@things-factory/id-rule-base": "^4.0.12",
72
- "@things-factory/import-ui": "^4.0.12",
73
- "@things-factory/import-ui-excel": "^4.0.12",
74
- "@things-factory/menu-ui": "^4.0.12",
75
- "@things-factory/more-ui": "^4.0.12",
76
- "@things-factory/notification": "^4.0.12",
77
- "@things-factory/pdf": "^4.0.12",
78
- "@things-factory/print-proxy-service": "^4.0.12",
79
- "@things-factory/print-service": "^4.0.12",
80
- "@things-factory/print-ui": "^4.0.12",
81
- "@things-factory/product-base": "^4.0.12",
82
- "@things-factory/resource-ui": "^4.0.12",
83
- "@things-factory/sales-ui": "^4.0.12",
84
- "@things-factory/scene-data-transform": "^4.0.12",
85
- "@things-factory/scene-excel": "^4.0.12",
86
- "@things-factory/scene-firebase": "^4.0.12",
87
- "@things-factory/scene-form": "^4.0.12",
88
- "@things-factory/scene-gauge": "^4.0.12",
89
- "@things-factory/scene-google-map": "^4.0.12",
90
- "@things-factory/scene-graphql": "^4.0.12",
45
+ "@operato/scene-chartjs": "^0.0.17",
46
+ "@operato/scene-clock": "^0.0.17",
47
+ "@operato/scene-clone": "^0.0.17",
48
+ "@operato/scene-compass": "^0.0.17",
49
+ "@operato/scene-gauge": "^0.0.17",
50
+ "@operato/scene-indoor-map": "^0.0.17",
51
+ "@operato/scene-legend": "^0.0.17",
52
+ "@operato/scene-progressbar": "^0.0.17",
53
+ "@operato/scene-random": "^0.0.17",
54
+ "@operato/scene-switch": "^0.0.17",
55
+ "@operato/scene-table": "^0.0.17",
56
+ "@operato/scene-wheel-sorter": "^0.0.17",
57
+ "@things-factory/apptool-ui": "^4.0.13",
58
+ "@things-factory/attachment-ui": "^4.0.13",
59
+ "@things-factory/auth-ui": "^4.0.13",
60
+ "@things-factory/barcode-ui": "^4.0.13",
61
+ "@things-factory/biz-ui": "^4.0.13",
62
+ "@things-factory/board-service": "^4.0.13",
63
+ "@things-factory/board-ui": "^4.0.13",
64
+ "@things-factory/code-ui": "^4.0.13",
65
+ "@things-factory/context-ui": "^4.0.13",
66
+ "@things-factory/export-ui": "^4.0.13",
67
+ "@things-factory/export-ui-csv": "^4.0.13",
68
+ "@things-factory/export-ui-excel": "^4.0.13",
69
+ "@things-factory/fav-base": "^4.0.13",
70
+ "@things-factory/form-ui": "^4.0.13",
71
+ "@things-factory/grist-ui": "^4.0.13",
72
+ "@things-factory/help": "^4.0.13",
73
+ "@things-factory/i18n-ui": "^4.0.13",
74
+ "@things-factory/id-rule-base": "^4.0.13",
75
+ "@things-factory/import-ui": "^4.0.13",
76
+ "@things-factory/import-ui-excel": "^4.0.13",
77
+ "@things-factory/menu-ui": "^4.0.13",
78
+ "@things-factory/more-ui": "^4.0.13",
79
+ "@things-factory/notification": "^4.0.13",
80
+ "@things-factory/pdf": "^4.0.13",
81
+ "@things-factory/print-proxy-service": "^4.0.13",
82
+ "@things-factory/print-service": "^4.0.13",
83
+ "@things-factory/print-ui": "^4.0.13",
84
+ "@things-factory/product-base": "^4.0.13",
85
+ "@things-factory/resource-ui": "^4.0.13",
86
+ "@things-factory/sales-ui": "^4.0.13",
87
+ "@things-factory/scene-data-transform": "^4.0.13",
88
+ "@things-factory/scene-excel": "^4.0.13",
89
+ "@things-factory/scene-firebase": "^4.0.13",
90
+ "@things-factory/scene-form": "^4.0.13",
91
+ "@things-factory/scene-google-map": "^4.0.13",
92
+ "@things-factory/scene-graphql": "^4.0.13",
91
93
  "@things-factory/scene-half-roundrect": "^4.0.9",
92
- "@things-factory/scene-indoor-map": "^4.0.12",
93
- "@things-factory/scene-label": "^4.0.12",
94
- "@things-factory/scene-marker": "^4.0.12",
95
- "@things-factory/scene-mqtt": "^4.0.12",
96
- "@things-factory/scene-news-ticker": "^4.0.12",
97
- "@things-factory/scene-restful": "^4.0.12",
98
- "@things-factory/scene-tab": "^4.0.12",
99
- "@things-factory/scene-table": "^4.0.12",
100
- "@things-factory/scene-visualizer": "^4.0.12",
101
- "@things-factory/setting-ui": "^4.0.12",
102
- "@things-factory/system-ui": "^4.0.12",
103
- "@things-factory/transport-base": "^4.0.12",
104
- "@things-factory/tutorial-ui": "^4.0.12",
105
- "@things-factory/warehouse-base": "^4.0.12",
106
- "@things-factory/worksheet-base": "^4.0.12"
94
+ "@things-factory/scene-label": "^4.0.13",
95
+ "@things-factory/scene-marker": "^4.0.13",
96
+ "@things-factory/scene-mqtt": "^4.0.13",
97
+ "@things-factory/scene-news-ticker": "^4.0.13",
98
+ "@things-factory/scene-restful": "^4.0.13",
99
+ "@things-factory/scene-tab": "^4.0.13",
100
+ "@things-factory/scene-visualizer": "^4.0.13",
101
+ "@things-factory/setting-ui": "^4.0.13",
102
+ "@things-factory/system-ui": "^4.0.13",
103
+ "@things-factory/transport-base": "^4.0.13",
104
+ "@things-factory/tutorial-ui": "^4.0.13",
105
+ "@things-factory/warehouse-base": "^4.0.13",
106
+ "@things-factory/worksheet-base": "^4.0.13"
107
107
  },
108
108
  "devDependencies": {
109
- "@things-factory/builder": "^4.0.12"
109
+ "@things-factory/builder": "^4.0.13"
110
110
  },
111
- "gitHead": "29d59ff95fcb473cb43c6f798cd04f3ec3a779a0"
111
+ "gitHead": "a542fdd4e7c447c3b571fe91c92f5919561bdc2c"
112
112
  }
@@ -1,73 +0,0 @@
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+sei8044Q\nJIyl6f26dNX1VT3UgTmSmCS0v48EBEZH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oskd34/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
- }
@@ -1,113 +0,0 @@
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-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDYNOfyNjPMSeG9\nzU1qs0cpVK5cVfadcUaw5g+hkQZMOMlAA7uqW2eX4vkayj7MzbYUayH+sei8044Q\nJ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mbkydHcvz9wZVvLqml67VBHhwLcwpgPULoskd34/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
- }