@cmarket/partner-sdk 0.2.1 → 0.4.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 (42) hide show
  1. package/README.md +205 -18
  2. package/api/partner-v1-api.ts +976 -28
  3. package/api.ts +0 -1
  4. package/dist/api/partner-v1-api.d.ts +432 -13
  5. package/dist/api/partner-v1-api.js +890 -19
  6. package/dist/api.d.ts +0 -1
  7. package/dist/api.js +0 -1
  8. package/dist/esm/api/partner-v1-api.d.ts +432 -13
  9. package/dist/esm/api/partner-v1-api.js +891 -20
  10. package/dist/esm/api.d.ts +0 -1
  11. package/dist/esm/api.js +0 -1
  12. package/dist/esm/models/create-bid-request-dto.d.ts +2 -3
  13. package/dist/esm/models/create-bid-request-dto.js +0 -1
  14. package/dist/esm/models/index.d.ts +0 -2
  15. package/dist/esm/models/index.js +0 -2
  16. package/dist/models/create-bid-request-dto.d.ts +2 -3
  17. package/dist/models/create-bid-request-dto.js +0 -1
  18. package/dist/models/index.d.ts +0 -2
  19. package/dist/models/index.js +0 -2
  20. package/docs/CreateBidRequestDto.md +2 -2
  21. package/docs/PartnerV1Api.md +651 -7
  22. package/models/create-bid-request-dto.ts +2 -3
  23. package/models/index.ts +0 -2
  24. package/package.json +1 -1
  25. package/api/partner-v2-api.ts +0 -1076
  26. package/dist/api/partner-v2-api.d.ts +0 -486
  27. package/dist/api/partner-v2-api.js +0 -1003
  28. package/dist/esm/api/partner-v2-api.d.ts +0 -486
  29. package/dist/esm/api/partner-v2-api.js +0 -996
  30. package/dist/esm/models/bid-status.d.ts +0 -23
  31. package/dist/esm/models/bid-status.js +0 -24
  32. package/dist/esm/models/bid-summary-response-dto.d.ts +0 -30
  33. package/dist/esm/models/bid-summary-response-dto.js +0 -14
  34. package/dist/models/bid-status.d.ts +0 -23
  35. package/dist/models/bid-status.js +0 -27
  36. package/dist/models/bid-summary-response-dto.d.ts +0 -30
  37. package/dist/models/bid-summary-response-dto.js +0 -15
  38. package/docs/BidStatus.md +0 -19
  39. package/docs/BidSummaryResponseDto.md +0 -26
  40. package/docs/PartnerV2Api.md +0 -704
  41. package/models/bid-status.ts +0 -33
  42. package/models/bid-summary-response-dto.ts +0 -40
