@northstake/northstakeapi 1.0.7 → 1.0.9
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 +25 -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} +34 -21
- package/api/{rfqMarketPlaceSellersApi.ts → validatorMarketplaceSellersApi.ts} +69 -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} +12 -10
- package/dist/api/{rfqMarketPlaceBuyersApi.js → validatorMarketplaceBuyersApi.js} +36 -24
- package/dist/api/{rfqMarketPlaceSellersApi.d.ts → validatorMarketplaceSellersApi.d.ts} +28 -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 +17 -11
- package/dist/model/models.js +51 -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 +6 -3
- package/dist/model/rFQDocumentBase.js +8 -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/rFQDocumentBuyerStatusFilterEnum.d.ts +19 -0
- package/dist/model/rFQDocumentBuyerStatusFilterEnum.js +23 -0
- package/dist/model/rFQDocumentSeller.d.ts +8 -4
- package/dist/model/rFQDocumentSeller.js +18 -13
- package/dist/model/rFQDocumentSellerAllOfValidators.d.ts +28 -0
- package/dist/model/rFQDocumentSellerAllOfValidators.js +38 -0
- package/dist/model/rFQDocumentSellerStatusFilterEnum.d.ts +20 -0
- package/dist/model/rFQDocumentSellerStatusFilterEnum.js +24 -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 → settlementStepWithdrawalRecipientSettlement.d.ts} +1 -2
- package/dist/model/{settlementStepRewardRecipientSettlementInner.js → settlementStepWithdrawalRecipientSettlement.js} +6 -11
- 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 +51 -33
- package/model/portfolioEntity.ts +46 -0
- package/model/rFQDocumentBase.ts +14 -11
- package/model/rFQDocumentBuyer.ts +15 -12
- package/model/{rFQDocumentBaseValidatorsInner.ts → rFQDocumentBuyerAllOfValidators.ts} +7 -7
- package/model/rFQDocumentBuyerStatusFilterEnum.ts +22 -0
- package/model/rFQDocumentSeller.ts +26 -17
- package/model/{registerRewardRecipientSettlementRequestInner.ts → rFQDocumentSellerAllOfValidators.ts} +15 -8
- package/model/rFQDocumentSellerStatusFilterEnum.ts +23 -0
- 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 → settlementStepWithdrawalRecipientSettlement.ts} +2 -8
- 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,9 @@ 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 { RFQDocumentBuyerStatusFilterEnum } from '../model/rFQDocumentBuyerStatusFilterEnum';
|
|
22
|
+
import { SubmitQuoteForRFQDocumentRequest } from '../model/submitQuoteForRFQDocumentRequest';
|
|
22
23
|
|
|
23
24
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
24
25
|
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
|
|
@@ -31,11 +32,11 @@ let defaultBasePath = '/v1';
|
|
|
31
32
|
// This file is autogenerated - Please do not edit
|
|
32
33
|
// ===============================================
|
|
33
34
|
|
|
34
|
-
export enum
|
|
35
|
+
export enum ValidatorMarketplaceBuyersApiApiKeys {
|
|
35
36
|
ApiKeyAuth,
|
|
36
37
|
}
|
|
37
38
|
|
|
38
|
-
export class
|
|
39
|
+
export class ValidatorMarketplaceBuyersApi {
|
|
39
40
|
protected _basePath = defaultBasePath;
|
|
40
41
|
protected _defaultHeaders : any = {};
|
|
41
42
|
protected _useQuerystring : boolean = false;
|
|
@@ -85,8 +86,8 @@ export class RfqMarketPlaceBuyersApi {
|
|
|
85
86
|
this.authentications.default = auth;
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
private setApiKey(key:
|
|
89
|
-
(this.authentications as any)[
|
|
89
|
+
private setApiKey(key: ValidatorMarketplaceBuyersApiApiKeys, value: string) {
|
|
90
|
+
(this.authentications as any)[ValidatorMarketplaceBuyersApiApiKeys[key]].apiKey = value;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
set accessToken(accessToken: string | (() => string)) {
|
|
@@ -99,11 +100,11 @@ export class RfqMarketPlaceBuyersApi {
|
|
|
99
100
|
|
|
100
101
|
/**
|
|
101
102
|
*
|
|
102
|
-
* @summary Retrieve a specific RFQ
|
|
103
|
+
* @summary Retrieve a specific RFQ
|
|
103
104
|
* @param rfqId
|
|
104
105
|
*/
|
|
105
106
|
public async getRFQDocumentForBuyer (rfqId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: RFQDocumentBuyer; }> {
|
|
106
|
-
const localVarPath = this.basePath + '/
|
|
107
|
+
const localVarPath = this.basePath + '/validatorMarketplace/buyers/documents/{rfqId}'
|
|
107
108
|
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
108
109
|
let localVarQueryParameters: any = {};
|
|
109
110
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -168,10 +169,11 @@ export class RfqMarketPlaceBuyersApi {
|
|
|
168
169
|
}
|
|
169
170
|
/**
|
|
170
171
|
*
|
|
171
|
-
* @summary List
|
|
172
|
+
* @summary List RFQs
|
|
173
|
+
* @param status Filter by RFQ status
|
|
172
174
|
*/
|
|
173
|
-
public async
|
|
174
|
-
const localVarPath = this.basePath + '/
|
|
175
|
+
public async listRFQDocumentsForBuyer (status?: RFQDocumentBuyerStatusFilterEnum, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<RFQDocumentBuyer>; }> {
|
|
176
|
+
const localVarPath = this.basePath + '/validatorMarketplace/buyers/documents';
|
|
175
177
|
let localVarQueryParameters: any = {};
|
|
176
178
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
177
179
|
const produces = ['application/json'];
|
|
@@ -183,6 +185,10 @@ export class RfqMarketPlaceBuyersApi {
|
|
|
183
185
|
}
|
|
184
186
|
let localVarFormParams: any = {};
|
|
185
187
|
|
|
188
|
+
if (status !== undefined) {
|
|
189
|
+
localVarQueryParameters['status'] = ObjectSerializer.serialize(status, "RFQDocumentBuyerStatusFilterEnum");
|
|
190
|
+
}
|
|
191
|
+
|
|
186
192
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
187
193
|
|
|
188
194
|
let localVarUseFormData = false;
|
|
@@ -230,12 +236,12 @@ export class RfqMarketPlaceBuyersApi {
|
|
|
230
236
|
}
|
|
231
237
|
/**
|
|
232
238
|
*
|
|
233
|
-
* @summary Provide
|
|
239
|
+
* @summary Provide a transaction hash for an escrow deposit as part of settlement
|
|
234
240
|
* @param rfqId
|
|
235
241
|
* @param provideEscrowHashForRFQDocumentRequest
|
|
236
242
|
*/
|
|
237
243
|
public async provideEscrowHashForRFQDocument (rfqId: string, provideEscrowHashForRFQDocumentRequest: ProvideEscrowHashForRFQDocumentRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
238
|
-
const localVarPath = this.basePath + '/
|
|
244
|
+
const localVarPath = this.basePath + '/validatorMarketplace/buyers/documents/{rfqId}/provideEscrowHash'
|
|
239
245
|
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
240
246
|
let localVarQueryParameters: any = {};
|
|
241
247
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -305,15 +311,22 @@ export class RfqMarketPlaceBuyersApi {
|
|
|
305
311
|
}
|
|
306
312
|
/**
|
|
307
313
|
*
|
|
308
|
-
* @summary Submit a quote for an RFQ
|
|
314
|
+
* @summary Submit a quote for an RFQ in ETH
|
|
309
315
|
* @param rfqId
|
|
310
|
-
* @param
|
|
316
|
+
* @param submitQuoteForRFQDocumentRequest
|
|
311
317
|
*/
|
|
312
|
-
public async submitQuoteForRFQDocument (rfqId: string,
|
|
313
|
-
const localVarPath = this.basePath + '/
|
|
318
|
+
public async submitQuoteForRFQDocument (rfqId: string, submitQuoteForRFQDocumentRequest: SubmitQuoteForRFQDocumentRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
319
|
+
const localVarPath = this.basePath + '/validatorMarketplace/buyers/quotes/{rfqId}/submitQuote'
|
|
314
320
|
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
315
321
|
let localVarQueryParameters: any = {};
|
|
316
322
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
323
|
+
const produces = ['application/json'];
|
|
324
|
+
// give precedence to 'application/json'
|
|
325
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
326
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
327
|
+
} else {
|
|
328
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
329
|
+
}
|
|
317
330
|
let localVarFormParams: any = {};
|
|
318
331
|
|
|
319
332
|
// verify required parameter 'rfqId' is not null or undefined
|
|
@@ -321,9 +334,9 @@ export class RfqMarketPlaceBuyersApi {
|
|
|
321
334
|
throw new Error('Required parameter rfqId was null or undefined when calling submitQuoteForRFQDocument.');
|
|
322
335
|
}
|
|
323
336
|
|
|
324
|
-
// verify required parameter '
|
|
325
|
-
if (
|
|
326
|
-
throw new Error('Required parameter
|
|
337
|
+
// verify required parameter 'submitQuoteForRFQDocumentRequest' is not null or undefined
|
|
338
|
+
if (submitQuoteForRFQDocumentRequest === null || submitQuoteForRFQDocumentRequest === undefined) {
|
|
339
|
+
throw new Error('Required parameter submitQuoteForRFQDocumentRequest was null or undefined when calling submitQuoteForRFQDocument.');
|
|
327
340
|
}
|
|
328
341
|
|
|
329
342
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -331,13 +344,13 @@ export class RfqMarketPlaceBuyersApi {
|
|
|
331
344
|
let localVarUseFormData = false;
|
|
332
345
|
|
|
333
346
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
334
|
-
method: '
|
|
347
|
+
method: 'PATCH',
|
|
335
348
|
qs: localVarQueryParameters,
|
|
336
349
|
headers: localVarHeaderParams,
|
|
337
350
|
uri: localVarPath,
|
|
338
351
|
useQuerystring: this._useQuerystring,
|
|
339
352
|
json: true,
|
|
340
|
-
body: ObjectSerializer.serialize(
|
|
353
|
+
body: ObjectSerializer.serialize(submitQuoteForRFQDocumentRequest, "SubmitQuoteForRFQDocumentRequest")
|
|
341
354
|
};
|
|
342
355
|
|
|
343
356
|
let authenticationPromise = Promise.resolve();
|
|
@@ -15,11 +15,12 @@ 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 { RFQDocumentSellerStatusFilterEnum } from '../model/rFQDocumentSellerStatusFilterEnum';
|
|
23
|
+
import { RejectQuoteForRFQDocumentRequest } from '../model/rejectQuoteForRFQDocumentRequest';
|
|
23
24
|
|
|
24
25
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
25
26
|
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
|
|
@@ -32,11 +33,11 @@ let defaultBasePath = '/v1';
|
|
|
32
33
|
// This file is autogenerated - Please do not edit
|
|
33
34
|
// ===============================================
|
|
34
35
|
|
|
35
|
-
export enum
|
|
36
|
+
export enum ValidatorMarketplaceSellersApiApiKeys {
|
|
36
37
|
ApiKeyAuth,
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
export class
|
|
40
|
+
export class ValidatorMarketplaceSellersApi {
|
|
40
41
|
protected _basePath = defaultBasePath;
|
|
41
42
|
protected _defaultHeaders : any = {};
|
|
42
43
|
protected _useQuerystring : boolean = false;
|
|
@@ -86,8 +87,8 @@ export class RfqMarketPlaceSellersApi {
|
|
|
86
87
|
this.authentications.default = auth;
|
|
87
88
|
}
|
|
88
89
|
|
|
89
|
-
private setApiKey(key:
|
|
90
|
-
(this.authentications as any)[
|
|
90
|
+
private setApiKey(key: ValidatorMarketplaceSellersApiApiKeys, value: string) {
|
|
91
|
+
(this.authentications as any)[ValidatorMarketplaceSellersApiApiKeys[key]].apiKey = value;
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
set accessToken(accessToken: string | (() => string)) {
|
|
@@ -100,12 +101,12 @@ export class RfqMarketPlaceSellersApi {
|
|
|
100
101
|
|
|
101
102
|
/**
|
|
102
103
|
*
|
|
103
|
-
* @summary Accept
|
|
104
|
+
* @summary Accept quote
|
|
104
105
|
* @param rfqId
|
|
105
|
-
* @param
|
|
106
|
+
* @param rejectQuoteForRFQDocumentRequest
|
|
106
107
|
*/
|
|
107
|
-
public async
|
|
108
|
-
const localVarPath = this.basePath + '/
|
|
108
|
+
public async acceptQuoteForRFQDocument (rfqId: string, rejectQuoteForRFQDocumentRequest: RejectQuoteForRFQDocumentRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
109
|
+
const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents/{rfqId}/acceptQuote'
|
|
109
110
|
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
110
111
|
let localVarQueryParameters: any = {};
|
|
111
112
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -120,12 +121,12 @@ export class RfqMarketPlaceSellersApi {
|
|
|
120
121
|
|
|
121
122
|
// verify required parameter 'rfqId' is not null or undefined
|
|
122
123
|
if (rfqId === null || rfqId === undefined) {
|
|
123
|
-
throw new Error('Required parameter rfqId was null or undefined when calling
|
|
124
|
+
throw new Error('Required parameter rfqId was null or undefined when calling acceptQuoteForRFQDocument.');
|
|
124
125
|
}
|
|
125
126
|
|
|
126
|
-
// verify required parameter '
|
|
127
|
-
if (
|
|
128
|
-
throw new Error('Required parameter
|
|
127
|
+
// verify required parameter 'rejectQuoteForRFQDocumentRequest' is not null or undefined
|
|
128
|
+
if (rejectQuoteForRFQDocumentRequest === null || rejectQuoteForRFQDocumentRequest === undefined) {
|
|
129
|
+
throw new Error('Required parameter rejectQuoteForRFQDocumentRequest was null or undefined when calling acceptQuoteForRFQDocument.');
|
|
129
130
|
}
|
|
130
131
|
|
|
131
132
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -133,13 +134,13 @@ export class RfqMarketPlaceSellersApi {
|
|
|
133
134
|
let localVarUseFormData = false;
|
|
134
135
|
|
|
135
136
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
136
|
-
method: '
|
|
137
|
+
method: 'PATCH',
|
|
137
138
|
qs: localVarQueryParameters,
|
|
138
139
|
headers: localVarHeaderParams,
|
|
139
140
|
uri: localVarPath,
|
|
140
141
|
useQuerystring: this._useQuerystring,
|
|
141
142
|
json: true,
|
|
142
|
-
body: ObjectSerializer.serialize(
|
|
143
|
+
body: ObjectSerializer.serialize(rejectQuoteForRFQDocumentRequest, "RejectQuoteForRFQDocumentRequest")
|
|
143
144
|
};
|
|
144
145
|
|
|
145
146
|
let authenticationPromise = Promise.resolve();
|
|
@@ -175,11 +176,11 @@ export class RfqMarketPlaceSellersApi {
|
|
|
175
176
|
}
|
|
176
177
|
/**
|
|
177
178
|
*
|
|
178
|
-
* @summary Create a new RFQ
|
|
179
|
-
* @param
|
|
179
|
+
* @summary Create a new RFQ
|
|
180
|
+
* @param createRFQDocumentRequest
|
|
180
181
|
*/
|
|
181
|
-
public async
|
|
182
|
-
const localVarPath = this.basePath + '/
|
|
182
|
+
public async createRFQDocument (createRFQDocumentRequest: CreateRFQDocumentRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: RFQDocumentSeller; }> {
|
|
183
|
+
const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents';
|
|
183
184
|
let localVarQueryParameters: any = {};
|
|
184
185
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
185
186
|
const produces = ['application/json'];
|
|
@@ -191,9 +192,9 @@ export class RfqMarketPlaceSellersApi {
|
|
|
191
192
|
}
|
|
192
193
|
let localVarFormParams: any = {};
|
|
193
194
|
|
|
194
|
-
// verify required parameter '
|
|
195
|
-
if (
|
|
196
|
-
throw new Error('Required parameter
|
|
195
|
+
// verify required parameter 'createRFQDocumentRequest' is not null or undefined
|
|
196
|
+
if (createRFQDocumentRequest === null || createRFQDocumentRequest === undefined) {
|
|
197
|
+
throw new Error('Required parameter createRFQDocumentRequest was null or undefined when calling createRFQDocument.');
|
|
197
198
|
}
|
|
198
199
|
|
|
199
200
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -207,7 +208,7 @@ export class RfqMarketPlaceSellersApi {
|
|
|
207
208
|
uri: localVarPath,
|
|
208
209
|
useQuerystring: this._useQuerystring,
|
|
209
210
|
json: true,
|
|
210
|
-
body: ObjectSerializer.serialize(
|
|
211
|
+
body: ObjectSerializer.serialize(createRFQDocumentRequest, "CreateRFQDocumentRequest")
|
|
211
212
|
};
|
|
212
213
|
|
|
213
214
|
let authenticationPromise = Promise.resolve();
|
|
@@ -226,12 +227,13 @@ export class RfqMarketPlaceSellersApi {
|
|
|
226
227
|
localVarRequestOptions.form = localVarFormParams;
|
|
227
228
|
}
|
|
228
229
|
}
|
|
229
|
-
return new Promise<{ response: http.IncomingMessage; body
|
|
230
|
+
return new Promise<{ response: http.IncomingMessage; body: RFQDocumentSeller; }>((resolve, reject) => {
|
|
230
231
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
231
232
|
if (error) {
|
|
232
233
|
reject(error);
|
|
233
234
|
} else {
|
|
234
235
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
236
|
+
body = ObjectSerializer.deserialize(body, "RFQDocumentSeller");
|
|
235
237
|
resolve({ response: response, body: body });
|
|
236
238
|
} else {
|
|
237
239
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -243,11 +245,11 @@ export class RfqMarketPlaceSellersApi {
|
|
|
243
245
|
}
|
|
244
246
|
/**
|
|
245
247
|
*
|
|
246
|
-
* @summary
|
|
248
|
+
* @summary Retrieve a specific RFQ by ID for the seller
|
|
247
249
|
* @param rfqId
|
|
248
250
|
*/
|
|
249
|
-
public async
|
|
250
|
-
const localVarPath = this.basePath + '/
|
|
251
|
+
public async getRFQDocument (rfqId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: RFQDocumentSeller; }> {
|
|
252
|
+
const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents/{rfqId}'
|
|
251
253
|
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
252
254
|
let localVarQueryParameters: any = {};
|
|
253
255
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -262,7 +264,7 @@ export class RfqMarketPlaceSellersApi {
|
|
|
262
264
|
|
|
263
265
|
// verify required parameter 'rfqId' is not null or undefined
|
|
264
266
|
if (rfqId === null || rfqId === undefined) {
|
|
265
|
-
throw new Error('Required parameter rfqId was null or undefined when calling
|
|
267
|
+
throw new Error('Required parameter rfqId was null or undefined when calling getRFQDocument.');
|
|
266
268
|
}
|
|
267
269
|
|
|
268
270
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -270,7 +272,7 @@ export class RfqMarketPlaceSellersApi {
|
|
|
270
272
|
let localVarUseFormData = false;
|
|
271
273
|
|
|
272
274
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
273
|
-
method: '
|
|
275
|
+
method: 'GET',
|
|
274
276
|
qs: localVarQueryParameters,
|
|
275
277
|
headers: localVarHeaderParams,
|
|
276
278
|
uri: localVarPath,
|
|
@@ -294,12 +296,13 @@ export class RfqMarketPlaceSellersApi {
|
|
|
294
296
|
localVarRequestOptions.form = localVarFormParams;
|
|
295
297
|
}
|
|
296
298
|
}
|
|
297
|
-
return new Promise<{ response: http.IncomingMessage; body
|
|
299
|
+
return new Promise<{ response: http.IncomingMessage; body: RFQDocumentSeller; }>((resolve, reject) => {
|
|
298
300
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
299
301
|
if (error) {
|
|
300
302
|
reject(error);
|
|
301
303
|
} else {
|
|
302
304
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
305
|
+
body = ObjectSerializer.deserialize(body, "RFQDocumentSeller");
|
|
303
306
|
resolve({ response: response, body: body });
|
|
304
307
|
} else {
|
|
305
308
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -311,12 +314,11 @@ export class RfqMarketPlaceSellersApi {
|
|
|
311
314
|
}
|
|
312
315
|
/**
|
|
313
316
|
*
|
|
314
|
-
* @summary
|
|
315
|
-
* @param
|
|
317
|
+
* @summary List all RFQs posted by the seller with optional status filter
|
|
318
|
+
* @param status Filter by RFQ status
|
|
316
319
|
*/
|
|
317
|
-
public async
|
|
318
|
-
const localVarPath = this.basePath + '/
|
|
319
|
-
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
320
|
+
public async listRFQDocuments (status?: RFQDocumentSellerStatusFilterEnum, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<RFQDocumentSeller>; }> {
|
|
321
|
+
const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents';
|
|
320
322
|
let localVarQueryParameters: any = {};
|
|
321
323
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
322
324
|
const produces = ['application/json'];
|
|
@@ -328,9 +330,8 @@ export class RfqMarketPlaceSellersApi {
|
|
|
328
330
|
}
|
|
329
331
|
let localVarFormParams: any = {};
|
|
330
332
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
throw new Error('Required parameter rfqId was null or undefined when calling getRFQDocumentForSeller.');
|
|
333
|
+
if (status !== undefined) {
|
|
334
|
+
localVarQueryParameters['status'] = ObjectSerializer.serialize(status, "RFQDocumentSellerStatusFilterEnum");
|
|
334
335
|
}
|
|
335
336
|
|
|
336
337
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -362,13 +363,13 @@ export class RfqMarketPlaceSellersApi {
|
|
|
362
363
|
localVarRequestOptions.form = localVarFormParams;
|
|
363
364
|
}
|
|
364
365
|
}
|
|
365
|
-
return new Promise<{ response: http.IncomingMessage; body: RFQDocumentSeller
|
|
366
|
+
return new Promise<{ response: http.IncomingMessage; body: Array<RFQDocumentSeller>; }>((resolve, reject) => {
|
|
366
367
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
367
368
|
if (error) {
|
|
368
369
|
reject(error);
|
|
369
370
|
} else {
|
|
370
371
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
371
|
-
body = ObjectSerializer.deserialize(body, "RFQDocumentSeller");
|
|
372
|
+
body = ObjectSerializer.deserialize(body, "Array<RFQDocumentSeller>");
|
|
372
373
|
resolve({ response: response, body: body });
|
|
373
374
|
} else {
|
|
374
375
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -380,11 +381,13 @@ export class RfqMarketPlaceSellersApi {
|
|
|
380
381
|
}
|
|
381
382
|
/**
|
|
382
383
|
*
|
|
383
|
-
* @summary
|
|
384
|
-
* @param
|
|
384
|
+
* @summary Register withdrawal recipient settlement hash for an RFQ
|
|
385
|
+
* @param rfqId
|
|
386
|
+
* @param provideEscrowHashForRFQDocumentRequest
|
|
385
387
|
*/
|
|
386
|
-
public async
|
|
387
|
-
const localVarPath = this.basePath + '/
|
|
388
|
+
public async registerWithdrawalRecipientSettlement (rfqId: string, provideEscrowHashForRFQDocumentRequest: ProvideEscrowHashForRFQDocumentRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
389
|
+
const localVarPath = this.basePath + '/validatorMarketplace/sellers/documents/{rfqId}/registerWithdrawalRecipientSettlement'
|
|
390
|
+
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
388
391
|
let localVarQueryParameters: any = {};
|
|
389
392
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
390
393
|
const produces = ['application/json'];
|
|
@@ -396,8 +399,14 @@ export class RfqMarketPlaceSellersApi {
|
|
|
396
399
|
}
|
|
397
400
|
let localVarFormParams: any = {};
|
|
398
401
|
|
|
399
|
-
|
|
400
|
-
|
|
402
|
+
// verify required parameter 'rfqId' is not null or undefined
|
|
403
|
+
if (rfqId === null || rfqId === undefined) {
|
|
404
|
+
throw new Error('Required parameter rfqId was null or undefined when calling registerWithdrawalRecipientSettlement.');
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
// verify required parameter 'provideEscrowHashForRFQDocumentRequest' is not null or undefined
|
|
408
|
+
if (provideEscrowHashForRFQDocumentRequest === null || provideEscrowHashForRFQDocumentRequest === undefined) {
|
|
409
|
+
throw new Error('Required parameter provideEscrowHashForRFQDocumentRequest was null or undefined when calling registerWithdrawalRecipientSettlement.');
|
|
401
410
|
}
|
|
402
411
|
|
|
403
412
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -405,12 +414,13 @@ export class RfqMarketPlaceSellersApi {
|
|
|
405
414
|
let localVarUseFormData = false;
|
|
406
415
|
|
|
407
416
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
408
|
-
method: '
|
|
417
|
+
method: 'PATCH',
|
|
409
418
|
qs: localVarQueryParameters,
|
|
410
419
|
headers: localVarHeaderParams,
|
|
411
420
|
uri: localVarPath,
|
|
412
421
|
useQuerystring: this._useQuerystring,
|
|
413
422
|
json: true,
|
|
423
|
+
body: ObjectSerializer.serialize(provideEscrowHashForRFQDocumentRequest, "ProvideEscrowHashForRFQDocumentRequest")
|
|
414
424
|
};
|
|
415
425
|
|
|
416
426
|
let authenticationPromise = Promise.resolve();
|
|
@@ -429,13 +439,12 @@ export class RfqMarketPlaceSellersApi {
|
|
|
429
439
|
localVarRequestOptions.form = localVarFormParams;
|
|
430
440
|
}
|
|
431
441
|
}
|
|
432
|
-
return new Promise<{ response: http.IncomingMessage; body
|
|
442
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
433
443
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
434
444
|
if (error) {
|
|
435
445
|
reject(error);
|
|
436
446
|
} else {
|
|
437
447
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
438
|
-
body = ObjectSerializer.deserialize(body, "Array<RFQDocumentSeller>");
|
|
439
448
|
resolve({ response: response, body: body });
|
|
440
449
|
} else {
|
|
441
450
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -447,12 +456,12 @@ export class RfqMarketPlaceSellersApi {
|
|
|
447
456
|
}
|
|
448
457
|
/**
|
|
449
458
|
*
|
|
450
|
-
* @summary
|
|
459
|
+
* @summary Reject Quote
|
|
451
460
|
* @param rfqId
|
|
452
|
-
* @param
|
|
461
|
+
* @param rejectQuoteForRFQDocumentRequest
|
|
453
462
|
*/
|
|
454
|
-
public async
|
|
455
|
-
const localVarPath = this.basePath + '/
|
|
463
|
+
public async rejectQuoteForRFQDocument (rfqId: string, rejectQuoteForRFQDocumentRequest: RejectQuoteForRFQDocumentRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
464
|
+
const localVarPath = this.basePath + '/validatorMarketplace/buyers/documents/{rfqId}'
|
|
456
465
|
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
457
466
|
let localVarQueryParameters: any = {};
|
|
458
467
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -467,12 +476,12 @@ export class RfqMarketPlaceSellersApi {
|
|
|
467
476
|
|
|
468
477
|
// verify required parameter 'rfqId' is not null or undefined
|
|
469
478
|
if (rfqId === null || rfqId === undefined) {
|
|
470
|
-
throw new Error('Required parameter rfqId was null or undefined when calling
|
|
479
|
+
throw new Error('Required parameter rfqId was null or undefined when calling rejectQuoteForRFQDocument.');
|
|
471
480
|
}
|
|
472
481
|
|
|
473
|
-
// verify required parameter '
|
|
474
|
-
if (
|
|
475
|
-
throw new Error('Required parameter
|
|
482
|
+
// verify required parameter 'rejectQuoteForRFQDocumentRequest' is not null or undefined
|
|
483
|
+
if (rejectQuoteForRFQDocumentRequest === null || rejectQuoteForRFQDocumentRequest === undefined) {
|
|
484
|
+
throw new Error('Required parameter rejectQuoteForRFQDocumentRequest was null or undefined when calling rejectQuoteForRFQDocument.');
|
|
476
485
|
}
|
|
477
486
|
|
|
478
487
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -486,7 +495,7 @@ export class RfqMarketPlaceSellersApi {
|
|
|
486
495
|
uri: localVarPath,
|
|
487
496
|
useQuerystring: this._useQuerystring,
|
|
488
497
|
json: true,
|
|
489
|
-
body: ObjectSerializer.serialize(
|
|
498
|
+
body: ObjectSerializer.serialize(rejectQuoteForRFQDocumentRequest, "RejectQuoteForRFQDocumentRequest")
|
|
490
499
|
};
|
|
491
500
|
|
|
492
501
|
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'];
|