@emilgroup/tenant-sdk-node 1.8.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
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-node@1.8.0 --save
20
+ npm install @emilgroup/tenant-sdk-node@1.15.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk-node@1.8.0
24
+ yarn add @emilgroup/tenant-sdk-node@1.15.0
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
@@ -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 { DeleteResponseClass } from '../models';
25
+ // URLSearchParams not necessarily used
26
+ // @ts-ignore
27
+ import { URL, URLSearchParams } from 'url';
28
+ const FormData = require('form-data');
29
+ /**
30
+ * DeleteOrganizationInvitationsApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const DeleteOrganizationInvitationsApiAxiosParamCreator = function (configuration?: Configuration) {
34
+ return {
35
+ /**
36
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
37
+ * @summary Delete the organization invitation
38
+ * @param {number} id
39
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ deleteOrgInvitation: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44
+ // verify required parameter 'id' is not null or undefined
45
+ assertParamExists('deleteOrgInvitation', 'id', id)
46
+ const localVarPath = `/tenantservice/v1/invitations/organizations/{id}`
47
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
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: 'DELETE', ...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
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
72
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
73
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
74
+
75
+ return {
76
+ url: toPathString(localVarUrlObj),
77
+ options: localVarRequestOptions,
78
+ };
79
+ },
80
+ }
81
+ };
82
+
83
+ /**
84
+ * DeleteOrganizationInvitationsApi - functional programming interface
85
+ * @export
86
+ */
87
+ export const DeleteOrganizationInvitationsApiFp = function(configuration?: Configuration) {
88
+ const localVarAxiosParamCreator = DeleteOrganizationInvitationsApiAxiosParamCreator(configuration)
89
+ return {
90
+ /**
91
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
92
+ * @summary Delete the organization invitation
93
+ * @param {number} id
94
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ async deleteOrgInvitation(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
99
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrgInvitation(id, authorization, options);
100
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
101
+ },
102
+ }
103
+ };
104
+
105
+ /**
106
+ * DeleteOrganizationInvitationsApi - factory interface
107
+ * @export
108
+ */
109
+ export const DeleteOrganizationInvitationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
110
+ const localVarFp = DeleteOrganizationInvitationsApiFp(configuration)
111
+ return {
112
+ /**
113
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
114
+ * @summary Delete the organization invitation
115
+ * @param {number} id
116
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ deleteOrgInvitation(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
121
+ return localVarFp.deleteOrgInvitation(id, authorization, options).then((request) => request(axios, basePath));
122
+ },
123
+ };
124
+ };
125
+
126
+ /**
127
+ * Request parameters for deleteOrgInvitation operation in DeleteOrganizationInvitationsApi.
128
+ * @export
129
+ * @interface DeleteOrganizationInvitationsApiDeleteOrgInvitationRequest
130
+ */
131
+ export interface DeleteOrganizationInvitationsApiDeleteOrgInvitationRequest {
132
+ /**
133
+ *
134
+ * @type {number}
135
+ * @memberof DeleteOrganizationInvitationsApiDeleteOrgInvitation
136
+ */
137
+ readonly id: number
138
+
139
+ /**
140
+ * Bearer Token: provided by the login endpoint under the name accessToken.
141
+ * @type {string}
142
+ * @memberof DeleteOrganizationInvitationsApiDeleteOrgInvitation
143
+ */
144
+ readonly authorization?: string
145
+ }
146
+
147
+ /**
148
+ * DeleteOrganizationInvitationsApi - object-oriented interface
149
+ * @export
150
+ * @class DeleteOrganizationInvitationsApi
151
+ * @extends {BaseAPI}
152
+ */
153
+ export class DeleteOrganizationInvitationsApi extends BaseAPI {
154
+ /**
155
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
156
+ * @summary Delete the organization invitation
157
+ * @param {DeleteOrganizationInvitationsApiDeleteOrgInvitationRequest} requestParameters Request parameters.
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ * @memberof DeleteOrganizationInvitationsApi
161
+ */
162
+ public deleteOrgInvitation(requestParameters: DeleteOrganizationInvitationsApiDeleteOrgInvitationRequest, options?: AxiosRequestConfig) {
163
+ return DeleteOrganizationInvitationsApiFp(this.configuration).deleteOrgInvitation(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
164
+ }
165
+ }
package/api.ts CHANGED
@@ -28,6 +28,7 @@ import { CustomSchemaApi } from './api';
28
28
  import { DataReportApi } from './api';
29
29
  import { DataReportExecutorApi } from './api';
30
30
  import { DefaultApi } from './api';
31
+ import { DeleteOrganizationInvitationsApi } from './api';
31
32
  import { InviteOrganizationsApi } from './api';
32
33
  import { InviteUsersApi } from './api';
33
34
  import { ListOrganizationInvitationsApi } from './api';
@@ -42,6 +43,7 @@ export * from './api/custom-schema-api';
42
43
  export * from './api/data-report-api';
43
44
  export * from './api/data-report-executor-api';
44
45
  export * from './api/default-api';
46
+ export * from './api/delete-organization-invitations-api';
45
47
  export * from './api/invite-organizations-api';
46
48
  export * from './api/invite-users-api';
47
49
  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,227 @@
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
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * DeleteOrganizationInvitationsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var DeleteOrganizationInvitationsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
101
+ * @summary Delete the organization invitation
102
+ * @param {number} id
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ deleteOrgInvitation: function (id, authorization, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ // verify required parameter 'id' is not null or undefined
115
+ (0, common_1.assertParamExists)('deleteOrgInvitation', 'id', id);
116
+ localVarPath = "/tenantservice/v1/invitations/organizations/{id}"
117
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
118
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ baseAccessToken = configuration.accessToken;
122
+ }
123
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
124
+ localVarHeaderParameter = {};
125
+ localVarQueryParameter = {};
126
+ // authentication bearer required
127
+ // http bearer authentication required
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
129
+ case 1:
130
+ // authentication bearer required
131
+ // http bearer authentication required
132
+ _a.sent();
133
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
+ }
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ return [2 /*return*/, {
140
+ url: (0, common_1.toPathString)(localVarUrlObj),
141
+ options: localVarRequestOptions,
142
+ }];
143
+ }
144
+ });
145
+ });
146
+ },
147
+ };
148
+ };
149
+ exports.DeleteOrganizationInvitationsApiAxiosParamCreator = DeleteOrganizationInvitationsApiAxiosParamCreator;
150
+ /**
151
+ * DeleteOrganizationInvitationsApi - functional programming interface
152
+ * @export
153
+ */
154
+ var DeleteOrganizationInvitationsApiFp = function (configuration) {
155
+ var localVarAxiosParamCreator = (0, exports.DeleteOrganizationInvitationsApiAxiosParamCreator)(configuration);
156
+ return {
157
+ /**
158
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
159
+ * @summary Delete the organization invitation
160
+ * @param {number} id
161
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
162
+ * @param {*} [options] Override http request option.
163
+ * @throws {RequiredError}
164
+ */
165
+ deleteOrgInvitation: function (id, authorization, options) {
166
+ return __awaiter(this, void 0, void 0, function () {
167
+ var localVarAxiosArgs;
168
+ return __generator(this, function (_a) {
169
+ switch (_a.label) {
170
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteOrgInvitation(id, authorization, options)];
171
+ case 1:
172
+ localVarAxiosArgs = _a.sent();
173
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
174
+ }
175
+ });
176
+ });
177
+ },
178
+ };
179
+ };
180
+ exports.DeleteOrganizationInvitationsApiFp = DeleteOrganizationInvitationsApiFp;
181
+ /**
182
+ * DeleteOrganizationInvitationsApi - factory interface
183
+ * @export
184
+ */
185
+ var DeleteOrganizationInvitationsApiFactory = function (configuration, basePath, axios) {
186
+ var localVarFp = (0, exports.DeleteOrganizationInvitationsApiFp)(configuration);
187
+ return {
188
+ /**
189
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
190
+ * @summary Delete the organization invitation
191
+ * @param {number} id
192
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ deleteOrgInvitation: function (id, authorization, options) {
197
+ return localVarFp.deleteOrgInvitation(id, authorization, options).then(function (request) { return request(axios, basePath); });
198
+ },
199
+ };
200
+ };
201
+ exports.DeleteOrganizationInvitationsApiFactory = DeleteOrganizationInvitationsApiFactory;
202
+ /**
203
+ * DeleteOrganizationInvitationsApi - object-oriented interface
204
+ * @export
205
+ * @class DeleteOrganizationInvitationsApi
206
+ * @extends {BaseAPI}
207
+ */
208
+ var DeleteOrganizationInvitationsApi = /** @class */ (function (_super) {
209
+ __extends(DeleteOrganizationInvitationsApi, _super);
210
+ function DeleteOrganizationInvitationsApi() {
211
+ return _super !== null && _super.apply(this, arguments) || this;
212
+ }
213
+ /**
214
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it.
215
+ * @summary Delete the organization invitation
216
+ * @param {DeleteOrganizationInvitationsApiDeleteOrgInvitationRequest} requestParameters Request parameters.
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ * @memberof DeleteOrganizationInvitationsApi
220
+ */
221
+ DeleteOrganizationInvitationsApi.prototype.deleteOrgInvitation = function (requestParameters, options) {
222
+ var _this = this;
223
+ return (0, exports.DeleteOrganizationInvitationsApiFp)(this.configuration).deleteOrgInvitation(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
224
+ };
225
+ return DeleteOrganizationInvitationsApi;
226
+ }(base_1.BaseAPI));
227
+ 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;
@@ -28,47 +28,55 @@ export interface CustomFieldDto {
28
28
  */
29
29
  'label'?: string;
30
30
  /**
31
- *
32
- * @type {string}
33
- * @memberof CustomFieldDto
34
- */
35
- 'type': CustomFieldDtoTypeEnum;
36
- /**
37
- *
31
+ * Indicates whether the customField is required
38
32
  * @type {boolean}
39
33
  * @memberof CustomFieldDto
40
34
  */
41
35
  'isRequired': boolean;
42
36
  /**
43
- *
37
+ * Minimum for number field
44
38
  * @type {number}
45
39
  * @memberof CustomFieldDto
46
40
  */
47
41
  'minimum'?: number;
48
42
  /**
49
- *
43
+ * Maximum for number field
50
44
  * @type {number}
51
45
  * @memberof CustomFieldDto
52
46
  */
53
47
  'maximum'?: number;
54
48
  /**
55
- *
49
+ * Minimum length for string field
56
50
  * @type {number}
57
51
  * @memberof CustomFieldDto
58
52
  */
59
53
  'minLength'?: number;
60
54
  /**
61
- *
55
+ * Maximum length for string field
62
56
  * @type {number}
63
57
  * @memberof CustomFieldDto
64
58
  */
65
59
  'maxLength'?: number;
60
+ /**
61
+ * Possible options to select
62
+ * @type {object}
63
+ * @memberof CustomFieldDto
64
+ */
65
+ 'options': object;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof CustomFieldDto
70
+ */
71
+ 'type': CustomFieldDtoTypeEnum;
66
72
  }
67
73
  export declare const CustomFieldDtoTypeEnum: {
68
74
  readonly String: "string";
69
75
  readonly Number: "number";
70
76
  readonly Boolean: "boolean";
71
77
  readonly Date: "date";
78
+ readonly DateTime: "date-time";
72
79
  readonly Email: "email";
80
+ readonly Object: "object";
73
81
  };
74
82
  export type CustomFieldDtoTypeEnum = typeof CustomFieldDtoTypeEnum[keyof typeof CustomFieldDtoTypeEnum];
@@ -19,5 +19,7 @@ exports.CustomFieldDtoTypeEnum = {
19
19
  Number: 'number',
20
20
  Boolean: 'boolean',
21
21
  Date: 'date',
22
- Email: 'email'
22
+ DateTime: 'date-time',
23
+ Email: 'email',
24
+ Object: 'object'
23
25
  };
@@ -33,41 +33,47 @@ export interface CustomFieldDto {
33
33
  */
34
34
  'label'?: string;
35
35
  /**
36
- *
37
- * @type {string}
38
- * @memberof CustomFieldDto
39
- */
40
- 'type': CustomFieldDtoTypeEnum;
41
- /**
42
- *
36
+ * Indicates whether the customField is required
43
37
  * @type {boolean}
44
38
  * @memberof CustomFieldDto
45
39
  */
46
40
  'isRequired': boolean;
47
41
  /**
48
- *
42
+ * Minimum for number field
49
43
  * @type {number}
50
44
  * @memberof CustomFieldDto
51
45
  */
52
46
  'minimum'?: number;
53
47
  /**
54
- *
48
+ * Maximum for number field
55
49
  * @type {number}
56
50
  * @memberof CustomFieldDto
57
51
  */
58
52
  'maximum'?: number;
59
53
  /**
60
- *
54
+ * Minimum length for string field
61
55
  * @type {number}
62
56
  * @memberof CustomFieldDto
63
57
  */
64
58
  'minLength'?: number;
65
59
  /**
66
- *
60
+ * Maximum length for string field
67
61
  * @type {number}
68
62
  * @memberof CustomFieldDto
69
63
  */
70
64
  'maxLength'?: number;
65
+ /**
66
+ * Possible options to select
67
+ * @type {object}
68
+ * @memberof CustomFieldDto
69
+ */
70
+ 'options': object;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof CustomFieldDto
75
+ */
76
+ 'type': CustomFieldDtoTypeEnum;
71
77
  }
72
78
 
73
79
  export const CustomFieldDtoTypeEnum = {
@@ -75,7 +81,9 @@ export const CustomFieldDtoTypeEnum = {
75
81
  Number: 'number',
76
82
  Boolean: 'boolean',
77
83
  Date: 'date',
78
- Email: 'email'
84
+ DateTime: 'date-time',
85
+ Email: 'email',
86
+ Object: 'object'
79
87
  } as const;
80
88
 
81
89
  export type CustomFieldDtoTypeEnum = typeof CustomFieldDtoTypeEnum[keyof typeof CustomFieldDtoTypeEnum];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/tenant-sdk-node",
3
- "version": "1.8.0",
3
+ "version": "1.15.0",
4
4
  "description": "OpenAPI client for @emilgroup/tenant-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -23,7 +23,7 @@
23
23
  "url": "^0.11.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/node": "^12.11.5",
26
+ "@types/node": "^12.11.5",
27
27
  "typescript": "^4.0"
28
28
  }
29
29
  }