@cmarket/partner-sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +57 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +95 -0
- package/api/oauth-api.ts +127 -0
- package/api/partner-v1-api.ts +191 -0
- package/api/partner-v1-legacy-api.ts +178 -0
- package/api/partner-v2-api.ts +285 -0
- package/api.ts +21 -0
- package/base.ts +62 -0
- package/common.ts +127 -0
- package/configuration.ts +121 -0
- package/dist/api/oauth-api.d.ts +68 -0
- package/dist/api/oauth-api.js +130 -0
- package/dist/api/partner-v1-api.d.ts +96 -0
- package/dist/api/partner-v1-api.js +191 -0
- package/dist/api/partner-v1-legacy-api.d.ts +91 -0
- package/dist/api/partner-v1-legacy-api.js +181 -0
- package/dist/api/partner-v2-api.d.ts +136 -0
- package/dist/api/partner-v2-api.js +273 -0
- package/dist/api.d.ts +15 -0
- package/dist/api.js +33 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +34 -0
- package/dist/common.js +139 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api/oauth-api.d.ts +68 -0
- package/dist/esm/api/oauth-api.js +123 -0
- package/dist/esm/api/partner-v1-api.d.ts +96 -0
- package/dist/esm/api/partner-v1-api.js +184 -0
- package/dist/esm/api/partner-v1-legacy-api.d.ts +91 -0
- package/dist/esm/api/partner-v1-legacy-api.js +174 -0
- package/dist/esm/api/partner-v2-api.d.ts +136 -0
- package/dist/esm/api/partner-v2-api.js +266 -0
- package/dist/esm/api.d.ts +15 -0
- package/dist/esm/api.js +17 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +34 -0
- package/dist/esm/common.js +126 -0
- package/dist/esm/configuration.d.ts +98 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/models/award-registered-response-dto.d.ts +25 -0
- package/dist/esm/models/award-registered-response-dto.js +14 -0
- package/dist/esm/models/bid-bond-dto.d.ts +27 -0
- package/dist/esm/models/bid-bond-dto.js +18 -0
- package/dist/esm/models/bid-created-response-dto.d.ts +17 -0
- package/dist/esm/models/bid-created-response-dto.js +14 -0
- package/dist/esm/models/bid-document-dto.d.ts +25 -0
- package/dist/esm/models/bid-document-dto.js +14 -0
- package/dist/esm/models/bid-item-dto.d.ts +41 -0
- package/dist/esm/models/bid-item-dto.js +14 -0
- package/dist/esm/models/bid-manager-dto.d.ts +25 -0
- package/dist/esm/models/bid-manager-dto.js +14 -0
- package/dist/esm/models/bid-status.d.ts +23 -0
- package/dist/esm/models/bid-status.js +24 -0
- package/dist/esm/models/bid-summary-response-dto.d.ts +30 -0
- package/dist/esm/models/bid-summary-response-dto.js +14 -0
- package/dist/esm/models/create-bid-request-dto.d.ts +278 -0
- package/dist/esm/models/create-bid-request-dto.js +101 -0
- package/dist/esm/models/file-uploaded-response-dto.d.ts +17 -0
- package/dist/esm/models/file-uploaded-response-dto.js +14 -0
- package/dist/esm/models/health-response-dto.d.ts +21 -0
- package/dist/esm/models/health-response-dto.js +14 -0
- package/dist/esm/models/hierarchical-region-dto.d.ts +21 -0
- package/dist/esm/models/hierarchical-region-dto.js +14 -0
- package/dist/esm/models/index.d.ts +18 -0
- package/dist/esm/models/index.js +18 -0
- package/dist/esm/models/legacy-envelope-dto.d.ts +25 -0
- package/dist/esm/models/legacy-envelope-dto.js +14 -0
- package/dist/esm/models/preconditions-dto.d.ts +88 -0
- package/dist/esm/models/preconditions-dto.js +44 -0
- package/dist/esm/models/register-award-request-dto.d.ts +25 -0
- package/dist/esm/models/register-award-request-dto.js +14 -0
- package/dist/esm/models/token-request-dto.d.ts +33 -0
- package/dist/esm/models/token-request-dto.js +16 -0
- package/dist/esm/models/token-response-dto.d.ts +29 -0
- package/dist/esm/models/token-response-dto.js +14 -0
- package/dist/esm/models/upload-file-request-dto.d.ts +25 -0
- package/dist/esm/models/upload-file-request-dto.js +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +32 -0
- package/dist/models/award-registered-response-dto.d.ts +25 -0
- package/dist/models/award-registered-response-dto.js +15 -0
- package/dist/models/bid-bond-dto.d.ts +27 -0
- package/dist/models/bid-bond-dto.js +21 -0
- package/dist/models/bid-created-response-dto.d.ts +17 -0
- package/dist/models/bid-created-response-dto.js +15 -0
- package/dist/models/bid-document-dto.d.ts +25 -0
- package/dist/models/bid-document-dto.js +15 -0
- package/dist/models/bid-item-dto.d.ts +41 -0
- package/dist/models/bid-item-dto.js +15 -0
- package/dist/models/bid-manager-dto.d.ts +25 -0
- package/dist/models/bid-manager-dto.js +15 -0
- package/dist/models/bid-status.d.ts +23 -0
- package/dist/models/bid-status.js +27 -0
- package/dist/models/bid-summary-response-dto.d.ts +30 -0
- package/dist/models/bid-summary-response-dto.js +15 -0
- package/dist/models/create-bid-request-dto.d.ts +278 -0
- package/dist/models/create-bid-request-dto.js +104 -0
- package/dist/models/file-uploaded-response-dto.d.ts +17 -0
- package/dist/models/file-uploaded-response-dto.js +15 -0
- package/dist/models/health-response-dto.d.ts +21 -0
- package/dist/models/health-response-dto.js +15 -0
- package/dist/models/hierarchical-region-dto.d.ts +21 -0
- package/dist/models/hierarchical-region-dto.js +15 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +34 -0
- package/dist/models/legacy-envelope-dto.d.ts +25 -0
- package/dist/models/legacy-envelope-dto.js +15 -0
- package/dist/models/preconditions-dto.d.ts +88 -0
- package/dist/models/preconditions-dto.js +47 -0
- package/dist/models/register-award-request-dto.d.ts +25 -0
- package/dist/models/register-award-request-dto.js +15 -0
- package/dist/models/token-request-dto.d.ts +33 -0
- package/dist/models/token-request-dto.js +19 -0
- package/dist/models/token-response-dto.d.ts +29 -0
- package/dist/models/token-response-dto.js +15 -0
- package/dist/models/upload-file-request-dto.d.ts +25 -0
- package/dist/models/upload-file-request-dto.js +15 -0
- package/docs/AwardRegisteredResponseDto.md +24 -0
- package/docs/BidBondDto.md +22 -0
- package/docs/BidCreatedResponseDto.md +20 -0
- package/docs/BidDocumentDto.md +24 -0
- package/docs/BidItemDto.md +32 -0
- package/docs/BidManagerDto.md +24 -0
- package/docs/BidStatus.md +19 -0
- package/docs/BidSummaryResponseDto.md +26 -0
- package/docs/CreateBidRequestDto.md +96 -0
- package/docs/FileUploadedResponseDto.md +20 -0
- package/docs/HealthResponseDto.md +22 -0
- package/docs/HierarchicalRegionDto.md +22 -0
- package/docs/LegacyEnvelopeDto.md +24 -0
- package/docs/OauthApi.md +61 -0
- package/docs/PartnerV1Api.md +105 -0
- package/docs/PartnerV1LegacyApi.md +97 -0
- package/docs/PartnerV2Api.md +166 -0
- package/docs/PreconditionsDto.md +38 -0
- package/docs/RegisterAwardRequestDto.md +24 -0
- package/docs/TokenRequestDto.md +26 -0
- package/docs/TokenResponseDto.md +26 -0
- package/docs/UploadFileRequestDto.md +24 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/models/award-registered-response-dto.ts +31 -0
- package/models/bid-bond-dto.ts +36 -0
- package/models/bid-created-response-dto.ts +23 -0
- package/models/bid-document-dto.ts +31 -0
- package/models/bid-item-dto.ts +47 -0
- package/models/bid-manager-dto.ts +31 -0
- package/models/bid-status.ts +33 -0
- package/models/bid-summary-response-dto.ts +40 -0
- package/models/create-bid-request-dto.ts +312 -0
- package/models/file-uploaded-response-dto.ts +23 -0
- package/models/health-response-dto.ts +27 -0
- package/models/hierarchical-region-dto.ts +27 -0
- package/models/index.ts +18 -0
- package/models/legacy-envelope-dto.ts +31 -0
- package/models/preconditions-dto.ts +101 -0
- package/models/register-award-request-dto.ts +31 -0
- package/models/token-request-dto.ts +42 -0
- package/models/token-response-dto.ts +35 -0
- package/models/upload-file-request-dto.ts +31 -0
- package/package.json +33 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* CMARKET V6 Partner API
|
|
6
|
+
* 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.PartnerV1LegacyApi = exports.PartnerV1LegacyApiFactory = exports.PartnerV1LegacyApiFp = exports.PartnerV1LegacyApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("../common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("../base");
|
|
32
|
+
/**
|
|
33
|
+
* PartnerV1LegacyApi - axios parameter creator
|
|
34
|
+
*/
|
|
35
|
+
const PartnerV1LegacyApiAxiosParamCreator = function (configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
* V5 ApiController#check 응답 envelope 그대로. Sunset 헤더 부착.
|
|
39
|
+
* @summary V5 /check 호환 헬스체크 (deprecated)
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
legacyControllerCheckGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
44
|
+
const localVarPath = `/v1-legacy/check`;
|
|
45
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
47
|
+
let baseOptions;
|
|
48
|
+
if (configuration) {
|
|
49
|
+
baseOptions = configuration.baseOptions;
|
|
50
|
+
}
|
|
51
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
52
|
+
const localVarHeaderParameter = {};
|
|
53
|
+
const localVarQueryParameter = {};
|
|
54
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
55
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
56
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
58
|
+
return {
|
|
59
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
60
|
+
options: localVarRequestOptions,
|
|
61
|
+
};
|
|
62
|
+
}),
|
|
63
|
+
/**
|
|
64
|
+
* V5 는 GET·POST 모두 받음. 동일 응답.
|
|
65
|
+
* @summary V5 /check 호환 헬스체크 — POST (deprecated)
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
*/
|
|
69
|
+
legacyControllerCheckPost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
70
|
+
const localVarPath = `/v1-legacy/check`;
|
|
71
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
72
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
73
|
+
let baseOptions;
|
|
74
|
+
if (configuration) {
|
|
75
|
+
baseOptions = configuration.baseOptions;
|
|
76
|
+
}
|
|
77
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
78
|
+
const localVarHeaderParameter = {};
|
|
79
|
+
const localVarQueryParameter = {};
|
|
80
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
81
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
82
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
83
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
84
|
+
return {
|
|
85
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
86
|
+
options: localVarRequestOptions,
|
|
87
|
+
};
|
|
88
|
+
}),
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
exports.PartnerV1LegacyApiAxiosParamCreator = PartnerV1LegacyApiAxiosParamCreator;
|
|
92
|
+
/**
|
|
93
|
+
* PartnerV1LegacyApi - functional programming interface
|
|
94
|
+
*/
|
|
95
|
+
const PartnerV1LegacyApiFp = function (configuration) {
|
|
96
|
+
const localVarAxiosParamCreator = (0, exports.PartnerV1LegacyApiAxiosParamCreator)(configuration);
|
|
97
|
+
return {
|
|
98
|
+
/**
|
|
99
|
+
* V5 ApiController#check 응답 envelope 그대로. Sunset 헤더 부착.
|
|
100
|
+
* @summary V5 /check 호환 헬스체크 (deprecated)
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
legacyControllerCheckGet(options) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
var _a, _b, _c;
|
|
107
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.legacyControllerCheckGet(options);
|
|
108
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
109
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV1LegacyApi.legacyControllerCheckGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
110
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
111
|
+
});
|
|
112
|
+
},
|
|
113
|
+
/**
|
|
114
|
+
* V5 는 GET·POST 모두 받음. 동일 응답.
|
|
115
|
+
* @summary V5 /check 호환 헬스체크 — POST (deprecated)
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
legacyControllerCheckPost(options) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
var _a, _b, _c;
|
|
122
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.legacyControllerCheckPost(options);
|
|
123
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
124
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV1LegacyApi.legacyControllerCheckPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
125
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
126
|
+
});
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
exports.PartnerV1LegacyApiFp = PartnerV1LegacyApiFp;
|
|
131
|
+
/**
|
|
132
|
+
* PartnerV1LegacyApi - factory interface
|
|
133
|
+
*/
|
|
134
|
+
const PartnerV1LegacyApiFactory = function (configuration, basePath, axios) {
|
|
135
|
+
const localVarFp = (0, exports.PartnerV1LegacyApiFp)(configuration);
|
|
136
|
+
return {
|
|
137
|
+
/**
|
|
138
|
+
* V5 ApiController#check 응답 envelope 그대로. Sunset 헤더 부착.
|
|
139
|
+
* @summary V5 /check 호환 헬스체크 (deprecated)
|
|
140
|
+
* @param {*} [options] Override http request option.
|
|
141
|
+
* @throws {RequiredError}
|
|
142
|
+
*/
|
|
143
|
+
legacyControllerCheckGet(options) {
|
|
144
|
+
return localVarFp.legacyControllerCheckGet(options).then((request) => request(axios, basePath));
|
|
145
|
+
},
|
|
146
|
+
/**
|
|
147
|
+
* V5 는 GET·POST 모두 받음. 동일 응답.
|
|
148
|
+
* @summary V5 /check 호환 헬스체크 — POST (deprecated)
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
legacyControllerCheckPost(options) {
|
|
153
|
+
return localVarFp.legacyControllerCheckPost(options).then((request) => request(axios, basePath));
|
|
154
|
+
},
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
exports.PartnerV1LegacyApiFactory = PartnerV1LegacyApiFactory;
|
|
158
|
+
/**
|
|
159
|
+
* PartnerV1LegacyApi - object-oriented interface
|
|
160
|
+
*/
|
|
161
|
+
class PartnerV1LegacyApi extends base_1.BaseAPI {
|
|
162
|
+
/**
|
|
163
|
+
* V5 ApiController#check 응답 envelope 그대로. Sunset 헤더 부착.
|
|
164
|
+
* @summary V5 /check 호환 헬스체크 (deprecated)
|
|
165
|
+
* @param {*} [options] Override http request option.
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
*/
|
|
168
|
+
legacyControllerCheckGet(options) {
|
|
169
|
+
return (0, exports.PartnerV1LegacyApiFp)(this.configuration).legacyControllerCheckGet(options).then((request) => request(this.axios, this.basePath));
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* V5 는 GET·POST 모두 받음. 동일 응답.
|
|
173
|
+
* @summary V5 /check 호환 헬스체크 — POST (deprecated)
|
|
174
|
+
* @param {*} [options] Override http request option.
|
|
175
|
+
* @throws {RequiredError}
|
|
176
|
+
*/
|
|
177
|
+
legacyControllerCheckPost(options) {
|
|
178
|
+
return (0, exports.PartnerV1LegacyApiFp)(this.configuration).legacyControllerCheckPost(options).then((request) => request(this.axios, this.basePath));
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
exports.PartnerV1LegacyApi = PartnerV1LegacyApi;
|
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* CMARKET V6 Partner API
|
|
6
|
+
* 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.PartnerV2Api = exports.PartnerV2ApiFactory = exports.PartnerV2ApiFp = exports.PartnerV2ApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("../common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("../base");
|
|
32
|
+
/**
|
|
33
|
+
* PartnerV2Api - axios parameter creator
|
|
34
|
+
*/
|
|
35
|
+
const PartnerV2ApiAxiosParamCreator = function (configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
* V5 /scsbidSend 후속. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
39
|
+
* @summary 낙찰 결과 전송
|
|
40
|
+
* @param {RegisterAwardRequestDto} registerAwardRequestDto
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
registerAward: (registerAwardRequestDto_1, ...args_1) => __awaiter(this, [registerAwardRequestDto_1, ...args_1], void 0, function* (registerAwardRequestDto, options = {}) {
|
|
45
|
+
// verify required parameter 'registerAwardRequestDto' is not null or undefined
|
|
46
|
+
(0, common_1.assertParamExists)('registerAward', 'registerAwardRequestDto', registerAwardRequestDto);
|
|
47
|
+
const localVarPath = `/v2/awards`;
|
|
48
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
50
|
+
let baseOptions;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
}
|
|
54
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
55
|
+
const localVarHeaderParameter = {};
|
|
56
|
+
const localVarQueryParameter = {};
|
|
57
|
+
// authentication partner-oauth2 required
|
|
58
|
+
// http bearer authentication required
|
|
59
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
60
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
61
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
62
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
63
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
64
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
65
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(registerAwardRequestDto, localVarRequestOptions, configuration);
|
|
66
|
+
return {
|
|
67
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
68
|
+
options: localVarRequestOptions,
|
|
69
|
+
};
|
|
70
|
+
}),
|
|
71
|
+
/**
|
|
72
|
+
* V5 /bidsend 후속. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
|
|
73
|
+
* @summary 입찰 정보 전송(등록)
|
|
74
|
+
* @param {CreateBidRequestDto} createBidRequestDto
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
registerBid: (createBidRequestDto_1, ...args_1) => __awaiter(this, [createBidRequestDto_1, ...args_1], void 0, function* (createBidRequestDto, options = {}) {
|
|
79
|
+
// verify required parameter 'createBidRequestDto' is not null or undefined
|
|
80
|
+
(0, common_1.assertParamExists)('registerBid', 'createBidRequestDto', createBidRequestDto);
|
|
81
|
+
const localVarPath = `/v2/bids`;
|
|
82
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
83
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
84
|
+
let baseOptions;
|
|
85
|
+
if (configuration) {
|
|
86
|
+
baseOptions = configuration.baseOptions;
|
|
87
|
+
}
|
|
88
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
89
|
+
const localVarHeaderParameter = {};
|
|
90
|
+
const localVarQueryParameter = {};
|
|
91
|
+
// authentication partner-oauth2 required
|
|
92
|
+
// http bearer authentication required
|
|
93
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
94
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
95
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
96
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
97
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
98
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
99
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBidRequestDto, localVarRequestOptions, configuration);
|
|
100
|
+
return {
|
|
101
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
102
|
+
options: localVarRequestOptions,
|
|
103
|
+
};
|
|
104
|
+
}),
|
|
105
|
+
/**
|
|
106
|
+
* 스코프 `files:write` 필수. base64 또는 url 중 하나를 제출한다.
|
|
107
|
+
* @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
|
|
108
|
+
* @param {UploadFileRequestDto} uploadFileRequestDto
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
uploadFile: (uploadFileRequestDto_1, ...args_1) => __awaiter(this, [uploadFileRequestDto_1, ...args_1], void 0, function* (uploadFileRequestDto, options = {}) {
|
|
113
|
+
// verify required parameter 'uploadFileRequestDto' is not null or undefined
|
|
114
|
+
(0, common_1.assertParamExists)('uploadFile', 'uploadFileRequestDto', uploadFileRequestDto);
|
|
115
|
+
const localVarPath = `/v2/files`;
|
|
116
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
117
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
|
+
let baseOptions;
|
|
119
|
+
if (configuration) {
|
|
120
|
+
baseOptions = configuration.baseOptions;
|
|
121
|
+
}
|
|
122
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
123
|
+
const localVarHeaderParameter = {};
|
|
124
|
+
const localVarQueryParameter = {};
|
|
125
|
+
// authentication partner-oauth2 required
|
|
126
|
+
// http bearer authentication required
|
|
127
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
128
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
129
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
130
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
131
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
132
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
133
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(uploadFileRequestDto, localVarRequestOptions, configuration);
|
|
134
|
+
return {
|
|
135
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
136
|
+
options: localVarRequestOptions,
|
|
137
|
+
};
|
|
138
|
+
}),
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
exports.PartnerV2ApiAxiosParamCreator = PartnerV2ApiAxiosParamCreator;
|
|
142
|
+
/**
|
|
143
|
+
* PartnerV2Api - functional programming interface
|
|
144
|
+
*/
|
|
145
|
+
const PartnerV2ApiFp = function (configuration) {
|
|
146
|
+
const localVarAxiosParamCreator = (0, exports.PartnerV2ApiAxiosParamCreator)(configuration);
|
|
147
|
+
return {
|
|
148
|
+
/**
|
|
149
|
+
* V5 /scsbidSend 후속. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
150
|
+
* @summary 낙찰 결과 전송
|
|
151
|
+
* @param {RegisterAwardRequestDto} registerAwardRequestDto
|
|
152
|
+
* @param {*} [options] Override http request option.
|
|
153
|
+
* @throws {RequiredError}
|
|
154
|
+
*/
|
|
155
|
+
registerAward(registerAwardRequestDto, options) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
var _a, _b, _c;
|
|
158
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registerAward(registerAwardRequestDto, options);
|
|
159
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
160
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV2Api.registerAward']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
161
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
162
|
+
});
|
|
163
|
+
},
|
|
164
|
+
/**
|
|
165
|
+
* V5 /bidsend 후속. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
|
|
166
|
+
* @summary 입찰 정보 전송(등록)
|
|
167
|
+
* @param {CreateBidRequestDto} createBidRequestDto
|
|
168
|
+
* @param {*} [options] Override http request option.
|
|
169
|
+
* @throws {RequiredError}
|
|
170
|
+
*/
|
|
171
|
+
registerBid(createBidRequestDto, options) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
173
|
+
var _a, _b, _c;
|
|
174
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registerBid(createBidRequestDto, options);
|
|
175
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
176
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV2Api.registerBid']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
177
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
178
|
+
});
|
|
179
|
+
},
|
|
180
|
+
/**
|
|
181
|
+
* 스코프 `files:write` 필수. base64 또는 url 중 하나를 제출한다.
|
|
182
|
+
* @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
|
|
183
|
+
* @param {UploadFileRequestDto} uploadFileRequestDto
|
|
184
|
+
* @param {*} [options] Override http request option.
|
|
185
|
+
* @throws {RequiredError}
|
|
186
|
+
*/
|
|
187
|
+
uploadFile(uploadFileRequestDto, options) {
|
|
188
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
var _a, _b, _c;
|
|
190
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadFile(uploadFileRequestDto, options);
|
|
191
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
192
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV2Api.uploadFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
193
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
194
|
+
});
|
|
195
|
+
},
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
exports.PartnerV2ApiFp = PartnerV2ApiFp;
|
|
199
|
+
/**
|
|
200
|
+
* PartnerV2Api - factory interface
|
|
201
|
+
*/
|
|
202
|
+
const PartnerV2ApiFactory = function (configuration, basePath, axios) {
|
|
203
|
+
const localVarFp = (0, exports.PartnerV2ApiFp)(configuration);
|
|
204
|
+
return {
|
|
205
|
+
/**
|
|
206
|
+
* V5 /scsbidSend 후속. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
207
|
+
* @summary 낙찰 결과 전송
|
|
208
|
+
* @param {RegisterAwardRequestDto} registerAwardRequestDto
|
|
209
|
+
* @param {*} [options] Override http request option.
|
|
210
|
+
* @throws {RequiredError}
|
|
211
|
+
*/
|
|
212
|
+
registerAward(registerAwardRequestDto, options) {
|
|
213
|
+
return localVarFp.registerAward(registerAwardRequestDto, options).then((request) => request(axios, basePath));
|
|
214
|
+
},
|
|
215
|
+
/**
|
|
216
|
+
* V5 /bidsend 후속. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
|
|
217
|
+
* @summary 입찰 정보 전송(등록)
|
|
218
|
+
* @param {CreateBidRequestDto} createBidRequestDto
|
|
219
|
+
* @param {*} [options] Override http request option.
|
|
220
|
+
* @throws {RequiredError}
|
|
221
|
+
*/
|
|
222
|
+
registerBid(createBidRequestDto, options) {
|
|
223
|
+
return localVarFp.registerBid(createBidRequestDto, options).then((request) => request(axios, basePath));
|
|
224
|
+
},
|
|
225
|
+
/**
|
|
226
|
+
* 스코프 `files:write` 필수. base64 또는 url 중 하나를 제출한다.
|
|
227
|
+
* @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
|
|
228
|
+
* @param {UploadFileRequestDto} uploadFileRequestDto
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
*/
|
|
232
|
+
uploadFile(uploadFileRequestDto, options) {
|
|
233
|
+
return localVarFp.uploadFile(uploadFileRequestDto, options).then((request) => request(axios, basePath));
|
|
234
|
+
},
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
exports.PartnerV2ApiFactory = PartnerV2ApiFactory;
|
|
238
|
+
/**
|
|
239
|
+
* PartnerV2Api - object-oriented interface
|
|
240
|
+
*/
|
|
241
|
+
class PartnerV2Api extends base_1.BaseAPI {
|
|
242
|
+
/**
|
|
243
|
+
* V5 /scsbidSend 후속. 스코프 `awards:write` + `Idempotency-Key` 헤더 필수.
|
|
244
|
+
* @summary 낙찰 결과 전송
|
|
245
|
+
* @param {RegisterAwardRequestDto} registerAwardRequestDto
|
|
246
|
+
* @param {*} [options] Override http request option.
|
|
247
|
+
* @throws {RequiredError}
|
|
248
|
+
*/
|
|
249
|
+
registerAward(registerAwardRequestDto, options) {
|
|
250
|
+
return (0, exports.PartnerV2ApiFp)(this.configuration).registerAward(registerAwardRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* V5 /bidsend 후속. 스코프 `bids:write` + `Idempotency-Key` 헤더 필수.
|
|
254
|
+
* @summary 입찰 정보 전송(등록)
|
|
255
|
+
* @param {CreateBidRequestDto} createBidRequestDto
|
|
256
|
+
* @param {*} [options] Override http request option.
|
|
257
|
+
* @throws {RequiredError}
|
|
258
|
+
*/
|
|
259
|
+
registerBid(createBidRequestDto, options) {
|
|
260
|
+
return (0, exports.PartnerV2ApiFp)(this.configuration).registerBid(createBidRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* 스코프 `files:write` 필수. base64 또는 url 중 하나를 제출한다.
|
|
264
|
+
* @summary 입찰 첨부파일 업로드(base64 또는 url) → fileKey
|
|
265
|
+
* @param {UploadFileRequestDto} uploadFileRequestDto
|
|
266
|
+
* @param {*} [options] Override http request option.
|
|
267
|
+
* @throws {RequiredError}
|
|
268
|
+
*/
|
|
269
|
+
uploadFile(uploadFileRequestDto, options) {
|
|
270
|
+
return (0, exports.PartnerV2ApiFp)(this.configuration).uploadFile(uploadFileRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
exports.PartnerV2Api = PartnerV2Api;
|
package/dist/api.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
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 * from './api/oauth-api';
|
|
13
|
+
export * from './api/partner-v1-api';
|
|
14
|
+
export * from './api/partner-v1-legacy-api';
|
|
15
|
+
export * from './api/partner-v2-api';
|
package/dist/api.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* CMARKET V6 Partner API
|
|
6
|
+
* 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
27
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
__exportStar(require("./api/oauth-api"), exports);
|
|
31
|
+
__exportStar(require("./api/partner-v1-api"), exports);
|
|
32
|
+
__exportStar(require("./api/partner-v1-legacy-api"), exports);
|
|
33
|
+
__exportStar(require("./api/partner-v2-api"), exports);
|