@flexmatch-dev/interface 0.1.5 → 0.1.7
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/app.constant.d.ts +8 -0
- package/dist/@common/app.constant.js +11 -0
- package/dist/@common/app.constant.js.map +1 -0
- package/dist/@common/app.response.d.ts +5 -0
- package/dist/@common/app.response.js +3 -0
- package/dist/@common/app.response.js.map +1 -0
- package/dist/@common/exception/error.constant.d.ts +1 -0
- package/dist/@common/exception/error.constant.js +4 -0
- package/dist/@common/exception/error.constant.js.map +1 -1
- 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 +16 -0
- package/dist/log/log.parse.utility.js.map +1 -1
- package/dist/log/log.system.payload.d.ts +11 -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
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const APP_STATUS: {
|
|
2
|
+
readonly STARTING: "STARTING";
|
|
3
|
+
readonly OK: "OK";
|
|
4
|
+
readonly UNDER_MAINTENANCE: "UNDER_MAINTENANCE";
|
|
5
|
+
readonly UNDER_REVIEW: "UNDER_REVIEW";
|
|
6
|
+
readonly UNDEFINED: "UNDEFINED";
|
|
7
|
+
};
|
|
8
|
+
export type AppStatus = (typeof APP_STATUS)[keyof typeof APP_STATUS];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.APP_STATUS = void 0;
|
|
4
|
+
exports.APP_STATUS = {
|
|
5
|
+
STARTING: 'STARTING',
|
|
6
|
+
OK: 'OK',
|
|
7
|
+
UNDER_MAINTENANCE: 'UNDER_MAINTENANCE',
|
|
8
|
+
UNDER_REVIEW: 'UNDER_REVIEW',
|
|
9
|
+
UNDEFINED: 'UNDEFINED',
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=app.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.constant.js","sourceRoot":"","sources":["../../src/@common/app.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB,QAAQ,EAAE,UAAU;IACpB,EAAE,EAAE,IAAI;IACR,iBAAiB,EAAE,mBAAmB;IACtC,YAAY,EAAE,cAAc;IAC5B,SAAS,EAAE,WAAW;CACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.response.js","sourceRoot":"","sources":["../../src/@common/app.response.ts"],"names":[],"mappings":""}
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ERROR_MESSAGE = exports.ERROR_CODE = void 0;
|
|
4
4
|
var ERROR_CODE;
|
|
5
5
|
(function (ERROR_CODE) {
|
|
6
|
+
// 애플리케이션 상태 에러 코드
|
|
7
|
+
ERROR_CODE["UNDER_MAINTENANCE"] = "UNDER_MAINTENANCE";
|
|
6
8
|
// 공통 에러 코드
|
|
7
9
|
ERROR_CODE["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
8
10
|
ERROR_CODE["DEFAULT_NOT_FOUND"] = "DEFAULT_NOT_FOUND";
|
|
@@ -29,6 +31,8 @@ var ERROR_CODE;
|
|
|
29
31
|
ERROR_CODE["FORBIDDEN_ROOM_ACCESS"] = "FORBIDDEN_ROOM_ACCESS";
|
|
30
32
|
})(ERROR_CODE || (exports.ERROR_CODE = ERROR_CODE = {}));
|
|
31
33
|
exports.ERROR_MESSAGE = {
|
|
34
|
+
// 애플리케이션 상태 에러 코드
|
|
35
|
+
[ERROR_CODE.UNDER_MAINTENANCE]: [503, 'Under maintenance'],
|
|
32
36
|
[ERROR_CODE.UNKNOWN_ERROR]: [500, 'Unknown error'],
|
|
33
37
|
[ERROR_CODE.DEFAULT_NOT_FOUND]: [404, 'Not found'],
|
|
34
38
|
[ERROR_CODE.DEFAULT_REQUEST_ENTITY_TOO_LARGE]: [
|
|
@@ -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,UA6BX;AA7BD,WAAY,UAAU;IACpB,kBAAkB;IAClB,qDAAuC,CAAA;IACvC,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,CAAA;IAC3D,WAAW;IACX,iFAAmE,CAAA;IACnE,yDAA2C,CAAA;IAC3C,iEAAmD,CAAA;IACnD,+DAAiD,CAAA;IACjD,+DAAiD,CAAA;IACjD,uEAAyD,CAAA;IAEzD,WAAW;IACX,6DAA+C,CAAA;AACjD,CAAC,EA7BW,UAAU,0BAAV,UAAU,QA6BrB;AAEY,QAAA,aAAa,GAAqD;IAC7E,kBAAkB;IAClB,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,mBAAmB,CAAC;IAE1D,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,eAAe,CAAC;IAClD,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,CAAC;IAClD,CAAC,UAAU,CAAC,gCAAgC,CAAC,EAAE;QAC7C,GAAG;QACH,0BAA0B;KAC3B;IACD,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,CAAC;IACh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}
|
package/dist/@common/index.d.ts
CHANGED
package/dist/@common/index.js
CHANGED
|
@@ -14,6 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// App
|
|
18
|
+
__exportStar(require("./app.constant"), exports);
|
|
19
|
+
__exportStar(require("./app.response"), exports);
|
|
17
20
|
// Pagination
|
|
18
21
|
__exportStar(require("./pagination"), exports);
|
|
19
22
|
// Image
|
|
@@ -1 +1 @@
|
|
|
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"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/@common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,MAAM;AACN,iDAA+B;AAC/B,iDAA+B;AAE/B,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"}
|
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;IACd,YAAY,EAAE,cAAc;CACpB,CAAC;AAIE,QAAA,gBAAgB,GAAG,GAAG,CAAC"}
|
|
1
|
+
{"version":3,"file":"log.constant.js","sourceRoot":"","sources":["../../src/log/log.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,GAAG,EAAE,KAAK;IACV,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,YAAY,EAAE,cAAc;CACpB,CAAC;AAIE,QAAA,gBAAgB,GAAG,GAAG,CAAC"}
|
|
@@ -30,6 +30,8 @@ const ParseKafkaLog = (log) => {
|
|
|
30
30
|
if (!type)
|
|
31
31
|
return null;
|
|
32
32
|
switch (type) {
|
|
33
|
+
case log_constant_1.SYSTEM_LOG_TOPIC.APP:
|
|
34
|
+
return ParseSystemLogApp(splited);
|
|
33
35
|
case log_constant_1.SYSTEM_LOG_TOPIC.REQUEST:
|
|
34
36
|
return ParseSystemLogRequest(splited);
|
|
35
37
|
case log_constant_1.SYSTEM_LOG_TOPIC.RESPONSE:
|
|
@@ -43,6 +45,20 @@ const ParseKafkaLog = (log) => {
|
|
|
43
45
|
}
|
|
44
46
|
};
|
|
45
47
|
exports.ParseKafkaLog = ParseKafkaLog;
|
|
48
|
+
function ParseSystemLogApp(splited) {
|
|
49
|
+
const type = GetKafkaLogType(splited[0]);
|
|
50
|
+
const level = GetLogLevel(splited[1]);
|
|
51
|
+
if (!type || !level)
|
|
52
|
+
return null;
|
|
53
|
+
return {
|
|
54
|
+
type: type,
|
|
55
|
+
level: level,
|
|
56
|
+
publicIP: splited[2],
|
|
57
|
+
port: Number(splited[3]),
|
|
58
|
+
appVersion: splited[4],
|
|
59
|
+
interfaceVersion: splited[5],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
46
62
|
function ParseSystemLogRequest(splited) {
|
|
47
63
|
const type = GetKafkaLogType(splited[0]);
|
|
48
64
|
const level = GetLogLevel(splited[1]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.parse.utility.js","sourceRoot":"","sources":["../../src/log/log.parse.utility.ts"],"names":[],"mappings":";;;AACA,iDAKwB;
|
|
1
|
+
{"version":3,"file":"log.parse.utility.js","sourceRoot":"","sources":["../../src/log/log.parse.utility.ts"],"names":[],"mappings":";;;AACA,iDAKwB;AAUxB,MAAM,eAAe,GAAG,CAAC,IAAY,EAAyB,EAAE;IAC9D,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,+BAAgB,CAAC,CAAC,IAAI,CACjD,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAC1B,CAAC;IACF,OAAO,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,IAAI,CAAC;AACxB,CAAC,CAAC;AACF,MAAM,WAAW,GAAG,CAAC,KAAa,EAAmB,EAAE;IACrD,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,SAAS;YACZ,OAAO,SAAS,CAAC;QACnB,KAAK,OAAO;YACV,OAAO,OAAO,CAAC;QACjB,KAAK,KAAK;YACR,OAAO,KAAK,CAAC;QACf,KAAK,MAAM;YACT,OAAO,MAAM,CAAC;QAChB,KAAK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ROR_CODE } from '../@common/exception/error.constant';
|
|
3
3
|
import { LogLevel, SystemLogTopic } from './log.constant';
|
|
4
|
-
export type LogPayloadInterface = ISystemLogRequestPayload | ISystemLogResponsePayload | ISystemLogErrorResponsePayload | ISystemLogQueryPayload | ISystemLogImageUploadPayload;
|
|
4
|
+
export type LogPayloadInterface = ISystemLogAppPayload | ISystemLogRequestPayload | ISystemLogResponsePayload | ISystemLogErrorResponsePayload | ISystemLogQueryPayload | ISystemLogImageUploadPayload;
|
|
5
5
|
export interface ISystemLogPayload {
|
|
6
6
|
type: SystemLogTopic;
|
|
7
7
|
message?: string | undefined;
|
|
8
8
|
level: LogLevel;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* @interface ISystemLogAppPayload
|
|
12
|
+
* @since 0.1.6
|
|
13
|
+
*/
|
|
14
|
+
export interface ISystemLogAppPayload extends ISystemLogPayload {
|
|
15
|
+
publicIP: string;
|
|
16
|
+
port: number;
|
|
17
|
+
appVersion: string;
|
|
18
|
+
interfaceVersion: string;
|
|
19
|
+
}
|
|
10
20
|
export interface ISystemLogRequestPayload extends ISystemLogPayload {
|
|
11
21
|
uuid: string;
|
|
12
22
|
method: string;
|
|
@@ -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":""}
|