@emilgroup/tenant-sdk 1.9.0 → 1.15.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.
@@ -7,6 +7,7 @@ api/custom-schema-api.ts
7
7
  api/data-report-api.ts
8
8
  api/data-report-executor-api.ts
9
9
  api/default-api.ts
10
+ api/delete-organization-invitations-api.ts
10
11
  api/invite-organizations-api.ts
11
12
  api/invite-users-api.ts
12
13
  api/list-organization-invitations-api.ts
@@ -32,7 +33,6 @@ models/create-permission-request-dto.ts
32
33
  models/create-role-request-dto.ts
33
34
  models/create-tenant-request-dto.ts
34
35
  models/custom-field-dto.ts
35
- models/custom-field-option-dto.ts
36
36
  models/custom-schema-class.ts
37
37
  models/data-report-class.ts
38
38
  models/data-report-filter-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/tenant-sdk@1.9.0 --save
20
+ npm install @emilgroup/tenant-sdk@1.15.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk@1.9.0
24
+ yarn add @emilgroup/tenant-sdk@1.15.0
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
@@ -0,0 +1,161 @@
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 { DeleteResponseClass } from '../models';
25
+ /**
26
+ * DeleteOrganizationInvitationsApi - axios parameter creator
27
+ * @export
28
+ */
29
+ export const DeleteOrganizationInvitationsApiAxiosParamCreator = function (configuration?: Configuration) {
30
+ return {
31
+ /**
32
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
33
+ * @summary Delete the organization invitation
34
+ * @param {number} id
35
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ deleteOrgInvitation: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40
+ // verify required parameter 'id' is not null or undefined
41
+ assertParamExists('deleteOrgInvitation', 'id', id)
42
+ const localVarPath = `/tenantservice/v1/invitations/organizations/{id}`
43
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
44
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46
+ let baseOptions;
47
+ let baseAccessToken;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ baseAccessToken = configuration.accessToken;
51
+ }
52
+
53
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
54
+ const localVarHeaderParameter = {} as any;
55
+ const localVarQueryParameter = {} as any;
56
+
57
+ // authentication bearer required
58
+ // http bearer authentication required
59
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
60
+
61
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
62
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
63
+ }
64
+
65
+
66
+
67
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
68
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
69
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
70
+
71
+ return {
72
+ url: toPathString(localVarUrlObj),
73
+ options: localVarRequestOptions,
74
+ };
75
+ },
76
+ }
77
+ };
78
+
79
+ /**
80
+ * DeleteOrganizationInvitationsApi - functional programming interface
81
+ * @export
82
+ */
83
+ export const DeleteOrganizationInvitationsApiFp = function(configuration?: Configuration) {
84
+ const localVarAxiosParamCreator = DeleteOrganizationInvitationsApiAxiosParamCreator(configuration)
85
+ return {
86
+ /**
87
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
88
+ * @summary Delete the organization invitation
89
+ * @param {number} id
90
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ */
94
+ async deleteOrgInvitation(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
95
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrgInvitation(id, authorization, options);
96
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
97
+ },
98
+ }
99
+ };
100
+
101
+ /**
102
+ * DeleteOrganizationInvitationsApi - factory interface
103
+ * @export
104
+ */
105
+ export const DeleteOrganizationInvitationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
106
+ const localVarFp = DeleteOrganizationInvitationsApiFp(configuration)
107
+ return {
108
+ /**
109
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
110
+ * @summary Delete the organization invitation
111
+ * @param {number} id
112
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ */
116
+ deleteOrgInvitation(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
117
+ return localVarFp.deleteOrgInvitation(id, authorization, options).then((request) => request(axios, basePath));
118
+ },
119
+ };
120
+ };
121
+
122
+ /**
123
+ * Request parameters for deleteOrgInvitation operation in DeleteOrganizationInvitationsApi.
124
+ * @export
125
+ * @interface DeleteOrganizationInvitationsApiDeleteOrgInvitationRequest
126
+ */
127
+ export interface DeleteOrganizationInvitationsApiDeleteOrgInvitationRequest {
128
+ /**
129
+ *
130
+ * @type {number}
131
+ * @memberof DeleteOrganizationInvitationsApiDeleteOrgInvitation
132
+ */
133
+ readonly id: number
134
+
135
+ /**
136
+ * Bearer Token: provided by the login endpoint under the name accessToken.
137
+ * @type {string}
138
+ * @memberof DeleteOrganizationInvitationsApiDeleteOrgInvitation
139
+ */
140
+ readonly authorization?: string
141
+ }
142
+
143
+ /**
144
+ * DeleteOrganizationInvitationsApi - object-oriented interface
145
+ * @export
146
+ * @class DeleteOrganizationInvitationsApi
147
+ * @extends {BaseAPI}
148
+ */
149
+ export class DeleteOrganizationInvitationsApi extends BaseAPI {
150
+ /**
151
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
152
+ * @summary Delete the organization invitation
153
+ * @param {DeleteOrganizationInvitationsApiDeleteOrgInvitationRequest} requestParameters Request parameters.
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ * @memberof DeleteOrganizationInvitationsApi
157
+ */
158
+ public deleteOrgInvitation(requestParameters: DeleteOrganizationInvitationsApiDeleteOrgInvitationRequest, options?: AxiosRequestConfig) {
159
+ return DeleteOrganizationInvitationsApiFp(this.configuration).deleteOrgInvitation(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
160
+ }
161
+ }
package/api.ts CHANGED
@@ -24,6 +24,7 @@ import { CustomSchemaApi } from './api';
24
24
  import { DataReportApi } from './api';
25
25
  import { DataReportExecutorApi } from './api';
26
26
  import { DefaultApi } from './api';
27
+ import { DeleteOrganizationInvitationsApi } from './api';
27
28
  import { InviteOrganizationsApi } from './api';
28
29
  import { InviteUsersApi } from './api';
29
30
  import { ListOrganizationInvitationsApi } from './api';
@@ -38,6 +39,7 @@ export * from './api/custom-schema-api';
38
39
  export * from './api/data-report-api';
39
40
  export * from './api/data-report-executor-api';
40
41
  export * from './api/default-api';
42
+ export * from './api/delete-organization-invitations-api';
41
43
  export * from './api/invite-organizations-api';
42
44
  export * from './api/invite-users-api';
43
45
  export * from './api/list-organization-invitations-api';
package/configuration.ts CHANGED
@@ -50,7 +50,7 @@ export class Configuration {
50
50
  * @param scopes oauth2 scope
51
51
  * @memberof Configuration
52
52
  */
53
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
53
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>) = '';
54
54
  /**
55
55
  * override base path
56
56
  *
@@ -0,0 +1,96 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { DeleteResponseClass } from '../models';
16
+ /**
17
+ * DeleteOrganizationInvitationsApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const DeleteOrganizationInvitationsApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
23
+ * @summary Delete the organization invitation
24
+ * @param {number} id
25
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
26
+ * @param {*} [options] Override http request option.
27
+ * @throws {RequiredError}
28
+ */
29
+ deleteOrgInvitation: (id: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
+ };
31
+ /**
32
+ * DeleteOrganizationInvitationsApi - functional programming interface
33
+ * @export
34
+ */
35
+ export declare const DeleteOrganizationInvitationsApiFp: (configuration?: Configuration) => {
36
+ /**
37
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
38
+ * @summary Delete the organization invitation
39
+ * @param {number} id
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
+ deleteOrgInvitation(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
45
+ };
46
+ /**
47
+ * DeleteOrganizationInvitationsApi - factory interface
48
+ * @export
49
+ */
50
+ export declare const DeleteOrganizationInvitationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
51
+ /**
52
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
53
+ * @summary Delete the organization invitation
54
+ * @param {number} id
55
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ deleteOrgInvitation(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
60
+ };
61
+ /**
62
+ * Request parameters for deleteOrgInvitation operation in DeleteOrganizationInvitationsApi.
63
+ * @export
64
+ * @interface DeleteOrganizationInvitationsApiDeleteOrgInvitationRequest
65
+ */
66
+ export interface DeleteOrganizationInvitationsApiDeleteOrgInvitationRequest {
67
+ /**
68
+ *
69
+ * @type {number}
70
+ * @memberof DeleteOrganizationInvitationsApiDeleteOrgInvitation
71
+ */
72
+ readonly id: number;
73
+ /**
74
+ * Bearer Token: provided by the login endpoint under the name accessToken.
75
+ * @type {string}
76
+ * @memberof DeleteOrganizationInvitationsApiDeleteOrgInvitation
77
+ */
78
+ readonly authorization?: string;
79
+ }
80
+ /**
81
+ * DeleteOrganizationInvitationsApi - object-oriented interface
82
+ * @export
83
+ * @class DeleteOrganizationInvitationsApi
84
+ * @extends {BaseAPI}
85
+ */
86
+ export declare class DeleteOrganizationInvitationsApi extends BaseAPI {
87
+ /**
88
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
89
+ * @summary Delete the organization invitation
90
+ * @param {DeleteOrganizationInvitationsApiDeleteOrgInvitationRequest} requestParameters Request parameters.
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ * @memberof DeleteOrganizationInvitationsApi
94
+ */
95
+ deleteOrgInvitation(requestParameters: DeleteOrganizationInvitationsApiDeleteOrgInvitationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
96
+ }
@@ -0,0 +1,223 @@
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
+ * Contact: kontakt@emil.de
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.DeleteOrganizationInvitationsApi = exports.DeleteOrganizationInvitationsApiFactory = exports.DeleteOrganizationInvitationsApiFp = exports.DeleteOrganizationInvitationsApiAxiosParamCreator = 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
+ /**
89
+ * DeleteOrganizationInvitationsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var DeleteOrganizationInvitationsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
97
+ * @summary Delete the organization invitation
98
+ * @param {number} id
99
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ deleteOrgInvitation: function (id, authorization, options) {
104
+ if (options === void 0) { options = {}; }
105
+ return __awaiter(_this, void 0, void 0, function () {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
109
+ case 0:
110
+ // verify required parameter 'id' is not null or undefined
111
+ (0, common_1.assertParamExists)('deleteOrgInvitation', 'id', id);
112
+ localVarPath = "/tenantservice/v1/invitations/organizations/{id}"
113
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
114
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
115
+ if (configuration) {
116
+ baseOptions = configuration.baseOptions;
117
+ baseAccessToken = configuration.accessToken;
118
+ }
119
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
120
+ localVarHeaderParameter = {};
121
+ localVarQueryParameter = {};
122
+ // authentication bearer required
123
+ // http bearer authentication required
124
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
125
+ case 1:
126
+ // authentication bearer required
127
+ // http bearer authentication required
128
+ _a.sent();
129
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
+ }
132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
+ return [2 /*return*/, {
136
+ url: (0, common_1.toPathString)(localVarUrlObj),
137
+ options: localVarRequestOptions,
138
+ }];
139
+ }
140
+ });
141
+ });
142
+ },
143
+ };
144
+ };
145
+ exports.DeleteOrganizationInvitationsApiAxiosParamCreator = DeleteOrganizationInvitationsApiAxiosParamCreator;
146
+ /**
147
+ * DeleteOrganizationInvitationsApi - functional programming interface
148
+ * @export
149
+ */
150
+ var DeleteOrganizationInvitationsApiFp = function (configuration) {
151
+ var localVarAxiosParamCreator = (0, exports.DeleteOrganizationInvitationsApiAxiosParamCreator)(configuration);
152
+ return {
153
+ /**
154
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
155
+ * @summary Delete the organization invitation
156
+ * @param {number} id
157
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ deleteOrgInvitation: function (id, authorization, options) {
162
+ return __awaiter(this, void 0, void 0, function () {
163
+ var localVarAxiosArgs;
164
+ return __generator(this, function (_a) {
165
+ switch (_a.label) {
166
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteOrgInvitation(id, authorization, options)];
167
+ case 1:
168
+ localVarAxiosArgs = _a.sent();
169
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
170
+ }
171
+ });
172
+ });
173
+ },
174
+ };
175
+ };
176
+ exports.DeleteOrganizationInvitationsApiFp = DeleteOrganizationInvitationsApiFp;
177
+ /**
178
+ * DeleteOrganizationInvitationsApi - factory interface
179
+ * @export
180
+ */
181
+ var DeleteOrganizationInvitationsApiFactory = function (configuration, basePath, axios) {
182
+ var localVarFp = (0, exports.DeleteOrganizationInvitationsApiFp)(configuration);
183
+ return {
184
+ /**
185
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
186
+ * @summary Delete the organization invitation
187
+ * @param {number} id
188
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
189
+ * @param {*} [options] Override http request option.
190
+ * @throws {RequiredError}
191
+ */
192
+ deleteOrgInvitation: function (id, authorization, options) {
193
+ return localVarFp.deleteOrgInvitation(id, authorization, options).then(function (request) { return request(axios, basePath); });
194
+ },
195
+ };
196
+ };
197
+ exports.DeleteOrganizationInvitationsApiFactory = DeleteOrganizationInvitationsApiFactory;
198
+ /**
199
+ * DeleteOrganizationInvitationsApi - object-oriented interface
200
+ * @export
201
+ * @class DeleteOrganizationInvitationsApi
202
+ * @extends {BaseAPI}
203
+ */
204
+ var DeleteOrganizationInvitationsApi = /** @class */ (function (_super) {
205
+ __extends(DeleteOrganizationInvitationsApi, _super);
206
+ function DeleteOrganizationInvitationsApi() {
207
+ return _super !== null && _super.apply(this, arguments) || this;
208
+ }
209
+ /**
210
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
211
+ * @summary Delete the organization invitation
212
+ * @param {DeleteOrganizationInvitationsApiDeleteOrgInvitationRequest} requestParameters Request parameters.
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ * @memberof DeleteOrganizationInvitationsApi
216
+ */
217
+ DeleteOrganizationInvitationsApi.prototype.deleteOrgInvitation = function (requestParameters, options) {
218
+ var _this = this;
219
+ return (0, exports.DeleteOrganizationInvitationsApiFp)(this.configuration).deleteOrgInvitation(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
220
+ };
221
+ return DeleteOrganizationInvitationsApi;
222
+ }(base_1.BaseAPI));
223
+ exports.DeleteOrganizationInvitationsApi = DeleteOrganizationInvitationsApi;
package/dist/api.d.ts CHANGED
@@ -13,6 +13,7 @@ export * from './api/custom-schema-api';
13
13
  export * from './api/data-report-api';
14
14
  export * from './api/data-report-executor-api';
15
15
  export * from './api/default-api';
16
+ export * from './api/delete-organization-invitations-api';
16
17
  export * from './api/invite-organizations-api';
17
18
  export * from './api/invite-users-api';
18
19
  export * from './api/list-organization-invitations-api';
package/dist/api.js CHANGED
@@ -31,6 +31,7 @@ __exportStar(require("./api/custom-schema-api"), exports);
31
31
  __exportStar(require("./api/data-report-api"), exports);
32
32
  __exportStar(require("./api/data-report-executor-api"), exports);
33
33
  __exportStar(require("./api/default-api"), exports);
34
+ __exportStar(require("./api/delete-organization-invitations-api"), exports);
34
35
  __exportStar(require("./api/invite-organizations-api"), exports);
35
36
  __exportStar(require("./api/invite-users-api"), exports);
36
37
  __exportStar(require("./api/list-organization-invitations-api"), exports);
@@ -17,6 +17,13 @@ exports.Configuration = void 0;
17
17
  var Configuration = /** @class */ (function () {
18
18
  function Configuration(param) {
19
19
  if (param === void 0) { param = {}; }
20
+ /**
21
+ * parameter for oauth2 security
22
+ * @param name security name
23
+ * @param scopes oauth2 scope
24
+ * @memberof Configuration
25
+ */
26
+ this.accessToken = '';
20
27
  this.apiKey = param.apiKey;
21
28
  this.username = param.username;
22
29
  this.password = param.password;
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { CustomFieldOptionDto } from './custom-field-option-dto';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -29,47 +28,47 @@ export interface CustomFieldDto {
29
28
  */
30
29
  'label'?: string;
31
30
  /**
32
- *
33
- * @type {string}
34
- * @memberof CustomFieldDto
35
- */
36
- 'type': CustomFieldDtoTypeEnum;
37
- /**
38
- *
31
+ * Indicates whether the customField is required
39
32
  * @type {boolean}
40
33
  * @memberof CustomFieldDto
41
34
  */
42
35
  'isRequired': boolean;
43
36
  /**
44
- *
37
+ * Minimum for number field
45
38
  * @type {number}
46
39
  * @memberof CustomFieldDto
47
40
  */
48
41
  'minimum'?: number;
49
42
  /**
50
- *
43
+ * Maximum for number field
51
44
  * @type {number}
52
45
  * @memberof CustomFieldDto
53
46
  */
54
47
  'maximum'?: number;
55
48
  /**
56
- *
49
+ * Minimum length for string field
57
50
  * @type {number}
58
51
  * @memberof CustomFieldDto
59
52
  */
60
53
  'minLength'?: number;
61
54
  /**
62
- *
55
+ * Maximum length for string field
63
56
  * @type {number}
64
57
  * @memberof CustomFieldDto
65
58
  */
66
59
  'maxLength'?: number;
60
+ /**
61
+ * Possible options to select
62
+ * @type {object}
63
+ * @memberof CustomFieldDto
64
+ */
65
+ 'options': object;
67
66
  /**
68
67
  *
69
- * @type {Array<CustomFieldOptionDto>}
68
+ * @type {string}
70
69
  * @memberof CustomFieldDto
71
70
  */
72
- 'options': Array<CustomFieldOptionDto>;
71
+ 'type': CustomFieldDtoTypeEnum;
73
72
  }
74
73
  export declare const CustomFieldDtoTypeEnum: {
75
74
  readonly String: "string";
@@ -10,7 +10,6 @@ export * from './create-permission-request-dto';
10
10
  export * from './create-role-request-dto';
11
11
  export * from './create-tenant-request-dto';
12
12
  export * from './custom-field-dto';
13
- export * from './custom-field-option-dto';
14
13
  export * from './custom-schema-class';
15
14
  export * from './dbconfig-dto';
16
15
  export * from './data-report-class';
@@ -26,7 +26,6 @@ __exportStar(require("./create-permission-request-dto"), exports);
26
26
  __exportStar(require("./create-role-request-dto"), exports);
27
27
  __exportStar(require("./create-tenant-request-dto"), exports);
28
28
  __exportStar(require("./custom-field-dto"), exports);
29
- __exportStar(require("./custom-field-option-dto"), exports);
30
29
  __exportStar(require("./custom-schema-class"), exports);
31
30
  __exportStar(require("./dbconfig-dto"), exports);
32
31
  __exportStar(require("./data-report-class"), exports);
@@ -13,7 +13,6 @@
13
13
  */
14
14
 
15
15
 
16
- import { CustomFieldOptionDto } from './custom-field-option-dto';
17
16
 
18
17
  /**
19
18
  *
@@ -34,47 +33,47 @@ export interface CustomFieldDto {
34
33
  */
35
34
  'label'?: string;
36
35
  /**
37
- *
38
- * @type {string}
39
- * @memberof CustomFieldDto
40
- */
41
- 'type': CustomFieldDtoTypeEnum;
42
- /**
43
- *
36
+ * Indicates whether the customField is required
44
37
  * @type {boolean}
45
38
  * @memberof CustomFieldDto
46
39
  */
47
40
  'isRequired': boolean;
48
41
  /**
49
- *
42
+ * Minimum for number field
50
43
  * @type {number}
51
44
  * @memberof CustomFieldDto
52
45
  */
53
46
  'minimum'?: number;
54
47
  /**
55
- *
48
+ * Maximum for number field
56
49
  * @type {number}
57
50
  * @memberof CustomFieldDto
58
51
  */
59
52
  'maximum'?: number;
60
53
  /**
61
- *
54
+ * Minimum length for string field
62
55
  * @type {number}
63
56
  * @memberof CustomFieldDto
64
57
  */
65
58
  'minLength'?: number;
66
59
  /**
67
- *
60
+ * Maximum length for string field
68
61
  * @type {number}
69
62
  * @memberof CustomFieldDto
70
63
  */
71
64
  'maxLength'?: number;
65
+ /**
66
+ * Possible options to select
67
+ * @type {object}
68
+ * @memberof CustomFieldDto
69
+ */
70
+ 'options': object;
72
71
  /**
73
72
  *
74
- * @type {Array<CustomFieldOptionDto>}
73
+ * @type {string}
75
74
  * @memberof CustomFieldDto
76
75
  */
77
- 'options': Array<CustomFieldOptionDto>;
76
+ 'type': CustomFieldDtoTypeEnum;
78
77
  }
79
78
 
80
79
  export const CustomFieldDtoTypeEnum = {
package/models/index.ts CHANGED
@@ -10,7 +10,6 @@ export * from './create-permission-request-dto';
10
10
  export * from './create-role-request-dto';
11
11
  export * from './create-tenant-request-dto';
12
12
  export * from './custom-field-dto';
13
- export * from './custom-field-option-dto';
14
13
  export * from './custom-schema-class';
15
14
  export * from './dbconfig-dto';
16
15
  export * from './data-report-class';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/tenant-sdk",
3
- "version": "1.9.0",
3
+ "version": "1.15.0",
4
4
  "description": "OpenAPI client for @emilgroup/tenant-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -21,7 +21,6 @@
21
21
  "axios": "^0.27.2"
22
22
  },
23
23
  "devDependencies": {
24
-
25
24
  "typescript": "^4.0"
26
25
  }
27
26
  }
@@ -1,30 +0,0 @@
1
- /**
2
- * EMIL Tenant Service
3
- * The EMIL TenantService API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface CustomFieldOptionDto
16
- */
17
- export interface CustomFieldOptionDto {
18
- /**
19
- * Custom field option value.
20
- * @type {string}
21
- * @memberof CustomFieldOptionDto
22
- */
23
- 'value': string;
24
- /**
25
- * Key of the option, should be unique.
26
- * @type {string}
27
- * @memberof CustomFieldOptionDto
28
- */
29
- 'key': string;
30
- }
@@ -1,15 +0,0 @@
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
- * Contact: kontakt@emil.de
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
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,36 +0,0 @@
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
-
17
- /**
18
- *
19
- * @export
20
- * @interface CustomFieldOptionDto
21
- */
22
- export interface CustomFieldOptionDto {
23
- /**
24
- * Custom field option value.
25
- * @type {string}
26
- * @memberof CustomFieldOptionDto
27
- */
28
- 'value': string;
29
- /**
30
- * Key of the option, should be unique.
31
- * @type {string}
32
- * @memberof CustomFieldOptionDto
33
- */
34
- 'key': string;
35
- }
36
-