@things-factory/operato-hub 4.3.329 → 4.3.331

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 (21) hide show
  1. package/dist-server/graphql/resolvers/email/send-emails.js +130 -104
  2. package/dist-server/graphql/resolvers/email/send-emails.js.map +1 -1
  3. package/dist-server/routers/api/restful-apis/v1/utils/params.js +5 -0
  4. package/dist-server/routers/api/restful-apis/v1/utils/params.js.map +1 -1
  5. package/dist-server/routers/api/restful-apis/v1/warehouse/complete-delivery-order.js +170 -0
  6. package/dist-server/routers/api/restful-apis/v1/warehouse/complete-delivery-order.js.map +1 -0
  7. package/dist-server/routers/api/restful-apis/v1/warehouse/get-inbound-order-details.js +4 -2
  8. package/dist-server/routers/api/restful-apis/v1/warehouse/get-inbound-order-details.js.map +1 -1
  9. package/dist-server/routers/api/restful-apis/v1/warehouse/get-inbound-order-list.js +4 -2
  10. package/dist-server/routers/api/restful-apis/v1/warehouse/get-inbound-order-list.js.map +1 -1
  11. package/dist-server/routers/api/restful-apis/v1/warehouse/index.js +1 -0
  12. package/dist-server/routers/api/restful-apis/v1/warehouse/index.js.map +1 -1
  13. package/openapi/v1/inbound.yaml +25 -11
  14. package/openapi/v1/outbound.yaml +477 -0
  15. package/package.json +4 -4
  16. package/server/graphql/resolvers/email/send-emails.ts +191 -154
  17. package/server/routers/api/restful-apis/v1/utils/params.ts +5 -0
  18. package/server/routers/api/restful-apis/v1/warehouse/complete-delivery-order.ts +190 -0
  19. package/server/routers/api/restful-apis/v1/warehouse/get-inbound-order-details.ts +4 -2
  20. package/server/routers/api/restful-apis/v1/warehouse/get-inbound-order-list.ts +4 -2
  21. package/server/routers/api/restful-apis/v1/warehouse/index.ts +1 -0
@@ -3,12 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const lodash_1 = __importDefault(require("lodash"));
6
7
  const typeorm_1 = require("typeorm");
7
8
  const api_1 = require("@things-factory/api");
8
9
  const sales_base_1 = require("@things-factory/sales-base");
9
- const error_util_1 = require("../utils/error-util");
10
- const lodash_1 = __importDefault(require("lodash"));
11
10
  const middlewares_1 = require("../middlewares");
