@cmarket/partner-sdk 0.1.0

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.
Files changed (170) hide show
  1. package/.openapi-generator/FILES +57 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +95 -0
  5. package/api/oauth-api.ts +127 -0
  6. package/api/partner-v1-api.ts +191 -0
  7. package/api/partner-v1-legacy-api.ts +178 -0
  8. package/api/partner-v2-api.ts +285 -0
  9. package/api.ts +21 -0
  10. package/base.ts +62 -0
  11. package/common.ts +127 -0
  12. package/configuration.ts +121 -0
  13. package/dist/api/oauth-api.d.ts +68 -0
  14. package/dist/api/oauth-api.js +130 -0
  15. package/dist/api/partner-v1-api.d.ts +96 -0
  16. package/dist/api/partner-v1-api.js +191 -0
  17. package/dist/api/partner-v1-legacy-api.d.ts +91 -0
  18. package/dist/api/partner-v1-legacy-api.js +181 -0
  19. package/dist/api/partner-v2-api.d.ts +136 -0
  20. package/dist/api/partner-v2-api.js +273 -0
  21. package/dist/api.d.ts +15 -0
  22. package/dist/api.js +33 -0
  23. package/dist/base.d.ts +42 -0
  24. package/dist/base.js +46 -0
  25. package/dist/common.d.ts +34 -0
  26. package/dist/common.js +139 -0
  27. package/dist/configuration.d.ts +98 -0
  28. package/dist/configuration.js +44 -0
  29. package/dist/esm/api/oauth-api.d.ts +68 -0
  30. package/dist/esm/api/oauth-api.js +123 -0
  31. package/dist/esm/api/partner-v1-api.d.ts +96 -0
  32. package/dist/esm/api/partner-v1-api.js +184 -0
  33. package/dist/esm/api/partner-v1-legacy-api.d.ts +91 -0
  34. package/dist/esm/api/partner-v1-legacy-api.js +174 -0
  35. package/dist/esm/api/partner-v2-api.d.ts +136 -0
  36. package/dist/esm/api/partner-v2-api.js +266 -0
  37. package/dist/esm/api.d.ts +15 -0
  38. package/dist/esm/api.js +17 -0
  39. package/dist/esm/base.d.ts +42 -0
  40. package/dist/esm/base.js +41 -0
  41. package/dist/esm/common.d.ts +34 -0
  42. package/dist/esm/common.js +126 -0
  43. package/dist/esm/configuration.d.ts +98 -0
  44. package/dist/esm/configuration.js +40 -0
  45. package/dist/esm/index.d.ts +14 -0
  46. package/dist/esm/index.js +16 -0
  47. package/dist/esm/models/award-registered-response-dto.d.ts +25 -0
  48. package/dist/esm/models/award-registered-response-dto.js +14 -0
  49. package/dist/esm/models/bid-bond-dto.d.ts +27 -0
  50. package/dist/esm/models/bid-bond-dto.js +18 -0
  51. package/dist/esm/models/bid-created-response-dto.d.ts +17 -0
  52. package/dist/esm/models/bid-created-response-dto.js +14 -0
  53. package/dist/esm/models/bid-document-dto.d.ts +25 -0
  54. package/dist/esm/models/bid-document-dto.js +14 -0
  55. package/dist/esm/models/bid-item-dto.d.ts +41 -0
  56. package/dist/esm/models/bid-item-dto.js +14 -0
  57. package/dist/esm/models/bid-manager-dto.d.ts +25 -0
  58. package/dist/esm/models/bid-manager-dto.js +14 -0
  59. package/dist/esm/models/bid-status.d.ts +23 -0
  60. package/dist/esm/models/bid-status.js +24 -0
  61. package/dist/esm/models/bid-summary-response-dto.d.ts +30 -0
  62. package/dist/esm/models/bid-summary-response-dto.js +14 -0
  63. package/dist/esm/models/create-bid-request-dto.d.ts +278 -0
  64. package/dist/esm/models/create-bid-request-dto.js +101 -0
  65. package/dist/esm/models/file-uploaded-response-dto.d.ts +17 -0
  66. package/dist/esm/models/file-uploaded-response-dto.js +14 -0
  67. package/dist/esm/models/health-response-dto.d.ts +21 -0
  68. package/dist/esm/models/health-response-dto.js +14 -0
  69. package/dist/esm/models/hierarchical-region-dto.d.ts +21 -0
  70. package/dist/esm/models/hierarchical-region-dto.js +14 -0
  71. package/dist/esm/models/index.d.ts +18 -0
  72. package/dist/esm/models/index.js +18 -0
  73. package/dist/esm/models/legacy-envelope-dto.d.ts +25 -0
  74. package/dist/esm/models/legacy-envelope-dto.js +14 -0
  75. package/dist/esm/models/preconditions-dto.d.ts +88 -0
  76. package/dist/esm/models/preconditions-dto.js +44 -0
  77. package/dist/esm/models/register-award-request-dto.d.ts +25 -0
  78. package/dist/esm/models/register-award-request-dto.js +14 -0
  79. package/dist/esm/models/token-request-dto.d.ts +33 -0
  80. package/dist/esm/models/token-request-dto.js +16 -0
  81. package/dist/esm/models/token-response-dto.d.ts +29 -0
  82. package/dist/esm/models/token-response-dto.js +14 -0
  83. package/dist/esm/models/upload-file-request-dto.d.ts +25 -0
  84. package/dist/esm/models/upload-file-request-dto.js +14 -0
  85. package/dist/index.d.ts +14 -0
  86. package/dist/index.js +32 -0
  87. package/dist/models/award-registered-response-dto.d.ts +25 -0
  88. package/dist/models/award-registered-response-dto.js +15 -0
  89. package/dist/models/bid-bond-dto.d.ts +27 -0
  90. package/dist/models/bid-bond-dto.js +21 -0
  91. package/dist/models/bid-created-response-dto.d.ts +17 -0
  92. package/dist/models/bid-created-response-dto.js +15 -0
  93. package/dist/models/bid-document-dto.d.ts +25 -0
  94. package/dist/models/bid-document-dto.js +15 -0
  95. package/dist/models/bid-item-dto.d.ts +41 -0
  96. package/dist/models/bid-item-dto.js +15 -0
  97. package/dist/models/bid-manager-dto.d.ts +25 -0
  98. package/dist/models/bid-manager-dto.js +15 -0
  99. package/dist/models/bid-status.d.ts +23 -0
  100. package/dist/models/bid-status.js +27 -0
  101. package/dist/models/bid-summary-response-dto.d.ts +30 -0
  102. package/dist/models/bid-summary-response-dto.js +15 -0
  103. package/dist/models/create-bid-request-dto.d.ts +278 -0
  104. package/dist/models/create-bid-request-dto.js +104 -0
  105. package/dist/models/file-uploaded-response-dto.d.ts +17 -0
  106. package/dist/models/file-uploaded-response-dto.js +15 -0
  107. package/dist/models/health-response-dto.d.ts +21 -0
  108. package/dist/models/health-response-dto.js +15 -0
  109. package/dist/models/hierarchical-region-dto.d.ts +21 -0
  110. package/dist/models/hierarchical-region-dto.js +15 -0
  111. package/dist/models/index.d.ts +18 -0
  112. package/dist/models/index.js +34 -0
  113. package/dist/models/legacy-envelope-dto.d.ts +25 -0
  114. package/dist/models/legacy-envelope-dto.js +15 -0
  115. package/dist/models/preconditions-dto.d.ts +88 -0
  116. package/dist/models/preconditions-dto.js +47 -0
  117. package/dist/models/register-award-request-dto.d.ts +25 -0
  118. package/dist/models/register-award-request-dto.js +15 -0
  119. package/dist/models/token-request-dto.d.ts +33 -0
  120. package/dist/models/token-request-dto.js +19 -0
  121. package/dist/models/token-response-dto.d.ts +29 -0
  122. package/dist/models/token-response-dto.js +15 -0
  123. package/dist/models/upload-file-request-dto.d.ts +25 -0
  124. package/dist/models/upload-file-request-dto.js +15 -0
  125. package/docs/AwardRegisteredResponseDto.md +24 -0
  126. package/docs/BidBondDto.md +22 -0
  127. package/docs/BidCreatedResponseDto.md +20 -0
  128. package/docs/BidDocumentDto.md +24 -0
  129. package/docs/BidItemDto.md +32 -0
  130. package/docs/BidManagerDto.md +24 -0
  131. package/docs/BidStatus.md +19 -0
  132. package/docs/BidSummaryResponseDto.md +26 -0
  133. package/docs/CreateBidRequestDto.md +96 -0
  134. package/docs/FileUploadedResponseDto.md +20 -0
  135. package/docs/HealthResponseDto.md +22 -0
  136. package/docs/HierarchicalRegionDto.md +22 -0
  137. package/docs/LegacyEnvelopeDto.md +24 -0
  138. package/docs/OauthApi.md +61 -0
  139. package/docs/PartnerV1Api.md +105 -0
  140. package/docs/PartnerV1LegacyApi.md +97 -0
  141. package/docs/PartnerV2Api.md +166 -0
  142. package/docs/PreconditionsDto.md +38 -0
  143. package/docs/RegisterAwardRequestDto.md +24 -0
  144. package/docs/TokenRequestDto.md +26 -0
  145. package/docs/TokenResponseDto.md +26 -0
  146. package/docs/UploadFileRequestDto.md +24 -0
  147. package/git_push.sh +57 -0
  148. package/index.ts +18 -0
  149. package/models/award-registered-response-dto.ts +31 -0
  150. package/models/bid-bond-dto.ts +36 -0
  151. package/models/bid-created-response-dto.ts +23 -0
  152. package/models/bid-document-dto.ts +31 -0
  153. package/models/bid-item-dto.ts +47 -0
  154. package/models/bid-manager-dto.ts +31 -0
  155. package/models/bid-status.ts +33 -0
  156. package/models/bid-summary-response-dto.ts +40 -0
  157. package/models/create-bid-request-dto.ts +312 -0
  158. package/models/file-uploaded-response-dto.ts +23 -0
  159. package/models/health-response-dto.ts +27 -0
  160. package/models/hierarchical-region-dto.ts +27 -0
  161. package/models/index.ts +18 -0
  162. package/models/legacy-envelope-dto.ts +31 -0
  163. package/models/preconditions-dto.ts +101 -0
  164. package/models/register-award-request-dto.ts +31 -0
  165. package/models/token-request-dto.ts +42 -0
  166. package/models/token-response-dto.ts +35 -0
  167. package/models/upload-file-request-dto.ts +31 -0
  168. package/package.json +33 -0
  169. package/tsconfig.esm.json +7 -0
  170. package/tsconfig.json +18 -0
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CMARKET V6 Partner API
5
+ * 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ export interface BidBondDto {
18
+ /**
19
+ * 입찰보증금 납부 요구 여부.
20
+ */
21
+ 'required': boolean;
22
+ /**
23
+ * 납부 방식 (required=true 일 때 1개 이상 필수). GUARANTEE/CASH/WAIVER
24
+ */
25
+ 'methods'?: Array<BidBondDtoMethodsEnum>;
26
+ }
27
+
28
+ export const BidBondDtoMethodsEnum = {
29
+ Guarantee: 'GUARANTEE',
30
+ Cash: 'CASH',
31
+ Waiver: 'WAIVER',
32
+ } as const;
33
+
34
+ export type BidBondDtoMethodsEnum = typeof BidBondDtoMethodsEnum[keyof typeof BidBondDtoMethodsEnum];
35
+
36
+
@@ -0,0 +1,23 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CMARKET V6 Partner API
5
+ * 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ export interface BidCreatedResponseDto {
18
+ /**
19
+ * 생성된 공고 구매번호.
20
+ */
21
+ 'bidNo': string;
22
+ }
23
+
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CMARKET V6 Partner API
5
+ * 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ export interface BidDocumentDto {
18
+ /**
19
+ * 서류 코드(paperCode).
20
+ */
21
+ 'paperCode': number;
22
+ /**
23
+ * 서류명.
24
+ */
25
+ 'paperName': string;
26
+ /**
27
+ * 자동생성 여부.
28
+ */
29
+ 'isAutoGenerated': boolean;
30
+ }
31
+
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CMARKET V6 Partner API
5
+ * 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ export interface BidItemDto {
18
+ /**
19
+ * 품목명.
20
+ */
21
+ 'productName': string;
22
+ /**
23
+ * 품목 코드 (카탈로그 코드 등).
24
+ */
25
+ 'itemCode'?: string;
26
+ /**
27
+ * 규격/사양.
28
+ */
29
+ 'spec'?: string;
30
+ /**
31
+ * 수량.
32
+ */
33
+ 'quantity': number;
34
+ /**
35
+ * 단위.
36
+ */
37
+ 'unit'?: string;
38
+ /**
39
+ * 단가(원).
40
+ */
41
+ 'unitPrice': number;
42
+ /**
43
+ * 품목 예산단가(원). unitPrice 와 별도로 예산 기준 단가가 필요한 경우 사용.
44
+ */
45
+ 'unitBudget'?: number;
46
+ }
47
+
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CMARKET V6 Partner API
5
+ * 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ export interface BidManagerDto {
18
+ /**
19
+ * 담당자명.
20
+ */
21
+ 'name': string;
22
+ /**
23
+ * 연락처.
24
+ */
25
+ 'phone': string;
26
+ /**
27
+ * 이메일.
28
+ */
29
+ 'email': string;
30
+ }
31
+
@@ -0,0 +1,33 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CMARKET V6 Partner API
5
+ * 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ * 공고 상태 (V5 b2b_buy.status SSOT enum)
19
+ */
20
+
21
+ export const BidStatus = {
22
+ A: 'A',
23
+ B: 'B',
24
+ C: 'C',
25
+ D: 'D',
26
+ E: 'E',
27
+ R: 'R',
28
+ } as const;
29
+
30
+ export type BidStatus = typeof BidStatus[keyof typeof BidStatus];
31
+
32
+
33
+
@@ -0,0 +1,40 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CMARKET V6 Partner API
5
+ * 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { BidStatus } from './bid-status';
19
+
20
+ export interface BidSummaryResponseDto {
21
+ /**
22
+ * 공고 식별자 (V5 b2b_buy.buy_idx).
23
+ */
24
+ 'bidId': string;
25
+ /**
26
+ * 공고 제목 (V5 b2b_buy.buy_title).
27
+ */
28
+ 'title': string;
29
+ /**
30
+ * 공고 상태 (V5 b2b_buy.status SSOT enum)
31
+ */
32
+ 'status': BidStatus;
33
+ /**
34
+ * 예산 가격 (원, V5 b2b_buy.buy_price).
35
+ */
36
+ 'budget': number;
37
+ }
38
+
39
+
40
+
@@ -0,0 +1,312 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CMARKET V6 Partner API
5
+ * 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { BidDocumentDto } from './bid-document-dto';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { BidItemDto } from './bid-item-dto';
22
+ // May contain unused imports in some cases
23
+ // @ts-ignore
24
+ import type { BidManagerDto } from './bid-manager-dto';
25
+ // May contain unused imports in some cases
26
+ // @ts-ignore
27
+ import type { HierarchicalRegionDto } from './hierarchical-region-dto';
28
+ // May contain unused imports in some cases
29
+ // @ts-ignore
30
+ import type { PreconditionsDto } from './preconditions-dto';
31
+
32
+ export interface CreateBidRequestDto {
33
+ /**
34
+ * 공고 명의 회원 ID(b2b_member.member_id). 한 파트너 키가 그룹 내 여러 회원 명의로 등록(멀티테넌트).
35
+ */
36
+ 'buyerId': string;
37
+ /**
38
+ * 공고 카테고리 (PRODUCT: 물품, CONSTRUCTION: 공사, SERVICE: 용역, SALES: 매각). backend BidCategoryType mirror.
39
+ */
40
+ 'categoryType'?: CreateBidRequestDtoCategoryTypeEnum;
41
+ /**
42
+ * 공고명.
43
+ */
44
+ 'projectName': string;
45
+ /**
46
+ * 공고 상세 내용.
47
+ */
48
+ 'noticeContent': string;
49
+ /**
50
+ * 예정금액(예산) 공개 여부.
51
+ */
52
+ 'disclosePlannedAmount': boolean;
53
+ /**
54
+ * 첨부파일 fileKey 배열 (POST /v2/files 응답에서 받은 32자 키). backend b2b_file_info 참조.
55
+ */
56
+ 'attachments'?: Array<string>;
57
+ /**
58
+ * 품목 목록(1개 이상).
59
+ */
60
+ 'items': Array<BidItemDto>;
61
+ /**
62
+ * 총 예산금액(원). items 합계 대신 별도 totalBudget 으로 override 할 때 사용.
63
+ */
64
+ 'totalBudget'?: number;
65
+ /**
66
+ * 낙찰 방법. A=최저가, B=적정가, C=최고가, D=최다수량, E=협상(임의), F=제한적최저가, H=협상(자동계산). backend AwardMethod mirror.
67
+ */
68
+ 'awardMethod'?: CreateBidRequestDtoAwardMethodEnum;
69
+ /**
70
+ * 견적서 제출 조건. UNIT_AUTO=자동생성(단가), TOTAL_AUTO=자동생성(총액), FILE=직접첨부, NONE=미제출. backend BidQuoteCondition mirror.
71
+ */
72
+ 'quoteCondition'?: CreateBidRequestDtoQuoteConditionEnum;
73
+ /**
74
+ * 예비가격 범위 (awardMethod=F 필수). A=±2%, B=±3%, C=±4%. backend BidPreliminaryPriceRegion mirror.
75
+ */
76
+ 'preliminaryPriceRegion'?: CreateBidRequestDtoPreliminaryPriceRegionEnum;
77
+ /**
78
+ * 예비가격 선택수 (awardMethod=F 필수). 2/3/4 중 하나.
79
+ */
80
+ 'preliminaryPriceCount'?: CreateBidRequestDtoPreliminaryPriceCountEnum;
81
+ /**
82
+ * 낙찰하한율(%) (awardMethod=F 필수). 0-100 범위.
83
+ */
84
+ 'lowestBidPercent'?: number;
85
+ /**
86
+ * 배정비율(가격:기술 배점) (awardMethod=H 필수). 0=100:0 / 10=90:10 / 20=80:20 / 30=70:30 / 40=60:40 / 50=50:50.
87
+ */
88
+ 'negotiationBidRatio'?: CreateBidRequestDtoNegotiationBidRatioEnum;
89
+ /**
90
+ * 협상 기준 (awardMethod=H 필수). A=없음, B=차등점수제, C=원가절감적정성(→ negotiationStandardRatio 추가 필수), D=기타.
91
+ */
92
+ 'negotiationStandard'?: CreateBidRequestDtoNegotiationStandardEnum;
93
+ /**
94
+ * 기준금액비율 (negotiationStandard=C 필수). 60/70/80 중 하나.
95
+ */
96
+ 'negotiationStandardRatio'?: CreateBidRequestDtoNegotiationStandardRatioEnum;
97
+ /**
98
+ * 참가자격 유형. A=전국경쟁, C1=광역시도 지역제한, C2=시군구 지역제한. B(지명경쟁)는 nominee 목록 필드 추가 전까지 미지원. backend BidQualificationStyle mirror.
99
+ */
100
+ 'qualificationStyle'?: CreateBidRequestDtoQualificationStyleEnum;
101
+ /**
102
+ * 지역제한 지역 목록 (qualificationStyle=C1/C2 시 사용).
103
+ */
104
+ 'selectedRegions'?: Array<HierarchicalRegionDto>;
105
+ /**
106
+ * 면허 코드 목록.
107
+ */
108
+ 'licenses'?: Array<string>;
109
+ /**
110
+ * 필수 면허 코드 목록.
111
+ */
112
+ 'requiredLicenses'?: Array<string>;
113
+ /**
114
+ * 자격조건 추가 기입 (최대 1000자).
115
+ */
116
+ 'preconditionDesc'?: string;
117
+ /**
118
+ * precondition 구조체. V5 precondition 토큰 트리를 modern 명으로 표현. ACL이 backend conditions bag 으로 변환.
119
+ */
120
+ 'preconditions'?: PreconditionsDto;
121
+ /**
122
+ * 납품기한 유형. A=직접설정(deliveryDate 필요), B=계약후지정(deliveryPeriodDays 필요), C=계약후협의. backend BidDeliveryDateType mirror.
123
+ */
124
+ 'deliveryDateType'?: CreateBidRequestDtoDeliveryDateTypeEnum;
125
+ /**
126
+ * 납품기한 일자 (deliveryDateType=A 시 사용). 형식: YYYY-MM-DD.
127
+ */
128
+ 'deliveryDate'?: string;
129
+ /**
130
+ * 납품소요일(일) (deliveryDateType=B 시 사용). 최대 999일(backend deliveryDays 3자리 제한).
131
+ */
132
+ 'deliveryPeriodDays'?: number;
133
+ /**
134
+ * 납품 방법. A=택배(직납가능), B=직접납품, C=납품및설치, D=픽업. backend BidDeliveryMethod mirror.
135
+ */
136
+ 'deliveryMethod'?: CreateBidRequestDtoDeliveryMethodEnum;
137
+ /**
138
+ * 납품지 주소.
139
+ */
140
+ 'deliveryAddress': string;
141
+ /**
142
+ * 결제 방법. A=현금, B=카드. backend BidPaymentMethod mirror.
143
+ */
144
+ 'paymentMethod'?: CreateBidRequestDtoPaymentMethodEnum;
145
+ /**
146
+ * 대금지급 기한(일).
147
+ */
148
+ 'paymentDays': string;
149
+ /**
150
+ * 제출 서류 목록(1개 이상).
151
+ */
152
+ 'documents': Array<BidDocumentDto>;
153
+ /**
154
+ * 과세 유형. A=과세, B=면세, C=면세(의제매입). backend BidTaxationType mirror.
155
+ */
156
+ 'taxationType'?: CreateBidRequestDtoTaxationTypeEnum;
157
+ /**
158
+ * 수의계약 여부. Y=수의계약, N=일반.
159
+ */
160
+ 'isOptionalContract'?: CreateBidRequestDtoIsOptionalContractEnum;
161
+ /**
162
+ * 연간계약 여부. Y=연간계약, N=일반. (backend 갭1: annual_contract)
163
+ */
164
+ 'isAnnualContract'?: CreateBidRequestDtoIsAnnualContractEnum;
165
+ /**
166
+ * 결과 공개 여부. Y=공개, N=비공개.
167
+ */
168
+ 'isResultPublished'?: CreateBidRequestDtoIsResultPublishedEnum;
169
+ /**
170
+ * 계약 담당자.
171
+ */
172
+ 'contractManager': BidManagerDto;
173
+ /**
174
+ * 기술 담당자.
175
+ */
176
+ 'techManager': BidManagerDto;
177
+ /**
178
+ * 입찰 시작 일시(ISO-8601 UTC).
179
+ */
180
+ 'bidStartAt': string;
181
+ /**
182
+ * 입찰 마감 일시(ISO-8601 UTC).
183
+ */
184
+ 'bidEndAt': string;
185
+ /**
186
+ * 임시저장 여부. true=임시저장(b2b_buy_imsi), false/undefined=공식등록(b2b_buy).
187
+ */
188
+ 'isTemp'?: boolean;
189
+ }
190
+
191
+ export const CreateBidRequestDtoCategoryTypeEnum = {
192
+ Product: 'PRODUCT',
193
+ Construction: 'CONSTRUCTION',
194
+ Service: 'SERVICE',
195
+ Sales: 'SALES',
196
+ } as const;
197
+
198
+ export type CreateBidRequestDtoCategoryTypeEnum = typeof CreateBidRequestDtoCategoryTypeEnum[keyof typeof CreateBidRequestDtoCategoryTypeEnum];
199
+ export const CreateBidRequestDtoAwardMethodEnum = {
200
+ A: 'A',
201
+ B: 'B',
202
+ C: 'C',
203
+ D: 'D',
204
+ E: 'E',
205
+ F: 'F',
206
+ H: 'H',
207
+ } as const;
208
+
209
+ export type CreateBidRequestDtoAwardMethodEnum = typeof CreateBidRequestDtoAwardMethodEnum[keyof typeof CreateBidRequestDtoAwardMethodEnum];
210
+ export const CreateBidRequestDtoQuoteConditionEnum = {
211
+ UnitAuto: 'UNIT_AUTO',
212
+ TotalAuto: 'TOTAL_AUTO',
213
+ File: 'FILE',
214
+ None: 'NONE',
215
+ } as const;
216
+
217
+ export type CreateBidRequestDtoQuoteConditionEnum = typeof CreateBidRequestDtoQuoteConditionEnum[keyof typeof CreateBidRequestDtoQuoteConditionEnum];
218
+ export const CreateBidRequestDtoPreliminaryPriceRegionEnum = {
219
+ A: 'A',
220
+ B: 'B',
221
+ C: 'C',
222
+ } as const;
223
+
224
+ export type CreateBidRequestDtoPreliminaryPriceRegionEnum = typeof CreateBidRequestDtoPreliminaryPriceRegionEnum[keyof typeof CreateBidRequestDtoPreliminaryPriceRegionEnum];
225
+ export const CreateBidRequestDtoPreliminaryPriceCountEnum = {
226
+ NUMBER_2: 2,
227
+ NUMBER_3: 3,
228
+ NUMBER_4: 4,
229
+ } as const;
230
+
231
+ export type CreateBidRequestDtoPreliminaryPriceCountEnum = typeof CreateBidRequestDtoPreliminaryPriceCountEnum[keyof typeof CreateBidRequestDtoPreliminaryPriceCountEnum];
232
+ export const CreateBidRequestDtoNegotiationBidRatioEnum = {
233
+ NUMBER_0: 0,
234
+ NUMBER_10: 10,
235
+ NUMBER_20: 20,
236
+ NUMBER_30: 30,
237
+ NUMBER_40: 40,
238
+ NUMBER_50: 50,
239
+ } as const;
240
+
241
+ export type CreateBidRequestDtoNegotiationBidRatioEnum = typeof CreateBidRequestDtoNegotiationBidRatioEnum[keyof typeof CreateBidRequestDtoNegotiationBidRatioEnum];
242
+ export const CreateBidRequestDtoNegotiationStandardEnum = {
243
+ A: 'A',
244
+ B: 'B',
245
+ C: 'C',
246
+ D: 'D',
247
+ } as const;
248
+
249
+ export type CreateBidRequestDtoNegotiationStandardEnum = typeof CreateBidRequestDtoNegotiationStandardEnum[keyof typeof CreateBidRequestDtoNegotiationStandardEnum];
250
+ export const CreateBidRequestDtoNegotiationStandardRatioEnum = {
251
+ NUMBER_60: 60,
252
+ NUMBER_70: 70,
253
+ NUMBER_80: 80,
254
+ } as const;
255
+
256
+ export type CreateBidRequestDtoNegotiationStandardRatioEnum = typeof CreateBidRequestDtoNegotiationStandardRatioEnum[keyof typeof CreateBidRequestDtoNegotiationStandardRatioEnum];
257
+ export const CreateBidRequestDtoQualificationStyleEnum = {
258
+ A: 'A',
259
+ B: 'B',
260
+ C1: 'C1',
261
+ C2: 'C2',
262
+ } as const;
263
+
264
+ export type CreateBidRequestDtoQualificationStyleEnum = typeof CreateBidRequestDtoQualificationStyleEnum[keyof typeof CreateBidRequestDtoQualificationStyleEnum];
265
+ export const CreateBidRequestDtoDeliveryDateTypeEnum = {
266
+ A: 'A',
267
+ B: 'B',
268
+ C: 'C',
269
+ } as const;
270
+
271
+ export type CreateBidRequestDtoDeliveryDateTypeEnum = typeof CreateBidRequestDtoDeliveryDateTypeEnum[keyof typeof CreateBidRequestDtoDeliveryDateTypeEnum];
272
+ export const CreateBidRequestDtoDeliveryMethodEnum = {
273
+ A: 'A',
274
+ B: 'B',
275
+ C: 'C',
276
+ D: 'D',
277
+ } as const;
278
+
279
+ export type CreateBidRequestDtoDeliveryMethodEnum = typeof CreateBidRequestDtoDeliveryMethodEnum[keyof typeof CreateBidRequestDtoDeliveryMethodEnum];
280
+ export const CreateBidRequestDtoPaymentMethodEnum = {
281
+ A: 'A',
282
+ B: 'B',
283
+ } as const;
284
+
285
+ export type CreateBidRequestDtoPaymentMethodEnum = typeof CreateBidRequestDtoPaymentMethodEnum[keyof typeof CreateBidRequestDtoPaymentMethodEnum];
286
+ export const CreateBidRequestDtoTaxationTypeEnum = {
287
+ A: 'A',
288
+ B: 'B',
289
+ C: 'C',
290
+ } as const;
291
+
292
+ export type CreateBidRequestDtoTaxationTypeEnum = typeof CreateBidRequestDtoTaxationTypeEnum[keyof typeof CreateBidRequestDtoTaxationTypeEnum];
293
+ export const CreateBidRequestDtoIsOptionalContractEnum = {
294
+ Y: 'Y',
295
+ N: 'N',
296
+ } as const;
297
+
298
+ export type CreateBidRequestDtoIsOptionalContractEnum = typeof CreateBidRequestDtoIsOptionalContractEnum[keyof typeof CreateBidRequestDtoIsOptionalContractEnum];
299
+ export const CreateBidRequestDtoIsAnnualContractEnum = {
300
+ Y: 'Y',
301
+ N: 'N',
302
+ } as const;
303
+
304
+ export type CreateBidRequestDtoIsAnnualContractEnum = typeof CreateBidRequestDtoIsAnnualContractEnum[keyof typeof CreateBidRequestDtoIsAnnualContractEnum];
305
+ export const CreateBidRequestDtoIsResultPublishedEnum = {
306
+ Y: 'Y',
307
+ N: 'N',
308
+ } as const;
309
+
310
+ export type CreateBidRequestDtoIsResultPublishedEnum = typeof CreateBidRequestDtoIsResultPublishedEnum[keyof typeof CreateBidRequestDtoIsResultPublishedEnum];
311
+
312
+
@@ -0,0 +1,23 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CMARKET V6 Partner API
5
+ * 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ export interface FileUploadedResponseDto {
18
+ /**
19
+ * 업로드된 파일의 저장소 키. 이후 입찰 등록 등에 사용.
20
+ */
21
+ 'fileKey': string;
22
+ }
23
+
@@ -0,0 +1,27 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CMARKET V6 Partner API
5
+ * 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ export interface HealthResponseDto {
18
+ /**
19
+ * 상태 코드. ok 면 정상.
20
+ */
21
+ 'status': string;
22
+ /**
23
+ * 서버 현재 시각 (ISO 8601). 클라이언트가 시계 드리프트 점검에 사용.
24
+ */
25
+ 'timestamp': string;
26
+ }
27
+
@@ -0,0 +1,27 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CMARKET V6 Partner API
5
+ * 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ export interface HierarchicalRegionDto {
18
+ /**
19
+ * 광역시도명.
20
+ */
21
+ 'province': string;
22
+ /**
23
+ * 시군구 목록 (빈 배열 = 광역시도 전체).
24
+ */
25
+ 'districts': Array<string>;
26
+ }
27
+
@@ -0,0 +1,18 @@
1
+ export * from './award-registered-response-dto';
2
+ export * from './bid-bond-dto';
3
+ export * from './bid-created-response-dto';
4
+ export * from './bid-document-dto';
5
+ export * from './bid-item-dto';
6
+ export * from './bid-manager-dto';
7
+ export * from './bid-status';
8
+ export * from './bid-summary-response-dto';
9
+ export * from './create-bid-request-dto';
10
+ export * from './file-uploaded-response-dto';
11
+ export * from './health-response-dto';
12
+ export * from './hierarchical-region-dto';
13
+ export * from './legacy-envelope-dto';
14
+ export * from './preconditions-dto';
15
+ export * from './register-award-request-dto';
16
+ export * from './token-request-dto';
17
+ export * from './token-response-dto';
18
+ export * from './upload-file-request-dto';
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CMARKET V6 Partner API
5
+ * 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ export interface LegacyEnvelopeDto {
18
+ /**
19
+ * V5 응답 상태 (success / failure_secret / failure)
20
+ */
21
+ 'status': string;
22
+ /**
23
+ * V5 결과 코드 (정상 = 0000)
24
+ */
25
+ 'resultCode': string;
26
+ /**
27
+ * V5 응답 본문 (엔드포인트마다 형태가 다름)
28
+ */
29
+ 'data': object;
30
+ }
31
+