@emilgroup/tenant-sdk 1.0.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 +80 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +68 -0
- package/api/custom-schema-api.ts +580 -0
- package/api/data-report-api.ts +677 -0
- package/api/data-report-executor-api.ts +165 -0
- package/api/invite-organizations-api.ts +343 -0
- package/api/invite-users-api.ts +660 -0
- package/api/organizations-api.ts +339 -0
- package/api/users-api.ts +1087 -0
- package/api.ts +43 -0
- package/base.ts +284 -0
- package/common.ts +199 -0
- package/configuration.ts +109 -0
- package/dist/api/custom-schema-api.d.ts +329 -0
- package/dist/api/custom-schema-api.js +548 -0
- package/dist/api/data-report-api.d.ts +380 -0
- package/dist/api/data-report-api.js +636 -0
- package/dist/api/data-report-executor-api.d.ts +93 -0
- package/dist/api/data-report-executor-api.js +224 -0
- package/dist/api/invite-organizations-api.d.ts +198 -0
- package/dist/api/invite-organizations-api.js +351 -0
- package/dist/api/invite-users-api.d.ts +368 -0
- package/dist/api/invite-users-api.js +629 -0
- package/dist/api/organizations-api.d.ts +197 -0
- package/dist/api/organizations-api.js +350 -0
- package/dist/api/users-api.d.ts +588 -0
- package/dist/api/users-api.js +986 -0
- package/dist/api.d.ts +18 -0
- package/dist/api.js +36 -0
- package/dist/base.d.ts +77 -0
- package/dist/base.js +393 -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 +36 -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/batch-delete-response-class.d.ts +24 -0
- package/dist/models/batch-delete-response-class.js +15 -0
- package/dist/models/create-custom-schema-request-dto.d.ts +45 -0
- package/dist/models/create-custom-schema-request-dto.js +23 -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-data-report-request-dto.d.ts +61 -0
- package/dist/models/create-data-report-request-dto.js +15 -0
- package/dist/models/create-data-report-response-class.d.ts +25 -0
- package/dist/models/create-data-report-response-class.js +15 -0
- package/dist/models/create-permission-request-dto.d.ts +42 -0
- package/dist/models/create-permission-request-dto.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-tenant-request-dto.d.ts +56 -0
- package/dist/models/create-tenant-request-dto.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/data-report-class.d.ts +79 -0
- package/dist/models/data-report-class.js +15 -0
- package/dist/models/data-report-filter-class.d.ts +72 -0
- package/dist/models/data-report-filter-class.js +15 -0
- package/dist/models/data-report-filter-dto.d.ts +48 -0
- package/dist/models/data-report-filter-dto.js +15 -0
- package/dist/models/data-report-filter-single-value-dto.d.ts +42 -0
- package/dist/models/data-report-filter-single-value-dto.js +15 -0
- package/dist/models/data-report-filter-value-dto.d.ts +31 -0
- package/dist/models/data-report-filter-value-dto.js +15 -0
- package/dist/models/dbconfig-dto.d.ts +48 -0
- package/dist/models/dbconfig-dto.js +15 -0
- package/dist/models/delete-response-class.d.ts +24 -0
- package/dist/models/delete-response-class.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/disable-users-response-class.d.ts +24 -0
- package/dist/models/disable-users-response-class.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/enable-users-response-class.d.ts +24 -0
- package/dist/models/enable-users-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-data-report-response-class.d.ts +25 -0
- package/dist/models/get-data-report-response-class.js +15 -0
- package/dist/models/get-organization-response-class.d.ts +25 -0
- package/dist/models/get-organization-response-class.js +15 -0
- package/dist/models/get-settings-response-class.d.ts +24 -0
- package/dist/models/get-settings-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 +60 -0
- package/dist/models/index.js +76 -0
- package/dist/models/invite-class.d.ts +55 -0
- package/dist/models/invite-class.js +15 -0
- package/dist/models/invite-org-request-dto.d.ts +78 -0
- package/dist/models/invite-org-request-dto.js +15 -0
- package/dist/models/invite-user-request-dto.d.ts +36 -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/invite-users-response-class.d.ts +24 -0
- package/dist/models/invite-users-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-data-reports-response-class.d.ts +31 -0
- package/dist/models/list-data-reports-response-class.js +15 -0
- package/dist/models/list-invites-response-class.d.ts +31 -0
- package/dist/models/list-invites-response-class.js +15 -0
- package/dist/models/list-org-invitations-response-class.d.ts +31 -0
- package/dist/models/list-org-invitations-response-class.js +15 -0
- package/dist/models/list-organizations-response-class.d.ts +31 -0
- package/dist/models/list-organizations-response-class.js +15 -0
- package/dist/models/list-users-response-class.d.ts +31 -0
- package/dist/models/list-users-response-class.js +15 -0
- package/dist/models/org-invitation-class.d.ts +103 -0
- package/dist/models/org-invitation-class.js +15 -0
- package/dist/models/org-invitation-response-class.d.ts +25 -0
- package/dist/models/org-invitation-response-class.js +15 -0
- package/dist/models/organization-class.d.ts +84 -0
- package/dist/models/organization-class.js +15 -0
- package/dist/models/permission-class.d.ts +60 -0
- package/dist/models/permission-class.js +15 -0
- package/dist/models/role-class.d.ts +61 -0
- package/dist/models/role-class.js +15 -0
- package/dist/models/run-data-report-request-dto.d.ts +31 -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/set-setting-request-dto.d.ts +36 -0
- package/dist/models/set-setting-request-dto.js +15 -0
- package/dist/models/set-user-setting-response-class.d.ts +36 -0
- package/dist/models/set-user-setting-response-class.js +15 -0
- package/dist/models/subscription-class.d.ts +67 -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-custom-schema-request-dto.d.ts +45 -0
- package/dist/models/update-custom-schema-request-dto.js +23 -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-data-report-request-dto.d.ts +61 -0
- package/dist/models/update-data-report-request-dto.js +15 -0
- package/dist/models/update-data-report-response-class.d.ts +25 -0
- package/dist/models/update-data-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/user-class.d.ts +98 -0
- package/dist/models/user-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -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/batch-delete-response-class.ts +30 -0
- package/models/create-custom-schema-request-dto.ts +54 -0
- package/models/create-custom-schema-response-class.ts +31 -0
- package/models/create-data-report-request-dto.ts +67 -0
- package/models/create-data-report-response-class.ts +31 -0
- package/models/create-permission-request-dto.ts +48 -0
- package/models/create-role-request-dto.ts +42 -0
- package/models/create-tenant-request-dto.ts +62 -0
- package/models/custom-field-dto.ts +77 -0
- package/models/custom-schema-class.ts +72 -0
- package/models/data-report-class.ts +85 -0
- package/models/data-report-filter-class.ts +78 -0
- package/models/data-report-filter-dto.ts +54 -0
- package/models/data-report-filter-single-value-dto.ts +48 -0
- package/models/data-report-filter-value-dto.ts +37 -0
- package/models/dbconfig-dto.ts +54 -0
- package/models/delete-response-class.ts +30 -0
- package/models/disable-user-response-class.ts +31 -0
- package/models/disable-users-request-dto.ts +30 -0
- package/models/disable-users-response-class.ts +30 -0
- package/models/enable-user-response-class.ts +31 -0
- package/models/enable-users-request-dto.ts +30 -0
- package/models/enable-users-response-class.ts +30 -0
- package/models/get-custom-schema-response-class.ts +31 -0
- package/models/get-data-report-response-class.ts +31 -0
- package/models/get-organization-response-class.ts +31 -0
- package/models/get-settings-response-class.ts +30 -0
- package/models/get-user-response-class.ts +31 -0
- package/models/index.ts +60 -0
- package/models/invite-class.ts +61 -0
- package/models/invite-org-request-dto.ts +84 -0
- package/models/invite-user-request-dto.ts +42 -0
- package/models/invite-user-response-class.ts +31 -0
- package/models/invite-users-request-dto.ts +36 -0
- package/models/invite-users-response-class.ts +30 -0
- package/models/list-custom-schemas-response-class.ts +36 -0
- package/models/list-data-reports-response-class.ts +37 -0
- package/models/list-invites-response-class.ts +37 -0
- package/models/list-org-invitations-response-class.ts +37 -0
- package/models/list-organizations-response-class.ts +37 -0
- package/models/list-users-response-class.ts +37 -0
- package/models/org-invitation-class.ts +109 -0
- package/models/org-invitation-response-class.ts +31 -0
- package/models/organization-class.ts +90 -0
- package/models/permission-class.ts +66 -0
- package/models/role-class.ts +67 -0
- package/models/run-data-report-request-dto.ts +37 -0
- package/models/run-data-report-response-class.ts +30 -0
- package/models/set-setting-request-dto.ts +42 -0
- package/models/set-user-setting-response-class.ts +42 -0
- package/models/subscription-class.ts +73 -0
- package/models/tenant-admin-user-dto.ts +48 -0
- package/models/update-custom-schema-request-dto.ts +54 -0
- package/models/update-custom-schema-response-class.ts +31 -0
- package/models/update-data-report-request-dto.ts +67 -0
- package/models/update-data-report-response-class.ts +31 -0
- package/models/update-role-request-dto.ts +48 -0
- package/models/user-class.ts +104 -0
- package/package.json +29 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,165 @@
|
|
|
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
|
+
* Contact: kontakt@emil.de
|
|
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 { RunDataReportRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { RunDataReportResponseClass } from '../models';
|
|
27
|
+
// URLSearchParams not necessarily used
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import { URL, URLSearchParams } from 'url';
|
|
30
|
+
const FormData = require('form-data');
|
|
31
|
+
/**
|
|
32
|
+
* DataReportExecutorApi - axios parameter creator
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const DataReportExecutorApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @param {RunDataReportRequestDto} runDataReportRequestDto
|
|
40
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
runDataReport: async (runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45
|
+
// verify required parameter 'runDataReportRequestDto' is not null or undefined
|
|
46
|
+
assertParamExists('runDataReport', 'runDataReportRequestDto', runDataReportRequestDto)
|
|
47
|
+
const localVarPath = `/tenantservice/v1/data-report-executor`;
|
|
48
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50
|
+
let baseOptions;
|
|
51
|
+
let baseAccessToken;
|
|
52
|
+
if (configuration) {
|
|
53
|
+
baseOptions = configuration.baseOptions;
|
|
54
|
+
baseAccessToken = configuration.accessToken;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
58
|
+
const localVarHeaderParameter = {} as any;
|
|
59
|
+
const localVarQueryParameter = {} as any;
|
|
60
|
+
|
|
61
|
+
// authentication bearer required
|
|
62
|
+
// http bearer authentication required
|
|
63
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
64
|
+
|
|
65
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
66
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
72
|
+
|
|
73
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
74
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
75
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
76
|
+
localVarRequestOptions.data = serializeDataIfNeeded(runDataReportRequestDto, localVarRequestOptions, configuration)
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
url: toPathString(localVarUrlObj),
|
|
80
|
+
options: localVarRequestOptions,
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* DataReportExecutorApi - functional programming interface
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export const DataReportExecutorApiFp = function(configuration?: Configuration) {
|
|
91
|
+
const localVarAxiosParamCreator = DataReportExecutorApiAxiosParamCreator(configuration)
|
|
92
|
+
return {
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @param {RunDataReportRequestDto} runDataReportRequestDto
|
|
96
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
async runDataReport(runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunDataReportResponseClass>> {
|
|
101
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.runDataReport(runDataReportRequestDto, authorization, options);
|
|
102
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
103
|
+
},
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* DataReportExecutorApi - factory interface
|
|
109
|
+
* @export
|
|
110
|
+
*/
|
|
111
|
+
export const DataReportExecutorApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
112
|
+
const localVarFp = DataReportExecutorApiFp(configuration)
|
|
113
|
+
return {
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @param {RunDataReportRequestDto} runDataReportRequestDto
|
|
117
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
118
|
+
* @param {*} [options] Override http request option.
|
|
119
|
+
* @throws {RequiredError}
|
|
120
|
+
*/
|
|
121
|
+
runDataReport(runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, options?: any): AxiosPromise<RunDataReportResponseClass> {
|
|
122
|
+
return localVarFp.runDataReport(runDataReportRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Request parameters for runDataReport operation in DataReportExecutorApi.
|
|
129
|
+
* @export
|
|
130
|
+
* @interface DataReportExecutorApiRunDataReportRequest
|
|
131
|
+
*/
|
|
132
|
+
export interface DataReportExecutorApiRunDataReportRequest {
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {RunDataReportRequestDto}
|
|
136
|
+
* @memberof DataReportExecutorApiRunDataReport
|
|
137
|
+
*/
|
|
138
|
+
readonly runDataReportRequestDto: RunDataReportRequestDto
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
142
|
+
* @type {string}
|
|
143
|
+
* @memberof DataReportExecutorApiRunDataReport
|
|
144
|
+
*/
|
|
145
|
+
readonly authorization?: string
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* DataReportExecutorApi - object-oriented interface
|
|
150
|
+
* @export
|
|
151
|
+
* @class DataReportExecutorApi
|
|
152
|
+
* @extends {BaseAPI}
|
|
153
|
+
*/
|
|
154
|
+
export class DataReportExecutorApi extends BaseAPI {
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @param {DataReportExecutorApiRunDataReportRequest} requestParameters Request parameters.
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
* @memberof DataReportExecutorApi
|
|
161
|
+
*/
|
|
162
|
+
public runDataReport(requestParameters: DataReportExecutorApiRunDataReportRequest, options?: AxiosRequestConfig) {
|
|
163
|
+
return DataReportExecutorApiFp(this.configuration).runDataReport(requestParameters.runDataReportRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -0,0 +1,343 @@
|
|
|
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
|
+
* Contact: kontakt@emil.de
|
|
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 { InviteOrgRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ListOrgInvitationsResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { OrgInvitationResponseClass } from '../models';
|
|
29
|
+
// URLSearchParams not necessarily used
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import { URL, URLSearchParams } from 'url';
|
|
32
|
+
const FormData = require('form-data');
|
|
33
|
+
/**
|
|
34
|
+
* InviteOrganizationsApi - axios parameter creator
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
export const InviteOrganizationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38
|
+
return {
|
|
39
|
+
/**
|
|
40
|
+
* This sends an email to invite an organization.
|
|
41
|
+
* @summary Invite an organization
|
|
42
|
+
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
43
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
*/
|
|
47
|
+
inviteOrg: async (inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48
|
+
// verify required parameter 'inviteOrgRequestDto' is not null or undefined
|
|
49
|
+
assertParamExists('inviteOrg', 'inviteOrgRequestDto', inviteOrgRequestDto)
|
|
50
|
+
const localVarPath = `/tenantservice/v1/invitations/organizations`;
|
|
51
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
52
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
53
|
+
let baseOptions;
|
|
54
|
+
let baseAccessToken;
|
|
55
|
+
if (configuration) {
|
|
56
|
+
baseOptions = configuration.baseOptions;
|
|
57
|
+
baseAccessToken = configuration.accessToken;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
61
|
+
const localVarHeaderParameter = {} as any;
|
|
62
|
+
const localVarQueryParameter = {} as any;
|
|
63
|
+
|
|
64
|
+
// authentication bearer required
|
|
65
|
+
// http bearer authentication required
|
|
66
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
67
|
+
|
|
68
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
69
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
75
|
+
|
|
76
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
77
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
78
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
79
|
+
localVarRequestOptions.data = serializeDataIfNeeded(inviteOrgRequestDto, localVarRequestOptions, configuration)
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
url: toPathString(localVarUrlObj),
|
|
83
|
+
options: localVarRequestOptions,
|
|
84
|
+
};
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
* Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
88
|
+
* @summary List org invitations
|
|
89
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
90
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
91
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
92
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
93
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
94
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
95
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
*/
|
|
99
|
+
listOrgInvitations: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
100
|
+
const localVarPath = `/tenantservice/v1/invitations/organizations`;
|
|
101
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
103
|
+
let baseOptions;
|
|
104
|
+
let baseAccessToken;
|
|
105
|
+
if (configuration) {
|
|
106
|
+
baseOptions = configuration.baseOptions;
|
|
107
|
+
baseAccessToken = configuration.accessToken;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
111
|
+
const localVarHeaderParameter = {} as any;
|
|
112
|
+
const localVarQueryParameter = {} as any;
|
|
113
|
+
|
|
114
|
+
// authentication bearer required
|
|
115
|
+
// http bearer authentication required
|
|
116
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
|
+
|
|
118
|
+
if (pageSize !== undefined) {
|
|
119
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (pageToken !== undefined) {
|
|
123
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (filter !== undefined) {
|
|
127
|
+
localVarQueryParameter['filter'] = filter;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (search !== undefined) {
|
|
131
|
+
localVarQueryParameter['search'] = search;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if (order !== undefined) {
|
|
135
|
+
localVarQueryParameter['order'] = order;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if (expand !== undefined) {
|
|
139
|
+
localVarQueryParameter['expand'] = expand;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
143
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
149
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
150
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
151
|
+
|
|
152
|
+
return {
|
|
153
|
+
url: toPathString(localVarUrlObj),
|
|
154
|
+
options: localVarRequestOptions,
|
|
155
|
+
};
|
|
156
|
+
},
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* InviteOrganizationsApi - functional programming interface
|
|
162
|
+
* @export
|
|
163
|
+
*/
|
|
164
|
+
export const InviteOrganizationsApiFp = function(configuration?: Configuration) {
|
|
165
|
+
const localVarAxiosParamCreator = InviteOrganizationsApiAxiosParamCreator(configuration)
|
|
166
|
+
return {
|
|
167
|
+
/**
|
|
168
|
+
* This sends an email to invite an organization.
|
|
169
|
+
* @summary Invite an organization
|
|
170
|
+
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
171
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
172
|
+
* @param {*} [options] Override http request option.
|
|
173
|
+
* @throws {RequiredError}
|
|
174
|
+
*/
|
|
175
|
+
async inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>> {
|
|
176
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDto, authorization, options);
|
|
177
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
178
|
+
},
|
|
179
|
+
/**
|
|
180
|
+
* Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
181
|
+
* @summary List org invitations
|
|
182
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
183
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
184
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
185
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
186
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
187
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
188
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
189
|
+
* @param {*} [options] Override http request option.
|
|
190
|
+
* @throws {RequiredError}
|
|
191
|
+
*/
|
|
192
|
+
async listOrgInvitations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrgInvitationsResponseClass>> {
|
|
193
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
194
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
195
|
+
},
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* InviteOrganizationsApi - factory interface
|
|
201
|
+
* @export
|
|
202
|
+
*/
|
|
203
|
+
export const InviteOrganizationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
204
|
+
const localVarFp = InviteOrganizationsApiFp(configuration)
|
|
205
|
+
return {
|
|
206
|
+
/**
|
|
207
|
+
* This sends an email to invite an organization.
|
|
208
|
+
* @summary Invite an organization
|
|
209
|
+
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
210
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
*/
|
|
214
|
+
inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass> {
|
|
215
|
+
return localVarFp.inviteOrg(inviteOrgRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
216
|
+
},
|
|
217
|
+
/**
|
|
218
|
+
* Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
219
|
+
* @summary List org invitations
|
|
220
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
221
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
222
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
223
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
224
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
225
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
226
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
*/
|
|
230
|
+
listOrgInvitations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrgInvitationsResponseClass> {
|
|
231
|
+
return localVarFp.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
232
|
+
},
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Request parameters for inviteOrg operation in InviteOrganizationsApi.
|
|
238
|
+
* @export
|
|
239
|
+
* @interface InviteOrganizationsApiInviteOrgRequest
|
|
240
|
+
*/
|
|
241
|
+
export interface InviteOrganizationsApiInviteOrgRequest {
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
* @type {InviteOrgRequestDto}
|
|
245
|
+
* @memberof InviteOrganizationsApiInviteOrg
|
|
246
|
+
*/
|
|
247
|
+
readonly inviteOrgRequestDto: InviteOrgRequestDto
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
251
|
+
* @type {string}
|
|
252
|
+
* @memberof InviteOrganizationsApiInviteOrg
|
|
253
|
+
*/
|
|
254
|
+
readonly authorization?: string
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Request parameters for listOrgInvitations operation in InviteOrganizationsApi.
|
|
259
|
+
* @export
|
|
260
|
+
* @interface InviteOrganizationsApiListOrgInvitationsRequest
|
|
261
|
+
*/
|
|
262
|
+
export interface InviteOrganizationsApiListOrgInvitationsRequest {
|
|
263
|
+
/**
|
|
264
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
265
|
+
* @type {string}
|
|
266
|
+
* @memberof InviteOrganizationsApiListOrgInvitations
|
|
267
|
+
*/
|
|
268
|
+
readonly authorization?: string
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
272
|
+
* @type {any}
|
|
273
|
+
* @memberof InviteOrganizationsApiListOrgInvitations
|
|
274
|
+
*/
|
|
275
|
+
readonly pageSize?: any
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
279
|
+
* @type {any}
|
|
280
|
+
* @memberof InviteOrganizationsApiListOrgInvitations
|
|
281
|
+
*/
|
|
282
|
+
readonly pageToken?: any
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
286
|
+
* @type {any}
|
|
287
|
+
* @memberof InviteOrganizationsApiListOrgInvitations
|
|
288
|
+
*/
|
|
289
|
+
readonly filter?: any
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
293
|
+
* @type {any}
|
|
294
|
+
* @memberof InviteOrganizationsApiListOrgInvitations
|
|
295
|
+
*/
|
|
296
|
+
readonly search?: any
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
300
|
+
* @type {any}
|
|
301
|
+
* @memberof InviteOrganizationsApiListOrgInvitations
|
|
302
|
+
*/
|
|
303
|
+
readonly order?: any
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
307
|
+
* @type {any}
|
|
308
|
+
* @memberof InviteOrganizationsApiListOrgInvitations
|
|
309
|
+
*/
|
|
310
|
+
readonly expand?: any
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* InviteOrganizationsApi - object-oriented interface
|
|
315
|
+
* @export
|
|
316
|
+
* @class InviteOrganizationsApi
|
|
317
|
+
* @extends {BaseAPI}
|
|
318
|
+
*/
|
|
319
|
+
export class InviteOrganizationsApi extends BaseAPI {
|
|
320
|
+
/**
|
|
321
|
+
* This sends an email to invite an organization.
|
|
322
|
+
* @summary Invite an organization
|
|
323
|
+
* @param {InviteOrganizationsApiInviteOrgRequest} requestParameters Request parameters.
|
|
324
|
+
* @param {*} [options] Override http request option.
|
|
325
|
+
* @throws {RequiredError}
|
|
326
|
+
* @memberof InviteOrganizationsApi
|
|
327
|
+
*/
|
|
328
|
+
public inviteOrg(requestParameters: InviteOrganizationsApiInviteOrgRequest, options?: AxiosRequestConfig) {
|
|
329
|
+
return InviteOrganizationsApiFp(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
334
|
+
* @summary List org invitations
|
|
335
|
+
* @param {InviteOrganizationsApiListOrgInvitationsRequest} requestParameters Request parameters.
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
* @memberof InviteOrganizationsApi
|
|
339
|
+
*/
|
|
340
|
+
public listOrgInvitations(requestParameters: InviteOrganizationsApiListOrgInvitationsRequest = {}, options?: AxiosRequestConfig) {
|
|
341
|
+
return InviteOrganizationsApiFp(this.configuration).listOrgInvitations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
342
|
+
}
|
|
343
|
+
}
|