@things-factory/integration-sellercraft 3.6.5 → 3.6.22
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/client/bootstrap.js +1 -28
- package/dist-server/controllers/sellercraft/apis/pack-marketplace-order.js +2 -2
- package/dist-server/controllers/sellercraft/apis/pack-marketplace-order.js.map +1 -1
- package/package.json +14 -14
- package/server/controllers/sellercraft/apis/pack-marketplace-order.ts +2 -8
package/client/bootstrap.js
CHANGED
@@ -1,28 +1 @@
|
|
1
|
-
|
2
|
-
import { store, navigate } from '@things-factory/shell'
|
3
|
-
import { ADD_MORENDA } from '@things-factory/more-base'
|
4
|
-
|
5
|
-
export default function bootstrap() {
|
6
|
-
/* for integration */
|
7
|
-
store.dispatch({
|
8
|
-
type: ADD_MORENDA,
|
9
|
-
morenda: {
|
10
|
-
icon: html` <mwc-icon>device_hub</mwc-icon> `,
|
11
|
-
name: html` <i18n-msg msgid="text.connection"></i18n-msg> `,
|
12
|
-
action: () => {
|
13
|
-
navigate('connection')
|
14
|
-
}
|
15
|
-
}
|
16
|
-
})
|
17
|
-
|
18
|
-
store.dispatch({
|
19
|
-
type: ADD_MORENDA,
|
20
|
-
morenda: {
|
21
|
-
icon: html` <mwc-icon>format_list_numbered</mwc-icon> `,
|
22
|
-
name: html` <i18n-msg msgid="text.scenario"></i18n-msg> `,
|
23
|
-
action: () => {
|
24
|
-
navigate('scenario')
|
25
|
-
}
|
26
|
-
}
|
27
|
-
})
|
28
|
-
}
|
1
|
+
export default function bootstrap() {}
|
@@ -7,7 +7,7 @@ function packMarketplaceOrder() {
|
|
7
7
|
method: 'post',
|
8
8
|
path: '/order/pack',
|
9
9
|
denormalize(req) {
|
10
|
-
const { accountId: account_id, orderId: order_id,
|
10
|
+
const { accountId: account_id, orderId: order_id, sellercraftOPs } = req;
|
11
11
|
const items = sellercraftOPs.map(orderProduct => {
|
12
12
|
return {
|
13
13
|
sku: orderProduct.sku,
|
@@ -16,7 +16,7 @@ function packMarketplaceOrder() {
|
|
16
16
|
};
|
17
17
|
});
|
18
18
|
let packages = [];
|
19
|
-
packages.push({
|
19
|
+
packages.push({ items });
|
20
20
|
return {
|
21
21
|
payload: {
|
22
22
|
account_id,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pack-marketplace-order.js","sourceRoot":"","sources":["../../../../server/controllers/sellercraft/apis/pack-marketplace-order.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;AAErF,SAAgB,oBAAoB;IAClC,OAAO;QACL,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,aAAa;QACnB,WAAW,CAAC,GAAG;YACb,MAAM,
|
1
|
+
{"version":3,"file":"pack-marketplace-order.js","sourceRoot":"","sources":["../../../../server/controllers/sellercraft/apis/pack-marketplace-order.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;AAErF,SAAgB,oBAAoB;IAClC,OAAO;QACL,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,aAAa;QACnB,WAAW,CAAC,GAAG;YACb,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,GAAG,CAAA;YAExE,MAAM,KAAK,GAAU,cAAc,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE;gBACrD,OAAO;oBACL,GAAG,EAAE,YAAY,CAAC,GAAG;oBACrB,QAAQ,EAAE,YAAY,CAAC,UAAU;oBACjC,eAAe,EAAE,YAAY,CAAC,GAAG;iBAClC,CAAA;YACH,CAAC,CAAC,CAAA;YAEF,IAAI,QAAQ,GAAU,EAAE,CAAA;YACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;YAExB,OAAO;gBACL,OAAO,EAAE;oBACP,UAAU;oBACV,QAAQ;oBACR,QAAQ;iBACT;aACF,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,MAAM,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,IAAI,CAAA;YAC7B,MAAM,SAAS,GAAW,QAAQ,CAAC,CAAC,CAAC,CAAC,UAAU,CAAA;YAChD,OAAO,SAAS,CAAA;QAClB,CAAC;KACF,CAAA;AACH,CAAC;AAhCD,oDAgCC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/integration-sellercraft",
|
3
|
-
"version": "3.6.
|
3
|
+
"version": "3.6.22",
|
4
4
|
"main": "dist-server/index.js",
|
5
5
|
"browser": "client/index.js",
|
6
6
|
"things-factory": true,
|
@@ -24,18 +24,18 @@
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
|
-
"@things-factory/apptool-ui": "^3.6.
|
28
|
-
"@things-factory/auth-ui": "^3.6.
|
29
|
-
"@things-factory/biz-base": "^3.6.
|
30
|
-
"@things-factory/code-ui": "^3.6.
|
31
|
-
"@things-factory/context-ui": "^3.6.
|
32
|
-
"@things-factory/grist-ui": "^3.6.
|
33
|
-
"@things-factory/i18n-ui": "^3.6.
|
34
|
-
"@things-factory/integration-ui": "^3.6.
|
35
|
-
"@things-factory/more-ui": "^3.6.
|
36
|
-
"@things-factory/resource-ui": "^3.6.
|
37
|
-
"@things-factory/setting-ui": "^3.6.
|
38
|
-
"@things-factory/system-ui": "^3.6.
|
27
|
+
"@things-factory/apptool-ui": "^3.6.22",
|
28
|
+
"@things-factory/auth-ui": "^3.6.22",
|
29
|
+
"@things-factory/biz-base": "^3.6.22",
|
30
|
+
"@things-factory/code-ui": "^3.6.22",
|
31
|
+
"@things-factory/context-ui": "^3.6.22",
|
32
|
+
"@things-factory/grist-ui": "^3.6.19",
|
33
|
+
"@things-factory/i18n-ui": "^3.6.22",
|
34
|
+
"@things-factory/integration-ui": "^3.6.22",
|
35
|
+
"@things-factory/more-ui": "^3.6.22",
|
36
|
+
"@things-factory/resource-ui": "^3.6.22",
|
37
|
+
"@things-factory/setting-ui": "^3.6.22",
|
38
|
+
"@things-factory/system-ui": "^3.6.22",
|
39
39
|
"debug": "^4.1.1",
|
40
40
|
"node-fetch": "^2.6.0",
|
41
41
|
"querystring": "^0.2.1"
|
@@ -51,5 +51,5 @@
|
|
51
51
|
"nock": "^13.0.2",
|
52
52
|
"should": "^13.2.3"
|
53
53
|
},
|
54
|
-
"gitHead": "
|
54
|
+
"gitHead": "a84cda70c7e713e7a69d580161f7ff12b0cb737e"
|
55
55
|
}
|
@@ -5,13 +5,7 @@ export function packMarketplaceOrder() {
|
|
5
5
|
method: 'post',
|
6
6
|
path: '/order/pack',
|
7
7
|
denormalize(req) {
|
8
|
-
const {
|
9
|
-
accountId: account_id,
|
10
|
-
orderId: order_id,
|
11
|
-
carrierCode: carrier_code,
|
12
|
-
shippingMethod: shipping_handover_preference,
|
13
|
-
sellercraftOPs
|
14
|
-
} = req
|
8
|
+
const { accountId: account_id, orderId: order_id, sellercraftOPs } = req
|
15
9
|
|
16
10
|
const items: any[] = sellercraftOPs.map(orderProduct => {
|
17
11
|
return {
|
@@ -22,7 +16,7 @@ export function packMarketplaceOrder() {
|
|
22
16
|
})
|
23
17
|
|
24
18
|
let packages: any[] = []
|
25
|
-
packages.push({
|
19
|
+
packages.push({ items })
|
26
20
|
|
27
21
|
return {
|
28
22
|
payload: {
|