@flexmatch-dev/interface 0.1.6 → 0.1.8
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/{product/brand/brand.request.js → @common/app.response.js} +1 -1
- 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/campaign/groupbuying/groupbuying.request.d.ts +30 -0
- package/dist/campaign/groupbuying/groupbuying.request.js +3 -0
- package/dist/campaign/groupbuying/groupbuying.request.js.map +1 -0
- package/dist/campaign/groupbuying/index.d.ts +1 -0
- package/dist/{product/brand → campaign/groupbuying}/index.js +1 -2
- package/dist/campaign/groupbuying/index.js.map +1 -0
- package/dist/campaign/index.d.ts +1 -0
- package/dist/campaign/index.js +18 -0
- package/dist/campaign/index.js.map +1 -0
- 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/default/index.d.ts +1 -0
- package/dist/product/default/index.js +1 -0
- package/dist/product/default/index.js.map +1 -1
- package/dist/product/default/product.constant.d.ts +3 -0
- package/dist/product/{brand/brand.response.js → default/product.constant.js} +1 -1
- package/dist/product/default/product.constant.js.map +1 -0
- package/dist/product/default/product.request.d.ts +58 -26
- package/dist/product/default/product.response.d.ts +8 -4
- package/dist/product/index.d.ts +0 -1
- package/dist/product/index.js +0 -1
- package/dist/product/index.js.map +1 -1
- package/dist/product/shipping/shipping-policy.request.d.ts +31 -26
- package/dist/product/shipping/shipping-policy.response.d.ts +23 -12
- package/package.json +1 -1
- package/dist/product/brand/brand.request.d.ts +0 -18
- package/dist/product/brand/brand.request.js.map +0 -1
- package/dist/product/brand/brand.response.d.ts +0 -17
- package/dist/product/brand/brand.response.js.map +0 -1
- package/dist/product/brand/index.d.ts +0 -2
- package/dist/product/brand/index.js.map +0 -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":";;;AA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AC,UAAU,CAAC,gCAAgC,CAAC,EAAE,CAAC,GAAG,EAAE,qBAAqB,CAAC;IAC3E,CAAC,UAAU,CAAC,8BAA8B,CAAC,EAAE,CAAC,GAAG,EAAE,oBAAoB,CAAC;IAExE,CAAC,UAAU,CAAC,mCAAmC,CAAC,EAAE;QAChD,GAAG;QACH,4BAA4B;KAC7B;IACD,CAAC,UAAU,CAAC,mCAAmC,CAAC,EAAE;QAChD,GAAG;QACH,4BAA4B;KAC7B;IACD,CAAC,UAAU,CAAC,wCAAwC,CAAC,EAAE;QACrD,GAAG;QACH,iCAAiC;KAClC;IACD,CAAC,UAAU,CAAC,2BAA2B,CAAC,EAAE;QACxC,GAAG;QACH,+BAA+B;KAChC;IAED,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"}
|
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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CreateProductRequest, CreateShippingPolicyRequest } from '../../product';
|
|
2
|
+
/**
|
|
3
|
+
* @interface CreateGroupBuyingCampaignData
|
|
4
|
+
* @since 0.1.8
|
|
5
|
+
*/
|
|
6
|
+
export interface CreateGroupBuyingCampaignData {
|
|
7
|
+
campaignName: string;
|
|
8
|
+
brandName: string;
|
|
9
|
+
searchKeyword: string[];
|
|
10
|
+
campaignType: string;
|
|
11
|
+
contactName: string;
|
|
12
|
+
contactPhone: string;
|
|
13
|
+
contactEmail: string;
|
|
14
|
+
campaignPeriod: [Date, Date];
|
|
15
|
+
campaignPlan: string;
|
|
16
|
+
marketingPoint: string;
|
|
17
|
+
samplingGuide: string;
|
|
18
|
+
fileBrandIntroId: string | null;
|
|
19
|
+
fileProductIntroId: string | null;
|
|
20
|
+
fileOtherId: string | null;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @interface CreateGroupBuyingRequest
|
|
24
|
+
* @since 0.1.8
|
|
25
|
+
*/
|
|
26
|
+
export interface CreateGroupBuyingRequest {
|
|
27
|
+
campaign: CreateGroupBuyingCampaignData;
|
|
28
|
+
product: CreateProductRequest;
|
|
29
|
+
shippingPolicy: CreateShippingPolicyRequest;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groupbuying.request.js","sourceRoot":"","sources":["../../../src/campaign/groupbuying/groupbuying.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './groupbuying.request';
|
|
@@ -14,6 +14,5 @@ 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
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./brand.response"), exports);
|
|
17
|
+
__exportStar(require("./groupbuying.request"), exports);
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/campaign/groupbuying/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './groupbuying';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./groupbuying"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/campaign/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
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,4CAA0B;AAC1B,wCAAsB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,yCAAuB;AACvB,4CAA0B;AAC1B,wCAAsB;AACtB,6CAA2B"}
|
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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AC,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,12 +1,22 @@
|
|
|
1
1
|
import { IMAGE_SIZE_KEY } from '../@common';
|
|
2
2
|
import { ERROR_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;
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./product.request"), exports);
|
|
18
18
|
__exportStar(require("./product.response"), exports);
|
|
19
|
+
__exportStar(require("./product.constant"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/product/default/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,qDAAmC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/product/default/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,qDAAmC;AACnC,qDAAmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.constant.js","sourceRoot":"","sources":["../../../src/product/default/product.constant.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ProductProvisionCategoryId, ProductProvisionItemId, ProductProvisionItemValueType } from './product.constant';
|
|
1
2
|
/**
|
|
2
3
|
* @interface CreateProductOptionValueRequest
|
|
3
4
|
* @since 0.1.6
|
|
@@ -40,14 +41,13 @@ export interface UpdateProductOptionRequest {
|
|
|
40
41
|
*/
|
|
41
42
|
export interface CreateProductVariantRequest {
|
|
42
43
|
name: string;
|
|
44
|
+
isMain: boolean;
|
|
43
45
|
sku: string | null | undefined;
|
|
44
46
|
standardPrice: number | null | undefined;
|
|
45
47
|
samplePrice: number | null | undefined;
|
|
46
48
|
useCommissionPercentage: boolean | null | undefined;
|
|
47
49
|
commissionPrice: number | null | undefined;
|
|
48
50
|
commissionPercentage: number | null | undefined;
|
|
49
|
-
isCountQuantity: boolean | null | undefined;
|
|
50
|
-
quantity: number | null | undefined;
|
|
51
51
|
optionValues: (CreateProductOptionValueRequest | UpdateProductOptionValueRequest)[];
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
@@ -57,50 +57,82 @@ export interface CreateProductVariantRequest {
|
|
|
57
57
|
export interface UpdateProductVariantRequest {
|
|
58
58
|
idx: number;
|
|
59
59
|
name: string;
|
|
60
|
+
isMain: boolean;
|
|
60
61
|
sku: string | null | undefined;
|
|
61
62
|
standardPrice: number | null | undefined;
|
|
62
63
|
samplePrice: number | null | undefined;
|
|
63
64
|
useCommissionPercentage: boolean | null | undefined;
|
|
64
65
|
commissionPrice: number | null | undefined;
|
|
65
66
|
commissionPercentage: number | null | undefined;
|
|
66
|
-
isCountQuantity: boolean | null | undefined;
|
|
67
|
-
quantity: number | null | undefined;
|
|
68
67
|
optionValues: (CreateProductOptionValueRequest | UpdateProductOptionValueRequest)[];
|
|
69
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* @interface CreateProductProvisionItemRequest
|
|
71
|
+
* @since 0.1.8
|
|
72
|
+
*/
|
|
73
|
+
export interface CreateProductProvisionItemRequest {
|
|
74
|
+
id: ProductProvisionItemId;
|
|
75
|
+
value: string | null;
|
|
76
|
+
type: ProductProvisionItemValueType;
|
|
77
|
+
isOnProductPage: boolean;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @interface CreateProductProvisionRequest
|
|
81
|
+
* @since 0.1.8
|
|
82
|
+
*/
|
|
83
|
+
export interface CreateProductProvisionRequest {
|
|
84
|
+
categoryId: ProductProvisionCategoryId;
|
|
85
|
+
items: CreateProductProvisionItemRequest[];
|
|
86
|
+
}
|
|
70
87
|
/**
|
|
71
88
|
* @interface CreateProductRequest
|
|
72
|
-
* @since 0.1.
|
|
89
|
+
* @since 0.1.8
|
|
73
90
|
*/
|
|
74
|
-
|
|
91
|
+
interface CreateProductRequestCommon {
|
|
75
92
|
name: string;
|
|
76
|
-
description: string;
|
|
77
|
-
imageId: string | null | undefined;
|
|
78
|
-
brochureFileUrl: string | null | undefined;
|
|
79
|
-
brandIdx: number;
|
|
80
93
|
categoryIdx: number;
|
|
81
|
-
|
|
82
|
-
isHidden: boolean;
|
|
83
|
-
hasOption: boolean;
|
|
84
|
-
standardPrice: number;
|
|
94
|
+
thumbnailIds: string[];
|
|
85
95
|
onlinePrice: number;
|
|
86
|
-
onlinePriceUrl: string | null
|
|
96
|
+
onlinePriceUrl: string | null;
|
|
97
|
+
onlinePriceIsFreeShipping: boolean;
|
|
98
|
+
onlinePriceShippingFee: number | null;
|
|
99
|
+
description: string | null | undefined;
|
|
100
|
+
isHidden: boolean;
|
|
101
|
+
provision: CreateProductProvisionRequest;
|
|
102
|
+
}
|
|
103
|
+
export interface CreateProductRequestWithoutOption extends CreateProductRequestCommon {
|
|
104
|
+
hasOption: false;
|
|
105
|
+
variants: CreateProductVariantRequest;
|
|
106
|
+
}
|
|
107
|
+
export interface CreateProductRequestWithOption extends CreateProductRequestCommon {
|
|
108
|
+
hasOption: true;
|
|
87
109
|
options: CreateProductOptionRequest[];
|
|
88
110
|
variants: CreateProductVariantRequest[];
|
|
89
111
|
}
|
|
112
|
+
export type CreateProductRequest = CreateProductRequestWithoutOption | CreateProductRequestWithOption;
|
|
90
113
|
/**
|
|
91
114
|
* @interface UpdateProductRequest
|
|
92
|
-
* @since 0.1.
|
|
115
|
+
* @since 0.1.8
|
|
93
116
|
*/
|
|
94
|
-
|
|
117
|
+
interface UpdateProductRequestCommon {
|
|
95
118
|
name: string;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
119
|
+
categoryIdx: number | null;
|
|
120
|
+
thumbnailIds: string[];
|
|
121
|
+
onlinePrice: number | null;
|
|
122
|
+
onlinePriceUrl: string | null;
|
|
123
|
+
onlinePriceIsFreeShipping: boolean;
|
|
124
|
+
onlinePriceShippingFee: number | null;
|
|
125
|
+
description: string | null | undefined;
|
|
102
126
|
isHidden: boolean;
|
|
103
|
-
hasOption: boolean;
|
|
104
|
-
options: (CreateProductOptionRequest | UpdateProductOptionRequest)[];
|
|
105
|
-
variants: (CreateProductVariantRequest | UpdateProductVariantRequest)[];
|
|
106
127
|
}
|
|
128
|
+
export interface UpdateProductRequestWithoutOption extends UpdateProductRequestCommon {
|
|
129
|
+
hasOption: false;
|
|
130
|
+
variants: UpdateProductVariantRequest;
|
|
131
|
+
}
|
|
132
|
+
export interface UpdateProductRequestWithOption extends UpdateProductRequestCommon {
|
|
133
|
+
hasOption: true;
|
|
134
|
+
options: UpdateProductOptionRequest[];
|
|
135
|
+
variants: UpdateProductVariantRequest[];
|
|
136
|
+
}
|
|
137
|
+
export type UpdateProductRequest = UpdateProductRequestWithoutOption | UpdateProductRequestWithOption;
|
|
138
|
+
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GetItemResourceImageResponse } from '../../@common';
|
|
2
|
-
import { GetItemProductBrandResponse } from '../brand';
|
|
3
2
|
import { GetItemCategoryResponse } from '../category';
|
|
4
3
|
/**
|
|
5
4
|
* @interface GetItemProductOptionValueResponse
|
|
@@ -49,14 +48,19 @@ export interface GetItemProductResponse {
|
|
|
49
48
|
idx: number;
|
|
50
49
|
name: string;
|
|
51
50
|
description: string | null;
|
|
52
|
-
|
|
51
|
+
images: GetItemResourceImageResponse[];
|
|
53
52
|
categoryInfo: GetItemCategoryResponse;
|
|
54
|
-
brochureFileUrl: string | null;
|
|
55
|
-
brandInfo: GetItemProductBrandResponse;
|
|
56
53
|
isHidden: boolean;
|
|
54
|
+
isApproved: boolean;
|
|
57
55
|
hasOption: boolean;
|
|
56
|
+
onlinePrice: number;
|
|
57
|
+
onlinePriceUrl: string | null;
|
|
58
|
+
onlinePriceIsFreeShipping: boolean;
|
|
59
|
+
onlinePriceShippingFee: number | null;
|
|
58
60
|
options: GetItemProductOptionResponse[];
|
|
59
61
|
variants: GetItemProductVariantResponse[];
|
|
62
|
+
createdAt: Date;
|
|
63
|
+
updatedAt: Date;
|
|
60
64
|
}
|
|
61
65
|
/**
|
|
62
66
|
* @interface GetListProductResponse
|
package/dist/product/index.d.ts
CHANGED
package/dist/product/index.js
CHANGED
|
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./category"), exports);
|
|
18
|
-
__exportStar(require("./brand"), exports);
|
|
19
18
|
__exportStar(require("./shipping"), exports);
|
|
20
19
|
__exportStar(require("./default"), exports);
|
|
21
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/product/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/product/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,6CAA2B;AAC3B,4CAA0B"}
|
|
@@ -1,28 +1,31 @@
|
|
|
1
|
+
export type ShippingMethodType = 'free' | 'paid';
|
|
1
2
|
/**
|
|
2
3
|
* @interface CreateShippingPolicyRequest
|
|
3
4
|
* @since 0.1.6
|
|
4
5
|
*/
|
|
5
6
|
export interface CreateShippingPolicyRequest {
|
|
6
7
|
name: string;
|
|
7
|
-
bundleLimit: number | null;
|
|
8
8
|
standardPrice: number;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
bundleLimit: number | null;
|
|
10
|
+
isUnlimitedBundleShipping: boolean;
|
|
11
|
+
canShippingInDay: boolean;
|
|
12
|
+
canShippingInDayLimit: number | null;
|
|
13
|
+
canShippingInFriday: boolean;
|
|
14
|
+
shippingMethodType: ShippingMethodType;
|
|
15
|
+
hasFreeShippingThreshold: boolean;
|
|
16
|
+
freeShippingThreshold: number | null;
|
|
17
|
+
jejuPrice: number | null;
|
|
11
18
|
isAllowedLocationJeju: boolean;
|
|
12
19
|
hasSameRuleLocationJeju: boolean;
|
|
13
|
-
|
|
20
|
+
remotePrice: number | null;
|
|
14
21
|
isAllowedLocationRemote: boolean;
|
|
15
22
|
hasSameRuleLocationRemote: boolean;
|
|
16
|
-
priceLocationRemote: number;
|
|
17
|
-
isAllowedShippingInDay: boolean;
|
|
18
|
-
isAllowedShippingInFriday: boolean;
|
|
19
|
-
shippingInDayLimitTime: number;
|
|
20
23
|
isAllowedRefund: boolean;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
rejectReason: string | null;
|
|
25
|
+
refundDays: number | null;
|
|
26
|
+
refundShippingFee: number | null;
|
|
27
|
+
changeShippingFee: number | null;
|
|
28
|
+
extraRefundRequirement: string | null;
|
|
26
29
|
}
|
|
27
30
|
/**
|
|
28
31
|
* @interface UpdateShippingPolicyRequest
|
|
@@ -30,23 +33,25 @@ export interface CreateShippingPolicyRequest {
|
|
|
30
33
|
*/
|
|
31
34
|
export interface UpdateShippingPolicyRequest {
|
|
32
35
|
name?: string | undefined;
|
|
33
|
-
bundleLimit?: number | null | undefined;
|
|
34
36
|
standardPrice?: number | undefined;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
bundleLimit?: number | null | undefined;
|
|
38
|
+
isUnlimitedBundleShipping?: boolean | undefined;
|
|
39
|
+
canShippingInDay?: boolean | undefined;
|
|
40
|
+
canShippingInDayLimit?: number | null | undefined;
|
|
41
|
+
canShippingInFriday?: boolean | undefined;
|
|
42
|
+
shippingMethodType?: ShippingMethodType | undefined;
|
|
43
|
+
hasFreeShippingThreshold?: boolean | undefined;
|
|
44
|
+
freeShippingThreshold?: number | null | undefined;
|
|
45
|
+
jejuPrice?: number | null | undefined;
|
|
37
46
|
isAllowedLocationJeju?: boolean | undefined;
|
|
38
47
|
hasSameRuleLocationJeju?: boolean | undefined;
|
|
39
|
-
|
|
48
|
+
remotePrice?: number | null | undefined;
|
|
40
49
|
isAllowedLocationRemote?: boolean | undefined;
|
|
41
50
|
hasSameRuleLocationRemote?: boolean | undefined;
|
|
42
|
-
priceLocationRemote?: number | undefined;
|
|
43
|
-
isAllowedShippingInDay?: boolean | undefined;
|
|
44
|
-
isAllowedShippingInFriday?: boolean | undefined;
|
|
45
|
-
shippingInDayLimitTime?: number | undefined;
|
|
46
51
|
isAllowedRefund?: boolean | undefined;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
rejectReason?: string | null | undefined;
|
|
53
|
+
refundDays?: number | null | undefined;
|
|
54
|
+
refundShippingFee?: number | null | undefined;
|
|
55
|
+
changeShippingFee?: number | null | undefined;
|
|
56
|
+
extraRefundRequirement?: string | null | undefined;
|
|
52
57
|
}
|
|
@@ -1,26 +1,37 @@
|
|
|
1
|
+
import { ShippingMethodType } from './shipping-policy.request';
|
|
2
|
+
/**
|
|
3
|
+
* @interface GetItemShippingPolicyResponse
|
|
4
|
+
* @since 0.1.8
|
|
5
|
+
*/
|
|
1
6
|
export interface GetItemShippingPolicyResponse {
|
|
2
7
|
idx: number;
|
|
3
8
|
name: string;
|
|
4
9
|
standardPrice: number;
|
|
5
10
|
bundleLimit: number | null;
|
|
6
|
-
|
|
7
|
-
|
|
11
|
+
isUnlimitedBundleShipping: boolean;
|
|
12
|
+
canShippingInDay: boolean;
|
|
13
|
+
canShippingInDayLimit: number | null;
|
|
14
|
+
canShippingInFriday: boolean;
|
|
15
|
+
shippingMethodType: ShippingMethodType;
|
|
16
|
+
hasFreeShippingThreshold: boolean;
|
|
17
|
+
freeShippingThreshold: number | null;
|
|
18
|
+
jejuPrice: number | null;
|
|
8
19
|
isAllowedLocationJeju: boolean;
|
|
9
20
|
hasSameRuleLocationJeju: boolean;
|
|
10
|
-
|
|
21
|
+
remotePrice: number | null;
|
|
11
22
|
isAllowedLocationRemote: boolean;
|
|
12
23
|
hasSameRuleLocationRemote: boolean;
|
|
13
|
-
priceLocationRemote: number | null;
|
|
14
|
-
isAllowedShippingInDay: boolean;
|
|
15
|
-
isAllowedShippingInFriday: boolean;
|
|
16
|
-
shippingInDayLimitTime: number | null;
|
|
17
24
|
isAllowedRefund: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
rejectReason: string | null;
|
|
26
|
+
refundDays: number | null;
|
|
27
|
+
refundShippingFee: number | null;
|
|
28
|
+
changeShippingFee: number | null;
|
|
29
|
+
extraRefundRequirement: string | null;
|
|
23
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* @interface GetListShippingPolicyResponse
|
|
33
|
+
* @since 0.1.8
|
|
34
|
+
*/
|
|
24
35
|
export interface GetListShippingPolicyResponse {
|
|
25
36
|
data: GetItemShippingPolicyResponse[];
|
|
26
37
|
}
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brand.request.js","sourceRoot":"","sources":["../../../src/product/brand/brand.request.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brand.response.js","sourceRoot":"","sources":["../../../src/product/brand/brand.response.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/product/brand/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,mDAAiC"}
|