@emilgroup/tenant-sdk 1.2.1 → 1.3.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.
@@ -0,0 +1,258 @@
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.ListOrganizationInvitationsApi = exports.ListOrganizationInvitationsApiFactory = exports.ListOrganizationInvitationsApiFp = exports.ListOrganizationInvitationsApiAxiosParamCreator = 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
+ * ListOrganizationInvitationsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var ListOrganizationInvitationsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Returns a list of organization invitations you have previously created. The organization invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
101
+ * @summary List organization invitations
102
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
103
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
104
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
105
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
106
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
107
+ * @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.
108
+ * @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.
109
+ * @param {*} [options] Override http request option.
110
+ * @throws {RequiredError}
111
+ */
112
+ listOrgInvitations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
113
+ if (options === void 0) { options = {}; }
114
+ return __awaiter(_this, void 0, void 0, function () {
115
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
116
+ return __generator(this, function (_a) {
117
+ switch (_a.label) {
118
+ case 0:
119
+ localVarPath = "/tenantservice/v1/invitations/organizations";
120
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
121
+ if (configuration) {
122
+ baseOptions = configuration.baseOptions;
123
+ baseAccessToken = configuration.accessToken;
124
+ }
125
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
126
+ localVarHeaderParameter = {};
127
+ localVarQueryParameter = {};
128
+ // authentication bearer required
129
+ // http bearer authentication required
130
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
131
+ case 1:
132
+ // authentication bearer required
133
+ // http bearer authentication required
134
+ _a.sent();
135
+ if (pageSize !== undefined) {
136
+ localVarQueryParameter['pageSize'] = pageSize;
137
+ }
138
+ if (pageToken !== undefined) {
139
+ localVarQueryParameter['pageToken'] = pageToken;
140
+ }
141
+ if (filter !== undefined) {
142
+ localVarQueryParameter['filter'] = filter;
143
+ }
144
+ if (search !== undefined) {
145
+ localVarQueryParameter['search'] = search;
146
+ }
147
+ if (order !== undefined) {
148
+ localVarQueryParameter['order'] = order;
149
+ }
150
+ if (expand !== undefined) {
151
+ localVarQueryParameter['expand'] = expand;
152
+ }
153
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
154
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
155
+ }
156
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
157
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
158
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
159
+ return [2 /*return*/, {
160
+ url: (0, common_1.toPathString)(localVarUrlObj),
161
+ options: localVarRequestOptions,
162
+ }];
163
+ }
164
+ });
165
+ });
166
+ },
167
+ };
168
+ };
169
+ exports.ListOrganizationInvitationsApiAxiosParamCreator = ListOrganizationInvitationsApiAxiosParamCreator;
170
+ /**
171
+ * ListOrganizationInvitationsApi - functional programming interface
172
+ * @export
173
+ */
174
+ var ListOrganizationInvitationsApiFp = function (configuration) {
175
+ var localVarAxiosParamCreator = (0, exports.ListOrganizationInvitationsApiAxiosParamCreator)(configuration);
176
+ return {
177
+ /**
178
+ * Returns a list of organization invitations you have previously created. The organization invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
179
+ * @summary List organization invitations
180
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
181
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
182
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
183
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
184
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
185
+ * @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.
186
+ * @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.
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ listOrgInvitations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
191
+ return __awaiter(this, void 0, void 0, function () {
192
+ var localVarAxiosArgs;
193
+ return __generator(this, function (_a) {
194
+ switch (_a.label) {
195
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options)];
196
+ case 1:
197
+ localVarAxiosArgs = _a.sent();
198
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
199
+ }
200
+ });
201
+ });
202
+ },
203
+ };
204
+ };
205
+ exports.ListOrganizationInvitationsApiFp = ListOrganizationInvitationsApiFp;
206
+ /**
207
+ * ListOrganizationInvitationsApi - factory interface
208
+ * @export
209
+ */
210
+ var ListOrganizationInvitationsApiFactory = function (configuration, basePath, axios) {
211
+ var localVarFp = (0, exports.ListOrganizationInvitationsApiFp)(configuration);
212
+ return {
213
+ /**
214
+ * Returns a list of organization invitations you have previously created. The organization invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
215
+ * @summary List organization invitations
216
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
217
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
218
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
219
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
220
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
221
+ * @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.
222
+ * @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.
223
+ * @param {*} [options] Override http request option.
224
+ * @throws {RequiredError}
225
+ */
226
+ listOrgInvitations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
227
+ return localVarFp.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
228
+ },
229
+ };
230
+ };
231
+ exports.ListOrganizationInvitationsApiFactory = ListOrganizationInvitationsApiFactory;
232
+ /**
233
+ * ListOrganizationInvitationsApi - object-oriented interface
234
+ * @export
235
+ * @class ListOrganizationInvitationsApi
236
+ * @extends {BaseAPI}
237
+ */
238
+ var ListOrganizationInvitationsApi = /** @class */ (function (_super) {
239
+ __extends(ListOrganizationInvitationsApi, _super);
240
+ function ListOrganizationInvitationsApi() {
241
+ return _super !== null && _super.apply(this, arguments) || this;
242
+ }
243
+ /**
244
+ * Returns a list of organization invitations you have previously created. The organization invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
245
+ * @summary List organization invitations
246
+ * @param {ListOrganizationInvitationsApiListOrgInvitationsRequest} requestParameters Request parameters.
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ * @memberof ListOrganizationInvitationsApi
250
+ */
251
+ ListOrganizationInvitationsApi.prototype.listOrgInvitations = function (requestParameters, options) {
252
+ var _this = this;
253
+ if (requestParameters === void 0) { requestParameters = {}; }
254
+ return (0, exports.ListOrganizationInvitationsApiFp)(this.configuration).listOrgInvitations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
255
+ };
256
+ return ListOrganizationInvitationsApi;
257
+ }(base_1.BaseAPI));
258
+ exports.ListOrganizationInvitationsApi = ListOrganizationInvitationsApi;
@@ -0,0 +1,93 @@
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 { OrgInvitationResponseClass } from '../models';
16
+ import { ReInviteOrgRequestDto } from '../models';
17
+ /**
18
+ * ReInviteAnOrganizationApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const ReInviteAnOrganizationApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ * This re-sends an email to invite an organization.
24
+ * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto
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
+ reInviteOrganization: (reInviteOrgRequestDto: ReInviteOrgRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
+ };
31
+ /**
32
+ * ReInviteAnOrganizationApi - functional programming interface
33
+ * @export
34
+ */
35
+ export declare const ReInviteAnOrganizationApiFp: (configuration?: Configuration) => {
36
+ /**
37
+ * This re-sends an email to invite an organization.
38
+ * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto
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
+ reInviteOrganization(reInviteOrgRequestDto: ReInviteOrgRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>>;
44
+ };
45
+ /**
46
+ * ReInviteAnOrganizationApi - factory interface
47
+ * @export
48
+ */
49
+ export declare const ReInviteAnOrganizationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
50
+ /**
51
+ * This re-sends an email to invite an organization.
52
+ * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto
53
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ reInviteOrganization(reInviteOrgRequestDto: ReInviteOrgRequestDto, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass>;
58
+ };
59
+ /**
60
+ * Request parameters for reInviteOrganization operation in ReInviteAnOrganizationApi.
61
+ * @export
62
+ * @interface ReInviteAnOrganizationApiReInviteOrganizationRequest
63
+ */
64
+ export interface ReInviteAnOrganizationApiReInviteOrganizationRequest {
65
+ /**
66
+ *
67
+ * @type {ReInviteOrgRequestDto}
68
+ * @memberof ReInviteAnOrganizationApiReInviteOrganization
69
+ */
70
+ readonly reInviteOrgRequestDto: ReInviteOrgRequestDto;
71
+ /**
72
+ * Bearer Token: provided by the login endpoint under the name accessToken.
73
+ * @type {string}
74
+ * @memberof ReInviteAnOrganizationApiReInviteOrganization
75
+ */
76
+ readonly authorization?: string;
77
+ }
78
+ /**
79
+ * ReInviteAnOrganizationApi - object-oriented interface
80
+ * @export
81
+ * @class ReInviteAnOrganizationApi
82
+ * @extends {BaseAPI}
83
+ */
84
+ export declare class ReInviteAnOrganizationApi extends BaseAPI {
85
+ /**
86
+ * This re-sends an email to invite an organization.
87
+ * @param {ReInviteAnOrganizationApiReInviteOrganizationRequest} requestParameters Request parameters.
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ * @memberof ReInviteAnOrganizationApi
91
+ */
92
+ reInviteOrganization(requestParameters: ReInviteAnOrganizationApiReInviteOrganizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrgInvitationResponseClass, any>>;
93
+ }
@@ -0,0 +1,224 @@
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.ReInviteAnOrganizationApi = exports.ReInviteAnOrganizationApiFactory = exports.ReInviteAnOrganizationApiFp = exports.ReInviteAnOrganizationApiAxiosParamCreator = 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
+ * ReInviteAnOrganizationApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var ReInviteAnOrganizationApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * This re-sends an email to invite an organization.
101
+ * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto
102
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ reInviteOrganization: function (reInviteOrgRequestDto, authorization, options) {
107
+ if (options === void 0) { options = {}; }
108
+ return __awaiter(_this, void 0, void 0, function () {
109
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ return __generator(this, function (_a) {
111
+ switch (_a.label) {
112
+ case 0:
113
+ // verify required parameter 'reInviteOrgRequestDto' is not null or undefined
114
+ (0, common_1.assertParamExists)('reInviteOrganization', 'reInviteOrgRequestDto', reInviteOrgRequestDto);
115
+ localVarPath = "/tenantservice/v1/invitations/organizations";
116
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
117
+ if (configuration) {
118
+ baseOptions = configuration.baseOptions;
119
+ baseAccessToken = configuration.accessToken;
120
+ }
121
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
122
+ localVarHeaderParameter = {};
123
+ localVarQueryParameter = {};
124
+ // authentication bearer required
125
+ // http bearer authentication required
126
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ case 1:
128
+ // authentication bearer required
129
+ // http bearer authentication required
130
+ _a.sent();
131
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
+ }
134
+ localVarHeaderParameter['Content-Type'] = 'application/json';
135
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(reInviteOrgRequestDto, localVarRequestOptions, configuration);
139
+ return [2 /*return*/, {
140
+ url: (0, common_1.toPathString)(localVarUrlObj),
141
+ options: localVarRequestOptions,
142
+ }];
143
+ }
144
+ });
145
+ });
146
+ },
147
+ };
148
+ };
149
+ exports.ReInviteAnOrganizationApiAxiosParamCreator = ReInviteAnOrganizationApiAxiosParamCreator;
150
+ /**
151
+ * ReInviteAnOrganizationApi - functional programming interface
152
+ * @export
153
+ */
154
+ var ReInviteAnOrganizationApiFp = function (configuration) {
155
+ var localVarAxiosParamCreator = (0, exports.ReInviteAnOrganizationApiAxiosParamCreator)(configuration);
156
+ return {
157
+ /**
158
+ * This re-sends an email to invite an organization.
159
+ * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto
160
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
161
+ * @param {*} [options] Override http request option.
162
+ * @throws {RequiredError}
163
+ */
164
+ reInviteOrganization: function (reInviteOrgRequestDto, authorization, options) {
165
+ return __awaiter(this, void 0, void 0, function () {
166
+ var localVarAxiosArgs;
167
+ return __generator(this, function (_a) {
168
+ switch (_a.label) {
169
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.reInviteOrganization(reInviteOrgRequestDto, authorization, options)];
170
+ case 1:
171
+ localVarAxiosArgs = _a.sent();
172
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
173
+ }
174
+ });
175
+ });
176
+ },
177
+ };
178
+ };
179
+ exports.ReInviteAnOrganizationApiFp = ReInviteAnOrganizationApiFp;
180
+ /**
181
+ * ReInviteAnOrganizationApi - factory interface
182
+ * @export
183
+ */
184
+ var ReInviteAnOrganizationApiFactory = function (configuration, basePath, axios) {
185
+ var localVarFp = (0, exports.ReInviteAnOrganizationApiFp)(configuration);
186
+ return {
187
+ /**
188
+ * This re-sends an email to invite an organization.
189
+ * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto
190
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ reInviteOrganization: function (reInviteOrgRequestDto, authorization, options) {
195
+ return localVarFp.reInviteOrganization(reInviteOrgRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
196
+ },
197
+ };
198
+ };
199
+ exports.ReInviteAnOrganizationApiFactory = ReInviteAnOrganizationApiFactory;
200
+ /**
201
+ * ReInviteAnOrganizationApi - object-oriented interface
202
+ * @export
203
+ * @class ReInviteAnOrganizationApi
204
+ * @extends {BaseAPI}
205
+ */
206
+ var ReInviteAnOrganizationApi = /** @class */ (function (_super) {
207
+ __extends(ReInviteAnOrganizationApi, _super);
208
+ function ReInviteAnOrganizationApi() {
209
+ return _super !== null && _super.apply(this, arguments) || this;
210
+ }
211
+ /**
212
+ * This re-sends an email to invite an organization.
213
+ * @param {ReInviteAnOrganizationApiReInviteOrganizationRequest} requestParameters Request parameters.
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ * @memberof ReInviteAnOrganizationApi
217
+ */
218
+ ReInviteAnOrganizationApi.prototype.reInviteOrganization = function (requestParameters, options) {
219
+ var _this = this;
220
+ return (0, exports.ReInviteAnOrganizationApiFp)(this.configuration).reInviteOrganization(requestParameters.reInviteOrgRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
221
+ };
222
+ return ReInviteAnOrganizationApi;
223
+ }(base_1.BaseAPI));
224
+ exports.ReInviteAnOrganizationApi = ReInviteAnOrganizationApi;
package/dist/api.d.ts CHANGED
@@ -12,5 +12,7 @@
12
12
  export * from './api/custom-schema-api';
13
13
  export * from './api/invite-organizations-api';
14
14
  export * from './api/invite-users-api';
15
+ export * from './api/list-organization-invitations-api';
15
16
  export * from './api/organizations-api';
17
+ export * from './api/re-invite-an-organization-api';
16
18
  export * from './api/users-api';
package/dist/api.js CHANGED
@@ -30,5 +30,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/custom-schema-api"), exports);
31
31
  __exportStar(require("./api/invite-organizations-api"), exports);
32
32
  __exportStar(require("./api/invite-users-api"), exports);
33
+ __exportStar(require("./api/list-organization-invitations-api"), exports);
33
34
  __exportStar(require("./api/organizations-api"), exports);
35
+ __exportStar(require("./api/re-invite-an-organization-api"), exports);
34
36
  __exportStar(require("./api/users-api"), exports);
package/dist/base.js CHANGED
@@ -109,7 +109,7 @@ var axios_1 = __importDefault(require("axios"));
109
109
  var fs = __importStar(require("fs"));
110
110
  var path = __importStar(require("path"));
111
111
  var os = __importStar(require("os"));
112
- exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
112
+ exports.BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
113
113
  var CONFIG_DIRECTORY = '.emil';
114
114
  var CONFIG_FILENAME = 'credentials';
115
115
  var KEY_USERNAME = 'emil_username';
@@ -36,6 +36,7 @@ export * from './org-invitation-class';
36
36
  export * from './org-invitation-response-class';
37
37
  export * from './organization-class';
38
38
  export * from './permission-class';
39
+ export * from './re-invite-org-request-dto';
39
40
  export * from './role-class';
40
41
  export * from './set-setting-request-dto';
41
42
  export * from './set-user-setting-response-class';
@@ -52,6 +52,7 @@ __exportStar(require("./org-invitation-class"), exports);
52
52
  __exportStar(require("./org-invitation-response-class"), exports);
53
53
  __exportStar(require("./organization-class"), exports);
54
54
  __exportStar(require("./permission-class"), exports);
55
+ __exportStar(require("./re-invite-org-request-dto"), exports);
55
56
  __exportStar(require("./role-class"), exports);
56
57
  __exportStar(require("./set-setting-request-dto"), exports);
57
58
  __exportStar(require("./set-user-setting-response-class"), exports);
@@ -46,11 +46,17 @@ export interface InviteOrgRequestDto {
46
46
  */
47
47
  'parentOrganizationId': number;
48
48
  /**
49
- * Address of the organization.
49
+ * Organization\'s street name.
50
50
  * @type {string}
51
51
  * @memberof InviteOrgRequestDto
52
52
  */
53
- 'address': string;
53
+ 'street': string;
54
+ /**
55
+ * Organization\'s house number.
56
+ * @type {string}
57
+ * @memberof InviteOrgRequestDto
58
+ */
59
+ 'houseNumber': string;
54
60
  /**
55
61
  * Zip code of the organization.
56
62
  * @type {string}