@things-factory/integration-marketplace 4.3.54 → 4.3.60
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/dist-server/controllers/shopee/apis2/create-shipping-document.js +28 -0
- package/dist-server/controllers/shopee/apis2/create-shipping-document.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/echo.js +19 -0
- package/dist-server/controllers/shopee/apis2/echo.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/get-logistics-param.js +51 -0
- package/dist-server/controllers/shopee/apis2/get-logistics-param.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/get-shipping-document-result.js +26 -0
- package/dist-server/controllers/shopee/apis2/get-shipping-document-result.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/get-store-logistics.js +25 -0
- package/dist-server/controllers/shopee/apis2/get-store-logistics.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/get-store-order-by-batch.js +80 -0
- package/dist-server/controllers/shopee/apis2/get-store-order-by-batch.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/get-store-order-document.js +41 -0
- package/dist-server/controllers/shopee/apis2/get-store-order-document.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/get-store-order-payout-dates.js +36 -0
- package/dist-server/controllers/shopee/apis2/get-store-order-payout-dates.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/get-store-order-transaction-details.js +31 -0
- package/dist-server/controllers/shopee/apis2/get-store-order-transaction-details.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/get-store-order.js +77 -0
- package/dist-server/controllers/shopee/apis2/get-store-order.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/get-store-orders.js +37 -0
- package/dist-server/controllers/shopee/apis2/get-store-orders.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/get-store-product-variations.js +21 -0
- package/dist-server/controllers/shopee/apis2/get-store-product-variations.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/get-store-product.js +101 -0
- package/dist-server/controllers/shopee/apis2/get-store-product.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/get-store-products.js +29 -0
- package/dist-server/controllers/shopee/apis2/get-store-products.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/get-store-refund-order-details.js +40 -0
- package/dist-server/controllers/shopee/apis2/get-store-refund-order-details.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/get-store-refund-orders.js +36 -0
- package/dist-server/controllers/shopee/apis2/get-store-refund-orders.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/get-tracking-number.js +21 -0
- package/dist-server/controllers/shopee/apis2/get-tracking-number.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/index.js +33 -0
- package/dist-server/controllers/shopee/apis2/index.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/init-logistics.js +39 -0
- package/dist-server/controllers/shopee/apis2/init-logistics.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/update-store-product-stock.js +30 -0
- package/dist-server/controllers/shopee/apis2/update-store-product-stock.js.map +1 -0
- package/dist-server/controllers/shopee/apis2/update-store-product-variation-stock.js +31 -0
- package/dist-server/controllers/shopee/apis2/update-store-product-variation-stock.js.map +1 -0
- package/dist-server/controllers/shopee/index.js +10 -1
- package/dist-server/controllers/shopee/index.js.map +1 -1
- package/dist-server/controllers/shopee/platform-action.js +33 -1
- package/dist-server/controllers/shopee/platform-action.js.map +1 -1
- package/dist-server/controllers/shopee/refresh-access-token.js +67 -0
- package/dist-server/controllers/shopee/refresh-access-token.js.map +1 -0
- package/dist-server/controllers/shopee/shopee.js +81 -0
- package/dist-server/controllers/shopee/shopee.js.map +1 -1
- package/dist-server/controllers/shopify/shopify.js +15 -19
- package/dist-server/controllers/shopify/shopify.js.map +1 -1
- package/dist-server/controllers/store-api/index.js +28 -0
- package/dist-server/controllers/store-api/index.js.map +1 -1
- package/dist-server/controllers/tiktok/apis/update-order-status.js +4 -4
- package/dist-server/controllers/tiktok/apis/update-order-status.js.map +1 -1
- package/dist-server/controllers/tiktok/platform-action.js +14 -3
- package/dist-server/controllers/tiktok/platform-action.js.map +1 -1
- package/package.json +4 -4
- package/server/controllers/shopee/apis2/create-shipping-document.ts +27 -0
- package/server/controllers/shopee/apis2/echo.ts +14 -0
- package/server/controllers/shopee/apis2/get-logistics-param.ts +66 -0
- package/server/controllers/shopee/apis2/get-shipping-document-result.ts +21 -0
- package/server/controllers/shopee/apis2/get-store-logistics.ts +23 -0
- package/server/controllers/shopee/apis2/get-store-order-by-batch.ts +97 -0
- package/server/controllers/shopee/apis2/get-store-order-document.ts +39 -0
- package/server/controllers/shopee/apis2/get-store-order-payout-dates.ts +33 -0
- package/server/controllers/shopee/apis2/get-store-order-transaction-details.ts +28 -0
- package/server/controllers/shopee/apis2/get-store-order.ts +93 -0
- package/server/controllers/shopee/apis2/get-store-orders.ts +40 -0
- package/server/controllers/shopee/apis2/get-store-product-variations.ts +17 -0
- package/server/controllers/shopee/apis2/get-store-product.ts +105 -0
- package/server/controllers/shopee/apis2/get-store-products.ts +28 -0
- package/server/controllers/shopee/apis2/get-store-refund-order-details.ts +39 -0
- package/server/controllers/shopee/apis2/get-store-refund-orders.ts +37 -0
- package/server/controllers/shopee/apis2/get-tracking-number.ts +17 -0
- package/server/controllers/shopee/apis2/index.ts +20 -0
- package/server/controllers/shopee/apis2/init-logistics.ts +39 -0
- package/server/controllers/shopee/apis2/update-store-product-stock.ts +26 -0
- package/server/controllers/shopee/apis2/update-store-product-variation-stock.ts +28 -0
- package/server/controllers/shopee/index.ts +11 -2
- package/server/controllers/shopee/platform-action.ts +36 -0
- package/server/controllers/shopee/refresh-access-token.ts +75 -0
- package/server/controllers/shopee/shopee.ts +95 -0
- package/server/controllers/shopify/shopify.ts +15 -15
- package/server/controllers/store-api/index.ts +12 -0
- package/server/controllers/tiktok/apis/update-order-status.ts +4 -4
- package/server/controllers/tiktok/platform-action.ts +14 -14
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* https://open.shopee.com/documents/v2/v2.logistics.create_shipping_document?module=95&type=1 */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.createShippingDocument = void 0;
|
|
5
|
+
const store_api_1 = require("../../store-api");
|
|
6
|
+
function createShippingDocument() {
|
|
7
|
+
return {
|
|
8
|
+
path: '/logistics/create_shipping_document',
|
|
9
|
+
method: 'postV2',
|
|
10
|
+
async denormalize(req, { store }) {
|
|
11
|
+
const { orderNo } = req;
|
|
12
|
+
let trackingNo = await store_api_1.StoreAPI.getTrackingNumber(store, { orderNo });
|
|
13
|
+
return {
|
|
14
|
+
order_list: [
|
|
15
|
+
{
|
|
16
|
+
order_sn: orderNo,
|
|
17
|
+
tracking_number: trackingNo
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
normalize(res) {
|
|
23
|
+
return res;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
exports.createShippingDocument = createShippingDocument;
|
|
28
|
+
//# sourceMappingURL=create-shipping-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-shipping-document.js","sourceRoot":"","sources":["../../../../server/controllers/shopee/apis2/create-shipping-document.ts"],"names":[],"mappings":";AAAA,iGAAiG;;;AAEjG,+CAA0C;AAE1C,SAAgB,sBAAsB;IACpC,OAAO;QACL,IAAI,EAAE,qCAAqC;QAC3C,MAAM,EAAE,QAAQ;QAChB,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE;YAC9B,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,CAAA;YAEvB,IAAI,UAAU,GAAG,MAAM,oBAAQ,CAAC,iBAAiB,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,CAAA;YAErE,OAAO;gBACL,UAAU,EAAE;oBACV;wBACE,QAAQ,EAAE,OAAO;wBACjB,eAAe,EAAE,UAAU;qBAC5B;iBACF;aACF,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,OAAO,GAAG,CAAA;QACZ,CAAC;KACF,CAAA;AACH,CAAC;AAtBD,wDAsBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.echo = void 0;
|
|
4
|
+
function echo() {
|
|
5
|
+
return {
|
|
6
|
+
path: '/echo',
|
|
7
|
+
denormalize(req) {
|
|
8
|
+
return Object.assign({}, req);
|
|
9
|
+
},
|
|
10
|
+
normalize(res) {
|
|
11
|
+
return Object.assign({}, res);
|
|
12
|
+
},
|
|
13
|
+
actionV2({ store, method, path, request, platformAction }) {
|
|
14
|
+
return Object.assign({}, request);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
exports.echo = echo;
|
|
19
|
+
//# sourceMappingURL=echo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"echo.js","sourceRoot":"","sources":["../../../../server/controllers/shopee/apis2/echo.ts"],"names":[],"mappings":";;;AAAA,SAAgB,IAAI;IAClB,OAAO;QACL,IAAI,EAAE,OAAO;QACb,WAAW,CAAC,GAAG;YACb,yBAAY,GAAG,EAAE;QACnB,CAAC;QACD,SAAS,CAAC,GAAG;YACX,yBAAY,GAAG,EAAE;QACnB,CAAC;QACD,QAAQ,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE;YACvD,yBAAY,OAAO,EAAE;QACvB,CAAC;KACF,CAAA;AACH,CAAC;AAbD,oBAaC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* https://open.shopee.com/documents/v2/v2.logistics.get_shipping_parameter?module=95&type=1 */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getLogisticsParam = void 0;
|
|
5
|
+
function getLogisticsParam() {
|
|
6
|
+
return {
|
|
7
|
+
path: '/logistics/get_shipping_parameter',
|
|
8
|
+
method: 'getV2',
|
|
9
|
+
denormalize(req) {
|
|
10
|
+
var { orderNo } = req;
|
|
11
|
+
return {
|
|
12
|
+
order_sn: orderNo
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
normalize(res) {
|
|
16
|
+
var _a, _b, _c, _d;
|
|
17
|
+
const infoNeeded = res.info_needed;
|
|
18
|
+
let logisticsDetail;
|
|
19
|
+
if (((_a = infoNeeded === null || infoNeeded === void 0 ? void 0 : infoNeeded.pickup) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
20
|
+
let addressList = [];
|
|
21
|
+
const pickup = res.pickup;
|
|
22
|
+
addressList = pickup.address_list.map(address => {
|
|
23
|
+
var _a;
|
|
24
|
+
return Object.assign(Object.assign({}, address), { addressId: address.address_id, timeSlot: (address === null || address === void 0 ? void 0 : address.time_slot_list) && !((_a = address.time_slot_list) === null || _a === void 0 ? void 0 : _a.error)
|
|
25
|
+
? address.time_slot_list.map(ts => {
|
|
26
|
+
return Object.assign(Object.assign({}, ts), { pickupDate: new Date(ts.date * 1000).toDateString(), pickupTimeId: ts.pickup_time_id, timeText: ts.time_text });
|
|
27
|
+
})
|
|
28
|
+
: [] });
|
|
29
|
+
});
|
|
30
|
+
logisticsDetail = { pickup: (addressList === null || addressList === void 0 ? void 0 : addressList.length) ? addressList : [] };
|
|
31
|
+
}
|
|
32
|
+
if (((_b = infoNeeded === null || infoNeeded === void 0 ? void 0 : infoNeeded.dropoff) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
33
|
+
const dropoff = res.dropoff;
|
|
34
|
+
let branchList = [];
|
|
35
|
+
if ((_c = dropoff === null || dropoff === void 0 ? void 0 : dropoff.branch_list) === null || _c === void 0 ? void 0 : _c.length) {
|
|
36
|
+
branchList = dropoff.branch_list.map(branch => {
|
|
37
|
+
return Object.assign(Object.assign({}, branch), { branchId: branch.branch_id });
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
logisticsDetail = { dropoff: (branchList === null || branchList === void 0 ? void 0 : branchList.length) ? branchList : [] };
|
|
41
|
+
}
|
|
42
|
+
if (((_d = infoNeeded === null || infoNeeded === void 0 ? void 0 : infoNeeded.non_integrated) === null || _d === void 0 ? void 0 : _d.length) > 0) {
|
|
43
|
+
logisticsDetail = { non_integrated: infoNeeded.non_integrated };
|
|
44
|
+
}
|
|
45
|
+
const result = Object.assign(Object.assign({}, infoNeeded), { logisticsDetail });
|
|
46
|
+
return result;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.getLogisticsParam = getLogisticsParam;
|
|
51
|
+
//# sourceMappingURL=get-logistics-param.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-logistics-param.js","sourceRoot":"","sources":["../../../../server/controllers/shopee/apis2/get-logistics-param.ts"],"names":[],"mappings":";AAAA,+FAA+F;;;AAE/F,SAAgB,iBAAiB;IAC/B,OAAO;QACL,IAAI,EAAE,mCAAmC;QACzC,MAAM,EAAE,OAAO;QACf,WAAW,CAAC,GAAG;YACb,IAAI,EAAE,OAAO,EAAE,GAAG,GAAG,CAAA;YAErB,OAAO;gBACL,QAAQ,EAAE,OAAO;aAClB,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;;YACX,MAAM,UAAU,GAAQ,GAAG,CAAC,WAAW,CAAA;YACvC,IAAI,eAAoB,CAAA;YAExB,IAAI,CAAA,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,0CAAE,MAAM,IAAG,CAAC,EAAE;gBAClC,IAAI,WAAW,GAAU,EAAE,CAAA;gBAC3B,MAAM,MAAM,GAAQ,GAAG,CAAC,MAAM,CAAA;gBAE9B,WAAW,GAAG,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;;oBAC9C,uCACK,OAAO,KACV,SAAS,EAAE,OAAO,CAAC,UAAU,EAC7B,QAAQ,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uBAAV,UAAU,CAAE,cAAc,0CAAE,MAAM,IAAG,CAAC,EAAE;gBAC1C,eAAe,GAAG,EAAE,cAAc,EAAE,UAAU,CAAC,cAAc,EAAE,CAAA;aAChE;YAED,MAAM,MAAM,mCAAQ,UAAU,KAAE,eAAe,GAAE,CAAA;YACjD,OAAO,MAAM,CAAA;QACf,CAAC;KACF,CAAA;AACH,CAAC;AA/DD,8CA+DC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* https://open.shopee.com/documents/v2/v2.logistics.get_shipping_document_result?module=95&type=1 */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getShippingDocumentResult = void 0;
|
|
5
|
+
function getShippingDocumentResult() {
|
|
6
|
+
return {
|
|
7
|
+
path: '/logistics/get_shipping_document_result',
|
|
8
|
+
method: 'postV2',
|
|
9
|
+
denormalize(req) {
|
|
10
|
+
const { orderNo } = req;
|
|
11
|
+
return {
|
|
12
|
+
order_list: [
|
|
13
|
+
{
|
|
14
|
+
order_sn: orderNo[0]
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
normalize(res) {
|
|
20
|
+
var _a;
|
|
21
|
+
return (_a = res === null || res === void 0 ? void 0 : res.result_list[0]) === null || _a === void 0 ? void 0 : _a.status;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
exports.getShippingDocumentResult = getShippingDocumentResult;
|
|
26
|
+
//# sourceMappingURL=get-shipping-document-result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-shipping-document-result.js","sourceRoot":"","sources":["../../../../server/controllers/shopee/apis2/get-shipping-document-result.ts"],"names":[],"mappings":";AAAA,qGAAqG;;;AAErG,SAAgB,yBAAyB;IACvC,OAAO;QACL,IAAI,EAAE,yCAAyC;QAC/C,MAAM,EAAE,QAAQ;QAChB,WAAW,CAAC,GAAG;YACb,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,CAAA;YACvB,OAAO;gBACL,UAAU,EAAE;oBACV;wBACE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;qBACrB;iBACF;aACF,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;;YACX,OAAO,MAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,WAAW,CAAC,CAAC,CAAC,0CAAE,MAAM,CAAA;QACpC,CAAC;KACF,CAAA;AACH,CAAC;AAlBD,8DAkBC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* https://open.shopee.com/documents/v2/v2.logistics.get_channel_list?module=95&type=1 */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getStoreLogistics = void 0;
|
|
5
|
+
function getStoreLogistics() {
|
|
6
|
+
return {
|
|
7
|
+
path: '/logistics/get_channel_list',
|
|
8
|
+
method: 'getV2',
|
|
9
|
+
denormalize(req) {
|
|
10
|
+
return {};
|
|
11
|
+
},
|
|
12
|
+
normalize(res) {
|
|
13
|
+
let results = res.logistics_channel_list.filter(x => x.enabled == true).map(provider => {
|
|
14
|
+
const { logistics_channel_name, preferred } = provider;
|
|
15
|
+
return {
|
|
16
|
+
name: logistics_channel_name,
|
|
17
|
+
isDefault: preferred
|
|
18
|
+
};
|
|
19
|
+
});
|
|
20
|
+
return results;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
exports.getStoreLogistics = getStoreLogistics;
|
|
25
|
+
//# sourceMappingURL=get-store-logistics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-store-logistics.js","sourceRoot":"","sources":["../../../../server/controllers/shopee/apis2/get-store-logistics.ts"],"names":[],"mappings":";AAAA,yFAAyF;;;AAEzF,SAAgB,iBAAiB;IAC7B,OAAO;QACL,IAAI,EAAE,6BAA6B;QACnC,MAAM,EAAE,OAAO;QACf,WAAW,CAAC,GAAG;YACb,OAAO,EAAE,CAAA;QACX,CAAC;QACD,SAAS,CAAC,GAAG;YAEX,IAAI,OAAO,GAAG,GAAG,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC,CAAA,EAAE,CAAA,CAAC,CAAC,OAAO,IAAG,IAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;gBAClF,MAAM,EAAE,sBAAsB,EAAE,SAAS,EAAE,GAAG,QAAQ,CAAA;gBACpD,OAAO;oBACL,IAAI,EAAG,sBAAsB;oBAC7B,SAAS,EAAG,SAAS;iBACtB,CAAA;YACL,CAAC,CAAC,CAAA;YACF,OAAO,OAAO,CAAA;QAChB,CAAC;KACF,CAAA;AACH,CAAC;AAnBH,8CAmBG"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* https://open.shopee.com/documents/v2/v2.order.get_order_detail?module=94&type=1 */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getStoreOrderByBatch = void 0;
|
|
5
|
+
const store_api_1 = require("../../store-api");
|
|
6
|
+
function getStoreOrderByBatch() {
|
|
7
|
+
return {
|
|
8
|
+
path: '/order/get_order_detail',
|
|
9
|
+
method: 'getV2',
|
|
10
|
+
denormalize(req) {
|
|
11
|
+
const { orderIdList } = req;
|
|
12
|
+
return {
|
|
13
|
+
order_sn_list: orderIdList,
|
|
14
|
+
response_optional_fields: [
|
|
15
|
+
'recipient_address',
|
|
16
|
+
'item_list',
|
|
17
|
+
'total_amount',
|
|
18
|
+
'shipping_carrier',
|
|
19
|
+
'estimated_shipping_fee',
|
|
20
|
+
'buyer_username',
|
|
21
|
+
'actual_shipping_fee',
|
|
22
|
+
'pay_time',
|
|
23
|
+
'cancel_by',
|
|
24
|
+
'cancel_reason',
|
|
25
|
+
'actual_shipping_fee_confirmed'
|
|
26
|
+
]
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
async normalize(res, { store }) {
|
|
30
|
+
let results = [];
|
|
31
|
+
for (let order of res.order_list) {
|
|
32
|
+
let recipientAddress = order === null || order === void 0 ? void 0 : order.recipient_address;
|
|
33
|
+
let escrowDetails = {};
|
|
34
|
+
let trackingNo = null;
|
|
35
|
+
try {
|
|
36
|
+
escrowDetails = await store_api_1.StoreAPI.getStoreOrderTransactionDetails(store, { orderNo: order.order_sn });
|
|
37
|
+
}
|
|
38
|
+
catch (e) { }
|
|
39
|
+
try {
|
|
40
|
+
trackingNo = await store_api_1.StoreAPI.getTrackingNumber(store, { orderNo: order.order_sn });
|
|
41
|
+
}
|
|
42
|
+
catch (e) { }
|
|
43
|
+
const result = Object.assign(Object.assign({ name: order.order_sn, orderNo: order.order_sn, docRefNo: order.order_sn, status: order.order_status.toLowerCase(), orderCreatedAt: new Date(order.create_time * 1000), orderUpdatedAt: new Date(order.update_time * 1000), totalAmount: order.total_amount, cancelBy: order === null || order === void 0 ? void 0 : order.cancel_by, reason: order === null || order === void 0 ? void 0 : order.cancel_reason, recipientAddress: recipientAddress ? JSON.stringify(recipientAddress) : null, shippingProvider: order.shipping_carrier, itemCount: order.item_list.length, buyerUsername: order.buyer_username, payTime: (order === null || order === void 0 ? void 0 : order.pay_time) ? new Date(order.pay_time * 1000) : null, orderItems: order.item_list.map(item => {
|
|
44
|
+
return {
|
|
45
|
+
name: item.item_id,
|
|
46
|
+
variationId: item.model_id == 0 ? item.item_id : item.model_id,
|
|
47
|
+
qty: item.model_quantity_purchased,
|
|
48
|
+
paidPrice: item.model_discounted_price * item.model_quantity_purchased,
|
|
49
|
+
orderNo: order.order_sn,
|
|
50
|
+
promotionType: item === null || item === void 0 ? void 0 : item.promotion_type,
|
|
51
|
+
promotionId: item === null || item === void 0 ? void 0 : item.promotion_id,
|
|
52
|
+
isWholesale: item.wholesale,
|
|
53
|
+
docRefNo: order.order_sn,
|
|
54
|
+
originalPrice: item.model_quantity_purchased * item.model_original_price,
|
|
55
|
+
discount: item.model_quantity_purchased * item.model_original_price -
|
|
56
|
+
item.model_quantity_purchased * item.model_discounted_price
|
|
57
|
+
};
|
|
58
|
+
}), orderShipping: {
|
|
59
|
+
address1: recipientAddress === null || recipientAddress === void 0 ? void 0 : recipientAddress.full_address,
|
|
60
|
+
phone1: recipientAddress === null || recipientAddress === void 0 ? void 0 : recipientAddress.phone,
|
|
61
|
+
postCode: recipientAddress === null || recipientAddress === void 0 ? void 0 : recipientAddress.zipcode,
|
|
62
|
+
city: recipientAddress === null || recipientAddress === void 0 ? void 0 : recipientAddress.city,
|
|
63
|
+
state: recipientAddress === null || recipientAddress === void 0 ? void 0 : recipientAddress.state,
|
|
64
|
+
country: (recipientAddress === null || recipientAddress === void 0 ? void 0 : recipientAddress.region) == 'MY' ? 'Malaysia' : recipientAddress === null || recipientAddress === void 0 ? void 0 : recipientAddress.region,
|
|
65
|
+
attentionTo: recipientAddress === null || recipientAddress === void 0 ? void 0 : recipientAddress.name,
|
|
66
|
+
transporter: order === null || order === void 0 ? void 0 : order.shipping_carrier,
|
|
67
|
+
shippingFee: parseFloat(order === null || order === void 0 ? void 0 : order.estimated_shipping_fee) || null,
|
|
68
|
+
actualShippingFee: order.actual_shipping_fee_confirmed
|
|
69
|
+
? parseFloat(order === null || order === void 0 ? void 0 : order.actual_shipping_fee)
|
|
70
|
+
: parseFloat(order === null || order === void 0 ? void 0 : order.estimated_shipping_fee) || null,
|
|
71
|
+
trackingNo
|
|
72
|
+
} }, escrowDetails), { trackingNo });
|
|
73
|
+
results.push(result);
|
|
74
|
+
}
|
|
75
|
+
return results;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
exports.getStoreOrderByBatch = getStoreOrderByBatch;
|
|
80
|
+
//# sourceMappingURL=get-store-order-by-batch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-store-order-by-batch.js","sourceRoot":"","sources":["../../../../server/controllers/shopee/apis2/get-store-order-by-batch.ts"],"names":[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uBAAL,KAAK,CAAE,mBAAmB,CAAC;4BACxC,CAAC,CAAC,UAAU,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,sBAAsB,CAAC,IAAI,IAAI;wBACrD,UAAU;qBACX,IACE,aAAa,KAChB,UAAU,GACX,CAAA;gBACD,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;aACrB;YAED,OAAO,OAAO,CAAA;QAChB,CAAC;KACF,CAAA;AACH,CAAC;AA5FD,oDA4FC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* https://open.shopee.com/documents/v2/v2.logistics.download_shipping_document?module=95&type=1 */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getStoreOrderDocument = void 0;
|
|
5
|
+
const attachment_base_1 = require("@things-factory/attachment-base");
|
|
6
|
+
function getStoreOrderDocument() {
|
|
7
|
+
return {
|
|
8
|
+
path: '/logistics/download_shipping_document',
|
|
9
|
+
method: 'postV2',
|
|
10
|
+
async denormalize(req, { store }) {
|
|
11
|
+
var { docRefNo } = req;
|
|
12
|
+
return {
|
|
13
|
+
order_list: [
|
|
14
|
+
{
|
|
15
|
+
order_sn: docRefNo[0]
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
async normalize(res) {
|
|
21
|
+
let awb;
|
|
22
|
+
try {
|
|
23
|
+
awb = await (0, attachment_base_1.uploadAwb)({
|
|
24
|
+
content: res.awb,
|
|
25
|
+
title: res.data.order_list[0].order_sn
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
catch (e) {
|
|
29
|
+
return [];
|
|
30
|
+
}
|
|
31
|
+
return [
|
|
32
|
+
{
|
|
33
|
+
orderNo: res.data.order_list[0].order_sn,
|
|
34
|
+
airwayBill: awb === null || awb === void 0 ? void 0 : awb.url
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.getStoreOrderDocument = getStoreOrderDocument;
|
|
41
|
+
//# sourceMappingURL=get-store-order-document.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-store-order-document.js","sourceRoot":"","sources":["../../../../server/controllers/shopee/apis2/get-store-order-document.ts"],"names":[],"mappings":";AAAA,mGAAmG;;;AAGnG,qEAA2D;AAE3D,SAAgB,qBAAqB;IACnC,OAAO;QACL,IAAI,EAAE,uCAAuC;QAC7C,MAAM,EAAE,QAAQ;QAChB,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE;YAC9B,IAAI,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAA;YAEtB,OAAO;gBACL,UAAU,EAAE;oBACV;wBACE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;qBACtB;iBACF;aACF,CAAA;QACH,CAAC;QACD,KAAK,CAAC,SAAS,CAAC,GAAG;YACjB,IAAI,GAAG,CAAA;YACP,IAAI;gBACF,GAAG,GAAG,MAAM,IAAA,2BAAS,EAAC;oBACpB,OAAO,EAAE,GAAG,CAAC,GAAG;oBAChB,KAAK,EAAE,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ;iBACvC,CAAC,CAAA;aACH;YAAC,OAAO,CAAC,EAAE;gBACV,OAAO,EAAE,CAAA;aACV;YACD,OAAO;gBACL;oBACE,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ;oBACxC,UAAU,EAAE,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,GAAG;iBACrB;aACF,CAAA;QACH,CAAC;KACF,CAAA;AACH,CAAC;AAjCD,sDAiCC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* https://open.shopee.com/documents/v2/v2.payment.get_payout_detail?module=97&type=1 */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getStoreOrderPayoutDates = void 0;
|
|
5
|
+
function getStoreOrderPayoutDates() {
|
|
6
|
+
return {
|
|
7
|
+
path: '/payment/get_payout_detail',
|
|
8
|
+
method: 'getV2',
|
|
9
|
+
denormalize(req) {
|
|
10
|
+
var { fromCreatedDate, toCreatedDate, pagination } = req || {};
|
|
11
|
+
var { page, limit } = pagination;
|
|
12
|
+
return {
|
|
13
|
+
payout_time_from: new Date(fromCreatedDate).getTime() / 1000,
|
|
14
|
+
payout_time_to: new Date(toCreatedDate).getTime() / 1000,
|
|
15
|
+
page_size: limit,
|
|
16
|
+
page_no: page * limit
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
normalize(res) {
|
|
20
|
+
var { payout_list, more } = res;
|
|
21
|
+
let results = [];
|
|
22
|
+
for (let payout of payout_list) {
|
|
23
|
+
let payoutDate = new Date(payout.payout_info.payout_time * 1000).toISOString();
|
|
24
|
+
for (let escrow of payout.escrow_list) {
|
|
25
|
+
results.push({
|
|
26
|
+
orderNo: escrow.order_sn,
|
|
27
|
+
payoutDate
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return { results, more };
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
exports.getStoreOrderPayoutDates = getStoreOrderPayoutDates;
|
|
36
|
+
//# sourceMappingURL=get-store-order-payout-dates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-store-order-payout-dates.js","sourceRoot":"","sources":["../../../../server/controllers/shopee/apis2/get-store-order-payout-dates.ts"],"names":[],"mappings":";AAAA,wFAAwF;;;AAExF,SAAgB,wBAAwB;IACtC,OAAO;QACL,IAAI,EAAE,4BAA4B;QAClC,MAAM,EAAE,OAAO;QACf,WAAW,CAAC,GAAG;YACb,IAAI,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,GAAG,IAAI,EAAE,CAAA;YAC9D,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,UAAU,CAAA;YAChC,OAAO;gBACL,gBAAgB,EAAE,IAAI,IAAI,CAAC,eAAe,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI;gBAC5D,cAAc,EAAE,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI;gBACxD,SAAS,EAAE,KAAK;gBAChB,OAAO,EAAE,IAAI,GAAG,KAAK;aACtB,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,GAAG,CAAA;YAC/B,IAAI,OAAO,GAAG,EAAE,CAAA;YAEhB,KAAK,IAAI,MAAM,IAAI,WAAW,EAAE;gBAC9B,IAAI,UAAU,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC,WAAW,EAAE,CAAA;gBAC9E,KAAK,IAAI,MAAM,IAAI,MAAM,CAAC,WAAW,EAAE;oBACrC,OAAO,CAAC,IAAI,CAAC;wBACX,OAAO,EAAE,MAAM,CAAC,QAAQ;wBACxB,UAAU;qBACX,CAAC,CAAA;iBACH;aACF;YACD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;QAC1B,CAAC;KACF,CAAA;AACH,CAAC;AA9BD,4DA8BC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* https://open.shopee.com/documents/v2/v2.payment.get_escrow_detail?module=97&type=1 */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getStoreOrderTransactionDetails = void 0;
|
|
5
|
+
function getStoreOrderTransactionDetails() {
|
|
6
|
+
return {
|
|
7
|
+
method: 'getV2',
|
|
8
|
+
path: '/payment/get_escrow_detail',
|
|
9
|
+
denormalize(req) {
|
|
10
|
+
var { orderNo } = req;
|
|
11
|
+
return {
|
|
12
|
+
order_sn: orderNo
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
normalize(res) {
|
|
16
|
+
var { order_income } = res;
|
|
17
|
+
const result = {
|
|
18
|
+
voucherAmount: parseFloat(order_income === null || order_income === void 0 ? void 0 : order_income.discount_from_voucher_seller) || null,
|
|
19
|
+
shippingRebate: parseFloat(order_income === null || order_income === void 0 ? void 0 : order_income.shopee_shipping_rebate) || null,
|
|
20
|
+
commissionFee: parseFloat(order_income === null || order_income === void 0 ? void 0 : order_income.commission_fee) || null,
|
|
21
|
+
serviceFee: parseFloat(order_income === null || order_income === void 0 ? void 0 : order_income.service_fee) || null,
|
|
22
|
+
transactionFee: parseFloat(order_income === null || order_income === void 0 ? void 0 : order_income.seller_transaction_fee) || null,
|
|
23
|
+
totalRealeasedAmount: parseFloat(order_income === null || order_income === void 0 ? void 0 : order_income.escrow_amount) || null,
|
|
24
|
+
voucherCode: order_income === null || order_income === void 0 ? void 0 : order_income.seller_voucher_code
|
|
25
|
+
};
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.getStoreOrderTransactionDetails = getStoreOrderTransactionDetails;
|
|
31
|
+
//# sourceMappingURL=get-store-order-transaction-details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-store-order-transaction-details.js","sourceRoot":"","sources":["../../../../server/controllers/shopee/apis2/get-store-order-transaction-details.ts"],"names":[],"mappings":";AAAA,wFAAwF;;;AAExF,SAAgB,+BAA+B;IAC7C,OAAO;QACL,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,4BAA4B;QAClC,WAAW,CAAC,GAAG;YACb,IAAI,EAAE,OAAO,EAAE,GAAG,GAAG,CAAA;YAErB,OAAO;gBACL,QAAQ,EAAE,OAAO;aAClB,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,IAAI,EAAE,YAAY,EAAE,GAAG,GAAG,CAAA;YAC1B,MAAM,MAAM,GAAG;gBACb,aAAa,EAAE,UAAU,CAAC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,4BAA4B,CAAC,IAAI,IAAI;gBAC7E,cAAc,EAAE,UAAU,CAAC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,sBAAsB,CAAC,IAAI,IAAI;gBACxE,aAAa,EAAE,UAAU,CAAC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,cAAc,CAAC,IAAI,IAAI;gBAC/D,UAAU,EAAE,UAAU,CAAC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,WAAW,CAAC,IAAI,IAAI;gBACzD,cAAc,EAAE,UAAU,CAAC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,sBAAsB,CAAC,IAAI,IAAI;gBACxE,oBAAoB,EAAE,UAAU,CAAC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,aAAa,CAAC,IAAI,IAAI;gBACrE,WAAW,EAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,mBAAmB;aAC/C,CAAA;YACD,OAAO,MAAM,CAAA;QACf,CAAC;KACF,CAAA;AACH,CAAC;AAzBD,0EAyBC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* https://open.shopee.com/documents/v2/v2.order.get_order_detail?module=94&type=1 */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getStoreOrder = void 0;
|
|
5
|
+
const store_api_1 = require("../../store-api");
|
|
6
|
+
function getStoreOrder() {
|
|
7
|
+
return {
|
|
8
|
+
path: '/order/get_order_detail',
|
|
9
|
+
method: 'getV2',
|
|
10
|
+
denormalize(req) {
|
|
11
|
+
const { orderNo } = req;
|
|
12
|
+
return {
|
|
13
|
+
order_sn_list: [orderNo],
|
|
14
|
+
response_optional_fields: [
|
|
15
|
+
'recipient_address',
|
|
16
|
+
'item_list',
|
|
17
|
+
'total_amount',
|
|
18
|
+
'shipping_carrier',
|
|
19
|
+
'estimated_shipping_fee',
|
|
20
|
+
'buyer_username',
|
|
21
|
+
'actual_shipping_fee',
|
|
22
|
+
'pay_time',
|
|
23
|
+
'cancel_by',
|
|
24
|
+
'cancel_reason',
|
|
25
|
+
'actual_shipping_fee_confirmed'
|
|
26
|
+
]
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
async normalize(res, { store }) {
|
|
30
|
+
let order = res.order_list[0];
|
|
31
|
+
let recipientAddress = order === null || order === void 0 ? void 0 : order.recipient_address;
|
|
32
|
+
let escrowDetails = {};
|
|
33
|
+
let trackingNo = null;
|
|
34
|
+
try {
|
|
35
|
+
escrowDetails = await store_api_1.StoreAPI.getStoreOrderTransactionDetails(store, { orderNo: order.order_sn });
|
|
36
|
+
}
|
|
37
|
+
catch (e) { }
|
|
38
|
+
try {
|
|
39
|
+
trackingNo = await store_api_1.StoreAPI.getTrackingNumber(store, { orderNo: order.order_sn });
|
|
40
|
+
}
|
|
41
|
+
catch (e) { }
|
|
42
|
+
const result = Object.assign({ name: order.order_sn, orderNo: order.order_sn, docRefNo: order.order_sn, status: order.order_status.toLowerCase(), orderCreatedAt: new Date(order.create_time * 1000), orderUpdatedAt: new Date(order.update_time * 1000), totalAmount: order.total_amount, cancelBy: order === null || order === void 0 ? void 0 : order.cancel_by, reason: order === null || order === void 0 ? void 0 : order.cancel_reason, recipientAddress: recipientAddress ? JSON.stringify(recipientAddress) : null, shippingProvider: order.shipping_carrier, itemCount: order.item_list.length, buyerUsername: order.buyer_username, payTime: (order === null || order === void 0 ? void 0 : order.pay_time) ? new Date(order.pay_time * 1000) : null, orderItems: order.item_list.map(item => {
|
|
43
|
+
return {
|
|
44
|
+
name: item.item_id,
|
|
45
|
+
variationId: item.model_id == 0 ? item.item_id : item.model_id,
|
|
46
|
+
qty: item.model_quantity_purchased,
|
|
47
|
+
paidPrice: item.model_discounted_price * item.model_quantity_purchased,
|
|
48
|
+
orderNo: order.order_sn,
|
|
49
|
+
promotionType: item === null || item === void 0 ? void 0 : item.promotion_type,
|
|
50
|
+
promotionId: item === null || item === void 0 ? void 0 : item.promotion_id,
|
|
51
|
+
isWholesale: item.wholesale,
|
|
52
|
+
docRefNo: order.order_sn,
|
|
53
|
+
originalPrice: item.model_quantity_purchased * item.model_original_price,
|
|
54
|
+
discount: item.model_quantity_purchased * item.model_original_price -
|
|
55
|
+
item.model_quantity_purchased * item.model_discounted_price
|
|
56
|
+
};
|
|
57
|
+
}), orderShipping: {
|
|
58
|
+
address1: recipientAddress === null || recipientAddress === void 0 ? void 0 : recipientAddress.full_address,
|
|
59
|
+
phone1: recipientAddress === null || recipientAddress === void 0 ? void 0 : recipientAddress.phone,
|
|
60
|
+
postCode: recipientAddress === null || recipientAddress === void 0 ? void 0 : recipientAddress.zipcode,
|
|
61
|
+
city: recipientAddress === null || recipientAddress === void 0 ? void 0 : recipientAddress.city,
|
|
62
|
+
state: recipientAddress === null || recipientAddress === void 0 ? void 0 : recipientAddress.state,
|
|
63
|
+
country: (recipientAddress === null || recipientAddress === void 0 ? void 0 : recipientAddress.region) == 'MY' ? 'Malaysia' : recipientAddress === null || recipientAddress === void 0 ? void 0 : recipientAddress.region,
|
|
64
|
+
attentionTo: recipientAddress === null || recipientAddress === void 0 ? void 0 : recipientAddress.name,
|
|
65
|
+
transporter: order === null || order === void 0 ? void 0 : order.shipping_carrier,
|
|
66
|
+
shippingFee: parseFloat(order === null || order === void 0 ? void 0 : order.estimated_shipping_fee) || null,
|
|
67
|
+
actualShippingFee: order.actual_shipping_fee_confirmed
|
|
68
|
+
? parseFloat(order === null || order === void 0 ? void 0 : order.actual_shipping_fee)
|
|
69
|
+
: parseFloat(order === null || order === void 0 ? void 0 : order.estimated_shipping_fee) || null,
|
|
70
|
+
trackingNo
|
|
71
|
+
}, trackingNo }, escrowDetails);
|
|
72
|
+
return result;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
exports.getStoreOrder = getStoreOrder;
|
|
77
|
+
//# sourceMappingURL=get-store-order.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-store-order.js","sourceRoot":"","sources":["../../../../server/controllers/shopee/apis2/get-store-order.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;AAErF,+CAA0C;AAE1C,SAAgB,aAAa;IAC3B,OAAO;QACL,IAAI,EAAE,yBAAyB;QAC/B,MAAM,EAAE,OAAO;QACf,WAAW,CAAC,GAAG;YACb,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,CAAA;YAEvB,OAAO;gBACL,aAAa,EAAE,CAAC,OAAO,CAAC;gBACxB,wBAAwB,EAAE;oBACxB,mBAAmB;oBACnB,WAAW;oBACX,cAAc;oBACd,kBAAkB;oBAClB,wBAAwB;oBACxB,gBAAgB;oBAChB,qBAAqB;oBACrB,UAAU;oBACV,WAAW;oBACX,eAAe;oBACf,+BAA+B;iBAChC;aACF,CAAA;QACH,CAAC;QACD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE;YAC5B,IAAI,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAA;YAC7B,IAAI,gBAAgB,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,iBAAiB,CAAA;YAC/C,IAAI,aAAa,GAAQ,EAAE,CAAA;YAC3B,IAAI,UAAU,GAAG,IAAI,CAAA;YACrB,IAAI;gBACF,aAAa,GAAG,MAAM,oBAAQ,CAAC,+BAA+B,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAA;aACnG;YAAC,OAAO,CAAC,EAAE,GAAE;YACd,IAAI;gBACF,UAAU,GAAG,MAAM,oBAAQ,CAAC,iBAAiB,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAA;aAClF;YAAC,OAAO,CAAC,EAAE,GAAE;YACd,MA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AL,KAAK,CAAE,sBAAsB,CAAC,IAAI,IAAI;oBAC9D,iBAAiB,EAAE,KAAK,CAAC,6BAA6B;wBACpD,CAAC,CAAC,UAAU,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,mBAAmB,CAAC;wBACxC,CAAC,CAAC,UAAU,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,sBAAsB,CAAC,IAAI,IAAI;oBACrD,UAAU;iBACX,EACD,UAAU,IACP,aAAa,CACjB,CAAA;YACD,OAAO,MAAM,CAAA;QACf,CAAC;KACF,CAAA;AACH,CAAC;AAxFD,sCAwFC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* https://open.shopee.com/documents/v2/v2.order.get_order_list?module=94&type=1 */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getStoreOrders = void 0;
|
|
5
|
+
const store_api_1 = require("../../store-api");
|
|
6
|
+
function getStoreOrders() {
|
|
7
|
+
return {
|
|
8
|
+
path: '/order/get_order_list',
|
|
9
|
+
method: 'getV2',
|
|
10
|
+
denormalize(req) {
|
|
11
|
+
var { pagination, fromCreatedDate, toCreatedDate, nextCursor } = req || {};
|
|
12
|
+
var { limit = 100 } = pagination || {};
|
|
13
|
+
var time_from = Math.floor(new Date(fromCreatedDate).getTime() / 1000);
|
|
14
|
+
var time_to = Math.floor(new Date(toCreatedDate).getTime() / 1000);
|
|
15
|
+
var time_range_field = 'create_time'; // Available values: create_time, update_time
|
|
16
|
+
let payload = { time_from, time_to, time_range_field, page_size: limit };
|
|
17
|
+
if (nextCursor) {
|
|
18
|
+
payload.cursor = nextCursor;
|
|
19
|
+
}
|
|
20
|
+
return Object.assign({}, payload);
|
|
21
|
+
},
|
|
22
|
+
async normalize(res, { store }) {
|
|
23
|
+
let results = [];
|
|
24
|
+
const orderIdList = res.order_list.map(order => {
|
|
25
|
+
return order.order_sn;
|
|
26
|
+
});
|
|
27
|
+
while (orderIdList.length > 0) {
|
|
28
|
+
let splicedList = orderIdList.splice(0, orderIdList.length >= 50 ? 50 : orderIdList.length);
|
|
29
|
+
let result = await store_api_1.StoreAPI.getStoreOrderByBatch(store, { orderIdList: splicedList });
|
|
30
|
+
results.push(...result);
|
|
31
|
+
}
|
|
32
|
+
return { results, more: res.more, cursor: res.next_cursor };
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.getStoreOrders = getStoreOrders;
|
|
37
|
+
//# sourceMappingURL=get-store-orders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-store-orders.js","sourceRoot":"","sources":["../../../../server/controllers/shopee/apis2/get-store-orders.ts"],"names":[],"mappings":";AAAA,mFAAmF;;;AAEnF,+CAA0C;AAE1C,SAAgB,cAAc;IAC5B,OAAO;QACL,IAAI,EAAE,uBAAuB;QAC7B,MAAM,EAAE,OAAO;QACf,WAAW,CAAC,GAAG;YACb,IAAI,EAAE,UAAU,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,GAAG,IAAI,EAAE,CAAA;YAC1E,IAAI,EAAE,KAAK,GAAG,GAAG,EAAE,GAAG,UAAU,IAAI,EAAE,CAAA;YAEtC,IAAI,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,eAAe,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAA;YACtE,IAAI,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAA;YAClE,IAAI,gBAAgB,GAAG,aAAa,CAAA,CAAC,6CAA6C;YAElF,IAAI,OAAO,GAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,KAAK,EAAE,CAAA;YAE7E,IAAI,UAAU,EAAE;gBACd,OAAO,CAAC,MAAM,GAAG,UAAU,CAAA;aAC5B;YAED,yBACK,OAAO,EACX;QACH,CAAC;QACD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE;YAC5B,IAAI,OAAO,GAAG,EAAE,CAAA;YAChB,MAAM,WAAW,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;gBAC7C,OAAO,KAAK,CAAC,QAAQ,CAAA;YACvB,CAAC,CAAC,CAAA;YACF,OAAO,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC7B,IAAI,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,EAAE,WAAW,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;gBAC3F,IAAI,MAAM,GAAG,MAAM,oBAAQ,CAAC,oBAAoB,CAAC,KAAK,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC,CAAA;gBACrF,OAAO,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,CAAA;aACxB;YACD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,WAAW,EAAE,CAAA;QAC7D,CAAC;KACF,CAAA;AACH,CAAC;AAnCD,wCAmCC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* https://open.shopee.com/documents/v2/v2.product.get_model_list?module=89&type=1 */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getStoreProductVariations = void 0;
|
|
5
|
+
function getStoreProductVariations() {
|
|
6
|
+
return {
|
|
7
|
+
path: '/product/get_model_list',
|
|
8
|
+
method: 'getV2',
|
|
9
|
+
denormalize(req) {
|
|
10
|
+
const { itemId } = req;
|
|
11
|
+
return {
|
|
12
|
+
item_id: itemId
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
normalize(res) {
|
|
16
|
+
return res;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
exports.getStoreProductVariations = getStoreProductVariations;
|
|
21
|
+
//# sourceMappingURL=get-store-product-variations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-store-product-variations.js","sourceRoot":"","sources":["../../../../server/controllers/shopee/apis2/get-store-product-variations.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;AAErF,SAAgB,yBAAyB;IACvC,OAAO;QACL,IAAI,EAAE,yBAAyB;QAC/B,MAAM,EAAE,OAAO;QACf,WAAW,CAAC,GAAG;YACb,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,CAAA;YACtB,OAAO;gBACH,OAAO,EAAE,MAAM;aAClB,CAAA;QACH,CAAC;QACD,SAAS,CAAC,GAAG;YACX,OAAO,GAAG,CAAA;QACZ,CAAC;KACF,CAAA;AACH,CAAC;AAdD,8DAcC"}
|