@things-factory/operato-hub 4.3.103 → 4.3.104

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/openapi/v1.yaml CHANGED
@@ -12,21 +12,27 @@ info:
12
12
  name: MIT
13
13
  url: http://mit-license.org/
14
14
  tags:
15
- - name: 'product'
15
+ - name: 'Authentication'
16
+ - name: 'Bizplace'
17
+ - name: 'Partner'
18
+ - name: 'Contact Point'
19
+ - name: 'Product'
16
20
  description: 'API for read, create and update products'
17
- - name: 'inbound'
21
+ - name: 'Marketplace'
22
+ - name: 'Inbound'
18
23
  description: 'API to create and get inbound order list and detail'
19
- - name: 'outbound'
24
+ - name: 'Outbound'
20
25
  description: 'API to create and get outbound order list and detail'
21
- - name: 'inventory'
26
+ - name: 'Inventory'
22
27
  description: 'API to get inventory information from WMS'
23
28
  schemes:
24
29
  - 'https'
25
30
  - 'http'
26
31
  servers:
27
- - url: '/api/v1'
32
+ - url: '/oauth'
28
33
 
29
- components:
34
+ components: # test
35
+ # Authentorize Button
30
36
  securitySchemes:
31
37
  basicAuth:
32
38
  type: http
@@ -48,6 +54,31 @@ components:
48
54
  LMD: last-mile delivery system
49
55
  FREIGHT: freight system
50
56
  FLEET: fleet system
57
+ # Schemas at the bottom
58
+ schemas:
59
+ # Response Code
60
+ API Response Code:
61
+ type: object
62
+ properties:
63
+ E00:
64
+ type: No Errors
65
+ HTTP Response Status Code: 200 OK
66
+ E01:
67
+ type: 'Invalid parameter value: {{parameter}}'
68
+ HTTP Response Status Code: 400 Bad Request
69
+ E02:
70
+ type: 'Unexpected parameter: {{parameter}}'
71
+ HTTP Response Status Code: 400 Bad Request
72
+ E03:
73
+ type: 'Missing parameter: {{parameter}}'
74
+ HTTP Response Status Code: 400 Bad Request
75
+ E04:
76
+ type: 'Resource not found: {{parameter}}'
77
+ HTTP Response Status Code: 404 Not Found
78
+ E05:
79
+ type: 'Duplicate entry: {{parameter}}'
80
+ HTTP Response Status Code: 409 Conflict
81
+
51
82
 
52
83
  security:
53
84
  - basicAuth: []
@@ -67,7 +98,7 @@ responses:
67
98
  securityDefinitions:
68
99
  wms_auth:
69
100
  type: 'oauth2'
70
- authorizationUrl: 'http://petstore.swagger.io/oauth/dialog'
101
+ authorizationUrl: 'http://petstore.swagger.io/oauth/dialog' # <-- i don't know why it's still here
71
102
  flow: 'implicit'
72
103
  scopes:
73
104
  write:product: 'modify product in specific company id'
@@ -86,3 +117,4 @@ securityDefinitions:
86
117
  externalDocs:
87
118
  description: 'Find out about our release notes'
88
119
  url: 'https://developer.myoperato.com/release_notes'
120
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-hub",
3
- "version": "4.3.103",
3
+ "version": "4.3.104",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -106,7 +106,7 @@
106
106
  "@things-factory/shell": "^4.3.99",
107
107
  "@things-factory/system-ui": "^4.3.99",
108
108
  "@things-factory/warehouse-base": "^4.3.103",
109
- "@things-factory/worksheet-base": "^4.3.103",
109
+ "@things-factory/worksheet-base": "^4.3.104",
110
110
  "koa2-swagger-ui": "^5.0.2",
111
111
  "swagger-jsdoc": "^5.0.0",
112
112
  "yamljs": "^0.3.0"
@@ -117,5 +117,5 @@
117
117
  "resolutions": {
118
118
  "core-js": "^3.16.0"
119
119
  },
120
- "gitHead": "f67847c87df7aa8d7857d5198fe47edb2672cb9d"
120
+ "gitHead": "de723f0bdb43ffb3456754911ffd3e4cb59890b2"
121
121
  }
