@things-factory/operato-hub 4.3.222 → 4.3.228

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.
@@ -2,12 +2,31 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.reqParams = exports.params = void 0;
4
4
  exports.params = {
5
- 'create-user': ['userOriginId', 'name', 'description', 'email', 'password', 'status']
5
+ 'create-user': ['refUserId', 'name', 'description', 'email', 'password', 'status'],
6
+ 'update-user': ['id', 'name', 'description', 'password', 'status'],
7
+ 'create-company': ['refCompanyId', 'userId', 'name', 'description', 'brn', 'address', 'postalCode', 'type', 'status'],
8
+ 'update-company': ['userId', 'id', 'name', 'description', 'brn', 'address', 'postalCode'],
9
+ 'create-bizplace': [
10
+ 'refBizplaceId',
11
+ 'name',
12
+ 'description',
13
+ 'address',
14
+ 'postalCode',
15
+ 'latlng',
16
+ 'extType',
17
+ 'companyId',
18
+ 'userId'
19
+ ],
20
+ 'update-bizplace': ['id', 'name', 'description', 'address', 'postalCode', 'latlng', 'extType'],
21
+ 'create-partner': ['bizplaceId', 'partnerBizplaceId', 'requesterId'],
22
+ 'terminate-partner': ['bizplaceId', 'partnerBizplaceId'],
23
+ 'invite-user': ['userId', 'bizplaceId'],
24
+ 'terminate-user': ['userId', 'bizplaceId']
6
25
  };
7
26
  exports.reqParams = {
8
27
  'create-user': [
9
28
  {
10
- name: 'userOriginId',
29
+ name: 'refUserId',
11
30
  required: true,
12
31
  type: 'field'
13
32
  },
@@ -26,6 +45,119 @@ exports.reqParams = {
26
45
  required: true,
27
46
  type: 'field'
28
47
  }
48
+ ],
49
+ 'update-user': [
50
+ {
51
+ name: 'id',
52
+ required: true,
53
+ type: 'field'
54
+ }
55
+ ],
56
+ 'create-company': [
57
+ {
58
+ name: 'name',
59
+ required: true,
60
+ type: 'field'
61
+ },
62
+ {
63
+ name: 'refCompanyId',
64
+ required: true,
65
+ type: 'field'
66
+ },
67
+ {
68
+ name: 'userId',
69
+ required: true,
70
+ type: 'field'
71
+ }
72
+ ],
73
+ 'update-company': [
74
+ {
75
+ name: 'userId',
76
+ required: true,
77
+ type: 'field'
78
+ },
79
+ {
80
+ name: 'id',
81
+ required: true,
82
+ type: 'field'
83
+ }
84
+ ],
85
+ 'create-bizplace': [
86
+ {
87
+ name: 'name',
88
+ required: true,
89
+ type: 'field'
90
+ },
91
+ {
92
+ name: 'userId',
93
+ required: true,
94
+ type: 'field'
95
+ },
96
+ {
97
+ name: 'companyId',
98
+ required: true,
99
+ type: 'field'
100
+ },
101
+ {
102
+ name: 'refBizplaceId',
103
+ required: true,
104
+ type: 'field'
105
+ }
106
+ ],
107
+ 'update-bizplace': [
108
+ {
109
+ name: 'id',
110
+ required: true,
111
+ type: 'field'
112
+ }
113
+ ],
114
+ 'create-partner': [
115
+ {
116
+ name: 'bizplaceId',
117
+ required: true,
118
+ type: 'field'
119
+ },
120
+ {
121
+ name: 'partnerBizplaceId',
122
+ required: true,
123
+ type: 'field'
124
+ }
125
+ ],
126
+ 'terminate-partner': [
127
+ {
128
+ name: 'bizplaceId',
129
+ required: true,
130
+ type: 'field'
131
+ },
132
+ {
133
+ name: 'partnerBizplaceId',
134
+ required: true,
135
+ type: 'field'
136
+ }
137
+ ],
138
+ 'invite-user': [
139
+ {
140
+ name: 'userId',
141
+ required: true,
142
+ type: 'field'
143
+ },
144
+ {
145
+ name: 'bizplaceId',
146
+ required: true,
147
+ type: 'field'
148
+ }
149
+ ],
150
+ 'terminate-user': [
151
+ {
152
+ name: 'userId',
153
+ required: true,
154
+ type: 'field'
155
+ },
156
+ {
157
+ name: 'bizplaceId',
158
+ required: true,
159
+ type: 'field'
160
+ }
29
161
  ]
30
162
  };
