@emilgroup/tenant-sdk 1.2.2 → 1.4.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.
@@ -145,74 +145,6 @@ var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
145
145
  });
146
146
  });
147
147
  },
148
- /**
149
- * Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
150
- * @summary List org invitations
151
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
152
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
153
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
154
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
155
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
156
- * @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.
157
- * @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.
158
- * @param {*} [options] Override http request option.
159
- * @throws {RequiredError}
160
- */
161
- listOrgInvitations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
162
- if (options === void 0) { options = {}; }
163
- return __awaiter(_this, void 0, void 0, function () {
164
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
165
- return __generator(this, function (_a) {
166
- switch (_a.label) {
167
- case 0:
168
- localVarPath = "/tenantservice/v1/invitations/organizations";
169
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
170
- if (configuration) {
171
- baseOptions = configuration.baseOptions;
172
- baseAccessToken = configuration.accessToken;
173
- }
174
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
175
- localVarHeaderParameter = {};
176
- localVarQueryParameter = {};
177
- // authentication bearer required
178
- // http bearer authentication required
179
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
180
- case 1:
181
- // authentication bearer required
182
- // http bearer authentication required
183
- _a.sent();
184
- if (pageSize !== undefined) {
185
- localVarQueryParameter['pageSize'] = pageSize;
186
- }
187
- if (pageToken !== undefined) {
188
- localVarQueryParameter['pageToken'] = pageToken;
189
- }
190
- if (filter !== undefined) {
191
- localVarQueryParameter['filter'] = filter;
192
- }
193
- if (search !== undefined) {
194
- localVarQueryParameter['search'] = search;
195
- }
196
- if (order !== undefined) {
197
- localVarQueryParameter['order'] = order;
198
- }
199
- if (expand !== undefined) {
200
- localVarQueryParameter['expand'] = expand;
201
- }
202
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
203
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
204
- }
205
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
206
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
207
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
208
- return [2 /*return*/, {
209
- url: (0, common_1.toPathString)(localVarUrlObj),
210
- options: localVarRequestOptions,
211
- }];
212
- }
213
- });
214
- });
215
- },
216
148
  };
217
149
  };
218
150
  exports.InviteOrganizationsApiAxiosParamCreator = InviteOrganizationsApiAxiosParamCreator;
@@ -244,32 +176,6 @@ var InviteOrganizationsApiFp = function (configuration) {
244
176
  });
245
177
  });
246
178
  },
247
- /**
248
- * Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
249
- * @summary List org invitations
250
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
251
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
252
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
253
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
254
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
255
- * @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.
256
- * @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.
257
- * @param {*} [options] Override http request option.
258
- * @throws {RequiredError}
259
- */
260
- listOrgInvitations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
261
- return __awaiter(this, void 0, void 0, function () {
262
- var localVarAxiosArgs;
263
- return __generator(this, function (_a) {
264
- switch (_a.label) {
265
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options)];
266
- case 1:
267
- localVarAxiosArgs = _a.sent();
268
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
269
- }
270
- });
271
- });
272
- },
273
179
  };
274
180
  };
275
181
  exports.InviteOrganizationsApiFp = InviteOrganizationsApiFp;
@@ -291,22 +197,6 @@ var InviteOrganizationsApiFactory = function (configuration, basePath, axios) {
291
197
  inviteOrg: function (inviteOrgRequestDto, authorization, options) {
292
198
  return localVarFp.inviteOrg(inviteOrgRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
293
199
  },
294
- /**
295
- * Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
296
- * @summary List org invitations
297
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
298
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
299
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
300
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
301
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
302
- * @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.
303
- * @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.
304
- * @param {*} [options] Override http request option.
305
- * @throws {RequiredError}
306
- */
307
- listOrgInvitations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
308
- return localVarFp.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
309
- },
310
200
  };
311
201
  };
312
202
  exports.InviteOrganizationsApiFactory = InviteOrganizationsApiFactory;
@@ -333,19 +223,6 @@ var InviteOrganizationsApi = /** @class */ (function (_super) {
333
223
  var _this = this;
334
224
  return (0, exports.InviteOrganizationsApiFp)(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
335
225
  };
336
- /**
337
- * Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
338
- * @summary List org invitations
339
- * @param {InviteOrganizationsApiListOrgInvitationsRequest} requestParameters Request parameters.
340
- * @param {*} [options] Override http request option.
341
- * @throws {RequiredError}
342
- * @memberof InviteOrganizationsApi
343
- */
344
- InviteOrganizationsApi.prototype.listOrgInvitations = function (requestParameters, options) {
345
- var _this = this;
346
- if (requestParameters === void 0) { requestParameters = {}; }
347
- return (0, exports.InviteOrganizationsApiFp)(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); });
348
- };
349
226
  return InviteOrganizationsApi;
