@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,126 @@
|
|
|
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 { RequiredError } from "./base";
|
|
24
|
+
export const DUMMY_BASE_URL = 'https://example.com';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @throws {RequiredError}
|
|
28
|
+
*/
|
|
29
|
+
export const assertParamExists = function (functionName, paramName, paramValue) {
|
|
30
|
+
if (paramValue === null || paramValue === undefined) {
|
|
31
|
+
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export const setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
if (configuration && configuration.apiKey) {
|
|
37
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
38
|
+
? yield configuration.apiKey(keyParamName)
|
|
39
|
+
: yield configuration.apiKey;
|
|
40
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
export const setBasicAuthToObject = function (object, configuration) {
|
|
45
|
+
if (configuration && (configuration.username || configuration.password)) {
|
|
46
|
+
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
export const setBearerAuthToObject = function (object, configuration) {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
if (configuration && configuration.accessToken) {
|
|
52
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
53
|
+
? yield configuration.accessToken()
|
|
54
|
+
: yield configuration.accessToken;
|
|
55
|
+
object["Authorization"] = "Bearer " + accessToken;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
export const setOAuthToObject = function (object, name, scopes, configuration) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
if (configuration && configuration.accessToken) {
|
|
62
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
63
|
+
? yield configuration.accessToken(name, scopes)
|
|
64
|
+
: yield configuration.accessToken;
|
|
65
|
+
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
70
|
+
if (parameter == null)
|
|
71
|
+
return;
|
|
72
|
+
if (typeof parameter === "object") {
|
|
73
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
74
|
+
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
if (urlSearchParams.has(key)) {
|
|
82
|
+
urlSearchParams.append(key, parameter);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
urlSearchParams.set(key, parameter);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
export const setSearchParams = function (url, ...objects) {
|
|
90
|
+
const searchParams = new URLSearchParams(url.search);
|
|
91
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
92
|
+
url.search = searchParams.toString();
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
96
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
97
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
98
|
+
*/
|
|
99
|
+
// @ts-ignore
|
|
100
|
+
export const replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
101
|
+
if (value instanceof Set) {
|
|
102
|
+
return Array.from(value);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
109
|
+
const nonString = typeof value !== 'string';
|
|
110
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
111
|
+
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
112
|
+
: nonString;
|
|
113
|
+
return needsSerialization
|
|
114
|
+
? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
|
|
115
|
+
: (value || "");
|
|
116
|
+
};
|
|
117
|
+
export const toPathString = function (url) {
|
|
118
|
+
return url.pathname + url.search + url.hash;
|
|
119
|
+
};
|
|
120
|
+
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
121
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
122
|
+
var _a;
|
|
123
|
+
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url });
|
|
124
|
+
return axios.request(axiosRequestArgs);
|
|
125
|
+
};
|
|
126
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
interface AWSv4Configuration {
|
|
13
|
+
options?: {
|
|
14
|
+
region?: string;
|
|
15
|
+
service?: string;
|
|
16
|
+
};
|
|
17
|
+
credentials?: {
|
|
18
|
+
accessKeyId?: string;
|
|
19
|
+
secretAccessKey?: string;
|
|
20
|
+
sessionToken?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface ConfigurationParameters {
|
|
24
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
25
|
+
username?: string;
|
|
26
|
+
password?: string;
|
|
27
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
28
|
+
awsv4?: AWSv4Configuration;
|
|
29
|
+
basePath?: string;
|
|
30
|
+
serverIndex?: number;
|
|
31
|
+
baseOptions?: any;
|
|
32
|
+
formDataCtor?: new () => any;
|
|
33
|
+
}
|
|
34
|
+
export declare class Configuration {
|
|
35
|
+
/**
|
|
36
|
+
* parameter for apiKey security
|
|
37
|
+
* @param name security name
|
|
38
|
+
*/
|
|
39
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
40
|
+
/**
|
|
41
|
+
* parameter for basic security
|
|
42
|
+
*/
|
|
43
|
+
username?: string;
|
|
44
|
+
/**
|
|
45
|
+
* parameter for basic security
|
|
46
|
+
*/
|
|
47
|
+
password?: string;
|
|
48
|
+
/**
|
|
49
|
+
* parameter for oauth2 security
|
|
50
|
+
* @param name security name
|
|
51
|
+
* @param scopes oauth2 scope
|
|
52
|
+
*/
|
|
53
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
54
|
+
/**
|
|
55
|
+
* parameter for aws4 signature security
|
|
56
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
57
|
+
* @param {string} options.region - aws region
|
|
58
|
+
* @param {string} options.service - name of the service.
|
|
59
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
60
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
61
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
62
|
+
* @memberof Configuration
|
|
63
|
+
*/
|
|
64
|
+
awsv4?: AWSv4Configuration;
|
|
65
|
+
/**
|
|
66
|
+
* override base path
|
|
67
|
+
*/
|
|
68
|
+
basePath?: string;
|
|
69
|
+
/**
|
|
70
|
+
* override server index
|
|
71
|
+
*/
|
|
72
|
+
serverIndex?: number;
|
|
73
|
+
/**
|
|
74
|
+
* base options for axios calls
|
|
75
|
+
*/
|
|
76
|
+
baseOptions?: any;
|
|
77
|
+
/**
|
|
78
|
+
* The FormData constructor that will be used to create multipart form data
|
|
79
|
+
* requests. You can inject this here so that execution environments that
|
|
80
|
+
* do not support the FormData class can still run the generated client.
|
|
81
|
+
*
|
|
82
|
+
* @type {new () => FormData}
|
|
83
|
+
*/
|
|
84
|
+
formDataCtor?: new () => any;
|
|
85
|
+
constructor(param?: ConfigurationParameters);
|
|
86
|
+
/**
|
|
87
|
+
* Check if the given MIME is a JSON MIME.
|
|
88
|
+
* JSON MIME examples:
|
|
89
|
+
* application/json
|
|
90
|
+
* application/json; charset=UTF8
|
|
91
|
+
* APPLICATION/JSON
|
|
92
|
+
* application/vnd.company+json
|
|
93
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
94
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
95
|
+
*/
|
|
96
|
+
isJsonMime(mime: string): boolean;
|
|
97
|
+
}
|
|
98
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/**
|
|
3
|
+
* CMARKET V6 Partner API
|
|
4
|
+
* 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
|
|
5
|
+
*
|
|
6
|
+
* The version of the OpenAPI document: 1.0
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
export class Configuration {
|
|
14
|
+
constructor(param = {}) {
|
|
15
|
+
var _a;
|
|
16
|
+
this.apiKey = param.apiKey;
|
|
17
|
+
this.username = param.username;
|
|
18
|
+
this.password = param.password;
|
|
19
|
+
this.accessToken = param.accessToken;
|
|
20
|
+
this.awsv4 = param.awsv4;
|
|
21
|
+
this.basePath = param.basePath;
|
|
22
|
+
this.serverIndex = param.serverIndex;
|
|
23
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
24
|
+
this.formDataCtor = param.formDataCtor;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if the given MIME is a JSON MIME.
|
|
28
|
+
* JSON MIME examples:
|
|
29
|
+
* application/json
|
|
30
|
+
* application/json; charset=UTF8
|
|
31
|
+
* APPLICATION/JSON
|
|
32
|
+
* application/vnd.company+json
|
|
33
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
34
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
35
|
+
*/
|
|
36
|
+
isJsonMime(mime) {
|
|
37
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
38
|
+
return mime !== null && jsonMime.test(mime);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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";
|
|
13
|
+
export * from "./configuration";
|
|
14
|
+
export * from "./models";
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export * from "./api";
|
|
15
|
+
export * from "./configuration";
|
|
16
|
+
export * from "./models";
|
|
@@ -0,0 +1,25 @@
|
|
|
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 AwardRegisteredResponseDto {
|
|
13
|
+
/**
|
|
14
|
+
* 공고 구매번호.
|
|
15
|
+
*/
|
|
16
|
+
'bidNo': string;
|
|
17
|
+
/**
|
|
18
|
+
* 낙찰자 memberId.
|
|
19
|
+
*/
|
|
20
|
+
'winnerMemberId': string;
|
|
21
|
+
/**
|
|
22
|
+
* 처리 상태.
|
|
23
|
+
*/
|
|
24
|
+
'status': string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
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 BidBondDto {
|
|
13
|
+
/**
|
|
14
|
+
* 입찰보증금 납부 요구 여부.
|
|
15
|
+
*/
|
|
16
|
+
'required': boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 납부 방식 (required=true 일 때 1개 이상 필수). GUARANTEE/CASH/WAIVER
|
|
19
|
+
*/
|
|
20
|
+
'methods'?: Array<BidBondDtoMethodsEnum>;
|
|
21
|
+
}
|
|
22
|
+
export declare const BidBondDtoMethodsEnum: {
|
|
23
|
+
readonly Guarantee: "GUARANTEE";
|
|
24
|
+
readonly Cash: "CASH";
|
|
25
|
+
readonly Waiver: "WAIVER";
|
|
26
|
+
};
|
|
27
|
+
export type BidBondDtoMethodsEnum = typeof BidBondDtoMethodsEnum[keyof typeof BidBondDtoMethodsEnum];
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
export const BidBondDtoMethodsEnum = {
|
|
15
|
+
Guarantee: 'GUARANTEE',
|
|
16
|
+
Cash: 'CASH',
|
|
17
|
+
Waiver: 'WAIVER',
|
|
18
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
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 BidCreatedResponseDto {
|
|
13
|
+
/**
|
|
14
|
+
* 생성된 공고 구매번호.
|
|
15
|
+
*/
|
|
16
|
+
'bidNo': string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
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 BidDocumentDto {
|
|
13
|
+
/**
|
|
14
|
+
* 서류 코드(paperCode).
|
|
15
|
+
*/
|
|
16
|
+
'paperCode': number;
|
|
17
|
+
/**
|
|
18
|
+
* 서류명.
|
|
19
|
+
*/
|
|
20
|
+
'paperName': string;
|
|
21
|
+
/**
|
|
22
|
+
* 자동생성 여부.
|
|
23
|
+
*/
|
|
24
|
+
'isAutoGenerated': boolean;
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
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 BidItemDto {
|
|
13
|
+
/**
|
|
14
|
+
* 품목명.
|
|
15
|
+
*/
|
|
16
|
+
'productName': string;
|
|
17
|
+
/**
|
|
18
|
+
* 품목 코드 (카탈로그 코드 등).
|
|
19
|
+
*/
|
|
20
|
+
'itemCode'?: string;
|
|
21
|
+
/**
|
|
22
|
+
* 규격/사양.
|
|
23
|
+
*/
|
|
24
|
+
'spec'?: string;
|
|
25
|
+
/**
|
|
26
|
+
* 수량.
|
|
27
|
+
*/
|
|
28
|
+
'quantity': number;
|
|
29
|
+
/**
|
|
30
|
+
* 단위.
|
|
31
|
+
*/
|
|
32
|
+
'unit'?: string;
|
|
33
|
+
/**
|
|
34
|
+
* 단가(원).
|
|
35
|
+
*/
|
|
36
|
+
'unitPrice': number;
|
|
37
|
+
/**
|
|
38
|
+
* 품목 예산단가(원). unitPrice 와 별도로 예산 기준 단가가 필요한 경우 사용.
|
|
39
|
+
*/
|
|
40
|
+
'unitBudget'?: number;
|
|
41
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
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 BidManagerDto {
|
|
13
|
+
/**
|
|
14
|
+
* 담당자명.
|
|
15
|
+
*/
|
|
16
|
+
'name': string;
|
|
17
|
+
/**
|
|
18
|
+
* 연락처.
|
|
19
|
+
*/
|
|
20
|
+
'phone': string;
|
|
21
|
+
/**
|
|
22
|
+
* 이메일.
|
|
23
|
+
*/
|
|
24
|
+
'email': string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* 공고 상태 (V5 b2b_buy.status SSOT enum)
|
|
14
|
+
*/
|
|
15
|
+
export declare const BidStatus: {
|
|
16
|
+
readonly A: "A";
|
|
17
|
+
readonly B: "B";
|
|
18
|
+
readonly C: "C";
|
|
19
|
+
readonly D: "D";
|
|
20
|
+
readonly E: "E";
|
|
21
|
+
readonly R: "R";
|
|
22
|
+
};
|
|
23
|
+
export type BidStatus = typeof BidStatus[keyof typeof BidStatus];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* CMARKET V6 Partner API
|
|
5
|
+
* 외부 ERP 연동용 RESTful API. V5 17개 엔드포인트의 V6 후속.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* 공고 상태 (V5 b2b_buy.status SSOT enum)
|
|
16
|
+
*/
|
|
17
|
+
export const BidStatus = {
|
|
18
|
+
A: 'A',
|
|
19
|
+
B: 'B',
|
|
20
|
+
C: 'C',
|
|
21
|
+
D: 'D',
|
|
22
|
+
E: 'E',
|
|
23
|
+
R: 'R',
|
|
24
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { BidStatus } from './bid-status';
|
|
13
|
+
export interface BidSummaryResponseDto {
|
|
14
|
+
/**
|
|
15
|
+
* 공고 식별자 (V5 b2b_buy.buy_idx).
|
|
16
|
+
*/
|
|
17
|
+
'bidId': string;
|
|
18
|
+
/**
|
|
19
|
+
* 공고 제목 (V5 b2b_buy.buy_title).
|
|
20
|
+
*/
|
|
21
|
+
'title': string;
|
|
22
|
+
/**
|
|
23
|
+
* 공고 상태 (V5 b2b_buy.status SSOT enum)
|
|
24
|
+
*/
|
|
25
|
+
'status': BidStatus;
|
|
26
|
+
/**
|
|
27
|
+
* 예산 가격 (원, V5 b2b_buy.buy_price).
|
|
28
|
+
*/
|
|
29
|
+
'budget': number;
|
|
30
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
export {};
|