@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
package/api/statsApi.ts
CHANGED
|
@@ -16,7 +16,6 @@ import http from 'http';
|
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { ErrorResponse } from '../model/errorResponse';
|
|
19
|
-
import { GetRewardsStatistics200ResponseInner } from '../model/getRewardsStatistics200ResponseInner';
|
|
20
19
|
import { GetTransactionStatistics200ResponseInner } from '../model/getTransactionStatistics200ResponseInner';
|
|
21
20
|
|
|
22
21
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
@@ -96,78 +95,6 @@ export class StatsApi {
|
|
|
96
95
|
this.interceptors.push(interceptor);
|
|
97
96
|
}
|
|
98
97
|
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
* @summary Get rewards statistics
|
|
102
|
-
* @param startDate Start date for filtering rewards statistics
|
|
103
|
-
* @param endDate End date for filtering rewards statistics
|
|
104
|
-
*/
|
|
105
|
-
public async getRewardsStatistics (startDate?: string, endDate?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<GetRewardsStatistics200ResponseInner>; }> {
|
|
106
|
-
const localVarPath = this.basePath + '/stats/rewards';
|
|
107
|
-
let localVarQueryParameters: any = {};
|
|
108
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
109
|
-
const produces = ['application/json'];
|
|
110
|
-
// give precedence to 'application/json'
|
|
111
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
112
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
113
|
-
} else {
|
|
114
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
115
|
-
}
|
|
116
|
-
let localVarFormParams: any = {};
|
|
117
|
-
|
|
118
|
-
if (startDate !== undefined) {
|
|
119
|
-
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "string");
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (endDate !== undefined) {
|
|
123
|
-
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "string");
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
127
|
-
|
|
128
|
-
let localVarUseFormData = false;
|
|
129
|
-
|
|
130
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
131
|
-
method: 'GET',
|
|
132
|
-
qs: localVarQueryParameters,
|
|
133
|
-
headers: localVarHeaderParams,
|
|
134
|
-
uri: localVarPath,
|
|
135
|
-
useQuerystring: this._useQuerystring,
|
|
136
|
-
json: true,
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
let authenticationPromise = Promise.resolve();
|
|
140
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
141
|
-
|
|
142
|
-
let interceptorPromise = authenticationPromise;
|
|
143
|
-
for (const interceptor of this.interceptors) {
|
|
144
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
return interceptorPromise.then(() => {
|
|
148
|
-
if (Object.keys(localVarFormParams).length) {
|
|
149
|
-
if (localVarUseFormData) {
|
|
150
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
151
|
-
} else {
|
|
152
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
return new Promise<{ response: http.IncomingMessage; body: Array<GetRewardsStatistics200ResponseInner>; }>((resolve, reject) => {
|
|
156
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
157
|
-
if (error) {
|
|
158
|
-
reject(error);
|
|
159
|
-
} else {
|
|
160
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
161
|
-
body = ObjectSerializer.deserialize(body, "Array<GetRewardsStatistics200ResponseInner>");
|
|
162
|
-
resolve({ response: response, body: body });
|
|
163
|
-
} else {
|
|
164
|
-
reject(new HttpError(response, body, response.statusCode));
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
});
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
98
|
/**
|
|
172
99
|
*
|
|
173
100
|
* @summary Get transaction statistics
|
|
@@ -17,8 +17,8 @@ import http from 'http';
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { ErrorResponse } from '../model/errorResponse';
|
|
19
19
|
import { ProvideEscrowHashForRFQDocumentRequest } from '../model/provideEscrowHashForRFQDocumentRequest';
|
|
20
|
-
import { Quote } from '../model/quote';
|
|
21
20
|
import { RFQDocumentBuyer } from '../model/rFQDocumentBuyer';
|
|
21
|
+
import { SubmitQuoteForRFQDocumentRequest } from '../model/submitQuoteForRFQDocumentRequest';
|
|
22
22
|
|
|
23
23
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
24
24
|
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
|
|
@@ -31,11 +31,11 @@ let defaultBasePath = '/v1';
|
|
|
31
31
|
// This file is autogenerated - Please do not edit
|
|
32
32
|
// ===============================================
|
|
33
33
|
|
|
34
|
-
export enum
|
|
34
|
+
export enum ValidatorMarketplaceBuyersApiApiKeys {
|
|
35
35
|
ApiKeyAuth,
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export class
|
|
38
|
+
export class ValidatorMarketplaceBuyersApi {
|
|
39
39
|
protected _basePath = defaultBasePath;
|
|
40
40
|
protected _defaultHeaders : any = {};
|
|
41
41
|
protected _useQuerystring : boolean = false;
|
|
@@ -85,8 +85,8 @@ export class RfqMarketPlaceBuyersApi {
|
|
|
85
85
|
this.authentications.default = auth;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
private setApiKey(key:
|
|
89
|
-
(this.authentications as any)[
|
|
88
|
+
private setApiKey(key: ValidatorMarketplaceBuyersApiApiKeys, value: string) {
|
|
89
|
+
(this.authentications as any)[ValidatorMarketplaceBuyersApiApiKeys[key]].apiKey = value;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
set accessToken(accessToken: string | (() => string)) {
|
|
@@ -99,11 +99,11 @@ export class RfqMarketPlaceBuyersApi {
|
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
*
|
|
102
|
-
* @summary Retrieve a specific RFQ
|
|
102
|
+
* @summary Retrieve a specific RFQ
|
|
103
103
|
* @param rfqId
|
|
104
104
|
*/
|
|
105
105
|
public async getRFQDocumentForBuyer (rfqId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: RFQDocumentBuyer; }> {
|
|
106
|
-
const localVarPath = this.basePath + '/
|
|
106
|
+
const localVarPath = this.basePath + '/validatorMarketplace/buyers/documents/{rfqId}'
|
|
107
107
|
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
108
108
|
let localVarQueryParameters: any = {};
|
|
109
109
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -168,10 +168,11 @@ export class RfqMarketPlaceBuyersApi {
|
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
170
|
*
|
|
171
|
-
* @summary List
|
|
171
|
+
* @summary List RFQs
|
|
172
|
+
* @param status Filter by RFQ status
|
|
172
173
|
*/
|
|
173
|
-
public async
|
|
174
|
-
const localVarPath = this.basePath + '/
|
|
174
|
+
public async listRFQDocumentsForBuyer (status: 'open' | 'submitted' | 'accepted' | 'outbid' | 'rejected' | 'expired', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<RFQDocumentBuyer>; }> {
|
|
175
|
+
const localVarPath = this.basePath + '/validatorMarketplace/buyers/documents';
|
|
175
176
|
let localVarQueryParameters: any = {};
|
|
176
177
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
177
178
|
const produces = ['application/json'];
|
|
@@ -183,6 +184,15 @@ export class RfqMarketPlaceBuyersApi {
|
|
|
183
184
|
}
|
|
184
185
|
let localVarFormParams: any = {};
|
|
185
186
|
|
|
187
|
+
// verify required parameter 'status' is not null or undefined
|
|
188
|
+
if (status === null || status === undefined) {
|
|
189
|
+
throw new Error('Required parameter status was null or undefined when calling listRFQDocumentsForBuyer.');
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
if (status !== undefined) {
|
|
193
|
+
localVarQueryParameters['status'] = ObjectSerializer.serialize(status, "'open' | 'submitted' | 'accepted' | 'outbid' | 'rejected' | 'expired'");
|
|
194
|
+
}
|
|
195
|
+
|
|
186
196
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
187
197
|
|
|
188
198
|
let localVarUseFormData = false;
|
|
@@ -230,12 +240,12 @@ export class RfqMarketPlaceBuyersApi {
|
|
|
230
240
|
}
|
|
231
241
|
/**
|
|
232
242
|
*
|
|
233
|
-
* @summary Provide
|
|
243
|
+
* @summary Provide a transaction hash for an escrow deposit as part of settlement
|
|
234
244
|
* @param rfqId
|
|
235
245
|
* @param provideEscrowHashForRFQDocumentRequest
|
|
236
246
|
*/
|
|
237
247
|
public async provideEscrowHashForRFQDocument (rfqId: string, provideEscrowHashForRFQDocumentRequest: ProvideEscrowHashForRFQDocumentRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
238
|
-
const localVarPath = this.basePath + '/
|
|
248
|
+
const localVarPath = this.basePath + '/validatorMarketplace/buyers/documents/{rfqId}/provideEscrowHash'
|
|
239
249
|
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
240
250
|
let localVarQueryParameters: any = {};
|
|
241
251
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -305,12 +315,12 @@ export class RfqMarketPlaceBuyersApi {
|
|
|
305
315
|
}
|
|
306
316
|
/**
|
|
307
317
|
*
|
|
308
|
-
* @summary Submit a quote for an RFQ
|
|
318
|
+
* @summary Submit a quote for an RFQ in ETH
|
|
309
319
|
* @param rfqId
|
|
310
|
-
* @param
|
|
320
|
+
* @param submitQuoteForRFQDocumentRequest
|
|
311
321
|
*/
|
|
312
|
-
public async submitQuoteForRFQDocument (rfqId: string,
|
|
313
|
-
const localVarPath = this.basePath + '/
|
|
322
|
+
public async submitQuoteForRFQDocument (rfqId: string, submitQuoteForRFQDocumentRequest: SubmitQuoteForRFQDocumentRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
323
|
+
const localVarPath = this.basePath + '/validatorMarketplace/buyers/quotes/{rfqId}/submitQuote'
|
|
314
324
|
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
315
325
|
let localVarQueryParameters: any = {};
|
|
316
326
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -321,9 +331,9 @@ export class RfqMarketPlaceBuyersApi {
|
|
|
321
331
|
throw new Error('Required parameter rfqId was null or undefined when calling submitQuoteForRFQDocument.');
|
|
322
332
|
}
|
|
323
333
|
|
|
324
|
-
// verify required parameter '
|
|
325
|
-
if (
|
|
326
|
-
throw new Error('Required parameter
|
|
334
|
+
// verify required parameter 'submitQuoteForRFQDocumentRequest' is not null or undefined
|
|
335
|
+
if (submitQuoteForRFQDocumentRequest === null || submitQuoteForRFQDocumentRequest === undefined) {
|
|
336
|
+
throw new Error('Required parameter submitQuoteForRFQDocumentRequest was null or undefined when calling submitQuoteForRFQDocument.');
|
|
327
337
|
}
|
|
328
338
|
|
|
329
339
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -331,13 +341,13 @@ export class RfqMarketPlaceBuyersApi {
|
|
|
331
341
|
let localVarUseFormData = false;
|
|
332
342
|
|
|
333
343
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
334
|
-
method: '
|
|
344
|
+
method: 'PATCH',
|
|
335
345
|
qs: localVarQueryParameters,
|
|
336
346
|
headers: localVarHeaderParams,
|
|
337
347
|
uri: localVarPath,
|
|
338
348
|
useQuerystring: this._useQuerystring,
|
|
339
349
|
json: true,
|
|
340
|
-
body: ObjectSerializer.serialize(
|
|
350
|
+
body: ObjectSerializer.serialize(submitQuoteForRFQDocumentRequest, "SubmitQuoteForRFQDocumentRequest")
|
|
341
351
|
};
|
|
342
352
|
|
|
343
353
|
let authenticationPromise = Promise.resolve();
|
|
@@ -15,11 +15,11 @@ import localVarRequest from 'request';
|
|
|
15
15
|
import http from 'http';
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
|
-
import {
|
|
19
|
-
import { CreateRFQDocumentForSellerRequest } from '../model/createRFQDocumentForSellerRequest';
|
|
18
|
+
import { CreateRFQDocumentRequest } from '../model/createRFQDocumentRequest';
|
|
20
19
|
import { ErrorResponse } from '../model/errorResponse';
|
|
20
|
+
import { ProvideEscrowHashForRFQDocumentRequest } from '../model/provideEscrowHashForRFQDocumentRequest';
|
|
21
21
|
import { RFQDocumentSeller } from '../model/rFQDocumentSeller';
|
|
22
|
-
import {
|
|
22
|
+
import { RejectQuoteForRFQDocumentRequest } from '../model/rejectQuoteForRFQDocumentRequest';
|
|
23
23
|
|
|
24
24
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
25
25
|
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
|
|
@@ -32,11 +32,11 @@ let defaultBasePath = '/v1';
|
|
|
32
32
|
// This file is autogenerated - Please do not edit
|
|
33
33
|
// ===============================================
|
|
34
34
|
|
|
35
|
-
export enum
|
|
35
|
+
export enum ValidatorMarketplaceSellersApiApiKeys {
|
|
36
36
|
ApiKeyAuth,
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
export class
|
|
39
|
+
export class ValidatorMarketplaceSellersApi {
|
|
40
40
|
protected _basePath = defaultBasePath;
|
|
41
41
|
protected _defaultHeaders : any = {};
|
|
42
42
|
protected _useQuerystring : boolean = false;
|
|
@@ -86,8 +86,8 @@ export class RfqMarketPlaceSellersApi {
|
|
|
86
86
|
this.authentications.default = auth;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
private setApiKey(key:
|
|
90
|
-
(this.authentications as any)[
|
|
89
|
+
private setApiKey(key: ValidatorMarketplaceSellersApiApiKeys, value: string) {
|
|
90
|
+
(this.authentications as any)[ValidatorMarketplaceSellersApiApiKeys[key]].apiKey = value;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
set accessToken(accessToken: string | (() => string)) {
|
|
@@ -100,12 +100,12 @@ export class RfqMarketPlaceSellersApi {
|
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
|
-
* @summary Accept
|
|
103
|
+
* @summary Accept quote
|
|
104
104
|
* @param rfqId
|
|
105
|
-
* @param
|
|
105
|
+
* @param rejectQuoteForRFQDocumentRequest
|
|
106
106
|
*/
|
|
107
|
-
public async
|
|
108
|
-
const localVarPath = this.basePath + '/
|
|
107
|
+
public async acceptQuoteForRFQDocument (rfqId: string, rejectQuoteForRFQDocumentRequest: RejectQuoteForRFQDocumentRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
108
|
+
const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents/{rfqId}/acceptQuote'
|
|
109
109
|
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
110
110
|
let localVarQueryParameters: any = {};
|
|
111
111
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -120,12 +120,12 @@ export class RfqMarketPlaceSellersApi {
|
|
|
120
120
|
|
|
121
121
|
// verify required parameter 'rfqId' is not null or undefined
|
|
122
122
|
if (rfqId === null || rfqId === undefined) {
|
|
123
|
-
throw new Error('Required parameter rfqId was null or undefined when calling
|
|
123
|
+
throw new Error('Required parameter rfqId was null or undefined when calling acceptQuoteForRFQDocument.');
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
// verify required parameter '
|
|
127
|
-
if (
|
|
128
|
-
throw new Error('Required parameter
|
|
126
|
+
// verify required parameter 'rejectQuoteForRFQDocumentRequest' is not null or undefined
|
|
127
|
+
if (rejectQuoteForRFQDocumentRequest === null || rejectQuoteForRFQDocumentRequest === undefined) {
|
|
128
|
+
throw new Error('Required parameter rejectQuoteForRFQDocumentRequest was null or undefined when calling acceptQuoteForRFQDocument.');
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -133,13 +133,13 @@ export class RfqMarketPlaceSellersApi {
|
|
|
133
133
|
let localVarUseFormData = false;
|
|
134
134
|
|
|
135
135
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
136
|
-
method: '
|
|
136
|
+
method: 'PATCH',
|
|
137
137
|
qs: localVarQueryParameters,
|
|
138
138
|
headers: localVarHeaderParams,
|
|
139
139
|
uri: localVarPath,
|
|
140
140
|
useQuerystring: this._useQuerystring,
|
|
141
141
|
json: true,
|
|
142
|
-
body: ObjectSerializer.serialize(
|
|
142
|
+
body: ObjectSerializer.serialize(rejectQuoteForRFQDocumentRequest, "RejectQuoteForRFQDocumentRequest")
|
|
143
143
|
};
|
|
144
144
|
|
|
145
145
|
let authenticationPromise = Promise.resolve();
|
|
@@ -175,11 +175,11 @@ export class RfqMarketPlaceSellersApi {
|
|
|
175
175
|
}
|
|
176
176
|
/**
|
|
177
177
|
*
|
|
178
|
-
* @summary Create a new RFQ
|
|
179
|
-
* @param
|
|
178
|
+
* @summary Create a new RFQ
|
|
179
|
+
* @param createRFQDocumentRequest
|
|
180
180
|
*/
|
|
181
|
-
public async
|
|
182
|
-
const localVarPath = this.basePath + '/
|
|
181
|
+
public async createRFQDocument (createRFQDocumentRequest: CreateRFQDocumentRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: RFQDocumentSeller; }> {
|
|
182
|
+
const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents';
|
|
183
183
|
let localVarQueryParameters: any = {};
|
|
184
184
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
185
185
|
const produces = ['application/json'];
|
|
@@ -191,9 +191,9 @@ export class RfqMarketPlaceSellersApi {
|
|
|
191
191
|
}
|
|
192
192
|
let localVarFormParams: any = {};
|
|
193
193
|
|
|
194
|
-
// verify required parameter '
|
|
195
|
-
if (
|
|
196
|
-
throw new Error('Required parameter
|
|
194
|
+
// verify required parameter 'createRFQDocumentRequest' is not null or undefined
|
|
195
|
+
if (createRFQDocumentRequest === null || createRFQDocumentRequest === undefined) {
|
|
196
|
+
throw new Error('Required parameter createRFQDocumentRequest was null or undefined when calling createRFQDocument.');
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -207,7 +207,7 @@ export class RfqMarketPlaceSellersApi {
|
|
|
207
207
|
uri: localVarPath,
|
|
208
208
|
useQuerystring: this._useQuerystring,
|
|
209
209
|
json: true,
|
|
210
|
-
body: ObjectSerializer.serialize(
|
|
210
|
+
body: ObjectSerializer.serialize(createRFQDocumentRequest, "CreateRFQDocumentRequest")
|
|
211
211
|
};
|
|
212
212
|
|
|
213
213
|
let authenticationPromise = Promise.resolve();
|
|
@@ -226,12 +226,13 @@ export class RfqMarketPlaceSellersApi {
|
|
|
226
226
|
localVarRequestOptions.form = localVarFormParams;
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
return new Promise<{ response: http.IncomingMessage; body
|
|
229
|
+
return new Promise<{ response: http.IncomingMessage; body: RFQDocumentSeller; }>((resolve, reject) => {
|
|
230
230
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
231
231
|
if (error) {
|
|
232
232
|
reject(error);
|
|
233
233
|
} else {
|
|
234
234
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
235
|
+
body = ObjectSerializer.deserialize(body, "RFQDocumentSeller");
|
|
235
236
|
resolve({ response: response, body: body });
|
|
236
237
|
} else {
|
|
237
238
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -243,11 +244,11 @@ export class RfqMarketPlaceSellersApi {
|
|
|
243
244
|
}
|
|
244
245
|
/**
|
|
245
246
|
*
|
|
246
|
-
* @summary
|
|
247
|
+
* @summary Retrieve a specific RFQ by ID for the seller
|
|
247
248
|
* @param rfqId
|
|
248
249
|
*/
|
|
249
|
-
public async
|
|
250
|
-
const localVarPath = this.basePath + '/
|
|
250
|
+
public async getRFQDocument (rfqId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: RFQDocumentSeller; }> {
|
|
251
|
+
const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents/{rfqId}'
|
|
251
252
|
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
252
253
|
let localVarQueryParameters: any = {};
|
|
253
254
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -262,7 +263,7 @@ export class RfqMarketPlaceSellersApi {
|
|
|
262
263
|
|
|
263
264
|
// verify required parameter 'rfqId' is not null or undefined
|
|
264
265
|
if (rfqId === null || rfqId === undefined) {
|
|
265
|
-
throw new Error('Required parameter rfqId was null or undefined when calling
|
|
266
|
+
throw new Error('Required parameter rfqId was null or undefined when calling getRFQDocument.');
|
|
266
267
|
}
|
|
267
268
|
|
|
268
269
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -270,7 +271,7 @@ export class RfqMarketPlaceSellersApi {
|
|
|
270
271
|
let localVarUseFormData = false;
|
|
271
272
|
|
|
272
273
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
273
|
-
method: '
|
|
274
|
+
method: 'GET',
|
|
274
275
|
qs: localVarQueryParameters,
|
|
275
276
|
headers: localVarHeaderParams,
|
|
276
277
|
uri: localVarPath,
|
|
@@ -294,12 +295,13 @@ export class RfqMarketPlaceSellersApi {
|
|
|
294
295
|
localVarRequestOptions.form = localVarFormParams;
|
|
295
296
|
}
|
|
296
297
|
}
|
|
297
|
-
return new Promise<{ response: http.IncomingMessage; body
|
|
298
|
+
return new Promise<{ response: http.IncomingMessage; body: RFQDocumentSeller; }>((resolve, reject) => {
|
|
298
299
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
299
300
|
if (error) {
|
|
300
301
|
reject(error);
|
|
301
302
|
} else {
|
|
302
303
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
304
|
+
body = ObjectSerializer.deserialize(body, "RFQDocumentSeller");
|
|
303
305
|
resolve({ response: response, body: body });
|
|
304
306
|
} else {
|
|
305
307
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -311,12 +313,11 @@ export class RfqMarketPlaceSellersApi {
|
|
|
311
313
|
}
|
|
312
314
|
/**
|
|
313
315
|
*
|
|
314
|
-
* @summary
|
|
315
|
-
* @param
|
|
316
|
+
* @summary List all RFQs posted by the seller with optional status filter
|
|
317
|
+
* @param status Filter by RFQ status
|
|
316
318
|
*/
|
|
317
|
-
public async
|
|
318
|
-
const localVarPath = this.basePath + '/
|
|
319
|
-
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
319
|
+
public async listRFQDocuments (status?: 'open' | 'accepted' | 'escrow_paid' | 'reward_recipient_settling' | 'reward_recipient_settled' | 'escrow_released', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<RFQDocumentSeller>; }> {
|
|
320
|
+
const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents';
|
|
320
321
|
let localVarQueryParameters: any = {};
|
|
321
322
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
322
323
|
const produces = ['application/json'];
|
|
@@ -328,9 +329,8 @@ export class RfqMarketPlaceSellersApi {
|
|
|
328
329
|
}
|
|
329
330
|
let localVarFormParams: any = {};
|
|
330
331
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
throw new Error('Required parameter rfqId was null or undefined when calling getRFQDocumentForSeller.');
|
|
332
|
+
if (status !== undefined) {
|
|
333
|
+
localVarQueryParameters['status'] = ObjectSerializer.serialize(status, "'open' | 'accepted' | 'escrow_paid' | 'reward_recipient_settling' | 'reward_recipient_settled' | 'escrow_released'");
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -362,13 +362,13 @@ export class RfqMarketPlaceSellersApi {
|
|
|
362
362
|
localVarRequestOptions.form = localVarFormParams;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
return new Promise<{ response: http.IncomingMessage; body: RFQDocumentSeller
|
|
365
|
+
return new Promise<{ response: http.IncomingMessage; body: Array<RFQDocumentSeller>; }>((resolve, reject) => {
|
|
366
366
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
367
367
|
if (error) {
|
|
368
368
|
reject(error);
|
|
369
369
|
} else {
|
|
370
370
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
371
|
-
body = ObjectSerializer.deserialize(body, "RFQDocumentSeller");
|
|
371
|
+
body = ObjectSerializer.deserialize(body, "Array<RFQDocumentSeller>");
|
|
372
372
|
resolve({ response: response, body: body });
|
|
373
373
|
} else {
|
|
374
374
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -380,11 +380,13 @@ export class RfqMarketPlaceSellersApi {
|
|
|
380
380
|
}
|
|
381
381
|
/**
|
|
382
382
|
*
|
|
383
|
-
* @summary
|
|
384
|
-
* @param
|
|
383
|
+
* @summary Register withdrawal recipient settlement hash for an RFQ
|
|
384
|
+
* @param rfqId
|
|
385
|
+
* @param provideEscrowHashForRFQDocumentRequest
|
|
385
386
|
*/
|
|
386
|
-
public async
|
|
387
|
-
const localVarPath = this.basePath + '/
|
|
387
|
+
public async registerWithdrawalRecipientSettlement (rfqId: string, provideEscrowHashForRFQDocumentRequest: ProvideEscrowHashForRFQDocumentRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
388
|
+
const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents/{rfqId}/registerWithdrawalRecipientSettlement'
|
|
389
|
+
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
388
390
|
let localVarQueryParameters: any = {};
|
|
389
391
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
390
392
|
const produces = ['application/json'];
|
|
@@ -396,8 +398,14 @@ export class RfqMarketPlaceSellersApi {
|
|
|
396
398
|
}
|
|
397
399
|
let localVarFormParams: any = {};
|
|
398
400
|
|
|
399
|
-
|
|
400
|
-
|
|
401
|
+
// verify required parameter 'rfqId' is not null or undefined
|
|
402
|
+
if (rfqId === null || rfqId === undefined) {
|
|
403
|
+
throw new Error('Required parameter rfqId was null or undefined when calling registerWithdrawalRecipientSettlement.');
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
// verify required parameter 'provideEscrowHashForRFQDocumentRequest' is not null or undefined
|
|
407
|
+
if (provideEscrowHashForRFQDocumentRequest === null || provideEscrowHashForRFQDocumentRequest === undefined) {
|
|
408
|
+
throw new Error('Required parameter provideEscrowHashForRFQDocumentRequest was null or undefined when calling registerWithdrawalRecipientSettlement.');
|
|
401
409
|
}
|
|
402
410
|
|
|
403
411
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -405,12 +413,13 @@ export class RfqMarketPlaceSellersApi {
|
|
|
405
413
|
let localVarUseFormData = false;
|
|
406
414
|
|
|
407
415
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
408
|
-
method: '
|
|
416
|
+
method: 'PATCH',
|
|
409
417
|
qs: localVarQueryParameters,
|
|
410
418
|
headers: localVarHeaderParams,
|
|
411
419
|
uri: localVarPath,
|
|
412
420
|
useQuerystring: this._useQuerystring,
|
|
413
421
|
json: true,
|
|
422
|
+
body: ObjectSerializer.serialize(provideEscrowHashForRFQDocumentRequest, "ProvideEscrowHashForRFQDocumentRequest")
|
|
414
423
|
};
|
|
415
424
|
|
|
416
425
|
let authenticationPromise = Promise.resolve();
|
|
@@ -429,13 +438,12 @@ export class RfqMarketPlaceSellersApi {
|
|
|
429
438
|
localVarRequestOptions.form = localVarFormParams;
|
|
430
439
|
}
|
|
431
440
|
}
|
|
432
|
-
return new Promise<{ response: http.IncomingMessage; body
|
|
441
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
433
442
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
434
443
|
if (error) {
|
|
435
444
|
reject(error);
|
|
436
445
|
} else {
|
|
437
446
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
438
|
-
body = ObjectSerializer.deserialize(body, "Array<RFQDocumentSeller>");
|
|
439
447
|
resolve({ response: response, body: body });
|
|
440
448
|
} else {
|
|
441
449
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -447,12 +455,12 @@ export class RfqMarketPlaceSellersApi {
|
|
|
447
455
|
}
|
|
448
456
|
/**
|
|
449
457
|
*
|
|
450
|
-
* @summary
|
|
458
|
+
* @summary Reject Quote
|
|
451
459
|
* @param rfqId
|
|
452
|
-
* @param
|
|
460
|
+
* @param rejectQuoteForRFQDocumentRequest
|
|
453
461
|
*/
|
|
454
|
-
public async
|
|
455
|
-
const localVarPath = this.basePath + '/
|
|
462
|
+
public async rejectQuoteForRFQDocument (rfqId: string, rejectQuoteForRFQDocumentRequest: RejectQuoteForRFQDocumentRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
463
|
+
const localVarPath = this.basePath + '/validatorMarketplace/buyers/documents/{rfqId}'
|
|
456
464
|
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
457
465
|
let localVarQueryParameters: any = {};
|
|
458
466
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -467,12 +475,12 @@ export class RfqMarketPlaceSellersApi {
|
|
|
467
475
|
|
|
468
476
|
// verify required parameter 'rfqId' is not null or undefined
|
|
469
477
|
if (rfqId === null || rfqId === undefined) {
|
|
470
|
-
throw new Error('Required parameter rfqId was null or undefined when calling
|
|
478
|
+
throw new Error('Required parameter rfqId was null or undefined when calling rejectQuoteForRFQDocument.');
|
|
471
479
|
}
|
|
472
480
|
|
|
473
|
-
// verify required parameter '
|
|
474
|
-
if (
|
|
475
|
-
throw new Error('Required parameter
|
|
481
|
+
// verify required parameter 'rejectQuoteForRFQDocumentRequest' is not null or undefined
|
|
482
|
+
if (rejectQuoteForRFQDocumentRequest === null || rejectQuoteForRFQDocumentRequest === undefined) {
|
|
483
|
+
throw new Error('Required parameter rejectQuoteForRFQDocumentRequest was null or undefined when calling rejectQuoteForRFQDocument.');
|
|
476
484
|
}
|
|
477
485
|
|
|
478
486
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -486,7 +494,7 @@ export class RfqMarketPlaceSellersApi {
|
|
|
486
494
|
uri: localVarPath,
|
|
487
495
|
useQuerystring: this._useQuerystring,
|
|
488
496
|
json: true,
|
|
489
|
-
body: ObjectSerializer.serialize(
|
|
497
|
+
body: ObjectSerializer.serialize(rejectQuoteForRFQDocumentRequest, "RejectQuoteForRFQDocumentRequest")
|
|
490
498
|
};
|
|
491
499
|
|
|
492
500
|
let authenticationPromise = Promise.resolve();
|
|
@@ -30,11 +30,11 @@ let defaultBasePath = '/v1';
|
|
|
30
30
|
// This file is autogenerated - Please do not edit
|
|
31
31
|
// ===============================================
|
|
32
32
|
|
|
33
|
-
export enum
|
|
33
|
+
export enum ValidatorMarketplaceWebhooksApiApiKeys {
|
|
34
34
|
ApiKeyAuth,
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export class
|
|
37
|
+
export class ValidatorMarketplaceWebhooksApi {
|
|
38
38
|
protected _basePath = defaultBasePath;
|
|
39
39
|
protected _defaultHeaders : any = {};
|
|
40
40
|
protected _useQuerystring : boolean = false;
|
|
@@ -84,8 +84,8 @@ export class RfqMarketPlaceWebhooksApi {
|
|
|
84
84
|
this.authentications.default = auth;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
private setApiKey(key:
|
|
88
|
-
(this.authentications as any)[
|
|
87
|
+
private setApiKey(key: ValidatorMarketplaceWebhooksApiApiKeys, value: string) {
|
|
88
|
+
(this.authentications as any)[ValidatorMarketplaceWebhooksApiApiKeys[key]].apiKey = value;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
set accessToken(accessToken: string | (() => string)) {
|
|
@@ -102,7 +102,7 @@ export class RfqMarketPlaceWebhooksApi {
|
|
|
102
102
|
* @param webhookId Unique identifier of the registered webhook
|
|
103
103
|
*/
|
|
104
104
|
public async deleteWebhook (webhookId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
105
|
-
const localVarPath = this.basePath + '/
|
|
105
|
+
const localVarPath = this.basePath + '/validatorMarketplace/webhooks/{webhookId}'
|
|
106
106
|
.replace('{' + 'webhookId' + '}', encodeURIComponent(String(webhookId)));
|
|
107
107
|
let localVarQueryParameters: any = {};
|
|
108
108
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -169,7 +169,7 @@ export class RfqMarketPlaceWebhooksApi {
|
|
|
169
169
|
* @summary List all registered RFQ marketplace webhooks for the user
|
|
170
170
|
*/
|
|
171
171
|
public async listRegisteredWebhooks (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<WebHookLookupAnswer>; }> {
|
|
172
|
-
const localVarPath = this.basePath + '/
|
|
172
|
+
const localVarPath = this.basePath + '/validatorMarketplace/webhooks';
|
|
173
173
|
let localVarQueryParameters: any = {};
|
|
174
174
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
175
175
|
const produces = ['application/json'];
|
|
@@ -232,7 +232,7 @@ export class RfqMarketPlaceWebhooksApi {
|
|
|
232
232
|
* @param webhookRegistration
|
|
233
233
|
*/
|
|
234
234
|
public async registerWebhook (webhookRegistration: WebhookRegistration, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
235
|
-
const localVarPath = this.basePath + '/
|
|
235
|
+
const localVarPath = this.basePath + '/validatorMarketplace/webhooks';
|
|
236
236
|
let localVarQueryParameters: any = {};
|
|
237
237
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
238
238
|
const produces = ['application/json'];
|