@@ -1,1003 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * CMARKET V6 Partner API
6
- * 외부 ERP 연동용 RESTful API.
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
- return new (P || (P = Promise))(function (resolve, reject) {
18
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
- step((generator = generator.apply(thisArg, _arguments || [])).next());
22
- });
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.PartnerV2Api = exports.PartnerV2ApiFactory = exports.PartnerV2ApiFp = exports.PartnerV2ApiAxiosParamCreator = void 0;
26
- const axios_1 = require("axios");
27
- // Some imports not used depending on template conditions
28
- // @ts-ignore
29
- const common_1 = require("../common");
30
- // @ts-ignore
31
- const base_1 = require("../base");
32
- /**
33
- * PartnerV2Api - axios parameter creator
34
- */
35
- const PartnerV2ApiAxiosParamCreator = function (configuration) {
36
- return {
37
- /**
38
- * V5 /acceptanceCompleteSend 후속. scope contracts:write + Idempotency-Key.
39
- * @summary 검수완료 전송
40
- * @param {string} bidId
41
- * @param {CompleteAcceptanceRequestDto} completeAcceptanceRequestDto
42
- * @param {*} [options] Override http request option.
43
- * @throws {RequiredError}
44
- */
45
- completeAcceptance: (bidId_1, completeAcceptanceRequestDto_1, ...args_1) => __awaiter(this, [bidId_1, completeAcceptanceRequestDto_1, ...args_1], void 0, function* (bidId, completeAcceptanceRequestDto, options = {}) {
46
- // verify required parameter 'bidId' is not null or undefined
47
- (0, common_1.assertParamExists)('completeAcceptance', 'bidId', bidId);
48
- // verify required parameter 'completeAcceptanceRequestDto' is not null or undefined
49
- (0, common_1.assertParamExists)('completeAcceptance', 'completeAcceptanceRequestDto', completeAcceptanceRequestDto);
50
- const localVarPath = `/v2/bids/{bidId}/acceptance`
51
- .replace('{bidId}', encodeURIComponent(String(bidId)));
52
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
53
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
54
- let baseOptions;
55
- if (configuration) {
56
- baseOptions = configuration.baseOptions;
57
- }
58
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
59
- const localVarHeaderParameter = {};
60
- const localVarQueryParameter = {};
61
- // authentication partner-oauth2 required
62
- // http bearer authentication required
63
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
64
- localVarHeaderParameter['Content-Type'] = 'application/json';
65
- localVarHeaderParameter['Accept'] = 'application/json';
66
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
67
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
68
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
69
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(completeAcceptanceRequestDto, localVarRequestOptions, configuration);
70
- return {
71
- url: (0, common_1.toPathString)(localVarUrlObj),
72
- options: localVarRequestOptions,
73
- };
74
- }),
75
- /**
76
- * V5 /contractDocumentRec 후속. scope contracts:read.
77
- * @summary 계약서류 수신 조회
78
- * @param {string} bidId
79
- * @param {string} buyerId
80
- * @param {*} [options] Override http request option.
81
- * @throws {RequiredError}
82
- */
83
- getBidContractDocuments: (bidId_1, buyerId_1, ...args_1) => __awaiter(this, [bidId_1, buyerId_1, ...args_1], void 0, function* (bidId, buyerId, options = {}) {
84
- // verify required parameter 'bidId' is not null or undefined
85
- (0, common_1.assertParamExists)('getBidContractDocuments', 'bidId', bidId);
86
- // verify required parameter 'buyerId' is not null or undefined
87
- (0, common_1.assertParamExists)('getBidContractDocuments', 'buyerId', buyerId);
88
- const localVarPath = `/v2/bids/{bidId}/contract-documents`
89
- .replace('{bidId}', encodeURIComponent(String(bidId)));
90
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
91
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
92
- let baseOptions;
93
- if (configuration) {
94
- baseOptions = configuration.baseOptions;
95
- }
96
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
97
- const localVarHeaderParameter = {};
98
- const localVarQueryParameter = {};
99
- // authentication partner-oauth2 required
100
- // http bearer authentication required
101
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
102
- if (buyerId !== undefined) {
103
- localVarQueryParameter['buyerId'] = buyerId;
104
- }
105
- localVarHeaderParameter['Accept'] = 'application/json';
106
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
107
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
108
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
109
- return {
110
- url: (0, common_1.toPathString)(localVarUrlObj),
111
- options: localVarRequestOptions,
112
- };
113
- }),
114
- /**
115
- * V5 /contractDocumentRec(bid_puchase_no_list) 후속. 공고번호 리스트를 한 번에 조회. 단건(GET :bidId/contract-documents)은 그대로 유지. scope contracts:read.
116
- * @summary 계약서류 수신 배치 조회
117
- * @param {BidContractDocumentsBatchRequestDto} bidContractDocumentsBatchRequestDto
118
- * @param {*} [options] Override http request option.
119
- * @throws {RequiredError}
120
- */
121
- getBidContractDocumentsBatch: (bidContractDocumentsBatchRequestDto_1, ...args_1) => __awaiter(this, [bidContractDocumentsBatchRequestDto_1, ...args_1], void 0, function* (bidContractDocumentsBatchRequestDto, options = {}) {
122
- // verify required parameter 'bidContractDocumentsBatchRequestDto' is not null or undefined
123
- (0, common_1.assertParamExists)('getBidContractDocumentsBatch', 'bidContractDocumentsBatchRequestDto', bidContractDocumentsBatchRequestDto);
124
- const localVarPath = `/v2/bids/contract-documents/batch`;
125
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
126
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
127
- let baseOptions;
128
- if (configuration) {
129
- baseOptions = configuration.baseOptions;
130
- }
131
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
132
- const localVarHeaderParameter = {};
133
- const localVarQueryParameter = {};
134
- // authentication partner-oauth2 required
135
- // http bearer authentication required
136
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
137
- localVarHeaderParameter['Content-Type'] = 'application/json';
138
- localVarHeaderParameter['Accept'] = 'application/json';
139
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
140
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
141
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
142
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bidContractDocumentsBatchRequestDto, localVarRequestOptions, configuration);
143
- return {
144
- url: (0, common_1.toPathString)(localVarUrlObj),
145
- options: localVarRequestOptions,
146
- };
147
- }),
148
- /**
149
- * V5 /entendrec 후속. scope bids:read.
150
- * @summary 입찰 결과 조회
151
- * @param {string} bidId
152
- * @param {string} buyerId
153
- * @param {*} [options] Override http request option.
154
- * @throws {RequiredError}
155
- */
156
- getBidResults: (bidId_1, buyerId_1, ...args_1) => __awaiter(this, [bidId_1, buyerId_1, ...args_1], void 0, function* (bidId, buyerId, options = {}) {
157
- // verify required parameter 'bidId' is not null or undefined
158
- (0, common_1.assertParamExists)('getBidResults', 'bidId', bidId);
159
- // verify required parameter 'buyerId' is not null or undefined
160
- (0, common_1.assertParamExists)('getBidResults', 'buyerId', buyerId);
161
- const localVarPath = `/v2/bids/{bidId}/results`
162
- .replace('{bidId}', encodeURIComponent(String(bidId)));
163
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
164
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
165
- let baseOptions;
166
- if (configuration) {
167
- baseOptions = configuration.baseOptions;
168
- }
169
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
170
- const localVarHeaderParameter = {};
171
- const localVarQueryParameter = {};
172
- // authentication partner-oauth2 required
173
- // http bearer authentication required
174
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
175
- if (buyerId !== undefined) {
176
- localVarQueryParameter['buyerId'] = buyerId;
177
- }
178
- localVarHeaderParameter['Accept'] = 'application/json';
179
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
180
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
181
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
182
- return {
183
- url: (0, common_1.toPathString)(localVarUrlObj),
184
- options: localVarRequestOptions,
185
- };
186
- }),
187
- /**
188
- * V5 entendRec(bid_puchase_no_list) 후속 — 여러 공고 결과를 1회 호출로(additive, 단건 유지). 입력 순서를 보존한다. scope bids:read.
189
- * @summary 입찰결과 배치 조회
190
- * @param {BidResultsBatchRequestDto} bidResultsBatchRequestDto
191
- * @param {*} [options] Override http request option.
192
- * @throws {RequiredError}
193
- */
194
- getBidResultsBatch: (bidResultsBatchRequestDto_1, ...args_1) => __awaiter(this, [bidResultsBatchRequestDto_1, ...args_1], void 0, function* (bidResultsBatchRequestDto, options = {}) {
195
- // verify required parameter 'bidResultsBatchRequestDto' is not null or undefined
196
- (0, common_1.assertParamExists)('getBidResultsBatch', 'bidResultsBatchRequestDto', bidResultsBatchRequestDto);
197
- const localVarPath = `/v2/bids/results/batch`;
198
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
199
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
200
- let baseOptions;
201
- if (configuration) {
202
- baseOptions = configuration.baseOptions;
203
- }
204
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
205
- const localVarHeaderParameter = {};
206
- const localVarQueryParameter = {};
207
- // authentication partner-oauth2 required
208
- // http bearer authentication required
209
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
210
- localVarHeaderParameter['Content-Type'] = 'application/json';
211
- localVarHeaderParameter['Accept'] = 'application/json';
212
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
213
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
214
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
215
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bidResultsBatchRequestDto, localVarRequestOptions, configuration);
216
- return {
217
- url: (0, common_1.toPathString)(localVarUrlObj),
218
- options: localVarRequestOptions,
219
- };
220
- }),
221
- /**
222
- * V5 /entendrec 정산(사업자·계좌·공급가액/부가세·응찰 품목내역) 후속. scope bids:read. 가격/신원 가시성 매트릭스와 직교한 ERP 정산 데이터 — read-only.
223
- * @summary 입찰결과 정산정보 조회
224
- * @param {string} bidId
225
- * @param {*} [options] Override http request option.
226
- * @throws {RequiredError}
227
- */
228
- getBidSettlement: (bidId_1, ...args_1) => __awaiter(this, [bidId_1, ...args_1], void 0, function* (bidId, options = {}) {
229
- // verify required parameter 'bidId' is not null or undefined
230
- (0, common_1.assertParamExists)('getBidSettlement', 'bidId', bidId);
231
- const localVarPath = `/v2/bids/{bidId}/settlement`
232
- .replace('{bidId}', encodeURIComponent(String(bidId)));
233
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
234
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
235
- let baseOptions;
236
- if (configuration) {
237
- baseOptions = configuration.baseOptions;
238
- }
239
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
240
- const localVarHeaderParameter = {};
241
- const localVarQueryParameter = {};
242
- // authentication partner-oauth2 required
243
- // http bearer authentication required
244
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
245
- localVarHeaderParameter['Accept'] = 'application/json';
246
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
247
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
248
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
249
- return {
250
- url: (0, common_1.toPathString)(localVarUrlObj),
251
- options: localVarRequestOptions,
252
- };
253
- }),
254
- /**
255
- * V5 /getGrm 후속. scope contracts:read.
256
- * @summary 거래명세서 조회
257
- * @param {string} bidId
258
- * @param {number} paperCode
259
- * @param {*} [options] Override http request option.
260
- * @throws {RequiredError}
261
- */
262
- getBidStatement: (bidId_1, paperCode_1, ...args_1) => __awaiter(this, [bidId_1, paperCode_1, ...args_1], void 0, function* (bidId, paperCode, options = {}) {
263
- // verify required parameter 'bidId' is not null or undefined
264
- (0, common_1.assertParamExists)('getBidStatement', 'bidId', bidId);
265
- // verify required parameter 'paperCode' is not null or undefined
266
- (0, common_1.assertParamExists)('getBidStatement', 'paperCode', paperCode);
267
- const localVarPath = `/v2/bids/{bidId}/statement`
268
- .replace('{bidId}', encodeURIComponent(String(bidId)));
269
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
270
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
271
- let baseOptions;
272
- if (configuration) {
273
- baseOptions = configuration.baseOptions;
274
- }
275
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
276
- const localVarHeaderParameter = {};
277
- const localVarQueryParameter = {};
278
- // authentication partner-oauth2 required
279
- // http bearer authentication required
280
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
281
- if (paperCode !== undefined) {
282
- localVarQueryParameter['paperCode'] = paperCode;
283
- }
284
- localVarHeaderParameter['Accept'] = 'application/json';
285
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
286
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
287
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
288
- return {
289
- url: (0, common_1.toPathString)(localVarUrlObj),
290
- options: localVarRequestOptions,
291
- };
292
- }),
293
- /**
294
- * 유찰 처리(V5 yoochal 패리티). 유찰사유 코드(1~8)·상세를 받아 공고를 유찰 상태로 전환. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
295
- * @summary 유찰 처리
296
- * @param {MarkBidFailedRequestDto} markBidFailedRequestDto
297
- * @param {*} [options] Override http request option.
298
- * @throws {RequiredError}
299
- */
300
- markBidFailed: (markBidFailedRequestDto_1, ...args_1) => __awaiter(this, [markBidFailedRequestDto_1, ...args_1], void 0, function* (markBidFailedRequestDto, options = {}) {
301
- // verify required parameter 'markBidFailedRequestDto' is not null or undefined
302
- (0, common_1.assertParamExists)('markBidFailed', 'markBidFailedRequestDto', markBidFailedRequestDto);
303
- const localVarPath = `/v2/awards/fail`;
304
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
305
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
306
- let baseOptions;
307
- if (configuration) {
308
- baseOptions = configuration.baseOptions;
309
- }
310
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
311
- const localVarHeaderParameter = {};
312
- const localVarQueryParameter = {};
313
- // authentication partner-oauth2 required
314
- // http bearer authentication required
315
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
316
- localVarHeaderParameter['Content-Type'] = 'application/json';
317
- localVarHeaderParameter['Accept'] = 'application/json';
318
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
319
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
320
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
321
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(markBidFailedRequestDto, localVarRequestOptions, configuration);
322
- return {
323
- url: (0, common_1.toPathString)(localVarUrlObj),
324
- options: localVarRequestOptions,
325
- };
326
- }),
327
- /**
328
- * 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
329
- * @summary 낙찰 결과 전송
330
- * @param {RegisterAwardRequestDto} registerAwardRequestDto
331
- * @param {*} [options] Override http request option.
332
- * @throws {RequiredError}
333
- */
334
- registerAward: (registerAwardRequestDto_1, ...args_1) => __awaiter(this, [registerAwardRequestDto_1, ...args_1], void 0, function* (registerAwardRequestDto, options = {}) {
335
- // verify required parameter 'registerAwardRequestDto' is not null or undefined
336
- (0, common_1.assertParamExists)('registerAward', 'registerAwardRequestDto', registerAwardRequestDto);
337
- const localVarPath = `/v2/awards`;
338
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
339
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
340
- let baseOptions;
341
- if (configuration) {
342
- baseOptions = configuration.baseOptions;
343
- }
344
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
345
- const localVarHeaderParameter = {};
346
- const localVarQueryParameter = {};
347
- // authentication partner-oauth2 required
348
- // http bearer authentication required
349
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
350
- localVarHeaderParameter['Content-Type'] = 'application/json';
351
- localVarHeaderParameter['Accept'] = 'application/json';
352
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
353
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
354
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
355
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(registerAwardRequestDto, localVarRequestOptions, configuration);
356
- return {
357
- url: (0, common_1.toPathString)(localVarUrlObj),
358
- options: localVarRequestOptions,
359
- };
360
- }),
361
- /**
362
- * 입찰 정보 등록. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
363
- * @summary 입찰 정보 전송(등록)
364
- * @param {CreateBidRequestDto} createBidRequestDto
365
- * @param {*} [options] Override http request option.
366
- * @throws {RequiredError}
367
- */
368
- registerBid: (createBidRequestDto_1, ...args_1) => __awaiter(this, [createBidRequestDto_1, ...args_1], void 0, function* (createBidRequestDto, options = {}) {
369
- // verify required parameter 'createBidRequestDto' is not null or undefined
370
- (0, common_1.assertParamExists)('registerBid', 'createBidRequestDto', createBidRequestDto);
371
- const localVarPath = `/v2/bids`;
372
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
373
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
374
- let baseOptions;
375
- if (configuration) {
376
- baseOptions = configuration.baseOptions;
377
- }
378
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
379
- const localVarHeaderParameter = {};
380
- const localVarQueryParameter = {};
381
- // authentication partner-oauth2 required
382
- // http bearer authentication required
383
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
384
- localVarHeaderParameter['Content-Type'] = 'application/json';
385
- localVarHeaderParameter['Accept'] = 'application/json';
386
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
387
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
388
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
389
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBidRequestDto, localVarRequestOptions, configuration);
390
- return {
391
- url: (0, common_1.toPathString)(localVarUrlObj),
392
- options: localVarRequestOptions,
393
- };
394
- }),
395
- /**
396
- * V5 /splitInvoiceRequest 후속. scope invoices:write + Idempotency-Key.
397
- * @summary 계산서 분할 발급 청구
398
- * @param {RequestSplitInvoiceRequestDto} requestSplitInvoiceRequestDto
399
- * @param {*} [options] Override http request option.
400
- * @throws {RequiredError}
401
- */
402
- requestSplitInvoice: (requestSplitInvoiceRequestDto_1, ...args_1) => __awaiter(this, [requestSplitInvoiceRequestDto_1, ...args_1], void 0, function* (requestSplitInvoiceRequestDto, options = {}) {
403
- // verify required parameter 'requestSplitInvoiceRequestDto' is not null or undefined
404
- (0, common_1.assertParamExists)('requestSplitInvoice', 'requestSplitInvoiceRequestDto', requestSplitInvoiceRequestDto);
405
- const localVarPath = `/v2/invoices/split-requests`;
406
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
407
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
408
- let baseOptions;
409
- if (configuration) {
410
- baseOptions = configuration.baseOptions;
411
- }
412
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
413
- const localVarHeaderParameter = {};
414
- const localVarQueryParameter = {};
415
- // authentication partner-oauth2 required
416
- // http bearer authentication required
417
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
418
- localVarHeaderParameter['Content-Type'] = 'application/json';
419
- localVarHeaderParameter['Accept'] = 'application/json';
420
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
421
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
422
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
423
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestSplitInvoiceRequestDto, localVarRequestOptions, configuration);
424
- return {
425
- url: (0, common_1.toPathString)(localVarUrlObj),
426
- options: localVarRequestOptions,
427
- };
428
- }),
429
- /**
430
- * 협상에의한계약(H/K) 응찰자별 기술/가격 점수 일괄 입력(V5 nego-eval 패리티). complete=true 면 평가완료 게이트까지 적용해 낙찰 진입 가능. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
431
- * @summary 협상(H/K) 점수평가
432
- * @param {SubmitNegotiationScoresRequestDto} submitNegotiationScoresRequestDto
433
- * @param {*} [options] Override http request option.
434
- * @throws {RequiredError}
435
- */
436
- submitNegotiationScores: (submitNegotiationScoresRequestDto_1, ...args_1) => __awaiter(this, [submitNegotiationScoresRequestDto_1, ...args_1], void 0, function* (submitNegotiationScoresRequestDto, options = {}) {
437
- // verify required parameter 'submitNegotiationScoresRequestDto' is not null or undefined
438
- (0, common_1.assertParamExists)('submitNegotiationScores', 'submitNegotiationScoresRequestDto', submitNegotiationScoresRequestDto);
439
- const localVarPath = `/v2/awards/nego-eval`;
440
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
441
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
442
- let baseOptions;
443
- if (configuration) {
444
- baseOptions = configuration.baseOptions;
445
- }
446
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
447
- const localVarHeaderParameter = {};
448
- const localVarQueryParameter = {};
449
- // authentication partner-oauth2 required
450
- // http bearer authentication required
451
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
452
- localVarHeaderParameter['Content-Type'] = 'application/json';
453
- localVarHeaderParameter['Accept'] = 'application/json';
454
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
455
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
456
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
457
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(submitNegotiationScoresRequestDto, localVarRequestOptions, configuration);
458
- return {
459
- url: (0, common_1.toPathString)(localVarUrlObj),
460
- options: localVarRequestOptions,
461
- };
462
- }),
463
- /**
464
- * 스코프 `files:write` 필수. base64 또는 url 중 하나를 제출한다.
465
- * @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
466
- * @param {UploadFileRequestDto} uploadFileRequestDto
467
- * @param {*} [options] Override http request option.
468
- * @throws {RequiredError}
469
- */
470
- uploadFile: (uploadFileRequestDto_1, ...args_1) => __awaiter(this, [uploadFileRequestDto_1, ...args_1], void 0, function* (uploadFileRequestDto, options = {}) {
471
- // verify required parameter 'uploadFileRequestDto' is not null or undefined
472
- (0, common_1.assertParamExists)('uploadFile', 'uploadFileRequestDto', uploadFileRequestDto);
473
- const localVarPath = `/v2/files`;
474
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
475
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
476
- let baseOptions;
477
- if (configuration) {
478
- baseOptions = configuration.baseOptions;
479
- }
480
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
481
- const localVarHeaderParameter = {};
482
- const localVarQueryParameter = {};
483
- // authentication partner-oauth2 required
484
- // http bearer authentication required
485
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
486
- localVarHeaderParameter['Content-Type'] = 'application/json';
487
- localVarHeaderParameter['Accept'] = 'application/json';
488
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
489
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
490
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
491
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(uploadFileRequestDto, localVarRequestOptions, configuration);
492
- return {
493
- url: (0, common_1.toPathString)(localVarUrlObj),
494
- options: localVarRequestOptions,
495
- };
496
- }),
497
- };
498
- };
499
- exports.PartnerV2ApiAxiosParamCreator = PartnerV2ApiAxiosParamCreator;
500
- /**
501
- * PartnerV2Api - functional programming interface
502
- */
503
- const PartnerV2ApiFp = function (configuration) {
504
- const localVarAxiosParamCreator = (0, exports.PartnerV2ApiAxiosParamCreator)(configuration);
505
- return {
506
- /**
507
- * V5 /acceptanceCompleteSend 후속. scope contracts:write + Idempotency-Key.
508
- * @summary 검수완료 전송
509
- * @param {string} bidId
510
- * @param {CompleteAcceptanceRequestDto} completeAcceptanceRequestDto
511
- * @param {*} [options] Override http request option.
512
- * @throws {RequiredError}
513
- */
514
- completeAcceptance(bidId, completeAcceptanceRequestDto, options) {
515
- return __awaiter(this, void 0, void 0, function* () {
516
- var _a, _b, _c;
517
- const localVarAxiosArgs = yield localVarAxiosParamCreator.completeAcceptance(bidId, completeAcceptanceRequestDto, options);
518
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
519
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV2Api.completeAcceptance']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
520
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
521
- });
522
- },
523
- /**
524
- * V5 /contractDocumentRec 후속. scope contracts:read.
525
- * @summary 계약서류 수신 조회
526
- * @param {string} bidId
527
- * @param {string} buyerId
528
- * @param {*} [options] Override http request option.
529
- * @throws {RequiredError}
530
- */
531
- getBidContractDocuments(bidId, buyerId, options) {
532
- return __awaiter(this, void 0, void 0, function* () {
533
- var _a, _b, _c;
534
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBidContractDocuments(bidId, buyerId, options);
535
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
536
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV2Api.getBidContractDocuments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
537
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
538
- });
539
- },
540
- /**
541
- * V5 /contractDocumentRec(bid_puchase_no_list) 후속. 공고번호 리스트를 한 번에 조회. 단건(GET :bidId/contract-documents)은 그대로 유지. scope contracts:read.
542
- * @summary 계약서류 수신 배치 조회
543
- * @param {BidContractDocumentsBatchRequestDto} bidContractDocumentsBatchRequestDto
544
- * @param {*} [options] Override http request option.
545
- * @throws {RequiredError}
546
- */
547
- getBidContractDocumentsBatch(bidContractDocumentsBatchRequestDto, options) {
548
- return __awaiter(this, void 0, void 0, function* () {
549
- var _a, _b, _c;
550
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBidContractDocumentsBatch(bidContractDocumentsBatchRequestDto, options);
551
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
552
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV2Api.getBidContractDocumentsBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
553
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
554
- });
555
- },
556
- /**
557
- * V5 /entendrec 후속. scope bids:read.
558
- * @summary 입찰 결과 조회
559
- * @param {string} bidId
560
- * @param {string} buyerId
561
- * @param {*} [options] Override http request option.
562
- * @throws {RequiredError}
563
- */
564
- getBidResults(bidId, buyerId, options) {
565
- return __awaiter(this, void 0, void 0, function* () {
566
- var _a, _b, _c;
567
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBidResults(bidId, buyerId, options);
568
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
569
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV2Api.getBidResults']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
570
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
571
- });
572
- },
573
- /**
574
- * V5 entendRec(bid_puchase_no_list) 후속 — 여러 공고 결과를 1회 호출로(additive, 단건 유지). 입력 순서를 보존한다. scope bids:read.
575
- * @summary 입찰결과 배치 조회
576
- * @param {BidResultsBatchRequestDto} bidResultsBatchRequestDto
577
- * @param {*} [options] Override http request option.
578
- * @throws {RequiredError}
579
- */
580
- getBidResultsBatch(bidResultsBatchRequestDto, options) {
581
- return __awaiter(this, void 0, void 0, function* () {
582
- var _a, _b, _c;
583
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBidResultsBatch(bidResultsBatchRequestDto, options);
584
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
585
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV2Api.getBidResultsBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
586
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
587
- });
588
- },
589
- /**
590
- * V5 /entendrec 정산(사업자·계좌·공급가액/부가세·응찰 품목내역) 후속. scope bids:read. 가격/신원 가시성 매트릭스와 직교한 ERP 정산 데이터 — read-only.
591
- * @summary 입찰결과 정산정보 조회
592
- * @param {string} bidId
593
- * @param {*} [options] Override http request option.
594
- * @throws {RequiredError}
595
- */
596
- getBidSettlement(bidId, options) {
597
- return __awaiter(this, void 0, void 0, function* () {
598
- var _a, _b, _c;
599
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBidSettlement(bidId, options);
600
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
601
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV2Api.getBidSettlement']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
602
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
603
- });
604
- },
605
- /**
606
- * V5 /getGrm 후속. scope contracts:read.
607
- * @summary 거래명세서 조회
608
- * @param {string} bidId
609
- * @param {number} paperCode
610
- * @param {*} [options] Override http request option.
611
- * @throws {RequiredError}
612
- */
613
- getBidStatement(bidId, paperCode, options) {
614
- return __awaiter(this, void 0, void 0, function* () {
615
- var _a, _b, _c;
616
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getBidStatement(bidId, paperCode, options);
617
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
618
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV2Api.getBidStatement']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
619
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
620
- });
621
- },
622
- /**
623
- * 유찰 처리(V5 yoochal 패리티). 유찰사유 코드(1~8)·상세를 받아 공고를 유찰 상태로 전환. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
624
- * @summary 유찰 처리
625
- * @param {MarkBidFailedRequestDto} markBidFailedRequestDto
626
- * @param {*} [options] Override http request option.
627
- * @throws {RequiredError}
628
- */
629
- markBidFailed(markBidFailedRequestDto, options) {
630
- return __awaiter(this, void 0, void 0, function* () {
631
- var _a, _b, _c;
632
- const localVarAxiosArgs = yield localVarAxiosParamCreator.markBidFailed(markBidFailedRequestDto, options);
633
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
634
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV2Api.markBidFailed']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
635
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
636
- });
637
- },
638
- /**
639
- * 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
640
- * @summary 낙찰 결과 전송
641
- * @param {RegisterAwardRequestDto} registerAwardRequestDto
642
- * @param {*} [options] Override http request option.
643
- * @throws {RequiredError}
644
- */
645
- registerAward(registerAwardRequestDto, options) {
646
- return __awaiter(this, void 0, void 0, function* () {
647
- var _a, _b, _c;
648
- const localVarAxiosArgs = yield localVarAxiosParamCreator.registerAward(registerAwardRequestDto, options);
649
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
650
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV2Api.registerAward']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
651
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
652
- });
653
- },
654
- /**
655
- * 입찰 정보 등록. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
656
- * @summary 입찰 정보 전송(등록)
657
- * @param {CreateBidRequestDto} createBidRequestDto
658
- * @param {*} [options] Override http request option.
659
- * @throws {RequiredError}
660
- */
661
- registerBid(createBidRequestDto, options) {
662
- return __awaiter(this, void 0, void 0, function* () {
663
- var _a, _b, _c;
664
- const localVarAxiosArgs = yield localVarAxiosParamCreator.registerBid(createBidRequestDto, options);
665
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
666
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV2Api.registerBid']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
667
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
668
- });
669
- },
670
- /**
671
- * V5 /splitInvoiceRequest 후속. scope invoices:write + Idempotency-Key.
672
- * @summary 계산서 분할 발급 청구
673
- * @param {RequestSplitInvoiceRequestDto} requestSplitInvoiceRequestDto
674
- * @param {*} [options] Override http request option.
675
- * @throws {RequiredError}
676
- */
677
- requestSplitInvoice(requestSplitInvoiceRequestDto, options) {
678
- return __awaiter(this, void 0, void 0, function* () {
679
- var _a, _b, _c;
680
- const localVarAxiosArgs = yield localVarAxiosParamCreator.requestSplitInvoice(requestSplitInvoiceRequestDto, options);
681
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
682
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV2Api.requestSplitInvoice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
683
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
684
- });
685
- },
686
- /**
687
- * 협상에의한계약(H/K) 응찰자별 기술/가격 점수 일괄 입력(V5 nego-eval 패리티). complete=true 면 평가완료 게이트까지 적용해 낙찰 진입 가능. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
688
- * @summary 협상(H/K) 점수평가
689
- * @param {SubmitNegotiationScoresRequestDto} submitNegotiationScoresRequestDto
690
- * @param {*} [options] Override http request option.
691
- * @throws {RequiredError}
692
- */
693
- submitNegotiationScores(submitNegotiationScoresRequestDto, options) {
694
- return __awaiter(this, void 0, void 0, function* () {
695
- var _a, _b, _c;
696
- const localVarAxiosArgs = yield localVarAxiosParamCreator.submitNegotiationScores(submitNegotiationScoresRequestDto, options);
697
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
698
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV2Api.submitNegotiationScores']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
699
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
700
- });
701
- },
702
- /**
703
- * 스코프 `files:write` 필수. base64 또는 url 중 하나를 제출한다.
704
- * @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
705
- * @param {UploadFileRequestDto} uploadFileRequestDto
706
- * @param {*} [options] Override http request option.
707
- * @throws {RequiredError}
708
- */
709
- uploadFile(uploadFileRequestDto, options) {
710
- return __awaiter(this, void 0, void 0, function* () {
711
- var _a, _b, _c;
712
- const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadFile(uploadFileRequestDto, options);
713
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
714
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV2Api.uploadFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
715
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
716
- });
717
- },
718
- };
719
- };
720
- exports.PartnerV2ApiFp = PartnerV2ApiFp;
721
- /**
722
- * PartnerV2Api - factory interface
723
- */
724
- const PartnerV2ApiFactory = function (configuration, basePath, axios) {
725
- const localVarFp = (0, exports.PartnerV2ApiFp)(configuration);
726
- return {
727
- /**
728
- * V5 /acceptanceCompleteSend 후속. scope contracts:write + Idempotency-Key.
729
- * @summary 검수완료 전송
730
- * @param {string} bidId
731
- * @param {CompleteAcceptanceRequestDto} completeAcceptanceRequestDto
732
- * @param {*} [options] Override http request option.
733
- * @throws {RequiredError}
734
- */
735
- completeAcceptance(bidId, completeAcceptanceRequestDto, options) {
736
- return localVarFp.completeAcceptance(bidId, completeAcceptanceRequestDto, options).then((request) => request(axios, basePath));
737
- },
738
- /**
739
- * V5 /contractDocumentRec 후속. scope contracts:read.
740
- * @summary 계약서류 수신 조회
741
- * @param {string} bidId
742
- * @param {string} buyerId
743
- * @param {*} [options] Override http request option.
744
- * @throws {RequiredError}
745
- */
746
- getBidContractDocuments(bidId, buyerId, options) {
747
- return localVarFp.getBidContractDocuments(bidId, buyerId, options).then((request) => request(axios, basePath));
748
- },
749
- /**
750
- * V5 /contractDocumentRec(bid_puchase_no_list) 후속. 공고번호 리스트를 한 번에 조회. 단건(GET :bidId/contract-documents)은 그대로 유지. scope contracts:read.
751
- * @summary 계약서류 수신 배치 조회
752
- * @param {BidContractDocumentsBatchRequestDto} bidContractDocumentsBatchRequestDto
753
- * @param {*} [options] Override http request option.
754
- * @throws {RequiredError}
755
- */
756
- getBidContractDocumentsBatch(bidContractDocumentsBatchRequestDto, options) {
757
- return localVarFp.getBidContractDocumentsBatch(bidContractDocumentsBatchRequestDto, options).then((request) => request(axios, basePath));
758
- },
759
- /**
760
- * V5 /entendrec 후속. scope bids:read.
761
- * @summary 입찰 결과 조회
762
- * @param {string} bidId
763
- * @param {string} buyerId
764
- * @param {*} [options] Override http request option.
765
- * @throws {RequiredError}
766
- */
767
- getBidResults(bidId, buyerId, options) {
768
- return localVarFp.getBidResults(bidId, buyerId, options).then((request) => request(axios, basePath));
769
- },
770
- /**
771
- * V5 entendRec(bid_puchase_no_list) 후속 — 여러 공고 결과를 1회 호출로(additive, 단건 유지). 입력 순서를 보존한다. scope bids:read.
772
- * @summary 입찰결과 배치 조회
773
- * @param {BidResultsBatchRequestDto} bidResultsBatchRequestDto
774
- * @param {*} [options] Override http request option.
775
- * @throws {RequiredError}
776
- */
777
- getBidResultsBatch(bidResultsBatchRequestDto, options) {
778
- return localVarFp.getBidResultsBatch(bidResultsBatchRequestDto, options).then((request) => request(axios, basePath));
779
- },
780
- /**
781
- * V5 /entendrec 정산(사업자·계좌·공급가액/부가세·응찰 품목내역) 후속. scope bids:read. 가격/신원 가시성 매트릭스와 직교한 ERP 정산 데이터 — read-only.
782
- * @summary 입찰결과 정산정보 조회
783
- * @param {string} bidId
784
- * @param {*} [options] Override http request option.
785
- * @throws {RequiredError}
786
- */
787
- getBidSettlement(bidId, options) {
788
- return localVarFp.getBidSettlement(bidId, options).then((request) => request(axios, basePath));
789
- },
790
- /**
791
- * V5 /getGrm 후속. scope contracts:read.
792
- * @summary 거래명세서 조회
793
- * @param {string} bidId
794
- * @param {number} paperCode
795
- * @param {*} [options] Override http request option.
796
- * @throws {RequiredError}
797
- */
798
- getBidStatement(bidId, paperCode, options) {
799
- return localVarFp.getBidStatement(bidId, paperCode, options).then((request) => request(axios, basePath));
800
- },
801
- /**
802
- * 유찰 처리(V5 yoochal 패리티). 유찰사유 코드(1~8)·상세를 받아 공고를 유찰 상태로 전환. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
803
- * @summary 유찰 처리
804
- * @param {MarkBidFailedRequestDto} markBidFailedRequestDto
805
- * @param {*} [options] Override http request option.
806
- * @throws {RequiredError}
807
- */
808
- markBidFailed(markBidFailedRequestDto, options) {
809
- return localVarFp.markBidFailed(markBidFailedRequestDto, options).then((request) => request(axios, basePath));
810
- },
811
- /**
812
- * 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
813
- * @summary 낙찰 결과 전송
814
- * @param {RegisterAwardRequestDto} registerAwardRequestDto
815
- * @param {*} [options] Override http request option.
816
- * @throws {RequiredError}
817
- */
818
- registerAward(registerAwardRequestDto, options) {
819
- return localVarFp.registerAward(registerAwardRequestDto, options).then((request) => request(axios, basePath));
820
- },
821
- /**
822
- * 입찰 정보 등록. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
823
- * @summary 입찰 정보 전송(등록)
824
- * @param {CreateBidRequestDto} createBidRequestDto
825
- * @param {*} [options] Override http request option.
826
- * @throws {RequiredError}
827
- */
828
- registerBid(createBidRequestDto, options) {
829
- return localVarFp.registerBid(createBidRequestDto, options).then((request) => request(axios, basePath));
830
- },
831
- /**
832
- * V5 /splitInvoiceRequest 후속. scope invoices:write + Idempotency-Key.
833
- * @summary 계산서 분할 발급 청구
834
- * @param {RequestSplitInvoiceRequestDto} requestSplitInvoiceRequestDto
835
- * @param {*} [options] Override http request option.
836
- * @throws {RequiredError}
837
- */
838
- requestSplitInvoice(requestSplitInvoiceRequestDto, options) {
839
- return localVarFp.requestSplitInvoice(requestSplitInvoiceRequestDto, options).then((request) => request(axios, basePath));
840
- },
841
- /**
842
- * 협상에의한계약(H/K) 응찰자별 기술/가격 점수 일괄 입력(V5 nego-eval 패리티). complete=true 면 평가완료 게이트까지 적용해 낙찰 진입 가능. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
843
- * @summary 협상(H/K) 점수평가
844
- * @param {SubmitNegotiationScoresRequestDto} submitNegotiationScoresRequestDto
845
- * @param {*} [options] Override http request option.
846
- * @throws {RequiredError}
847
- */
848
- submitNegotiationScores(submitNegotiationScoresRequestDto, options) {
849
- return localVarFp.submitNegotiationScores(submitNegotiationScoresRequestDto, options).then((request) => request(axios, basePath));
850
- },
851
- /**
852
- * 스코프 `files:write` 필수. base64 또는 url 중 하나를 제출한다.
853
- * @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
854
- * @param {UploadFileRequestDto} uploadFileRequestDto
855
- * @param {*} [options] Override http request option.
856
- * @throws {RequiredError}
857
- */
858
- uploadFile(uploadFileRequestDto, options) {
859
- return localVarFp.uploadFile(uploadFileRequestDto, options).then((request) => request(axios, basePath));
860
- },
861
- };
862
- };
863
- exports.PartnerV2ApiFactory = PartnerV2ApiFactory;
864
- /**
865
- * PartnerV2Api - object-oriented interface
866
- */
867
- class PartnerV2Api extends base_1.BaseAPI {
868
- /**
869
- * V5 /acceptanceCompleteSend 후속. scope contracts:write + Idempotency-Key.
870
- * @summary 검수완료 전송
871
- * @param {string} bidId
872
- * @param {CompleteAcceptanceRequestDto} completeAcceptanceRequestDto
873
- * @param {*} [options] Override http request option.
874
- * @throws {RequiredError}
875
- */
876
- completeAcceptance(bidId, completeAcceptanceRequestDto, options) {
877
- return (0, exports.PartnerV2ApiFp)(this.configuration).completeAcceptance(bidId, completeAcceptanceRequestDto, options).then((request) => request(this.axios, this.basePath));
878
- }
879
- /**
880
- * V5 /contractDocumentRec 후속. scope contracts:read.
881
- * @summary 계약서류 수신 조회
882
- * @param {string} bidId
883
- * @param {string} buyerId
884
- * @param {*} [options] Override http request option.
885
- * @throws {RequiredError}
886
- */
887
- getBidContractDocuments(bidId, buyerId, options) {
888
- return (0, exports.PartnerV2ApiFp)(this.configuration).getBidContractDocuments(bidId, buyerId, options).then((request) => request(this.axios, this.basePath));
889
- }
890
- /**
891
- * V5 /contractDocumentRec(bid_puchase_no_list) 후속. 공고번호 리스트를 한 번에 조회. 단건(GET :bidId/contract-documents)은 그대로 유지. scope contracts:read.
892
- * @summary 계약서류 수신 배치 조회
893
- * @param {BidContractDocumentsBatchRequestDto} bidContractDocumentsBatchRequestDto
894
- * @param {*} [options] Override http request option.
895
- * @throws {RequiredError}
896
- */
897
- getBidContractDocumentsBatch(bidContractDocumentsBatchRequestDto, options) {
898
- return (0, exports.PartnerV2ApiFp)(this.configuration).getBidContractDocumentsBatch(bidContractDocumentsBatchRequestDto, options).then((request) => request(this.axios, this.basePath));
899
- }
900
- /**
901
- * V5 /entendrec 후속. scope bids:read.
902
- * @summary 입찰 결과 조회
903
- * @param {string} bidId
904
- * @param {string} buyerId
905
- * @param {*} [options] Override http request option.
906
- * @throws {RequiredError}
907
- */
908
- getBidResults(bidId, buyerId, options) {
909
- return (0, exports.PartnerV2ApiFp)(this.configuration).getBidResults(bidId, buyerId, options).then((request) => request(this.axios, this.basePath));
910
- }
911
- /**
912
- * V5 entendRec(bid_puchase_no_list) 후속 — 여러 공고 결과를 1회 호출로(additive, 단건 유지). 입력 순서를 보존한다. scope bids:read.
913
- * @summary 입찰결과 배치 조회
914
- * @param {BidResultsBatchRequestDto} bidResultsBatchRequestDto
915
- * @param {*} [options] Override http request option.
916
- * @throws {RequiredError}
917
- */
918
- getBidResultsBatch(bidResultsBatchRequestDto, options) {
919
- return (0, exports.PartnerV2ApiFp)(this.configuration).getBidResultsBatch(bidResultsBatchRequestDto, options).then((request) => request(this.axios, this.basePath));
920
- }
921
- /**
922
- * V5 /entendrec 정산(사업자·계좌·공급가액/부가세·응찰 품목내역) 후속. scope bids:read. 가격/신원 가시성 매트릭스와 직교한 ERP 정산 데이터 — read-only.
923
- * @summary 입찰결과 정산정보 조회
924
- * @param {string} bidId
925
- * @param {*} [options] Override http request option.
926
- * @throws {RequiredError}
927
- */
928
- getBidSettlement(bidId, options) {
929
- return (0, exports.PartnerV2ApiFp)(this.configuration).getBidSettlement(bidId, options).then((request) => request(this.axios, this.basePath));
930
- }
931
- /**
932
- * V5 /getGrm 후속. scope contracts:read.
933
- * @summary 거래명세서 조회
934
- * @param {string} bidId
935
- * @param {number} paperCode
936
- * @param {*} [options] Override http request option.
937
- * @throws {RequiredError}
938
- */
939
- getBidStatement(bidId, paperCode, options) {
940
- return (0, exports.PartnerV2ApiFp)(this.configuration).getBidStatement(bidId, paperCode, options).then((request) => request(this.axios, this.basePath));
941
- }
942
- /**
943
- * 유찰 처리(V5 yoochal 패리티). 유찰사유 코드(1~8)·상세를 받아 공고를 유찰 상태로 전환. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
944
- * @summary 유찰 처리
945
- * @param {MarkBidFailedRequestDto} markBidFailedRequestDto
946
- * @param {*} [options] Override http request option.
947
- * @throws {RequiredError}
948
- */
949
- markBidFailed(markBidFailedRequestDto, options) {
950
- return (0, exports.PartnerV2ApiFp)(this.configuration).markBidFailed(markBidFailedRequestDto, options).then((request) => request(this.axios, this.basePath));
951
- }
952
- /**
953
- * 낙찰 결과 등록. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
954
- * @summary 낙찰 결과 전송
955
- * @param {RegisterAwardRequestDto} registerAwardRequestDto
956
- * @param {*} [options] Override http request option.
957
- * @throws {RequiredError}
958
- */
959
- registerAward(registerAwardRequestDto, options) {
960
- return (0, exports.PartnerV2ApiFp)(this.configuration).registerAward(registerAwardRequestDto, options).then((request) => request(this.axios, this.basePath));
961
- }
962
- /**
963
- * 입찰 정보 등록. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
964
- * @summary 입찰 정보 전송(등록)
965
- * @param {CreateBidRequestDto} createBidRequestDto
966
- * @param {*} [options] Override http request option.
967
- * @throws {RequiredError}
968
- */
969
- registerBid(createBidRequestDto, options) {
970
- return (0, exports.PartnerV2ApiFp)(this.configuration).registerBid(createBidRequestDto, options).then((request) => request(this.axios, this.basePath));
971
- }
972
- /**
973
- * V5 /splitInvoiceRequest 후속. scope invoices:write + Idempotency-Key.
974
- * @summary 계산서 분할 발급 청구
975
- * @param {RequestSplitInvoiceRequestDto} requestSplitInvoiceRequestDto
976
- * @param {*} [options] Override http request option.
977
- * @throws {RequiredError}
978
- */
979
- requestSplitInvoice(requestSplitInvoiceRequestDto, options) {
980
- return (0, exports.PartnerV2ApiFp)(this.configuration).requestSplitInvoice(requestSplitInvoiceRequestDto, options).then((request) => request(this.axios, this.basePath));
981
- }
982
- /**
983
- * 협상에의한계약(H/K) 응찰자별 기술/가격 점수 일괄 입력(V5 nego-eval 패리티). complete=true 면 평가완료 게이트까지 적용해 낙찰 진입 가능. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
984
- * @summary 협상(H/K) 점수평가
985
- * @param {SubmitNegotiationScoresRequestDto} submitNegotiationScoresRequestDto
986
- * @param {*} [options] Override http request option.
987
- * @throws {RequiredError}
988
- */
989
- submitNegotiationScores(submitNegotiationScoresRequestDto, options) {
990
- return (0, exports.PartnerV2ApiFp)(this.configuration).submitNegotiationScores(submitNegotiationScoresRequestDto, options).then((request) => request(this.axios, this.basePath));
991
- }
992
- /**
993
- * 스코프 `files:write` 필수. base64 또는 url 중 하나를 제출한다.
994
- * @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
995
- * @param {UploadFileRequestDto} uploadFileRequestDto
996
- * @param {*} [options] Override http request option.
997
- * @throws {RequiredError}
998
- */
999
- uploadFile(uploadFileRequestDto, options) {
1000
- return (0, exports.PartnerV2ApiFp)(this.configuration).uploadFile(uploadFileRequestDto, options).then((request) => request(this.axios, this.basePath));
1001
- }
1002
- }
1003
- exports.PartnerV2Api = PartnerV2Api;