@things-factory/operato-hub 4.3.299 → 4.3.301

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 (46) hide show
  1. package/dist-server/graphql/resolvers/synchronization/powrup-get-tracking-no.js +2 -1
  2. package/dist-server/graphql/resolvers/synchronization/powrup-get-tracking-no.js.map +1 -1
  3. package/dist-server/routers/api/restful-apis/unstable/add-release-order.js +12 -8
  4. package/dist-server/routers/api/restful-apis/unstable/add-release-order.js.map +1 -1
  5. package/dist-server/routers/api/restful-apis/unstable/get-release-order-list.js +1 -0
  6. package/dist-server/routers/api/restful-apis/unstable/get-release-order-list.js.map +1 -1
  7. package/dist-server/routers/api/restful-apis/v1/utils/params.js +72 -3
  8. package/dist-server/routers/api/restful-apis/v1/utils/params.js.map +1 -1
  9. package/dist-server/routers/api/restful-apis/v1/warehouse/add-release-order.js +15 -11
  10. package/dist-server/routers/api/restful-apis/v1/warehouse/add-release-order.js.map +1 -1
  11. package/dist-server/routers/api/restful-apis/v1/warehouse/dispatch-delivery-order.js +313 -0
  12. package/dist-server/routers/api/restful-apis/v1/warehouse/dispatch-delivery-order.js.map +1 -0
  13. package/dist-server/routers/api/restful-apis/v1/warehouse/get-delivery-order-list.js +50 -3
  14. package/dist-server/routers/api/restful-apis/v1/warehouse/get-delivery-order-list.js.map +1 -1
  15. package/dist-server/routers/api/restful-apis/v1/warehouse/get-do-document.js +65 -0
  16. package/dist-server/routers/api/restful-apis/v1/warehouse/get-do-document.js.map +1 -0
  17. package/dist-server/routers/api/restful-apis/v1/warehouse/get-grn-document.js +101 -0
  18. package/dist-server/routers/api/restful-apis/v1/warehouse/get-grn-document.js.map +1 -0
  19. package/dist-server/routers/api/restful-apis/v1/warehouse/get-inbound-order-details.js +3 -1
  20. package/dist-server/routers/api/restful-apis/v1/warehouse/get-inbound-order-details.js.map +1 -1
  21. package/dist-server/routers/api/restful-apis/v1/warehouse/get-release-order-details.js +96 -3
  22. package/dist-server/routers/api/restful-apis/v1/warehouse/get-release-order-details.js.map +1 -1
  23. package/dist-server/routers/api/restful-apis/v1/warehouse/get-release-order-list.js +12 -3
  24. package/dist-server/routers/api/restful-apis/v1/warehouse/get-release-order-list.js.map +1 -1
  25. package/dist-server/routers/api/restful-apis/v1/warehouse/index.js +4 -0
  26. package/dist-server/routers/api/restful-apis/v1/warehouse/index.js.map +1 -1
  27. package/dist-server/routers/api/restful-apis/v1/warehouse/update-gan-to-arrived.js +96 -0
  28. package/dist-server/routers/api/restful-apis/v1/warehouse/update-gan-to-arrived.js.map +1 -0
  29. package/openapi/unstable/outbound.yaml +8 -0
  30. package/openapi/v1/inbound.yaml +210 -0
  31. package/openapi/v1/outbound.yaml +812 -0
  32. package/package.json +17 -17
  33. package/server/graphql/resolvers/synchronization/powrup-get-tracking-no.ts +1 -0
  34. package/server/routers/api/restful-apis/unstable/add-release-order.ts +4 -0
  35. package/server/routers/api/restful-apis/unstable/get-release-order-list.ts +1 -0
  36. package/server/routers/api/restful-apis/v1/utils/params.ts +72 -3
  37. package/server/routers/api/restful-apis/v1/warehouse/add-release-order.ts +5 -1
  38. package/server/routers/api/restful-apis/v1/warehouse/dispatch-delivery-order.ts +356 -0
  39. package/server/routers/api/restful-apis/v1/warehouse/get-delivery-order-list.ts +50 -3
  40. package/server/routers/api/restful-apis/v1/warehouse/get-do-document.ts +74 -0
  41. package/server/routers/api/restful-apis/v1/warehouse/get-grn-document.ts +116 -0
  42. package/server/routers/api/restful-apis/v1/warehouse/get-inbound-order-details.ts +3 -1
  43. package/server/routers/api/restful-apis/v1/warehouse/get-release-order-details.ts +102 -4
  44. package/server/routers/api/restful-apis/v1/warehouse/get-release-order-list.ts +12 -3
  45. package/server/routers/api/restful-apis/v1/warehouse/index.ts +4 -0
  46. package/server/routers/api/restful-apis/v1/warehouse/update-gan-to-arrived.ts +109 -0
