@cmarket/partner-sdk 0.1.0 → 0.3.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 (295) hide show
  1. package/README.md +230 -9
  2. package/api/oauth-api.ts +1 -1
  3. package/api/partner-v1-api.ts +1038 -16
  4. package/api.ts +1 -3
  5. package/base.ts +1 -1
  6. package/common.ts +1 -1
  7. package/configuration.ts +1 -1
  8. package/dist/api/oauth-api.d.ts +1 -1
  9. package/dist/api/oauth-api.js +1 -1
  10. package/dist/api/partner-v1-api.d.ts +465 -13
  11. package/dist/api/partner-v1-api.js +986 -46
  12. package/dist/api.d.ts +1 -3
  13. package/dist/api.js +1 -3
  14. package/dist/base.d.ts +1 -1
  15. package/dist/base.js +1 -1
  16. package/dist/common.d.ts +1 -1
  17. package/dist/common.js +1 -1
  18. package/dist/configuration.d.ts +1 -1
  19. package/dist/configuration.js +1 -1
  20. package/dist/esm/api/oauth-api.d.ts +1 -1
  21. package/dist/esm/api/oauth-api.js +1 -1
  22. package/dist/esm/api/partner-v1-api.d.ts +465 -13
  23. package/dist/esm/api/partner-v1-api.js +986 -46
  24. package/dist/esm/api.d.ts +1 -3
  25. package/dist/esm/api.js +1 -3
  26. package/dist/esm/base.d.ts +1 -1
  27. package/dist/esm/base.js +1 -1
  28. package/dist/esm/common.d.ts +1 -1
  29. package/dist/esm/common.js +1 -1
  30. package/dist/esm/configuration.d.ts +1 -1
  31. package/dist/esm/configuration.js +1 -1
  32. package/dist/esm/index.d.ts +1 -1
  33. package/dist/esm/index.js +1 -1
  34. package/dist/esm/models/acceptance-result-response-dto.d.ts +21 -0
  35. package/dist/esm/models/{legacy-envelope-dto.js → acceptance-result-response-dto.js} +1 -1
  36. package/dist/esm/models/award-registered-response-dto.d.ts +1 -1
  37. package/dist/esm/models/award-registered-response-dto.js +1 -1
  38. package/dist/esm/models/bid-bond-dto.d.ts +1 -1
  39. package/dist/esm/models/bid-bond-dto.js +1 -1
  40. package/dist/esm/models/bid-contract-documents-batch-request-dto.d.ts +21 -0
  41. package/dist/esm/models/bid-contract-documents-batch-request-dto.js +14 -0
  42. package/dist/esm/models/bid-contract-documents-response-dto.d.ts +26 -0
  43. package/dist/esm/models/bid-contract-documents-response-dto.js +14 -0
  44. package/dist/esm/models/bid-created-response-dto.d.ts +1 -1
  45. package/dist/esm/models/bid-created-response-dto.js +1 -1
  46. package/dist/esm/models/bid-document-dto.d.ts +1 -1
  47. package/dist/esm/models/bid-document-dto.js +1 -1
  48. package/dist/esm/models/bid-failed-response-dto.d.ts +21 -0
  49. package/dist/esm/models/bid-failed-response-dto.js +14 -0
  50. package/dist/esm/models/bid-failure-reason.d.ts +25 -0
  51. package/dist/esm/models/bid-failure-reason.js +26 -0
  52. package/dist/esm/models/bid-item-dto.d.ts +1 -1
  53. package/dist/esm/models/bid-item-dto.js +1 -1
  54. package/dist/esm/models/bid-manager-dto.d.ts +9 -1
  55. package/dist/esm/models/bid-manager-dto.js +1 -1
  56. package/dist/esm/models/bid-result-participant-dto.d.ts +65 -0
  57. package/dist/esm/models/bid-result-participant-dto.js +14 -0
  58. package/dist/esm/models/bid-result-product-dto.d.ts +25 -0
  59. package/dist/esm/models/bid-result-product-dto.js +14 -0
  60. package/dist/esm/models/bid-result-winner-dto.d.ts +25 -0
  61. package/dist/esm/models/bid-result-winner-dto.js +14 -0
  62. package/dist/esm/models/bid-results-batch-request-dto.d.ts +21 -0
  63. package/dist/esm/models/bid-results-batch-request-dto.js +14 -0
  64. package/dist/esm/models/bid-results-response-dto.d.ts +56 -0
  65. package/dist/esm/models/bid-results-response-dto.js +14 -0
  66. package/dist/esm/models/bid-settlement-line-item-dto.d.ts +49 -0
  67. package/dist/esm/models/bid-settlement-line-item-dto.js +14 -0
  68. package/dist/esm/models/bid-settlement-participant-dto.d.ts +95 -0
  69. package/dist/esm/models/bid-settlement-participant-dto.js +17 -0
  70. package/dist/esm/models/bid-settlement-response-dto.d.ts +22 -0
  71. package/dist/esm/models/bid-settlement-response-dto.js +14 -0
  72. package/dist/esm/models/bid-statement-response-dto.d.ts +31 -0
  73. package/dist/esm/models/bid-statement-response-dto.js +14 -0
  74. package/dist/esm/models/bid-status.d.ts +2 -2
  75. package/dist/esm/models/bid-status.js +2 -2
  76. package/dist/esm/models/bid-summary-response-dto.d.ts +5 -5
  77. package/dist/esm/models/bid-summary-response-dto.js +1 -1
  78. package/dist/esm/models/complete-acceptance-request-dto.d.ts +65 -0
  79. package/dist/esm/models/complete-acceptance-request-dto.js +14 -0
  80. package/dist/esm/models/contract-document-item-dto.d.ts +29 -0
  81. package/dist/esm/models/contract-document-item-dto.js +14 -0
  82. package/dist/esm/models/create-bid-request-dto.d.ts +20 -3
  83. package/dist/esm/models/create-bid-request-dto.js +5 -1
  84. package/dist/esm/models/file-uploaded-response-dto.d.ts +1 -1
  85. package/dist/esm/models/file-uploaded-response-dto.js +1 -1
  86. package/dist/esm/models/health-response-dto.d.ts +1 -1
  87. package/dist/esm/models/health-response-dto.js +1 -1
  88. package/dist/esm/models/hierarchical-region-dto.d.ts +1 -1
  89. package/dist/esm/models/hierarchical-region-dto.js +1 -1
  90. package/dist/esm/models/index.d.ts +24 -1
  91. package/dist/esm/models/index.js +24 -1
  92. package/dist/esm/models/mark-bid-failed-request-dto.d.ts +30 -0
  93. package/dist/esm/models/mark-bid-failed-request-dto.js +14 -0
  94. package/dist/esm/models/negotiation-score-dto.d.ts +25 -0
  95. package/dist/esm/models/negotiation-score-dto.js +14 -0
  96. package/dist/esm/models/negotiation-scored-response-dto.d.ts +25 -0
  97. package/dist/esm/models/negotiation-scored-response-dto.js +14 -0
  98. package/dist/esm/models/preconditions-dto.d.ts +1 -1
  99. package/dist/esm/models/preconditions-dto.js +1 -1
  100. package/dist/esm/models/register-award-request-dto.d.ts +10 -2
  101. package/dist/esm/models/register-award-request-dto.js +1 -1
  102. package/dist/esm/models/request-split-invoice-request-dto.d.ts +33 -0
  103. package/dist/esm/models/request-split-invoice-request-dto.js +14 -0
  104. package/dist/esm/models/split-invoice-response-dto.d.ts +21 -0
  105. package/dist/esm/models/split-invoice-response-dto.js +14 -0
  106. package/dist/esm/models/statement-document-dto.d.ts +25 -0
  107. package/dist/esm/models/statement-document-dto.js +14 -0
  108. package/dist/esm/models/statement-product-dto.d.ts +49 -0
  109. package/dist/esm/models/statement-product-dto.js +14 -0
  110. package/dist/esm/models/submit-negotiation-scores-request-dto.d.ts +30 -0
  111. package/dist/esm/models/submit-negotiation-scores-request-dto.js +14 -0
  112. package/dist/esm/models/token-request-dto.d.ts +1 -1
  113. package/dist/esm/models/token-request-dto.js +1 -1
  114. package/dist/esm/models/token-response-dto.d.ts +1 -1
  115. package/dist/esm/models/token-response-dto.js +1 -1
  116. package/dist/esm/models/upload-file-request-dto.d.ts +1 -1
  117. package/dist/esm/models/upload-file-request-dto.js +1 -1
  118. package/dist/index.d.ts +1 -1
  119. package/dist/index.js +1 -1
  120. package/dist/models/acceptance-result-response-dto.d.ts +21 -0
  121. package/dist/models/{legacy-envelope-dto.js → acceptance-result-response-dto.js} +1 -1
  122. package/dist/models/award-registered-response-dto.d.ts +1 -1
  123. package/dist/models/award-registered-response-dto.js +1 -1
  124. package/dist/models/bid-bond-dto.d.ts +1 -1
  125. package/dist/models/bid-bond-dto.js +1 -1
  126. package/dist/models/bid-contract-documents-batch-request-dto.d.ts +21 -0
  127. package/dist/models/bid-contract-documents-batch-request-dto.js +15 -0
  128. package/dist/models/bid-contract-documents-response-dto.d.ts +26 -0
  129. package/dist/models/bid-contract-documents-response-dto.js +15 -0
  130. package/dist/models/bid-created-response-dto.d.ts +1 -1
  131. package/dist/models/bid-created-response-dto.js +1 -1
  132. package/dist/models/bid-document-dto.d.ts +1 -1
  133. package/dist/models/bid-document-dto.js +1 -1
  134. package/dist/models/bid-failed-response-dto.d.ts +21 -0
  135. package/dist/models/bid-failed-response-dto.js +15 -0
  136. package/dist/models/bid-failure-reason.d.ts +25 -0
  137. package/dist/models/bid-failure-reason.js +29 -0
  138. package/dist/models/bid-item-dto.d.ts +1 -1
  139. package/dist/models/bid-item-dto.js +1 -1
  140. package/dist/models/bid-manager-dto.d.ts +9 -1
  141. package/dist/models/bid-manager-dto.js +1 -1
  142. package/dist/models/bid-result-participant-dto.d.ts +65 -0
  143. package/dist/models/bid-result-participant-dto.js +15 -0
  144. package/dist/models/bid-result-product-dto.d.ts +25 -0
  145. package/dist/models/bid-result-product-dto.js +15 -0
  146. package/dist/models/bid-result-winner-dto.d.ts +25 -0
  147. package/dist/models/bid-result-winner-dto.js +15 -0
  148. package/dist/models/bid-results-batch-request-dto.d.ts +21 -0
  149. package/dist/models/bid-results-batch-request-dto.js +15 -0
  150. package/dist/models/bid-results-response-dto.d.ts +56 -0
  151. package/dist/models/bid-results-response-dto.js +15 -0
  152. package/dist/models/bid-settlement-line-item-dto.d.ts +49 -0
  153. package/dist/models/bid-settlement-line-item-dto.js +15 -0
  154. package/dist/models/bid-settlement-participant-dto.d.ts +95 -0
  155. package/dist/models/bid-settlement-participant-dto.js +20 -0
  156. package/dist/models/bid-settlement-response-dto.d.ts +22 -0
  157. package/dist/models/bid-settlement-response-dto.js +15 -0
  158. package/dist/models/bid-statement-response-dto.d.ts +31 -0
  159. package/dist/models/bid-statement-response-dto.js +15 -0
  160. package/dist/models/bid-status.d.ts +2 -2
  161. package/dist/models/bid-status.js +2 -2
  162. package/dist/models/bid-summary-response-dto.d.ts +5 -5
  163. package/dist/models/bid-summary-response-dto.js +1 -1
  164. package/dist/models/complete-acceptance-request-dto.d.ts +65 -0
  165. package/dist/models/complete-acceptance-request-dto.js +15 -0
  166. package/dist/models/contract-document-item-dto.d.ts +29 -0
  167. package/dist/models/contract-document-item-dto.js +15 -0
  168. package/dist/models/create-bid-request-dto.d.ts +20 -3
  169. package/dist/models/create-bid-request-dto.js +6 -2
  170. package/dist/models/file-uploaded-response-dto.d.ts +1 -1
  171. package/dist/models/file-uploaded-response-dto.js +1 -1
  172. package/dist/models/health-response-dto.d.ts +1 -1
  173. package/dist/models/health-response-dto.js +1 -1
  174. package/dist/models/hierarchical-region-dto.d.ts +1 -1
  175. package/dist/models/hierarchical-region-dto.js +1 -1
  176. package/dist/models/index.d.ts +24 -1
  177. package/dist/models/index.js +24 -1
  178. package/dist/models/mark-bid-failed-request-dto.d.ts +30 -0
  179. package/dist/models/mark-bid-failed-request-dto.js +15 -0
  180. package/dist/models/negotiation-score-dto.d.ts +25 -0
  181. package/dist/models/negotiation-score-dto.js +15 -0
  182. package/dist/models/negotiation-scored-response-dto.d.ts +25 -0
  183. package/dist/models/negotiation-scored-response-dto.js +15 -0
  184. package/dist/models/preconditions-dto.d.ts +1 -1
  185. package/dist/models/preconditions-dto.js +1 -1
  186. package/dist/models/register-award-request-dto.d.ts +10 -2
  187. package/dist/models/register-award-request-dto.js +1 -1
  188. package/dist/models/request-split-invoice-request-dto.d.ts +33 -0
  189. package/dist/models/request-split-invoice-request-dto.js +15 -0
  190. package/dist/models/split-invoice-response-dto.d.ts +21 -0
  191. package/dist/models/split-invoice-response-dto.js +15 -0
  192. package/dist/models/statement-document-dto.d.ts +25 -0
  193. package/dist/models/statement-document-dto.js +15 -0
  194. package/dist/models/statement-product-dto.d.ts +49 -0
  195. package/dist/models/statement-product-dto.js +15 -0
  196. package/dist/models/submit-negotiation-scores-request-dto.d.ts +30 -0
  197. package/dist/models/submit-negotiation-scores-request-dto.js +15 -0
  198. package/dist/models/token-request-dto.d.ts +1 -1
  199. package/dist/models/token-request-dto.js +1 -1
  200. package/dist/models/token-response-dto.d.ts +1 -1
  201. package/dist/models/token-response-dto.js +1 -1
  202. package/dist/models/upload-file-request-dto.d.ts +1 -1
  203. package/dist/models/upload-file-request-dto.js +1 -1
  204. package/docs/AcceptanceResultResponseDto.md +22 -0
  205. package/docs/BidContractDocumentsBatchRequestDto.md +22 -0
  206. package/docs/BidContractDocumentsResponseDto.md +24 -0
  207. package/docs/BidFailedResponseDto.md +22 -0
  208. package/docs/BidFailureReason.md +23 -0
  209. package/docs/BidManagerDto.md +4 -0
  210. package/docs/BidResultParticipantDto.md +44 -0
  211. package/docs/BidResultProductDto.md +24 -0
  212. package/docs/BidResultWinnerDto.md +24 -0
  213. package/docs/BidResultsBatchRequestDto.md +22 -0
  214. package/docs/BidResultsResponseDto.md +38 -0
  215. package/docs/BidSettlementLineItemDto.md +36 -0
  216. package/docs/BidSettlementParticipantDto.md +56 -0
  217. package/docs/BidSettlementResponseDto.md +22 -0
  218. package/docs/BidStatementResponseDto.md +26 -0
  219. package/docs/BidStatus.md +1 -1
  220. package/docs/BidSummaryResponseDto.md +4 -4
  221. package/docs/CompleteAcceptanceRequestDto.md +44 -0
  222. package/docs/ContractDocumentItemDto.md +26 -0
  223. package/docs/CreateBidRequestDto.md +8 -2
  224. package/docs/MarkBidFailedRequestDto.md +26 -0
  225. package/docs/NegotiationScoreDto.md +24 -0
  226. package/docs/NegotiationScoredResponseDto.md +24 -0
  227. package/docs/PartnerV1Api.md +700 -3
  228. package/docs/RegisterAwardRequestDto.md +5 -1
  229. package/docs/RequestSplitInvoiceRequestDto.md +28 -0
  230. package/docs/SplitInvoiceResponseDto.md +22 -0
  231. package/docs/StatementDocumentDto.md +24 -0
  232. package/docs/StatementProductDto.md +36 -0
  233. package/docs/SubmitNegotiationScoresRequestDto.md +26 -0
  234. package/index.ts +1 -1
  235. package/models/acceptance-result-response-dto.ts +27 -0
  236. package/models/award-registered-response-dto.ts +1 -1
  237. package/models/bid-bond-dto.ts +1 -1
  238. package/models/bid-contract-documents-batch-request-dto.ts +27 -0
  239. package/models/bid-contract-documents-response-dto.ts +34 -0
  240. package/models/bid-created-response-dto.ts +1 -1
  241. package/models/bid-document-dto.ts +1 -1
  242. package/models/bid-failed-response-dto.ts +27 -0
  243. package/models/bid-failure-reason.ts +35 -0
  244. package/models/bid-item-dto.ts +1 -1
  245. package/models/bid-manager-dto.ts +9 -1
  246. package/models/bid-result-participant-dto.ts +71 -0
  247. package/models/bid-result-product-dto.ts +31 -0
  248. package/models/bid-result-winner-dto.ts +31 -0
  249. package/models/bid-results-batch-request-dto.ts +27 -0
  250. package/models/bid-results-response-dto.ts +68 -0
  251. package/models/bid-settlement-line-item-dto.ts +55 -0
  252. package/models/bid-settlement-participant-dto.ts +106 -0
  253. package/models/bid-settlement-response-dto.ts +30 -0
  254. package/models/bid-statement-response-dto.ts +41 -0
  255. package/models/bid-status.ts +2 -2
  256. package/models/bid-summary-response-dto.ts +5 -5
  257. package/models/complete-acceptance-request-dto.ts +71 -0
  258. package/models/contract-document-item-dto.ts +35 -0
  259. package/models/create-bid-request-dto.ts +21 -3
  260. package/models/file-uploaded-response-dto.ts +1 -1
  261. package/models/health-response-dto.ts +1 -1
  262. package/models/hierarchical-region-dto.ts +1 -1
  263. package/models/index.ts +24 -1
  264. package/models/mark-bid-failed-request-dto.ts +40 -0
  265. package/models/negotiation-score-dto.ts +31 -0
  266. package/models/{legacy-envelope-dto.ts → negotiation-scored-response-dto.ts} +8 -8
  267. package/models/preconditions-dto.ts +1 -1
  268. package/models/register-award-request-dto.ts +10 -2
  269. package/models/request-split-invoice-request-dto.ts +39 -0
  270. package/models/split-invoice-response-dto.ts +27 -0
  271. package/models/statement-document-dto.ts +31 -0
  272. package/models/statement-product-dto.ts +55 -0
  273. package/models/submit-negotiation-scores-request-dto.ts +38 -0
  274. package/models/token-request-dto.ts +1 -1
  275. package/models/token-response-dto.ts +1 -1
  276. package/models/upload-file-request-dto.ts +1 -1
  277. package/package.json +1 -1
  278. package/.openapi-generator/FILES +0 -57
  279. package/.openapi-generator/VERSION +0 -1
  280. package/.openapi-generator-ignore +0 -23
  281. package/api/partner-v1-legacy-api.ts +0 -178
  282. package/api/partner-v2-api.ts +0 -285
  283. package/dist/api/partner-v1-legacy-api.d.ts +0 -91
  284. package/dist/api/partner-v1-legacy-api.js +0 -181
  285. package/dist/api/partner-v2-api.d.ts +0 -136
  286. package/dist/api/partner-v2-api.js +0 -273
  287. package/dist/esm/api/partner-v1-legacy-api.d.ts +0 -91
  288. package/dist/esm/api/partner-v1-legacy-api.js +0 -174
  289. package/dist/esm/api/partner-v2-api.d.ts +0 -136
  290. package/dist/esm/api/partner-v2-api.js +0 -266
  291. package/dist/esm/models/legacy-envelope-dto.d.ts +0 -25
  292. package/dist/models/legacy-envelope-dto.d.ts +0 -25
  293. package/docs/LegacyEnvelopeDto.md +0 -24
  294. package/docs/PartnerV1LegacyApi.md +0 -97
  295. package/docs/PartnerV2Api.md +0 -166