31
163
  //# sourceMappingURL=params.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"params.js","sourceRoot":"","sources":["../../../../server/routers/internal/utils/params.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IACpB,aAAa,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAC;CACtF,CAAA;AAEY,QAAA,SAAS,GAAG;IACvB,aAAa,EAAE;QACb;YACE,IAAI,EAAE,cAAc;YACpB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,OAAO;SACd;QACD;YACE,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,OAAO;SACd;QACD;YACE,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,OAAO;SACd;QACD;YACE,IAAI,EAAE,UAAU;YAChB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,OAAO;SACd;KACF;CACF,CAAA"}
1
+ {"version":3,"file":"params.js","sourceRoot":"","sources":["../../../../server/routers/internal/utils/params.ts"],"names":[],"mappings":"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"}
@@ -155,6 +155,14 @@ definitions:
155
155
  childProductDetail:
156
156
  type: 'string'
157
157
  example: 'string'
158
+ productBarcodes:
159
+ type: 'array'
160
+ items:
161
+ type: 'object'
162
+ properties:
163
+ gtin:
164
+ type: 'string'
165
+ example: 'string'
158
166
  xml:
159
167
  name: 'AddProduct'
160
168
 
@@ -314,6 +322,14 @@ definitions:
314
322
  childProductDetail:
315
323
  type: 'string'
316
324
  example: 'string'
325
+ productBarcodes:
326
+ type: 'array'
327
+ items:
328
+ type: 'object'
329
+ properties:
330
+ gtin:
331
+ type: 'string'
332
+ example: 'string'
317
333
  totalCount:
318
334
  type: 'integer'
319
335
  example: 1
@@ -514,6 +530,14 @@ paths:
514
530
  childProductDetail:
515
531
  type: 'string'
516
532
  example: 'string'
533
+ productBarcodes:
534
+ type: 'array'
535
+ items:
536
+ type: 'object'
537
+ properties:
538
+ gtin:
539
+ type: 'string'
540
+ example: 'string'
517
541
  responses:
518
542
  '200':
519
543
  description: 'success'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-hub",
3
- "version": "4.3.222",
3
+ "version": "4.3.228",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -55,69 +55,69 @@
55
55
  "@operato/scene-tab": "^0.1.8",
56
56
  "@operato/scene-table": "^0.1.8",
57
57
  "@operato/scene-wheel-sorter": "^0.1.8",
