@carsayo/types 1.1.776 → 1.1.777

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.
@@ -0,0 +1,65 @@
1
+ export declare enum HttpStatusCode {
2
+ Continue = 100,
3
+ SwitchingProtocols = 101,
4
+ Processing = 102,
5
+ EarlyHints = 103,
6
+ Ok = 200,
7
+ Created = 201,
8
+ Accepted = 202,
9
+ NonAuthoritativeInformation = 203,
10
+ NoContent = 204,
11
+ ResetContent = 205,
12
+ PartialContent = 206,
13
+ MultiStatus = 207,
14
+ AlreadyReported = 208,
15
+ ImUsed = 226,
16
+ MultipleChoices = 300,
17
+ MovedPermanently = 301,
18
+ Found = 302,
19
+ SeeOther = 303,
20
+ NotModified = 304,
21
+ UseProxy = 305,
22
+ Unused = 306,
23
+ TemporaryRedirect = 307,
24
+ PermanentRedirect = 308,
25
+ BadRequest = 400,
26
+ Unauthorized = 401,
27
+ PaymentRequired = 402,
28
+ Forbidden = 403,
29
+ NotFound = 404,
30
+ MethodNotAllowed = 405,
31
+ NotAcceptable = 406,
32
+ ProxyAuthenticationRequired = 407,
33
+ RequestTimeout = 408,
34
+ Conflict = 409,
35
+ Gone = 410,
36
+ LengthRequired = 411,
37
+ PreconditionFailed = 412,
38
+ PayloadTooLarge = 413,
39
+ UriTooLong = 414,
40
+ UnsupportedMediaType = 415,
41
+ RangeNotSatisfiable = 416,
42
+ ExpectationFailed = 417,
43
+ ImATeapot = 418,
44
+ MisdirectedRequest = 421,
45
+ UnprocessableEntity = 422,
46
+ Locked = 423,
47
+ FailedDependency = 424,
48
+ TooEarly = 425,
49
+ UpgradeRequired = 426,
50
+ PreconditionRequired = 428,
51
+ TooManyRequests = 429,
52
+ RequestHeaderFieldsTooLarge = 431,
53
+ UnavailableForLegalReasons = 451,
54
+ InternalServerError = 500,
55
+ NotImplemented = 501,
56
+ BadGateway = 502,
57
+ ServiceUnavailable = 503,
58
+ GatewayTimeout = 504,
59
+ HttpVersionNotSupported = 505,
60
+ VariantAlsoNegotiates = 506,
61
+ InsufficientStorage = 507,
62
+ LoopDetected = 508,
63
+ NotExtended = 510,
64
+ NetworkAuthenticationRequired = 511
65
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HttpStatusCode = void 0;
4
+ var HttpStatusCode;
5
+ (function (HttpStatusCode) {
6
+ HttpStatusCode[HttpStatusCode["Continue"] = 100] = "Continue";
7
+ HttpStatusCode[HttpStatusCode["SwitchingProtocols"] = 101] = "SwitchingProtocols";
8
+ HttpStatusCode[HttpStatusCode["Processing"] = 102] = "Processing";
9
+ HttpStatusCode[HttpStatusCode["EarlyHints"] = 103] = "EarlyHints";
10
+ HttpStatusCode[HttpStatusCode["Ok"] = 200] = "Ok";
11
+ HttpStatusCode[HttpStatusCode["Created"] = 201] = "Created";
12
+ HttpStatusCode[HttpStatusCode["Accepted"] = 202] = "Accepted";
13
+ HttpStatusCode[HttpStatusCode["NonAuthoritativeInformation"] = 203] = "NonAuthoritativeInformation";
14
+ HttpStatusCode[HttpStatusCode["NoContent"] = 204] = "NoContent";
15
+ HttpStatusCode[HttpStatusCode["ResetContent"] = 205] = "ResetContent";
16
+ HttpStatusCode[HttpStatusCode["PartialContent"] = 206] = "PartialContent";
17
+ HttpStatusCode[HttpStatusCode["MultiStatus"] = 207] = "MultiStatus";
18
+ HttpStatusCode[HttpStatusCode["AlreadyReported"] = 208] = "AlreadyReported";
19
+ HttpStatusCode[HttpStatusCode["ImUsed"] = 226] = "ImUsed";
20
+ HttpStatusCode[HttpStatusCode["MultipleChoices"] = 300] = "MultipleChoices";
21
+ HttpStatusCode[HttpStatusCode["MovedPermanently"] = 301] = "MovedPermanently";
22
+ HttpStatusCode[HttpStatusCode["Found"] = 302] = "Found";
23
+ HttpStatusCode[HttpStatusCode["SeeOther"] = 303] = "SeeOther";
24
+ HttpStatusCode[HttpStatusCode["NotModified"] = 304] = "NotModified";
25
+ HttpStatusCode[HttpStatusCode["UseProxy"] = 305] = "UseProxy";
26
+ HttpStatusCode[HttpStatusCode["Unused"] = 306] = "Unused";
27
+ HttpStatusCode[HttpStatusCode["TemporaryRedirect"] = 307] = "TemporaryRedirect";
28
+ HttpStatusCode[HttpStatusCode["PermanentRedirect"] = 308] = "PermanentRedirect";
29
+ HttpStatusCode[HttpStatusCode["BadRequest"] = 400] = "BadRequest";
30
+ HttpStatusCode[HttpStatusCode["Unauthorized"] = 401] = "Unauthorized";
31
+ HttpStatusCode[HttpStatusCode["PaymentRequired"] = 402] = "PaymentRequired";
32
+ HttpStatusCode[HttpStatusCode["Forbidden"] = 403] = "Forbidden";
33
+ HttpStatusCode[HttpStatusCode["NotFound"] = 404] = "NotFound";
34
+ HttpStatusCode[HttpStatusCode["MethodNotAllowed"] = 405] = "MethodNotAllowed";
35
+ HttpStatusCode[HttpStatusCode["NotAcceptable"] = 406] = "NotAcceptable";
36
+ HttpStatusCode[HttpStatusCode["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
37
+ HttpStatusCode[HttpStatusCode["RequestTimeout"] = 408] = "RequestTimeout";
38
+ HttpStatusCode[HttpStatusCode["Conflict"] = 409] = "Conflict";
39
+ HttpStatusCode[HttpStatusCode["Gone"] = 410] = "Gone";
40
+ HttpStatusCode[HttpStatusCode["LengthRequired"] = 411] = "LengthRequired";
41
+ HttpStatusCode[HttpStatusCode["PreconditionFailed"] = 412] = "PreconditionFailed";
42
+ HttpStatusCode[HttpStatusCode["PayloadTooLarge"] = 413] = "PayloadTooLarge";
43
+ HttpStatusCode[HttpStatusCode["UriTooLong"] = 414] = "UriTooLong";
44
+ HttpStatusCode[HttpStatusCode["UnsupportedMediaType"] = 415] = "UnsupportedMediaType";
45
+ HttpStatusCode[HttpStatusCode["RangeNotSatisfiable"] = 416] = "RangeNotSatisfiable";
46
+ HttpStatusCode[HttpStatusCode["ExpectationFailed"] = 417] = "ExpectationFailed";
47
+ HttpStatusCode[HttpStatusCode["ImATeapot"] = 418] = "ImATeapot";
48
+ HttpStatusCode[HttpStatusCode["MisdirectedRequest"] = 421] = "MisdirectedRequest";
49
+ HttpStatusCode[HttpStatusCode["UnprocessableEntity"] = 422] = "UnprocessableEntity";
50
+ HttpStatusCode[HttpStatusCode["Locked"] = 423] = "Locked";
51
+ HttpStatusCode[HttpStatusCode["FailedDependency"] = 424] = "FailedDependency";
52
+ HttpStatusCode[HttpStatusCode["TooEarly"] = 425] = "TooEarly";
53
+ HttpStatusCode[HttpStatusCode["UpgradeRequired"] = 426] = "UpgradeRequired";
54
+ HttpStatusCode[HttpStatusCode["PreconditionRequired"] = 428] = "PreconditionRequired";
55
+ HttpStatusCode[HttpStatusCode["TooManyRequests"] = 429] = "TooManyRequests";
56
+ HttpStatusCode[HttpStatusCode["RequestHeaderFieldsTooLarge"] = 431] = "RequestHeaderFieldsTooLarge";
57
+ HttpStatusCode[HttpStatusCode["UnavailableForLegalReasons"] = 451] = "UnavailableForLegalReasons";
58
+ HttpStatusCode[HttpStatusCode["InternalServerError"] = 500] = "InternalServerError";
59
+ HttpStatusCode[HttpStatusCode["NotImplemented"] = 501] = "NotImplemented";
60
+ HttpStatusCode[HttpStatusCode["BadGateway"] = 502] = "BadGateway";
61
+ HttpStatusCode[HttpStatusCode["ServiceUnavailable"] = 503] = "ServiceUnavailable";
62
+ HttpStatusCode[HttpStatusCode["GatewayTimeout"] = 504] = "GatewayTimeout";
63
+ HttpStatusCode[HttpStatusCode["HttpVersionNotSupported"] = 505] = "HttpVersionNotSupported";
64
+ HttpStatusCode[HttpStatusCode["VariantAlsoNegotiates"] = 506] = "VariantAlsoNegotiates";
65
+ HttpStatusCode[HttpStatusCode["InsufficientStorage"] = 507] = "InsufficientStorage";
66
+ HttpStatusCode[HttpStatusCode["LoopDetected"] = 508] = "LoopDetected";
67
+ HttpStatusCode[HttpStatusCode["NotExtended"] = 510] = "NotExtended";
68
+ HttpStatusCode[HttpStatusCode["NetworkAuthenticationRequired"] = 511] = "NetworkAuthenticationRequired";
69
+ })(HttpStatusCode || (exports.HttpStatusCode = HttpStatusCode = {}));
@@ -1,2 +1,3 @@
1
1
  export * from "./interface";
2
2
  export * from "./type";
3
+ export * from "./enum";
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./interface"), exports);
18
18
  __exportStar(require("./type"), exports);
19
+ __exportStar(require("./enum"), exports);
@@ -1,4 +1,5 @@
1
1
  import { SidoId, SigunguId } from "../../../data";
2
+ import { HttpStatusCode } from "./enum";
2
3
  /**
3
4
  * @description 시도 정보
4
5
  */
@@ -21,3 +22,18 @@ export interface Region {
21
22
  sigunguId: SigunguId;
22
23
  sigungu: string | null;
23
24
  }
25
+ export interface CarsayoErrorResponse {
26
+ /** 에러 코드
27
+ * @example E-EDFOKD1443
28
+ */
29
+ error: string;
30
+ /** 에러 메시지 */
31
+ message: string;
32
+ statusCode: HttpStatusCode;
33
+ /** 에러 발생 요청 경로
34
+ * @example /order/commission/finish
35
+ */
36
+ path: string;
37
+ /** 에러 발생 시간 */
38
+ timestamp: Date;
39
+ }
@@ -16,13 +16,13 @@ export interface GetTermDetailDTO extends TermCategoryIdDTO {
16
16
  */
17
17
  export interface OptionalTermsAgreementDTO {
18
18
  /** 위치기반서비스 이용 동의 */
19
- 94100: boolean;
19
+ 94100?: boolean;
20
20
  /** 광고성 푸시 알람 수신 동의 */
21
- 95100: boolean;
21
+ 95100?: boolean;
22
22
  /** 광고성 SMS 메시지 수신 동의 */
23
- 95200: boolean;
23
+ 95200?: boolean;
24
24
  /** 광고성 이메일 수신 동의 */
25
- 95300: boolean;
25
+ 95300?: boolean;
26
26
  }
27
27
  /**
28
28
  * @description 고객 회원가입시 입력하는 약관
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carsayo/types",
3
- "version": "1.1.776",
3
+ "version": "1.1.777",
4
4
  "description": "Carsayo app type",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",