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