@flexprice/sdk 1.0.17 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +281 -200
- package/package.json +29 -41
- package/LICENSE +0 -663
- package/dist/ApiClient.js +0 -653
- package/dist/api/AuthApi.js +0 -100
- package/dist/api/CustomersApi.js +0 -376
- package/dist/api/EntitlementsApi.js +0 -267
- package/dist/api/EnvironmentsApi.js +0 -184
- package/dist/api/EventsApi.js +0 -238
- package/dist/api/FeaturesApi.js +0 -263
- package/dist/api/IntegrationsApi.js +0 -169
- package/dist/api/InvoicesApi.js +0 -419
- package/dist/api/PaymentsApi.js +0 -272
- package/dist/api/PlansApi.js +0 -226
- package/dist/api/PricesApi.js +0 -228
- package/dist/api/SecretsApi.js +0 -137
- package/dist/api/SubscriptionsApi.js +0 -353
- package/dist/api/TasksApi.js +0 -232
- package/dist/api/TenantsApi.js +0 -162
- package/dist/api/UsersApi.js +0 -61
- package/dist/api/WalletsApi.js +0 -392
- package/dist/index.js +0 -1102
- package/dist/model/DtoAddress.js +0 -132
- package/dist/model/DtoAggregatedEntitlement.js +0 -106
- package/dist/model/DtoAggregatedFeature.js +0 -109
- package/dist/model/DtoAuthResponse.js +0 -96
- package/dist/model/DtoBillingPeriodInfo.js +0 -97
- package/dist/model/DtoBulkIngestEventRequest.js +0 -91
- package/dist/model/DtoCreateAPIKeyRequest.js +0 -117
- package/dist/model/DtoCreateAPIKeyResponse.js +0 -86
- package/dist/model/DtoCreateCustomerRequest.js +0 -188
- package/dist/model/DtoCreateEntitlementRequest.js +0 -150
- package/dist/model/DtoCreateEnvironmentRequest.js +0 -96
- package/dist/model/DtoCreateFeatureRequest.js +0 -177
- package/dist/model/DtoCreateIntegrationRequest.js +0 -105
- package/dist/model/DtoCreateInvoiceLineItemRequest.js +0 -206
- package/dist/model/DtoCreateInvoiceRequest.js +0 -289
- package/dist/model/DtoCreateMeterRequest.js +0 -144
- package/dist/model/DtoCreatePaymentRequest.js +0 -172
- package/dist/model/DtoCreatePlanEntitlementRequest.js +0 -150
- package/dist/model/DtoCreatePlanPriceRequest.js +0 -279
- package/dist/model/DtoCreatePlanRequest.js +0 -148
- package/dist/model/DtoCreatePriceRequest.js +0 -279
- package/dist/model/DtoCreatePriceTier.js +0 -102
- package/dist/model/DtoCreateSubscriptionRequest.js +0 -223
- package/dist/model/DtoCreateTaskRequest.js +0 -137
- package/dist/model/DtoCreateTenantRequest.js +0 -96
- package/dist/model/DtoCreateWalletRequest.js +0 -205
- package/dist/model/DtoCustomerEntitlementsResponse.js +0 -93
- package/dist/model/DtoCustomerInvoiceSummary.js +0 -148
- package/dist/model/DtoCustomerMultiCurrencyInvoiceSummary.js +0 -105
- package/dist/model/DtoCustomerResponse.js +0 -283
- package/dist/model/DtoCustomerUsageSummaryResponse.js +0 -121
- package/dist/model/DtoEntitlementResponse.js +0 -259
- package/dist/model/DtoEntitlementSource.js +0 -144
- package/dist/model/DtoEnvironmentResponse.js +0 -120
- package/dist/model/DtoEvent.js +0 -154
- package/dist/model/DtoFeatureResponse.js +0 -258
- package/dist/model/DtoFeatureUsageSummary.js +0 -135
- package/dist/model/DtoGetEventsRequest.js +0 -219
- package/dist/model/DtoGetEventsResponse.js +0 -129
- package/dist/model/DtoGetPreviewInvoiceRequest.js +0 -106
- package/dist/model/DtoGetUsageAnalyticsRequest.js +0 -152
- package/dist/model/DtoGetUsageAnalyticsResponse.js +0 -101
- package/dist/model/DtoGetUsageByMeterRequest.js +0 -149
- package/dist/model/DtoGetUsageBySubscriptionRequest.js +0 -114
- package/dist/model/DtoGetUsageBySubscriptionResponse.js +0 -137
- package/dist/model/DtoGetUsageRequest.js +0 -173
- package/dist/model/DtoGetUsageResponse.js +0 -110
- package/dist/model/DtoIngestEventRequest.js +0 -156
- package/dist/model/DtoInvoiceLineItemResponse.js +0 -326
- package/dist/model/DtoInvoiceResponse.js +0 -450
- package/dist/model/DtoLinkedIntegrationsResponse.js +0 -72
- package/dist/model/DtoListCustomersResponse.js +0 -95
- package/dist/model/DtoListEntitlementsResponse.js +0 -95
- package/dist/model/DtoListEnvironmentsResponse.js +0 -105
- package/dist/model/DtoListFeaturesResponse.js +0 -95
- package/dist/model/DtoListInvoicesResponse.js +0 -95
- package/dist/model/DtoListPaymentsResponse.js +0 -95
- package/dist/model/DtoListPlansResponse.js +0 -95
- package/dist/model/DtoListPricesResponse.js +0 -95
- package/dist/model/DtoListSecretsResponse.js +0 -95
- package/dist/model/DtoListSubscriptionPausesResponse.js +0 -89
- package/dist/model/DtoListSubscriptionsResponse.js +0 -95
- package/dist/model/DtoListTasksResponse.js +0 -95
- package/dist/model/DtoListWalletTransactionsResponse.js +0 -95
- package/dist/model/DtoLoginRequest.js +0 -108
- package/dist/model/DtoMeterResponse.js +0 -188
- package/dist/model/DtoPauseSubscriptionRequest.js +0 -141
- package/dist/model/DtoPaymentAttemptResponse.js +0 -174
- package/dist/model/DtoPaymentResponse.js +0 -314
- package/dist/model/DtoPlanResponse.js +0 -231
- package/dist/model/DtoPriceResponse.js +0 -373
- package/dist/model/DtoResumeSubscriptionRequest.js +0 -97
- package/dist/model/DtoSecretResponse.js +0 -183
- package/dist/model/DtoSignUpRequest.js +0 -118
- package/dist/model/DtoSubscriptionPauseResponse.js +0 -283
- package/dist/model/DtoSubscriptionResponse.js +0 -489
- package/dist/model/DtoSubscriptionUsageByMetersResponse.js +0 -148
- package/dist/model/DtoTaskResponse.js +0 -294
- package/dist/model/DtoTenantBillingDetails.js +0 -110
- package/dist/model/DtoTenantBillingUsage.js +0 -95
- package/dist/model/DtoTenantResponse.js +0 -134
- package/dist/model/DtoTopUpWalletRequest.js +0 -148
- package/dist/model/DtoUpdateCustomerRequest.js +0 -178
- package/dist/model/DtoUpdateEntitlementRequest.js +0 -105
- package/dist/model/DtoUpdateEnvironmentRequest.js +0 -84
- package/dist/model/DtoUpdateFeatureRequest.js +0 -139
- package/dist/model/DtoUpdatePaymentRequest.js +0 -82
- package/dist/model/DtoUpdatePaymentStatusRequest.js +0 -87
- package/dist/model/DtoUpdatePlanEntitlementRequest.js +0 -163
- package/dist/model/DtoUpdatePlanPriceRequest.js +0 -292
- package/dist/model/DtoUpdatePlanRequest.js +0 -138
- package/dist/model/DtoUpdatePriceRequest.js +0 -94
- package/dist/model/DtoUpdateTaskStatusRequest.js +0 -79
- package/dist/model/DtoUpdateTenantRequest.js +0 -86
- package/dist/model/DtoUpdateWalletRequest.js +0 -133
- package/dist/model/DtoUsageAnalyticItem.js +0 -190
- package/dist/model/DtoUsageAnalyticPoint.js +0 -88
- package/dist/model/DtoUsageResult.js +0 -80
- package/dist/model/DtoUserResponse.js +0 -98
- package/dist/model/DtoWalletBalanceResponse.js +0 -336
- package/dist/model/DtoWalletResponse.js +0 -235
- package/dist/model/DtoWalletTransactionResponse.js +0 -221
- package/dist/model/ErrorsErrorDetail.js +0 -94
- package/dist/model/ErrorsErrorResponse.js +0 -82
- package/dist/model/GithubComFlexpriceFlexpriceInternalTypesValue.js +0 -112
- package/dist/model/MeterAggregation.js +0 -82
- package/dist/model/MeterFilter.js +0 -86
- package/dist/model/PriceJSONBTransformQuantity.js +0 -82
- package/dist/model/PricePrice.js +0 -359
- package/dist/model/PricePriceTier.js +0 -87
- package/dist/model/PriceTransformQuantity.js +0 -82
- package/dist/model/SubscriptionSubscriptionLineItem.js +0 -338
- package/dist/model/SubscriptionSubscriptionPause.js +0 -283
- package/dist/model/TypesAggregationType.js +0 -53
- package/dist/model/TypesAutoTopupTrigger.js +0 -41
- package/dist/model/TypesBillingCadence.js +0 -41
- package/dist/model/TypesBillingCycle.js +0 -41
- package/dist/model/TypesBillingModel.js +0 -47
- package/dist/model/TypesBillingPeriod.js +0 -65
- package/dist/model/TypesBillingTier.js +0 -41
- package/dist/model/TypesCustomerFilter.js +0 -230
- package/dist/model/TypesDataType.js +0 -53
- package/dist/model/TypesEntityType.js +0 -47
- package/dist/model/TypesFeatureFilter.js +0 -243
- package/dist/model/TypesFeatureType.js +0 -47
- package/dist/model/TypesFileType.js +0 -41
- package/dist/model/TypesFilterCondition.js +0 -104
- package/dist/model/TypesFilterOperatorType.js +0 -77
- package/dist/model/TypesInvoiceBillingReason.js +0 -53
- package/dist/model/TypesInvoiceCadence.js +0 -41
- package/dist/model/TypesInvoiceStatus.js +0 -47
- package/dist/model/TypesInvoiceType.js +0 -47
- package/dist/model/TypesPaginationResponse.js +0 -84
- package/dist/model/TypesPauseMode.js +0 -47
- package/dist/model/TypesPauseStatus.js +0 -59
- package/dist/model/TypesPaymentDestinationType.js +0 -35
- package/dist/model/TypesPaymentMethodType.js +0 -53
- package/dist/model/TypesPaymentStatus.js +0 -65
- package/dist/model/TypesPriceType.js +0 -41
- package/dist/model/TypesResetUsage.js +0 -41
- package/dist/model/TypesResumeMode.js +0 -47
- package/dist/model/TypesSecretProvider.js +0 -47
- package/dist/model/TypesSecretType.js +0 -47
- package/dist/model/TypesSortCondition.js +0 -81
- package/dist/model/TypesSortDirection.js +0 -41
- package/dist/model/TypesStatus.js +0 -47
- package/dist/model/TypesSubscriptionStatus.js +0 -77
- package/dist/model/TypesTaskStatus.js +0 -53
- package/dist/model/TypesTaskType.js +0 -41
- package/dist/model/TypesTransactionReason.js +0 -77
- package/dist/model/TypesTransactionStatus.js +0 -47
- package/dist/model/TypesTransactionType.js +0 -41
- package/dist/model/TypesWalletConfig.js +0 -74
- package/dist/model/TypesWalletConfigPriceType.js +0 -47
- package/dist/model/TypesWalletStatus.js +0 -47
- package/dist/model/TypesWalletTxReferenceType.js +0 -47
- package/dist/model/TypesWalletType.js +0 -41
- package/dist/model/TypesWindowSize.js +0 -83
package/dist/api/FeaturesApi.js
DELETED
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FlexPrice API
|
|
3
|
-
* FlexPrice API Service
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import ApiClient from "../ApiClient";
|
|
15
|
-
import DtoCreateFeatureRequest from '../model/DtoCreateFeatureRequest';
|
|
16
|
-
import DtoFeatureResponse from '../model/DtoFeatureResponse';
|
|
17
|
-
import DtoListFeaturesResponse from '../model/DtoListFeaturesResponse';
|
|
18
|
-
import DtoUpdateFeatureRequest from '../model/DtoUpdateFeatureRequest';
|
|
19
|
-
import ErrorsErrorResponse from '../model/ErrorsErrorResponse';
|
|
20
|
-
import TypesFeatureFilter from '../model/TypesFeatureFilter';
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Features service.
|
|
24
|
-
* @module api/FeaturesApi
|
|
25
|
-
* @version 1.0
|
|
26
|
-
*/
|
|
27
|
-
export default class FeaturesApi {
|
|
28
|
-
/**
|
|
29
|
-
* Constructs a new FeaturesApi.
|
|
30
|
-
* @alias module:api/FeaturesApi
|
|
31
|
-
* @class
|
|
32
|
-
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
33
|
-
* default to {@link module:ApiClient#instance} if unspecified.
|
|
34
|
-
*/
|
|
35
|
-
constructor(apiClient) {
|
|
36
|
-
this.apiClient = apiClient || ApiClient.instance;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Callback function to receive the result of the featuresGet operation.
|
|
41
|
-
* @callback module:api/FeaturesApi~featuresGetCallback
|
|
42
|
-
* @param {String} error Error message, if any.
|
|
43
|
-
* @param {module:model/DtoListFeaturesResponse} data The data returned by the service call.
|
|
44
|
-
* @param {String} response The complete HTTP response.
|
|
45
|
-
*/
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* List features
|
|
49
|
-
* List features with optional filtering
|
|
50
|
-
* @param {Object} opts Optional parameters
|
|
51
|
-
* @param {String} [endTime]
|
|
52
|
-
* @param {String} [expand]
|
|
53
|
-
* @param {Array.<String>} [featureIds] Feature specific filters
|
|
54
|
-
* @param {Number} [limit]
|
|
55
|
-
* @param {String} [lookupKey]
|
|
56
|
-
* @param {Array.<String>} [meterIds]
|
|
57
|
-
* @param {String} [nameContains]
|
|
58
|
-
* @param {Number} [offset]
|
|
59
|
-
* @param {module:model/String} [order]
|
|
60
|
-
* @param {String} [startTime]
|
|
61
|
-
* @param {module:model/String} [status]
|
|
62
|
-
* @param {module:api/FeaturesApi~featuresGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
63
|
-
* data is of type: {@link module:model/DtoListFeaturesResponse}
|
|
64
|
-
*/
|
|
65
|
-
featuresGet(opts, callback) {
|
|
66
|
-
opts = opts || {};
|
|
67
|
-
let postBody = null;
|
|
68
|
-
let pathParams = {};
|
|
69
|
-
let queryParams = {
|
|
70
|
-
'end_time': opts['endTime'],
|
|
71
|
-
'expand': opts['expand'],
|
|
72
|
-
'feature_ids': this.apiClient.buildCollectionParam(opts['featureIds'], 'csv'),
|
|
73
|
-
'limit': opts['limit'],
|
|
74
|
-
'lookup_key': opts['lookupKey'],
|
|
75
|
-
'meter_ids': this.apiClient.buildCollectionParam(opts['meterIds'], 'csv'),
|
|
76
|
-
'name_contains': opts['nameContains'],
|
|
77
|
-
'offset': opts['offset'],
|
|
78
|
-
'order': opts['order'],
|
|
79
|
-
'start_time': opts['startTime'],
|
|
80
|
-
'status': opts['status']
|
|
81
|
-
};
|
|
82
|
-
let headerParams = {};
|
|
83
|
-
let formParams = {};
|
|
84
|
-
let authNames = ['ApiKeyAuth'];
|
|
85
|
-
let contentTypes = [];
|
|
86
|
-
let accepts = ['application/json'];
|
|
87
|
-
let returnType = DtoListFeaturesResponse;
|
|
88
|
-
return this.apiClient.callApi('/features', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Callback function to receive the result of the featuresIdDelete operation.
|
|
93
|
-
* @callback module:api/FeaturesApi~featuresIdDeleteCallback
|
|
94
|
-
* @param {String} error Error message, if any.
|
|
95
|
-
* @param {Object.<String, {String: Object}>} data The data returned by the service call.
|
|
96
|
-
* @param {String} response The complete HTTP response.
|
|
97
|
-
*/
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Delete a feature
|
|
101
|
-
* Delete a feature by ID
|
|
102
|
-
* @param {String} id Feature ID
|
|
103
|
-
* @param {module:api/FeaturesApi~featuresIdDeleteCallback} callback The callback function, accepting three arguments: error, data, response
|
|
104
|
-
* data is of type: {@link Object.<String, {String: Object}>}
|
|
105
|
-
*/
|
|
106
|
-
featuresIdDelete(id, callback) {
|
|
107
|
-
let postBody = null;
|
|
108
|
-
// verify the required parameter 'id' is set
|
|
109
|
-
if (id === undefined || id === null) {
|
|
110
|
-
throw new Error("Missing the required parameter 'id' when calling featuresIdDelete");
|
|
111
|
-
}
|
|
112
|
-
let pathParams = {
|
|
113
|
-
'id': id
|
|
114
|
-
};
|
|
115
|
-
let queryParams = {};
|
|
116
|
-
let headerParams = {};
|
|
117
|
-
let formParams = {};
|
|
118
|
-
let authNames = ['ApiKeyAuth'];
|
|
119
|
-
let contentTypes = [];
|
|
120
|
-
let accepts = ['application/json'];
|
|
121
|
-
let returnType = {
|
|
122
|
-
'String': Object
|
|
123
|
-
};
|
|
124
|
-
return this.apiClient.callApi('/features/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Callback function to receive the result of the featuresIdGet operation.
|
|
129
|
-
* @callback module:api/FeaturesApi~featuresIdGetCallback
|
|
130
|
-
* @param {String} error Error message, if any.
|
|
131
|
-
* @param {module:model/DtoFeatureResponse} data The data returned by the service call.
|
|
132
|
-
* @param {String} response The complete HTTP response.
|
|
133
|
-
*/
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Get a feature by ID
|
|
137
|
-
* Get a feature by ID
|
|
138
|
-
* @param {String} id Feature ID
|
|
139
|
-
* @param {module:api/FeaturesApi~featuresIdGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
140
|
-
* data is of type: {@link module:model/DtoFeatureResponse}
|
|
141
|
-
*/
|
|
142
|
-
featuresIdGet(id, callback) {
|
|
143
|
-
let postBody = null;
|
|
144
|
-
// verify the required parameter 'id' is set
|
|
145
|
-
if (id === undefined || id === null) {
|
|
146
|
-
throw new Error("Missing the required parameter 'id' when calling featuresIdGet");
|
|
147
|
-
}
|
|
148
|
-
let pathParams = {
|
|
149
|
-
'id': id
|
|
150
|
-
};
|
|
151
|
-
let queryParams = {};
|
|
152
|
-
let headerParams = {};
|
|
153
|
-
let formParams = {};
|
|
154
|
-
let authNames = ['ApiKeyAuth'];
|
|
155
|
-
let contentTypes = [];
|
|
156
|
-
let accepts = ['application/json'];
|
|
157
|
-
let returnType = DtoFeatureResponse;
|
|
158
|
-
return this.apiClient.callApi('/features/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Callback function to receive the result of the featuresIdPut operation.
|
|
163
|
-
* @callback module:api/FeaturesApi~featuresIdPutCallback
|
|
164
|
-
* @param {String} error Error message, if any.
|
|
165
|
-
* @param {module:model/DtoFeatureResponse} data The data returned by the service call.
|
|
166
|
-
* @param {String} response The complete HTTP response.
|
|
167
|
-
*/
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Update a feature
|
|
171
|
-
* Update a feature by ID
|
|
172
|
-
* @param {String} id Feature ID
|
|
173
|
-
* @param {module:model/DtoUpdateFeatureRequest} feature Feature update data
|
|
174
|
-
* @param {module:api/FeaturesApi~featuresIdPutCallback} callback The callback function, accepting three arguments: error, data, response
|
|
175
|
-
* data is of type: {@link module:model/DtoFeatureResponse}
|
|
176
|
-
*/
|
|
177
|
-
featuresIdPut(id, feature, callback) {
|
|
178
|
-
let postBody = feature;
|
|
179
|
-
// verify the required parameter 'id' is set
|
|
180
|
-
if (id === undefined || id === null) {
|
|
181
|
-
throw new Error("Missing the required parameter 'id' when calling featuresIdPut");
|
|
182
|
-
}
|
|
183
|
-
// verify the required parameter 'feature' is set
|
|
184
|
-
if (feature === undefined || feature === null) {
|
|
185
|
-
throw new Error("Missing the required parameter 'feature' when calling featuresIdPut");
|
|
186
|
-
}
|
|
187
|
-
let pathParams = {
|
|
188
|
-
'id': id
|
|
189
|
-
};
|
|
190
|
-
let queryParams = {};
|
|
191
|
-
let headerParams = {};
|
|
192
|
-
let formParams = {};
|
|
193
|
-
let authNames = ['ApiKeyAuth'];
|
|
194
|
-
let contentTypes = ['application/json'];
|
|
195
|
-
let accepts = ['application/json'];
|
|
196
|
-
let returnType = DtoFeatureResponse;
|
|
197
|
-
return this.apiClient.callApi('/features/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Callback function to receive the result of the featuresPost operation.
|
|
202
|
-
* @callback module:api/FeaturesApi~featuresPostCallback
|
|
203
|
-
* @param {String} error Error message, if any.
|
|
204
|
-
* @param {module:model/DtoFeatureResponse} data The data returned by the service call.
|
|
205
|
-
* @param {String} response The complete HTTP response.
|
|
206
|
-
*/
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Create a new feature
|
|
210
|
-
* Create a new feature
|
|
211
|
-
* @param {module:model/DtoCreateFeatureRequest} feature Feature to create
|
|
212
|
-
* @param {module:api/FeaturesApi~featuresPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
213
|
-
* data is of type: {@link module:model/DtoFeatureResponse}
|
|
214
|
-
*/
|
|
215
|
-
featuresPost(feature, callback) {
|
|
216
|
-
let postBody = feature;
|
|
217
|
-
// verify the required parameter 'feature' is set
|
|
218
|
-
if (feature === undefined || feature === null) {
|
|
219
|
-
throw new Error("Missing the required parameter 'feature' when calling featuresPost");
|
|
220
|
-
}
|
|
221
|
-
let pathParams = {};
|
|
222
|
-
let queryParams = {};
|
|
223
|
-
let headerParams = {};
|
|
224
|
-
let formParams = {};
|
|
225
|
-
let authNames = ['ApiKeyAuth'];
|
|
226
|
-
let contentTypes = ['application/json'];
|
|
227
|
-
let accepts = ['application/json'];
|
|
228
|
-
let returnType = DtoFeatureResponse;
|
|
229
|
-
return this.apiClient.callApi('/features', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Callback function to receive the result of the featuresSearchPost operation.
|
|
234
|
-
* @callback module:api/FeaturesApi~featuresSearchPostCallback
|
|
235
|
-
* @param {String} error Error message, if any.
|
|
236
|
-
* @param {module:model/DtoListFeaturesResponse} data The data returned by the service call.
|
|
237
|
-
* @param {String} response The complete HTTP response.
|
|
238
|
-
*/
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* List features by filter
|
|
242
|
-
* List features by filter
|
|
243
|
-
* @param {module:model/TypesFeatureFilter} filter Filter
|
|
244
|
-
* @param {module:api/FeaturesApi~featuresSearchPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
245
|
-
* data is of type: {@link module:model/DtoListFeaturesResponse}
|
|
246
|
-
*/
|
|
247
|
-
featuresSearchPost(filter, callback) {
|
|
248
|
-
let postBody = filter;
|
|
249
|
-
// verify the required parameter 'filter' is set
|
|
250
|
-
if (filter === undefined || filter === null) {
|
|
251
|
-
throw new Error("Missing the required parameter 'filter' when calling featuresSearchPost");
|
|
252
|
-
}
|
|
253
|
-
let pathParams = {};
|
|
254
|
-
let queryParams = {};
|
|
255
|
-
let headerParams = {};
|
|
256
|
-
let formParams = {};
|
|
257
|
-
let authNames = ['ApiKeyAuth'];
|
|
258
|
-
let contentTypes = ['application/json'];
|
|
259
|
-
let accepts = ['application/json'];
|
|
260
|
-
let returnType = DtoListFeaturesResponse;
|
|
261
|
-
return this.apiClient.callApi('/features/search', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FlexPrice API
|
|
3
|
-
* FlexPrice API Service
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import ApiClient from "../ApiClient";
|
|
15
|
-
import DtoCreateIntegrationRequest from '../model/DtoCreateIntegrationRequest';
|
|
16
|
-
import DtoLinkedIntegrationsResponse from '../model/DtoLinkedIntegrationsResponse';
|
|
17
|
-
import DtoSecretResponse from '../model/DtoSecretResponse';
|
|
18
|
-
import ErrorsErrorResponse from '../model/ErrorsErrorResponse';
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Integrations service.
|
|
22
|
-
* @module api/IntegrationsApi
|
|
23
|
-
* @version 1.0
|
|
24
|
-
*/
|
|
25
|
-
export default class IntegrationsApi {
|
|
26
|
-
/**
|
|
27
|
-
* Constructs a new IntegrationsApi.
|
|
28
|
-
* @alias module:api/IntegrationsApi
|
|
29
|
-
* @class
|
|
30
|
-
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
31
|
-
* default to {@link module:ApiClient#instance} if unspecified.
|
|
32
|
-
*/
|
|
33
|
-
constructor(apiClient) {
|
|
34
|
-
this.apiClient = apiClient || ApiClient.instance;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Callback function to receive the result of the secretsIntegrationsIdDelete operation.
|
|
39
|
-
* @callback module:api/IntegrationsApi~secretsIntegrationsIdDeleteCallback
|
|
40
|
-
* @param {String} error Error message, if any.
|
|
41
|
-
* @param data This operation does not return a value.
|
|
42
|
-
* @param {String} response The complete HTTP response.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Delete an integration
|
|
47
|
-
* Delete integration credentials
|
|
48
|
-
* @param {String} id Integration ID
|
|
49
|
-
* @param {module:api/IntegrationsApi~secretsIntegrationsIdDeleteCallback} callback The callback function, accepting three arguments: error, data, response
|
|
50
|
-
*/
|
|
51
|
-
secretsIntegrationsIdDelete(id, callback) {
|
|
52
|
-
let postBody = null;
|
|
53
|
-
// verify the required parameter 'id' is set
|
|
54
|
-
if (id === undefined || id === null) {
|
|
55
|
-
throw new Error("Missing the required parameter 'id' when calling secretsIntegrationsIdDelete");
|
|
56
|
-
}
|
|
57
|
-
let pathParams = {
|
|
58
|
-
'id': id
|
|
59
|
-
};
|
|
60
|
-
let queryParams = {};
|
|
61
|
-
let headerParams = {};
|
|
62
|
-
let formParams = {};
|
|
63
|
-
let authNames = [];
|
|
64
|
-
let contentTypes = [];
|
|
65
|
-
let accepts = ['application/json'];
|
|
66
|
-
let returnType = null;
|
|
67
|
-
return this.apiClient.callApi('/secrets/integrations/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Callback function to receive the result of the secretsIntegrationsLinkedGet operation.
|
|
72
|
-
* @callback module:api/IntegrationsApi~secretsIntegrationsLinkedGetCallback
|
|
73
|
-
* @param {String} error Error message, if any.
|
|
74
|
-
* @param {module:model/DtoLinkedIntegrationsResponse} data The data returned by the service call.
|
|
75
|
-
* @param {String} response The complete HTTP response.
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* List linked integrations
|
|
80
|
-
* Get a list of unique providers which have a valid linked integration secret
|
|
81
|
-
* @param {module:api/IntegrationsApi~secretsIntegrationsLinkedGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
82
|
-
* data is of type: {@link module:model/DtoLinkedIntegrationsResponse}
|
|
83
|
-
*/
|
|
84
|
-
secretsIntegrationsLinkedGet(callback) {
|
|
85
|
-
let postBody = null;
|
|
86
|
-
let pathParams = {};
|
|
87
|
-
let queryParams = {};
|
|
88
|
-
let headerParams = {};
|
|
89
|
-
let formParams = {};
|
|
90
|
-
let authNames = [];
|
|
91
|
-
let contentTypes = [];
|
|
92
|
-
let accepts = ['application/json'];
|
|
93
|
-
let returnType = DtoLinkedIntegrationsResponse;
|
|
94
|
-
return this.apiClient.callApi('/secrets/integrations/linked', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Callback function to receive the result of the secretsIntegrationsProviderGet operation.
|
|
99
|
-
* @callback module:api/IntegrationsApi~secretsIntegrationsProviderGetCallback
|
|
100
|
-
* @param {String} error Error message, if any.
|
|
101
|
-
* @param {module:model/DtoSecretResponse} data The data returned by the service call.
|
|
102
|
-
* @param {String} response The complete HTTP response.
|
|
103
|
-
*/
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Get integration details
|
|
107
|
-
* Get details of a specific integration
|
|
108
|
-
* @param {String} provider Integration provider
|
|
109
|
-
* @param {module:api/IntegrationsApi~secretsIntegrationsProviderGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
110
|
-
* data is of type: {@link module:model/DtoSecretResponse}
|
|
111
|
-
*/
|
|
112
|
-
secretsIntegrationsProviderGet(provider, callback) {
|
|
113
|
-
let postBody = null;
|
|
114
|
-
// verify the required parameter 'provider' is set
|
|
115
|
-
if (provider === undefined || provider === null) {
|
|
116
|
-
throw new Error("Missing the required parameter 'provider' when calling secretsIntegrationsProviderGet");
|
|
117
|
-
}
|
|
118
|
-
let pathParams = {
|
|
119
|
-
'provider': provider
|
|
120
|
-
};
|
|
121
|
-
let queryParams = {};
|
|
122
|
-
let headerParams = {};
|
|
123
|
-
let formParams = {};
|
|
124
|
-
let authNames = [];
|
|
125
|
-
let contentTypes = [];
|
|
126
|
-
let accepts = ['application/json'];
|
|
127
|
-
let returnType = DtoSecretResponse;
|
|
128
|
-
return this.apiClient.callApi('/secrets/integrations/{provider}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Callback function to receive the result of the secretsIntegrationsProviderPost operation.
|
|
133
|
-
* @callback module:api/IntegrationsApi~secretsIntegrationsProviderPostCallback
|
|
134
|
-
* @param {String} error Error message, if any.
|
|
135
|
-
* @param {module:model/DtoSecretResponse} data The data returned by the service call.
|
|
136
|
-
* @param {String} response The complete HTTP response.
|
|
137
|
-
*/
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Create or update an integration
|
|
141
|
-
* Create or update integration credentials
|
|
142
|
-
* @param {String} provider Integration provider
|
|
143
|
-
* @param {module:model/DtoCreateIntegrationRequest} request Integration creation request
|
|
144
|
-
* @param {module:api/IntegrationsApi~secretsIntegrationsProviderPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
145
|
-
* data is of type: {@link module:model/DtoSecretResponse}
|
|
146
|
-
*/
|
|
147
|
-
secretsIntegrationsProviderPost(provider, request, callback) {
|
|
148
|
-
let postBody = request;
|
|
149
|
-
// verify the required parameter 'provider' is set
|
|
150
|
-
if (provider === undefined || provider === null) {
|
|
151
|
-
throw new Error("Missing the required parameter 'provider' when calling secretsIntegrationsProviderPost");
|
|
152
|
-
}
|
|
153
|
-
// verify the required parameter 'request' is set
|
|
154
|
-
if (request === undefined || request === null) {
|
|
155
|
-
throw new Error("Missing the required parameter 'request' when calling secretsIntegrationsProviderPost");
|
|
156
|
-
}
|
|
157
|
-
let pathParams = {
|
|
158
|
-
'provider': provider
|
|
159
|
-
};
|
|
160
|
-
let queryParams = {};
|
|
161
|
-
let headerParams = {};
|
|
162
|
-
let formParams = {};
|
|
163
|
-
let authNames = [];
|
|
164
|
-
let contentTypes = ['application/json'];
|
|
165
|
-
let accepts = ['application/json'];
|
|
166
|
-
let returnType = DtoSecretResponse;
|
|
167
|
-
return this.apiClient.callApi('/secrets/integrations/{provider}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
168
|
-
}
|
|
169
|
-
}
|