@flexprice/sdk 0.0.1
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 +380 -0
- package/dist/ApiClient.js +703 -0
- package/dist/api/AuthApi.js +116 -0
- package/dist/api/CustomersApi.js +373 -0
- package/dist/api/EntitlementsApi.js +291 -0
- package/dist/api/EnvironmentsApi.js +204 -0
- package/dist/api/EventsApi.js +237 -0
- package/dist/api/FeaturesApi.js +252 -0
- package/dist/api/IntegrationsApi.js +189 -0
- package/dist/api/InvoicesApi.js +444 -0
- package/dist/api/MetersApi.js +287 -0
- package/dist/api/PaymentsApi.js +296 -0
- package/dist/api/PlansApi.js +248 -0
- package/dist/api/PricesApi.js +250 -0
- package/dist/api/SecretsApi.js +155 -0
- package/dist/api/SubscriptionsApi.js +383 -0
- package/dist/api/TasksApi.js +254 -0
- package/dist/api/TenantsApi.js +182 -0
- package/dist/api/UsersApi.js +75 -0
- package/dist/api/WalletsApi.js +384 -0
- package/dist/index.js +1154 -0
- package/dist/model/DtoAddress.js +149 -0
- package/dist/model/DtoAggregatedEntitlement.js +123 -0
- package/dist/model/DtoAggregatedFeature.js +138 -0
- package/dist/model/DtoAuthResponse.js +113 -0
- package/dist/model/DtoBillingPeriodInfo.js +114 -0
- package/dist/model/DtoBulkIngestEventRequest.js +130 -0
- package/dist/model/DtoCreateAPIKeyRequest.js +147 -0
- package/dist/model/DtoCreateAPIKeyResponse.js +103 -0
- package/dist/model/DtoCreateCustomerRequest.js +218 -0
- package/dist/model/DtoCreateEntitlementRequest.js +180 -0
- package/dist/model/DtoCreateEnvironmentRequest.js +126 -0
- package/dist/model/DtoCreateFeatureRequest.js +193 -0
- package/dist/model/DtoCreateIntegrationRequest.js +135 -0
- package/dist/model/DtoCreateInvoiceLineItemRequest.js +238 -0
- package/dist/model/DtoCreateInvoiceRequest.js +316 -0
- package/dist/model/DtoCreateMeterRequest.js +183 -0
- package/dist/model/DtoCreatePaymentRequest.js +202 -0
- package/dist/model/DtoCreatePlanEntitlementRequest.js +180 -0
- package/dist/model/DtoCreatePlanPriceRequest.js +318 -0
- package/dist/model/DtoCreatePlanRequest.js +196 -0
- package/dist/model/DtoCreatePriceRequest.js +318 -0
- package/dist/model/DtoCreatePriceTier.js +132 -0
- package/dist/model/DtoCreateSubscriptionRequest.js +244 -0
- package/dist/model/DtoCreateTaskRequest.js +167 -0
- package/dist/model/DtoCreateTenantRequest.js +126 -0
- package/dist/model/DtoCreateWalletRequest.js +216 -0
- package/dist/model/DtoCustomerEntitlementsResponse.js +122 -0
- package/dist/model/DtoCustomerInvoiceSummary.js +165 -0
- package/dist/model/DtoCustomerMultiCurrencyInvoiceSummary.js +134 -0
- package/dist/model/DtoCustomerResponse.js +300 -0
- package/dist/model/DtoCustomerUsageSummaryResponse.js +150 -0
- package/dist/model/DtoEntitlementResponse.js +276 -0
- package/dist/model/DtoEntitlementSource.js +161 -0
- package/dist/model/DtoEnvironmentResponse.js +137 -0
- package/dist/model/DtoEvent.js +159 -0
- package/dist/model/DtoFeatureResponse.js +275 -0
- package/dist/model/DtoFeatureUsageSummary.js +164 -0
- package/dist/model/DtoGetEventsResponse.js +142 -0
- package/dist/model/DtoGetPreviewInvoiceRequest.js +136 -0
- package/dist/model/DtoGetUsageByMeterRequest.js +179 -0
- package/dist/model/DtoGetUsageBySubscriptionRequest.js +144 -0
- package/dist/model/DtoGetUsageBySubscriptionResponse.js +166 -0
- package/dist/model/DtoGetUsageRequest.js +203 -0
- package/dist/model/DtoGetUsageResponse.js +139 -0
- package/dist/model/DtoIngestEventRequest.js +186 -0
- package/dist/model/DtoInvoiceLineItemResponse.js +343 -0
- package/dist/model/DtoInvoiceResponse.js +479 -0
- package/dist/model/DtoLinkedIntegrationsResponse.js +89 -0
- package/dist/model/DtoListCustomersResponse.js +124 -0
- package/dist/model/DtoListEntitlementsResponse.js +124 -0
- package/dist/model/DtoListEnvironmentsResponse.js +134 -0
- package/dist/model/DtoListFeaturesResponse.js +124 -0
- package/dist/model/DtoListInvoicesResponse.js +124 -0
- package/dist/model/DtoListPaymentsResponse.js +124 -0
- package/dist/model/DtoListPlansResponse.js +124 -0
- package/dist/model/DtoListPricesResponse.js +124 -0
- package/dist/model/DtoListSecretsResponse.js +124 -0
- package/dist/model/DtoListSubscriptionPausesResponse.js +118 -0
- package/dist/model/DtoListSubscriptionsResponse.js +124 -0
- package/dist/model/DtoListTasksResponse.js +124 -0
- package/dist/model/DtoListWalletTransactionsResponse.js +124 -0
- package/dist/model/DtoLoginRequest.js +138 -0
- package/dist/model/DtoMeterResponse.js +217 -0
- package/dist/model/DtoPauseSubscriptionRequest.js +171 -0
- package/dist/model/DtoPaymentAttemptResponse.js +191 -0
- package/dist/model/DtoPaymentResponse.js +331 -0
- package/dist/model/DtoPlanResponse.js +269 -0
- package/dist/model/DtoPriceResponse.js +412 -0
- package/dist/model/DtoResumeSubscriptionRequest.js +127 -0
- package/dist/model/DtoSecretResponse.js +200 -0
- package/dist/model/DtoSignUpRequest.js +148 -0
- package/dist/model/DtoSubscriptionPauseResponse.js +300 -0
- package/dist/model/DtoSubscriptionResponse.js +518 -0
- package/dist/model/DtoSubscriptionUsageByMetersResponse.js +165 -0
- package/dist/model/DtoTaskResponse.js +311 -0
- package/dist/model/DtoTenantBillingDetails.js +127 -0
- package/dist/model/DtoTenantBillingUsage.js +124 -0
- package/dist/model/DtoTenantResponse.js +151 -0
- package/dist/model/DtoTopUpWalletRequest.js +185 -0
- package/dist/model/DtoUpdateCustomerRequest.js +195 -0
- package/dist/model/DtoUpdateEntitlementRequest.js +122 -0
- package/dist/model/DtoUpdateEnvironmentRequest.js +101 -0
- package/dist/model/DtoUpdateFeatureRequest.js +135 -0
- package/dist/model/DtoUpdateMeterRequest.js +110 -0
- package/dist/model/DtoUpdatePaymentRequest.js +99 -0
- package/dist/model/DtoUpdatePaymentStatusRequest.js +117 -0
- package/dist/model/DtoUpdatePlanEntitlementRequest.js +193 -0
- package/dist/model/DtoUpdatePlanPriceRequest.js +331 -0
- package/dist/model/DtoUpdatePlanRequest.js +176 -0
- package/dist/model/DtoUpdatePriceRequest.js +111 -0
- package/dist/model/DtoUpdateTaskStatusRequest.js +109 -0
- package/dist/model/DtoUpdateTenantRequest.js +91 -0
- package/dist/model/DtoUpdateWalletRequest.js +150 -0
- package/dist/model/DtoUsageResult.js +97 -0
- package/dist/model/DtoUserResponse.js +115 -0
- package/dist/model/DtoWalletBalanceResponse.js +353 -0
- package/dist/model/DtoWalletResponse.js +252 -0
- package/dist/model/DtoWalletTransactionResponse.js +238 -0
- package/dist/model/ErrorsErrorDetail.js +111 -0
- package/dist/model/ErrorsErrorResponse.js +99 -0
- package/dist/model/MeterAggregation.js +99 -0
- package/dist/model/MeterFilter.js +103 -0
- package/dist/model/PriceJSONBTransformQuantity.js +99 -0
- package/dist/model/PricePrice.js +398 -0
- package/dist/model/PricePriceTier.js +104 -0
- package/dist/model/PriceTransformQuantity.js +99 -0
- package/dist/model/SubscriptionSubscriptionLineItem.js +355 -0
- package/dist/model/SubscriptionSubscriptionPause.js +300 -0
- package/dist/model/TypesAggregationType.js +68 -0
- package/dist/model/TypesAutoTopupTrigger.js +58 -0
- package/dist/model/TypesBillingCadence.js +58 -0
- package/dist/model/TypesBillingModel.js +63 -0
- package/dist/model/TypesBillingPeriod.js +78 -0
- package/dist/model/TypesBillingTier.js +58 -0
- package/dist/model/TypesEntityType.js +63 -0
- package/dist/model/TypesFeatureType.js +63 -0
- package/dist/model/TypesFileType.js +58 -0
- package/dist/model/TypesInvoiceBillingReason.js +68 -0
- package/dist/model/TypesInvoiceCadence.js +58 -0
- package/dist/model/TypesInvoiceStatus.js +63 -0
- package/dist/model/TypesInvoiceType.js +63 -0
- package/dist/model/TypesPaginationResponse.js +101 -0
- package/dist/model/TypesPauseMode.js +63 -0
- package/dist/model/TypesPauseStatus.js +73 -0
- package/dist/model/TypesPaymentDestinationType.js +53 -0
- package/dist/model/TypesPaymentMethodType.js +68 -0
- package/dist/model/TypesPaymentStatus.js +78 -0
- package/dist/model/TypesPriceType.js +58 -0
- package/dist/model/TypesResetUsage.js +58 -0
- package/dist/model/TypesResumeMode.js +63 -0
- package/dist/model/TypesSecretProvider.js +63 -0
- package/dist/model/TypesSecretType.js +63 -0
- package/dist/model/TypesStatus.js +63 -0
- package/dist/model/TypesSubscriptionStatus.js +88 -0
- package/dist/model/TypesTaskStatus.js +68 -0
- package/dist/model/TypesTaskType.js +58 -0
- package/dist/model/TypesTransactionReason.js +88 -0
- package/dist/model/TypesTransactionStatus.js +63 -0
- package/dist/model/TypesTransactionType.js +58 -0
- package/dist/model/TypesWalletConfig.js +91 -0
- package/dist/model/TypesWalletConfigPriceType.js +63 -0
- package/dist/model/TypesWalletStatus.js +63 -0
- package/dist/model/TypesWalletTxReferenceType.js +68 -0
- package/dist/model/TypesWalletType.js +58 -0
- package/dist/model/TypesWindowSize.js +63 -0
- package/package.json +54 -0
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _DtoBulkIngestEventRequest = _interopRequireDefault(require("../model/DtoBulkIngestEventRequest"));
|
|
9
|
+
var _DtoGetEventsResponse = _interopRequireDefault(require("../model/DtoGetEventsResponse"));
|
|
10
|
+
var _DtoGetUsageByMeterRequest = _interopRequireDefault(require("../model/DtoGetUsageByMeterRequest"));
|
|
11
|
+
var _DtoGetUsageRequest = _interopRequireDefault(require("../model/DtoGetUsageRequest"));
|
|
12
|
+
var _DtoGetUsageResponse = _interopRequireDefault(require("../model/DtoGetUsageResponse"));
|
|
13
|
+
var _DtoIngestEventRequest = _interopRequireDefault(require("../model/DtoIngestEventRequest"));
|
|
14
|
+
var _ErrorsErrorResponse = _interopRequireDefault(require("../model/ErrorsErrorResponse"));
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
17
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
18
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
19
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
20
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
21
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
22
|
+
* FlexPrice API
|
|
23
|
+
* FlexPrice API Service
|
|
24
|
+
*
|
|
25
|
+
* The version of the OpenAPI document: 1.0
|
|
26
|
+
*
|
|
27
|
+
*
|
|
28
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
29
|
+
* https://openapi-generator.tech
|
|
30
|
+
* Do not edit the class manually.
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* Events service.
|
|
35
|
+
* @module api/EventsApi
|
|
36
|
+
* @version 1.0
|
|
37
|
+
*/
|
|
38
|
+
var EventsApi = exports["default"] = /*#__PURE__*/function () {
|
|
39
|
+
/**
|
|
40
|
+
* Constructs a new EventsApi.
|
|
41
|
+
* @alias module:api/EventsApi
|
|
42
|
+
* @class
|
|
43
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
44
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
45
|
+
*/
|
|
46
|
+
function EventsApi(apiClient) {
|
|
47
|
+
_classCallCheck(this, EventsApi);
|
|
48
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Callback function to receive the result of the eventsBulkPost operation.
|
|
53
|
+
* @callback module:api/EventsApi~eventsBulkPostCallback
|
|
54
|
+
* @param {String} error Error message, if any.
|
|
55
|
+
* @param {Object.<String, {String: String}>} data The data returned by the service call.
|
|
56
|
+
* @param {String} response The complete HTTP response.
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Bulk Ingest events
|
|
61
|
+
* Ingest bulk events into the system
|
|
62
|
+
* @param {module:model/DtoBulkIngestEventRequest} event Event data
|
|
63
|
+
* @param {module:api/EventsApi~eventsBulkPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
64
|
+
* data is of type: {@link Object.<String, {String: String}>}
|
|
65
|
+
*/
|
|
66
|
+
return _createClass(EventsApi, [{
|
|
67
|
+
key: "eventsBulkPost",
|
|
68
|
+
value: function eventsBulkPost(event, callback) {
|
|
69
|
+
var postBody = event;
|
|
70
|
+
// verify the required parameter 'event' is set
|
|
71
|
+
if (event === undefined || event === null) {
|
|
72
|
+
throw new Error("Missing the required parameter 'event' when calling eventsBulkPost");
|
|
73
|
+
}
|
|
74
|
+
var pathParams = {};
|
|
75
|
+
var queryParams = {};
|
|
76
|
+
var headerParams = {};
|
|
77
|
+
var formParams = {};
|
|
78
|
+
var authNames = ['ApiKeyAuth'];
|
|
79
|
+
var contentTypes = ['application/json'];
|
|
80
|
+
var accepts = ['application/json'];
|
|
81
|
+
var returnType = {
|
|
82
|
+
'String': 'String'
|
|
83
|
+
};
|
|
84
|
+
return this.apiClient.callApi('/events/bulk', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Callback function to receive the result of the eventsGet operation.
|
|
89
|
+
* @callback module:api/EventsApi~eventsGetCallback
|
|
90
|
+
* @param {String} error Error message, if any.
|
|
91
|
+
* @param {module:model/DtoGetEventsResponse} data The data returned by the service call.
|
|
92
|
+
* @param {String} response The complete HTTP response.
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Get raw events
|
|
97
|
+
* Retrieve raw events with pagination and filtering
|
|
98
|
+
* @param {Object} opts Optional parameters
|
|
99
|
+
* @param {String} [externalCustomerId] External Customer ID
|
|
100
|
+
* @param {String} [eventName] Event Name
|
|
101
|
+
* @param {String} [startTime] Start Time (RFC3339)
|
|
102
|
+
* @param {String} [endTime] End Time (RFC3339)
|
|
103
|
+
* @param {String} [iterFirstKey] Iter First Key (unix_timestamp_nanoseconds::event_id)
|
|
104
|
+
* @param {String} [iterLastKey] Iter Last Key (unix_timestamp_nanoseconds::event_id)
|
|
105
|
+
* @param {Number} [pageSize] Page Size (1-50)
|
|
106
|
+
* @param {module:api/EventsApi~eventsGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
107
|
+
* data is of type: {@link module:model/DtoGetEventsResponse}
|
|
108
|
+
*/
|
|
109
|
+
}, {
|
|
110
|
+
key: "eventsGet",
|
|
111
|
+
value: function eventsGet(opts, callback) {
|
|
112
|
+
opts = opts || {};
|
|
113
|
+
var postBody = null;
|
|
114
|
+
var pathParams = {};
|
|
115
|
+
var queryParams = {
|
|
116
|
+
'external_customer_id': opts['externalCustomerId'],
|
|
117
|
+
'event_name': opts['eventName'],
|
|
118
|
+
'start_time': opts['startTime'],
|
|
119
|
+
'end_time': opts['endTime'],
|
|
120
|
+
'iter_first_key': opts['iterFirstKey'],
|
|
121
|
+
'iter_last_key': opts['iterLastKey'],
|
|
122
|
+
'page_size': opts['pageSize']
|
|
123
|
+
};
|
|
124
|
+
var headerParams = {};
|
|
125
|
+
var formParams = {};
|
|
126
|
+
var authNames = ['ApiKeyAuth'];
|
|
127
|
+
var contentTypes = [];
|
|
128
|
+
var accepts = ['application/json'];
|
|
129
|
+
var returnType = _DtoGetEventsResponse["default"];
|
|
130
|
+
return this.apiClient.callApi('/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Callback function to receive the result of the eventsPost operation.
|
|
135
|
+
* @callback module:api/EventsApi~eventsPostCallback
|
|
136
|
+
* @param {String} error Error message, if any.
|
|
137
|
+
* @param {Object.<String, {String: String}>} data The data returned by the service call.
|
|
138
|
+
* @param {String} response The complete HTTP response.
|
|
139
|
+
*/
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Ingest event
|
|
143
|
+
* Ingest a new event into the system
|
|
144
|
+
* @param {module:model/DtoIngestEventRequest} event Event data
|
|
145
|
+
* @param {module:api/EventsApi~eventsPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
146
|
+
* data is of type: {@link Object.<String, {String: String}>}
|
|
147
|
+
*/
|
|
148
|
+
}, {
|
|
149
|
+
key: "eventsPost",
|
|
150
|
+
value: function eventsPost(event, callback) {
|
|
151
|
+
var postBody = event;
|
|
152
|
+
// verify the required parameter 'event' is set
|
|
153
|
+
if (event === undefined || event === null) {
|
|
154
|
+
throw new Error("Missing the required parameter 'event' when calling eventsPost");
|
|
155
|
+
}
|
|
156
|
+
var pathParams = {};
|
|
157
|
+
var queryParams = {};
|
|
158
|
+
var headerParams = {};
|
|
159
|
+
var formParams = {};
|
|
160
|
+
var authNames = ['ApiKeyAuth'];
|
|
161
|
+
var contentTypes = ['application/json'];
|
|
162
|
+
var accepts = ['application/json'];
|
|
163
|
+
var returnType = {
|
|
164
|
+
'String': 'String'
|
|
165
|
+
};
|
|
166
|
+
return this.apiClient.callApi('/events', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Callback function to receive the result of the eventsUsageMeterPost operation.
|
|
171
|
+
* @callback module:api/EventsApi~eventsUsageMeterPostCallback
|
|
172
|
+
* @param {String} error Error message, if any.
|
|
173
|
+
* @param {module:model/DtoGetUsageResponse} data The data returned by the service call.
|
|
174
|
+
* @param {String} response The complete HTTP response.
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Get usage by meter
|
|
179
|
+
* Retrieve aggregated usage statistics using meter configuration
|
|
180
|
+
* @param {module:model/DtoGetUsageByMeterRequest} request Request body
|
|
181
|
+
* @param {module:api/EventsApi~eventsUsageMeterPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
182
|
+
* data is of type: {@link module:model/DtoGetUsageResponse}
|
|
183
|
+
*/
|
|
184
|
+
}, {
|
|
185
|
+
key: "eventsUsageMeterPost",
|
|
186
|
+
value: function eventsUsageMeterPost(request, callback) {
|
|
187
|
+
var postBody = request;
|
|
188
|
+
// verify the required parameter 'request' is set
|
|
189
|
+
if (request === undefined || request === null) {
|
|
190
|
+
throw new Error("Missing the required parameter 'request' when calling eventsUsageMeterPost");
|
|
191
|
+
}
|
|
192
|
+
var pathParams = {};
|
|
193
|
+
var queryParams = {};
|
|
194
|
+
var headerParams = {};
|
|
195
|
+
var formParams = {};
|
|
196
|
+
var authNames = ['ApiKeyAuth'];
|
|
197
|
+
var contentTypes = [];
|
|
198
|
+
var accepts = ['application/json'];
|
|
199
|
+
var returnType = _DtoGetUsageResponse["default"];
|
|
200
|
+
return this.apiClient.callApi('/events/usage/meter', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Callback function to receive the result of the eventsUsagePost operation.
|
|
205
|
+
* @callback module:api/EventsApi~eventsUsagePostCallback
|
|
206
|
+
* @param {String} error Error message, if any.
|
|
207
|
+
* @param {module:model/DtoGetUsageResponse} data The data returned by the service call.
|
|
208
|
+
* @param {String} response The complete HTTP response.
|
|
209
|
+
*/
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Get usage statistics
|
|
213
|
+
* Retrieve aggregated usage statistics for events
|
|
214
|
+
* @param {module:model/DtoGetUsageRequest} request Request body
|
|
215
|
+
* @param {module:api/EventsApi~eventsUsagePostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
216
|
+
* data is of type: {@link module:model/DtoGetUsageResponse}
|
|
217
|
+
*/
|
|
218
|
+
}, {
|
|
219
|
+
key: "eventsUsagePost",
|
|
220
|
+
value: function eventsUsagePost(request, callback) {
|
|
221
|
+
var postBody = request;
|
|
222
|
+
// verify the required parameter 'request' is set
|
|
223
|
+
if (request === undefined || request === null) {
|
|
224
|
+
throw new Error("Missing the required parameter 'request' when calling eventsUsagePost");
|
|
225
|
+
}
|
|
226
|
+
var pathParams = {};
|
|
227
|
+
var queryParams = {};
|
|
228
|
+
var headerParams = {};
|
|
229
|
+
var formParams = {};
|
|
230
|
+
var authNames = ['ApiKeyAuth'];
|
|
231
|
+
var contentTypes = [];
|
|
232
|
+
var accepts = ['application/json'];
|
|
233
|
+
var returnType = _DtoGetUsageResponse["default"];
|
|
234
|
+
return this.apiClient.callApi('/events/usage', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
235
|
+
}
|
|
236
|
+
}]);
|
|
237
|
+
}();
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _DtoCreateFeatureRequest = _interopRequireDefault(require("../model/DtoCreateFeatureRequest"));
|
|
9
|
+
var _DtoFeatureResponse = _interopRequireDefault(require("../model/DtoFeatureResponse"));
|
|
10
|
+
var _DtoListFeaturesResponse = _interopRequireDefault(require("../model/DtoListFeaturesResponse"));
|
|
11
|
+
var _DtoUpdateFeatureRequest = _interopRequireDefault(require("../model/DtoUpdateFeatureRequest"));
|
|
12
|
+
var _ErrorsErrorResponse = _interopRequireDefault(require("../model/ErrorsErrorResponse"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
20
|
+
* FlexPrice API
|
|
21
|
+
* FlexPrice API Service
|
|
22
|
+
*
|
|
23
|
+
* The version of the OpenAPI document: 1.0
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27
|
+
* https://openapi-generator.tech
|
|
28
|
+
* Do not edit the class manually.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* Features service.
|
|
33
|
+
* @module api/FeaturesApi
|
|
34
|
+
* @version 1.0
|
|
35
|
+
*/
|
|
36
|
+
var FeaturesApi = exports["default"] = /*#__PURE__*/function () {
|
|
37
|
+
/**
|
|
38
|
+
* Constructs a new FeaturesApi.
|
|
39
|
+
* @alias module:api/FeaturesApi
|
|
40
|
+
* @class
|
|
41
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
42
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
43
|
+
*/
|
|
44
|
+
function FeaturesApi(apiClient) {
|
|
45
|
+
_classCallCheck(this, FeaturesApi);
|
|
46
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Callback function to receive the result of the featuresGet operation.
|
|
51
|
+
* @callback module:api/FeaturesApi~featuresGetCallback
|
|
52
|
+
* @param {String} error Error message, if any.
|
|
53
|
+
* @param {module:model/DtoListFeaturesResponse} data The data returned by the service call.
|
|
54
|
+
* @param {String} response The complete HTTP response.
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* List features
|
|
59
|
+
* List features with optional filtering
|
|
60
|
+
* @param {Object} opts Optional parameters
|
|
61
|
+
* @param {String} [endTime]
|
|
62
|
+
* @param {String} [expand]
|
|
63
|
+
* @param {Array.<String>} [featureIds] Feature specific filters
|
|
64
|
+
* @param {Number} [limit]
|
|
65
|
+
* @param {String} [lookupKey]
|
|
66
|
+
* @param {Array.<String>} [meterIds]
|
|
67
|
+
* @param {Number} [offset]
|
|
68
|
+
* @param {module:model/String} [order]
|
|
69
|
+
* @param {String} [sort]
|
|
70
|
+
* @param {String} [startTime]
|
|
71
|
+
* @param {module:model/String} [status]
|
|
72
|
+
* @param {module:api/FeaturesApi~featuresGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
73
|
+
* data is of type: {@link module:model/DtoListFeaturesResponse}
|
|
74
|
+
*/
|
|
75
|
+
return _createClass(FeaturesApi, [{
|
|
76
|
+
key: "featuresGet",
|
|
77
|
+
value: function featuresGet(opts, callback) {
|
|
78
|
+
opts = opts || {};
|
|
79
|
+
var postBody = null;
|
|
80
|
+
var pathParams = {};
|
|
81
|
+
var queryParams = {
|
|
82
|
+
'end_time': opts['endTime'],
|
|
83
|
+
'expand': opts['expand'],
|
|
84
|
+
'feature_ids': this.apiClient.buildCollectionParam(opts['featureIds'], 'csv'),
|
|
85
|
+
'limit': opts['limit'],
|
|
86
|
+
'lookup_key': opts['lookupKey'],
|
|
87
|
+
'meter_ids': this.apiClient.buildCollectionParam(opts['meterIds'], 'csv'),
|
|
88
|
+
'offset': opts['offset'],
|
|
89
|
+
'order': opts['order'],
|
|
90
|
+
'sort': opts['sort'],
|
|
91
|
+
'start_time': opts['startTime'],
|
|
92
|
+
'status': opts['status']
|
|
93
|
+
};
|
|
94
|
+
var headerParams = {};
|
|
95
|
+
var formParams = {};
|
|
96
|
+
var authNames = ['ApiKeyAuth'];
|
|
97
|
+
var contentTypes = [];
|
|
98
|
+
var accepts = ['application/json'];
|
|
99
|
+
var returnType = _DtoListFeaturesResponse["default"];
|
|
100
|
+
return this.apiClient.callApi('/features', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Callback function to receive the result of the featuresIdDelete operation.
|
|
105
|
+
* @callback module:api/FeaturesApi~featuresIdDeleteCallback
|
|
106
|
+
* @param {String} error Error message, if any.
|
|
107
|
+
* @param {Object.<String, {String: Object}>} data The data returned by the service call.
|
|
108
|
+
* @param {String} response The complete HTTP response.
|
|
109
|
+
*/
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Delete a feature
|
|
113
|
+
* Delete a feature by ID
|
|
114
|
+
* @param {String} id Feature ID
|
|
115
|
+
* @param {module:api/FeaturesApi~featuresIdDeleteCallback} callback The callback function, accepting three arguments: error, data, response
|
|
116
|
+
* data is of type: {@link Object.<String, {String: Object}>}
|
|
117
|
+
*/
|
|
118
|
+
}, {
|
|
119
|
+
key: "featuresIdDelete",
|
|
120
|
+
value: function featuresIdDelete(id, callback) {
|
|
121
|
+
var postBody = null;
|
|
122
|
+
// verify the required parameter 'id' is set
|
|
123
|
+
if (id === undefined || id === null) {
|
|
124
|
+
throw new Error("Missing the required parameter 'id' when calling featuresIdDelete");
|
|
125
|
+
}
|
|
126
|
+
var pathParams = {
|
|
127
|
+
'id': id
|
|
128
|
+
};
|
|
129
|
+
var queryParams = {};
|
|
130
|
+
var headerParams = {};
|
|
131
|
+
var formParams = {};
|
|
132
|
+
var authNames = ['ApiKeyAuth'];
|
|
133
|
+
var contentTypes = [];
|
|
134
|
+
var accepts = ['application/json'];
|
|
135
|
+
var returnType = {
|
|
136
|
+
'String': Object
|
|
137
|
+
};
|
|
138
|
+
return this.apiClient.callApi('/features/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Callback function to receive the result of the featuresIdGet operation.
|
|
143
|
+
* @callback module:api/FeaturesApi~featuresIdGetCallback
|
|
144
|
+
* @param {String} error Error message, if any.
|
|
145
|
+
* @param {module:model/DtoFeatureResponse} data The data returned by the service call.
|
|
146
|
+
* @param {String} response The complete HTTP response.
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Get a feature by ID
|
|
151
|
+
* Get a feature by ID
|
|
152
|
+
* @param {String} id Feature ID
|
|
153
|
+
* @param {module:api/FeaturesApi~featuresIdGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
154
|
+
* data is of type: {@link module:model/DtoFeatureResponse}
|
|
155
|
+
*/
|
|
156
|
+
}, {
|
|
157
|
+
key: "featuresIdGet",
|
|
158
|
+
value: function featuresIdGet(id, callback) {
|
|
159
|
+
var postBody = null;
|
|
160
|
+
// verify the required parameter 'id' is set
|
|
161
|
+
if (id === undefined || id === null) {
|
|
162
|
+
throw new Error("Missing the required parameter 'id' when calling featuresIdGet");
|
|
163
|
+
}
|
|
164
|
+
var pathParams = {
|
|
165
|
+
'id': id
|
|
166
|
+
};
|
|
167
|
+
var queryParams = {};
|
|
168
|
+
var headerParams = {};
|
|
169
|
+
var formParams = {};
|
|
170
|
+
var authNames = ['ApiKeyAuth'];
|
|
171
|
+
var contentTypes = [];
|
|
172
|
+
var accepts = ['application/json'];
|
|
173
|
+
var returnType = _DtoFeatureResponse["default"];
|
|
174
|
+
return this.apiClient.callApi('/features/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Callback function to receive the result of the featuresIdPut operation.
|
|
179
|
+
* @callback module:api/FeaturesApi~featuresIdPutCallback
|
|
180
|
+
* @param {String} error Error message, if any.
|
|
181
|
+
* @param {module:model/DtoFeatureResponse} data The data returned by the service call.
|
|
182
|
+
* @param {String} response The complete HTTP response.
|
|
183
|
+
*/
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Update a feature
|
|
187
|
+
* Update a feature by ID
|
|
188
|
+
* @param {String} id Feature ID
|
|
189
|
+
* @param {module:model/DtoUpdateFeatureRequest} feature Feature update data
|
|
190
|
+
* @param {module:api/FeaturesApi~featuresIdPutCallback} callback The callback function, accepting three arguments: error, data, response
|
|
191
|
+
* data is of type: {@link module:model/DtoFeatureResponse}
|
|
192
|
+
*/
|
|
193
|
+
}, {
|
|
194
|
+
key: "featuresIdPut",
|
|
195
|
+
value: function featuresIdPut(id, feature, callback) {
|
|
196
|
+
var postBody = feature;
|
|
197
|
+
// verify the required parameter 'id' is set
|
|
198
|
+
if (id === undefined || id === null) {
|
|
199
|
+
throw new Error("Missing the required parameter 'id' when calling featuresIdPut");
|
|
200
|
+
}
|
|
201
|
+
// verify the required parameter 'feature' is set
|
|
202
|
+
if (feature === undefined || feature === null) {
|
|
203
|
+
throw new Error("Missing the required parameter 'feature' when calling featuresIdPut");
|
|
204
|
+
}
|
|
205
|
+
var pathParams = {
|
|
206
|
+
'id': id
|
|
207
|
+
};
|
|
208
|
+
var queryParams = {};
|
|
209
|
+
var headerParams = {};
|
|
210
|
+
var formParams = {};
|
|
211
|
+
var authNames = ['ApiKeyAuth'];
|
|
212
|
+
var contentTypes = ['application/json'];
|
|
213
|
+
var accepts = ['application/json'];
|
|
214
|
+
var returnType = _DtoFeatureResponse["default"];
|
|
215
|
+
return this.apiClient.callApi('/features/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Callback function to receive the result of the featuresPost operation.
|
|
220
|
+
* @callback module:api/FeaturesApi~featuresPostCallback
|
|
221
|
+
* @param {String} error Error message, if any.
|
|
222
|
+
* @param {module:model/DtoFeatureResponse} data The data returned by the service call.
|
|
223
|
+
* @param {String} response The complete HTTP response.
|
|
224
|
+
*/
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Create a new feature
|
|
228
|
+
* Create a new feature
|
|
229
|
+
* @param {module:model/DtoCreateFeatureRequest} feature Feature to create
|
|
230
|
+
* @param {module:api/FeaturesApi~featuresPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
231
|
+
* data is of type: {@link module:model/DtoFeatureResponse}
|
|
232
|
+
*/
|
|
233
|
+
}, {
|
|
234
|
+
key: "featuresPost",
|
|
235
|
+
value: function featuresPost(feature, callback) {
|
|
236
|
+
var postBody = feature;
|
|
237
|
+
// verify the required parameter 'feature' is set
|
|
238
|
+
if (feature === undefined || feature === null) {
|
|
239
|
+
throw new Error("Missing the required parameter 'feature' when calling featuresPost");
|
|
240
|
+
}
|
|
241
|
+
var pathParams = {};
|
|
242
|
+
var queryParams = {};
|
|
243
|
+
var headerParams = {};
|
|
244
|
+
var formParams = {};
|
|
245
|
+
var authNames = ['ApiKeyAuth'];
|
|
246
|
+
var contentTypes = ['application/json'];
|
|
247
|
+
var accepts = ['application/json'];
|
|
248
|
+
var returnType = _DtoFeatureResponse["default"];
|
|
249
|
+
return this.apiClient.callApi('/features', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
250
|
+
}
|
|
251
|
+
}]);
|
|
252
|
+
}();
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _DtoCreateIntegrationRequest = _interopRequireDefault(require("../model/DtoCreateIntegrationRequest"));
|
|
9
|
+
var _DtoLinkedIntegrationsResponse = _interopRequireDefault(require("../model/DtoLinkedIntegrationsResponse"));
|
|
10
|
+
var _DtoSecretResponse = _interopRequireDefault(require("../model/DtoSecretResponse"));
|
|
11
|
+
var _ErrorsErrorResponse = _interopRequireDefault(require("../model/ErrorsErrorResponse"));
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
|
+
* FlexPrice API
|
|
20
|
+
* FlexPrice API Service
|
|
21
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: 1.0
|
|
23
|
+
*
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* Integrations service.
|
|
32
|
+
* @module api/IntegrationsApi
|
|
33
|
+
* @version 1.0
|
|
34
|
+
*/
|
|
35
|
+
var IntegrationsApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new IntegrationsApi.
|
|
38
|
+
* @alias module:api/IntegrationsApi
|
|
39
|
+
* @class
|
|
40
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
41
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
42
|
+
*/
|
|
43
|
+
function IntegrationsApi(apiClient) {
|
|
44
|
+
_classCallCheck(this, IntegrationsApi);
|
|
45
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Callback function to receive the result of the secretsIntegrationsIdDelete operation.
|
|
50
|
+
* @callback module:api/IntegrationsApi~secretsIntegrationsIdDeleteCallback
|
|
51
|
+
* @param {String} error Error message, if any.
|
|
52
|
+
* @param data This operation does not return a value.
|
|
53
|
+
* @param {String} response The complete HTTP response.
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Delete an integration
|
|
58
|
+
* Delete integration credentials
|
|
59
|
+
* @param {String} id Integration ID
|
|
60
|
+
* @param {module:api/IntegrationsApi~secretsIntegrationsIdDeleteCallback} callback The callback function, accepting three arguments: error, data, response
|
|
61
|
+
*/
|
|
62
|
+
return _createClass(IntegrationsApi, [{
|
|
63
|
+
key: "secretsIntegrationsIdDelete",
|
|
64
|
+
value: function secretsIntegrationsIdDelete(id, callback) {
|
|
65
|
+
var postBody = null;
|
|
66
|
+
// verify the required parameter 'id' is set
|
|
67
|
+
if (id === undefined || id === null) {
|
|
68
|
+
throw new Error("Missing the required parameter 'id' when calling secretsIntegrationsIdDelete");
|
|
69
|
+
}
|
|
70
|
+
var pathParams = {
|
|
71
|
+
'id': id
|
|
72
|
+
};
|
|
73
|
+
var queryParams = {};
|
|
74
|
+
var headerParams = {};
|
|
75
|
+
var formParams = {};
|
|
76
|
+
var authNames = [];
|
|
77
|
+
var contentTypes = [];
|
|
78
|
+
var accepts = ['application/json'];
|
|
79
|
+
var returnType = null;
|
|
80
|
+
return this.apiClient.callApi('/secrets/integrations/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Callback function to receive the result of the secretsIntegrationsLinkedGet operation.
|
|
85
|
+
* @callback module:api/IntegrationsApi~secretsIntegrationsLinkedGetCallback
|
|
86
|
+
* @param {String} error Error message, if any.
|
|
87
|
+
* @param {module:model/DtoLinkedIntegrationsResponse} data The data returned by the service call.
|
|
88
|
+
* @param {String} response The complete HTTP response.
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* List linked integrations
|
|
93
|
+
* Get a list of unique providers which have a valid linked integration secret
|
|
94
|
+
* @param {module:api/IntegrationsApi~secretsIntegrationsLinkedGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
95
|
+
* data is of type: {@link module:model/DtoLinkedIntegrationsResponse}
|
|
96
|
+
*/
|
|
97
|
+
}, {
|
|
98
|
+
key: "secretsIntegrationsLinkedGet",
|
|
99
|
+
value: function secretsIntegrationsLinkedGet(callback) {
|
|
100
|
+
var postBody = null;
|
|
101
|
+
var pathParams = {};
|
|
102
|
+
var queryParams = {};
|
|
103
|
+
var headerParams = {};
|
|
104
|
+
var formParams = {};
|
|
105
|
+
var authNames = [];
|
|
106
|
+
var contentTypes = [];
|
|
107
|
+
var accepts = ['application/json'];
|
|
108
|
+
var returnType = _DtoLinkedIntegrationsResponse["default"];
|
|
109
|
+
return this.apiClient.callApi('/secrets/integrations/linked', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Callback function to receive the result of the secretsIntegrationsProviderGet operation.
|
|
114
|
+
* @callback module:api/IntegrationsApi~secretsIntegrationsProviderGetCallback
|
|
115
|
+
* @param {String} error Error message, if any.
|
|
116
|
+
* @param {module:model/DtoSecretResponse} data The data returned by the service call.
|
|
117
|
+
* @param {String} response The complete HTTP response.
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Get integration details
|
|
122
|
+
* Get details of a specific integration
|
|
123
|
+
* @param {String} provider Integration provider
|
|
124
|
+
* @param {module:api/IntegrationsApi~secretsIntegrationsProviderGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
125
|
+
* data is of type: {@link module:model/DtoSecretResponse}
|
|
126
|
+
*/
|
|
127
|
+
}, {
|
|
128
|
+
key: "secretsIntegrationsProviderGet",
|
|
129
|
+
value: function secretsIntegrationsProviderGet(provider, callback) {
|
|
130
|
+
var postBody = null;
|
|
131
|
+
// verify the required parameter 'provider' is set
|
|
132
|
+
if (provider === undefined || provider === null) {
|
|
133
|
+
throw new Error("Missing the required parameter 'provider' when calling secretsIntegrationsProviderGet");
|
|
134
|
+
}
|
|
135
|
+
var pathParams = {
|
|
136
|
+
'provider': provider
|
|
137
|
+
};
|
|
138
|
+
var queryParams = {};
|
|
139
|
+
var headerParams = {};
|
|
140
|
+
var formParams = {};
|
|
141
|
+
var authNames = [];
|
|
142
|
+
var contentTypes = [];
|
|
143
|
+
var accepts = ['application/json'];
|
|
144
|
+
var returnType = _DtoSecretResponse["default"];
|
|
145
|
+
return this.apiClient.callApi('/secrets/integrations/{provider}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Callback function to receive the result of the secretsIntegrationsProviderPost operation.
|
|
150
|
+
* @callback module:api/IntegrationsApi~secretsIntegrationsProviderPostCallback
|
|
151
|
+
* @param {String} error Error message, if any.
|
|
152
|
+
* @param {module:model/DtoSecretResponse} data The data returned by the service call.
|
|
153
|
+
* @param {String} response The complete HTTP response.
|
|
154
|
+
*/
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Create or update an integration
|
|
158
|
+
* Create or update integration credentials
|
|
159
|
+
* @param {String} provider Integration provider
|
|
160
|
+
* @param {module:model/DtoCreateIntegrationRequest} request Integration creation request
|
|
161
|
+
* @param {module:api/IntegrationsApi~secretsIntegrationsProviderPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
162
|
+
* data is of type: {@link module:model/DtoSecretResponse}
|
|
163
|
+
*/
|
|
164
|
+
}, {
|
|
165
|
+
key: "secretsIntegrationsProviderPost",
|
|
166
|
+
value: function secretsIntegrationsProviderPost(provider, request, callback) {
|
|
167
|
+
var postBody = request;
|
|
168
|
+
// verify the required parameter 'provider' is set
|
|
169
|
+
if (provider === undefined || provider === null) {
|
|
170
|
+
throw new Error("Missing the required parameter 'provider' when calling secretsIntegrationsProviderPost");
|
|
171
|
+
}
|
|
172
|
+
// verify the required parameter 'request' is set
|
|
173
|
+
if (request === undefined || request === null) {
|
|
174
|
+
throw new Error("Missing the required parameter 'request' when calling secretsIntegrationsProviderPost");
|
|
175
|
+
}
|
|
176
|
+
var pathParams = {
|
|
177
|
+
'provider': provider
|
|
178
|
+
};
|
|
179
|
+
var queryParams = {};
|
|
180
|
+
var headerParams = {};
|
|
181
|
+
var formParams = {};
|
|
182
|
+
var authNames = [];
|
|
183
|
+
var contentTypes = ['application/json'];
|
|
184
|
+
var accepts = ['application/json'];
|
|
185
|
+
var returnType = _DtoSecretResponse["default"];
|
|
186
|
+
return this.apiClient.callApi('/secrets/integrations/{provider}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
187
|
+
}
|
|
188
|
+
}]);
|
|
189
|
+
}();
|