@northstake/northstakeapi 1.0.7 → 1.0.8
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 +23 -15
- package/api/apis.ts +17 -9
- package/api/northstake.ts +47 -23
- package/api/portfolioApi.ts +4 -4
- package/api/stakingPartnerManagedUsersApi.ts +0 -279
- package/api/stakingPartnerManagedUsersDepositAddressesApi.ts +167 -0
- package/api/stakingPartnerManagedUsersPortfolioApi.ts +167 -0
- package/api/stakingPartnerManagedUsersStatsApi.ts +167 -0
- package/api/stakingPartnerManagedUsersValidatorsApi.ts +167 -0
- package/api/statsApi.ts +0 -73
- package/api/{rfqMarketPlaceBuyersApi.ts → validatorMarketplaceBuyersApi.ts} +31 -21
- package/api/{rfqMarketPlaceSellersApi.ts → validatorMarketplaceSellersApi.ts} +68 -60
- package/api/{rfqMarketPlaceWebhooksApi.ts → validatorMarketplaceWebhooksApi.ts} +7 -7
- package/api/validatorsApi.ts +172 -0
- package/dist/api/apis.d.ts +17 -9
- package/dist/api/apis.js +17 -9
- package/dist/api/northstake.d.ts +16 -8
- package/dist/api/northstake.js +32 -16
- package/dist/api/portfolioApi.d.ts +2 -2
- package/dist/api/portfolioApi.js +1 -1
- package/dist/api/stakingPartnerManagedUsersApi.d.ts +0 -55
- package/dist/api/stakingPartnerManagedUsersApi.js +0 -264
- package/dist/api/stakingPartnerManagedUsersDepositAddressesApi.d.ts +53 -0
- package/dist/api/stakingPartnerManagedUsersDepositAddressesApi.js +146 -0
- package/dist/api/stakingPartnerManagedUsersPortfolioApi.d.ts +53 -0
- package/dist/api/stakingPartnerManagedUsersPortfolioApi.js +146 -0
- package/dist/api/stakingPartnerManagedUsersStatsApi.d.ts +53 -0
- package/dist/api/stakingPartnerManagedUsersStatsApi.js +146 -0
- package/dist/api/{stakingPartnerValidatorKeysApi.d.ts → stakingPartnerManagedUsersValidatorsApi.d.ts} +5 -31
- package/dist/api/stakingPartnerManagedUsersValidatorsApi.js +146 -0
- package/dist/api/statsApi.d.ts +0 -15
- package/dist/api/statsApi.js +0 -68
- package/dist/api/{rfqMarketPlaceBuyersApi.d.ts → validatorMarketplaceBuyersApi.d.ts} +11 -10
- package/dist/api/{rfqMarketPlaceBuyersApi.js → validatorMarketplaceBuyersApi.js} +32 -24
- package/dist/api/{rfqMarketPlaceSellersApi.d.ts → validatorMarketplaceSellersApi.d.ts} +27 -26
- package/dist/api/{rfqMarketPlaceSellersApi.js → validatorMarketplaceSellersApi.js} +64 -57
- package/dist/api/{rfqMarketPlaceWebhooksApi.d.ts → validatorMarketplaceWebhooksApi.d.ts} +2 -2
- package/dist/api/{rfqMarketPlaceWebhooksApi.js → validatorMarketplaceWebhooksApi.js} +11 -11
- package/dist/api/validatorsApi.d.ts +56 -0
- package/dist/api/validatorsApi.js +148 -0
- package/dist/model/{createRFQDocumentForSellerRequest.d.ts → createRFQDocumentRequest.d.ts} +1 -1
- package/dist/model/{createRFQDocumentForSellerRequest.js → createRFQDocumentRequest.js} +6 -6
- package/dist/model/{registerRewardRecipientSettlementRequestInner.d.ts → exitEstimateBase.d.ts} +3 -3
- package/dist/model/exitEstimateBase.js +33 -0
- package/dist/model/{exitEstimate.d.ts → exitEstimateSeller.d.ts} +2 -2
- package/dist/model/{exitEstimate.js → exitEstimateSeller.js} +10 -10
- package/dist/model/models.d.ts +15 -11
- package/dist/model/models.js +45 -33
- package/dist/model/{getRewardsStatistics200ResponseInner.d.ts → portfolioEntity.d.ts} +7 -6
- package/dist/model/portfolioEntity.js +38 -0
- package/dist/model/rFQDocumentBase.d.ts +4 -3
- package/dist/model/rFQDocumentBase.js +3 -8
- package/dist/model/rFQDocumentBuyer.d.ts +7 -4
- package/dist/model/rFQDocumentBuyer.js +8 -8
- package/dist/model/{rFQDocumentBaseValidatorsInner.d.ts → rFQDocumentBuyerAllOfValidators.d.ts} +3 -3
- package/dist/model/{rFQDocumentBaseValidatorsInner.js → rFQDocumentBuyerAllOfValidators.js} +9 -9
- package/dist/model/rFQDocumentSeller.d.ts +8 -4
- package/dist/model/rFQDocumentSeller.js +16 -11
- package/dist/model/rFQDocumentSellerAllOfValidators.d.ts +28 -0
- package/dist/model/rFQDocumentSellerAllOfValidators.js +38 -0
- package/dist/model/rFQDocumentStatusEnum.d.ts +17 -0
- package/dist/model/rFQDocumentStatusEnum.js +21 -0
- package/dist/model/{acceptBidForRFQDocumentRequest.d.ts → rejectQuoteForRFQDocumentRequest.d.ts} +1 -1
- package/dist/model/{acceptBidForRFQDocumentRequest.js → rejectQuoteForRFQDocumentRequest.js} +6 -6
- package/dist/model/settlementStepEscrowPayment.d.ts +1 -0
- package/dist/model/settlementStepEscrowPayment.js +5 -0
- package/dist/model/settlementStepEscrowReleased.d.ts +2 -0
- package/dist/model/settlementStepEscrowReleased.js +10 -0
- package/dist/model/{settlementStepRewardRecipientSettlementInner.d.ts → settlementStepWithdrawalRecipientSettlementInner.d.ts} +1 -1
- package/dist/model/{settlementStepRewardRecipientSettlementInner.js → settlementStepWithdrawalRecipientSettlementInner.js} +6 -6
- package/dist/model/settlementSteps.d.ts +2 -2
- package/dist/model/settlementSteps.js +3 -3
- package/dist/model/stakeStep.d.ts +1 -1
- package/dist/model/stepStatus.d.ts +1 -1
- package/dist/model/stepStatus.js +1 -1
- package/dist/model/submitQuoteForRFQDocumentRequest.d.ts +25 -0
- package/dist/model/submitQuoteForRFQDocumentRequest.js +28 -0
- package/dist/model/tokenEnum.d.ts +1 -3
- package/dist/model/tokenEnum.js +1 -3
- package/dist/model/unstakeStep.d.ts +1 -1
- package/dist/model/unstakeStepType.d.ts +1 -1
- package/dist/model/unstakeStepType.js +1 -1
- package/dist/model/validatorContractTypeEnum.d.ts +15 -0
- package/dist/model/validatorContractTypeEnum.js +19 -0
- package/dist/model/validatorInfo.d.ts +6 -1
- package/dist/model/validatorInfo.js +17 -2
- package/dist/model/{portfolioTableRow.d.ts → validatorInfoValidatorType.d.ts} +6 -10
- package/dist/model/validatorInfoValidatorType.js +33 -0
- package/dist/model/validatorInfoValidatorTypeContract.d.ts +29 -0
- package/dist/model/validatorInfoValidatorTypeContract.js +33 -0
- package/dist/model/validatorKeyHolderEnum.d.ts +15 -0
- package/dist/model/validatorKeyHolderEnum.js +19 -0
- package/dist/model/webhookPayloadRFQAvailable.d.ts +2 -2
- package/dist/model/webhookPayloadRFQAvailable.js +1 -1
- package/dist/model/webhookPayloadRFQEscrowReleasedDetails.d.ts +1 -0
- package/dist/model/webhookPayloadRFQEscrowReleasedDetails.js +5 -0
- package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.d.ts +2 -2
- package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.js +1 -1
- package/dist/model/{webhookPayloadRFQValidatorWithdrawalChangeDetailsInner.d.ts → webhookPayloadRFQValidatorWithdrawalChangeDetails.d.ts} +1 -2
- package/dist/model/{webhookPayloadRFQValidatorWithdrawalChangeDetailsInner.js → webhookPayloadRFQValidatorWithdrawalChangeDetails.js} +6 -11
- package/dist/model/withdrawalStep.d.ts +1 -1
- package/dist/model/withdrawalStepType.d.ts +1 -1
- package/dist/model/withdrawalStepType.js +1 -1
- package/model/{createRFQDocumentForSellerRequest.ts → createRFQDocumentRequest.ts} +2 -2
- package/model/exitEstimateBase.ts +37 -0
- package/model/{exitEstimate.ts → exitEstimateSeller.ts} +7 -7
- package/model/models.ts +45 -33
- package/model/portfolioEntity.ts +46 -0
- package/model/rFQDocumentBase.ts +7 -11
- package/model/rFQDocumentBuyer.ts +15 -12
- package/model/{rFQDocumentBaseValidatorsInner.ts → rFQDocumentBuyerAllOfValidators.ts} +7 -7
- package/model/rFQDocumentSeller.ts +24 -15
- package/model/{registerRewardRecipientSettlementRequestInner.ts → rFQDocumentSellerAllOfValidators.ts} +15 -8
- package/model/rFQDocumentStatusEnum.ts +20 -0
- package/model/{acceptBidForRFQDocumentRequest.ts → rejectQuoteForRFQDocumentRequest.ts} +2 -2
- package/model/settlementStepEscrowPayment.ts +6 -0
- package/model/settlementStepEscrowReleased.ts +12 -0
- package/model/{settlementStepRewardRecipientSettlementInner.ts → settlementStepWithdrawalRecipientSettlementInner.ts} +2 -2
- package/model/settlementSteps.ts +5 -5
- package/model/stakeStep.ts +1 -1
- package/model/stepStatus.ts +1 -1
- package/model/{rFQMarketPlaceMetadata.ts → submitQuoteForRFQDocumentRequest.ts} +5 -17
- package/model/tokenEnum.ts +1 -3
- package/model/unstakeStep.ts +1 -1
- package/model/unstakeStepType.ts +1 -1
- package/model/validatorContractTypeEnum.ts +18 -0
- package/model/validatorInfo.ts +23 -3
- package/model/validatorInfoValidatorType.ts +41 -0
- package/model/validatorInfoValidatorTypeContract.ts +40 -0
- package/model/validatorKeyHolderEnum.ts +18 -0
- package/model/webhookPayloadRFQAvailable.ts +3 -3
- package/model/webhookPayloadRFQEscrowReleasedDetails.ts +6 -0
- package/model/webhookPayloadRFQValidatorWithdrawalChange.ts +3 -3
- package/model/{webhookPayloadRFQValidatorWithdrawalChangeDetailsInner.ts → webhookPayloadRFQValidatorWithdrawalChangeDetails.ts} +2 -8
- package/model/withdrawalStep.ts +1 -1
- package/model/withdrawalStepType.ts +1 -1
- package/package.json +1 -1
- package/api/stakingPartnerValidatorKeysApi.ts +0 -292
- package/dist/api/stakingPartnerValidatorKeysApi.js +0 -265
- package/dist/model/getRewardsStatistics200ResponseInner.js +0 -48
- package/dist/model/getValidatorKeys200ResponseInner.d.ts +0 -40
- package/dist/model/getValidatorKeys200ResponseInner.js +0 -43
- package/dist/model/portfolioTableRow.js +0 -58
- package/dist/model/rFQMarketPlaceMetadata.d.ts +0 -32
- package/dist/model/rFQMarketPlaceMetadata.js +0 -33
- package/dist/model/registerRewardRecipientSettlementRequestInner.js +0 -33
- package/model/getRewardsStatistics200ResponseInner.ts +0 -55
- package/model/getValidatorKeys200ResponseInner.ts +0 -61
- package/model/portfolioTableRow.ts +0 -70
|
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.ValidatorMarketplaceBuyersApi = exports.ValidatorMarketplaceBuyersApiApiKeys = void 0;
|
|
18
18
|
const request_1 = __importDefault(require("request"));
|
|
19
19
|
const models_1 = require("../model/models");
|
|
20
20
|
const models_2 = require("../model/models");
|
|
@@ -23,11 +23,11 @@ let defaultBasePath = '/v1';
|
|
|
23
23
|
// ===============================================
|
|
24
24
|
// This file is autogenerated - Please do not edit
|
|
25
25
|
// ===============================================
|
|
26
|
-
var
|
|
27
|
-
(function (
|
|
28
|
-
|
|
29
|
-
})(
|
|
30
|
-
class
|
|
26
|
+
var ValidatorMarketplaceBuyersApiApiKeys;
|
|
27
|
+
(function (ValidatorMarketplaceBuyersApiApiKeys) {
|
|
28
|
+
ValidatorMarketplaceBuyersApiApiKeys[ValidatorMarketplaceBuyersApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
|
|
29
|
+
})(ValidatorMarketplaceBuyersApiApiKeys || (exports.ValidatorMarketplaceBuyersApiApiKeys = ValidatorMarketplaceBuyersApiApiKeys = {}));
|
|
30
|
+
class ValidatorMarketplaceBuyersApi {
|
|
31
31
|
constructor(basePathOrUsername, password, basePath) {
|
|
32
32
|
this._basePath = defaultBasePath;
|
|
33
33
|
this._defaultHeaders = {};
|
|
@@ -68,7 +68,7 @@ class RfqMarketPlaceBuyersApi {
|
|
|
68
68
|
this.authentications.default = auth;
|
|
69
69
|
}
|
|
70
70
|
setApiKey(key, value) {
|
|
71
|
-
this.authentications[
|
|
71
|
+
this.authentications[ValidatorMarketplaceBuyersApiApiKeys[key]].apiKey = value;
|
|
72
72
|
}
|
|
73
73
|
set accessToken(accessToken) {
|
|
74
74
|
this.authentications.bearerTokenAuth.accessToken = accessToken;
|
|
@@ -78,11 +78,11 @@ class RfqMarketPlaceBuyersApi {
|
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
|
-
* @summary Retrieve a specific RFQ
|
|
81
|
+
* @summary Retrieve a specific RFQ
|
|
82
82
|
* @param rfqId
|
|
83
83
|
*/
|
|
84
84
|
async getRFQDocumentForBuyer(rfqId, options = { headers: {} }) {
|
|
85
|
-
const localVarPath = this.basePath + '/
|
|
85
|
+
const localVarPath = this.basePath + '/validatorMarketplace/buyers/documents/{rfqId}'
|
|
86
86
|
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
87
87
|
let localVarQueryParameters = {};
|
|
88
88
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -144,10 +144,11 @@ class RfqMarketPlaceBuyersApi {
|
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
146
|
*
|
|
147
|
-
* @summary List
|
|
147
|
+
* @summary List RFQs
|
|
148
|
+
* @param status Filter by RFQ status
|
|
148
149
|
*/
|
|
149
|
-
async
|
|
150
|
-
const localVarPath = this.basePath + '/
|
|
150
|
+
async listRFQDocumentsForBuyer(status, options = { headers: {} }) {
|
|
151
|
+
const localVarPath = this.basePath + '/validatorMarketplace/buyers/documents';
|
|
151
152
|
let localVarQueryParameters = {};
|
|
152
153
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
153
154
|
const produces = ['application/json'];
|
|
@@ -159,6 +160,13 @@ class RfqMarketPlaceBuyersApi {
|
|
|
159
160
|
localVarHeaderParams.Accept = produces.join(',');
|
|
160
161
|
}
|
|
161
162
|
let localVarFormParams = {};
|
|
163
|
+
// verify required parameter 'status' is not null or undefined
|
|
164
|
+
if (status === null || status === undefined) {
|
|
165
|
+
throw new Error('Required parameter status was null or undefined when calling listRFQDocumentsForBuyer.');
|
|
166
|
+
}
|
|
167
|
+
if (status !== undefined) {
|
|
168
|
+
localVarQueryParameters['status'] = models_1.ObjectSerializer.serialize(status, "'open' | 'submitted' | 'accepted' | 'outbid' | 'rejected' | 'expired'");
|
|
169
|
+
}
|
|
162
170
|
Object.assign(localVarHeaderParams, options.headers);
|
|
163
171
|
let localVarUseFormData = false;
|
|
164
172
|
let localVarRequestOptions = {
|
|
@@ -204,12 +212,12 @@ class RfqMarketPlaceBuyersApi {
|
|
|
204
212
|
}
|
|
205
213
|
/**
|
|
206
214
|
*
|
|
207
|
-
* @summary Provide
|
|
215
|
+
* @summary Provide a transaction hash for an escrow deposit as part of settlement
|
|
208
216
|
* @param rfqId
|
|
209
217
|
* @param provideEscrowHashForRFQDocumentRequest
|
|
210
218
|
*/
|
|
211
219
|
async provideEscrowHashForRFQDocument(rfqId, provideEscrowHashForRFQDocumentRequest, options = { headers: {} }) {
|
|
212
|
-
const localVarPath = this.basePath + '/
|
|
220
|
+
const localVarPath = this.basePath + '/validatorMarketplace/buyers/documents/{rfqId}/provideEscrowHash'
|
|
213
221
|
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
214
222
|
let localVarQueryParameters = {};
|
|
215
223
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -275,12 +283,12 @@ class RfqMarketPlaceBuyersApi {
|
|
|
275
283
|
}
|
|
276
284
|
/**
|
|
277
285
|
*
|
|
278
|
-
* @summary Submit a quote for an RFQ
|
|
286
|
+
* @summary Submit a quote for an RFQ in ETH
|
|
279
287
|
* @param rfqId
|
|
280
|
-
* @param
|
|
288
|
+
* @param submitQuoteForRFQDocumentRequest
|
|
281
289
|
*/
|
|
282
|
-
async submitQuoteForRFQDocument(rfqId,
|
|
283
|
-
const localVarPath = this.basePath + '/
|
|
290
|
+
async submitQuoteForRFQDocument(rfqId, submitQuoteForRFQDocumentRequest, options = { headers: {} }) {
|
|
291
|
+
const localVarPath = this.basePath + '/validatorMarketplace/buyers/quotes/{rfqId}/submitQuote'
|
|
284
292
|
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
285
293
|
let localVarQueryParameters = {};
|
|
286
294
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -289,20 +297,20 @@ class RfqMarketPlaceBuyersApi {
|
|
|
289
297
|
if (rfqId === null || rfqId === undefined) {
|
|
290
298
|
throw new Error('Required parameter rfqId was null or undefined when calling submitQuoteForRFQDocument.');
|
|
291
299
|
}
|
|
292
|
-
// verify required parameter '
|
|
293
|
-
if (
|
|
294
|
-
throw new Error('Required parameter
|
|
300
|
+
// verify required parameter 'submitQuoteForRFQDocumentRequest' is not null or undefined
|
|
301
|
+
if (submitQuoteForRFQDocumentRequest === null || submitQuoteForRFQDocumentRequest === undefined) {
|
|
302
|
+
throw new Error('Required parameter submitQuoteForRFQDocumentRequest was null or undefined when calling submitQuoteForRFQDocument.');
|
|
295
303
|
}
|
|
296
304
|
Object.assign(localVarHeaderParams, options.headers);
|
|
297
305
|
let localVarUseFormData = false;
|
|
298
306
|
let localVarRequestOptions = {
|
|
299
|
-
method: '
|
|
307
|
+
method: 'PATCH',
|
|
300
308
|
qs: localVarQueryParameters,
|
|
301
309
|
headers: localVarHeaderParams,
|
|
302
310
|
uri: localVarPath,
|
|
303
311
|
useQuerystring: this._useQuerystring,
|
|
304
312
|
json: true,
|
|
305
|
-
body: models_1.ObjectSerializer.serialize(
|
|
313
|
+
body: models_1.ObjectSerializer.serialize(submitQuoteForRFQDocumentRequest, "SubmitQuoteForRFQDocumentRequest")
|
|
306
314
|
};
|
|
307
315
|
let authenticationPromise = Promise.resolve();
|
|
308
316
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
@@ -337,4 +345,4 @@ class RfqMarketPlaceBuyersApi {
|
|
|
337
345
|
});
|
|
338
346
|
}
|
|
339
347
|
}
|
|
340
|
-
exports.
|
|
348
|
+
exports.ValidatorMarketplaceBuyersApi = ValidatorMarketplaceBuyersApi;
|
|
@@ -11,16 +11,16 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/// <reference types="node" />
|
|
13
13
|
import http from 'http';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { CreateRFQDocumentRequest } from '../model/createRFQDocumentRequest';
|
|
15
|
+
import { ProvideEscrowHashForRFQDocumentRequest } from '../model/provideEscrowHashForRFQDocumentRequest';
|
|
16
16
|
import { RFQDocumentSeller } from '../model/rFQDocumentSeller';
|
|
17
|
-
import {
|
|
17
|
+
import { RejectQuoteForRFQDocumentRequest } from '../model/rejectQuoteForRFQDocumentRequest';
|
|
18
18
|
import { Interceptor } from '../model/models';
|
|
19
19
|
import { HttpBearerAuth, ApiKeyAuth, JWTAuth } from '../model/models';
|
|
20
|
-
export declare enum
|
|
20
|
+
export declare enum ValidatorMarketplaceSellersApiApiKeys {
|
|
21
21
|
ApiKeyAuth = 0
|
|
22
22
|
}
|
|
23
|
-
export declare class
|
|
23
|
+
export declare class ValidatorMarketplaceSellersApi {
|
|
24
24
|
protected _basePath: string;
|
|
25
25
|
protected _defaultHeaders: any;
|
|
26
26
|
protected _useQuerystring: boolean;
|
|
@@ -42,11 +42,11 @@ export declare class RfqMarketPlaceSellersApi {
|
|
|
42
42
|
private addInterceptor;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
|
-
* @summary Accept
|
|
45
|
+
* @summary Accept quote
|
|
46
46
|
* @param rfqId
|
|
47
|
-
* @param
|
|
47
|
+
* @param rejectQuoteForRFQDocumentRequest
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
acceptQuoteForRFQDocument(rfqId: string, rejectQuoteForRFQDocumentRequest: RejectQuoteForRFQDocumentRequest, options?: {
|
|
50
50
|
headers: {
|
|
51
51
|
[name: string]: string;
|
|
52
52
|
};
|
|
@@ -56,63 +56,64 @@ export declare class RfqMarketPlaceSellersApi {
|
|
|
56
56
|
}>;
|
|
57
57
|
/**
|
|
58
58
|
*
|
|
59
|
-
* @summary Create a new RFQ
|
|
60
|
-
* @param
|
|
59
|
+
* @summary Create a new RFQ
|
|
60
|
+
* @param createRFQDocumentRequest
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
createRFQDocument(createRFQDocumentRequest: CreateRFQDocumentRequest, options?: {
|
|
63
63
|
headers: {
|
|
64
64
|
[name: string]: string;
|
|
65
65
|
};
|
|
66
66
|
}): Promise<{
|
|
67
67
|
response: http.IncomingMessage;
|
|
68
|
-
body
|
|
68
|
+
body: RFQDocumentSeller;
|
|
69
69
|
}>;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
|
-
* @summary
|
|
72
|
+
* @summary Retrieve a specific RFQ by ID for the seller
|
|
73
73
|
* @param rfqId
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
getRFQDocument(rfqId: string, options?: {
|
|
76
76
|
headers: {
|
|
77
77
|
[name: string]: string;
|
|
78
78
|
};
|
|
79
79
|
}): Promise<{
|
|
80
80
|
response: http.IncomingMessage;
|
|
81
|
-
body
|
|
81
|
+
body: RFQDocumentSeller;
|
|
82
82
|
}>;
|
|
83
83
|
/**
|
|
84
84
|
*
|
|
85
|
-
* @summary
|
|
86
|
-
* @param
|
|
85
|
+
* @summary List all RFQs posted by the seller with optional status filter
|
|
86
|
+
* @param status Filter by RFQ status
|
|
87
87
|
*/
|
|
88
|
-
|
|
88
|
+
listRFQDocuments(status?: 'open' | 'accepted' | 'escrow_paid' | 'reward_recipient_settling' | 'reward_recipient_settled' | 'escrow_released', options?: {
|
|
89
89
|
headers: {
|
|
90
90
|
[name: string]: string;
|
|
91
91
|
};
|
|
92
92
|
}): Promise<{
|
|
93
93
|
response: http.IncomingMessage;
|
|
94
|
-
body: RFQDocumentSeller
|
|
94
|
+
body: Array<RFQDocumentSeller>;
|
|
95
95
|
}>;
|
|
96
96
|
/**
|
|
97
97
|
*
|
|
98
|
-
* @summary
|
|
99
|
-
* @param
|
|
98
|
+
* @summary Register withdrawal recipient settlement hash for an RFQ
|
|
99
|
+
* @param rfqId
|
|
100
|
+
* @param provideEscrowHashForRFQDocumentRequest
|
|
100
101
|
*/
|
|
101
|
-
|
|
102
|
+
registerWithdrawalRecipientSettlement(rfqId: string, provideEscrowHashForRFQDocumentRequest: ProvideEscrowHashForRFQDocumentRequest, options?: {
|
|
102
103
|
headers: {
|
|
103
104
|
[name: string]: string;
|
|
104
105
|
};
|
|
105
106
|
}): Promise<{
|
|
106
107
|
response: http.IncomingMessage;
|
|
107
|
-
body
|
|
108
|
+
body?: any;
|
|
108
109
|
}>;
|
|
109
110
|
/**
|
|
110
111
|
*
|
|
111
|
-
* @summary
|
|
112
|
+
* @summary Reject Quote
|
|
112
113
|
* @param rfqId
|
|
113
|
-
* @param
|
|
114
|
+
* @param rejectQuoteForRFQDocumentRequest
|
|
114
115
|
*/
|
|
115
|
-
|
|
116
|
+
rejectQuoteForRFQDocument(rfqId: string, rejectQuoteForRFQDocumentRequest: RejectQuoteForRFQDocumentRequest, options?: {
|
|
116
117
|
headers: {
|
|
117
118
|
[name: string]: string;
|
|
118
119
|
};
|
|
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.ValidatorMarketplaceSellersApi = exports.ValidatorMarketplaceSellersApiApiKeys = void 0;
|
|
18
18
|
const request_1 = __importDefault(require("request"));
|
|
19
19
|
const models_1 = require("../model/models");
|
|
20
20
|
const models_2 = require("../model/models");
|
|
@@ -23,11 +23,11 @@ let defaultBasePath = '/v1';
|
|
|
23
23
|
// ===============================================
|
|
24
24
|
// This file is autogenerated - Please do not edit
|
|
25
25
|
// ===============================================
|
|
26
|
-
var
|
|
27
|
-
(function (
|
|
28
|
-
|
|
29
|
-
})(
|
|
30
|
-
class
|
|
26
|
+
var ValidatorMarketplaceSellersApiApiKeys;
|
|
27
|
+
(function (ValidatorMarketplaceSellersApiApiKeys) {
|
|
28
|
+
ValidatorMarketplaceSellersApiApiKeys[ValidatorMarketplaceSellersApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
|
|
29
|
+
})(ValidatorMarketplaceSellersApiApiKeys || (exports.ValidatorMarketplaceSellersApiApiKeys = ValidatorMarketplaceSellersApiApiKeys = {}));
|
|
30
|
+
class ValidatorMarketplaceSellersApi {
|
|
31
31
|
constructor(basePathOrUsername, password, basePath) {
|
|
32
32
|
this._basePath = defaultBasePath;
|
|
33
33
|
this._defaultHeaders = {};
|
|
@@ -68,7 +68,7 @@ class RfqMarketPlaceSellersApi {
|
|
|
68
68
|
this.authentications.default = auth;
|
|
69
69
|
}
|
|
70
70
|
setApiKey(key, value) {
|
|
71
|
-
this.authentications[
|
|
71
|
+
this.authentications[ValidatorMarketplaceSellersApiApiKeys[key]].apiKey = value;
|
|
72
72
|
}
|
|
73
73
|
set accessToken(accessToken) {
|
|
74
74
|
this.authentications.bearerTokenAuth.accessToken = accessToken;
|
|
@@ -78,12 +78,12 @@ class RfqMarketPlaceSellersApi {
|
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
|
-
* @summary Accept
|
|
81
|
+
* @summary Accept quote
|
|
82
82
|
* @param rfqId
|
|
83
|
-
* @param
|
|
83
|
+
* @param rejectQuoteForRFQDocumentRequest
|
|
84
84
|
*/
|
|
85
|
-
async
|
|
86
|
-
const localVarPath = this.basePath + '/
|
|
85
|
+
async acceptQuoteForRFQDocument(rfqId, rejectQuoteForRFQDocumentRequest, options = { headers: {} }) {
|
|
86
|
+
const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents/{rfqId}/acceptQuote'
|
|
87
87
|
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
88
88
|
let localVarQueryParameters = {};
|
|
89
89
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -98,22 +98,22 @@ class RfqMarketPlaceSellersApi {
|
|
|
98
98
|
let localVarFormParams = {};
|
|
99
99
|
// verify required parameter 'rfqId' is not null or undefined
|
|
100
100
|
if (rfqId === null || rfqId === undefined) {
|
|
101
|
-
throw new Error('Required parameter rfqId was null or undefined when calling
|
|
101
|
+
throw new Error('Required parameter rfqId was null or undefined when calling acceptQuoteForRFQDocument.');
|
|
102
102
|
}
|
|
103
|
-
// verify required parameter '
|
|
104
|
-
if (
|
|
105
|
-
throw new Error('Required parameter
|
|
103
|
+
// verify required parameter 'rejectQuoteForRFQDocumentRequest' is not null or undefined
|
|
104
|
+
if (rejectQuoteForRFQDocumentRequest === null || rejectQuoteForRFQDocumentRequest === undefined) {
|
|
105
|
+
throw new Error('Required parameter rejectQuoteForRFQDocumentRequest was null or undefined when calling acceptQuoteForRFQDocument.');
|
|
106
106
|
}
|
|
107
107
|
Object.assign(localVarHeaderParams, options.headers);
|
|
108
108
|
let localVarUseFormData = false;
|
|
109
109
|
let localVarRequestOptions = {
|
|
110
|
-
method: '
|
|
110
|
+
method: 'PATCH',
|
|
111
111
|
qs: localVarQueryParameters,
|
|
112
112
|
headers: localVarHeaderParams,
|
|
113
113
|
uri: localVarPath,
|
|
114
114
|
useQuerystring: this._useQuerystring,
|
|
115
115
|
json: true,
|
|
116
|
-
body: models_1.ObjectSerializer.serialize(
|
|
116
|
+
body: models_1.ObjectSerializer.serialize(rejectQuoteForRFQDocumentRequest, "RejectQuoteForRFQDocumentRequest")
|
|
117
117
|
};
|
|
118
118
|
let authenticationPromise = Promise.resolve();
|
|
119
119
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
@@ -149,11 +149,11 @@ class RfqMarketPlaceSellersApi {
|
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
151
|
*
|
|
152
|
-
* @summary Create a new RFQ
|
|
153
|
-
* @param
|
|
152
|
+
* @summary Create a new RFQ
|
|
153
|
+
* @param createRFQDocumentRequest
|
|
154
154
|
*/
|
|
155
|
-
async
|
|
156
|
-
const localVarPath = this.basePath + '/
|
|
155
|
+
async createRFQDocument(createRFQDocumentRequest, options = { headers: {} }) {
|
|
156
|
+
const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents';
|
|
157
157
|
let localVarQueryParameters = {};
|
|
158
158
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
159
159
|
const produces = ['application/json'];
|
|
@@ -165,9 +165,9 @@ class RfqMarketPlaceSellersApi {
|
|
|
165
165
|
localVarHeaderParams.Accept = produces.join(',');
|
|
166
166
|
}
|
|
167
167
|
let localVarFormParams = {};
|
|
168
|
-
// verify required parameter '
|
|
169
|
-
if (
|
|
170
|
-
throw new Error('Required parameter
|
|
168
|
+
// verify required parameter 'createRFQDocumentRequest' is not null or undefined
|
|
169
|
+
if (createRFQDocumentRequest === null || createRFQDocumentRequest === undefined) {
|
|
170
|
+
throw new Error('Required parameter createRFQDocumentRequest was null or undefined when calling createRFQDocument.');
|
|
171
171
|
}
|
|
172
172
|
Object.assign(localVarHeaderParams, options.headers);
|
|
173
173
|
let localVarUseFormData = false;
|
|
@@ -178,7 +178,7 @@ class RfqMarketPlaceSellersApi {
|
|
|
178
178
|
uri: localVarPath,
|
|
179
179
|
useQuerystring: this._useQuerystring,
|
|
180
180
|
json: true,
|
|
181
|
-
body: models_1.ObjectSerializer.serialize(
|
|
181
|
+
body: models_1.ObjectSerializer.serialize(createRFQDocumentRequest, "CreateRFQDocumentRequest")
|
|
182
182
|
};
|
|
183
183
|
let authenticationPromise = Promise.resolve();
|
|
184
184
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
@@ -202,6 +202,7 @@ class RfqMarketPlaceSellersApi {
|
|
|
202
202
|
}
|
|
203
203
|
else {
|
|
204
204
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
205
|
+
body = models_1.ObjectSerializer.deserialize(body, "RFQDocumentSeller");
|
|
205
206
|
resolve({ response: response, body: body });
|
|
206
207
|
}
|
|
207
208
|
else {
|
|
@@ -214,11 +215,11 @@ class RfqMarketPlaceSellersApi {
|
|
|
214
215
|
}
|
|
215
216
|
/**
|
|
216
217
|
*
|
|
217
|
-
* @summary
|
|
218
|
+
* @summary Retrieve a specific RFQ by ID for the seller
|
|
218
219
|
* @param rfqId
|
|
219
220
|
*/
|
|
220
|
-
async
|
|
221
|
-
const localVarPath = this.basePath + '/
|
|
221
|
+
async getRFQDocument(rfqId, options = { headers: {} }) {
|
|
222
|
+
const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents/{rfqId}'
|
|
222
223
|
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
223
224
|
let localVarQueryParameters = {};
|
|
224
225
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -233,12 +234,12 @@ class RfqMarketPlaceSellersApi {
|
|
|
233
234
|
let localVarFormParams = {};
|
|
234
235
|
// verify required parameter 'rfqId' is not null or undefined
|
|
235
236
|
if (rfqId === null || rfqId === undefined) {
|
|
236
|
-
throw new Error('Required parameter rfqId was null or undefined when calling
|
|
237
|
+
throw new Error('Required parameter rfqId was null or undefined when calling getRFQDocument.');
|
|
237
238
|
}
|
|
238
239
|
Object.assign(localVarHeaderParams, options.headers);
|
|
239
240
|
let localVarUseFormData = false;
|
|
240
241
|
let localVarRequestOptions = {
|
|
241
|
-
method: '
|
|
242
|
+
method: 'GET',
|
|
242
243
|
qs: localVarQueryParameters,
|
|
243
244
|
headers: localVarHeaderParams,
|
|
244
245
|
uri: localVarPath,
|
|
@@ -267,6 +268,7 @@ class RfqMarketPlaceSellersApi {
|
|
|
267
268
|
}
|
|
268
269
|
else {
|
|
269
270
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
271
|
+
body = models_1.ObjectSerializer.deserialize(body, "RFQDocumentSeller");
|
|
270
272
|
resolve({ response: response, body: body });
|
|
271
273
|
}
|
|
272
274
|
else {
|
|
@@ -279,12 +281,11 @@ class RfqMarketPlaceSellersApi {
|
|
|
279
281
|
}
|
|
280
282
|
/**
|
|
281
283
|
*
|
|
282
|
-
* @summary
|
|
283
|
-
* @param
|
|
284
|
+
* @summary List all RFQs posted by the seller with optional status filter
|
|
285
|
+
* @param status Filter by RFQ status
|
|
284
286
|
*/
|
|
285
|
-
async
|
|
286
|
-
const localVarPath = this.basePath + '/
|
|
287
|
-
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
287
|
+
async listRFQDocuments(status, options = { headers: {} }) {
|
|
288
|
+
const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents';
|
|
288
289
|
let localVarQueryParameters = {};
|
|
289
290
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
290
291
|
const produces = ['application/json'];
|
|
@@ -296,9 +297,8 @@ class RfqMarketPlaceSellersApi {
|
|
|
296
297
|
localVarHeaderParams.Accept = produces.join(',');
|
|
297
298
|
}
|
|
298
299
|
let localVarFormParams = {};
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
throw new Error('Required parameter rfqId was null or undefined when calling getRFQDocumentForSeller.');
|
|
300
|
+
if (status !== undefined) {
|
|
301
|
+
localVarQueryParameters['status'] = models_1.ObjectSerializer.serialize(status, "'open' | 'accepted' | 'escrow_paid' | 'reward_recipient_settling' | 'reward_recipient_settled' | 'escrow_released'");
|
|
302
302
|
}
|
|
303
303
|
Object.assign(localVarHeaderParams, options.headers);
|
|
304
304
|
let localVarUseFormData = false;
|
|
@@ -332,7 +332,7 @@ class RfqMarketPlaceSellersApi {
|
|
|
332
332
|
}
|
|
333
333
|
else {
|
|
334
334
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
335
|
-
body = models_1.ObjectSerializer.deserialize(body, "RFQDocumentSeller");
|
|
335
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<RFQDocumentSeller>");
|
|
336
336
|
resolve({ response: response, body: body });
|
|
337
337
|
}
|
|
338
338
|
else {
|
|
@@ -345,11 +345,13 @@ class RfqMarketPlaceSellersApi {
|
|
|
345
345
|
}
|
|
346
346
|
/**
|
|
347
347
|
*
|
|
348
|
-
* @summary
|
|
349
|
-
* @param
|
|
348
|
+
* @summary Register withdrawal recipient settlement hash for an RFQ
|
|
349
|
+
* @param rfqId
|
|
350
|
+
* @param provideEscrowHashForRFQDocumentRequest
|
|
350
351
|
*/
|
|
351
|
-
async
|
|
352
|
-
const localVarPath = this.basePath + '/
|
|
352
|
+
async registerWithdrawalRecipientSettlement(rfqId, provideEscrowHashForRFQDocumentRequest, options = { headers: {} }) {
|
|
353
|
+
const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents/{rfqId}/registerWithdrawalRecipientSettlement'
|
|
354
|
+
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
353
355
|
let localVarQueryParameters = {};
|
|
354
356
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
355
357
|
const produces = ['application/json'];
|
|
@@ -361,18 +363,24 @@ class RfqMarketPlaceSellersApi {
|
|
|
361
363
|
localVarHeaderParams.Accept = produces.join(',');
|
|
362
364
|
}
|
|
363
365
|
let localVarFormParams = {};
|
|
364
|
-
|
|
365
|
-
|
|
366
|
+
// verify required parameter 'rfqId' is not null or undefined
|
|
367
|
+
if (rfqId === null || rfqId === undefined) {
|
|
368
|
+
throw new Error('Required parameter rfqId was null or undefined when calling registerWithdrawalRecipientSettlement.');
|
|
369
|
+
}
|
|
370
|
+
// verify required parameter 'provideEscrowHashForRFQDocumentRequest' is not null or undefined
|
|
371
|
+
if (provideEscrowHashForRFQDocumentRequest === null || provideEscrowHashForRFQDocumentRequest === undefined) {
|
|
372
|
+
throw new Error('Required parameter provideEscrowHashForRFQDocumentRequest was null or undefined when calling registerWithdrawalRecipientSettlement.');
|
|
366
373
|
}
|
|
367
374
|
Object.assign(localVarHeaderParams, options.headers);
|
|
368
375
|
let localVarUseFormData = false;
|
|
369
376
|
let localVarRequestOptions = {
|
|
370
|
-
method: '
|
|
377
|
+
method: 'PATCH',
|
|
371
378
|
qs: localVarQueryParameters,
|
|
372
379
|
headers: localVarHeaderParams,
|
|
373
380
|
uri: localVarPath,
|
|
374
381
|
useQuerystring: this._useQuerystring,
|
|
375
382
|
json: true,
|
|
383
|
+
body: models_1.ObjectSerializer.serialize(provideEscrowHashForRFQDocumentRequest, "ProvideEscrowHashForRFQDocumentRequest")
|
|
376
384
|
};
|
|
377
385
|
let authenticationPromise = Promise.resolve();
|
|
378
386
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
@@ -396,7 +404,6 @@ class RfqMarketPlaceSellersApi {
|
|
|
396
404
|
}
|
|
397
405
|
else {
|
|
398
406
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
399
|
-
body = models_1.ObjectSerializer.deserialize(body, "Array<RFQDocumentSeller>");
|
|
400
407
|
resolve({ response: response, body: body });
|
|
401
408
|
}
|
|
402
409
|
else {
|
|
@@ -409,12 +416,12 @@ class RfqMarketPlaceSellersApi {
|
|
|
409
416
|
}
|
|
410
417
|
/**
|
|
411
418
|
*
|
|
412
|
-
* @summary
|
|
419
|
+
* @summary Reject Quote
|
|
413
420
|
* @param rfqId
|
|
414
|
-
* @param
|
|
421
|
+
* @param rejectQuoteForRFQDocumentRequest
|
|
415
422
|
*/
|
|
416
|
-
async
|
|
417
|
-
const localVarPath = this.basePath + '/
|
|
423
|
+
async rejectQuoteForRFQDocument(rfqId, rejectQuoteForRFQDocumentRequest, options = { headers: {} }) {
|
|
424
|
+
const localVarPath = this.basePath + '/validatorMarketplace/buyers/documents/{rfqId}'
|
|
418
425
|
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
419
426
|
let localVarQueryParameters = {};
|
|
420
427
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -429,11 +436,11 @@ class RfqMarketPlaceSellersApi {
|
|
|
429
436
|
let localVarFormParams = {};
|
|
430
437
|
// verify required parameter 'rfqId' is not null or undefined
|
|
431
438
|
if (rfqId === null || rfqId === undefined) {
|
|
432
|
-
throw new Error('Required parameter rfqId was null or undefined when calling
|
|
439
|
+
throw new Error('Required parameter rfqId was null or undefined when calling rejectQuoteForRFQDocument.');
|
|
433
440
|
}
|
|
434
|
-
// verify required parameter '
|
|
435
|
-
if (
|
|
436
|
-
throw new Error('Required parameter
|
|
441
|
+
// verify required parameter 'rejectQuoteForRFQDocumentRequest' is not null or undefined
|
|
442
|
+
if (rejectQuoteForRFQDocumentRequest === null || rejectQuoteForRFQDocumentRequest === undefined) {
|
|
443
|
+
throw new Error('Required parameter rejectQuoteForRFQDocumentRequest was null or undefined when calling rejectQuoteForRFQDocument.');
|
|
437
444
|
}
|
|
438
445
|
Object.assign(localVarHeaderParams, options.headers);
|
|
439
446
|
let localVarUseFormData = false;
|
|
@@ -444,7 +451,7 @@ class RfqMarketPlaceSellersApi {
|
|
|
444
451
|
uri: localVarPath,
|
|
445
452
|
useQuerystring: this._useQuerystring,
|
|
446
453
|
json: true,
|
|
447
|
-
body: models_1.ObjectSerializer.serialize(
|
|
454
|
+
body: models_1.ObjectSerializer.serialize(rejectQuoteForRFQDocumentRequest, "RejectQuoteForRFQDocumentRequest")
|
|
448
455
|
};
|
|
449
456
|
let authenticationPromise = Promise.resolve();
|
|
450
457
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
@@ -479,4 +486,4 @@ class RfqMarketPlaceSellersApi {
|
|
|
479
486
|
});
|
|
480
487
|
}
|
|
481
488
|
}
|
|
482
|
-
exports.
|
|
489
|
+
exports.ValidatorMarketplaceSellersApi = ValidatorMarketplaceSellersApi;
|
|
@@ -15,10 +15,10 @@ import { WebHookLookupAnswer } from '../model/webHookLookupAnswer';
|
|
|
15
15
|
import { WebhookRegistration } from '../model/webhookRegistration';
|
|
16
16
|
import { Interceptor } from '../model/models';
|
|
17
17
|
import { HttpBearerAuth, ApiKeyAuth, JWTAuth } from '../model/models';
|
|
18
|
-
export declare enum
|
|
18
|
+
export declare enum ValidatorMarketplaceWebhooksApiApiKeys {
|
|
19
19
|
ApiKeyAuth = 0
|
|
20
20
|
}
|
|
21
|
-
export declare class
|
|
21
|
+
export declare class ValidatorMarketplaceWebhooksApi {
|
|
22
22
|
protected _basePath: string;
|
|
23
23
|
protected _defaultHeaders: any;
|
|
24
24
|
protected _useQuerystring: boolean;
|
|
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.ValidatorMarketplaceWebhooksApi = exports.ValidatorMarketplaceWebhooksApiApiKeys = void 0;
|
|
18
18
|
const request_1 = __importDefault(require("request"));
|
|
19
19
|
const models_1 = require("../model/models");
|
|
20
20
|
const models_2 = require("../model/models");
|
|
@@ -23,11 +23,11 @@ let defaultBasePath = '/v1';
|
|
|
23
23
|
// ===============================================
|
|
24
24
|
// This file is autogenerated - Please do not edit
|
|
25
25
|
// ===============================================
|
|
26
|
-
var
|
|
27
|
-
(function (
|
|
28
|
-
|
|
29
|
-
})(
|
|
30
|
-
class
|
|
26
|
+
var ValidatorMarketplaceWebhooksApiApiKeys;
|
|
27
|
+
(function (ValidatorMarketplaceWebhooksApiApiKeys) {
|
|
28
|
+
ValidatorMarketplaceWebhooksApiApiKeys[ValidatorMarketplaceWebhooksApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
|
|
29
|
+
})(ValidatorMarketplaceWebhooksApiApiKeys || (exports.ValidatorMarketplaceWebhooksApiApiKeys = ValidatorMarketplaceWebhooksApiApiKeys = {}));
|
|
30
|
+
class ValidatorMarketplaceWebhooksApi {
|
|
31
31
|
constructor(basePathOrUsername, password, basePath) {
|
|
32
32
|
this._basePath = defaultBasePath;
|
|
33
33
|
this._defaultHeaders = {};
|
|
@@ -68,7 +68,7 @@ class RfqMarketPlaceWebhooksApi {
|
|
|
68
68
|
this.authentications.default = auth;
|
|
69
69
|
}
|
|
70
70
|
setApiKey(key, value) {
|
|
71
|
-
this.authentications[
|
|
71
|
+
this.authentications[ValidatorMarketplaceWebhooksApiApiKeys[key]].apiKey = value;
|
|
72
72
|
}
|
|
73
73
|
set accessToken(accessToken) {
|
|
74
74
|
this.authentications.bearerTokenAuth.accessToken = accessToken;
|
|
@@ -82,7 +82,7 @@ class RfqMarketPlaceWebhooksApi {
|
|
|
82
82
|
* @param webhookId Unique identifier of the registered webhook
|
|
83
83
|
*/
|
|
84
84
|
async deleteWebhook(webhookId, options = { headers: {} }) {
|
|
85
|
-
const localVarPath = this.basePath + '/
|
|
85
|
+
const localVarPath = this.basePath + '/validatorMarketplace/webhooks/{webhookId}'
|
|
86
86
|
.replace('{' + 'webhookId' + '}', encodeURIComponent(String(webhookId)));
|
|
87
87
|
let localVarQueryParameters = {};
|
|
88
88
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
@@ -146,7 +146,7 @@ class RfqMarketPlaceWebhooksApi {
|
|
|
146
146
|
* @summary List all registered RFQ marketplace webhooks for the user
|
|
147
147
|
*/
|
|
148
148
|
async listRegisteredWebhooks(options = { headers: {} }) {
|
|
149
|
-
const localVarPath = this.basePath + '/
|
|
149
|
+
const localVarPath = this.basePath + '/validatorMarketplace/webhooks';
|
|
150
150
|
let localVarQueryParameters = {};
|
|
151
151
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
152
152
|
const produces = ['application/json'];
|
|
@@ -207,7 +207,7 @@ class RfqMarketPlaceWebhooksApi {
|
|
|
207
207
|
* @param webhookRegistration
|
|
208
208
|
*/
|
|
209
209
|
async registerWebhook(webhookRegistration, options = { headers: {} }) {
|
|
210
|
-
const localVarPath = this.basePath + '/
|
|
210
|
+
const localVarPath = this.basePath + '/validatorMarketplace/webhooks';
|
|
211
211
|
let localVarQueryParameters = {};
|
|
212
212
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
213
213
|
const produces = ['application/json'];
|
|
@@ -267,4 +267,4 @@ class RfqMarketPlaceWebhooksApi {
|
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
-
exports.
|
|
270
|
+
exports.ValidatorMarketplaceWebhooksApi = ValidatorMarketplaceWebhooksApi;
|