11
+ const error_util_1 = require("../utils/error-util");
12
12
  api_1.restfulApiRouter.get('/v1/warehouse/get-inbound-order-list', middlewares_1.businessMiddleware, middlewares_1.validationMiddleware, middlewares_1.loggingMiddleware, async (context, next) => {
13
13
  var _a, _b, _c, _d;
14
14
  try {
@@ -48,6 +48,8 @@ api_1.restfulApiRouter.get('/v1/warehouse/get-inbound-order-list', middlewares_1
48
48
  batchId: orderProduct.batchId,
49
49
  packingType: orderProduct.packingType,
50
50
  packingSize: orderProduct.packingSize,
51
+ uom: orderProduct.uom,
52
+ uomValue: orderProduct.uomValue,
51
53
  qty: orderProduct.packQty,
52
54
  palletQty: orderProduct.palletQty
53
55
  };
@@ -1 +1 @@
1
- {"version":3,"file":"get-inbound-order-list.js","sourceRoot":"","sources":["../../../../../../server/routers/api/restful-apis/v1/warehouse/get-inbound-order-list.ts"],"names":[],"mappings":";;;;;AAAA,qCAAgD;AAEhD,6CAAgE;AAChE,2DAA0D;AAE1D,oDAAyF;AACzF,oDAAsB;AACtB,gDAA4F;AAE5F,sBAAM,CAAC,GAAG,CACR,sCAAsC,EACtC,gCAAkB,EAClB,kCAAoB,EACpB,+BAAiB,EACjB,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;;IACtB,IAAI;QACF,uCAAuC;QACvC,kCAAkC;QAClC,IAAI,MAAM,qBAAQ,OAAO,CAAC,KAAK,CAAE,CAAA;QACjC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAA;QAClD,MAAM,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,YAAY,CAAC,CAAA;QACzC,OAAO,MAAM,CAAC,YAAY,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,UAAU;YACV,KAAK;YACL,MAAM;SACP,CAAA;KACF;IAAC,OAAO,CAAC,EAAE;QACV,IAAI,CAAC,YAAY,qBAAQ;YAAE,IAAA,4BAAe,EAAC,OAAO,EAAE,CAAC,CAAC,CAAA;;YACjD,IAAA,qCAAwB,EAAC,OAAO,EAAE,CAAC,CAAC,CAAA;KAC1C;AACH,CAAC,CACF,CAAA"}
1
+ {"version":3,"file":"get-inbound-order-list.js","sourceRoot":"","sources":["../../../../../../server/routers/api/restful-apis/v1/warehouse/get-inbound-order-list.ts"],"names":[],"mappings":";;;;;AAAA,oDAAsB;AACtB,qCAAgD;AAEhD,6CAAgE;AAChE,2DAA0D;AAE1D,gDAA4F;AAC5F,oDAAyF;AAEzF,sBAAM,CAAC,GAAG,CACR,sCAAsC,EACtC,gCAAkB,EAClB,kCAAoB,EACpB,+BAAiB,EACjB,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;;IACtB,IAAI;QACF,uCAAuC;QACvC,kCAAkC;QAClC,IAAI,MAAM,qBAAQ,OAAO,CAAC,KAAK,CAAE,CAAA;QACjC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAA;QAClD,MAAM,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,YAAY,CAAC,CAAA;QACzC,OAAO,MAAM,CAAC,YAAY,CAAC,CAAA;QAC3B,IAAI,gBAAC,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE;YAC1B,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,CAAA;YAChC,OAAO,MAAM,CAAC,OAAO,CAAC,CAAA;SACvB;QACD,MAAM,CAAC,WAAW,CAAC,GAAG,IAAA,iBAAO,EAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;QAE/C,OAAO,MAAM,CAAC,UAAU,CAAC,CAAA;QACzB,OAAO,MAAM,CAAC,QAAQ,CAAC,CAAA;QACv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");
19
19
  require("./dispatch-delivery-order");
20
20
  require("./update-gan-to-arrived");
21
+ require("./complete-delivery-order");
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../server/routers/api/restful-apis/v1/warehouse/index.ts"],"names":[],"mappings":";;AAAA,+BAA4B;AAC5B,+BAA4B;AAC5B,kCAA+B;AAC/B,kCAA+B;AAC/B,qCAAkC;AAClC,kCAA+B;AAC/B,0CAAuC;AACvC,uCAAoC;AACpC,oCAAiC;AACjC,8CAA2C;AAC3C,uCAAoC;AACpC,uCAAoC;AACpC,oCAAiC;AACjC,0CAAuC;AACvC,8BAA2B;AAC3B,6BAA0B;AAC1B,qCAAkC;AAClC,mCAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../server/routers/api/restful-apis/v1/warehouse/index.ts"],"names":[],"mappings":";;AAAA,+BAA4B;AAC5B,+BAA4B;AAC5B,kCAA+B;AAC/B,kCAA+B;AAC/B,qCAAkC;AAClC,kCAA+B;AAC/B,0CAAuC;AACvC,uCAAoC;AACpC,oCAAiC;AACjC,8CAA2C;AAC3C,uCAAoC;AACpC,uCAAoC;AACpC,oCAAiC;AACjC,0CAAuC;AACvC,8BAA2B;AAC3B,6BAA0B;AAC1B,qCAAkC;AAClC,mCAAgC;AAChC,qCAAkC"}
@@ -184,6 +184,13 @@ definitions:
184
184
  packingSize:
185
185
  type: 'integer'
186
186
  example: 24
187
+ uom:
188
+ type: 'string'
189
+ example: 'UNIT'
190
+ uomValue:
191
+ type: 'integer'
192
+ format: 'double'
193
+ example: 24
187
194
  qty:
188
195
  type: 'integer'
189
196
  example: 1
@@ -302,6 +309,13 @@ definitions:
302
309
  packingSize:
303
310
  type: 'integer'
304
311
  example: 24
312
+ uom:
313
+ type: 'string'
314
+ example: 'UNIT'
315
+ uomValue:
316
+ type: 'integer'
317
+ format: 'double'
318
+ example: 24
305
319
  qty:
306
320
  type: 'integer'
307
321
  example: 1
@@ -597,7 +611,7 @@ paths:
597
611
  properties:
598
612
  bizplaceId:
599
613
  type: 'string'
600
- example: 'ed2cd631-ac50-44aa-b798-6567d7acde63''(MANDATORY)'
614
+ example: "ed2cd631-ac50-44aa-b798-6567d7acde63'(MANDATORY)"
601
615
  required: true
602
616
  refNo:
603
617
  type: 'string'
@@ -610,10 +624,10 @@ paths:
610
624
  example: 'reference doc 3'
611
625
  etaDate:
612
626
  type: 'string'
613
- example: '2019-10-31''(MANDATORY)'
627
+ example: "2019-10-31'(MANDATORY)"
614
628
  required: true
615
629
  ownTransport:
616
- type: 'boolean''(MANDATORY)'
630
+ type: "boolean'(MANDATORY)"
617
631
  example: false
618
632
  importCargo:
619
633
  type: 'boolean'
@@ -635,7 +649,7 @@ paths:
635
649
  example: '5 tonnes //compulsory when container is true'
636
650
  supplierId:
637
651
  type: 'string'
638
- example: '69a462c5-9a58-4a61-915d-7ef4c31c8937''(MANDATORY)'
652
+ example: "69a462c5-9a58-4a61-915d-7ef4c31c8937'(MANDATORY)"
639
653
  orderProducts:
640
654
  type: 'array'
641
655
  items:
@@ -652,7 +666,7 @@ paths:
652
666
  properties:
653
667
  sku:
654
668
  type: 'string'
655
- example: '00F8Y6''(MANDATORY)'
669
+ example: "00F8Y6'(MANDATORY)"
656
670
  refCode:
657
671
  type: 'string'
658
672
  example: 'string'
@@ -665,7 +679,7 @@ paths:
665
679
  example: 24
666
680
  batchId:
667
681
  type: 'string'
668
- example: 'batch no 1''(MANDATORY)'
682
+ example: "batch no 1'(MANDATORY)"
669
683
  required: true
670
684
  packingType:
671
685
  type: 'string'
@@ -711,15 +725,15 @@ paths:
711
725
  properties:
712
726
  bizplaceId:
713
727
  type: 'string'
714
- example: 'ed2cd631-ac50-44aa-b798-6567d7acde63''(MANDATORY)'
728
+ example: "ed2cd631-ac50-44aa-b798-6567d7acde63'(MANDATORY)"
715
729
  required: true
716
730
  ganNo:
717
731
  type: 'string'
718
- example: 'xxxxx''(MANDATORY)'
732
+ example: "xxxxx'(MANDATORY)"
719
733
  required: true
720
734
  remark:
721
735
  type: 'string'
722
- example: 'reference reference''(MANDATORY)'
736
+ example: "reference reference'(MANDATORY)"
723
737
  required: true
724
738
  responses:
725
739
  '200':
@@ -920,11 +934,11 @@ paths:
920
934
  properties:
921
935
  bizplaceId:
922
936
  type: 'string'
923
- example: 'string''(MANDATORY)'
937
+ example: "string'(MANDATORY)"
924
938
  required: true
925
939
  ganNo:
926
940
  type: 'string'
927
- example: 'xxxxx''(MANDATORY)'
941
+ example: "xxxxx'(MANDATORY)"
928
942
  required: true
929
943
  responses:
930
944
  '200':
@@ -1857,6 +1857,445 @@ definitions:
1857
1857
  example: 'string'
1858
1858
  xml:
1859
1859
  name: 'DispatchDeliveryOrder'
1860
+
1861
+ # CompleteDeliveryOrder
1862
+ CompleteDeliveryOrder:
1863
+ type: 'object'
1864
+ properties:
1865
+ data:
1866
+ type: 'object'
1867
+ properties:
1868
+ id:
1869
+ type: 'string'
1870
+ example: 'string'
1871
+ doNo:
1872
+ type: 'string'
1873
+ example: 'string'
1874
+ from:
1875
+ type: 'string'
1876
+ example: null
1877
+ to:
1878
+ type: 'string'
1879
+ example: null
1880
+ contactPointRefId:
1881
+ type: 'string'
1882
+ example: 'string'
1883
+ truckNo:
1884
+ type: 'string'
1885
+ example: 'string'
1886
+ transportDriver:
1887
+ type: 'string'
1888
+ example: null
1889
+ transportVehicle:
1890
+ type: 'string'
1891
+ example: null
1892
+ otherDriver:
1893
+ type: 'string'
1894
+ example: 'string'
1895
+ deliveryDate:
1896
+ type: 'string'
1897
+ example: '2023-08-15'
1898
+ status:
1899
+ type: 'string'
1900
+ example: 'DELIVERING'
1901
+ ownCollection:
1902
+ type: 'string'
1903
+ example: true
1904
+ looseItem:
1905
+ type: 'string'
1906
+ example: null
1907
+ deliveryDateTime:
1908
+ type: 'string'
1909
+ example: null
1910
+ loadWeight:
1911
+ type: 'string'
1912
+ example: null
1913
+ cargoType:
1914
+ type: 'string'
1915
+ example: null
1916
+ urgency:
1917
+ type: 'string'
1918
+ example: null
1919
+ telNo:
1920
+ type: 'string'
1921
+ example: null
1922
+ refNo:
1923
+ type: 'string'
1924
+ example: 'string'
1925
+ palletQty:
1926
+ type: 'integer'
1927
+ example: 1
1928
+ remark:
1929
+ type: 'string'
1930
+ example: 'string'
1931
+ description:
1932
+ type: 'string'
1933
+ example: null
1934
+ reusablePallet:
1935
+ type: 'string'
1936
+ example: null
1937
+ attentionTo:
1938
+ type: 'string'
1939
+ example: null
1940
+ attentionCompany:
1941
+ type: 'string'
1942
+ example: null
1943
+ city:
1944
+ type: 'string'
1945
+ example: 'PERLIS'
1946
+ country:
1947
+ type: 'string'
1948
+ example: 'MY'
1949
+ deliveryAddress1:
1950
+ type: 'string'
1951
+ example: 'string'
1952
+ phone1:
1953
+ type: 'string'
1954
+ example: '0123456789'
1955
+ postalCode:
1956
+ type: 'string'
1957
+ example: '01007'
1958
+ state:
1959
+ type: 'string'
1960
+ example: 'KANGAR'
1961
+ billingAddress:
1962
+ type: 'string'
1963
+ example: 'ssss'
1964
+ billingCity:
1965
+ type: 'string'
1966
+ example: 'PERLIS'
1967
+ billingCountry:
1968
+ type: 'string'
1969
+ example: 'MY'
1970
+ billingPostalCode:
1971
+ type: 'string'
1972
+ example: '01007'
1973
+ billingState:
1974
+ type: 'string'
1975
+ example: 'KANGAR'
1976
+ bizplace:
1977
+ id: 'string'
1978
+ name: 'string'
1979
+ description: 'string'
1980
+ domain:
1981
+ id: 'string'
1982
+ name: 'string'
1983
+ releaseGood:
1984
+ type: 'object'
1985
+ properties:
1986
+ id:
1987
+ type: 'string'
1988
+ example: 'string'
1989
+ roNo:
1990
+ type: 'string'
1991
+ example: 'string'
1992
+ description:
1993
+ type: 'string'
1994
+ example: null
1995
+ status:
1996
+ type: 'string'
1997
+ example: 'DONE'
1998
+ refNo:
1999
+ type: 'string'
2000
+ example: 'Retail Sales 20230516_01'
2001
+ refNo2:
2002
+ type: 'string'
2003
+ example: null
2004
+ refNo3:
2005
+ type: 'string'
2006
+ example: null
2007
+ truckNo:
2008
+ type: 'string'
2009
+ example: null
2010
+ exportOption:
2011
+ type: 'string'
2012
+ example: true
2013
+ ownTransport:
2014
+ type: 'string'
2015
+ example: true
2016
+ crossDocking:
2017
+ type: 'string'
2018
+ example: false
2019
+ releaseDate:
2020
+ type: 'string'
2021
+ example: '2023-05-21'
2022
+ remark:
2023
+ type: 'string'
2024
+ example: null
2025
+ courierOption:
2026
+ type: 'string'
2027
+ example: true
2028
+ packingOption:
2029
+ type: 'string'
2030
+ example: false
2031
+ type:
2032
+ type: 'string'
2033
+ example: 'b2b'
2034
+ acceptedAt:
2035
+ type: 'string'
2036
+ example: '2023-5-1T0:504.236Z'
2037
+ marketplaceOrderStatus:
2038
+ type: 'string'
2039
+ example: null
2040
+ billingAddress:
2041
+ type: 'string'
2042
+ example: null
2043
+ deliveryAddress1:
2044
+ type: 'string'
2045
+ example: null
2046
+ deliveryAddress2:
2047
+ type: 'string'
2048
+ example: null
2049
+ deliveryAddress3:
2050
+ type: 'string'
2051
+ example: null
2052
+ deliveryAddress4:
2053
+ type: 'string'
2054
+ example: null
2055
+ deliveryAddress5:
2056
+ type: 'string'
2057
+ example: null
2058
+ attentionTo:
2059
+ type: 'string'
2060
+ example: null
2061
+ attentionCompany:
2062
+ type: 'string'
2063
+ example: null
2064
+ city:
2065
+ type: 'string'
2066
+ example: null
2067
+ state:
2068
+ type: 'string'
2069
+ example: null
2070
+ postalCode:
2071
+ type: 'string'
2072
+ example: null
2073
+ country:
2074
+ type: 'string'
2075
+ example: 'MY'
2076
+ phone1:
2077
+ type: 'string'
2078
+ example: null
2079
+ phone2:
2080
+ type: 'string'
2081
+ example: null
2082
+ email:
2083
+ type: 'string'
2084
+ example: 'support@hatio.com'
2085
+ transporter:
2086
+ type: 'string'
2087
+ example: null
2088
+ trackingNo:
2089
+ type: 'string'
2090
+ example: null
2091
+ airwayBill:
2092
+ type: 'string'
2093
+ example: null
2094
+ invoice:
2095
+ type: 'string'
2096
+ example: null
2097
+ pickupAddress:
2098
+ type: 'string'
2099
+ example: null
2100
+ pickupTime:
2101
+ type: 'string'
2102
+ example: null
2103
+ handoverType:
2104
+ type: 'string'
2105
+ example: null
2106
+ dropoffAddress:
2107
+ type: 'string'
2108
+ example: null
2109
+ noOfItems:
2110
+ type: 'string'
2111
+ example: 4
2112
+ orderProducts:
2113
+ type: 'string'
2114
+ example: []
2115
+ shippingOrder:
2116
+ type: 'string'
2117
+ example: null
2118
+ orderInventories:
2119
+ type: 'array'
2120
+ items:
2121
+ type: 'object'
2122
+ properties:
2123
+ id:
2124
+ type: 'string'
2125
+ example: 'string'
2126
+ name:
2127
+ type: 'string'
2128
+ example: 'string'
2129
+ type:
2130
+ type: 'string'
2131
+ example: 'RELEASE_OF_GOODS'
2132
+ remark:
2133
+ type: 'string'
2134
+ example: null
2135
+ issue:
2136
+ type: 'string'
2137
+ example: null
2138
+ description:
2139
+ type: 'string'
2140
+ example: null
2141
+ batchId:
2142
+ type: 'string'
2143
+ example: '-'
2144
+ batchIdRef:
2145
+ type: 'string'
2146
+ example: 'string'
2147
+ packingType:
2148
+ type: 'string'
2149
+ example: 'UNIT'
2150
+ packingSize:
2151
+ type: 'string'
2152
+ example: 1
2153
+ refWorksheetId:
2154
+ type: 'string'
2155
+ example: null
2156
+ originQty:
2157
+ type: 'string'
2158
+ example: null
2159
+ inspectedQty:
2160
+ type: 'string'
2161
+ example: null
2162
+ originUomValue:
2163
+ type: 'string'
2164
+ example: null
2165
+ inspectedUomValue:
2166
+ type: 'string'
2167
+ example: null
2168
+ originBatchNo:
2169
+ type: 'string'
2170
+ example: null
2171
+ inspectedBatchNo:
2172
+ type: 'string'
2173
+ example: null
2174
+ releaseQty:
2175
+ type: 'string'
2176
+ example: 1
2177
+ pickedQty:
2178
+ type: 'string'
2179
+ example: 1
2180
+ packedQty:
2181
+ type: 'string'
2182
+ example: 0
2183
+ sortedQty:
2184
+ type: 'string'
2185
+ example: 0
2186
+ releaseUomValue:
2187
+ type: 'string'
2188
+ example: 1
2189
+ uom:
2190
+ type: 'string'
2191
+ example: 'UN'
2192
+ returnQty:
2193
+ type: 'string'
2194
+ example: null
2195
+ returnUomValue:
2196
+ type: 'string'
2197
+ example: null
2198
+ returnToLocationQty:
2199
+ type: 'string'
2200
+ example: null
2201
+ returnToLocationUomValue:
2202
+ type: 'string'
2203
+ example: null
2204
+ actualPackQty:
2205
+ type: 'string'
2206
+ example: null
2207
+ palletQty:
2208
+ type: 'string'
2209
+ example: null
2210
+ actualPalletQty:
2211
+ type: 'string'
2212
+ example: null
2213
+ crossDocking:
2214
+ type: 'string'
2215
+ example: null
2216
+ serialNumber:
2217
+ type: 'string'
2218
+ example: null
2219
+ status:
2220
+ type: 'string'
2221
+ example: 'TERMINATED'
2222
+ pickedBy:
2223
+ type: 'string'
2224
+ example: 'string'
2225
+ pickedAt:
2226
+ type: 'string'
2227
+ example: '2023-5-1T0:534.762Z'
2228
+ packedBy:
2229
+ type: 'string'
2230
+ example: null
2231
+ packedAt:
2232
+ type: 'string'
2233
+ example: null
2234
+ loadedBy:
2235
+ type: 'string'
2236
+ example: 'pikah'
2237
+ loadedAt:
2238
+ type: 'string'
2239
+ example: '2023-5-1T0:505.685Z'
2240
+ createdAt:
2241
+ type: 'string'
2242
+ example: '2023-5-1T0:546.826Z'
2243
+ updatedAt:
2244
+ type: 'string'
2245
+ example: '2023-5-1T0:508.811Z'
2246
+ domainId:
2247
+ type: 'string'
2248
+ example: 'string'
2249
+ bizplaceId:
2250
+ type: 'string'
2251
+ example: 'string'
2252
+ inventoryId:
2253
+ type: 'string'
2254
+ example: 'string'
2255
+ productId:
2256
+ type: 'string'
2257
+ example: 'string'
2258
+ arrivalNoticeId:
2259
+ type: 'string'
2260
+ example: null
2261
+ releaseGoodId:
2262
+ type: 'string'
2263
+ example: 'string'
2264
+ replenishmentId:
2265
+ type: 'string'
2266
+ example: null
2267
+ inventoryCheckId:
2268
+ type: 'string'
2269
+ example: null
2270
+ deliveryOrderId:
2271
+ type: 'string'
2272
+ example: 'string'
2273
+ transferOrderId:
2274
+ type: 'string'
2275
+ example: null
2276
+ returnOrderId:
2277
+ type: 'string'
2278
+ example: null
2279
+ orderProductId:
2280
+ type: 'string'
2281
+ example: 'string'
2282
+ originLocationId:
2283
+ type: 'string'
2284
+ example: null
2285
+ inspectedLocationId:
2286
+ type: 'string'
2287
+ example: null
2288
+ binLocationId:
2289
+ type: 'string'
2290
+ example: 'string'
2291
+ creatorId:
2292
+ type: 'string'
2293
+ example: 'string'
2294
+ updaterId:
2295
+ type: 'string'
2296
+ example: 'string'
2297
+ xml:
2298
+ name: 'CompleteDeliveryOrder'
1860
2299
 
1861
2300
  paths:
1862
2301
  # add-release-order
@@ -2658,3 +3097,41 @@ paths:
2658
3097
  type: 'array'
2659
3098
  items:
2660
3099
  $ref: '#/definitions/DispatchDeliveryOrder'
3100
+
3101
+ # complete-delivery-order
3102
+ api/v1/warehouse/complete-delivery-order:
3103
+ post:
3104
+ tags:
3105
+ - 'Outbound'
3106
+ summary: 'Complete delivery order.'
3107
+ description: 'Complete Delivery Order'
3108
+ operationId: 'CompleteDeliveryOrder'
3109
+ produces:
3110
+ - 'application/json'
3111
+ parameters:
3112
+ - in: 'body'
3113
+ name: 'body'
3114
+ schema:
3115
+ type: 'object'
3116
+ properties:
3117
+ data:
3118
+ type: 'object'
3119
+ properties:
3120
+ name:
3121
+ type: 'string'
3122
+ example: 'DO-20235211053686''(MANDATORY)'
3123
+ bizplaceId:
3124
+ type: 'string'
3125
+ example: 'string''(MANDATORY)'
3126
+ remark:
3127
+ type: 'string'
3128
+ example: 'string'
3129
+ responses:
3130
+ '200':
3131
+ description: 'success'
3132
+ content:
3133
+ application/json:
3134
+ schema:
3135
+ type: 'array'
3136
+ items:
3137
+ $ref: '#/definitions/CompleteDeliveryOrder'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-hub",
3
- "version": "4.3.329",
3
+ "version": "4.3.331",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -92,7 +92,7 @@
92
92
  "@things-factory/pdf": "^4.3.281",
93
93
  "@things-factory/product-ui": "^4.3.326",
94
94
  "@things-factory/resource-ui": "^4.3.281",
95
- "@things-factory/sales-base": "^4.3.329",
95
+ "@things-factory/sales-base": "^4.3.331",
96
96
  "@things-factory/scene-data-transform": "^4.3.281",
97
97
  "@things-factory/scene-excel": "^4.3.281",
98
98
  "@things-factory/scene-firebase": "^4.3.281",
@@ -108,7 +108,7 @@
108
108
  "@things-factory/shell": "^4.3.281",
109
109
  "@things-factory/system-ui": "^4.3.281",
110
110
  "@things-factory/warehouse-base": "^4.3.329",
111
- "@things-factory/worksheet-base": "^4.3.329",
111
+ "@things-factory/worksheet-base": "^4.3.331",
112
112
  "cron-parser": "^4.7.0",
113
113
  "koa2-swagger-ui": "^5.0.2",
114
114
  "swagger-jsdoc": "^5.0.0",
@@ -120,5 +120,5 @@
120
120
  "resolutions": {
121
121
  "core-js": "^3.16.0"
122
122
  },
123
- "gitHead": "ca8ce0b97d088d0f821f0ce6686542395a934d45"
123
+ "gitHead": "6d43fef3e22afc1e43ecbce142d5763dda6e91fd"
124
124
  }