@flexmatch-dev/interface 0.1.4 → 0.1.6
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/@common/exception/error.constant.d.ts +1 -0
- package/dist/@common/exception/error.constant.js +5 -0
- package/dist/@common/exception/error.constant.js.map +1 -1
- package/dist/@common/image/image.constant.d.ts +31 -0
- package/dist/@common/image/image.constant.js +36 -0
- package/dist/@common/image/image.constant.js.map +1 -0
- package/dist/@common/image/image.response.d.ts +12 -0
- package/dist/@common/image/image.response.js +3 -0
- package/dist/@common/image/image.response.js.map +1 -0
- package/dist/@common/index.d.ts +2 -0
- package/dist/@common/index.js +3 -0
- package/dist/@common/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/log/log.constant.d.ts +1 -0
- package/dist/log/log.constant.js +1 -0
- package/dist/log/log.constant.js.map +1 -1
- package/dist/log/log.parse.utility.js +20 -0
- package/dist/log/log.parse.utility.js.map +1 -1
- package/dist/log/log.system.payload.d.ts +17 -1
- package/dist/product/brand/brand.request.d.ts +18 -0
- package/dist/product/brand/brand.request.js +3 -0
- package/dist/product/brand/brand.request.js.map +1 -0
- package/dist/product/brand/brand.response.d.ts +17 -0
- package/dist/product/brand/brand.response.js +3 -0
- package/dist/product/brand/brand.response.js.map +1 -0
- package/dist/product/brand/index.d.ts +2 -0
- package/dist/product/brand/index.js +19 -0
- package/dist/product/brand/index.js.map +1 -0
- package/dist/product/category/category.request.d.ts +22 -0
- package/dist/product/category/category.request.js +3 -0
- package/dist/product/category/category.request.js.map +1 -0
- package/dist/product/category/category.response.d.ts +21 -0
- package/dist/product/category/category.response.js +3 -0
- package/dist/product/category/category.response.js.map +1 -0
- package/dist/product/category/index.d.ts +2 -0
- package/dist/product/category/index.js +19 -0
- package/dist/product/category/index.js.map +1 -0
- package/dist/product/default/index.d.ts +2 -0
- package/dist/product/default/index.js +19 -0
- package/dist/product/default/index.js.map +1 -0
- package/dist/product/default/product.request.d.ts +106 -0
- package/dist/product/default/product.request.js +3 -0
- package/dist/product/default/product.request.js.map +1 -0
- package/dist/product/default/product.response.d.ts +67 -0
- package/dist/product/default/product.response.js +3 -0
- package/dist/product/default/product.response.js.map +1 -0
- package/dist/product/index.d.ts +4 -0
- package/dist/product/index.js +21 -0
- package/dist/product/index.js.map +1 -0
- package/dist/product/shipping/index.d.ts +2 -0
- package/dist/product/shipping/index.js +19 -0
- package/dist/product/shipping/index.js.map +1 -0
- package/dist/product/shipping/shipping-policy.request.d.ts +52 -0
- package/dist/product/shipping/shipping-policy.request.js +3 -0
- package/dist/product/shipping/shipping-policy.request.js.map +1 -0
- package/dist/product/shipping/shipping-policy.response.d.ts +26 -0
- package/dist/product/shipping/shipping-policy.response.js +3 -0
- package/dist/product/shipping/shipping-policy.response.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare enum ERROR_CODE {
|
|
2
2
|
UNKNOWN_ERROR = "UNKNOWN_ERROR",
|
|
3
3
|
DEFAULT_NOT_FOUND = "DEFAULT_NOT_FOUND",
|
|
4
|
+
DEFAULT_REQUEST_ENTITY_TOO_LARGE = "DEFAULT_REQUEST_ENTITY_TOO_LARGE",
|
|
4
5
|
UNAUTHORIZED = "UNAUTHORIZED",
|
|
5
6
|
UNAUTHORIZED_NO_USER = "UNAUTHORIZED_NO_USER",
|
|
6
7
|
UNAUTHORIZED_INVALID_ROLE = "UNAUTHORIZED_INVALID_ROLE",
|
|
@@ -6,6 +6,7 @@ var ERROR_CODE;
|
|
|
6
6
|
// 공통 에러 코드
|
|
7
7
|
ERROR_CODE["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
8
8
|
ERROR_CODE["DEFAULT_NOT_FOUND"] = "DEFAULT_NOT_FOUND";
|
|
9
|
+
ERROR_CODE["DEFAULT_REQUEST_ENTITY_TOO_LARGE"] = "DEFAULT_REQUEST_ENTITY_TOO_LARGE";
|
|
9
10
|
ERROR_CODE["UNAUTHORIZED"] = "UNAUTHORIZED";
|
|
10
11
|
ERROR_CODE["UNAUTHORIZED_NO_USER"] = "UNAUTHORIZED_NO_USER";
|
|
11
12
|
ERROR_CODE["UNAUTHORIZED_INVALID_ROLE"] = "UNAUTHORIZED_INVALID_ROLE";
|
|
@@ -30,6 +31,10 @@ var ERROR_CODE;
|
|
|
30
31
|
exports.ERROR_MESSAGE = {
|
|
31
32
|
[ERROR_CODE.UNKNOWN_ERROR]: [500, 'Unknown error'],
|
|
32
33
|
[ERROR_CODE.DEFAULT_NOT_FOUND]: [404, 'Not found'],
|
|
34
|
+
[ERROR_CODE.DEFAULT_REQUEST_ENTITY_TOO_LARGE]: [
|
|
35
|
+
413,
|
|
36
|
+
'Request entity too large',
|
|
37
|
+
],
|
|
33
38
|
[ERROR_CODE.UNAUTHORIZED]: [401, 'Unauthorized'],
|
|
34
39
|
[ERROR_CODE.UNAUTHORIZED_NO_USER]: [401, 'Unauthorized'],
|
|
35
40
|
[ERROR_CODE.UNAUTHORIZED_INVALID_ROLE]: [401, 'Unauthorized'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.constant.js","sourceRoot":"","sources":["../../../src/@common/exception/error.constant.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"error.constant.js","sourceRoot":"","sources":["../../../src/@common/exception/error.constant.ts"],"names":[],"mappings":";;;AAAA,IAAY,UA2BX;AA3BD,WAAY,UAAU;IACpB,WAAW;IACX,6CAA+B,CAAA;IAC/B,qDAAuC,CAAA;IACvC,mFAAqE,CAAA;IACrE,2CAA6B,CAAA;IAC7B,2DAA6C,CAAA;IAC7C,qEAAuD,CAAA;IACvD,uFAAyE,CAAA;IACzE,mFAAqE,CAAA;IACrE,+EAAiE,CAAA;IAEjE,YAAY;IACZ,yFAA2E,CAAA;IAC3E,yFAA2E,CAAA;IAC3E,mGAAqF,CAAA;IACrF,yEAA2D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,CAAC,UAAU,CAAC,+BAA+B,CAAC,EAAE,CAAC,GAAG,EAAE,wBAAwB,CAAC;IAC7E,CAAC,UAAU,CAAC,mBAAmB,CAAC,EAAE,CAAC,GAAG,EAAE,2BAA2B,CAAC;IACpE,CAAC,UAAU,CAAC,uBAAuB,CAAC,EAAE,CAAC,GAAG,EAAE,+BAA+B,CAAC;IAC5E,CAAC,UAAU,CAAC,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,8BAA8B,CAAC;IAC1E,CAAC,UAAU,CAAC,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,8BAA8B,CAAC;IAC1E,CAAC,UAAU,CAAC,0BAA0B,CAAC,EAAE;QACvC,GAAG;QACH,kCAAkC;KACnC;IACD,CAAC,UAAU,CAAC,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,uBAAuB,CAAC;CACnE,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @constant IMAGE_TYPE
|
|
3
|
+
* @since 0.1.5
|
|
4
|
+
*/
|
|
5
|
+
export declare const IMAGE_TYPE: {
|
|
6
|
+
readonly TEST_IMAGE: "TEST";
|
|
7
|
+
readonly PRODUCT_CATEGORY_LOGO: "PD_CATEGORY";
|
|
8
|
+
readonly PRODUCT_IMAGE: "PD_IMG";
|
|
9
|
+
readonly PRODUCT_OPTION_IMAGE: "PD_OPTION";
|
|
10
|
+
readonly PRODUCT_CATALOG_IMAGE: "PD_CATALOG";
|
|
11
|
+
readonly CREATOR_PORTFOLIO_IMAGE: "CR_PORTFOLIO";
|
|
12
|
+
};
|
|
13
|
+
export type IMAGE_TYPE_KEY = (typeof IMAGE_TYPE)[keyof typeof IMAGE_TYPE];
|
|
14
|
+
/**
|
|
15
|
+
* @constant IMAGE_SIZE
|
|
16
|
+
* @since 0.1.5
|
|
17
|
+
*/
|
|
18
|
+
export declare const IMAGE_SIZE: {
|
|
19
|
+
readonly ORIGINAL: "original";
|
|
20
|
+
readonly SQUARE_120: "square-120";
|
|
21
|
+
readonly SQUARE_240: "square-240";
|
|
22
|
+
readonly SQUARE_480: "square-480";
|
|
23
|
+
readonly LANDSCAPE_120: "landscape-120";
|
|
24
|
+
readonly LANDSCAPE_240: "landscape-240";
|
|
25
|
+
readonly LANDSCAPE_480: "landscape-480";
|
|
26
|
+
readonly LANDSCAPE_960: "landscape-960";
|
|
27
|
+
readonly PORTRAIT_120: "portrait-120";
|
|
28
|
+
readonly PORTRAIT_240: "portrait-240";
|
|
29
|
+
readonly PORTRAIT_480: "portrait-480";
|
|
30
|
+
};
|
|
31
|
+
export type IMAGE_SIZE_KEY = (typeof IMAGE_SIZE)[keyof typeof IMAGE_SIZE];
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IMAGE_SIZE = exports.IMAGE_TYPE = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @constant IMAGE_TYPE
|
|
6
|
+
* @since 0.1.5
|
|
7
|
+
*/
|
|
8
|
+
exports.IMAGE_TYPE = {
|
|
9
|
+
TEST_IMAGE: 'TEST',
|
|
10
|
+
PRODUCT_CATEGORY_LOGO: 'PD_CATEGORY',
|
|
11
|
+
PRODUCT_IMAGE: 'PD_IMG',
|
|
12
|
+
PRODUCT_OPTION_IMAGE: 'PD_OPTION',
|
|
13
|
+
PRODUCT_CATALOG_IMAGE: 'PD_CATALOG',
|
|
14
|
+
CREATOR_PORTFOLIO_IMAGE: 'CR_PORTFOLIO',
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @constant IMAGE_SIZE
|
|
18
|
+
* @since 0.1.5
|
|
19
|
+
*/
|
|
20
|
+
exports.IMAGE_SIZE = {
|
|
21
|
+
ORIGINAL: 'original',
|
|
22
|
+
// SQUARE는 Object Fit Cover 적용
|
|
23
|
+
SQUARE_120: 'square-120',
|
|
24
|
+
SQUARE_240: 'square-240',
|
|
25
|
+
SQUARE_480: 'square-480',
|
|
26
|
+
// LANDSCAPE는 가로 사이즈를 기준으로 비율 유지
|
|
27
|
+
LANDSCAPE_120: 'landscape-120',
|
|
28
|
+
LANDSCAPE_240: 'landscape-240',
|
|
29
|
+
LANDSCAPE_480: 'landscape-480',
|
|
30
|
+
LANDSCAPE_960: 'landscape-960',
|
|
31
|
+
// PORTRAIT는 세로 사이즈를 기준으로 비율 유지
|
|
32
|
+
PORTRAIT_120: 'portrait-120',
|
|
33
|
+
PORTRAIT_240: 'portrait-240',
|
|
34
|
+
PORTRAIT_480: 'portrait-480',
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=image.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.constant.js","sourceRoot":"","sources":["../../../src/@common/image/image.constant.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,UAAU,GAAG;IACxB,UAAU,EAAE,MAAM;IAClB,qBAAqB,EAAE,aAAa;IACpC,aAAa,EAAE,QAAQ;IACvB,oBAAoB,EAAE,WAAW;IACjC,qBAAqB,EAAE,YAAY;IACnC,uBAAuB,EAAE,cAAc;CAC/B,CAAC;AAIX;;;GAGG;AACU,QAAA,UAAU,GAAG;IACxB,QAAQ,EAAE,UAAU;IACpB,8BAA8B;IAC9B,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IAExB,gCAAgC;IAChC,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAE9B,+BAA+B;IAC/B,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;CACpB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IMAGE_TYPE_KEY } from './image.constant';
|
|
2
|
+
/**
|
|
3
|
+
* @interface GetItemResourceImageResponse
|
|
4
|
+
* @since 0.1.5
|
|
5
|
+
*/
|
|
6
|
+
export interface GetItemResourceImageResponse {
|
|
7
|
+
id: string;
|
|
8
|
+
imageType: IMAGE_TYPE_KEY;
|
|
9
|
+
url: string;
|
|
10
|
+
fileKey: string;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.response.js","sourceRoot":"","sources":["../../../src/@common/image/image.response.ts"],"names":[],"mappings":""}
|
package/dist/@common/index.d.ts
CHANGED
package/dist/@common/index.js
CHANGED
|
@@ -16,6 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
// Pagination
|
|
18
18
|
__exportStar(require("./pagination"), exports);
|
|
19
|
+
// Image
|
|
20
|
+
__exportStar(require("./image/image.constant"), exports);
|
|
21
|
+
__exportStar(require("./image/image.response"), exports);
|
|
19
22
|
// Exception
|
|
20
23
|
__exportStar(require("./exception/error.constant"), exports);
|
|
21
24
|
__exportStar(require("./exception/error.response"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/@common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,aAAa;AACb,+CAA6B;AAE7B,YAAY;AACZ,6DAA2C;AAC3C,6DAA2C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/@common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,aAAa;AACb,+CAA6B;AAE7B,QAAQ;AACR,yDAAuC;AACvC,yDAAuC;AAEvC,YAAY;AACZ,6DAA2C;AAC3C,6DAA2C"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -16,5 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./@common"), exports);
|
|
18
18
|
__exportStar(require("./user"), exports);
|
|
19
|
+
__exportStar(require("./product"), exports);
|
|
19
20
|
__exportStar(require("./log"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,yCAAuB;AACvB,wCAAsB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,yCAAuB;AACvB,4CAA0B;AAC1B,wCAAsB"}
|
|
@@ -2,6 +2,7 @@ export declare const SYSTEM_LOG_TOPIC: {
|
|
|
2
2
|
readonly REQUEST: "REQUEST";
|
|
3
3
|
readonly RESPONSE: "RESPONSE";
|
|
4
4
|
readonly QUERY: "QUERY";
|
|
5
|
+
readonly IMAGE_UPLOAD: "IMAGE_UPLOAD";
|
|
5
6
|
};
|
|
6
7
|
export type SystemLogTopic = (typeof SYSTEM_LOG_TOPIC)[keyof typeof SYSTEM_LOG_TOPIC];
|
|
7
8
|
export declare const SPLIT_CHAR_KAFKA = "\u00B6";
|
package/dist/log/log.constant.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.constant.js","sourceRoot":"","sources":["../../src/log/log.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;
|
|
1
|
+
{"version":3,"file":"log.constant.js","sourceRoot":"","sources":["../../src/log/log.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,YAAY,EAAE,cAAc;CACpB,CAAC;AAIE,QAAA,gBAAgB,GAAG,GAAG,CAAC"}
|
|
@@ -36,6 +36,8 @@ const ParseKafkaLog = (log) => {
|
|
|
36
36
|
return ParseSystemLogResponse(splited);
|
|
37
37
|
case log_constant_1.SYSTEM_LOG_TOPIC.QUERY:
|
|
38
38
|
return ParseSystemLogQuery(splited);
|
|
39
|
+
case log_constant_1.SYSTEM_LOG_TOPIC.IMAGE_UPLOAD:
|
|
40
|
+
return ParseSystemLogImageUpload(splited);
|
|
39
41
|
default:
|
|
40
42
|
return null;
|
|
41
43
|
}
|
|
@@ -99,4 +101,22 @@ function ParseSystemLogQuery(splited) {
|
|
|
99
101
|
params: splited[7] ? JSON.parse(splited[7]) : undefined,
|
|
100
102
|
};
|
|
101
103
|
}
|
|
104
|
+
function ParseSystemLogImageUpload(splited) {
|
|
105
|
+
const type = GetKafkaLogType(splited[0]);
|
|
106
|
+
const level = GetLogLevel(splited[1]);
|
|
107
|
+
const success = splited[2] === '1';
|
|
108
|
+
if (!type || !level)
|
|
109
|
+
return null;
|
|
110
|
+
return {
|
|
111
|
+
type: type,
|
|
112
|
+
level: level,
|
|
113
|
+
success: success,
|
|
114
|
+
fileKey: splited[3],
|
|
115
|
+
processTime: Number(splited[4]),
|
|
116
|
+
uploadTime: Number(splited[5]),
|
|
117
|
+
duration: Number(splited[6]),
|
|
118
|
+
sizeType: splited[7],
|
|
119
|
+
timestamp: Number(splited[8]),
|
|
120
|
+
};
|
|
121
|
+
}
|
|
102
122
|
//# sourceMappingURL=log.parse.utility.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.parse.utility.js","sourceRoot":"","sources":["../../src/log/log.parse.utility.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"log.parse.utility.js","sourceRoot":"","sources":["../../src/log/log.parse.utility.ts"],"names":[],"mappings":";;;AACA,iDAKwB;AASxB,MAAM,eAAe,GAAG,CAAC,IAAY,EAAyB,EA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AAC,CAAC,CAAC;QAC7B,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,GAAG;QAC/B,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;QACjB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;KACxD,CAAC;AACJ,CAAC;AACD,SAAS,yBAAyB,CAChC,OAAiB;IAEjB,MAAM,IAAI,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IACzC,MAAM,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IACtC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;IACnC,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IACjC,OAAO;QACL,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,OAAO;QAChB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC/B,UAAU,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC9B,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC5B,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAmB;QACtC,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;KAC9B,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { IMAGE_SIZE_KEY } from '../@common';
|
|
1
2
|
import { ERROR_CODE } from '../@common/exception/error.constant';
|
|
2
3
|
import { LogLevel, SystemLogTopic } from './log.constant';
|
|
3
|
-
export type LogPayloadInterface = ISystemLogRequestPayload | ISystemLogResponsePayload | ISystemLogErrorResponsePayload | ISystemLogQueryPayload;
|
|
4
|
+
export type LogPayloadInterface = ISystemLogRequestPayload | ISystemLogResponsePayload | ISystemLogErrorResponsePayload | ISystemLogQueryPayload | ISystemLogImageUploadPayload;
|
|
4
5
|
export interface ISystemLogPayload {
|
|
5
6
|
type: SystemLogTopic;
|
|
6
7
|
message?: string | undefined;
|
|
@@ -37,3 +38,18 @@ export interface ISystemLogQueryPayload {
|
|
|
37
38
|
duration: number;
|
|
38
39
|
timestamp: number;
|
|
39
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* @interface ISystemLogImageUploadPayload
|
|
43
|
+
* @since 0.1.5
|
|
44
|
+
*/
|
|
45
|
+
export interface ISystemLogImageUploadPayload {
|
|
46
|
+
type: SystemLogTopic;
|
|
47
|
+
level: LogLevel;
|
|
48
|
+
success: boolean;
|
|
49
|
+
fileKey: string;
|
|
50
|
+
processTime: number;
|
|
51
|
+
uploadTime: number;
|
|
52
|
+
duration: number;
|
|
53
|
+
sizeType: IMAGE_SIZE_KEY;
|
|
54
|
+
timestamp: number;
|
|
55
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @interface CreateProductBrandRequest
|
|
3
|
+
* @since 0.1.6
|
|
4
|
+
*/
|
|
5
|
+
export interface CreateProductBrandRequest {
|
|
6
|
+
name: string;
|
|
7
|
+
imageId?: string;
|
|
8
|
+
brochureFileUrl?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @interface UpdateProductBrandRequest
|
|
12
|
+
* @since 0.1.6
|
|
13
|
+
*/
|
|
14
|
+
export interface UpdateProductBrandRequest {
|
|
15
|
+
name?: string | undefined;
|
|
16
|
+
imageId?: string | null | undefined;
|
|
17
|
+
brochureFileUrl?: string | null | undefined;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand.request.js","sourceRoot":"","sources":["../../../src/product/brand/brand.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GetItemResourceImageResponse } from '../../@common';
|
|
2
|
+
/**
|
|
3
|
+
* @interface GetItemProductBrandResponse
|
|
4
|
+
* @since 0.1.6
|
|
5
|
+
*/
|
|
6
|
+
export interface GetItemProductBrandResponse {
|
|
7
|
+
idx: number;
|
|
8
|
+
name: string;
|
|
9
|
+
image: GetItemResourceImageResponse | null;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @interface GetListProductBrandResponse
|
|
13
|
+
* @since 0.1.6
|
|
14
|
+
*/
|
|
15
|
+
export interface GetListProductBrandResponse {
|
|
16
|
+
data: GetItemProductBrandResponse[];
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand.response.js","sourceRoot":"","sources":["../../../src/product/brand/brand.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./brand.request"), exports);
|
|
18
|
+
__exportStar(require("./brand.response"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/product/brand/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,mDAAiC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @interface CreateCategoryRequest
|
|
3
|
+
* @since 0.1.6
|
|
4
|
+
*/
|
|
5
|
+
export interface CreateCategoryRequest {
|
|
6
|
+
name: string;
|
|
7
|
+
parentIdx?: number | undefined;
|
|
8
|
+
imageId?: string | undefined;
|
|
9
|
+
orderPriority?: number | undefined;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @interface UpdateCategoryRequest
|
|
13
|
+
* @since 0.1.6
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateCategoryRequest {
|
|
16
|
+
name?: string | undefined;
|
|
17
|
+
parentIdx?: number | null | undefined;
|
|
18
|
+
imageId?: string | null | undefined;
|
|
19
|
+
orderPriority?: number | undefined;
|
|
20
|
+
isHidden?: boolean | undefined;
|
|
21
|
+
isHiddenAllProduct?: boolean | undefined;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.request.js","sourceRoot":"","sources":["../../../src/product/category/category.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GetItemResourceImageResponse } from '../../@common';
|
|
2
|
+
/**
|
|
3
|
+
* @interface GetItemCategoryResponse
|
|
4
|
+
* @since 0.1.6
|
|
5
|
+
*/
|
|
6
|
+
export interface GetItemCategoryResponse {
|
|
7
|
+
idx: number;
|
|
8
|
+
name: string;
|
|
9
|
+
isHidden: boolean;
|
|
10
|
+
isHiddenAllProduct: boolean;
|
|
11
|
+
orderPriority: number;
|
|
12
|
+
image: GetItemResourceImageResponse | null;
|
|
13
|
+
children: GetItemCategoryResponse[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @interface GetListCategoryResponse
|
|
17
|
+
* @since 0.1.6
|
|
18
|
+
*/
|
|
19
|
+
export interface GetListCategoryResponse {
|
|
20
|
+
data: GetItemCategoryResponse[];
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.response.js","sourceRoot":"","sources":["../../../src/product/category/category.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./category.request"), exports);
|
|
18
|
+
__exportStar(require("./category.response"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/product/category/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,sDAAoC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./product.request"), exports);
|
|
18
|
+
__exportStar(require("./product.response"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/product/default/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,qDAAmC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @interface CreateProductOptionValueRequest
|
|
3
|
+
* @since 0.1.6
|
|
4
|
+
*/
|
|
5
|
+
export interface CreateProductOptionValueRequest {
|
|
6
|
+
name: string;
|
|
7
|
+
priority: number | null | undefined;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @interface UpdateProductOptionValueRequest
|
|
11
|
+
* @since 0.1.6
|
|
12
|
+
*/
|
|
13
|
+
export interface UpdateProductOptionValueRequest {
|
|
14
|
+
idx: number;
|
|
15
|
+
name: string;
|
|
16
|
+
priority: number | null | undefined;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @interface CreateProductOptionRequest
|
|
20
|
+
* @since 0.1.6
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateProductOptionRequest {
|
|
23
|
+
name: string;
|
|
24
|
+
priority: number | null | undefined;
|
|
25
|
+
optionValues: (CreateProductOptionValueRequest | UpdateProductOptionValueRequest)[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @interface UpdateProductOptionRequest
|
|
29
|
+
* @since 0.1.6
|
|
30
|
+
*/
|
|
31
|
+
export interface UpdateProductOptionRequest {
|
|
32
|
+
idx: number;
|
|
33
|
+
name: string;
|
|
34
|
+
priority: number | null | undefined;
|
|
35
|
+
optionValues: (CreateProductOptionValueRequest | UpdateProductOptionValueRequest)[];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @interface CreateProductVariantRequest
|
|
39
|
+
* @since 0.1.6
|
|
40
|
+
*/
|
|
41
|
+
export interface CreateProductVariantRequest {
|
|
42
|
+
name: string;
|
|
43
|
+
sku: string | null | undefined;
|
|
44
|
+
standardPrice: number | null | undefined;
|
|
45
|
+
samplePrice: number | null | undefined;
|
|
46
|
+
useCommissionPercentage: boolean | null | undefined;
|
|
47
|
+
commissionPrice: number | null | undefined;
|
|
48
|
+
commissionPercentage: number | null | undefined;
|
|
49
|
+
isCountQuantity: boolean | null | undefined;
|
|
50
|
+
quantity: number | null | undefined;
|
|
51
|
+
optionValues: (CreateProductOptionValueRequest | UpdateProductOptionValueRequest)[];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* @interface UpdateProductVariantRequest
|
|
55
|
+
* @since 0.1.6
|
|
56
|
+
*/
|
|
57
|
+
export interface UpdateProductVariantRequest {
|
|
58
|
+
idx: number;
|
|
59
|
+
name: string;
|
|
60
|
+
sku: string | null | undefined;
|
|
61
|
+
standardPrice: number | null | undefined;
|
|
62
|
+
samplePrice: number | null | undefined;
|
|
63
|
+
useCommissionPercentage: boolean | null | undefined;
|
|
64
|
+
commissionPrice: number | null | undefined;
|
|
65
|
+
commissionPercentage: number | null | undefined;
|
|
66
|
+
isCountQuantity: boolean | null | undefined;
|
|
67
|
+
quantity: number | null | undefined;
|
|
68
|
+
optionValues: (CreateProductOptionValueRequest | UpdateProductOptionValueRequest)[];
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @interface CreateProductRequest
|
|
72
|
+
* @since 0.1.6
|
|
73
|
+
*/
|
|
74
|
+
export interface CreateProductRequest {
|
|
75
|
+
name: string;
|
|
76
|
+
description: string;
|
|
77
|
+
imageId: string | null | undefined;
|
|
78
|
+
brochureFileUrl: string | null | undefined;
|
|
79
|
+
brandIdx: number;
|
|
80
|
+
categoryIdx: number;
|
|
81
|
+
shippingPolicyIdx: number;
|
|
82
|
+
isHidden: boolean;
|
|
83
|
+
hasOption: boolean;
|
|
84
|
+
standardPrice: number;
|
|
85
|
+
onlinePrice: number;
|
|
86
|
+
onlinePriceUrl: string | null | undefined;
|
|
87
|
+
options: CreateProductOptionRequest[];
|
|
88
|
+
variants: CreateProductVariantRequest[];
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @interface UpdateProductRequest
|
|
92
|
+
* @since 0.1.6
|
|
93
|
+
*/
|
|
94
|
+
export interface UpdateProductRequest {
|
|
95
|
+
name: string;
|
|
96
|
+
description: string;
|
|
97
|
+
imageId: string | null | undefined;
|
|
98
|
+
brochureFileUrl: string | null | undefined;
|
|
99
|
+
brandIdx: number;
|
|
100
|
+
categoryIdx: number;
|
|
101
|
+
shippingPolicyIdx: number;
|
|
102
|
+
isHidden: boolean;
|
|
103
|
+
hasOption: boolean;
|
|
104
|
+
options: (CreateProductOptionRequest | UpdateProductOptionRequest)[];
|
|
105
|
+
variants: (CreateProductVariantRequest | UpdateProductVariantRequest)[];
|
|
106
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.request.js","sourceRoot":"","sources":["../../../src/product/default/product.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { GetItemResourceImageResponse } from '../../@common';
|
|
2
|
+
import { GetItemProductBrandResponse } from '../brand';
|
|
3
|
+
import { GetItemCategoryResponse } from '../category';
|
|
4
|
+
/**
|
|
5
|
+
* @interface GetItemProductOptionValueResponse
|
|
6
|
+
* @since 0.1.6
|
|
7
|
+
*/
|
|
8
|
+
export interface GetItemProductOptionValueResponse {
|
|
9
|
+
idx: number;
|
|
10
|
+
name: string;
|
|
11
|
+
optionIdx: number;
|
|
12
|
+
priority: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @interface GetItemProductOptionResponse
|
|
16
|
+
* @since 0.1.6
|
|
17
|
+
*/
|
|
18
|
+
export interface GetItemProductOptionResponse {
|
|
19
|
+
idx: number;
|
|
20
|
+
name: string;
|
|
21
|
+
priority: number;
|
|
22
|
+
optionValues: GetItemProductOptionValueResponse[];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @interface GetItemProductVariantResponse
|
|
26
|
+
* @since 0.1.6
|
|
27
|
+
*/
|
|
28
|
+
export interface GetItemProductVariantResponse {
|
|
29
|
+
idx: number;
|
|
30
|
+
name: string;
|
|
31
|
+
sku: string | null;
|
|
32
|
+
standardPrice: number;
|
|
33
|
+
samplePrice: number;
|
|
34
|
+
useCommissionPercentage: boolean;
|
|
35
|
+
commissionPrice: number;
|
|
36
|
+
commissionPercentage: number;
|
|
37
|
+
isCountQuantity: boolean;
|
|
38
|
+
quantity: number;
|
|
39
|
+
isDeleted: boolean;
|
|
40
|
+
isHidden: boolean;
|
|
41
|
+
isAvailable: boolean;
|
|
42
|
+
optionValues: GetItemProductOptionValueResponse[];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @interface GetItemProductResponse
|
|
46
|
+
* @since 0.1.6
|
|
47
|
+
*/
|
|
48
|
+
export interface GetItemProductResponse {
|
|
49
|
+
idx: number;
|
|
50
|
+
name: string;
|
|
51
|
+
description: string | null;
|
|
52
|
+
image: GetItemResourceImageResponse | null;
|
|
53
|
+
categoryInfo: GetItemCategoryResponse;
|
|
54
|
+
brochureFileUrl: string | null;
|
|
55
|
+
brandInfo: GetItemProductBrandResponse;
|
|
56
|
+
isHidden: boolean;
|
|
57
|
+
hasOption: boolean;
|
|
58
|
+
options: GetItemProductOptionResponse[];
|
|
59
|
+
variants: GetItemProductVariantResponse[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @interface GetListProductResponse
|
|
63
|
+
* @since 0.1.6
|
|
64
|
+
*/
|
|
65
|
+
export interface GetListProductResponse {
|
|
66
|
+
data: GetItemProductResponse[];
|
|
67
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.response.js","sourceRoot":"","sources":["../../../src/product/default/product.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./category"), exports);
|
|
18
|
+
__exportStar(require("./brand"), exports);
|
|
19
|
+
__exportStar(require("./shipping"), exports);
|
|
20
|
+
__exportStar(require("./default"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/product/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,0CAAwB;AACxB,6CAA2B;AAC3B,4CAA0B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./shipping-policy.request"), exports);
|
|
18
|
+
__exportStar(require("./shipping-policy.response"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/product/shipping/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,6DAA2C"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @interface CreateShippingPolicyRequest
|
|
3
|
+
* @since 0.1.6
|
|
4
|
+
*/
|
|
5
|
+
export interface CreateShippingPolicyRequest {
|
|
6
|
+
name: string;
|
|
7
|
+
bundleLimit: number | null;
|
|
8
|
+
standardPrice: number;
|
|
9
|
+
isAllowedPriceover: boolean;
|
|
10
|
+
priceForPriceover: number;
|
|
11
|
+
isAllowedLocationJeju: boolean;
|
|
12
|
+
hasSameRuleLocationJeju: boolean;
|
|
13
|
+
priceForLocationJeju: number;
|
|
14
|
+
isAllowedLocationRemote: boolean;
|
|
15
|
+
hasSameRuleLocationRemote: boolean;
|
|
16
|
+
priceLocationRemote: number;
|
|
17
|
+
isAllowedShippingInDay: boolean;
|
|
18
|
+
isAllowedShippingInFriday: boolean;
|
|
19
|
+
shippingInDayLimitTime: number;
|
|
20
|
+
isAllowedRefund: boolean;
|
|
21
|
+
refundProvider: string | null;
|
|
22
|
+
priceRefund: number | null;
|
|
23
|
+
isAllowedChange: boolean;
|
|
24
|
+
changeProvider: string | null;
|
|
25
|
+
priceChange: number | null;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @interface UpdateShippingPolicyRequest
|
|
29
|
+
* @since 0.1.6
|
|
30
|
+
*/
|
|
31
|
+
export interface UpdateShippingPolicyRequest {
|
|
32
|
+
name?: string | undefined;
|
|
33
|
+
bundleLimit?: number | null | undefined;
|
|
34
|
+
standardPrice?: number | undefined;
|
|
35
|
+
isAllowedPriceover?: boolean | undefined;
|
|
36
|
+
priceForPriceover?: number | undefined;
|
|
37
|
+
isAllowedLocationJeju?: boolean | undefined;
|
|
38
|
+
hasSameRuleLocationJeju?: boolean | undefined;
|
|
39
|
+
priceForLocationJeju?: number | undefined;
|
|
40
|
+
isAllowedLocationRemote?: boolean | undefined;
|
|
41
|
+
hasSameRuleLocationRemote?: boolean | undefined;
|
|
42
|
+
priceLocationRemote?: number | undefined;
|
|
43
|
+
isAllowedShippingInDay?: boolean | undefined;
|
|
44
|
+
isAllowedShippingInFriday?: boolean | undefined;
|
|
45
|
+
shippingInDayLimitTime?: number | undefined;
|
|
46
|
+
isAllowedRefund?: boolean | undefined;
|
|
47
|
+
refundProvider?: string | null | undefined;
|
|
48
|
+
priceRefund?: number | null | undefined;
|
|
49
|
+
isAllowedChange?: boolean | undefined;
|
|
50
|
+
changeProvider?: string | null | undefined;
|
|
51
|
+
priceChange?: number | null | undefined;
|
|
52
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shipping-policy.request.js","sourceRoot":"","sources":["../../../src/product/shipping/shipping-policy.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface GetItemShippingPolicyResponse {
|
|
2
|
+
idx: number;
|
|
3
|
+
name: string;
|
|
4
|
+
standardPrice: number;
|
|
5
|
+
bundleLimit: number | null;
|
|
6
|
+
isAllowedPriceover: boolean;
|
|
7
|
+
priceForPriceover: number | null;
|
|
8
|
+
isAllowedLocationJeju: boolean;
|
|
9
|
+
hasSameRuleLocationJeju: boolean;
|
|
10
|
+
priceForLocationJeju: number | null;
|
|
11
|
+
isAllowedLocationRemote: boolean;
|
|
12
|
+
hasSameRuleLocationRemote: boolean;
|
|
13
|
+
priceLocationRemote: number | null;
|
|
14
|
+
isAllowedShippingInDay: boolean;
|
|
15
|
+
isAllowedShippingInFriday: boolean;
|
|
16
|
+
shippingInDayLimitTime: number | null;
|
|
17
|
+
isAllowedRefund: boolean;
|
|
18
|
+
refundProvider: string | null;
|
|
19
|
+
priceRefund: number | null;
|
|
20
|
+
isAllowedChange: boolean;
|
|
21
|
+
changeProvider: string | null;
|
|
22
|
+
priceChange: number | null;
|
|
23
|
+
}
|
|
24
|
+
export interface GetListShippingPolicyResponse {
|
|
25
|
+
data: GetItemShippingPolicyResponse[];
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shipping-policy.response.js","sourceRoot":"","sources":["../../../src/product/shipping/shipping-policy.response.ts"],"names":[],"mappings":""}
|