@@ -1,174 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * CMARKET V6 Partner API
5
- * 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
- import globalAxios from 'axios';
24
- // Some imports not used depending on template conditions
25
- // @ts-ignore
26
- import { DUMMY_BASE_URL, setSearchParams, toPathString, createRequestFunction } from '../common';
27
- // @ts-ignore
28
- import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
- /**
30
- * PartnerV1LegacyApi - axios parameter creator
31
- */
32
- export const PartnerV1LegacyApiAxiosParamCreator = function (configuration) {
33
- return {
34
- /**
35
- * V5 ApiController#check 응답 envelope 그대로. Sunset 헤더 부착.
36
- * @summary V5 /check 호환 헬스체크 (deprecated)
37
- * @param {*} [options] Override http request option.
38
- * @throws {RequiredError}
39
- */
40
- legacyControllerCheckGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
41
- const localVarPath = `/v1-legacy/check`;
42
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
43
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44
- let baseOptions;
45
- if (configuration) {
46
- baseOptions = configuration.baseOptions;
47
- }
48
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
49
- const localVarHeaderParameter = {};
50
- const localVarQueryParameter = {};
51
- localVarHeaderParameter['Accept'] = 'application/json';
52
- setSearchParams(localVarUrlObj, localVarQueryParameter);
53
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
55
- return {
56
- url: toPathString(localVarUrlObj),
57
- options: localVarRequestOptions,
58
- };
59
- }),
60
- /**
61
- * V5 는 GET·POST 모두 받음. 동일 응답.
62
- * @summary V5 /check 호환 헬스체크 — POST (deprecated)
63
- * @param {*} [options] Override http request option.
64
- * @throws {RequiredError}
65
- */
66
- legacyControllerCheckPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
67
- const localVarPath = `/v1-legacy/check`;
68
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
69
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
70
- let baseOptions;
71
- if (configuration) {
72
- baseOptions = configuration.baseOptions;
73
- }
74
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
75
- const localVarHeaderParameter = {};
76
- const localVarQueryParameter = {};
77
- localVarHeaderParameter['Accept'] = 'application/json';
78
- setSearchParams(localVarUrlObj, localVarQueryParameter);
79
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
80
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
81
- return {
82
- url: toPathString(localVarUrlObj),
83
- options: localVarRequestOptions,
84
- };
85
- }),
86
- };
87
- };
88
- /**
89
- * PartnerV1LegacyApi - functional programming interface
90
- */
91
- export const PartnerV1LegacyApiFp = function (configuration) {
92
- const localVarAxiosParamCreator = PartnerV1LegacyApiAxiosParamCreator(configuration);
93
- return {
94
- /**
95
- * V5 ApiController#check 응답 envelope 그대로. Sunset 헤더 부착.
96
- * @summary V5 /check 호환 헬스체크 (deprecated)
97
- * @param {*} [options] Override http request option.
98
- * @throws {RequiredError}
99
- */
100
- legacyControllerCheckGet(options) {
101
- return __awaiter(this, void 0, void 0, function* () {
102
- var _a, _b, _c;
103
- const localVarAxiosArgs = yield localVarAxiosParamCreator.legacyControllerCheckGet(options);
104
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
105
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV1LegacyApi.legacyControllerCheckGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
106
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
107
- });
108
- },
109
- /**
110
- * V5 는 GET·POST 모두 받음. 동일 응답.
111
- * @summary V5 /check 호환 헬스체크 — POST (deprecated)
112
- * @param {*} [options] Override http request option.
113
- * @throws {RequiredError}
114
- */
115
- legacyControllerCheckPost(options) {
116
- return __awaiter(this, void 0, void 0, function* () {
117
- var _a, _b, _c;
118
- const localVarAxiosArgs = yield localVarAxiosParamCreator.legacyControllerCheckPost(options);
119
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
120
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV1LegacyApi.legacyControllerCheckPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
121
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
122
- });
123
- },
124
- };
125
- };
126
- /**
127
- * PartnerV1LegacyApi - factory interface
128
- */
129
- export const PartnerV1LegacyApiFactory = function (configuration, basePath, axios) {
130
- const localVarFp = PartnerV1LegacyApiFp(configuration);
131
- return {
132
- /**
133
- * V5 ApiController#check 응답 envelope 그대로. Sunset 헤더 부착.
134
- * @summary V5 /check 호환 헬스체크 (deprecated)
135
- * @param {*} [options] Override http request option.
136
- * @throws {RequiredError}
137
- */
138
- legacyControllerCheckGet(options) {
139
- return localVarFp.legacyControllerCheckGet(options).then((request) => request(axios, basePath));
140
- },
141
- /**
142
- * V5 는 GET·POST 모두 받음. 동일 응답.
143
- * @summary V5 /check 호환 헬스체크 — POST (deprecated)
144
- * @param {*} [options] Override http request option.
145
- * @throws {RequiredError}
146
- */
147
- legacyControllerCheckPost(options) {
148
- return localVarFp.legacyControllerCheckPost(options).then((request) => request(axios, basePath));
149
- },
150
- };
151
- };
152
- /**
153
- * PartnerV1LegacyApi - object-oriented interface
154
- */
155
- export class PartnerV1LegacyApi extends BaseAPI {
156
- /**
157
- * V5 ApiController#check 응답 envelope 그대로. Sunset 헤더 부착.
158
- * @summary V5 /check 호환 헬스체크 (deprecated)
159
- * @param {*} [options] Override http request option.
160
- * @throws {RequiredError}
161
- */
162
- legacyControllerCheckGet(options) {
163
- return PartnerV1LegacyApiFp(this.configuration).legacyControllerCheckGet(options).then((request) => request(this.axios, this.basePath));
164
- }
165
- /**
166
- * V5 는 GET·POST 모두 받음. 동일 응답.
167
- * @summary V5 /check 호환 헬스체크 — POST (deprecated)
168
- * @param {*} [options] Override http request option.
169
- * @throws {RequiredError}
170
- */
171
- legacyControllerCheckPost(options) {
172
- return PartnerV1LegacyApiFp(this.configuration).legacyControllerCheckPost(options).then((request) => request(this.axios, this.basePath));
173
- }
174
- }
@@ -1,136 +0,0 @@
1
- /**
2
- * CMARKET V6 Partner API
3
- * 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { Configuration } from '../configuration';
13
- import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
- import { type RequestArgs, BaseAPI } from '../base';
15
- import type { AwardRegisteredResponseDto } from '../models';
16
- import type { BidCreatedResponseDto } from '../models';
17
- import type { CreateBidRequestDto } from '../models';
18
- import type { FileUploadedResponseDto } from '../models';
19
- import type { RegisterAwardRequestDto } from '../models';
20
- import type { UploadFileRequestDto } from '../models';
21
- /**
22
- * PartnerV2Api - axios parameter creator
23
- */
24
- export declare const PartnerV2ApiAxiosParamCreator: (configuration?: Configuration) => {
25
- /**
26
- * V5 /scsbidSend 후속. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
27
- * @summary 낙찰 결과 전송
28
- * @param {RegisterAwardRequestDto} registerAwardRequestDto
29
- * @param {*} [options] Override http request option.
30
- * @throws {RequiredError}
31
- */
32
- registerAward: (registerAwardRequestDto: RegisterAwardRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
33
- /**
34
- * V5 /bidsend 후속. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
35
- * @summary 입찰 정보 전송(등록)
36
- * @param {CreateBidRequestDto} createBidRequestDto
37
- * @param {*} [options] Override http request option.
38
- * @throws {RequiredError}
39
- */
40
- registerBid: (createBidRequestDto: CreateBidRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
41
- /**
42
- * 스코프 `files:write` 필수. base64 또는 url 중 하나를 제출한다.
43
- * @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
44
- * @param {UploadFileRequestDto} uploadFileRequestDto
45
- * @param {*} [options] Override http request option.
46
- * @throws {RequiredError}
47
- */
48
- uploadFile: (uploadFileRequestDto: UploadFileRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
49
- };
50
- /**
51
- * PartnerV2Api - functional programming interface
52
- */
53
- export declare const PartnerV2ApiFp: (configuration?: Configuration) => {
54
- /**
55
- * V5 /scsbidSend 후속. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
56
- * @summary 낙찰 결과 전송
57
- * @param {RegisterAwardRequestDto} registerAwardRequestDto
58
- * @param {*} [options] Override http request option.
59
- * @throws {RequiredError}
60
- */
61
- registerAward(registerAwardRequestDto: RegisterAwardRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AwardRegisteredResponseDto>>;
62
- /**
63
- * V5 /bidsend 후속. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
64
- * @summary 입찰 정보 전송(등록)
65
- * @param {CreateBidRequestDto} createBidRequestDto
66
- * @param {*} [options] Override http request option.
67
- * @throws {RequiredError}
68
- */
69
- registerBid(createBidRequestDto: CreateBidRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BidCreatedResponseDto>>;
70
- /**
71
- * 스코프 `files:write` 필수. base64 또는 url 중 하나를 제출한다.
72
- * @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
73
- * @param {UploadFileRequestDto} uploadFileRequestDto
74
- * @param {*} [options] Override http request option.
75
- * @throws {RequiredError}
76
- */
77
- uploadFile(uploadFileRequestDto: UploadFileRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileUploadedResponseDto>>;
78
- };
79
- /**
80
- * PartnerV2Api - factory interface
81
- */
82
- export declare const PartnerV2ApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
83
- /**
84
- * V5 /scsbidSend 후속. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
85
- * @summary 낙찰 결과 전송
86
- * @param {RegisterAwardRequestDto} registerAwardRequestDto
87
- * @param {*} [options] Override http request option.
88
- * @throws {RequiredError}
89
- */
90
- registerAward(registerAwardRequestDto: RegisterAwardRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<AwardRegisteredResponseDto>;
91
- /**
92
- * V5 /bidsend 후속. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
93
- * @summary 입찰 정보 전송(등록)
94
- * @param {CreateBidRequestDto} createBidRequestDto
95
- * @param {*} [options] Override http request option.
96
- * @throws {RequiredError}
97
- */
98
- registerBid(createBidRequestDto: CreateBidRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<BidCreatedResponseDto>;
99
- /**
100
- * 스코프 `files:write` 필수. base64 또는 url 중 하나를 제출한다.
101
- * @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
102
- * @param {UploadFileRequestDto} uploadFileRequestDto
103
- * @param {*} [options] Override http request option.
104
- * @throws {RequiredError}
105
- */
106
- uploadFile(uploadFileRequestDto: UploadFileRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<FileUploadedResponseDto>;
107
- };
108
- /**
109
- * PartnerV2Api - object-oriented interface
110
- */
111
- export declare class PartnerV2Api extends BaseAPI {
112
- /**
113
- * V5 /scsbidSend 후속. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
114
- * @summary 낙찰 결과 전송
115
- * @param {RegisterAwardRequestDto} registerAwardRequestDto
116
- * @param {*} [options] Override http request option.
117
- * @throws {RequiredError}
118
- */
119
- registerAward(registerAwardRequestDto: RegisterAwardRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AwardRegisteredResponseDto, any, {}>>;
120
- /**
121
- * V5 /bidsend 후속. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
122
- * @summary 입찰 정보 전송(등록)
123
- * @param {CreateBidRequestDto} createBidRequestDto
124
- * @param {*} [options] Override http request option.
125
- * @throws {RequiredError}
126
- */
127
- registerBid(createBidRequestDto: CreateBidRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BidCreatedResponseDto, any, {}>>;
128
- /**
129
- * 스코프 `files:write` 필수. base64 또는 url 중 하나를 제출한다.
130
- * @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
131
- * @param {UploadFileRequestDto} uploadFileRequestDto
132
- * @param {*} [options] Override http request option.
133
- * @throws {RequiredError}
134
- */
135
- uploadFile(uploadFileRequestDto: UploadFileRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileUploadedResponseDto, any, {}>>;
136
- }
@@ -1,266 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * CMARKET V6 Partner API
5
- * 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
- import globalAxios from 'axios';
24
- // Some imports not used depending on template conditions
25
- // @ts-ignore
26
- import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
- // @ts-ignore
28
- import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
- /**
30
- * PartnerV2Api - axios parameter creator
31
- */
32
- export const PartnerV2ApiAxiosParamCreator = function (configuration) {
33
- return {
34
- /**
35
- * V5 /scsbidSend 후속. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
36
- * @summary 낙찰 결과 전송
37
- * @param {RegisterAwardRequestDto} registerAwardRequestDto
38
- * @param {*} [options] Override http request option.
39
- * @throws {RequiredError}
40
- */
41
- registerAward: (registerAwardRequestDto_1, ...args_1) => __awaiter(this, [registerAwardRequestDto_1, ...args_1], void 0, function* (registerAwardRequestDto, options = {}) {
42
- // verify required parameter 'registerAwardRequestDto' is not null or undefined
43
- assertParamExists('registerAward', 'registerAwardRequestDto', registerAwardRequestDto);
44
- const localVarPath = `/v2/awards`;
45
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
- let baseOptions;
48
- if (configuration) {
49
- baseOptions = configuration.baseOptions;
50
- }
51
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
52
- const localVarHeaderParameter = {};
53
- const localVarQueryParameter = {};
54
- // authentication partner-oauth2 required
55
- // http bearer authentication required
56
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
57
- localVarHeaderParameter['Content-Type'] = 'application/json';
58
- localVarHeaderParameter['Accept'] = 'application/json';
59
- setSearchParams(localVarUrlObj, localVarQueryParameter);
60
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
- localVarRequestOptions.data = serializeDataIfNeeded(registerAwardRequestDto, localVarRequestOptions, configuration);
63
- return {
64
- url: toPathString(localVarUrlObj),
65
- options: localVarRequestOptions,
66
- };
67
- }),
68
- /**
69
- * V5 /bidsend 후속. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
70
- * @summary 입찰 정보 전송(등록)
71
- * @param {CreateBidRequestDto} createBidRequestDto
72
- * @param {*} [options] Override http request option.
73
- * @throws {RequiredError}
74
- */
75
- registerBid: (createBidRequestDto_1, ...args_1) => __awaiter(this, [createBidRequestDto_1, ...args_1], void 0, function* (createBidRequestDto, options = {}) {
76
- // verify required parameter 'createBidRequestDto' is not null or undefined
77
- assertParamExists('registerBid', 'createBidRequestDto', createBidRequestDto);
78
- const localVarPath = `/v2/bids`;
79
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
80
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
81
- let baseOptions;
82
- if (configuration) {
83
- baseOptions = configuration.baseOptions;
84
- }
85
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
86
- const localVarHeaderParameter = {};
87
- const localVarQueryParameter = {};
88
- // authentication partner-oauth2 required
89
- // http bearer authentication required
90
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
91
- localVarHeaderParameter['Content-Type'] = 'application/json';
92
- localVarHeaderParameter['Accept'] = 'application/json';
93
- setSearchParams(localVarUrlObj, localVarQueryParameter);
94
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
95
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
96
- localVarRequestOptions.data = serializeDataIfNeeded(createBidRequestDto, localVarRequestOptions, configuration);
97
- return {
98
- url: toPathString(localVarUrlObj),
99
- options: localVarRequestOptions,
100
- };
101
- }),
102
- /**
103
- * 스코프 `files:write` 필수. base64 또는 url 중 하나를 제출한다.
104
- * @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
105
- * @param {UploadFileRequestDto} uploadFileRequestDto
106
- * @param {*} [options] Override http request option.
107
- * @throws {RequiredError}
108
- */
109
- uploadFile: (uploadFileRequestDto_1, ...args_1) => __awaiter(this, [uploadFileRequestDto_1, ...args_1], void 0, function* (uploadFileRequestDto, options = {}) {
110
- // verify required parameter 'uploadFileRequestDto' is not null or undefined
111
- assertParamExists('uploadFile', 'uploadFileRequestDto', uploadFileRequestDto);
112
- const localVarPath = `/v2/files`;
113
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
114
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
115
- let baseOptions;
116
- if (configuration) {
117
- baseOptions = configuration.baseOptions;
118
- }
119
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
120
- const localVarHeaderParameter = {};
121
- const localVarQueryParameter = {};
122
- // authentication partner-oauth2 required
123
- // http bearer authentication required
124
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
125
- localVarHeaderParameter['Content-Type'] = 'application/json';
126
- localVarHeaderParameter['Accept'] = 'application/json';
127
- setSearchParams(localVarUrlObj, localVarQueryParameter);
128
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
130
- localVarRequestOptions.data = serializeDataIfNeeded(uploadFileRequestDto, localVarRequestOptions, configuration);
131
- return {
132
- url: toPathString(localVarUrlObj),
133
- options: localVarRequestOptions,
134
- };
135
- }),
136
- };
137
- };
138
- /**
139
- * PartnerV2Api - functional programming interface
140
- */
141
- export const PartnerV2ApiFp = function (configuration) {
142
- const localVarAxiosParamCreator = PartnerV2ApiAxiosParamCreator(configuration);
143
- return {
144
- /**
145
- * V5 /scsbidSend 후속. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
146
- * @summary 낙찰 결과 전송
147
- * @param {RegisterAwardRequestDto} registerAwardRequestDto
148
- * @param {*} [options] Override http request option.
149
- * @throws {RequiredError}
150
- */
151
- registerAward(registerAwardRequestDto, options) {
152
- return __awaiter(this, void 0, void 0, function* () {
153
- var _a, _b, _c;
154
- const localVarAxiosArgs = yield localVarAxiosParamCreator.registerAward(registerAwardRequestDto, options);
155
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
156
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV2Api.registerAward']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
157
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
158
- });
159
- },
160
- /**
161
- * V5 /bidsend 후속. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
162
- * @summary 입찰 정보 전송(등록)
163
- * @param {CreateBidRequestDto} createBidRequestDto
164
- * @param {*} [options] Override http request option.
165
- * @throws {RequiredError}
166
- */
167
- registerBid(createBidRequestDto, options) {
168
- return __awaiter(this, void 0, void 0, function* () {
169
- var _a, _b, _c;
170
- const localVarAxiosArgs = yield localVarAxiosParamCreator.registerBid(createBidRequestDto, options);
171
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
172
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV2Api.registerBid']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
173
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
174
- });
175
- },
176
- /**
177
- * 스코프 `files:write` 필수. base64 또는 url 중 하나를 제출한다.
178
- * @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
179
- * @param {UploadFileRequestDto} uploadFileRequestDto
180
- * @param {*} [options] Override http request option.
181
- * @throws {RequiredError}
182
- */
183
- uploadFile(uploadFileRequestDto, options) {
184
- return __awaiter(this, void 0, void 0, function* () {
185
- var _a, _b, _c;
186
- const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadFile(uploadFileRequestDto, options);
187
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
188
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PartnerV2Api.uploadFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
189
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
190
- });
191
- },
192
- };
193
- };
194
- /**
195
- * PartnerV2Api - factory interface
196
- */
197
- export const PartnerV2ApiFactory = function (configuration, basePath, axios) {
198
- const localVarFp = PartnerV2ApiFp(configuration);
199
- return {
200
- /**
201
- * V5 /scsbidSend 후속. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
202
- * @summary 낙찰 결과 전송
203
- * @param {RegisterAwardRequestDto} registerAwardRequestDto
204
- * @param {*} [options] Override http request option.
205
- * @throws {RequiredError}
206
- */
207
- registerAward(registerAwardRequestDto, options) {
208
- return localVarFp.registerAward(registerAwardRequestDto, options).then((request) => request(axios, basePath));
209
- },
210
- /**
211
- * V5 /bidsend 후속. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
212
- * @summary 입찰 정보 전송(등록)
213
- * @param {CreateBidRequestDto} createBidRequestDto
214
- * @param {*} [options] Override http request option.
215
- * @throws {RequiredError}
216
- */
217
- registerBid(createBidRequestDto, options) {
218
- return localVarFp.registerBid(createBidRequestDto, options).then((request) => request(axios, basePath));
219
- },
220
- /**
221
- * 스코프 `files:write` 필수. base64 또는 url 중 하나를 제출한다.
222
- * @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
223
- * @param {UploadFileRequestDto} uploadFileRequestDto
224
- * @param {*} [options] Override http request option.
225
- * @throws {RequiredError}
226
- */
227
- uploadFile(uploadFileRequestDto, options) {
228
- return localVarFp.uploadFile(uploadFileRequestDto, options).then((request) => request(axios, basePath));
229
- },
230
- };
231
- };
232
- /**
233
- * PartnerV2Api - object-oriented interface
234
- */
235
- export class PartnerV2Api extends BaseAPI {
236
- /**
237
- * V5 /scsbidSend 후속. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
238
- * @summary 낙찰 결과 전송
239
- * @param {RegisterAwardRequestDto} registerAwardRequestDto
240
- * @param {*} [options] Override http request option.
241
- * @throws {RequiredError}
242
- */
243
- registerAward(registerAwardRequestDto, options) {
244
- return PartnerV2ApiFp(this.configuration).registerAward(registerAwardRequestDto, options).then((request) => request(this.axios, this.basePath));
245
- }
246
- /**
247
- * V5 /bidsend 후속. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
248
- * @summary 입찰 정보 전송(등록)
249
- * @param {CreateBidRequestDto} createBidRequestDto
250
- * @param {*} [options] Override http request option.
251
- * @throws {RequiredError}
252
- */
253
- registerBid(createBidRequestDto, options) {
254
- return PartnerV2ApiFp(this.configuration).registerBid(createBidRequestDto, options).then((request) => request(this.axios, this.basePath));
255
- }
256
- /**
257
- * 스코프 `files:write` 필수. base64 또는 url 중 하나를 제출한다.
258
- * @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
259
- * @param {UploadFileRequestDto} uploadFileRequestDto
260
- * @param {*} [options] Override http request option.
261
- * @throws {RequiredError}
262
- */
263
- uploadFile(uploadFileRequestDto, options) {
264
- return PartnerV2ApiFp(this.configuration).uploadFile(uploadFileRequestDto, options).then((request) => request(this.axios, this.basePath));
265
- }
266
- }
@@ -1,25 +0,0 @@
1
- /**
2
- * CMARKET V6 Partner API
3
- * 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- export interface LegacyEnvelopeDto {
13
- /**
14
- * V5 응답 상태 (success / failure_secret / failure)
15
- */
16
- 'status': string;
17
- /**
18
- * V5 결과 코드 (정상 = 0000)
19
- */
20
- 'resultCode': string;
21
- /**
22
- * V5 응답 본문 (엔드포인트마다 형태가 다름)
23
- */
24
- 'data': object;
25
- }
@@ -1,25 +0,0 @@
1
- /**
2
- * CMARKET V6 Partner API
3
- * 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- export interface LegacyEnvelopeDto {
13
- /**
14
- * V5 응답 상태 (success / failure_secret / failure)
15
- */
16
- 'status': string;
17
- /**
18
- * V5 결과 코드 (정상 = 0000)
19
- */
20
- 'resultCode': string;
21
- /**
22
- * V5 응답 본문 (엔드포인트마다 형태가 다름)
23
- */
24
- 'data': object;
25
- }
@@ -1,24 +0,0 @@
1
- # LegacyEnvelopeDto
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **status** | **string** | V5 응답 상태 (success / failure_secret / failure) | [default to undefined]
9
- **resultCode** | **string** | V5 결과 코드 (정상 &#x3D; 0000) | [default to undefined]
10
- **data** | **object** | V5 응답 본문 (엔드포인트마다 형태가 다름) | [default to undefined]
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import { LegacyEnvelopeDto } from '@cmarket/partner-sdk';
16
-
17
- const instance: LegacyEnvelopeDto = {
18
- status,
19
- resultCode,
20
- data,
21
- };
22
- ```
23
-
24
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)