@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,57 @@
|
|
|
1
|
+
.gitignore
|
|
2
|
+
.npmignore
|
|
3
|
+
README.md
|
|
4
|
+
api.ts
|
|
5
|
+
api/oauth-api.ts
|
|
6
|
+
api/partner-v1-api.ts
|
|
7
|
+
api/partner-v1-legacy-api.ts
|
|
8
|
+
api/partner-v2-api.ts
|
|
9
|
+
base.ts
|
|
10
|
+
common.ts
|
|
11
|
+
configuration.ts
|
|
12
|
+
docs/AwardRegisteredResponseDto.md
|
|
13
|
+
docs/BidBondDto.md
|
|
14
|
+
docs/BidCreatedResponseDto.md
|
|
15
|
+
docs/BidDocumentDto.md
|
|
16
|
+
docs/BidItemDto.md
|
|
17
|
+
docs/BidManagerDto.md
|
|
18
|
+
docs/BidStatus.md
|
|
19
|
+
docs/BidSummaryResponseDto.md
|
|
20
|
+
docs/CreateBidRequestDto.md
|
|
21
|
+
docs/FileUploadedResponseDto.md
|
|
22
|
+
docs/HealthResponseDto.md
|
|
23
|
+
docs/HierarchicalRegionDto.md
|
|
24
|
+
docs/LegacyEnvelopeDto.md
|
|
25
|
+
docs/OauthApi.md
|
|
26
|
+
docs/PartnerV1Api.md
|
|
27
|
+
docs/PartnerV1LegacyApi.md
|
|
28
|
+
docs/PartnerV2Api.md
|
|
29
|
+
docs/PreconditionsDto.md
|
|
30
|
+
docs/RegisterAwardRequestDto.md
|
|
31
|
+
docs/TokenRequestDto.md
|
|
32
|
+
docs/TokenResponseDto.md
|
|
33
|
+
docs/UploadFileRequestDto.md
|
|
34
|
+
git_push.sh
|
|
35
|
+
index.ts
|
|
36
|
+
models/award-registered-response-dto.ts
|
|
37
|
+
models/bid-bond-dto.ts
|
|
38
|
+
models/bid-created-response-dto.ts
|
|
39
|
+
models/bid-document-dto.ts
|
|
40
|
+
models/bid-item-dto.ts
|
|
41
|
+
models/bid-manager-dto.ts
|
|
42
|
+
models/bid-status.ts
|
|
43
|
+
models/bid-summary-response-dto.ts
|
|
44
|
+
models/create-bid-request-dto.ts
|
|
45
|
+
models/file-uploaded-response-dto.ts
|
|
46
|
+
models/health-response-dto.ts
|
|
47
|
+
models/hierarchical-region-dto.ts
|
|
48
|
+
models/index.ts
|
|
49
|
+
models/legacy-envelope-dto.ts
|
|
50
|
+
models/preconditions-dto.ts
|
|
51
|
+
models/register-award-request-dto.ts
|
|
52
|
+
models/token-request-dto.ts
|
|
53
|
+
models/token-response-dto.ts
|
|
54
|
+
models/upload-file-request-dto.ts
|
|
55
|
+
package.json
|
|
56
|
+
tsconfig.esm.json
|
|
57
|
+
tsconfig.json
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7.23.0
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# OpenAPI Generator Ignore
|
|
2
|
+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
|
3
|
+
|
|
4
|
+
# Use this file to prevent files from being overwritten by the generator.
|
|
5
|
+
# The patterns follow closely to .gitignore or .dockerignore.
|
|
6
|
+
|
|
7
|
+
# As an example, the C# client generator defines ApiClient.cs.
|
|
8
|
+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
|
9
|
+
#ApiClient.cs
|
|
10
|
+
|
|
11
|
+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
12
|
+
#foo/*/qux
|
|
13
|
+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
14
|
+
|
|
15
|
+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
16
|
+
#foo/**/qux
|
|
17
|
+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
18
|
+
|
|
19
|
+
# You can also negate patterns with an exclamation (!).
|
|
20
|
+
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
21
|
+
#docs/*.md
|
|
22
|
+
# Then explicitly reverse the ignore rule for a single file:
|
|
23
|
+
#!docs/README.md
|
package/README.md
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
## @cmarket/partner-sdk@0.1.0
|
|
2
|
+
|
|
3
|
+
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
|
+
|
|
5
|
+
Environment
|
|
6
|
+
* Node.js
|
|
7
|
+
* Webpack
|
|
8
|
+
* Browserify
|
|
9
|
+
|
|
10
|
+
Language level
|
|
11
|
+
* ES5 - you must have a Promises/A+ library installed
|
|
12
|
+
* ES6
|
|
13
|
+
|
|
14
|
+
Module system
|
|
15
|
+
* CommonJS
|
|
16
|
+
* ES6 module system
|
|
17
|
+
|
|
18
|
+
It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
|
|
19
|
+
|
|
20
|
+
### Building
|
|
21
|
+
|
|
22
|
+
To build and compile the typescript sources to javascript use:
|
|
23
|
+
```
|
|
24
|
+
npm install
|
|
25
|
+
npm run build
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Publishing
|
|
29
|
+
|
|
30
|
+
First build the package then run `npm publish`
|
|
31
|
+
|
|
32
|
+
### Consuming
|
|
33
|
+
|
|
34
|
+
navigate to the folder of your consuming project and run one of the following commands.
|
|
35
|
+
|
|
36
|
+
_published:_
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
npm install @cmarket/partner-sdk@0.1.0 --save
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
_unPublished (not recommended):_
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Documentation for API Endpoints
|
|
49
|
+
|
|
50
|
+
All URIs are relative to *http://localhost*
|
|
51
|
+
|
|
52
|
+
Class | Method | HTTP request | Description
|
|
53
|
+
------------ | ------------- | ------------- | -------------
|
|
54
|
+
*OauthApi* | [**token**](docs/OauthApi.md#token) | **POST** /v1/oauth/token | OAuth 2.0 access token 발급 (client_credentials)
|
|
55
|
+
*PartnerV1Api* | [**bidsControllerFindOne**](docs/PartnerV1Api.md#bidscontrollerfindone) | **GET** /v1/bids/{bidId} | 공고 단건 조회
|
|
56
|
+
*PartnerV1Api* | [**healthControllerCheck**](docs/PartnerV1Api.md#healthcontrollercheck) | **GET** /v1/health | Partner API 헬스체크 (V5 /check 후속)
|
|
57
|
+
*PartnerV1LegacyApi* | [**legacyControllerCheckGet**](docs/PartnerV1LegacyApi.md#legacycontrollercheckget) | **GET** /v1-legacy/check | V5 /check 호환 헬스체크 (deprecated)
|
|
58
|
+
*PartnerV1LegacyApi* | [**legacyControllerCheckPost**](docs/PartnerV1LegacyApi.md#legacycontrollercheckpost) | **POST** /v1-legacy/check | V5 /check 호환 헬스체크 — POST (deprecated)
|
|
59
|
+
*PartnerV2Api* | [**registerAward**](docs/PartnerV2Api.md#registeraward) | **POST** /v2/awards | 낙찰 결과 전송
|
|
60
|
+
*PartnerV2Api* | [**registerBid**](docs/PartnerV2Api.md#registerbid) | **POST** /v2/bids | 입찰 정보 전송(등록)
|
|
61
|
+
*PartnerV2Api* | [**uploadFile**](docs/PartnerV2Api.md#uploadfile) | **POST** /v2/files | 입찰 첨부파일 업로드(base64 또는 url) → fileKey
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Documentation For Models
|
|
65
|
+
|
|
66
|
+
- [AwardRegisteredResponseDto](docs/AwardRegisteredResponseDto.md)
|
|
67
|
+
- [BidBondDto](docs/BidBondDto.md)
|
|
68
|
+
- [BidCreatedResponseDto](docs/BidCreatedResponseDto.md)
|
|
69
|
+
- [BidDocumentDto](docs/BidDocumentDto.md)
|
|
70
|
+
- [BidItemDto](docs/BidItemDto.md)
|
|
71
|
+
- [BidManagerDto](docs/BidManagerDto.md)
|
|
72
|
+
- [BidStatus](docs/BidStatus.md)
|
|
73
|
+
- [BidSummaryResponseDto](docs/BidSummaryResponseDto.md)
|
|
74
|
+
- [CreateBidRequestDto](docs/CreateBidRequestDto.md)
|
|
75
|
+
- [FileUploadedResponseDto](docs/FileUploadedResponseDto.md)
|
|
76
|
+
- [HealthResponseDto](docs/HealthResponseDto.md)
|
|
77
|
+
- [HierarchicalRegionDto](docs/HierarchicalRegionDto.md)
|
|
78
|
+
- [LegacyEnvelopeDto](docs/LegacyEnvelopeDto.md)
|
|
79
|
+
- [PreconditionsDto](docs/PreconditionsDto.md)
|
|
80
|
+
- [RegisterAwardRequestDto](docs/RegisterAwardRequestDto.md)
|
|
81
|
+
- [TokenRequestDto](docs/TokenRequestDto.md)
|
|
82
|
+
- [TokenResponseDto](docs/TokenResponseDto.md)
|
|
83
|
+
- [UploadFileRequestDto](docs/UploadFileRequestDto.md)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
<a id="documentation-for-authorization"></a>
|
|
87
|
+
## Documentation For Authorization
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
Authentication schemes defined for the API:
|
|
91
|
+
<a id="partner-oauth2"></a>
|
|
92
|
+
### partner-oauth2
|
|
93
|
+
|
|
94
|
+
- **Type**: Bearer authentication (JWT)
|
|
95
|
+
|
package/api/oauth-api.ts
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
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
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { TokenRequestDto } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { TokenResponseDto } from '../models';
|
|
28
|
+
/**
|
|
29
|
+
* OauthApi - axios parameter creator
|
|
30
|
+
*/
|
|
31
|
+
export const OauthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
* 파트너 ERP 가 client_id/secret 로 단명 JWT access token 을 발급받습니다 (TTL 15분). 이후 모든 보호 endpoint 는 Authorization: Bearer <token> 헤더로 호출합니다.
|
|
35
|
+
* @summary OAuth 2.0 access token 발급 (client_credentials)
|
|
36
|
+
* @param {TokenRequestDto} tokenRequestDto
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
token: async (tokenRequestDto: TokenRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41
|
+
// verify required parameter 'tokenRequestDto' is not null or undefined
|
|
42
|
+
assertParamExists('token', 'tokenRequestDto', tokenRequestDto)
|
|
43
|
+
const localVarPath = `/v1/oauth/token`;
|
|
44
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46
|
+
let baseOptions;
|
|
47
|
+
if (configuration) {
|
|
48
|
+
baseOptions = configuration.baseOptions;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
52
|
+
const localVarHeaderParameter = {} as any;
|
|
53
|
+
const localVarQueryParameter = {} as any;
|
|
54
|
+
|
|
55
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
56
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
57
|
+
|
|
58
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
59
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
60
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
61
|
+
localVarRequestOptions.data = serializeDataIfNeeded(tokenRequestDto, localVarRequestOptions, configuration)
|
|
62
|
+
|
|
63
|
+
return {
|
|
64
|
+
url: toPathString(localVarUrlObj),
|
|
65
|
+
options: localVarRequestOptions,
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* OauthApi - functional programming interface
|
|
73
|
+
*/
|
|
74
|
+
export const OauthApiFp = function(configuration?: Configuration) {
|
|
75
|
+
const localVarAxiosParamCreator = OauthApiAxiosParamCreator(configuration)
|
|
76
|
+
return {
|
|
77
|
+
/**
|
|
78
|
+
* 파트너 ERP 가 client_id/secret 로 단명 JWT access token 을 발급받습니다 (TTL 15분). 이후 모든 보호 endpoint 는 Authorization: Bearer <token> 헤더로 호출합니다.
|
|
79
|
+
* @summary OAuth 2.0 access token 발급 (client_credentials)
|
|
80
|
+
* @param {TokenRequestDto} tokenRequestDto
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
*/
|
|
84
|
+
async token(tokenRequestDto: TokenRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TokenResponseDto>> {
|
|
85
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.token(tokenRequestDto, options);
|
|
86
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
87
|
+
const localVarOperationServerBasePath = operationServerMap['OauthApi.token']?.[localVarOperationServerIndex]?.url;
|
|
88
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
89
|
+
},
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* OauthApi - factory interface
|
|
95
|
+
*/
|
|
96
|
+
export const OauthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
97
|
+
const localVarFp = OauthApiFp(configuration)
|
|
98
|
+
return {
|
|
99
|
+
/**
|
|
100
|
+
* 파트너 ERP 가 client_id/secret 로 단명 JWT access token 을 발급받습니다 (TTL 15분). 이후 모든 보호 endpoint 는 Authorization: Bearer <token> 헤더로 호출합니다.
|
|
101
|
+
* @summary OAuth 2.0 access token 발급 (client_credentials)
|
|
102
|
+
* @param {TokenRequestDto} tokenRequestDto
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
token(tokenRequestDto: TokenRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<TokenResponseDto> {
|
|
107
|
+
return localVarFp.token(tokenRequestDto, options).then((request) => request(axios, basePath));
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* OauthApi - object-oriented interface
|
|
114
|
+
*/
|
|
115
|
+
export class OauthApi extends BaseAPI {
|
|
116
|
+
/**
|
|
117
|
+
* 파트너 ERP 가 client_id/secret 로 단명 JWT access token 을 발급받습니다 (TTL 15분). 이후 모든 보호 endpoint 는 Authorization: Bearer <token> 헤더로 호출합니다.
|
|
118
|
+
* @summary OAuth 2.0 access token 발급 (client_credentials)
|
|
119
|
+
* @param {TokenRequestDto} tokenRequestDto
|
|
120
|
+
* @param {*} [options] Override http request option.
|
|
121
|
+
* @throws {RequiredError}
|
|
122
|
+
*/
|
|
123
|
+
public token(tokenRequestDto: TokenRequestDto, options?: RawAxiosRequestConfig) {
|
|
124
|
+
return OauthApiFp(this.configuration).token(tokenRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
@@ -0,0 +1,191 @@
|
|
|
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
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { BidSummaryResponseDto } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { HealthResponseDto } from '../models';
|
|
28
|
+
/**
|
|
29
|
+
* PartnerV1Api - axios parameter creator
|
|
30
|
+
*/
|
|
31
|
+
export const PartnerV1ApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
* V5 `GET /api/bid/{buyIdx}` 의 V6 후속. ERP 가 공고 정보를 조회합니다. 인증 필요 (스코프 `bids:read`).
|
|
35
|
+
* @summary 공고 단건 조회
|
|
36
|
+
* @param {string} bidId
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
bidsControllerFindOne: async (bidId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41
|
+
// verify required parameter 'bidId' is not null or undefined
|
|
42
|
+
assertParamExists('bidsControllerFindOne', 'bidId', bidId)
|
|
43
|
+
const localVarPath = `/v1/bids/{bidId}`
|
|
44
|
+
.replace('{bidId}', encodeURIComponent(String(bidId)));
|
|
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
|
+
|
|
52
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
53
|
+
const localVarHeaderParameter = {} as any;
|
|
54
|
+
const localVarQueryParameter = {} as any;
|
|
55
|
+
|
|
56
|
+
// authentication partner-oauth2 required
|
|
57
|
+
// http bearer authentication required
|
|
58
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
59
|
+
|
|
60
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
61
|
+
|
|
62
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
63
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
64
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
65
|
+
|
|
66
|
+
return {
|
|
67
|
+
url: toPathString(localVarUrlObj),
|
|
68
|
+
options: localVarRequestOptions,
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
/**
|
|
72
|
+
* V5 ApiController#check 의 V6 대체. ERP 연동 직전 회선·인증 endpoint 동작 확인용.
|
|
73
|
+
* @summary Partner API 헬스체크 (V5 /check 후속)
|
|
74
|
+
* @param {*} [options] Override http request option.
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
*/
|
|
77
|
+
healthControllerCheck: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
78
|
+
const localVarPath = `/v1/health`;
|
|
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
|
+
|
|
86
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
87
|
+
const localVarHeaderParameter = {} as any;
|
|
88
|
+
const localVarQueryParameter = {} as any;
|
|
89
|
+
|
|
90
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
91
|
+
|
|
92
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
93
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
95
|
+
|
|
96
|
+
return {
|
|
97
|
+
url: toPathString(localVarUrlObj),
|
|
98
|
+
options: localVarRequestOptions,
|
|
99
|
+
};
|
|
100
|
+
},
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* PartnerV1Api - functional programming interface
|
|
106
|
+
*/
|
|
107
|
+
export const PartnerV1ApiFp = function(configuration?: Configuration) {
|
|
108
|
+
const localVarAxiosParamCreator = PartnerV1ApiAxiosParamCreator(configuration)
|
|
109
|
+
return {
|
|
110
|
+
/**
|
|
111
|
+
* V5 `GET /api/bid/{buyIdx}` 의 V6 후속. ERP 가 공고 정보를 조회합니다. 인증 필요 (스코프 `bids:read`).
|
|
112
|
+
* @summary 공고 단건 조회
|
|
113
|
+
* @param {string} bidId
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
*/
|
|
117
|
+
async bidsControllerFindOne(bidId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BidSummaryResponseDto>> {
|
|
118
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bidsControllerFindOne(bidId, options);
|
|
119
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
120
|
+
const localVarOperationServerBasePath = operationServerMap['PartnerV1Api.bidsControllerFindOne']?.[localVarOperationServerIndex]?.url;
|
|
121
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
122
|
+
},
|
|
123
|
+
/**
|
|
124
|
+
* V5 ApiController#check 의 V6 대체. ERP 연동 직전 회선·인증 endpoint 동작 확인용.
|
|
125
|
+
* @summary Partner API 헬스체크 (V5 /check 후속)
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
async healthControllerCheck(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HealthResponseDto>> {
|
|
130
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.healthControllerCheck(options);
|
|
131
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
132
|
+
const localVarOperationServerBasePath = operationServerMap['PartnerV1Api.healthControllerCheck']?.[localVarOperationServerIndex]?.url;
|
|
133
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
134
|
+
},
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* PartnerV1Api - factory interface
|
|
140
|
+
*/
|
|
141
|
+
export const PartnerV1ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
142
|
+
const localVarFp = PartnerV1ApiFp(configuration)
|
|
143
|
+
return {
|
|
144
|
+
/**
|
|
145
|
+
* V5 `GET /api/bid/{buyIdx}` 의 V6 후속. ERP 가 공고 정보를 조회합니다. 인증 필요 (스코프 `bids:read`).
|
|
146
|
+
* @summary 공고 단건 조회
|
|
147
|
+
* @param {string} bidId
|
|
148
|
+
* @param {*} [options] Override http request option.
|
|
149
|
+
* @throws {RequiredError}
|
|
150
|
+
*/
|
|
151
|
+
bidsControllerFindOne(bidId: string, options?: RawAxiosRequestConfig): AxiosPromise<BidSummaryResponseDto> {
|
|
152
|
+
return localVarFp.bidsControllerFindOne(bidId, options).then((request) => request(axios, basePath));
|
|
153
|
+
},
|
|
154
|
+
/**
|
|
155
|
+
* V5 ApiController#check 의 V6 대체. ERP 연동 직전 회선·인증 endpoint 동작 확인용.
|
|
156
|
+
* @summary Partner API 헬스체크 (V5 /check 후속)
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
*/
|
|
160
|
+
healthControllerCheck(options?: RawAxiosRequestConfig): AxiosPromise<HealthResponseDto> {
|
|
161
|
+
return localVarFp.healthControllerCheck(options).then((request) => request(axios, basePath));
|
|
162
|
+
},
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* PartnerV1Api - object-oriented interface
|
|
168
|
+
*/
|
|
169
|
+
export class PartnerV1Api extends BaseAPI {
|
|
170
|
+
/**
|
|
171
|
+
* V5 `GET /api/bid/{buyIdx}` 의 V6 후속. ERP 가 공고 정보를 조회합니다. 인증 필요 (스코프 `bids:read`).
|
|
172
|
+
* @summary 공고 단건 조회
|
|
173
|
+
* @param {string} bidId
|
|
174
|
+
* @param {*} [options] Override http request option.
|
|
175
|
+
* @throws {RequiredError}
|
|
176
|
+
*/
|
|
177
|
+
public bidsControllerFindOne(bidId: string, options?: RawAxiosRequestConfig) {
|
|
178
|
+
return PartnerV1ApiFp(this.configuration).bidsControllerFindOne(bidId, options).then((request) => request(this.axios, this.basePath));
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* V5 ApiController#check 의 V6 대체. ERP 연동 직전 회선·인증 endpoint 동작 확인용.
|
|
183
|
+
* @summary Partner API 헬스체크 (V5 /check 후속)
|
|
184
|
+
* @param {*} [options] Override http request option.
|
|
185
|
+
* @throws {RequiredError}
|
|
186
|
+
*/
|
|
187
|
+
public healthControllerCheck(options?: RawAxiosRequestConfig) {
|
|
188
|
+
return PartnerV1ApiFp(this.configuration).healthControllerCheck(options).then((request) => request(this.axios, this.basePath));
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
@@ -0,0 +1,178 @@
|
|
|
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
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { LegacyEnvelopeDto } from '../models';
|
|
26
|
+
/**
|
|
27
|
+
* PartnerV1LegacyApi - axios parameter creator
|
|
28
|
+
*/
|
|
29
|
+
export const PartnerV1LegacyApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30
|
+
return {
|
|
31
|
+
/**
|
|
32
|
+
* V5 ApiController#check 응답 envelope 그대로. Sunset 헤더 부착.
|
|
33
|
+
* @summary V5 /check 호환 헬스체크 (deprecated)
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
*/
|
|
37
|
+
legacyControllerCheckGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38
|
+
const localVarPath = `/v1-legacy/check`;
|
|
39
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41
|
+
let baseOptions;
|
|
42
|
+
if (configuration) {
|
|
43
|
+
baseOptions = configuration.baseOptions;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
47
|
+
const localVarHeaderParameter = {} as any;
|
|
48
|
+
const localVarQueryParameter = {} as any;
|
|
49
|
+
|
|
50
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
51
|
+
|
|
52
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
53
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
55
|
+
|
|
56
|
+
return {
|
|
57
|
+
url: toPathString(localVarUrlObj),
|
|
58
|
+
options: localVarRequestOptions,
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
/**
|
|
62
|
+
* V5 는 GET·POST 모두 받음. 동일 응답.
|
|
63
|
+
* @summary V5 /check 호환 헬스체크 — POST (deprecated)
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
*/
|
|
67
|
+
legacyControllerCheckPost: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
68
|
+
const localVarPath = `/v1-legacy/check`;
|
|
69
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
70
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
71
|
+
let baseOptions;
|
|
72
|
+
if (configuration) {
|
|
73
|
+
baseOptions = configuration.baseOptions;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
77
|
+
const localVarHeaderParameter = {} as any;
|
|
78
|
+
const localVarQueryParameter = {} as any;
|
|
79
|
+
|
|
80
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
81
|
+
|
|
82
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
83
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
84
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
url: toPathString(localVarUrlObj),
|
|
88
|
+
options: localVarRequestOptions,
|
|
89
|
+
};
|
|
90
|
+
},
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* PartnerV1LegacyApi - functional programming interface
|
|
96
|
+
*/
|
|
97
|
+
export const PartnerV1LegacyApiFp = function(configuration?: Configuration) {
|
|
98
|
+
const localVarAxiosParamCreator = PartnerV1LegacyApiAxiosParamCreator(configuration)
|
|
99
|
+
return {
|
|
100
|
+
/**
|
|
101
|
+
* V5 ApiController#check 응답 envelope 그대로. Sunset 헤더 부착.
|
|
102
|
+
* @summary V5 /check 호환 헬스체크 (deprecated)
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
async legacyControllerCheckGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LegacyEnvelopeDto>> {
|
|
107
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.legacyControllerCheckGet(options);
|
|
108
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
109
|
+
const localVarOperationServerBasePath = operationServerMap['PartnerV1LegacyApi.legacyControllerCheckGet']?.[localVarOperationServerIndex]?.url;
|
|
110
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
111
|
+
},
|
|
112
|
+
/**
|
|
113
|
+
* V5 는 GET·POST 모두 받음. 동일 응답.
|
|
114
|
+
* @summary V5 /check 호환 헬스체크 — POST (deprecated)
|
|
115
|
+
* @param {*} [options] Override http request option.
|
|
116
|
+
* @throws {RequiredError}
|
|
117
|
+
*/
|
|
118
|
+
async legacyControllerCheckPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LegacyEnvelopeDto>> {
|
|
119
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.legacyControllerCheckPost(options);
|
|
120
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
121
|
+
const localVarOperationServerBasePath = operationServerMap['PartnerV1LegacyApi.legacyControllerCheckPost']?.[localVarOperationServerIndex]?.url;
|
|
122
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
123
|
+
},
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* PartnerV1LegacyApi - factory interface
|
|
129
|
+
*/
|
|
130
|
+
export const PartnerV1LegacyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
131
|
+
const localVarFp = PartnerV1LegacyApiFp(configuration)
|
|
132
|
+
return {
|
|
133
|
+
/**
|
|
134
|
+
* V5 ApiController#check 응답 envelope 그대로. Sunset 헤더 부착.
|
|
135
|
+
* @summary V5 /check 호환 헬스체크 (deprecated)
|
|
136
|
+
* @param {*} [options] Override http request option.
|
|
137
|
+
* @throws {RequiredError}
|
|
138
|
+
*/
|
|
139
|
+
legacyControllerCheckGet(options?: RawAxiosRequestConfig): AxiosPromise<LegacyEnvelopeDto> {
|
|
140
|
+
return localVarFp.legacyControllerCheckGet(options).then((request) => request(axios, basePath));
|
|
141
|
+
},
|
|
142
|
+
/**
|
|
143
|
+
* V5 는 GET·POST 모두 받음. 동일 응답.
|
|
144
|
+
* @summary V5 /check 호환 헬스체크 — POST (deprecated)
|
|
145
|
+
* @param {*} [options] Override http request option.
|
|
146
|
+
* @throws {RequiredError}
|
|
147
|
+
*/
|
|
148
|
+
legacyControllerCheckPost(options?: RawAxiosRequestConfig): AxiosPromise<LegacyEnvelopeDto> {
|
|
149
|
+
return localVarFp.legacyControllerCheckPost(options).then((request) => request(axios, basePath));
|
|
150
|
+
},
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* PartnerV1LegacyApi - object-oriented interface
|
|
156
|
+
*/
|
|
157
|
+
export class PartnerV1LegacyApi extends BaseAPI {
|
|
158
|
+
/**
|
|
159
|
+
* V5 ApiController#check 응답 envelope 그대로. Sunset 헤더 부착.
|
|
160
|
+
* @summary V5 /check 호환 헬스체크 (deprecated)
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
*/
|
|
164
|
+
public legacyControllerCheckGet(options?: RawAxiosRequestConfig) {
|
|
165
|
+
return PartnerV1LegacyApiFp(this.configuration).legacyControllerCheckGet(options).then((request) => request(this.axios, this.basePath));
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* V5 는 GET·POST 모두 받음. 동일 응답.
|
|
170
|
+
* @summary V5 /check 호환 헬스체크 — POST (deprecated)
|
|
171
|
+
* @param {*} [options] Override http request option.
|
|
172
|
+
* @throws {RequiredError}
|
|
173
|
+
*/
|
|
174
|
+
public legacyControllerCheckPost(options?: RawAxiosRequestConfig) {
|
|
175
|
+
return PartnerV1LegacyApiFp(this.configuration).legacyControllerCheckPost(options).then((request) => request(this.axios, this.basePath));
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|