@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,236 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL Tenant Service
|
|
6
|
+
* The EMIL TenantService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.UserSubscriptionApi = exports.UserSubscriptionApiFactory = exports.UserSubscriptionApiFp = exports.UserSubscriptionApiAxiosParamCreator = void 0;
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
|
+
// Some imports not used depending on template conditions
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var common_1 = require("../common");
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
var base_1 = require("../base");
|
|
88
|
+
// URLSearchParams not necessarily used
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
var url_1 = require("url");
|
|
91
|
+
var FormData = require('form-data');
|
|
92
|
+
/**
|
|
93
|
+
* UserSubscriptionApi - axios parameter creator
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
var UserSubscriptionApiAxiosParamCreator = function (configuration) {
|
|
97
|
+
var _this = this;
|
|
98
|
+
return {
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @param {string} entity
|
|
102
|
+
* @param {number} entityId
|
|
103
|
+
* @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
|
|
104
|
+
* @param {string} [authorization] Bearer Token
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
manageSubscription: function (entity, entityId, manageSubscriptionRequestDto, authorization, options) {
|
|
109
|
+
if (options === void 0) { options = {}; }
|
|
110
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
switch (_a.label) {
|
|
114
|
+
case 0:
|
|
115
|
+
// verify required parameter 'entity' is not null or undefined
|
|
116
|
+
(0, common_1.assertParamExists)('manageSubscription', 'entity', entity);
|
|
117
|
+
// verify required parameter 'entityId' is not null or undefined
|
|
118
|
+
(0, common_1.assertParamExists)('manageSubscription', 'entityId', entityId);
|
|
119
|
+
// verify required parameter 'manageSubscriptionRequestDto' is not null or undefined
|
|
120
|
+
(0, common_1.assertParamExists)('manageSubscription', 'manageSubscriptionRequestDto', manageSubscriptionRequestDto);
|
|
121
|
+
localVarPath = "/tenantservice/v1/subscriptions/{entity}/{entityId}"
|
|
122
|
+
.replace("{".concat("entity", "}"), encodeURIComponent(String(entity)))
|
|
123
|
+
.replace("{".concat("entityId", "}"), encodeURIComponent(String(entityId)));
|
|
124
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
125
|
+
if (configuration) {
|
|
126
|
+
baseOptions = configuration.baseOptions;
|
|
127
|
+
baseAccessToken = configuration.accessToken;
|
|
128
|
+
}
|
|
129
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
130
|
+
localVarHeaderParameter = {};
|
|
131
|
+
localVarQueryParameter = {};
|
|
132
|
+
// authentication bearer required
|
|
133
|
+
// http bearer authentication required
|
|
134
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
135
|
+
case 1:
|
|
136
|
+
// authentication bearer required
|
|
137
|
+
// http bearer authentication required
|
|
138
|
+
_a.sent();
|
|
139
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
140
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
141
|
+
}
|
|
142
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
143
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
144
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
146
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(manageSubscriptionRequestDto, localVarRequestOptions, configuration);
|
|
147
|
+
return [2 /*return*/, {
|
|
148
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
149
|
+
options: localVarRequestOptions,
|
|
150
|
+
}];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
},
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
exports.UserSubscriptionApiAxiosParamCreator = UserSubscriptionApiAxiosParamCreator;
|
|
158
|
+
/**
|
|
159
|
+
* UserSubscriptionApi - functional programming interface
|
|
160
|
+
* @export
|
|
161
|
+
*/
|
|
162
|
+
var UserSubscriptionApiFp = function (configuration) {
|
|
163
|
+
var localVarAxiosParamCreator = (0, exports.UserSubscriptionApiAxiosParamCreator)(configuration);
|
|
164
|
+
return {
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @param {string} entity
|
|
168
|
+
* @param {number} entityId
|
|
169
|
+
* @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
|
|
170
|
+
* @param {string} [authorization] Bearer Token
|
|
171
|
+
* @param {*} [options] Override http request option.
|
|
172
|
+
* @throws {RequiredError}
|
|
173
|
+
*/
|
|
174
|
+
manageSubscription: function (entity, entityId, manageSubscriptionRequestDto, authorization, options) {
|
|
175
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
176
|
+
var localVarAxiosArgs;
|
|
177
|
+
return __generator(this, function (_a) {
|
|
178
|
+
switch (_a.label) {
|
|
179
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.manageSubscription(entity, entityId, manageSubscriptionRequestDto, authorization, options)];
|
|
180
|
+
case 1:
|
|
181
|
+
localVarAxiosArgs = _a.sent();
|
|
182
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
},
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
exports.UserSubscriptionApiFp = UserSubscriptionApiFp;
|
|
190
|
+
/**
|
|
191
|
+
* UserSubscriptionApi - factory interface
|
|
192
|
+
* @export
|
|
193
|
+
*/
|
|
194
|
+
var UserSubscriptionApiFactory = function (configuration, basePath, axios) {
|
|
195
|
+
var localVarFp = (0, exports.UserSubscriptionApiFp)(configuration);
|
|
196
|
+
return {
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
* @param {string} entity
|
|
200
|
+
* @param {number} entityId
|
|
201
|
+
* @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
|
|
202
|
+
* @param {string} [authorization] Bearer Token
|
|
203
|
+
* @param {*} [options] Override http request option.
|
|
204
|
+
* @throws {RequiredError}
|
|
205
|
+
*/
|
|
206
|
+
manageSubscription: function (entity, entityId, manageSubscriptionRequestDto, authorization, options) {
|
|
207
|
+
return localVarFp.manageSubscription(entity, entityId, manageSubscriptionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
208
|
+
},
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
exports.UserSubscriptionApiFactory = UserSubscriptionApiFactory;
|
|
212
|
+
/**
|
|
213
|
+
* UserSubscriptionApi - object-oriented interface
|
|
214
|
+
* @export
|
|
215
|
+
* @class UserSubscriptionApi
|
|
216
|
+
* @extends {BaseAPI}
|
|
217
|
+
*/
|
|
218
|
+
var UserSubscriptionApi = /** @class */ (function (_super) {
|
|
219
|
+
__extends(UserSubscriptionApi, _super);
|
|
220
|
+
function UserSubscriptionApi() {
|
|
221
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @param {UserSubscriptionApiManageSubscriptionRequest} requestParameters Request parameters.
|
|
226
|
+
* @param {*} [options] Override http request option.
|
|
227
|
+
* @throws {RequiredError}
|
|
228
|
+
* @memberof UserSubscriptionApi
|
|
229
|
+
*/
|
|
230
|
+
UserSubscriptionApi.prototype.manageSubscription = function (requestParameters, options) {
|
|
231
|
+
var _this = this;
|
|
232
|
+
return (0, exports.UserSubscriptionApiFp)(this.configuration).manageSubscription(requestParameters.entity, requestParameters.entityId, requestParameters.manageSubscriptionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
233
|
+
};
|
|
234
|
+
return UserSubscriptionApi;
|
|
235
|
+
}(base_1.BaseAPI));
|
|
236
|
+
exports.UserSubscriptionApi = UserSubscriptionApi;
|