@@ -1,549 +0,0 @@
1
- definitions:
2
- MarketplaceStore:
3
- type: 'object'
4
- properties:
5
- name:
6
- type: 'string'
7
- platform:
8
- type: 'string'
9
- eTrax:
10
- type: 'boolean'
11
- storeName:
12
- type: 'string'
13
- isAutoUpdateStockQty:
14
- type: 'boolean'
15
- isAutoUpdateShipment:
16
- type: 'boolean'
17
- storeId:
18
- type: 'string'
19
- countryCode:
20
- type: 'string'
21
- status:
22
- type: 'string'
23
- updatedAt:
24
- type: 'datetime'
25
- example: '2021-01-14 14:32:15'
26
- xml:
27
- name: 'MarketplaceStore'
28
- MarketplaceOrder:
29
- type: 'object'
30
- required:
31
- - 'orderNo'
32
- - 'marketplaceOrderItems'
33
- properties:
34
- orderNo:
35
- type: 'string'
36
- orderNo:
37
- type: 'string'
38
- example: 'SGD'
39
- itemCount:
40
- type: 'integer'
41
- format: 'int32'
42
- paymentMethod:
43
- type: 'string'
44
- remark:
45
- type: 'string'
46
- giftOption:
47
- type: 'boolean'
48
- default: false
49
- orderCreatedAt:
50
- type: 'datetime'
51
- example: '2021-01-14 14:32:15'
52
- orderUpdatedAt:
53
- type: 'datetime'
54
- example: '2021-01-14 14:32:15'
55
- marketplaceOrderItems:
56
- type: 'array'
57
- items:
58
- type: 'object'
59
- required:
60
- - 'qty'
61
- - 'orderItemId'
62
- properties:
63
- marketplaceProductVariation:
64
- type: 'object'
65
- properties:
66
- variationId:
67
- type: 'string'
68
- sku:
69
- type: 'string'
70
- variationSku:
71
- type: 'string'
72
- variationName:
73
- type: 'string'
74
- marketplaceOrderShipping:
75
- type: 'object'
76
- properties:
77
- attentionTo:
78
- type: 'string'
79
- address1:
80
- type: 'string'
81
- address2:
82
- type: 'string'
83
- address3:
84
- type: 'string'
85
- address4:
86
- type: 'string'
87
- address5:
88
- type: 'string'
89
- state:
90
- type: 'string'
91
- city:
92
- type: 'string'
93
- postCode:
94
- type: 'string'
95
- country:
96
- type: 'string'
97
- phone1:
98
- type: 'string'
99
- phone2:
100
- type: 'string'
101
- email:
102
- type: 'string'
103
- freightType:
104
- type: 'string'
105
- parcelType:
106
- type: 'string'
107
- deliveryMethod:
108
- type: 'string'
109
- totalWeight:
110
- type: 'string'
111
- totalVolume:
112
- type: 'string'
113
- transporter:
114
- type: 'string'
115
- orderItemId:
116
- type: 'string'
117
- qty:
118
- type: 'integer'
119
- minimum: 1.0
120
- format: 'int32'
121
- cancelBy:
122
- type: 'string'
123
- returnStatus:
124
- type: 'string'
125
- packageId:
126
- type: 'string'
127
- status:
128
- type: 'string'
129
- xml:
130
- name: 'MarketplaceOrder'
131
- MarketplaceOrderShipping:
132
- type: 'object'
133
- required:
134
- - 'attentionTo'
135
- - 'address1'
136
- - 'postCode'
137
- - 'country'
138
- - 'phone1'
139
- properties:
140
- attentionTo:
141
- type: 'string'
142
- address1:
143
- type: 'string'
144
- address2:
145
- type: 'string'
146
- address3:
147
- type: 'string'
148
- address4:
149
- type: 'string'
150
- address5:
151
- type: 'string'
152
- state:
153
- type: 'string'
154
- city:
155
- type: 'string'
156
- postCode:
157
- type: 'string'
158
- country:
159
- type: 'string'
160
- phone1:
161
- type: 'string'
162
- phone2:
163
- type: 'string'
164
- email:
165
- type: 'string'
166
- freightType:
167
- type: 'string'
168
- parcelType:
169
- type: 'string'
170
- deliveryMethod:
171
- type: 'string'
172
- totalWeight:
173
- type: 'string'
174
- totalVolume:
175
- type: 'string'
176
- transporter:
177
- type: 'string'
178
- marketplaceStore:
179
- type: 'object'
180
- properties:
181
- name:
182
- type: 'string'
183
- storeId:
184
- type: 'string'
185
- marketplaceOrderItems:
186
- type: 'array'
187
- items:
188
- type: 'object'
189
- required:
190
- - 'qty'
191
- - 'orderItemId'
192
- properties:
193
- marketplaceProductVariation:
194
- type: 'object'
195
- properties:
196
- variationId:
197
- type: 'string'
198
- sku:
199
- type: 'string'
200
- variationSku:
201
- type: 'string'
202
- variationName:
203
- type: 'string'
204
- orderItemId:
205
- type: 'string'
206
- qty:
207
- type: 'integer'
208
- minimum: 1.0
209
- format: 'int32'
210
- cancelBy:
211
- type: 'string'
212
- returnStatus:
213
- type: 'string'
214
- packageId:
215
- type: 'string'
216
- status:
217
- type: 'string'
218
- xml:
219
- name: 'MarketplaceOrderShipping'
220
- paths:
221
- /warehouse/{storeId}/add-marketplace-order:
222
- post:
223
- tags:
224
- - 'marketplaceOrder'
225
- description: 'Use this API to create marketplace order in Operato ecommerce omnichannel management.'
226
- operationId: 'addMarketplaceOrder'
227
- produces:
228
- - 'application/json'
229
- parameters:
230
- - in: 'path'
231
- name: 'storeId'
232
- required: true
233
- type: 'string'
234
- - in: 'body'
235
- name: 'body'
236
- description: 'Marketplace order object to be added to MMS.'
237
- required: true
238
- schema:
239
- $ref: '#/definitions/MarketplaceOrder'
240
- responses:
241
- '200':
242
- description: 'successful operation'
243
- '400':
244
- description: 'Bad request is sent'
245
- '401':
246
- description: 'Authentication Error'
247
- '404':
248
- description: 'Resource not found'
249
- '500':
250
- description: 'Server error'
251
- deprecated: false
252
- /warehouse/{storeId}/get-marketplace-order-shipping-list:
253
- get:
254
- tags:
255
- - 'marketplaceOrder'
256
- description: 'Use this API to get marketplace order shipping from MMS.'
257
- operationId: 'getMarketplaceOrderShippingList'
258
- produces:
259
- - 'application/json'
260
- parameters:
261
- - in: 'path'
262
- name: 'storeId'
263
- required: true
264
- type: 'string'
265
- - in: 'query'
266
- name: 'shippingNo'
267
- required: false
268
- type: 'string'
269
- - in: 'query'
270
- name: 'orderNo'
271
- required: false
272
- type: 'string'
273
- - in: 'query'
274
- name: 'status'
275
- required: false
276
- type: 'string'
277
- - in: 'query'
278
- name: 'fromDate'
279
- required: false
280
- type: 'string'
281
- - in: 'query'
282
- name: 'toDate'
283
- required: false
284
- type: 'string'
285
- - in: 'query'
286
- name: 'paginationEntriesPerPage'
287
- description: 'This integer value is used to specify the maximum number of entries to return in a single "page" of data. Max entries per page is 100.'
288
- type: 'integer'
289
- format: 'uint32'
290
- - in: 'query'
291
- name: 'paginationOffset'
292
- description: 'Specifies the starting entry of data to return in the current call. Default is 1. if data is more than one page, the offset can be some entry to start next call.'
293
- type: 'integer'
294
- format: 'uint32'
295
- responses:
296
- '200':
297
- description: 'successful operation'
298
- content:
299
- application/json:
300
- schema:
301
- type: 'array'
302
- items:
303
- $ref: '#/definitions/MarketplaceOrderShipping'
304
- '400':
305
- description: 'Bad request is sent'
306
- '401':
307
- description: 'Authentication Error'
308
- '404':
309
- description: 'Resource not found'
310
- '500':
311
- description: 'Server error'
312
- deprecated: false
313
- /warehouse/{storeId}/update-marketplace-shipping-order:
314
- post:
315
- tags:
316
- - 'marketplaceOrder'
317
- description: 'Use this API to update tracking no, airway bill and other information in MMS shipping order.'
318
- operationId: 'getOutboundOrderDetail'
319
- produces:
320
- - 'application/json'
321
- parameters:
322
- - in: 'path'
323
- name: 'storeId'
324
- required: true
325
- type: 'string'
326
- - in: 'body'
327
- name: 'body'
328
- description: 'orderNo is a mandatory in body, trackingNo, airwayBill and status'
329
- schema:
330
- type: 'object'
331
- required:
332
- - orderNo
333
- - trackingNo
334
- - airwayBill
335
- - status
336
- properties:
337
- orderNoRef:
338
- type: 'string'
339
- transporter:
340
- type: 'string'
341
- airwayBill:
342
- type: 'string'
343
- trackingNo:
344
- type: 'string'
345
- status:
346
- type: 'string'
347
- responses:
348
- '200':
349
- description: 'successful operation'
350
- content:
351
- application/json:
352
- schema:
353
- $ref: '#/definitions/MarketplaceOrderShipping'
354
- '400':
355
- description: 'Bad request is sent'
356
- '401':
357
- description: 'Authentication Error'
358
- '404':
359
- description: 'Resource not found'
360
- '500':
361
- description: 'Server error'
362
- deprecated: false
363
- /warehouse/{storeId}/cancel-marketplace-order:
364
- post:
365
- tags:
366
- - 'marketplaceOrder'
367
- description: 'Use this API to cancel marketplace order and set status to CANCELLED.'
368
- operationId: 'cancelMarketplaceOrder'
369
- produces:
370
- - 'application/json'
371
- parameters:
372
- - in: 'path'
373
- name: 'storeId'
374
- required: true
375
- type: 'string'
376
- - in: 'body'
377
- name: 'body'
378
- description: 'orderNo is a mandatory in body, send status as cancelled'
379
- required: true
380
- schema:
381
- type: 'object'
382
- required:
383
- - orderNo
384
- - status
385
- properties:
386
- orderNo:
387
- type: 'string'
388
- status:
389
- type: 'string'
390
- remark:
391
- type: 'string'
392
- cancelBy:
393
- type: 'string'
394
- responses:
395
- '200':
396
- description: 'successful operation'
397
- content:
398
- application/json:
399
- schema:
400
- $ref: '#/definitions/MarketplaceOrder'
401
- '400':
402
- description: 'Bad request is sent'
403
- '401':
404
- description: 'Authentication Error'
405
- '404':
406
- description: 'Resource not found'
407
- '500':
408
- description: 'Server error'
409
- deprecated: false
410
- /warehouse/{storeId}/set-marketplace-order-delivered:
411
- post:
412
- tags:
413
- - 'marketplaceOrder'
414
- description: 'Use this API to set marketplace order status to Delivered. Only for Lazada Platform'
415
- operationId: 'setMarketplaceOrderDelivered'
416
- produces:
417
- - 'application/json'
418
- parameters:
419
- - in: 'path'
420
- name: 'storeId'
421
- required: true
422
- type: 'string'
423
- - in: 'body'
424
- name: 'body'
425
- description: 'orderNo is a mandatory in body'
426
- required: true
427
- schema:
428
- type: 'object'
429
- required:
430
- - orderNo
431
- properties:
432
- orderNo:
433
- type: 'string'
434
- responses:
435
- '200':
436
- description: 'successful operation'
437
- '400':
438
- description: 'Bad request is sent'
439
- '401':
440
- description: 'Authentication Error'
441
- '404':
442
- description: 'Resource not found'
443
- '500':
444
- description: 'Server error'
445
- deprecated: false
446
- /warehouse/{storeId}/set-marketplace-order-failed-delivery:
447
- post:
448
- tags:
449
- - 'marketplaceOrder'
450
- description: 'Use this API to set marketplace order status to Failed Delivery. Only for Lazada Platform'
451
- operationId: 'setMarketplaceOrderFailedDelivery'
452
- produces:
453
- - 'application/json'
454
- parameters:
455
- - in: 'path'
456
- name: 'storeId'
457
- required: true
458
- type: 'string'
459
- - in: 'body'
460
- name: 'body'
461
- description: 'orderNo is a mandatory in body'
462
- required: true
463
- schema:
464
- type: 'object'
465
- required:
466
- - orderNo
467
- properties:
468
- orderNo:
469
- type: 'string'
470
- responses:
471
- '200':
472
- description: 'successful operation'
473
- '400':
474
- description: 'Bad request is sent'
475
- '401':
476
- description: 'Authentication Error'
477
- '404':
478
- description: 'Resource not found'
479
- '500':
480
- description: 'Server error'
481
- deprecated: false
482
- /warehouse/get-marketplace-store-list:
483
- get:
484
- tags:
485
- - 'marketplaceStore'
486
- description: 'Use this API to get marketplace stores from MMS.'
487
- operationId: 'getMarketplaceStoreList'
488
- produces:
489
- - 'application/json'
490
- responses:
491
- '200':
492
- description: 'successful operation'
493
- content:
494
- application/json:
495
- schema:
496
- type: 'array'
497
- items:
498
- $ref: '#/definitions/MarketplaceStore'
499
- '400':
500
- description: 'Bad request is sent'
501
- '401':
502
- description: 'Authentication Error'
503
- '404':
504
- description: 'Resource not found'
505
- '500':
506
- description: 'Server error'
507
- deprecated: false
508
- /warehouse/{storeId}/update-marketplace-order:
509
- post:
510
- tags:
511
- - 'marketplaceOrder'
512
- description: 'Use this API to update status in MMS order.'
513
- operationId: 'updateMarketplaceOrder'
514
- produces:
515
- - 'application/json'
516
- parameters:
517
- - in: 'path'
518
- name: 'storeId'
519
- required: true
520
- type: 'string'
521
- - in: 'body'
522
- name: 'body'
523
- description: 'orderNo and status are mandatory in body'
524
- schema:
525
- type: 'object'
526
- required:
527
- - orderNo
528
- - status
529
- properties:
530
- orderNo:
531
- type: 'string'
532
- status:
533
- type: 'string'
534
- responses:
535
- '200':
536
- description: 'successful operation'
537
- content:
538
- application/json:
539
- schema:
540
- $ref: '#/definitions/MarketplaceOrder'
541
- '400':
542
- description: 'Bad request is sent'
543
- '401':
544
- description: 'Authentication Error'
545
- '404':
546
- description: 'Resource not found'
547
- '500':
548
- description: 'Server error'
549
- deprecated: false