@@ -169,6 +169,9 @@ definitions:
169
169
  attentionCompany:
170
170
  type: 'string'
171
171
  example: null
172
+ ward:
173
+ type: 'string'
174
+ example: null
172
175
  city:
173
176
  type: 'string'
174
177
  example: null
@@ -366,6 +369,9 @@ definitions:
366
369
  attentionCompany:
367
370
  type: 'string'
368
371
  example: 'ABC SDN BHD'
372
+ ward:
373
+ type: 'string'
374
+ example: 'PHƯỜNG HÀNG BUỒM'
369
375
  city:
370
376
  type: 'string'
371
377
  example: 'Shah Alam'
@@ -543,6 +549,8 @@ paths:
543
549
  type: 'string'
544
550
  attentionTo:
545
551
  type: 'string'
552
+ ward:
553
+ type: 'string'
546
554
  city:
547
555
  type: 'string'
548
556
  district:
@@ -239,6 +239,9 @@ definitions:
239
239
  refNo3:
240
240
  type: 'string'
241
241
  example: 'reference doc 3'
242
+ status:
243
+ type: 'string'
244
+ example: 'INTRANSIT'
242
245
  etaDate:
243
246
  type: 'string'
244
247
  example: '2019-10-31'
@@ -263,6 +266,15 @@ definitions:
263
266
  containerSize:
264
267
  type: 'string'
265
268
  example: '5 tonnes'
269
+ bizplace:
270
+ type: 'object'
271
+ properties:
272
+ id:
273
+ type: 'string'
274
+ example: 'uuid2669-646f-42a0-8364-56f670fuuid'
275
+ name:
276
+ type: 'string'
277
+ example: 'myBizplace'
266
278
  orderProducts:
267
279
  type: 'array'
268
280
  items:
@@ -437,6 +449,128 @@ definitions:
437
449
  xml:
438
450
  name: 'GetGoodsReceivedNoteList'
439
451
 
452
+ # GetGRNDocument
453
+ GetGRNDocument:
454
+ type: 'object'
455
+ properties:
456
+ fileType:
457
+ type: 'string'
458
+ example: 'HTML'
459
+ content:
460
+ type: 'string'
461
+ example: '<!DOCTYPE html PUBLIC ... ></td>\n</tr>\n<tr valign=\"top\" style=\"height:29pt\">\n<td colspan=\"30\">\n</td>\n</tr>\n</table>\n\n</td><td width=\"50%\">&nbsp;</td></tr>\n</table>\n</body>\n</html>\n'
462
+ xml:
463
+ name: 'GetGRNDocument'
464
+
465
+ # UpdateGANtoARRIVED
466
+ UpdateGANtoARRIVED:
467
+ type: 'object'
468
+ properties:
469
+ data:
470
+ type: 'object'
471
+ properties:
472
+ id:
473
+ type: 'string'
474
+ example: '1d61cd39-f9de-4a28-8d24-981e6ea5c626'
475
+ ganNo:
476
+ type: 'string'
477
+ example: 'xxxxxx'
478
+ refNo:
479
+ type: 'string'
480
+ example: 'reference doc 1'
481
+ refNo2:
482
+ type: 'string'
483
+ example: 'reference doc 2'
484
+ refNo3:
485
+ type: 'string'
486
+ example: 'reference doc 3'
487
+ status:
488
+ type: 'string'
489
+ example: 'INTRANSIT'
490
+ etaDate:
491
+ type: 'string'
492
+ example: '2019-10-31'
493
+ ownTransport:
494
+ type: 'boolean'
495
+ example: false
496
+ importCargo:
497
+ type: 'boolean'
498
+ example: false
499
+ container:
500
+ type: 'boolean'
501
+ example: false
502
+ truckNo:
503
+ type: 'string'
504
+ example: 'ANN1020'
505
+ deliveryOrderNo:
506
+ type: 'string'
507
+ example: 'DO1905739'
508
+ containerNo:
509
+ type: 'string'
510
+ example: 'TEM10203'
511
+ containerSize:
512
+ type: 'string'
513
+ example: '5 tonnes'
514
+ bizplace:
515
+ type: 'object'
516
+ properties:
517
+ id:
518
+ type: 'string'
519
+ example: 'uuid2669-646f-42a0-8364-56f670fuuid'
520
+ name:
521
+ type: 'string'
522
+ example: 'myBizplace'
523
+ orderProducts:
524
+ type: 'array'
525
+ items:
526
+ type: 'object'
527
+ properties:
528
+ products:
529
+ type: 'object'
530
+ properties:
531
+ sku:
532
+ type: 'string'
533
+ example: '00F8Y6'
534
+ uom:
535
+ type: 'string'
536
+ example: 'UNIT'
537
+ uomValue:
538
+ type: 'integer'
539
+ format: 'double'
540
+ example: 24
541
+ batchId:
542
+ type: 'string'
543
+ example: 'batch no 1'
544
+ packingType:
545
+ type: 'string'
546
+ example: 'CARTON'
547
+ packingSize:
548
+ type: 'integer'
549
+ example: 24
550
+ qty:
551
+ type: 'integer'
552
+ example: 1
553
+ palletQty:
554
+ type: 'integer'
555
+ example: 1
556
+ supplier:
557
+ type: 'object'
558
+ properties:
559
+ name:
560
+ type: 'string'
561
+ example: 'Supplier A'
562
+ companyName:
563
+ type: 'string'
564
+ example: 'Supplier Company A'
565
+ email:
566
+ type: 'string'
567
+ example: 'email@companyA.com'
568
+ accountNo:
569
+ type: 'string'
570
+ example: 'COMPANY-ACODE'
571
+ xml:
572
+ name: 'UpdateGANtoARRIVED'
573
+
440
574
  paths:
