@emilgroup/tenant-sdk-node 1.0.0-beta.0
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 +109 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +68 -0
- package/api/alerts-api.ts +860 -0
- package/api/custom-schema-api.ts +580 -0
- package/api/dashboard-api.ts +792 -0
- package/api/data-report-executor-api.ts +183 -0
- package/api/permissions-api.ts +307 -0
- package/api/reports-api.ts +860 -0
- package/api/roles-api.ts +564 -0
- package/api/scenario-analysis-api.ts +977 -0
- package/api/settings-api.ts +478 -0
- package/api/tariff-comparisons-api.ts +381 -0
- package/api/tenants-api.ts +514 -0
- package/api/user-subscription-api.ts +191 -0
- package/api/users-api.ts +1645 -0
- package/api.ts +60 -0
- package/base.ts +283 -0
- package/common.ts +199 -0
- package/configuration.ts +109 -0
- package/dist/api/alerts-api.d.ts +479 -0
- package/dist/api/alerts-api.js +752 -0
- package/dist/api/custom-schema-api.d.ts +329 -0
- package/dist/api/custom-schema-api.js +548 -0
- package/dist/api/dashboard-api.d.ts +434 -0
- package/dist/api/dashboard-api.js +724 -0
- package/dist/api/data-report-executor-api.d.ts +106 -0
- package/dist/api/data-report-executor-api.js +234 -0
- package/dist/api/permissions-api.d.ts +172 -0
- package/dist/api/permissions-api.js +331 -0
- package/dist/api/reports-api.d.ts +479 -0
- package/dist/api/reports-api.js +752 -0
- package/dist/api/roles-api.d.ts +301 -0
- package/dist/api/roles-api.js +578 -0
- package/dist/api/scenario-analysis-api.d.ts +529 -0
- package/dist/api/scenario-analysis-api.js +895 -0
- package/dist/api/settings-api.d.ts +261 -0
- package/dist/api/settings-api.js +509 -0
- package/dist/api/tariff-comparisons-api.d.ts +206 -0
- package/dist/api/tariff-comparisons-api.js +409 -0
- package/dist/api/tenants-api.d.ts +282 -0
- package/dist/api/tenants-api.js +514 -0
- package/dist/api/user-subscription-api.d.ts +111 -0
- package/dist/api/user-subscription-api.js +236 -0
- package/dist/api/users-api.d.ts +884 -0
- package/dist/api/users-api.js +1456 -0
- package/dist/api.d.ts +28 -0
- package/dist/api.js +48 -0
- package/dist/base.d.ts +76 -0
- package/dist/base.js +392 -0
- package/dist/common.d.ts +92 -0
- package/dist/common.js +277 -0
- package/dist/configuration.d.ts +90 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +35 -0
- package/dist/models/alert-class.d.ts +90 -0
- package/dist/models/alert-class.js +15 -0
- package/dist/models/assign-user-roles-request-dto.d.ts +30 -0
- package/dist/models/assign-user-roles-request-dto.js +15 -0
- package/dist/models/assign-user-roles-response-class.d.ts +25 -0
- package/dist/models/assign-user-roles-response-class.js +15 -0
- package/dist/models/batch-delete-request-dto.d.ts +24 -0
- package/dist/models/batch-delete-request-dto.js +15 -0
- package/dist/models/compare-tariffs-request-dto.d.ts +37 -0
- package/dist/models/compare-tariffs-request-dto.js +22 -0
- package/dist/models/compare-tariffs-response-class.d.ts +30 -0
- package/dist/models/compare-tariffs-response-class.js +15 -0
- package/dist/models/condition-dto.d.ts +43 -0
- package/dist/models/condition-dto.js +22 -0
- package/dist/models/create-alert-request-dto.d.ts +79 -0
- package/dist/models/create-alert-request-dto.js +27 -0
- package/dist/models/create-alert-response-class.d.ts +25 -0
- package/dist/models/create-alert-response-class.js +15 -0
- package/dist/models/create-custom-schema-request-dto.d.ts +44 -0
- package/dist/models/create-custom-schema-request-dto.js +22 -0
- package/dist/models/create-custom-schema-response-class.d.ts +25 -0
- package/dist/models/create-custom-schema-response-class.js +15 -0
- package/dist/models/create-dashboard-request-dto.d.ts +70 -0
- package/dist/models/create-dashboard-request-dto.js +29 -0
- package/dist/models/create-dashboard-response-class.d.ts +25 -0
- package/dist/models/create-dashboard-response-class.js +15 -0
- package/dist/models/create-permission-request-dto.d.ts +48 -0
- package/dist/models/create-permission-request-dto.js +15 -0
- package/dist/models/create-permission-response-class.d.ts +25 -0
- package/dist/models/create-permission-response-class.js +15 -0
- package/dist/models/create-report-request-dto.d.ts +49 -0
- package/dist/models/create-report-request-dto.js +22 -0
- package/dist/models/create-report-response-class.d.ts +25 -0
- package/dist/models/create-report-response-class.js +15 -0
- package/dist/models/create-role-request-dto.d.ts +36 -0
- package/dist/models/create-role-request-dto.js +15 -0
- package/dist/models/create-role-response-class.d.ts +25 -0
- package/dist/models/create-role-response-class.js +15 -0
- package/dist/models/create-scenario-analysis-request-dto.d.ts +74 -0
- package/dist/models/create-scenario-analysis-request-dto.js +22 -0
- package/dist/models/create-scenario-analysis-response-class.d.ts +25 -0
- package/dist/models/create-scenario-analysis-response-class.js +15 -0
- package/dist/models/create-tenant-request-dto.d.ts +56 -0
- package/dist/models/create-tenant-request-dto.js +15 -0
- package/dist/models/create-tenant-response-class.d.ts +42 -0
- package/dist/models/create-tenant-response-class.js +15 -0
- package/dist/models/custom-field-dto.d.ts +68 -0
- package/dist/models/custom-field-dto.js +23 -0
- package/dist/models/custom-schema-class.d.ts +66 -0
- package/dist/models/custom-schema-class.js +15 -0
- package/dist/models/dashboard-class.d.ts +78 -0
- package/dist/models/dashboard-class.js +15 -0
- package/dist/models/dbconfig-dto.d.ts +48 -0
- package/dist/models/dbconfig-dto.js +15 -0
- package/dist/models/disable-user-response-class.d.ts +25 -0
- package/dist/models/disable-user-response-class.js +15 -0
- package/dist/models/disable-users-request-dto.d.ts +24 -0
- package/dist/models/disable-users-request-dto.js +15 -0
- package/dist/models/enable-user-response-class.d.ts +25 -0
- package/dist/models/enable-user-response-class.js +15 -0
- package/dist/models/enable-users-request-dto.d.ts +24 -0
- package/dist/models/enable-users-request-dto.js +15 -0
- package/dist/models/get-alert-response-class.d.ts +25 -0
- package/dist/models/get-alert-response-class.js +15 -0
- package/dist/models/get-custom-schema-response-class.d.ts +25 -0
- package/dist/models/get-custom-schema-response-class.js +15 -0
- package/dist/models/get-dashboard-response-class.d.ts +25 -0
- package/dist/models/get-dashboard-response-class.js +15 -0
- package/dist/models/get-embedded-url-response-class.d.ts +24 -0
- package/dist/models/get-embedded-url-response-class.js +15 -0
- package/dist/models/get-report-response-class.d.ts +25 -0
- package/dist/models/get-report-response-class.js +15 -0
- package/dist/models/get-role-response-class.d.ts +25 -0
- package/dist/models/get-role-response-class.js +15 -0
- package/dist/models/get-scenario-analysis-response-class.d.ts +25 -0
- package/dist/models/get-scenario-analysis-response-class.js +15 -0
- package/dist/models/get-user-response-class.d.ts +25 -0
- package/dist/models/get-user-response-class.js +15 -0
- package/dist/models/index.d.ts +83 -0
- package/dist/models/index.js +99 -0
- package/dist/models/invite-class.d.ts +54 -0
- package/dist/models/invite-class.js +15 -0
- package/dist/models/invite-user-request-dto.d.ts +30 -0
- package/dist/models/invite-user-request-dto.js +15 -0
- package/dist/models/invite-user-response-class.d.ts +25 -0
- package/dist/models/invite-user-response-class.js +15 -0
- package/dist/models/invite-users-request-dto.d.ts +30 -0
- package/dist/models/invite-users-request-dto.js +15 -0
- package/dist/models/list-alert-history-response-class.d.ts +30 -0
- package/dist/models/list-alert-history-response-class.js +15 -0
- package/dist/models/list-alerts-response-class.d.ts +30 -0
- package/dist/models/list-alerts-response-class.js +15 -0
- package/dist/models/list-channels-response-class.d.ts +24 -0
- package/dist/models/list-channels-response-class.js +15 -0
- package/dist/models/list-custom-schemas-response-class.d.ts +30 -0
- package/dist/models/list-custom-schemas-response-class.js +15 -0
- package/dist/models/list-dashboards-response-class.d.ts +30 -0
- package/dist/models/list-dashboards-response-class.js +15 -0
- package/dist/models/list-insurance-companies-response-class.d.ts +24 -0
- package/dist/models/list-insurance-companies-response-class.js +15 -0
- package/dist/models/list-invites-response-class.d.ts +30 -0
- package/dist/models/list-invites-response-class.js +15 -0
- package/dist/models/list-permissions-response-class.d.ts +30 -0
- package/dist/models/list-permissions-response-class.js +15 -0
- package/dist/models/list-report-history-response-class.d.ts +30 -0
- package/dist/models/list-report-history-response-class.js +15 -0
- package/dist/models/list-reports-response-class.d.ts +30 -0
- package/dist/models/list-reports-response-class.js +15 -0
- package/dist/models/list-roles-response-class.d.ts +30 -0
- package/dist/models/list-roles-response-class.js +15 -0
- package/dist/models/list-scenario-analyses-response-class.d.ts +30 -0
- package/dist/models/list-scenario-analyses-response-class.js +15 -0
- package/dist/models/list-scenario-analysis-dates-response-class.d.ts +24 -0
- package/dist/models/list-scenario-analysis-dates-response-class.js +15 -0
- package/dist/models/list-tariff-insurance-companies-response-class.d.ts +24 -0
- package/dist/models/list-tariff-insurance-companies-response-class.js +15 -0
- package/dist/models/list-tariffs-response-class.d.ts +24 -0
- package/dist/models/list-tariffs-response-class.js +15 -0
- package/dist/models/list-users-response-class.d.ts +30 -0
- package/dist/models/list-users-response-class.js +15 -0
- package/dist/models/manage-subscription-request-dto.d.ts +24 -0
- package/dist/models/manage-subscription-request-dto.js +15 -0
- package/dist/models/manage-subscription-response-class.d.ts +25 -0
- package/dist/models/manage-subscription-response-class.js +15 -0
- package/dist/models/permission-class.d.ts +66 -0
- package/dist/models/permission-class.js +15 -0
- package/dist/models/report-class.d.ts +66 -0
- package/dist/models/report-class.js +15 -0
- package/dist/models/role-class.d.ts +60 -0
- package/dist/models/role-class.js +15 -0
- package/dist/models/run-data-report-request-dto.d.ts +30 -0
- package/dist/models/run-data-report-request-dto.js +15 -0
- package/dist/models/run-data-report-response-class.d.ts +24 -0
- package/dist/models/run-data-report-response-class.js +15 -0
- package/dist/models/scenario-analysis-class.d.ts +108 -0
- package/dist/models/scenario-analysis-class.js +15 -0
- package/dist/models/set-user-setting-request-dto.d.ts +30 -0
- package/dist/models/set-user-setting-request-dto.js +15 -0
- package/dist/models/subscription-class.d.ts +60 -0
- package/dist/models/subscription-class.js +15 -0
- package/dist/models/tenant-admin-user-dto.d.ts +42 -0
- package/dist/models/tenant-admin-user-dto.js +15 -0
- package/dist/models/update-alert-request-dto.d.ts +72 -0
- package/dist/models/update-alert-request-dto.js +21 -0
- package/dist/models/update-alert-response-class.d.ts +25 -0
- package/dist/models/update-alert-response-class.js +15 -0
- package/dist/models/update-custom-schema-request-dto.d.ts +44 -0
- package/dist/models/update-custom-schema-request-dto.js +22 -0
- package/dist/models/update-custom-schema-response-class.d.ts +25 -0
- package/dist/models/update-custom-schema-response-class.js +15 -0
- package/dist/models/update-dashboard-request-dto.d.ts +76 -0
- package/dist/models/update-dashboard-request-dto.js +29 -0
- package/dist/models/update-dashboard-response-class.d.ts +25 -0
- package/dist/models/update-dashboard-response-class.js +15 -0
- package/dist/models/update-report-request-dto.d.ts +55 -0
- package/dist/models/update-report-request-dto.js +22 -0
- package/dist/models/update-report-response-class.d.ts +25 -0
- package/dist/models/update-report-response-class.js +15 -0
- package/dist/models/update-role-request-dto.d.ts +42 -0
- package/dist/models/update-role-request-dto.js +15 -0
- package/dist/models/update-role-response-class.d.ts +25 -0
- package/dist/models/update-role-response-class.js +15 -0
- package/dist/models/update-scenario-analysis-request-dto.d.ts +74 -0
- package/dist/models/update-scenario-analysis-request-dto.js +22 -0
- package/dist/models/update-scenario-analysis-response-class.d.ts +25 -0
- package/dist/models/update-scenario-analysis-response-class.js +15 -0
- package/dist/models/user-class.d.ts +90 -0
- package/dist/models/user-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/alert-class.ts +96 -0
- package/models/assign-user-roles-request-dto.ts +36 -0
- package/models/assign-user-roles-response-class.ts +31 -0
- package/models/batch-delete-request-dto.ts +30 -0
- package/models/compare-tariffs-request-dto.ts +46 -0
- package/models/compare-tariffs-response-class.ts +36 -0
- package/models/condition-dto.ts +52 -0
- package/models/create-alert-request-dto.ts +89 -0
- package/models/create-alert-response-class.ts +31 -0
- package/models/create-custom-schema-request-dto.ts +53 -0
- package/models/create-custom-schema-response-class.ts +31 -0
- package/models/create-dashboard-request-dto.ts +81 -0
- package/models/create-dashboard-response-class.ts +31 -0
- package/models/create-permission-request-dto.ts +54 -0
- package/models/create-permission-response-class.ts +31 -0
- package/models/create-report-request-dto.ts +58 -0
- package/models/create-report-response-class.ts +31 -0
- package/models/create-role-request-dto.ts +42 -0
- package/models/create-role-response-class.ts +31 -0
- package/models/create-scenario-analysis-request-dto.ts +83 -0
- package/models/create-scenario-analysis-response-class.ts +31 -0
- package/models/create-tenant-request-dto.ts +62 -0
- package/models/create-tenant-response-class.ts +48 -0
- package/models/custom-field-dto.ts +77 -0
- package/models/custom-schema-class.ts +72 -0
- package/models/dashboard-class.ts +84 -0
- package/models/dbconfig-dto.ts +54 -0
- package/models/disable-user-response-class.ts +31 -0
- package/models/disable-users-request-dto.ts +30 -0
- package/models/enable-user-response-class.ts +31 -0
- package/models/enable-users-request-dto.ts +30 -0
- package/models/get-alert-response-class.ts +31 -0
- package/models/get-custom-schema-response-class.ts +31 -0
- package/models/get-dashboard-response-class.ts +31 -0
- package/models/get-embedded-url-response-class.ts +30 -0
- package/models/get-report-response-class.ts +31 -0
- package/models/get-role-response-class.ts +31 -0
- package/models/get-scenario-analysis-response-class.ts +31 -0
- package/models/get-user-response-class.ts +31 -0
- package/models/index.ts +83 -0
- package/models/invite-class.ts +60 -0
- package/models/invite-user-request-dto.ts +36 -0
- package/models/invite-user-response-class.ts +31 -0
- package/models/invite-users-request-dto.ts +36 -0
- package/models/list-alert-history-response-class.ts +36 -0
- package/models/list-alerts-response-class.ts +36 -0
- package/models/list-channels-response-class.ts +30 -0
- package/models/list-custom-schemas-response-class.ts +36 -0
- package/models/list-dashboards-response-class.ts +36 -0
- package/models/list-insurance-companies-response-class.ts +30 -0
- package/models/list-invites-response-class.ts +36 -0
- package/models/list-permissions-response-class.ts +36 -0
- package/models/list-report-history-response-class.ts +36 -0
- package/models/list-reports-response-class.ts +36 -0
- package/models/list-roles-response-class.ts +36 -0
- package/models/list-scenario-analyses-response-class.ts +36 -0
- package/models/list-scenario-analysis-dates-response-class.ts +30 -0
- package/models/list-tariff-insurance-companies-response-class.ts +30 -0
- package/models/list-tariffs-response-class.ts +30 -0
- package/models/list-users-response-class.ts +36 -0
- package/models/manage-subscription-request-dto.ts +30 -0
- package/models/manage-subscription-response-class.ts +31 -0
- package/models/permission-class.ts +72 -0
- package/models/report-class.ts +72 -0
- package/models/role-class.ts +66 -0
- package/models/run-data-report-request-dto.ts +36 -0
- package/models/run-data-report-response-class.ts +30 -0
- package/models/scenario-analysis-class.ts +114 -0
- package/models/set-user-setting-request-dto.ts +36 -0
- package/models/subscription-class.ts +66 -0
- package/models/tenant-admin-user-dto.ts +48 -0
- package/models/update-alert-request-dto.ts +81 -0
- package/models/update-alert-response-class.ts +31 -0
- package/models/update-custom-schema-request-dto.ts +53 -0
- package/models/update-custom-schema-response-class.ts +31 -0
- package/models/update-dashboard-request-dto.ts +87 -0
- package/models/update-dashboard-response-class.ts +31 -0
- package/models/update-report-request-dto.ts +64 -0
- package/models/update-report-response-class.ts +31 -0
- package/models/update-role-request-dto.ts +48 -0
- package/models/update-role-response-class.ts +31 -0
- package/models/update-scenario-analysis-request-dto.ts +83 -0
- package/models/update-scenario-analysis-response-class.ts +31 -0
- package/models/user-class.ts +96 -0
- package/package.json +29 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Tenant Service
|
|
5
|
+
* The EMIL TenantService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { ManageSubscriptionRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ManageSubscriptionResponseClass } from '../models';
|
|
27
|
+
// URLSearchParams not necessarily used
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import { URL, URLSearchParams } from 'url';
|
|
30
|
+
const FormData = require('form-data');
|
|
31
|
+
/**
|
|
32
|
+
* UserSubscriptionApi - axios parameter creator
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const UserSubscriptionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @param {string} entity
|
|
40
|
+
* @param {number} entityId
|
|
41
|
+
* @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
|
|
42
|
+
* @param {string} [authorization] Bearer Token
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
manageSubscription: async (entity: string, entityId: number, manageSubscriptionRequestDto: ManageSubscriptionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
47
|
+
// verify required parameter 'entity' is not null or undefined
|
|
48
|
+
assertParamExists('manageSubscription', 'entity', entity)
|
|
49
|
+
// verify required parameter 'entityId' is not null or undefined
|
|
50
|
+
assertParamExists('manageSubscription', 'entityId', entityId)
|
|
51
|
+
// verify required parameter 'manageSubscriptionRequestDto' is not null or undefined
|
|
52
|
+
assertParamExists('manageSubscription', 'manageSubscriptionRequestDto', manageSubscriptionRequestDto)
|
|
53
|
+
const localVarPath = `/tenantservice/v1/subscriptions/{entity}/{entityId}`
|
|
54
|
+
.replace(`{${"entity"}}`, encodeURIComponent(String(entity)))
|
|
55
|
+
.replace(`{${"entityId"}}`, encodeURIComponent(String(entityId)));
|
|
56
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
58
|
+
let baseOptions;
|
|
59
|
+
let baseAccessToken;
|
|
60
|
+
if (configuration) {
|
|
61
|
+
baseOptions = configuration.baseOptions;
|
|
62
|
+
baseAccessToken = configuration.accessToken;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
66
|
+
const localVarHeaderParameter = {} as any;
|
|
67
|
+
const localVarQueryParameter = {} as any;
|
|
68
|
+
|
|
69
|
+
// authentication bearer required
|
|
70
|
+
// http bearer authentication required
|
|
71
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
72
|
+
|
|
73
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
74
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
80
|
+
|
|
81
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
83
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
84
|
+
localVarRequestOptions.data = serializeDataIfNeeded(manageSubscriptionRequestDto, localVarRequestOptions, configuration)
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
url: toPathString(localVarUrlObj),
|
|
88
|
+
options: localVarRequestOptions,
|
|
89
|
+
};
|
|
90
|
+
},
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* UserSubscriptionApi - functional programming interface
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export const UserSubscriptionApiFp = function(configuration?: Configuration) {
|
|
99
|
+
const localVarAxiosParamCreator = UserSubscriptionApiAxiosParamCreator(configuration)
|
|
100
|
+
return {
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @param {string} entity
|
|
104
|
+
* @param {number} entityId
|
|
105
|
+
* @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
|
|
106
|
+
* @param {string} [authorization] Bearer Token
|
|
107
|
+
* @param {*} [options] Override http request option.
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
*/
|
|
110
|
+
async manageSubscription(entity: string, entityId: number, manageSubscriptionRequestDto: ManageSubscriptionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManageSubscriptionResponseClass>> {
|
|
111
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.manageSubscription(entity, entityId, manageSubscriptionRequestDto, authorization, options);
|
|
112
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
113
|
+
},
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* UserSubscriptionApi - factory interface
|
|
119
|
+
* @export
|
|
120
|
+
*/
|
|
121
|
+
export const UserSubscriptionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
122
|
+
const localVarFp = UserSubscriptionApiFp(configuration)
|
|
123
|
+
return {
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @param {string} entity
|
|
127
|
+
* @param {number} entityId
|
|
128
|
+
* @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
|
|
129
|
+
* @param {string} [authorization] Bearer Token
|
|
130
|
+
* @param {*} [options] Override http request option.
|
|
131
|
+
* @throws {RequiredError}
|
|
132
|
+
*/
|
|
133
|
+
manageSubscription(entity: string, entityId: number, manageSubscriptionRequestDto: ManageSubscriptionRequestDto, authorization?: string, options?: any): AxiosPromise<ManageSubscriptionResponseClass> {
|
|
134
|
+
return localVarFp.manageSubscription(entity, entityId, manageSubscriptionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
135
|
+
},
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Request parameters for manageSubscription operation in UserSubscriptionApi.
|
|
141
|
+
* @export
|
|
142
|
+
* @interface UserSubscriptionApiManageSubscriptionRequest
|
|
143
|
+
*/
|
|
144
|
+
export interface UserSubscriptionApiManageSubscriptionRequest {
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof UserSubscriptionApiManageSubscription
|
|
149
|
+
*/
|
|
150
|
+
readonly entity: string
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @type {number}
|
|
155
|
+
* @memberof UserSubscriptionApiManageSubscription
|
|
156
|
+
*/
|
|
157
|
+
readonly entityId: number
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {ManageSubscriptionRequestDto}
|
|
162
|
+
* @memberof UserSubscriptionApiManageSubscription
|
|
163
|
+
*/
|
|
164
|
+
readonly manageSubscriptionRequestDto: ManageSubscriptionRequestDto
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Bearer Token
|
|
168
|
+
* @type {string}
|
|
169
|
+
* @memberof UserSubscriptionApiManageSubscription
|
|
170
|
+
*/
|
|
171
|
+
readonly authorization?: string
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* UserSubscriptionApi - object-oriented interface
|
|
176
|
+
* @export
|
|
177
|
+
* @class UserSubscriptionApi
|
|
178
|
+
* @extends {BaseAPI}
|
|
179
|
+
*/
|
|
180
|
+
export class UserSubscriptionApi extends BaseAPI {
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @param {UserSubscriptionApiManageSubscriptionRequest} requestParameters Request parameters.
|
|
184
|
+
* @param {*} [options] Override http request option.
|
|
185
|
+
* @throws {RequiredError}
|
|
186
|
+
* @memberof UserSubscriptionApi
|
|
187
|
+
*/
|
|
188
|
+
public manageSubscription(requestParameters: UserSubscriptionApiManageSubscriptionRequest, options?: AxiosRequestConfig) {
|
|
189
|
+
return UserSubscriptionApiFp(this.configuration).manageSubscription(requestParameters.entity, requestParameters.entityId, requestParameters.manageSubscriptionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
190
|
+
}
|
|
191
|
+
}
|