@cmarket/partner-sdk 9.3.0 → 9.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -4
- package/api/oauth-api.ts +1 -1
- package/api/partner-v1-api.ts +1 -1
- package/api/partner-v2-api.ts +78 -1
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api/oauth-api.d.ts +1 -1
- package/dist/api/oauth-api.js +1 -1
- package/dist/api/partner-v1-api.d.ts +1 -1
- package/dist/api/partner-v1-api.js +1 -1
- package/dist/api/partner-v2-api.d.ts +35 -1
- package/dist/api/partner-v2-api.js +71 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api/oauth-api.d.ts +1 -1
- package/dist/esm/api/oauth-api.js +1 -1
- package/dist/esm/api/partner-v1-api.d.ts +1 -1
- package/dist/esm/api/partner-v1-api.js +1 -1
- package/dist/esm/api/partner-v2-api.d.ts +35 -1
- package/dist/esm/api/partner-v2-api.js +71 -1
- package/dist/esm/api.d.ts +1 -1
- package/dist/esm/api.js +1 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/models/acceptance-result-response-dto.d.ts +1 -1
- package/dist/esm/models/acceptance-result-response-dto.js +1 -1
- package/dist/esm/models/award-registered-response-dto.d.ts +1 -1
- package/dist/esm/models/award-registered-response-dto.js +1 -1
- package/dist/esm/models/bid-bond-dto.d.ts +1 -1
- package/dist/esm/models/bid-bond-dto.js +1 -1
- package/dist/esm/models/bid-contract-documents-batch-request-dto.d.ts +1 -1
- package/dist/esm/models/bid-contract-documents-batch-request-dto.js +1 -1
- package/dist/esm/models/bid-contract-documents-response-dto.d.ts +1 -1
- package/dist/esm/models/bid-contract-documents-response-dto.js +1 -1
- package/dist/esm/models/bid-created-response-dto.d.ts +1 -1
- package/dist/esm/models/bid-created-response-dto.js +1 -1
- package/dist/esm/models/bid-document-dto.d.ts +1 -1
- package/dist/esm/models/bid-document-dto.js +1 -1
- package/dist/esm/models/bid-failed-response-dto.d.ts +1 -1
- package/dist/esm/models/bid-failed-response-dto.js +1 -1
- package/dist/esm/models/bid-failure-reason.d.ts +1 -1
- package/dist/esm/models/bid-failure-reason.js +1 -1
- package/dist/esm/models/bid-item-dto.d.ts +1 -1
- package/dist/esm/models/bid-item-dto.js +1 -1
- package/dist/esm/models/bid-manager-dto.d.ts +1 -1
- package/dist/esm/models/bid-manager-dto.js +1 -1
- package/dist/esm/models/bid-result-participant-attachment-dto.d.ts +1 -1
- package/dist/esm/models/bid-result-participant-attachment-dto.js +1 -1
- package/dist/esm/models/bid-result-participant-dto.d.ts +1 -1
- package/dist/esm/models/bid-result-participant-dto.js +1 -1
- package/dist/esm/models/bid-result-v1-attachment-dto.d.ts +1 -1
- package/dist/esm/models/bid-result-v1-attachment-dto.js +1 -1
- package/dist/esm/models/bid-result-v1-bid-product-info-dto.d.ts +1 -1
- package/dist/esm/models/bid-result-v1-bid-product-info-dto.js +1 -1
- package/dist/esm/models/bid-result-v1-participant-dto.d.ts +1 -1
- package/dist/esm/models/bid-result-v1-participant-dto.js +1 -1
- package/dist/esm/models/bid-result-v1-product-dto.d.ts +1 -1
- package/dist/esm/models/bid-result-v1-product-dto.js +1 -1
- package/dist/esm/models/bid-results-batch-request-dto.d.ts +1 -1
- package/dist/esm/models/bid-results-batch-request-dto.js +1 -1
- package/dist/esm/models/bid-results-response-dto.d.ts +1 -1
- package/dist/esm/models/bid-results-response-dto.js +1 -1
- package/dist/esm/models/bid-results-v1-response-dto.d.ts +1 -1
- package/dist/esm/models/bid-results-v1-response-dto.js +1 -1
- package/dist/esm/models/bid-settlement-line-item-dto.d.ts +1 -1
- package/dist/esm/models/bid-settlement-line-item-dto.js +1 -1
- package/dist/esm/models/bid-settlement-participant-dto.d.ts +1 -1
- package/dist/esm/models/bid-settlement-participant-dto.js +1 -1
- package/dist/esm/models/bid-settlement-response-dto.d.ts +1 -1
- package/dist/esm/models/bid-settlement-response-dto.js +1 -1
- package/dist/esm/models/bid-statement-response-dto.d.ts +1 -1
- package/dist/esm/models/bid-statement-response-dto.js +1 -1
- package/dist/esm/models/bid-statement-v1-response-dto.d.ts +1 -1
- package/dist/esm/models/bid-statement-v1-response-dto.js +1 -1
- package/dist/esm/models/bid-status.d.ts +1 -1
- package/dist/esm/models/bid-status.js +1 -1
- package/dist/esm/models/complete-acceptance-request-dto.d.ts +1 -1
- package/dist/esm/models/complete-acceptance-request-dto.js +1 -1
- package/dist/esm/models/complete-acceptance-v1-request-dto.d.ts +1 -1
- package/dist/esm/models/complete-acceptance-v1-request-dto.js +1 -1
- package/dist/esm/models/contract-document-item-dto.d.ts +1 -1
- package/dist/esm/models/contract-document-item-dto.js +1 -1
- package/dist/esm/models/create-bid-request-dto.d.ts +1 -1
- package/dist/esm/models/create-bid-request-dto.js +1 -1
- package/dist/esm/models/create-bid-v1-request-dto.d.ts +1 -1
- package/dist/esm/models/create-bid-v1-request-dto.js +1 -1
- package/dist/esm/models/embed-launch-request-dto.d.ts +25 -0
- package/dist/esm/models/embed-launch-request-dto.js +16 -0
- package/dist/esm/models/embed-launch-response-dto.d.ts +21 -0
- package/dist/esm/models/embed-launch-response-dto.js +14 -0
- package/dist/esm/models/file-uploaded-response-dto.d.ts +1 -1
- package/dist/esm/models/file-uploaded-response-dto.js +1 -1
- package/dist/esm/models/health-response-dto.d.ts +1 -1
- package/dist/esm/models/health-response-dto.js +1 -1
- package/dist/esm/models/hierarchical-region-dto.d.ts +1 -1
- package/dist/esm/models/hierarchical-region-dto.js +1 -1
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/mark-bid-failed-request-dto.d.ts +1 -1
- package/dist/esm/models/mark-bid-failed-request-dto.js +1 -1
- package/dist/esm/models/mark-bid-failed-v1-request-dto.d.ts +1 -1
- package/dist/esm/models/mark-bid-failed-v1-request-dto.js +1 -1
- package/dist/esm/models/negotiation-score-v1-dto.d.ts +1 -1
- package/dist/esm/models/negotiation-score-v1-dto.js +1 -1
- package/dist/esm/models/negotiation-scored-response-dto.d.ts +1 -1
- package/dist/esm/models/negotiation-scored-response-dto.js +1 -1
- package/dist/esm/models/oauth-error-response-dto.d.ts +1 -1
- package/dist/esm/models/oauth-error-response-dto.js +1 -1
- package/dist/esm/models/preconditions-dto.d.ts +1 -1
- package/dist/esm/models/preconditions-dto.js +1 -1
- package/dist/esm/models/problem-details-dto.d.ts +1 -1
- package/dist/esm/models/problem-details-dto.js +1 -1
- package/dist/esm/models/register-award-request-dto.d.ts +1 -1
- package/dist/esm/models/register-award-request-dto.js +1 -1
- package/dist/esm/models/register-award-v1-request-dto.d.ts +1 -1
- package/dist/esm/models/register-award-v1-request-dto.js +1 -1
- package/dist/esm/models/request-split-invoice-request-dto.d.ts +1 -1
- package/dist/esm/models/request-split-invoice-request-dto.js +1 -1
- package/dist/esm/models/split-invoice-response-dto.d.ts +1 -1
- package/dist/esm/models/split-invoice-response-dto.js +1 -1
- package/dist/esm/models/statement-document-dto.d.ts +1 -1
- package/dist/esm/models/statement-document-dto.js +1 -1
- package/dist/esm/models/statement-product-dto.d.ts +1 -1
- package/dist/esm/models/statement-product-dto.js +1 -1
- package/dist/esm/models/statement-v1-document-dto.d.ts +1 -1
- package/dist/esm/models/statement-v1-document-dto.js +1 -1
- package/dist/esm/models/statement-v1-product-dto.d.ts +1 -1
- package/dist/esm/models/statement-v1-product-dto.js +1 -1
- package/dist/esm/models/submit-negotiation-scores-v1-request-dto.d.ts +1 -1
- package/dist/esm/models/submit-negotiation-scores-v1-request-dto.js +1 -1
- package/dist/esm/models/token-request-dto.d.ts +1 -1
- package/dist/esm/models/token-request-dto.js +1 -1
- package/dist/esm/models/token-response-dto.d.ts +1 -1
- package/dist/esm/models/token-response-dto.js +1 -1
- package/dist/esm/models/upload-file-request-dto.d.ts +1 -1
- package/dist/esm/models/upload-file-request-dto.js +1 -1
- package/dist/esm/partner-client.d.ts +31 -0
- package/dist/esm/partner-client.js +76 -0
- package/dist/esm/token-manager.d.ts +13 -0
- package/dist/esm/token-manager.js +57 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/acceptance-result-response-dto.d.ts +1 -1
- package/dist/models/acceptance-result-response-dto.js +1 -1
- package/dist/models/award-registered-response-dto.d.ts +1 -1
- package/dist/models/award-registered-response-dto.js +1 -1
- package/dist/models/bid-bond-dto.d.ts +1 -1
- package/dist/models/bid-bond-dto.js +1 -1
- package/dist/models/bid-contract-documents-batch-request-dto.d.ts +1 -1
- package/dist/models/bid-contract-documents-batch-request-dto.js +1 -1
- package/dist/models/bid-contract-documents-response-dto.d.ts +1 -1
- package/dist/models/bid-contract-documents-response-dto.js +1 -1
- package/dist/models/bid-created-response-dto.d.ts +1 -1
- package/dist/models/bid-created-response-dto.js +1 -1
- package/dist/models/bid-document-dto.d.ts +1 -1
- package/dist/models/bid-document-dto.js +1 -1
- package/dist/models/bid-failed-response-dto.d.ts +1 -1
- package/dist/models/bid-failed-response-dto.js +1 -1
- package/dist/models/bid-failure-reason.d.ts +1 -1
- package/dist/models/bid-failure-reason.js +1 -1
- package/dist/models/bid-item-dto.d.ts +1 -1
- package/dist/models/bid-item-dto.js +1 -1
- package/dist/models/bid-manager-dto.d.ts +1 -1
- package/dist/models/bid-manager-dto.js +1 -1
- package/dist/models/bid-result-participant-attachment-dto.d.ts +1 -1
- package/dist/models/bid-result-participant-attachment-dto.js +1 -1
- package/dist/models/bid-result-participant-dto.d.ts +1 -1
- package/dist/models/bid-result-participant-dto.js +1 -1
- package/dist/models/bid-result-v1-attachment-dto.d.ts +1 -1
- package/dist/models/bid-result-v1-attachment-dto.js +1 -1
- package/dist/models/bid-result-v1-bid-product-info-dto.d.ts +1 -1
- package/dist/models/bid-result-v1-bid-product-info-dto.js +1 -1
- package/dist/models/bid-result-v1-participant-dto.d.ts +1 -1
- package/dist/models/bid-result-v1-participant-dto.js +1 -1
- package/dist/models/bid-result-v1-product-dto.d.ts +1 -1
- package/dist/models/bid-result-v1-product-dto.js +1 -1
- package/dist/models/bid-results-batch-request-dto.d.ts +1 -1
- package/dist/models/bid-results-batch-request-dto.js +1 -1
- package/dist/models/bid-results-response-dto.d.ts +1 -1
- package/dist/models/bid-results-response-dto.js +1 -1
- package/dist/models/bid-results-v1-response-dto.d.ts +1 -1
- package/dist/models/bid-results-v1-response-dto.js +1 -1
- package/dist/models/bid-settlement-line-item-dto.d.ts +1 -1
- package/dist/models/bid-settlement-line-item-dto.js +1 -1
- package/dist/models/bid-settlement-participant-dto.d.ts +1 -1
- package/dist/models/bid-settlement-participant-dto.js +1 -1
- package/dist/models/bid-settlement-response-dto.d.ts +1 -1
- package/dist/models/bid-settlement-response-dto.js +1 -1
- package/dist/models/bid-statement-response-dto.d.ts +1 -1
- package/dist/models/bid-statement-response-dto.js +1 -1
- package/dist/models/bid-statement-v1-response-dto.d.ts +1 -1
- package/dist/models/bid-statement-v1-response-dto.js +1 -1
- package/dist/models/bid-status.d.ts +1 -1
- package/dist/models/bid-status.js +1 -1
- package/dist/models/complete-acceptance-request-dto.d.ts +1 -1
- package/dist/models/complete-acceptance-request-dto.js +1 -1
- package/dist/models/complete-acceptance-v1-request-dto.d.ts +1 -1
- package/dist/models/complete-acceptance-v1-request-dto.js +1 -1
- package/dist/models/contract-document-item-dto.d.ts +1 -1
- package/dist/models/contract-document-item-dto.js +1 -1
- package/dist/models/create-bid-request-dto.d.ts +1 -1
- package/dist/models/create-bid-request-dto.js +1 -1
- package/dist/models/create-bid-v1-request-dto.d.ts +1 -1
- package/dist/models/create-bid-v1-request-dto.js +1 -1
- package/dist/models/embed-launch-request-dto.d.ts +25 -0
- package/dist/models/embed-launch-request-dto.js +19 -0
- package/dist/models/embed-launch-response-dto.d.ts +21 -0
- package/dist/models/embed-launch-response-dto.js +15 -0
- package/dist/models/file-uploaded-response-dto.d.ts +1 -1
- package/dist/models/file-uploaded-response-dto.js +1 -1
- package/dist/models/health-response-dto.d.ts +1 -1
- package/dist/models/health-response-dto.js +1 -1
- package/dist/models/hierarchical-region-dto.d.ts +1 -1
- package/dist/models/hierarchical-region-dto.js +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/mark-bid-failed-request-dto.d.ts +1 -1
- package/dist/models/mark-bid-failed-request-dto.js +1 -1
- package/dist/models/mark-bid-failed-v1-request-dto.d.ts +1 -1
- package/dist/models/mark-bid-failed-v1-request-dto.js +1 -1
- package/dist/models/negotiation-score-v1-dto.d.ts +1 -1
- package/dist/models/negotiation-score-v1-dto.js +1 -1
- package/dist/models/negotiation-scored-response-dto.d.ts +1 -1
- package/dist/models/negotiation-scored-response-dto.js +1 -1
- package/dist/models/oauth-error-response-dto.d.ts +1 -1
- package/dist/models/oauth-error-response-dto.js +1 -1
- package/dist/models/preconditions-dto.d.ts +1 -1
- package/dist/models/preconditions-dto.js +1 -1
- package/dist/models/problem-details-dto.d.ts +1 -1
- package/dist/models/problem-details-dto.js +1 -1
- package/dist/models/register-award-request-dto.d.ts +1 -1
- package/dist/models/register-award-request-dto.js +1 -1
- package/dist/models/register-award-v1-request-dto.d.ts +1 -1
- package/dist/models/register-award-v1-request-dto.js +1 -1
- package/dist/models/request-split-invoice-request-dto.d.ts +1 -1
- package/dist/models/request-split-invoice-request-dto.js +1 -1
- package/dist/models/split-invoice-response-dto.d.ts +1 -1
- package/dist/models/split-invoice-response-dto.js +1 -1
- package/dist/models/statement-document-dto.d.ts +1 -1
- package/dist/models/statement-document-dto.js +1 -1
- package/dist/models/statement-product-dto.d.ts +1 -1
- package/dist/models/statement-product-dto.js +1 -1
- package/dist/models/statement-v1-document-dto.d.ts +1 -1
- package/dist/models/statement-v1-document-dto.js +1 -1
- package/dist/models/statement-v1-product-dto.d.ts +1 -1
- package/dist/models/statement-v1-product-dto.js +1 -1
- package/dist/models/submit-negotiation-scores-v1-request-dto.d.ts +1 -1
- package/dist/models/submit-negotiation-scores-v1-request-dto.js +1 -1
- package/dist/models/token-request-dto.d.ts +1 -1
- package/dist/models/token-request-dto.js +1 -1
- package/dist/models/token-response-dto.d.ts +1 -1
- package/dist/models/token-response-dto.js +1 -1
- package/dist/models/upload-file-request-dto.d.ts +1 -1
- package/dist/models/upload-file-request-dto.js +1 -1
- package/dist/partner-client.d.ts +31 -0
- package/dist/partner-client.js +81 -0
- package/dist/token-manager.d.ts +13 -0
- package/dist/token-manager.js +60 -0
- package/docs/EmbedLaunchRequestDto.md +22 -0
- package/docs/EmbedLaunchResponseDto.md +22 -0
- package/docs/PartnerV2Api.md +60 -0
- package/index.ts +1 -1
- package/models/acceptance-result-response-dto.ts +1 -1
- package/models/award-registered-response-dto.ts +1 -1
- package/models/bid-bond-dto.ts +1 -1
- package/models/bid-contract-documents-batch-request-dto.ts +1 -1
- package/models/bid-contract-documents-response-dto.ts +1 -1
- package/models/bid-created-response-dto.ts +1 -1
- package/models/bid-document-dto.ts +1 -1
- package/models/bid-failed-response-dto.ts +1 -1
- package/models/bid-failure-reason.ts +1 -1
- package/models/bid-item-dto.ts +1 -1
- package/models/bid-manager-dto.ts +1 -1
- package/models/bid-result-participant-attachment-dto.ts +1 -1
- package/models/bid-result-participant-dto.ts +1 -1
- package/models/bid-result-v1-attachment-dto.ts +1 -1
- package/models/bid-result-v1-bid-product-info-dto.ts +1 -1
- package/models/bid-result-v1-participant-dto.ts +1 -1
- package/models/bid-result-v1-product-dto.ts +1 -1
- package/models/bid-results-batch-request-dto.ts +1 -1
- package/models/bid-results-response-dto.ts +1 -1
- package/models/bid-results-v1-response-dto.ts +1 -1
- package/models/bid-settlement-line-item-dto.ts +1 -1
- package/models/bid-settlement-participant-dto.ts +1 -1
- package/models/bid-settlement-response-dto.ts +1 -1
- package/models/bid-statement-response-dto.ts +1 -1
- package/models/bid-statement-v1-response-dto.ts +1 -1
- package/models/bid-status.ts +1 -1
- package/models/complete-acceptance-request-dto.ts +1 -1
- package/models/complete-acceptance-v1-request-dto.ts +1 -1
- package/models/contract-document-item-dto.ts +1 -1
- package/models/create-bid-request-dto.ts +1 -1
- package/models/create-bid-v1-request-dto.ts +1 -1
- package/models/embed-launch-request-dto.ts +34 -0
- package/models/embed-launch-response-dto.ts +27 -0
- package/models/file-uploaded-response-dto.ts +1 -1
- package/models/health-response-dto.ts +1 -1
- package/models/hierarchical-region-dto.ts +1 -1
- package/models/index.ts +2 -0
- package/models/mark-bid-failed-request-dto.ts +1 -1
- package/models/mark-bid-failed-v1-request-dto.ts +1 -1
- package/models/negotiation-score-v1-dto.ts +1 -1
- package/models/negotiation-scored-response-dto.ts +1 -1
- package/models/oauth-error-response-dto.ts +1 -1
- package/models/preconditions-dto.ts +1 -1
- package/models/problem-details-dto.ts +1 -1
- package/models/register-award-request-dto.ts +1 -1
- package/models/register-award-v1-request-dto.ts +1 -1
- package/models/request-split-invoice-request-dto.ts +1 -1
- package/models/split-invoice-response-dto.ts +1 -1
- package/models/statement-document-dto.ts +1 -1
- package/models/statement-product-dto.ts +1 -1
- package/models/statement-v1-document-dto.ts +1 -1
- package/models/statement-v1-product-dto.ts +1 -1
- package/models/submit-negotiation-scores-v1-request-dto.ts +1 -1
- package/models/token-request-dto.ts +1 -1
- package/models/token-response-dto.ts +1 -1
- package/models/upload-file-request-dto.ts +1 -1
- package/package.json +1 -1
- package/partner-client.ts +103 -0
- package/token-manager.ts +59 -0
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ CMARKET V6 Partner API 의 공식 클라이언트 SDK — 외부 ERP 가 입찰
|
|
|
13
13
|
TypeScript / Node (npm):
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
npm install @cmarket/partner-sdk@9.
|
|
16
|
+
npm install @cmarket/partner-sdk@9.4.0
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Java (Maven):
|
|
@@ -22,7 +22,7 @@ Java (Maven):
|
|
|
22
22
|
<dependency>
|
|
23
23
|
<groupId>net.c-market</groupId>
|
|
24
24
|
<artifactId>partner-sdk</artifactId>
|
|
25
|
-
<version>9.
|
|
25
|
+
<version>9.4.0</version>
|
|
26
26
|
</dependency>
|
|
27
27
|
```
|
|
28
28
|
|
|
@@ -39,6 +39,32 @@ Java (Maven):
|
|
|
39
39
|
|
|
40
40
|
## 인증 (Authentication)
|
|
41
41
|
|
|
42
|
+
### SDK 자동관리 — `createPartnerClient` (권장 경로)
|
|
43
|
+
|
|
44
|
+
`/v2` 통합자는 토큰 발급·캐시·만료 60초 전 선갱신·401 재발급 재시도·(선택) DPoP proof 를 직접 구현하지 말고 SDK 팩토리에 위임하세요. `createPartnerClient()` 가 반환하는 `v2`/`oauth` 클라이언트는 매 요청에 `Authorization` 헤더를 자동 부착합니다.
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
import { createPartnerClient } from '@cmarket/partner-sdk/partner-client';
|
|
48
|
+
|
|
49
|
+
const client = createPartnerClient({
|
|
50
|
+
baseUrl: 'https://partner-api.c-market.net', // staging: https://partner-api.staging.c-market.net
|
|
51
|
+
clientId: process.env.CMARKET_CLIENT_ID!,
|
|
52
|
+
clientSecret: process.env.CMARKET_CLIENT_SECRET!,
|
|
53
|
+
scope: 'bids:write bids:read',
|
|
54
|
+
// dpop: true, // 키 바인딩 토큰(DPoP)을 쓰는 파트너만
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
// 토큰 발급/캐시/갱신은 SDK 가 처리 — write 는 Idempotency-Key 만 챙기면 됩니다.
|
|
58
|
+
await client.v2.registerBid(
|
|
59
|
+
{ buyerId: 'BUYER-001', projectName: '2026 사무용품 구매' },
|
|
60
|
+
{ headers: { 'Idempotency-Key': crypto.randomUUID() } },
|
|
61
|
+
);
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Java 도 동일하게 `PartnerClient.create(config)` → `client.v2()` 로 사용합니다.
|
|
65
|
+
|
|
66
|
+
아래 `### /v2 — OAuth2 Client Credentials` 이하는 토큰을 **직접 발급·관리**할 때의 계약 정본(수동/raw)입니다.
|
|
67
|
+
|
|
42
68
|
### `/v2` — OAuth2 Client Credentials (권장)
|
|
43
69
|
|
|
44
70
|
`/v2` 호출은 OAuth2 client_credentials 그랜트(RFC 6749 §4.4)로 발급한 JWT access token 을 `Authorization: Bearer <token>` 헤더에 실어야 합니다.
|
|
@@ -271,6 +297,47 @@ curl -X POST "$BASE/v2/bids" \
|
|
|
271
297
|
-d '{ "buyerId": "BUYER-001", "projectName": "2026 사무용품 구매" }'
|
|
272
298
|
```
|
|
273
299
|
|
|
300
|
+
#### DPoP (키 바인딩 토큰) — proof 직접 서명
|
|
301
|
+
|
|
302
|
+
DPoP 를 요구하는 파트너는 요청마다 짧은 수명의 proof JWT(RFC 9449)를 서명해 `DPoP` 헤더에, 토큰은 `Authorization: DPoP <token>` 로 실어야 합니다. SDK 를 쓰면 `dpop: true` 한 줄로 자동 처리되지만, raw 로 직접 서명하려면 다음과 같습니다(Node `jose`).
|
|
303
|
+
|
|
304
|
+
- 클라이언트 수명 동안 **ES256 키쌍 1개**를 재사용하고, 공개키(JWK)를 proof 헤더에 넣습니다.
|
|
305
|
+
- proof payload: `htm`(HTTP 메서드), `htu`(쿼리 제외 요청 URL), `iat`, `jti`(고유). 리소스 호출에는 access token 해시 `ath` 도 포함(토큰 엔드포인트 proof 에는 `ath` 없음).
|
|
306
|
+
- proof 헤더: `alg=ES256`, `typ=dpop+jwt`, `jwk`(공개키).
|
|
307
|
+
|
|
308
|
+
```ts
|
|
309
|
+
import { SignJWT, exportJWK, generateKeyPair, type JWK } from 'jose';
|
|
310
|
+
|
|
311
|
+
const { privateKey, publicKey } = await generateKeyPair('ES256', { extractable: true });
|
|
312
|
+
const jwk = (await exportJWK(publicKey)) as JWK;
|
|
313
|
+
|
|
314
|
+
async function dpopProof(htm: string, htu: string, accessToken?: string) {
|
|
315
|
+
const payload: Record<string, unknown> = { htm, htu, jti: crypto.randomUUID() };
|
|
316
|
+
if (accessToken) {
|
|
317
|
+
const digest = new Uint8Array(
|
|
318
|
+
await crypto.subtle.digest('SHA-256', new TextEncoder().encode(accessToken)),
|
|
319
|
+
);
|
|
320
|
+
payload.ath = Buffer.from(digest).toString('base64url'); // access token 해시 바인딩
|
|
321
|
+
}
|
|
322
|
+
return new SignJWT(payload)
|
|
323
|
+
.setProtectedHeader({ alg: 'ES256', typ: 'dpop+jwt', jwk })
|
|
324
|
+
.setIssuedAt()
|
|
325
|
+
.sign(privateKey);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
// 1) 토큰 발급 — 토큰 엔드포인트 proof 에는 ath 없음
|
|
329
|
+
const tokenProof = await dpopProof('POST', `${BASE}/oauth/token`);
|
|
330
|
+
// fetch(`${BASE}/oauth/token`, { method: 'POST', headers: { DPoP: tokenProof, ... }, body });
|
|
331
|
+
|
|
332
|
+
// 2) /v2 호출 — Authorization: DPoP + access token 해시(ath) 포함 proof
|
|
333
|
+
const callProof = await dpopProof('POST', `${BASE}/v2/bids`, accessToken);
|
|
334
|
+
// fetch(`${BASE}/v2/bids`, {
|
|
335
|
+
// method: 'POST',
|
|
336
|
+
// headers: { Authorization: `DPoP ${accessToken}`, DPoP: callProof, 'Idempotency-Key': crypto.randomUUID() },
|
|
337
|
+
// body,
|
|
338
|
+
// });
|
|
339
|
+
```
|
|
340
|
+
|
|
274
341
|
## 첫 성공 확인 (First success)
|
|
275
342
|
|
|
276
343
|
1. `/oauth/token` 호출이 200 + `access_token` 을 반환하면 자격증명·스코프가 유효합니다(401 `invalid_client` 면 client_id/secret 확인).
|
|
@@ -288,7 +355,7 @@ curl -X POST "$BASE/v2/bids" \
|
|
|
288
355
|
|
|
289
356
|
---
|
|
290
357
|
|
|
291
|
-
## @cmarket/partner-sdk@9.
|
|
358
|
+
## @cmarket/partner-sdk@9.4.0
|
|
292
359
|
|
|
293
360
|
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:
|
|
294
361
|
|
|
@@ -326,7 +393,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
326
393
|
_published:_
|
|
327
394
|
|
|
328
395
|
```
|
|
329
|
-
npm install @cmarket/partner-sdk@9.
|
|
396
|
+
npm install @cmarket/partner-sdk@9.4.0 --save
|
|
330
397
|
```
|
|
331
398
|
|
|
332
399
|
_unPublished (not recommended):_
|
|
@@ -352,6 +419,7 @@ Class | Method | HTTP request | Description
|
|
|
352
419
|
*PartnerV1Api* | [**v1RequestSplitInvoice**](docs/PartnerV1Api.md#v1requestsplitinvoice) | **POST** /v1/invoices/split-requests | 계산서 분할 발급 청구 — V5 충실
|
|
353
420
|
*PartnerV1Api* | [**v1SubmitNegotiationScores**](docs/PartnerV1Api.md#v1submitnegotiationscores) | **POST** /v1/awards/nego-eval | 협상(H/K) 점수평가 — V5 충실
|
|
354
421
|
*PartnerV2Api* | [**completeAcceptance**](docs/PartnerV2Api.md#completeacceptance) | **POST** /v2/bids/{bidId}/acceptance | 검수완료 전송
|
|
422
|
+
*PartnerV2Api* | [**createEmbedLaunch**](docs/PartnerV2Api.md#createembedlaunch) | **POST** /v2/embed/launch | 임베드 launch code 발급 (iframe SSO)
|
|
355
423
|
*PartnerV2Api* | [**getBidResults**](docs/PartnerV2Api.md#getbidresults) | **GET** /v2/bids/{bidId}/results | 입찰 결과 조회
|
|
356
424
|
*PartnerV2Api* | [**getBidSettlement**](docs/PartnerV2Api.md#getbidsettlement) | **GET** /v2/bids/{bidId}/settlement | 입찰결과 정산정보 조회
|
|
357
425
|
*PartnerV2Api* | [**getBidStatement**](docs/PartnerV2Api.md#getbidstatement) | **GET** /v2/bids/{bidId}/statement | 거래명세서 조회
|
|
@@ -395,6 +463,8 @@ Class | Method | HTTP request | Description
|
|
|
395
463
|
- [ContractDocumentItemDto](docs/ContractDocumentItemDto.md)
|
|
396
464
|
- [CreateBidRequestDto](docs/CreateBidRequestDto.md)
|
|
397
465
|
- [CreateBidV1RequestDto](docs/CreateBidV1RequestDto.md)
|
|
466
|
+
- [EmbedLaunchRequestDto](docs/EmbedLaunchRequestDto.md)
|
|
467
|
+
- [EmbedLaunchResponseDto](docs/EmbedLaunchResponseDto.md)
|
|
398
468
|
- [FileUploadedResponseDto](docs/FileUploadedResponseDto.md)
|
|
399
469
|
- [HealthResponseDto](docs/HealthResponseDto.md)
|
|
400
470
|
- [HierarchicalRegionDto](docs/HierarchicalRegionDto.md)
|
package/api/oauth-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* CMARKET V6 Partner API
|
|
5
5
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 9.
|
|
7
|
+
* The version of the OpenAPI document: 9.4.0
|
|
8
8
|
* Contact: semo.io.kr@gmail.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/partner-v1-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* CMARKET V6 Partner API
|
|
5
5
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 9.
|
|
7
|
+
* The version of the OpenAPI document: 9.4.0
|
|
8
8
|
* Contact: semo.io.kr@gmail.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/partner-v2-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* CMARKET V6 Partner API
|
|
5
5
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 9.
|
|
7
|
+
* The version of the OpenAPI document: 9.4.0
|
|
8
8
|
* Contact: semo.io.kr@gmail.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -40,6 +40,10 @@ import type { CompleteAcceptanceRequestDto } from '../models';
|
|
|
40
40
|
// @ts-ignore
|
|
41
41
|
import type { CreateBidRequestDto } from '../models';
|
|
42
42
|
// @ts-ignore
|
|
43
|
+
import type { EmbedLaunchRequestDto } from '../models';
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
import type { EmbedLaunchResponseDto } from '../models';
|
|
46
|
+
// @ts-ignore
|
|
43
47
|
import type { FileUploadedResponseDto } from '../models';
|
|
44
48
|
// @ts-ignore
|
|
45
49
|
import type { HealthResponseDto } from '../models';
|
|
@@ -105,6 +109,45 @@ export const PartnerV2ApiAxiosParamCreator = function (configuration?: Configura
|
|
|
105
109
|
options: localVarRequestOptions,
|
|
106
110
|
};
|
|
107
111
|
},
|
|
112
|
+
/**
|
|
113
|
+
* 스코프 `embed:launch` 필수. 발주기관 담당자(memberId)용 일회성 launch code(60초 TTL)를 발급한다. code 는 URL 에 싣지 말고 @cmarket/embed SDK 의 postMessage 핸드셰이크로만 iframe 에 전달할 것. memberId 가 이 API 키의 발주처 소속이 아니면 403, 미허용 screen 은 400.
|
|
114
|
+
* @summary 임베드 launch code 발급 (iframe SSO)
|
|
115
|
+
* @param {EmbedLaunchRequestDto} embedLaunchRequestDto
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
createEmbedLaunch: async (embedLaunchRequestDto: EmbedLaunchRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
120
|
+
// verify required parameter 'embedLaunchRequestDto' is not null or undefined
|
|
121
|
+
assertParamExists('createEmbedLaunch', 'embedLaunchRequestDto', embedLaunchRequestDto)
|
|
122
|
+
const localVarPath = `/v2/embed/launch`;
|
|
123
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
124
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
125
|
+
let baseOptions;
|
|
126
|
+
if (configuration) {
|
|
127
|
+
baseOptions = configuration.baseOptions;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
131
|
+
const localVarHeaderParameter = {} as any;
|
|
132
|
+
const localVarQueryParameter = {} as any;
|
|
133
|
+
|
|
134
|
+
// authentication partner-oauth2 required
|
|
135
|
+
// http bearer authentication required
|
|
136
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
137
|
+
|
|
138
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
139
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
140
|
+
|
|
141
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
142
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
143
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
144
|
+
localVarRequestOptions.data = serializeDataIfNeeded(embedLaunchRequestDto, localVarRequestOptions, configuration)
|
|
145
|
+
|
|
146
|
+
return {
|
|
147
|
+
url: toPathString(localVarUrlObj),
|
|
148
|
+
options: localVarRequestOptions,
|
|
149
|
+
};
|
|
150
|
+
},
|
|
108
151
|
/**
|
|
109
152
|
* V5 /entendrec 후속. scope bids:read.
|
|
110
153
|
* @summary 입찰 결과 조회
|
|
@@ -455,6 +498,19 @@ export const PartnerV2ApiFp = function(configuration?: Configuration) {
|
|
|
455
498
|
const localVarOperationServerBasePath = operationServerMap['PartnerV2Api.completeAcceptance']?.[localVarOperationServerIndex]?.url;
|
|
456
499
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
457
500
|
},
|
|
501
|
+
/**
|
|
502
|
+
* 스코프 `embed:launch` 필수. 발주기관 담당자(memberId)용 일회성 launch code(60초 TTL)를 발급한다. code 는 URL 에 싣지 말고 @cmarket/embed SDK 의 postMessage 핸드셰이크로만 iframe 에 전달할 것. memberId 가 이 API 키의 발주처 소속이 아니면 403, 미허용 screen 은 400.
|
|
503
|
+
* @summary 임베드 launch code 발급 (iframe SSO)
|
|
504
|
+
* @param {EmbedLaunchRequestDto} embedLaunchRequestDto
|
|
505
|
+
* @param {*} [options] Override http request option.
|
|
506
|
+
* @throws {RequiredError}
|
|
507
|
+
*/
|
|
508
|
+
async createEmbedLaunch(embedLaunchRequestDto: EmbedLaunchRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmbedLaunchResponseDto>> {
|
|
509
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createEmbedLaunch(embedLaunchRequestDto, options);
|
|
510
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
511
|
+
const localVarOperationServerBasePath = operationServerMap['PartnerV2Api.createEmbedLaunch']?.[localVarOperationServerIndex]?.url;
|
|
512
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
513
|
+
},
|
|
458
514
|
/**
|
|
459
515
|
* V5 /entendrec 후속. scope bids:read.
|
|
460
516
|
* @summary 입찰 결과 조회
|
|
@@ -583,6 +639,16 @@ export const PartnerV2ApiFactory = function (configuration?: Configuration, base
|
|
|
583
639
|
completeAcceptance(bidId: string, idempotencyKey: string, completeAcceptanceRequestDto: CompleteAcceptanceRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<AcceptanceResultResponseDto> {
|
|
584
640
|
return localVarFp.completeAcceptance(bidId, idempotencyKey, completeAcceptanceRequestDto, options).then((request) => request(axios, basePath));
|
|
585
641
|
},
|
|
642
|
+
/**
|
|
643
|
+
* 스코프 `embed:launch` 필수. 발주기관 담당자(memberId)용 일회성 launch code(60초 TTL)를 발급한다. code 는 URL 에 싣지 말고 @cmarket/embed SDK 의 postMessage 핸드셰이크로만 iframe 에 전달할 것. memberId 가 이 API 키의 발주처 소속이 아니면 403, 미허용 screen 은 400.
|
|
644
|
+
* @summary 임베드 launch code 발급 (iframe SSO)
|
|
645
|
+
* @param {EmbedLaunchRequestDto} embedLaunchRequestDto
|
|
646
|
+
* @param {*} [options] Override http request option.
|
|
647
|
+
* @throws {RequiredError}
|
|
648
|
+
*/
|
|
649
|
+
createEmbedLaunch(embedLaunchRequestDto: EmbedLaunchRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<EmbedLaunchResponseDto> {
|
|
650
|
+
return localVarFp.createEmbedLaunch(embedLaunchRequestDto, options).then((request) => request(axios, basePath));
|
|
651
|
+
},
|
|
586
652
|
/**
|
|
587
653
|
* V5 /entendrec 후속. scope bids:read.
|
|
588
654
|
* @summary 입찰 결과 조회
|
|
@@ -686,6 +752,17 @@ export class PartnerV2Api extends BaseAPI {
|
|
|
686
752
|
return PartnerV2ApiFp(this.configuration).completeAcceptance(bidId, idempotencyKey, completeAcceptanceRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
687
753
|
}
|
|
688
754
|
|
|
755
|
+
/**
|
|
756
|
+
* 스코프 `embed:launch` 필수. 발주기관 담당자(memberId)용 일회성 launch code(60초 TTL)를 발급한다. code 는 URL 에 싣지 말고 @cmarket/embed SDK 의 postMessage 핸드셰이크로만 iframe 에 전달할 것. memberId 가 이 API 키의 발주처 소속이 아니면 403, 미허용 screen 은 400.
|
|
757
|
+
* @summary 임베드 launch code 발급 (iframe SSO)
|
|
758
|
+
* @param {EmbedLaunchRequestDto} embedLaunchRequestDto
|
|
759
|
+
* @param {*} [options] Override http request option.
|
|
760
|
+
* @throws {RequiredError}
|
|
761
|
+
*/
|
|
762
|
+
public createEmbedLaunch(embedLaunchRequestDto: EmbedLaunchRequestDto, options?: RawAxiosRequestConfig) {
|
|
763
|
+
return PartnerV2ApiFp(this.configuration).createEmbedLaunch(embedLaunchRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
764
|
+
}
|
|
765
|
+
|
|
689
766
|
/**
|
|
690
767
|
* V5 /entendrec 후속. scope bids:read.
|
|
691
768
|
* @summary 입찰 결과 조회
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* CMARKET V6 Partner API
|
|
5
5
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 9.
|
|
7
|
+
* The version of the OpenAPI document: 9.4.0
|
|
8
8
|
* Contact: semo.io.kr@gmail.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/base.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* CMARKET V6 Partner API
|
|
5
5
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 9.
|
|
7
|
+
* The version of the OpenAPI document: 9.4.0
|
|
8
8
|
* Contact: semo.io.kr@gmail.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* CMARKET V6 Partner API
|
|
5
5
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 9.
|
|
7
|
+
* The version of the OpenAPI document: 9.4.0
|
|
8
8
|
* Contact: semo.io.kr@gmail.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* CMARKET V6 Partner API
|
|
4
4
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 9.
|
|
6
|
+
* The version of the OpenAPI document: 9.4.0
|
|
7
7
|
* Contact: semo.io.kr@gmail.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api/oauth-api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* CMARKET V6 Partner API
|
|
3
3
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 9.
|
|
5
|
+
* The version of the OpenAPI document: 9.4.0
|
|
6
6
|
* Contact: semo.io.kr@gmail.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api/oauth-api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* CMARKET V6 Partner API
|
|
6
6
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 9.
|
|
8
|
+
* The version of the OpenAPI document: 9.4.0
|
|
9
9
|
* Contact: semo.io.kr@gmail.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* CMARKET V6 Partner API
|
|
3
3
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 9.
|
|
5
|
+
* The version of the OpenAPI document: 9.4.0
|
|
6
6
|
* Contact: semo.io.kr@gmail.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* CMARKET V6 Partner API
|
|
6
6
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 9.
|
|
8
|
+
* The version of the OpenAPI document: 9.4.0
|
|
9
9
|
* Contact: semo.io.kr@gmail.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* CMARKET V6 Partner API
|
|
3
3
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 9.
|
|
5
|
+
* The version of the OpenAPI document: 9.4.0
|
|
6
6
|
* Contact: semo.io.kr@gmail.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -21,6 +21,8 @@ import type { BidSettlementResponseDto } from '../models';
|
|
|
21
21
|
import type { BidStatementResponseDto } from '../models';
|
|
22
22
|
import type { CompleteAcceptanceRequestDto } from '../models';
|
|
23
23
|
import type { CreateBidRequestDto } from '../models';
|
|
24
|
+
import type { EmbedLaunchRequestDto } from '../models';
|
|
25
|
+
import type { EmbedLaunchResponseDto } from '../models';
|
|
24
26
|
import type { FileUploadedResponseDto } from '../models';
|
|
25
27
|
import type { HealthResponseDto } from '../models';
|
|
26
28
|
import type { MarkBidFailedRequestDto } from '../models';
|
|
@@ -40,6 +42,14 @@ export declare const PartnerV2ApiAxiosParamCreator: (configuration?: Configurati
|
|
|
40
42
|
* @throws {RequiredError}
|
|
41
43
|
*/
|
|
42
44
|
completeAcceptance: (bidId: string, idempotencyKey: string, completeAcceptanceRequestDto: CompleteAcceptanceRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
|
+
/**
|
|
46
|
+
* 스코프 `embed:launch` 필수. 발주기관 담당자(memberId)용 일회성 launch code(60초 TTL)를 발급한다. code 는 URL 에 싣지 말고 @cmarket/embed SDK 의 postMessage 핸드셰이크로만 iframe 에 전달할 것. memberId 가 이 API 키의 발주처 소속이 아니면 403, 미허용 screen 은 400.
|
|
47
|
+
* @summary 임베드 launch code 발급 (iframe SSO)
|
|
48
|
+
* @param {EmbedLaunchRequestDto} embedLaunchRequestDto
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
*/
|
|
52
|
+
createEmbedLaunch: (embedLaunchRequestDto: EmbedLaunchRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
53
|
/**
|
|
44
54
|
* V5 /entendrec 후속. scope bids:read.
|
|
45
55
|
* @summary 입찰 결과 조회
|
|
@@ -122,6 +132,14 @@ export declare const PartnerV2ApiFp: (configuration?: Configuration) => {
|
|
|
122
132
|
* @throws {RequiredError}
|
|
123
133
|
*/
|
|
124
134
|
completeAcceptance(bidId: string, idempotencyKey: string, completeAcceptanceRequestDto: CompleteAcceptanceRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AcceptanceResultResponseDto>>;
|
|
135
|
+
/**
|
|
136
|
+
* 스코프 `embed:launch` 필수. 발주기관 담당자(memberId)용 일회성 launch code(60초 TTL)를 발급한다. code 는 URL 에 싣지 말고 @cmarket/embed SDK 의 postMessage 핸드셰이크로만 iframe 에 전달할 것. memberId 가 이 API 키의 발주처 소속이 아니면 403, 미허용 screen 은 400.
|
|
137
|
+
* @summary 임베드 launch code 발급 (iframe SSO)
|
|
138
|
+
* @param {EmbedLaunchRequestDto} embedLaunchRequestDto
|
|
139
|
+
* @param {*} [options] Override http request option.
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
*/
|
|
142
|
+
createEmbedLaunch(embedLaunchRequestDto: EmbedLaunchRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmbedLaunchResponseDto>>;
|
|
125
143
|
/**
|
|
126
144
|
* V5 /entendrec 후속. scope bids:read.
|
|
127
145
|
* @summary 입찰 결과 조회
|
|
@@ -204,6 +222,14 @@ export declare const PartnerV2ApiFactory: (configuration?: Configuration, basePa
|
|
|
204
222
|
* @throws {RequiredError}
|
|
205
223
|
*/
|
|
206
224
|
completeAcceptance(bidId: string, idempotencyKey: string, completeAcceptanceRequestDto: CompleteAcceptanceRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<AcceptanceResultResponseDto>;
|
|
225
|
+
/**
|
|
226
|
+
* 스코프 `embed:launch` 필수. 발주기관 담당자(memberId)용 일회성 launch code(60초 TTL)를 발급한다. code 는 URL 에 싣지 말고 @cmarket/embed SDK 의 postMessage 핸드셰이크로만 iframe 에 전달할 것. memberId 가 이 API 키의 발주처 소속이 아니면 403, 미허용 screen 은 400.
|
|
227
|
+
* @summary 임베드 launch code 발급 (iframe SSO)
|
|
228
|
+
* @param {EmbedLaunchRequestDto} embedLaunchRequestDto
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
*/
|
|
232
|
+
createEmbedLaunch(embedLaunchRequestDto: EmbedLaunchRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<EmbedLaunchResponseDto>;
|
|
207
233
|
/**
|
|
208
234
|
* V5 /entendrec 후속. scope bids:read.
|
|
209
235
|
* @summary 입찰 결과 조회
|
|
@@ -286,6 +312,14 @@ export declare class PartnerV2Api extends BaseAPI {
|
|
|
286
312
|
* @throws {RequiredError}
|
|
287
313
|
*/
|
|
288
314
|
completeAcceptance(bidId: string, idempotencyKey: string, completeAcceptanceRequestDto: CompleteAcceptanceRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AcceptanceResultResponseDto, any, {}>>;
|
|
315
|
+
/**
|
|
316
|
+
* 스코프 `embed:launch` 필수. 발주기관 담당자(memberId)용 일회성 launch code(60초 TTL)를 발급한다. code 는 URL 에 싣지 말고 @cmarket/embed SDK 의 postMessage 핸드셰이크로만 iframe 에 전달할 것. memberId 가 이 API 키의 발주처 소속이 아니면 403, 미허용 screen 은 400.
|
|
317
|
+
* @summary 임베드 launch code 발급 (iframe SSO)
|
|
318
|
+
* @param {EmbedLaunchRequestDto} embedLaunchRequestDto
|
|
319
|
+
* @param {*} [options] Override http request option.
|
|
320
|
+
* @throws {RequiredError}
|
|
321
|
+
*/
|
|
322
|
+
createEmbedLaunch(embedLaunchRequestDto: EmbedLaunchRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EmbedLaunchResponseDto, any, {}>>;
|
|
289
323
|
/**
|
|
290
324
|
* V5 /entendrec 후속. scope bids:read.
|
|
291
325
|
* @summary 입찰 결과 조회
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* CMARKET V6 Partner API
|
|
6
6
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 9.
|
|
8
|
+
* The version of the OpenAPI document: 9.4.0
|
|
9
9
|
* Contact: semo.io.kr@gmail.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -78,6 +78,40 @@ const PartnerV2ApiAxiosParamCreator = function (configuration) {
|
|
|
78
78
|
options: localVarRequestOptions,
|
|
79
79
|
};
|
|
80
80
|
}),
|
|
81
|
+
/**
|
|
82
|
+
* 스코프 `embed:launch` 필수. 발주기관 담당자(memberId)용 일회성 launch code(60초 TTL)를 발급한다. code 는 URL 에 싣지 말고 @cmarket/embed SDK 의 postMessage 핸드셰이크로만 iframe 에 전달할 것. memberId 가 이 API 키의 발주처 소속이 아니면 403, 미허용 screen 은 400.
|
|
83
|
+
* @summary 임베드 launch code 발급 (iframe SSO)
|
|
84
|
+
* @param {EmbedLaunchRequestDto} embedLaunchRequestDto
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
*/
|
|
88
|
+
createEmbedLaunch: (embedLaunchRequestDto_1, ...args_1) => __awaiter(this, [embedLaunchRequestDto_1, ...args_1], void 0, function* (embedLaunchRequestDto, options = {}) {
|
|
89
|
+
// verify required parameter 'embedLaunchRequestDto' is not null or undefined
|
|
90
|
+
(0, common_1.assertParamExists)('createEmbedLaunch', 'embedLaunchRequestDto', embedLaunchRequestDto);
|
|
91
|
+
const localVarPath = `/v2/embed/launch`;
|
|
92
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
93
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
94
|
+
let baseOptions;
|
|
95
|
+
if (configuration) {
|
|
96
|
+
baseOptions = configuration.baseOptions;
|
|
97
|
+
}
|
|
98
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
99
|
+
const localVarHeaderParameter = {};
|
|
100
|
+
const localVarQueryParameter = {};
|
|
101
|
+
// authentication partner-oauth2 required
|
|
102
|
+
// http bearer authentication required
|
|
103
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
104
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
105
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
106
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
107
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
108
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
109
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(embedLaunchRequestDto, localVarRequestOptions, configuration);
|
|
110
|
+
return {
|
|
111
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
112
|
+
options: localVarRequestOptions,
|
|
113
|
+
};
|
|
114
|
+
}),
|
|
81
115
|
/**
|
|
82
116
|
* V5 /entendrec 후속. scope bids:read.
|
|
83
117
|
* @summary 입찰 결과 조회
|
|
@@ -390,6 +424,22 @@ const PartnerV2ApiFp = function (configuration) {
|
|
|
390
424
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
391
425
|
});
|
|
392
426
|
},
|
|
427
|
+
/**
|
|
428
|
+
* 스코프 `embed:launch` 필수. 발주기관 담당자(memberId)용 일회성 launch code(60초 TTL)를 발급한다. code 는 URL 에 싣지 말고 @cmarket/embed SDK 의 postMessage 핸드셰이크로만 iframe 에 전달할 것. memberId 가 이 API 키의 발주처 소속이 아니면 403, 미허용 screen 은 400.
|
|
429
|
+
* @summary 임베드 launch code 발급 (iframe SSO)
|
|
430
|
+
* @param {EmbedLaunchRequestDto} embedLaunchRequestDto
|
|
431
|
+
* @param {*} [options] Override http request option.
|
|
432
|
+
* @throws {RequiredError}
|
|
433
|
+
*/
|
|
434
|
+
createEmbedLaunch(embedLaunchRequestDto, options) {
|
|
435
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
436
|
+
var _a, _b, _c;
|
|
437
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createEmbedLaunch(embedLaunchRequestDto, options);
|
|
438
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
439
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PartnerV2Api.createEmbedLaunch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
440
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
441
|
+
});
|
|
442
|
+
},
|
|
393
443
|
/**
|
|
394
444
|
* V5 /entendrec 후속. scope bids:read.
|
|
395
445
|
* @summary 입찰 결과 조회
|
|
@@ -542,6 +592,16 @@ const PartnerV2ApiFactory = function (configuration, basePath, axios) {
|
|
|
542
592
|
completeAcceptance(bidId, idempotencyKey, completeAcceptanceRequestDto, options) {
|
|
543
593
|
return localVarFp.completeAcceptance(bidId, idempotencyKey, completeAcceptanceRequestDto, options).then((request) => request(axios, basePath));
|
|
544
594
|
},
|
|
595
|
+
/**
|
|
596
|
+
* 스코프 `embed:launch` 필수. 발주기관 담당자(memberId)용 일회성 launch code(60초 TTL)를 발급한다. code 는 URL 에 싣지 말고 @cmarket/embed SDK 의 postMessage 핸드셰이크로만 iframe 에 전달할 것. memberId 가 이 API 키의 발주처 소속이 아니면 403, 미허용 screen 은 400.
|
|
597
|
+
* @summary 임베드 launch code 발급 (iframe SSO)
|
|
598
|
+
* @param {EmbedLaunchRequestDto} embedLaunchRequestDto
|
|
599
|
+
* @param {*} [options] Override http request option.
|
|
600
|
+
* @throws {RequiredError}
|
|
601
|
+
*/
|
|
602
|
+
createEmbedLaunch(embedLaunchRequestDto, options) {
|
|
603
|
+
return localVarFp.createEmbedLaunch(embedLaunchRequestDto, options).then((request) => request(axios, basePath));
|
|
604
|
+
},
|
|
545
605
|
/**
|
|
546
606
|
* V5 /entendrec 후속. scope bids:read.
|
|
547
607
|
* @summary 입찰 결과 조회
|
|
@@ -644,6 +704,16 @@ class PartnerV2Api extends base_1.BaseAPI {
|
|
|
644
704
|
completeAcceptance(bidId, idempotencyKey, completeAcceptanceRequestDto, options) {
|
|
645
705
|
return (0, exports.PartnerV2ApiFp)(this.configuration).completeAcceptance(bidId, idempotencyKey, completeAcceptanceRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
646
706
|
}
|
|
707
|
+
/**
|
|
708
|
+
* 스코프 `embed:launch` 필수. 발주기관 담당자(memberId)용 일회성 launch code(60초 TTL)를 발급한다. code 는 URL 에 싣지 말고 @cmarket/embed SDK 의 postMessage 핸드셰이크로만 iframe 에 전달할 것. memberId 가 이 API 키의 발주처 소속이 아니면 403, 미허용 screen 은 400.
|
|
709
|
+
* @summary 임베드 launch code 발급 (iframe SSO)
|
|
710
|
+
* @param {EmbedLaunchRequestDto} embedLaunchRequestDto
|
|
711
|
+
* @param {*} [options] Override http request option.
|
|
712
|
+
* @throws {RequiredError}
|
|
713
|
+
*/
|
|
714
|
+
createEmbedLaunch(embedLaunchRequestDto, options) {
|
|
715
|
+
return (0, exports.PartnerV2ApiFp)(this.configuration).createEmbedLaunch(embedLaunchRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
716
|
+
}
|
|
647
717
|
/**
|
|
648
718
|
* V5 /entendrec 후속. scope bids:read.
|
|
649
719
|
* @summary 입찰 결과 조회
|
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* CMARKET V6 Partner API
|
|
3
3
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 9.
|
|
5
|
+
* The version of the OpenAPI document: 9.4.0
|
|
6
6
|
* Contact: semo.io.kr@gmail.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* CMARKET V6 Partner API
|
|
6
6
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 9.
|
|
8
|
+
* The version of the OpenAPI document: 9.4.0
|
|
9
9
|
* Contact: semo.io.kr@gmail.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* CMARKET V6 Partner API
|
|
3
3
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 9.
|
|
5
|
+
* The version of the OpenAPI document: 9.4.0
|
|
6
6
|
* Contact: semo.io.kr@gmail.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* CMARKET V6 Partner API
|
|
6
6
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 9.
|
|
8
|
+
* The version of the OpenAPI document: 9.4.0
|
|
9
9
|
* Contact: semo.io.kr@gmail.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* CMARKET V6 Partner API
|
|
3
3
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 9.
|
|
5
|
+
* The version of the OpenAPI document: 9.4.0
|
|
6
6
|
* Contact: semo.io.kr@gmail.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* CMARKET V6 Partner API
|
|
6
6
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 9.
|
|
8
|
+
* The version of the OpenAPI document: 9.4.0
|
|
9
9
|
* Contact: semo.io.kr@gmail.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* CMARKET V6 Partner API
|
|
3
3
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 9.
|
|
5
|
+
* The version of the OpenAPI document: 9.4.0
|
|
6
6
|
* Contact: semo.io.kr@gmail.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* CMARKET V6 Partner API
|
|
5
5
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 9.
|
|
7
|
+
* The version of the OpenAPI document: 9.4.0
|
|
8
8
|
* Contact: semo.io.kr@gmail.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* CMARKET V6 Partner API
|
|
3
3
|
* 외부 ERP 연동용 RESTful API. ## 버전별 인증 - **_/v2** — OAuth2 Bearer JWT (`client_credentials` 플로우). `/oauth/token` 에서 토큰 발급 후 `Authorization: Bearer <token>` 헤더. - **_/v1** — V5 충실 platform-auth. `X-Platform-Id`(cate_set.api_id) / `X-Platform-Secret`(cate_set.api_secret, MD5-hex) 헤더로 전송.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 9.
|
|
5
|
+
* The version of the OpenAPI document: 9.4.0
|
|
6
6
|
* Contact: semo.io.kr@gmail.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|