58
- "@things-factory/api": "^4.3.190",
59
- "@things-factory/apptool-ui": "^4.3.179",
60
- "@things-factory/attachment-base": "^4.3.179",
61
- "@things-factory/auth-base": "^4.3.179",
62
- "@things-factory/auth-ui": "^4.3.179",
63
- "@things-factory/biz-base": "^4.3.179",
64
- "@things-factory/biz-ui": "^4.3.179",
65
- "@things-factory/board-service": "^4.3.186",
66
- "@things-factory/board-ui": "^4.3.179",
67
- "@things-factory/code-ui": "^4.3.179",
68
- "@things-factory/component-ui": "^4.3.159",
69
- "@things-factory/context-ui": "^4.3.179",
70
- "@things-factory/document-template-ui": "^4.3.179",
71
- "@things-factory/export-ui": "^4.3.179",
72
- "@things-factory/export-ui-csv": "^4.3.179",
73
- "@things-factory/export-ui-excel": "^4.3.179",
74
- "@things-factory/geography": "^4.3.186",
75
- "@things-factory/grist-ui": "^4.3.179",
76
- "@things-factory/help": "^4.3.179",
77
- "@things-factory/i18n-base": "^4.3.179",
78
- "@things-factory/import-ui": "^4.3.179",
79
- "@things-factory/import-ui-excel": "^4.3.179",
80
- "@things-factory/integration-accounting": "^4.3.219",
81
- "@things-factory/integration-fulfillment": "^4.3.219",
82
- "@things-factory/integration-lmd": "^4.3.221",
83
- "@things-factory/integration-marketplace": "^4.3.221",
84
- "@things-factory/integration-pos": "^4.3.219",
85
- "@things-factory/integration-sellercraft": "^4.3.221",
86
- "@things-factory/integration-sftp": "^4.3.219",
87
- "@things-factory/lite-menu": "^4.3.186",
88
- "@things-factory/marketplace-base": "^4.3.221",
89
- "@things-factory/more-ui": "^4.3.179",
90
- "@things-factory/notification": "^4.3.186",
91
- "@things-factory/pdf": "^4.3.159",
92
- "@things-factory/product-ui": "^4.3.204",
93
- "@things-factory/resource-ui": "^4.3.179",
94
- "@things-factory/sales-base": "^4.3.222",
95
- "@things-factory/scene-data-transform": "^4.3.159",
96
- "@things-factory/scene-excel": "^4.3.159",
97
- "@things-factory/scene-firebase": "^4.3.159",
98
- "@things-factory/scene-form": "^4.3.159",
99
- "@things-factory/scene-google-map": "^4.3.159",
100
- "@things-factory/scene-graphql": "^4.3.159",
101
- "@things-factory/scene-label": "^4.3.179",
102
- "@things-factory/scene-marker": "^4.3.159",
103
- "@things-factory/scene-mqtt": "^4.3.179",
104
- "@things-factory/scene-restful": "^4.3.159",
105
- "@things-factory/scene-visualizer": "^4.3.159",
106
- "@things-factory/setting-ui": "^4.3.186",
107
- "@things-factory/shell": "^4.3.179",
108
- "@things-factory/system-ui": "^4.3.179",
109
- "@things-factory/warehouse-base": "^4.3.221",
110
- "@things-factory/worksheet-base": "^4.3.222",
58
+ "@things-factory/api": "^4.3.227",
59
+ "@things-factory/apptool-ui": "^4.3.227",
60
+ "@things-factory/attachment-base": "^4.3.227",
61
+ "@things-factory/auth-base": "^4.3.227",
62
+ "@things-factory/auth-ui": "^4.3.227",
63
+ "@things-factory/biz-base": "^4.3.227",
64
+ "@things-factory/biz-ui": "^4.3.227",
65
+ "@things-factory/board-service": "^4.3.227",
66
+ "@things-factory/board-ui": "^4.3.227",
67
+ "@things-factory/code-ui": "^4.3.227",
68
+ "@things-factory/component-ui": "^4.3.227",
69
+ "@things-factory/context-ui": "^4.3.227",
70
+ "@things-factory/document-template-ui": "^4.3.227",
71
+ "@things-factory/export-ui": "^4.3.227",
72
+ "@things-factory/export-ui-csv": "^4.3.227",
73
+ "@things-factory/export-ui-excel": "^4.3.227",
74
+ "@things-factory/geography": "^4.3.227",
75
+ "@things-factory/grist-ui": "^4.3.227",
76
+ "@things-factory/help": "^4.3.227",
77
+ "@things-factory/i18n-base": "^4.3.227",
78
+ "@things-factory/import-ui": "^4.3.227",
79
+ "@things-factory/import-ui-excel": "^4.3.227",
80
+ "@things-factory/integration-accounting": "^4.3.227",
81
+ "@things-factory/integration-fulfillment": "^4.3.227",
82
+ "@things-factory/integration-lmd": "^4.3.227",
83
+ "@things-factory/integration-marketplace": "^4.3.227",
84
+ "@things-factory/integration-pos": "^4.3.227",
85
+ "@things-factory/integration-sellercraft": "^4.3.227",
86
+ "@things-factory/integration-sftp": "^4.3.227",
87
+ "@things-factory/lite-menu": "^4.3.227",
88
+ "@things-factory/marketplace-base": "^4.3.227",
89
+ "@things-factory/more-ui": "^4.3.227",
90
+ "@things-factory/notification": "^4.3.227",
91
+ "@things-factory/pdf": "^4.3.227",
92
+ "@things-factory/product-ui": "^4.3.227",
93
+ "@things-factory/resource-ui": "^4.3.227",
94
+ "@things-factory/sales-base": "^4.3.227",
95
+ "@things-factory/scene-data-transform": "^4.3.227",
96
+ "@things-factory/scene-excel": "^4.3.227",
97
+ "@things-factory/scene-firebase": "^4.3.227",
98
+ "@things-factory/scene-form": "^4.3.227",
99
+ "@things-factory/scene-google-map": "^4.3.227",
100
+ "@things-factory/scene-graphql": "^4.3.227",
101
+ "@things-factory/scene-label": "^4.3.227",
102
+ "@things-factory/scene-marker": "^4.3.227",
103
+ "@things-factory/scene-mqtt": "^4.3.227",
104
+ "@things-factory/scene-restful": "^4.3.227",
105
+ "@things-factory/scene-visualizer": "^4.3.227",
106
+ "@things-factory/setting-ui": "^4.3.227",
107
+ "@things-factory/shell": "^4.3.227",
108
+ "@things-factory/system-ui": "^4.3.227",
109
+ "@things-factory/warehouse-base": "^4.3.227",
110
+ "@things-factory/worksheet-base": "^4.3.227",
111
111
  "cron-parser": "^4.7.0",
112
112
  "koa2-swagger-ui": "^5.0.2",
113
113
  "swagger-jsdoc": "^5.0.0",
114
114
  "yamljs": "^0.3.0"
115
115
  },
116
116
  "devDependencies": {
117
- "@things-factory/builder": "^4.3.179"
117
+ "@things-factory/builder": "^4.3.227"
118
118
  },