441
575
  # add-inbound-order
442
576
  api/v1/warehouse/add-inbound-order:
@@ -725,3 +859,79 @@ paths:
725
859
  type: 'array'
726
860
  items:
727
861
  $ref: '#/definitions/GetGoodsReceivedNoteList'
862
+
863
+ # get-grn-document
864
+ api/v1/warehouse/get-grn-document:
865
+ get:
866
+ tags:
867
+ - 'Inbound'
868
+ summary: 'Get goods received note document(s).'
869
+ description: 'Get Goods Received Note Document.'
870
+ operationId: 'getGRNDocument'
871
+ consumes:
872
+ - 'application/json'
873
+ produces:
874
+ - 'application/json'
875
+ parameters:
876
+ - in: 'query'
877
+ name: 'bizplaceId'
878
+ type: 'string'
879
+ required: true
880
+ - in: 'query'
881
+ name: 'grnNo'
882
+ type: 'string'
883
+ required: true
884
+ - in: 'query'
885
+ name: 'filetype'
886
+ type: 'string'
887
+ required: true
888
+ default: 'html.'
889
+ - in: 'query'
890
+ name: 'timezoneOffSet'
891
+ type: 'integer'
892
+ description: 'optional. However certain Domain required timezoneOffset to be entered'
893
+ default: -480
894
+ responses:
895
+ '200':
896
+ description: 'successful operation'
897
+ content:
898
+ application/json:
899
+ schema:
900
+ $ref: '#/definitions/GetGRNDocument'
901
+
902
+ # update-gan-to-arrived
903
+ api/v1/warehouse/update-gan-to-arrived:
904
+ post:
905
+ tags:
906
+ - 'Inbound'
907
+ summary: 'Update Goods Arrival Notice to ARRIVED.'
908
+ description: 'Update Goods Arrival Notice to ARRIVED.'
909
+ operationId: 'updateGANtoARRIVED'
910
+ produces:
911
+ - 'application/json'
912
+ parameters:
913
+ - in: 'body'
914
+ name: 'body'
915
+ schema:
916
+ type: 'object'
917
+ properties:
918
+ data:
919
+ type: 'object'
920
+ properties:
921
+ bizplaceId:
922
+ type: 'string'
923
+ example: 'string'
924
+ required: true
925
+ ganNo:
926
+ type: 'string'
927
+ example: 'xxxxx'
928
+ required: true
929
+ responses:
930
+ '200':
931
+ description: 'success'
932
+ content:
933
+ application/json:
934
+ schema:
935
+ type: 'array'
936
+ items:
937
+ $ref: '#/definitions/UpdateGANtoARRIVED'