@things-factory/operato-hub 4.3.222 → 4.3.227
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-server/routers/internal/powrup-router.js +433 -54
- package/dist-server/routers/internal/powrup-router.js.map +1 -1
- package/dist-server/routers/internal/utils/params.js +134 -2
- package/dist-server/routers/internal/utils/params.js.map +1 -1
- package/package.json +56 -56
- package/server/routers/internal/powrup-router.ts +523 -55
- package/server/routers/internal/utils/params.ts +134 -2
|
@@ -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': ['
|
|
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: '
|
|
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,
|
|
1
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EAAE,OAAO;SACd;QACD;YACE,IAAI,EAAE,mBAAmB;YACzB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,OAAO;SACd;KACF;IACD,mBAAmB,EAAE;QACnB;YACE,IAAI,EAAE,YAAY;YAClB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,OAAO;SACd;QACD;YACE,IAAI,EAAE,mBAAmB;YACzB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,OAAO;SACd;KACF;IACD,aAAa,EAAE;QACb;YACE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,OAAO;SACd;QACD;YACE,IAAI,EAAE,YAAY;YAClB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,OAAO;SACd;KACF;IACD,gBAAgB,EAAE;QAChB;YACE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,OAAO;SACd;QACD;YACE,IAAI,EAAE,YAAY;YAClB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,OAAO;SACd;KACF;CACF,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-hub",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.227",
|
|
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.
|
|
59
|
-
"@things-factory/apptool-ui": "^4.3.
|
|
60
|
-
"@things-factory/attachment-base": "^4.3.
|
|
61
|
-
"@things-factory/auth-base": "^4.3.
|
|
62
|
-
"@things-factory/auth-ui": "^4.3.
|
|
63
|
-
"@things-factory/biz-base": "^4.3.
|
|
64
|
-
"@things-factory/biz-ui": "^4.3.
|
|
65
|
-
"@things-factory/board-service": "^4.3.
|
|
66
|
-
"@things-factory/board-ui": "^4.3.
|
|
67
|
-
"@things-factory/code-ui": "^4.3.
|
|
68
|
-
"@things-factory/component-ui": "^4.3.
|
|
69
|
-
"@things-factory/context-ui": "^4.3.
|
|
70
|
-
"@things-factory/document-template-ui": "^4.3.
|
|
71
|
-
"@things-factory/export-ui": "^4.3.
|
|
72
|
-
"@things-factory/export-ui-csv": "^4.3.
|
|
73
|
-
"@things-factory/export-ui-excel": "^4.3.
|
|
74
|
-
"@things-factory/geography": "^4.3.
|
|
75
|
-
"@things-factory/grist-ui": "^4.3.
|
|
76
|
-
"@things-factory/help": "^4.3.
|
|
77
|
-
"@things-factory/i18n-base": "^4.3.
|
|
78
|
-
"@things-factory/import-ui": "^4.3.
|
|
79
|
-
"@things-factory/import-ui-excel": "^4.3.
|
|
80
|
-
"@things-factory/integration-accounting": "^4.3.
|
|
81
|
-
"@things-factory/integration-fulfillment": "^4.3.
|
|
82
|
-
"@things-factory/integration-lmd": "^4.3.
|
|
83
|
-
"@things-factory/integration-marketplace": "^4.3.
|
|
84
|
-
"@things-factory/integration-pos": "^4.3.
|
|
85
|
-
"@things-factory/integration-sellercraft": "^4.3.
|
|
86
|
-
"@things-factory/integration-sftp": "^4.3.
|
|
87
|
-
"@things-factory/lite-menu": "^4.3.
|
|
88
|
-
"@things-factory/marketplace-base": "^4.3.
|
|
89
|
-
"@things-factory/more-ui": "^4.3.
|
|
90
|
-
"@things-factory/notification": "^4.3.
|
|
91
|
-
"@things-factory/pdf": "^4.3.
|
|
92
|
-
"@things-factory/product-ui": "^4.3.
|
|
93
|
-
"@things-factory/resource-ui": "^4.3.
|
|
94
|
-
"@things-factory/sales-base": "^4.3.
|
|
95
|
-
"@things-factory/scene-data-transform": "^4.3.
|
|
96
|
-
"@things-factory/scene-excel": "^4.3.
|
|
97
|
-
"@things-factory/scene-firebase": "^4.3.
|
|
98
|
-
"@things-factory/scene-form": "^4.3.
|
|
99
|
-
"@things-factory/scene-google-map": "^4.3.
|
|
100
|
-
"@things-factory/scene-graphql": "^4.3.
|
|
101
|
-
"@things-factory/scene-label": "^4.3.
|
|
102
|
-
"@things-factory/scene-marker": "^4.3.
|
|
103
|
-
"@things-factory/scene-mqtt": "^4.3.
|
|
104
|
-
"@things-factory/scene-restful": "^4.3.
|
|
105
|
-
"@things-factory/scene-visualizer": "^4.3.
|
|
106
|
-
"@things-factory/setting-ui": "^4.3.
|
|
107
|
-
"@things-factory/shell": "^4.3.
|
|
108
|
-
"@things-factory/system-ui": "^4.3.
|
|
109
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
110
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
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.
|
|
117
|
+
"@things-factory/builder": "^4.3.227"
|
|
118
118
|
},
|
|
119
119
|
"resolutions": {
|
|
120
120
|
"core-js": "^3.16.0"
|
|
121
121
|
},
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "e745df475dd3ee67be6d42b3e8a273f07a7a11bc"
|
|
123
123
|
}
|