@things-factory/operato-hub 4.1.7 → 4.1.13
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/config.development.js +67 -0
- package/dist-server/graphql/resolvers/synchronization/sync-products-to-sellercraft.js +4 -11
- package/dist-server/graphql/resolvers/synchronization/sync-products-to-sellercraft.js.map +1 -1
- package/dist-server/routers/api/restful-apis/unstable/add-products.js +1 -1
- package/dist-server/routers/api/restful-apis/unstable/add-products.js.map +1 -1
- package/dist-server/routers/api/restful-apis/unstable/get-inventory-overall-product-group.js +84 -0
- package/dist-server/routers/api/restful-apis/unstable/get-inventory-overall-product-group.js.map +1 -0
- package/dist-server/routers/api/restful-apis/unstable/get-marketplace-order-shipping-list.js +10 -8
- package/dist-server/routers/api/restful-apis/unstable/get-marketplace-order-shipping-list.js.map +1 -1
- package/dist-server/routers/api/restful-apis/unstable/index.js +1 -0
- package/dist-server/routers/api/restful-apis/unstable/index.js.map +1 -1
- package/dist-server/routers/api/restful-apis/v1/add-products.js +1 -1
- package/dist-server/routers/api/restful-apis/v1/add-products.js.map +1 -1
- package/dist-server/routers/api/restful-apis/v1/get-inventory-overall-product-group.js +84 -0
- package/dist-server/routers/api/restful-apis/v1/get-inventory-overall-product-group.js.map +1 -0
- package/dist-server/routers/api/restful-apis/v1/get-marketplace-order-shipping-list.js +10 -8
- package/dist-server/routers/api/restful-apis/v1/get-marketplace-order-shipping-list.js.map +1 -1
- package/dist-server/routers/api/restful-apis/v1/index.js +1 -0
- package/dist-server/routers/api/restful-apis/v1/index.js.map +1 -1
- package/dist-server/routers/api/restful-apis/v2/add-products.js +1 -1
- package/dist-server/routers/api/restful-apis/v2/add-products.js.map +1 -1
- package/dist-server/routers/api/restful-apis/v2/get-inventory-overall-product-group.js +84 -0
- package/dist-server/routers/api/restful-apis/v2/get-inventory-overall-product-group.js.map +1 -0
- package/dist-server/routers/api/restful-apis/v2/get-marketplace-order-shipping-list.js +10 -8
- package/dist-server/routers/api/restful-apis/v2/get-marketplace-order-shipping-list.js.map +1 -1
- package/dist-server/routers/api/restful-apis/v2/index.js +1 -0
- package/dist-server/routers/api/restful-apis/v2/index.js.map +1 -1
- package/package.json +69 -69
- package/server/graphql/resolvers/synchronization/sync-products-to-sellercraft.ts +4 -12
- package/server/routers/api/restful-apis/unstable/add-products.ts +1 -1
- package/server/routers/api/restful-apis/unstable/get-inventory-overall-product-group.ts +95 -0
- package/server/routers/api/restful-apis/unstable/get-marketplace-order-shipping-list.ts +10 -8
- package/server/routers/api/restful-apis/unstable/index.ts +1 -0
- package/server/routers/api/restful-apis/v1/add-products.ts +1 -1
- package/server/routers/api/restful-apis/v1/get-inventory-overall-product-group.ts +95 -0
- package/server/routers/api/restful-apis/v1/get-marketplace-order-shipping-list.ts +10 -8
- package/server/routers/api/restful-apis/v1/index.ts +1 -0
- package/server/routers/api/restful-apis/v2/add-products.ts +1 -1
- package/server/routers/api/restful-apis/v2/get-inventory-overall-product-group.ts +95 -0
- package/server/routers/api/restful-apis/v2/get-marketplace-order-shipping-list.ts +10 -8
- package/server/routers/api/restful-apis/v2/index.ts +1 -0
|
@@ -58,15 +58,17 @@ api_1.restfulApiRouter.get('/v2/warehouse/:storeId/get-marketplace-order-shippin
|
|
|
58
58
|
name
|
|
59
59
|
storeId
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
qty
|
|
64
|
-
status
|
|
65
|
-
marketplaceProductVariation {
|
|
61
|
+
marketplaceOrderShippingItems {
|
|
62
|
+
marketplaceOrderItem {
|
|
66
63
|
id
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
qty
|
|
65
|
+
status
|
|
66
|
+
marketplaceProductVariation {
|
|
67
|
+
id
|
|
68
|
+
variationId
|
|
69
|
+
name
|
|
70
|
+
sku
|
|
71
|
+
}
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-marketplace-order-shipping-list.js","sourceRoot":"","sources":["../../../../../server/routers/api/restful-apis/v2/get-marketplace-order-shipping-list.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAE7B,6CAAgE;AAEhE,qFAAgF;AAChF,+EAA0E;AAE1E,sBAAM,CAAC,GAAG,CACR,4DAA4D,EAC5D,wCAAkB,EAClB,kCAAe,EACf,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACtB,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;IAC1D,MAAM,EAAE,CAAC,EAAE,GAAG,OAAO,CAAA;IACrB,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;IAEnH,IAAI,OAAO,GAAQ;QACjB,EAAE,IAAI,EAAE,sBAAsB,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC7F,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;KACrE,CAAA;IACD,IAAI,UAAU,GAAQ,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;IAE5C,OAAO,GAAG,MAAM,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;IAChG,UAAU,GAAG,MAAM,kBAAkB,CAAC,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,gBAAgB,CAAC,CAAA;IAEtG,OAAO,CAAC,IAAI,GAAG;QACb,MAAM,EAAE,CACN,MAAM,MAAM,CAAC,KAAK,CAAC;YACjB,KAAK,EAAE,IAAA,qBAAG,EAAA
|
|
1
|
+
{"version":3,"file":"get-marketplace-order-shipping-list.js","sourceRoot":"","sources":["../../../../../server/routers/api/restful-apis/v2/get-marketplace-order-shipping-list.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAE7B,6CAAgE;AAEhE,qFAAgF;AAChF,+EAA0E;AAE1E,sBAAM,CAAC,GAAG,CACR,4DAA4D,EAC5D,wCAAkB,EAClB,kCAAe,EACf,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACtB,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;IAC1D,MAAM,EAAE,CAAC,EAAE,GAAG,OAAO,CAAA;IACrB,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;IAEnH,IAAI,OAAO,GAAQ;QACjB,EAAE,IAAI,EAAE,sBAAsB,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC7F,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;KACrE,CAAA;IACD,IAAI,UAAU,GAAQ,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;IAE5C,OAAO,GAAG,MAAM,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;IAChG,UAAU,GAAG,MAAM,kBAAkB,CAAC,OA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AAO,CAAC,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,wCAAwC,CAAC,CAAC,CAAA;aAClF,IAAI,OAAO,GAAG,CAAC;YAAE,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,gDAAgD,CAAC,CAAC,CAAA;aAChG,IAAI,OAAO,GAAG,GAAG;YAAE,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,kDAAkD,CAAC,CAAC,CAAA;;YACpG,UAAU,mCAAQ,UAAU,KAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAE,CAAA;KAClE;SAAM,IAAI,OAAO,KAAK,EAAE,IAAI,MAAM,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAE;QACvE,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAA;QAE3B,IAAI,OAAO,GAAG,CAAC;YAAE,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,gDAAgD,CAAC,CAAC,CAAA;aAC3F,IAAI,OAAO,GAAG,GAAG;YAAE,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,kDAAkD,CAAC,CAAC,CAAA;;YACpG,UAAU,mCAAQ,UAAU,KAAE,KAAK,EAAE,OAAO,GAAE,CAAA;KACpD;IAED,OAAO,UAAU,CAAA;AACnB,CAAC;AArBD,gDAqBC"}
|
|
@@ -13,6 +13,7 @@ require("./get-delivery-order-list");
|
|
|
13
13
|
require("./get-inbound-order-detail");
|
|
14
14
|
require("./get-inbound-order-list");
|
|
15
15
|
require("./get-inventory-product-group");
|
|
16
|
+
require("./get-inventory-overall-product-group");
|
|
16
17
|
require("./get-onhand-inventories");
|
|
17
18
|
require("./get-products");
|
|
18
19
|
require("./get-release-order-detail");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../server/routers/api/restful-apis/v2/index.ts"],"names":[],"mappings":";;AAAA,+BAA4B;AAC5B,+BAA4B;AAC5B,mCAAgC;AAChC,0BAAuB;AACvB,+BAA4B;AAC5B,sBAAmB;AACnB,kCAA+B;AAC/B,oCAAiC;AACjC,uCAAoC;AACpC,qCAAkC;AAClC,sCAAmC;AACnC,oCAAiC;AACjC,yCAAsC;AACtC,oCAAiC;AACjC,0BAAuB;AACvB,sCAAmC;AACnC,wCAAqC;AACrC,iDAA8C;AAC9C,oCAAiC;AACjC,4BAAyB;AACzB,sCAAmC;AACnC,kCAA+B;AAC/B,6CAA0C;AAC1C,mDAAgD;AAChD,+CAA4C;AAC5C,sCAAmC;AACnC,0CAAuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../server/routers/api/restful-apis/v2/index.ts"],"names":[],"mappings":";;AAAA,+BAA4B;AAC5B,+BAA4B;AAC5B,mCAAgC;AAChC,0BAAuB;AACvB,+BAA4B;AAC5B,sBAAmB;AACnB,kCAA+B;AAC/B,oCAAiC;AACjC,uCAAoC;AACpC,qCAAkC;AAClC,sCAAmC;AACnC,oCAAiC;AACjC,yCAAsC;AACtC,iDAA8C;AAC9C,oCAAiC;AACjC,0BAAuB;AACvB,sCAAmC;AACnC,wCAAqC;AACrC,iDAA8C;AAC9C,oCAAiC;AACjC,4BAAyB;AACzB,sCAAmC;AACnC,kCAA+B;AAC/B,6CAA0C;AAC1C,mDAAgD;AAChD,+CAA4C;AAC5C,sCAAmC;AACnC,0CAAuC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-hub",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.13",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -41,81 +41,81 @@
|
|
|
41
41
|
"@material/mwc-formfield": "^0.25.3",
|
|
42
42
|
"@material/mwc-linear-progress": "^0.25.3",
|
|
43
43
|
"@material/mwc-radio": "^0.25.3",
|
|
44
|
-
"@operato/scene-chartjs": "^0.1.
|
|
45
|
-
"@operato/scene-clock": "^0.1.
|
|
46
|
-
"@operato/scene-clone": "^0.1.
|
|
47
|
-
"@operato/scene-compass": "^0.1.
|
|
48
|
-
"@operato/scene-gauge": "^0.1.
|
|
49
|
-
"@operato/scene-half-roundrect": "^0.1.
|
|
50
|
-
"@operato/scene-indoor-map": "^0.1.
|
|
51
|
-
"@operato/scene-legend": "^0.1.
|
|
52
|
-
"@operato/scene-
|
|
53
|
-
"@operato/scene-
|
|
54
|
-
"@operato/scene-
|
|
55
|
-
"@operato/scene-
|
|
56
|
-
"@operato/scene-
|
|
57
|
-
"@operato/scene-
|
|
58
|
-
"@
|
|
59
|
-
"@things-factory/
|
|
60
|
-
"@things-factory/
|
|
61
|
-
"@things-factory/
|
|
62
|
-
"@things-factory/auth-
|
|
63
|
-
"@things-factory/
|
|
64
|
-
"@things-factory/biz-
|
|
65
|
-
"@things-factory/
|
|
66
|
-
"@things-factory/board-
|
|
67
|
-
"@things-factory/
|
|
68
|
-
"@things-factory/
|
|
69
|
-
"@things-factory/
|
|
70
|
-
"@things-factory/
|
|
71
|
-
"@things-factory/
|
|
72
|
-
"@things-factory/export-ui
|
|
73
|
-
"@things-factory/export-ui-
|
|
74
|
-
"@things-factory/
|
|
75
|
-
"@things-factory/
|
|
76
|
-
"@things-factory/
|
|
77
|
-
"@things-factory/
|
|
78
|
-
"@things-factory/import-ui
|
|
79
|
-
"@things-factory/
|
|
80
|
-
"@things-factory/integration-
|
|
81
|
-
"@things-factory/integration-
|
|
82
|
-
"@things-factory/integration-
|
|
83
|
-
"@things-factory/integration-
|
|
84
|
-
"@things-factory/integration-
|
|
85
|
-
"@things-factory/integration-
|
|
86
|
-
"@things-factory/
|
|
87
|
-
"@things-factory/
|
|
88
|
-
"@things-factory/
|
|
89
|
-
"@things-factory/
|
|
90
|
-
"@things-factory/
|
|
91
|
-
"@things-factory/
|
|
92
|
-
"@things-factory/
|
|
93
|
-
"@things-factory/
|
|
94
|
-
"@things-factory/scene-
|
|
95
|
-
"@things-factory/scene-
|
|
96
|
-
"@things-factory/scene-
|
|
97
|
-
"@things-factory/scene-
|
|
98
|
-
"@things-factory/scene-
|
|
99
|
-
"@things-factory/scene-
|
|
100
|
-
"@things-factory/scene-
|
|
101
|
-
"@things-factory/scene-
|
|
102
|
-
"@things-factory/scene-
|
|
103
|
-
"@things-factory/scene-restful": "^4.1.
|
|
104
|
-
"@things-factory/scene-visualizer": "^4.1.
|
|
105
|
-
"@things-factory/setting-ui": "^4.1.
|
|
106
|
-
"@things-factory/shell": "^4.1.
|
|
107
|
-
"@things-factory/system-ui": "^4.1.
|
|
108
|
-
"@things-factory/warehouse-base": "^4.1.
|
|
109
|
-
"@things-factory/worksheet-base": "^4.1.
|
|
44
|
+
"@operato/scene-chartjs": "^0.1.5",
|
|
45
|
+
"@operato/scene-clock": "^0.1.5",
|
|
46
|
+
"@operato/scene-clone": "^0.1.5",
|
|
47
|
+
"@operato/scene-compass": "^0.1.5",
|
|
48
|
+
"@operato/scene-gauge": "^0.1.5",
|
|
49
|
+
"@operato/scene-half-roundrect": "^0.1.5",
|
|
50
|
+
"@operato/scene-indoor-map": "^0.1.5",
|
|
51
|
+
"@operato/scene-legend": "^0.1.5",
|
|
52
|
+
"@operato/scene-news-ticker": "^0.1.5",
|
|
53
|
+
"@operato/scene-progressbar": "^0.1.5",
|
|
54
|
+
"@operato/scene-random": "^0.1.5",
|
|
55
|
+
"@operato/scene-switch": "^0.1.5",
|
|
56
|
+
"@operato/scene-tab": "^0.1.5",
|
|
57
|
+
"@operato/scene-table": "^0.1.5",
|
|
58
|
+
"@operato/scene-wheel-sorter": "^0.1.5",
|
|
59
|
+
"@things-factory/api": "^4.1.13",
|
|
60
|
+
"@things-factory/apptool-ui": "^4.1.13",
|
|
61
|
+
"@things-factory/attachment-base": "^4.1.13",
|
|
62
|
+
"@things-factory/auth-base": "^4.1.13",
|
|
63
|
+
"@things-factory/auth-ui": "^4.1.13",
|
|
64
|
+
"@things-factory/biz-base": "^4.1.13",
|
|
65
|
+
"@things-factory/biz-ui": "^4.1.13",
|
|
66
|
+
"@things-factory/board-service": "^4.1.13",
|
|
67
|
+
"@things-factory/board-ui": "^4.1.13",
|
|
68
|
+
"@things-factory/code-ui": "^4.1.13",
|
|
69
|
+
"@things-factory/component-ui": "^4.1.13",
|
|
70
|
+
"@things-factory/context-ui": "^4.1.13",
|
|
71
|
+
"@things-factory/document-template-ui": "^4.1.13",
|
|
72
|
+
"@things-factory/export-ui": "^4.1.13",
|
|
73
|
+
"@things-factory/export-ui-csv": "^4.1.13",
|
|
74
|
+
"@things-factory/export-ui-excel": "^4.1.13",
|
|
75
|
+
"@things-factory/grist-ui": "^4.1.13",
|
|
76
|
+
"@things-factory/help": "^4.1.13",
|
|
77
|
+
"@things-factory/i18n-base": "^4.1.13",
|
|
78
|
+
"@things-factory/import-ui": "^4.1.13",
|
|
79
|
+
"@things-factory/import-ui-excel": "^4.1.13",
|
|
80
|
+
"@things-factory/integration-accounting": "^4.1.13",
|
|
81
|
+
"@things-factory/integration-fulfillment": "^4.1.13",
|
|
82
|
+
"@things-factory/integration-lmd": "^4.1.13",
|
|
83
|
+
"@things-factory/integration-marketplace": "^4.1.13",
|
|
84
|
+
"@things-factory/integration-pos": "^4.1.13",
|
|
85
|
+
"@things-factory/integration-sellercraft": "^4.1.13",
|
|
86
|
+
"@things-factory/integration-sftp": "^4.1.13",
|
|
87
|
+
"@things-factory/lite-menu": "^4.1.13",
|
|
88
|
+
"@things-factory/more-ui": "^4.1.13",
|
|
89
|
+
"@things-factory/notification": "^4.1.13",
|
|
90
|
+
"@things-factory/pdf": "^4.1.13",
|
|
91
|
+
"@things-factory/product-ui": "^4.1.13",
|
|
92
|
+
"@things-factory/resource-ui": "^4.1.13",
|
|
93
|
+
"@things-factory/sales-base": "^4.1.13",
|
|
94
|
+
"@things-factory/scene-data-transform": "^4.1.13",
|
|
95
|
+
"@things-factory/scene-excel": "^4.1.13",
|
|
96
|
+
"@things-factory/scene-firebase": "^4.1.13",
|
|
97
|
+
"@things-factory/scene-form": "^4.1.13",
|
|
98
|
+
"@things-factory/scene-google-map": "^4.1.13",
|
|
99
|
+
"@things-factory/scene-graphql": "^4.1.13",
|
|
100
|
+
"@things-factory/scene-label": "^4.1.13",
|
|
101
|
+
"@things-factory/scene-marker": "^4.1.13",
|
|
102
|
+
"@things-factory/scene-mqtt": "^4.1.13",
|
|
103
|
+
"@things-factory/scene-restful": "^4.1.13",
|
|
104
|
+
"@things-factory/scene-visualizer": "^4.1.13",
|
|
105
|
+
"@things-factory/setting-ui": "^4.1.13",
|
|
106
|
+
"@things-factory/shell": "^4.1.13",
|
|
107
|
+
"@things-factory/system-ui": "^4.1.13",
|
|
108
|
+
"@things-factory/warehouse-base": "^4.1.13",
|
|
109
|
+
"@things-factory/worksheet-base": "^4.1.13",
|
|
110
110
|
"koa2-swagger-ui": "^5.0.2",
|
|
111
111
|
"swagger-jsdoc": "^5.0.0",
|
|
112
112
|
"yamljs": "^0.3.0"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
|
-
"@things-factory/builder": "^4.1.
|
|
115
|
+
"@things-factory/builder": "^4.1.13"
|
|
116
116
|
},
|
|
117
117
|
"resolutions": {
|
|
118
118
|
"core-js": "^3.16.0"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "adbf93d0eddd05d209543ed0d08e3aeaab2968b5"
|
|
121
121
|
}
|
|
@@ -19,7 +19,7 @@ export const syncProductsToSellercraftResolver = {
|
|
|
19
19
|
|
|
20
20
|
let page: number = 1
|
|
21
21
|
let hasMorePage: boolean = true
|
|
22
|
-
const limit: number =
|
|
22
|
+
const limit: number = 50
|
|
23
23
|
|
|
24
24
|
const sellercraft: Sellercraft = await tx
|
|
25
25
|
.getRepository(Sellercraft)
|
|
@@ -29,7 +29,7 @@ export const syncProductsToSellercraftResolver = {
|
|
|
29
29
|
const customerBizplace: Bizplace = await tx.getRepository(Bizplace).findOne({ where: { domain: customerDomain } })
|
|
30
30
|
|
|
31
31
|
while (hasMorePage) {
|
|
32
|
-
const { items, total } = await FulfillmentAPI.
|
|
32
|
+
const { items, total } = await FulfillmentAPI.getInventoryProductGroupOpenAPI(fulfilmentCenter, {
|
|
33
33
|
warehouseId: customerBizplace.id,
|
|
34
34
|
paginationEntriesPerPage: limit,
|
|
35
35
|
paginationOffset: page
|
|
@@ -45,17 +45,9 @@ export const syncProductsToSellercraftResolver = {
|
|
|
45
45
|
})
|
|
46
46
|
|
|
47
47
|
const productDetails: ProductDetail[] = product.productDetails
|
|
48
|
-
// const inventoryPackingType: string = item.packingType
|
|
49
48
|
const defaultProductDetail: ProductDetail = productDetails.find(productDetail => productDetail.isDefault)
|
|
50
49
|
|
|
51
50
|
let packingSize: number = 1
|
|
52
|
-
// if (inventoryPackingType !== defaultProductDetail.packingType) {
|
|
53
|
-
// const unmatchingProductDetail: ProductDetail = product.productDetails.find(
|
|
54
|
-
// productDetail => productDetail.packingType === inventoryPackingType
|
|
55
|
-
// )
|
|
56
|
-
|
|
57
|
-
// packingSize = await getChildPackingSize(productDetails, defaultProductDetail, unmatchingProductDetail)
|
|
58
|
-
// }
|
|
59
51
|
|
|
60
52
|
sellercraftInv.push({
|
|
61
53
|
sku: item.productSKU,
|
|
@@ -81,8 +73,8 @@ export const syncProductsToSellercraftResolver = {
|
|
|
81
73
|
await delay(5000)
|
|
82
74
|
await SellercraftAPI.updateProduct(sellercraft, { accountId: sellercraft.accountId, sellercraftInv })
|
|
83
75
|
|
|
84
|
-
if (sellercraftInv?.length < total) page++
|
|
85
|
-
hasMorePage = Boolean(sellercraftInv?.length < total)
|
|
76
|
+
if (sellercraftInv?.length != 0 && sellercraftInv?.length < total) page++
|
|
77
|
+
hasMorePage = Boolean(sellercraftInv?.length != 0 && sellercraftInv?.length < total)
|
|
86
78
|
}
|
|
87
79
|
}
|
|
88
80
|
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import gql from 'graphql-tag'
|
|
2
|
+
|
|
3
|
+
import { restfulApiRouter as router } from '@things-factory/api'
|
|
4
|
+
|
|
5
|
+
import { businessMiddleware } from '../../../../middlewares/business-middleware'
|
|
6
|
+
import { warehouseMiddleware } from '../../../../middlewares/warehouse-middleware'
|
|
7
|
+
|
|
8
|
+
const debug = require('debug')('things-factory:operato-hub:restful-api:unstable:get-inventory-product-group-open-api')
|
|
9
|
+
|
|
10
|
+
router.get(
|
|
11
|
+
'/unstable/warehouse/:warehouseId/get-inventory-product-group-open-api',
|
|
12
|
+
businessMiddleware,
|
|
13
|
+
warehouseMiddleware,
|
|
14
|
+
async (context, next) => {
|
|
15
|
+
const { client, warehouse: bizplace, domain } = context.state
|
|
16
|
+
const { warehouseId } = context.params
|
|
17
|
+
const { t } = context
|
|
18
|
+
const { skuId, packingType, batchId, paginationEntriesPerPage, paginationOffset } = context.query
|
|
19
|
+
|
|
20
|
+
if (!warehouseId) context.throw(404, t('error.warehouse id not found'))
|
|
21
|
+
|
|
22
|
+
let filters: any = [{ name: 'bizplace_id', operator: 'in', value: [warehouseId] }]
|
|
23
|
+
let pagination: any = { page: 1, limit: 100 }
|
|
24
|
+
|
|
25
|
+
filters = await validateFilters(context, filters, skuId, batchId, packingType)
|
|
26
|
+
pagination = await validatePagination(context, pagination, paginationEntriesPerPage, paginationOffset)
|
|
27
|
+
|
|
28
|
+
debug('query-params', context.query)
|
|
29
|
+
|
|
30
|
+
context.body = {
|
|
31
|
+
result: (
|
|
32
|
+
await client.query({
|
|
33
|
+
query: gql`
|
|
34
|
+
query inventoryProductGroupOpenAPI($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
35
|
+
inventoryProductGroupOpenAPI(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
36
|
+
items {
|
|
37
|
+
productSKU
|
|
38
|
+
productName
|
|
39
|
+
packingType
|
|
40
|
+
remainQty
|
|
41
|
+
remainUomValue
|
|
42
|
+
uom
|
|
43
|
+
}
|
|
44
|
+
total
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
`,
|
|
48
|
+
variables: { filters, pagination, sortings: [] },
|
|
49
|
+
context: {
|
|
50
|
+
...context,
|
|
51
|
+
state: {
|
|
52
|
+
...context.state,
|
|
53
|
+
bizplace,
|
|
54
|
+
domain
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
} as any)
|
|
58
|
+
).data
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
export async function validateFilters(context, filters, skuId, batchId, packingType) {
|
|
64
|
+
if (skuId) {
|
|
65
|
+
filters = [
|
|
66
|
+
...filters,
|
|
67
|
+
{
|
|
68
|
+
name: 'productName',
|
|
69
|
+
operator: 'i_like',
|
|
70
|
+
value: skuId
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return filters
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export async function validatePagination(context, pagination, entries, offset) {
|
|
79
|
+
if (entries !== '' && offset !== '' && !isNaN(parseInt(entries)) && !isNaN(parseInt(offset))) {
|
|
80
|
+
entries = parseInt(entries)
|
|
81
|
+
offset = parseInt(offset)
|
|
82
|
+
|
|
83
|
+
if (entries < 1) context.throw(400, context.t('paginationEntriesPerPage cannot be less than 1'))
|
|
84
|
+
else if (entries > 100) context.throw(400, context.t('paginationEntriesPerPage cannot be more than 100'))
|
|
85
|
+
else pagination = { ...pagination, page: offset, limit: entries }
|
|
86
|
+
} else if (entries !== '' && offset === '' && !isNaN(parseInt(entries))) {
|
|
87
|
+
entries = parseInt(entries)
|
|
88
|
+
|
|
89
|
+
if (entries < 1) context.throw(400, context.t('paginationEntriesPerPage cannot be less than 1'))
|
|
90
|
+
else if (entries > 100) context.throw(400, context.t('paginationEntriesPerPage cannot be more than 100'))
|
|
91
|
+
else pagination = { ...pagination, limit: entries }
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return pagination
|
|
95
|
+
}
|
|
@@ -63,15 +63,17 @@ router.get(
|
|
|
63
63
|
name
|
|
64
64
|
storeId
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
qty
|
|
69
|
-
status
|
|
70
|
-
marketplaceProductVariation {
|
|
66
|
+
marketplaceOrderShippingItems {
|
|
67
|
+
marketplaceOrderItem {
|
|
71
68
|
id
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
qty
|
|
70
|
+
status
|
|
71
|
+
marketplaceProductVariation {
|
|
72
|
+
id
|
|
73
|
+
variationId
|
|
74
|
+
name
|
|
75
|
+
sku
|
|
76
|
+
}
|
|
75
77
|
}
|
|
76
78
|
}
|
|
77
79
|
}
|
|
@@ -12,6 +12,7 @@ import './get-delivery-order-list'
|
|
|
12
12
|
import './get-inbound-order-detail'
|
|
13
13
|
import './get-inbound-order-list'
|
|
14
14
|
import './get-inventory-product-group'
|
|
15
|
+
import './get-inventory-overall-product-group'
|
|
15
16
|
import './get-onhand-inventories'
|
|
16
17
|
import './get-products'
|
|
17
18
|
import './get-release-order-detail'
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import gql from 'graphql-tag'
|
|
2
|
+
|
|
3
|
+
import { restfulApiRouter as router } from '@things-factory/api'
|
|
4
|
+
|
|
5
|
+
import { businessMiddleware } from '../../../../middlewares/business-middleware'
|
|
6
|
+
import { warehouseMiddleware } from '../../../../middlewares/warehouse-middleware'
|
|
7
|
+
|
|
8
|
+
const debug = require('debug')('things-factory:operato-hub:restful-api:v1:get-inventory-product-group-open-api')
|
|
9
|
+
|
|
10
|
+
router.get(
|
|
11
|
+
'/v1/warehouse/:warehouseId/get-inventory-product-group-open-api',
|
|
12
|
+
businessMiddleware,
|
|
13
|
+
warehouseMiddleware,
|
|
14
|
+
async (context, next) => {
|
|
15
|
+
const { client, warehouse: bizplace, domain } = context.state
|
|
16
|
+
const { warehouseId } = context.params
|
|
17
|
+
const { t } = context
|
|
18
|
+
const { skuId, packingType, batchId, paginationEntriesPerPage, paginationOffset } = context.query
|
|
19
|
+
|
|
20
|
+
if (!warehouseId) context.throw(404, t('error.warehouse id not found'))
|
|
21
|
+
|
|
22
|
+
let filters: any = [{ name: 'bizplace_id', operator: 'in', value: [warehouseId] }]
|
|
23
|
+
let pagination: any = { page: 1, limit: 100 }
|
|
24
|
+
|
|
25
|
+
filters = await validateFilters(context, filters, skuId, batchId, packingType)
|
|
26
|
+
pagination = await validatePagination(context, pagination, paginationEntriesPerPage, paginationOffset)
|
|
27
|
+
|
|
28
|
+
debug('query-params', context.query)
|
|
29
|
+
|
|
30
|
+
context.body = {
|
|
31
|
+
result: (
|
|
32
|
+
await client.query({
|
|
33
|
+
query: gql`
|
|
34
|
+
query inventoryProductGroupOpenAPI($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
35
|
+
inventoryProductGroupOpenAPI(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
36
|
+
items {
|
|
37
|
+
productSKU
|
|
38
|
+
productName
|
|
39
|
+
packingType
|
|
40
|
+
remainQty
|
|
41
|
+
remainUomValue
|
|
42
|
+
uom
|
|
43
|
+
}
|
|
44
|
+
total
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
`,
|
|
48
|
+
variables: { filters, pagination, sortings: [] },
|
|
49
|
+
context: {
|
|
50
|
+
...context,
|
|
51
|
+
state: {
|
|
52
|
+
...context.state,
|
|
53
|
+
bizplace,
|
|
54
|
+
domain
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
} as any)
|
|
58
|
+
).data
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
export async function validateFilters(context, filters, skuId, batchId, packingType) {
|
|
64
|
+
if (skuId) {
|
|
65
|
+
filters = [
|
|
66
|
+
...filters,
|
|
67
|
+
{
|
|
68
|
+
name: 'productName',
|
|
69
|
+
operator: 'i_like',
|
|
70
|
+
value: skuId
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return filters
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export async function validatePagination(context, pagination, entries, offset) {
|
|
79
|
+
if (entries !== '' && offset !== '' && !isNaN(parseInt(entries)) && !isNaN(parseInt(offset))) {
|
|
80
|
+
entries = parseInt(entries)
|
|
81
|
+
offset = parseInt(offset)
|
|
82
|
+
|
|
83
|
+
if (entries < 1) context.throw(400, context.t('paginationEntriesPerPage cannot be less than 1'))
|
|
84
|
+
else if (entries > 100) context.throw(400, context.t('paginationEntriesPerPage cannot be more than 100'))
|
|
85
|
+
else pagination = { ...pagination, page: offset, limit: entries }
|
|
86
|
+
} else if (entries !== '' && offset === '' && !isNaN(parseInt(entries))) {
|
|
87
|
+
entries = parseInt(entries)
|
|
88
|
+
|
|
89
|
+
if (entries < 1) context.throw(400, context.t('paginationEntriesPerPage cannot be less than 1'))
|
|
90
|
+
else if (entries > 100) context.throw(400, context.t('paginationEntriesPerPage cannot be more than 100'))
|
|
91
|
+
else pagination = { ...pagination, limit: entries }
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return pagination
|
|
95
|
+
}
|
|
@@ -63,15 +63,17 @@ router.get(
|
|
|
63
63
|
name
|
|
64
64
|
storeId
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
qty
|
|
69
|
-
status
|
|
70
|
-
marketplaceProductVariation {
|
|
66
|
+
marketplaceOrderShippingItems {
|
|
67
|
+
marketplaceOrderItem {
|
|
71
68
|
id
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
qty
|
|
70
|
+
status
|
|
71
|
+
marketplaceProductVariation {
|
|
72
|
+
id
|
|
73
|
+
variationId
|
|
74
|
+
name
|
|
75
|
+
sku
|
|
76
|
+
}
|
|
75
77
|
}
|
|
76
78
|
}
|
|
77
79
|
}
|
|
@@ -11,6 +11,7 @@ import './get-delivery-order-list'
|
|
|
11
11
|
import './get-inbound-order-detail'
|
|
12
12
|
import './get-inbound-order-list'
|
|
13
13
|
import './get-inventory-product-group'
|
|
14
|
+
import './get-inventory-overall-product-group'
|
|
14
15
|
import './get-onhand-inventories'
|
|
15
16
|
import './get-products'
|
|
16
17
|
import './get-release-order-detail'
|