350
227
  }(base_1.BaseAPI));
351
228
  exports.InviteOrganizationsApi = InviteOrganizationsApi;
@@ -0,0 +1,141 @@
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 { ListOrgInvitationsResponseClass } from '../models';
16
+ /**
17
+ * ListOrganizationInvitationsApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const ListOrganizationInvitationsApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ * 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.
23
+ * @summary List organization invitations
24
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
25
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
26
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
27
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
28
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
29
+ * @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.
30
+ * @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.
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ listOrgInvitations: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
+ };
36
+ /**
37
+ * ListOrganizationInvitationsApi - functional programming interface
38
+ * @export
39
+ */
40
+ export declare const ListOrganizationInvitationsApiFp: (configuration?: Configuration) => {
41
+ /**
42
+ * 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.
43
+ * @summary List organization invitations
44
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
45
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
46
+ * @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.
47
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
48
+ * @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.
49
+ * @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.
50
+ * @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.
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ listOrgInvitations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrgInvitationsResponseClass>>;
55
+ };
56
+ /**
57
+ * ListOrganizationInvitationsApi - factory interface
58
+ * @export
59
+ */
60
+ export declare const ListOrganizationInvitationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
61
+ /**
62
+ * 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.
63
+ * @summary List organization invitations
64
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
65
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
66
+ * @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.
67
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
68
+ * @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.
69
+ * @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.
70
+ * @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.
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ listOrgInvitations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrgInvitationsResponseClass>;
75
+ };
76
+ /**
77
+ * Request parameters for listOrgInvitations operation in ListOrganizationInvitationsApi.
78
+ * @export
79
+ * @interface ListOrganizationInvitationsApiListOrgInvitationsRequest
80
+ */
81
+ export interface ListOrganizationInvitationsApiListOrgInvitationsRequest {
82
+ /**
83
+ * Bearer Token: provided by the login endpoint under the name accessToken.
84
+ * @type {string}
85
+ * @memberof ListOrganizationInvitationsApiListOrgInvitations
86
+ */
87
+ readonly authorization?: string;
88
+ /**
89
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
90
+ * @type {any}
91
+ * @memberof ListOrganizationInvitationsApiListOrgInvitations
92
+ */
93
+ readonly pageSize?: any;
94
+ /**
95
+ * 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.
96
+ * @type {any}
97
+ * @memberof ListOrganizationInvitationsApiListOrgInvitations
98
+ */
99
+ readonly pageToken?: any;
100
+ /**
101
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
102
+ * @type {any}
103
+ * @memberof ListOrganizationInvitationsApiListOrgInvitations
104
+ */
105
+ readonly filter?: any;
106
+ /**
107
+ * 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.
108
+ * @type {any}
109
+ * @memberof ListOrganizationInvitationsApiListOrgInvitations
110
+ */
111
+ readonly search?: any;
112
+ /**
113
+ * 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.
114
+ * @type {any}
115
+ * @memberof ListOrganizationInvitationsApiListOrgInvitations
116
+ */
117
+ readonly order?: any;
118
+ /**
119
+ * 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.
120
+ * @type {any}
121
+ * @memberof ListOrganizationInvitationsApiListOrgInvitations
122
+ */
123
+ readonly expand?: any;
124
+ }
125
+ /**
126
+ * ListOrganizationInvitationsApi - object-oriented interface
127
+ * @export
128
+ * @class ListOrganizationInvitationsApi
129
+ * @extends {BaseAPI}
130
+ */
131
+ export declare class ListOrganizationInvitationsApi extends BaseAPI {
132
+ /**
133
+ * 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.
134
+ * @summary List organization invitations
135
+ * @param {ListOrganizationInvitationsApiListOrgInvitationsRequest} requestParameters Request parameters.
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ * @memberof ListOrganizationInvitationsApi
139
+ */
140
+ listOrgInvitations(requestParameters?: ListOrganizationInvitationsApiListOrgInvitationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOrgInvitationsResponseClass, any>>;
141
+ }
@@ -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;