119
119
  "resolutions": {
120
120
  "core-js": "^3.16.0"
121
121
  },
122
- "gitHead": "30576ba559ca164ed077d5bd8f2cd4a0a6d90bf3"
122
+ "gitHead": "935f0815193f10459d46f5013945f4bc354c8f12"
123
123
  }
@@ -1,12 +1,12 @@
1
- import { getRepository, In, getConnection, EntityManager } from 'typeorm'
1
+ import _ from 'lodash'
2
+ import { EntityManager, getConnection, getRepository, In } from 'typeorm'
2
3
 
3
4
  import { restfulApiRouter as router } from '@things-factory/api'
4
5
  import { Bizplace } from '@things-factory/biz-base'
5
- import { Product, ProductDetail } from '@things-factory/product-base'
6
+ import { Product, ProductBarcode, ProductDetail } from '@things-factory/product-base'
6
7
 
8
+ import { businessMiddleware, loggingMiddleware, validationMiddleware } from '../middlewares'
7
9
  import { ApiError, ApiErrorHandler, throwInternalServerError } from '../utils/error-util'
8
- import _ from 'lodash'
9
- import { businessMiddleware, validationMiddleware, loggingMiddleware } from '../middlewares'
10
10
 
11
11
  router.post(
12
12
  '/v1/company/add-products',
@@ -68,10 +68,11 @@ router.post(
68
68
  let pds = await Promise.all(
69
69
  productDetails.map(async pd => {
70
70
  if (pd.packingSize < 0) throw new ApiError('E01', `${pd.gtin}: packing size cannot be negative`)
71
- const productDetails = pd
71
+ const productDetail = pd
72
+ const productBarcodes = productDetail.productBarcodes
72
73
  let pdResult = await tx.getRepository(ProductDetail).save({
73
- ...productDetails,
74
- name: productDetails.gtin,
74
+ ...productDetail,
75
+ name: productDetail.gtin,
75
76
  product: result,
76
77
  childProductDetail: null,
77
78
  childQty: 0,
@@ -83,6 +84,35 @@ router.post(
83
84
  delete pdResult.updater
84
85
  delete pdResult.product
85
86
  delete pdResult.domain
87
+
88
+ let pbs: ProductBarcode[]
89
+
90
+ if (productBarcodes) {
91
+ pbs = productBarcodes.map(pb => {
92
+ return {
93
+ ...pb,
94
+ product,
95
+ productDetail: pdResult,
96
+ domain,
97
+ creator: user,
98
+ updater: user
99
+ }
100
+ })
101
+ } else {
102
+ pbs = [
103
+ {
104
+ gtin: pd.gtin,
105
+ product,
106
+ productDetail: pdResult,
107
+ domain,
108
+ creator: user,
109
+ updater: user
110
+ }
111
+ ]
112
+ }
113
+
114
+ await tx.getRepository(ProductBarcode).save(pbs)
115
+
86
116
  return pdResult
87
117
  })
88
118
  )
@@ -3,8 +3,8 @@ import { getRepository } from 'typeorm'
3
3
  import { restfulApiRouter as router } from '@things-factory/api'
4
4
  import { Product } from '@things-factory/product-base'
5
5
 
6
+ import { businessMiddleware, loggingMiddleware, validationMiddleware } from '../middlewares'
6
7
  import { ApiError, ApiErrorHandler, throwInternalServerError } from '../utils/error-util'
7
- import { businessMiddleware, validationMiddleware, loggingMiddleware } from '../middlewares'
8
8
 
9
9
  router.get(
10
10
  '/v1/company/get-product-list',
@@ -66,7 +66,13 @@ router.get(
66
66
  auxValue4: productDetail.auxValue4,
67
67
  auxUnit5: productDetail.auxUnit5,
68
68
  auxValue5: productDetail.auxValue5,
69
- childProductDetail: productDetail.childProductDetail
69
+ childProductDetail: productDetail.childProductDetail,
70
+ productBarcodes:
71
+ productDetail?.productBarcodes.map(pb => {
72
+ return {
73
+ gtin: pb.gtin
74
+ }
75
+ }) || []
70
76
  }
71
77
  productDetails.push(productDetailDataPoint)
72
78
  }
@@ -231,7 +231,9 @@ export const params = {
231
231
  'productDetails.auxValue4',
232
232
  'productDetails.auxUnit5',
233
233
  'productDetails.auxValue5',
234
- 'productDetails.childProductDetail'
234
+ 'productDetails.childProductDetail',
235
+ 'productDetails.productBarcodes',
236
+ 'productDetails.productBarcodes.gtin'
235
237
  ],
236
238
  'add-inbound-order': [
237
239
  'bizplaceId',