@emilgroup/tenant-sdk-node 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api/custom-schema-api.ts +53 -61
- package/api/data-report-api.ts +66 -76
- package/api/data-report-executor-api.ts +6 -22
- package/api/invite-organizations-api.ts +24 -60
- package/api/invite-users-api.ts +68 -78
- package/api/organizations-api.ts +21 -25
- package/api/users-api.ts +129 -147
- package/dist/api/custom-schema-api.d.ts +43 -43
- package/dist/api/custom-schema-api.js +31 -38
- package/dist/api/data-report-api.d.ts +53 -53
- package/dist/api/data-report-api.js +40 -49
- package/dist/api/data-report-executor-api.d.ts +3 -12
- package/dist/api/data-report-executor-api.js +6 -14
- package/dist/api/invite-organizations-api.d.ts +18 -36
- package/dist/api/invite-organizations-api.js +19 -38
- package/dist/api/invite-users-api.d.ts +56 -56
- package/dist/api/invite-users-api.js +40 -49
- package/dist/api/organizations-api.d.ts +18 -18
- package/dist/api/organizations-api.js +13 -16
- package/dist/api/users-api.d.ts +104 -104
- package/dist/api/users-api.js +76 -93
- package/package.json +1 -1
|
@@ -22,16 +22,16 @@ export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configu
|
|
|
22
22
|
/**
|
|
23
23
|
* Get Organization by code
|
|
24
24
|
* @summary Retrieve the Organization
|
|
25
|
-
* @param {string} authorization Bearer Token
|
|
26
25
|
* @param {string} code
|
|
26
|
+
* @param {string} [authorization] Bearer Token
|
|
27
27
|
* @param {*} [options] Override http request option.
|
|
28
28
|
* @throws {RequiredError}
|
|
29
29
|
*/
|
|
30
|
-
getOrganization: (
|
|
30
|
+
getOrganization: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
31
|
/**
|
|
32
32
|
* This will fetch list of organizations
|
|
33
33
|
* @summary List organizations
|
|
34
|
-
* @param {string} authorization Bearer Token
|
|
34
|
+
* @param {string} [authorization] Bearer Token
|
|
35
35
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
36
36
|
* @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.
|
|
37
37
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -41,7 +41,7 @@ export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configu
|
|
|
41
41
|
* @param {*} [options] Override http request option.
|
|
42
42
|
* @throws {RequiredError}
|
|
43
43
|
*/
|
|
44
|
-
listOrganizations: (authorization
|
|
44
|
+
listOrganizations: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
45
|
};
|
|
46
46
|
/**
|
|
47
47
|
* OrganizationsApi - functional programming interface
|
|
@@ -51,16 +51,16 @@ export declare const OrganizationsApiFp: (configuration?: Configuration) => {
|
|
|
51
51
|
/**
|
|
52
52
|
* Get Organization by code
|
|
53
53
|
* @summary Retrieve the Organization
|
|
54
|
-
* @param {string} authorization Bearer Token
|
|
55
54
|
* @param {string} code
|
|
55
|
+
* @param {string} [authorization] Bearer Token
|
|
56
56
|
* @param {*} [options] Override http request option.
|
|
57
57
|
* @throws {RequiredError}
|
|
58
58
|
*/
|
|
59
|
-
getOrganization(
|
|
59
|
+
getOrganization(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationResponseClass>>;
|
|
60
60
|
/**
|
|
61
61
|
* This will fetch list of organizations
|
|
62
62
|
* @summary List organizations
|
|
63
|
-
* @param {string} authorization Bearer Token
|
|
63
|
+
* @param {string} [authorization] Bearer Token
|
|
64
64
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
65
65
|
* @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.
|
|
66
66
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -70,7 +70,7 @@ export declare const OrganizationsApiFp: (configuration?: Configuration) => {
|
|
|
70
70
|
* @param {*} [options] Override http request option.
|
|
71
71
|
* @throws {RequiredError}
|
|
72
72
|
*/
|
|
73
|
-
listOrganizations(authorization
|
|
73
|
+
listOrganizations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrganizationsResponseClass>>;
|
|
74
74
|
};
|
|
75
75
|
/**
|
|
76
76
|
* OrganizationsApi - factory interface
|
|
@@ -80,16 +80,16 @@ export declare const OrganizationsApiFactory: (configuration?: Configuration, ba
|
|
|
80
80
|
/**
|
|
81
81
|
* Get Organization by code
|
|
82
82
|
* @summary Retrieve the Organization
|
|
83
|
-
* @param {string} authorization Bearer Token
|
|
84
83
|
* @param {string} code
|
|
84
|
+
* @param {string} [authorization] Bearer Token
|
|
85
85
|
* @param {*} [options] Override http request option.
|
|
86
86
|
* @throws {RequiredError}
|
|
87
87
|
*/
|
|
88
|
-
getOrganization(
|
|
88
|
+
getOrganization(code: string, authorization?: string, options?: any): AxiosPromise<GetOrganizationResponseClass>;
|
|
89
89
|
/**
|
|
90
90
|
* This will fetch list of organizations
|
|
91
91
|
* @summary List organizations
|
|
92
|
-
* @param {string} authorization Bearer Token
|
|
92
|
+
* @param {string} [authorization] Bearer Token
|
|
93
93
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
94
94
|
* @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.
|
|
95
95
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -99,7 +99,7 @@ export declare const OrganizationsApiFactory: (configuration?: Configuration, ba
|
|
|
99
99
|
* @param {*} [options] Override http request option.
|
|
100
100
|
* @throws {RequiredError}
|
|
101
101
|
*/
|
|
102
|
-
listOrganizations(authorization
|
|
102
|
+
listOrganizations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrganizationsResponseClass>;
|
|
103
103
|
};
|
|
104
104
|
/**
|
|
105
105
|
* Request parameters for getOrganization operation in OrganizationsApi.
|
|
@@ -108,17 +108,17 @@ export declare const OrganizationsApiFactory: (configuration?: Configuration, ba
|
|
|
108
108
|
*/
|
|
109
109
|
export interface OrganizationsApiGetOrganizationRequest {
|
|
110
110
|
/**
|
|
111
|
-
*
|
|
111
|
+
*
|
|
112
112
|
* @type {string}
|
|
113
113
|
* @memberof OrganizationsApiGetOrganization
|
|
114
114
|
*/
|
|
115
|
-
readonly
|
|
115
|
+
readonly code: string;
|
|
116
116
|
/**
|
|
117
|
-
*
|
|
117
|
+
* Bearer Token
|
|
118
118
|
* @type {string}
|
|
119
119
|
* @memberof OrganizationsApiGetOrganization
|
|
120
120
|
*/
|
|
121
|
-
readonly
|
|
121
|
+
readonly authorization?: string;
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
124
|
* Request parameters for listOrganizations operation in OrganizationsApi.
|
|
@@ -131,7 +131,7 @@ export interface OrganizationsApiListOrganizationsRequest {
|
|
|
131
131
|
* @type {string}
|
|
132
132
|
* @memberof OrganizationsApiListOrganizations
|
|
133
133
|
*/
|
|
134
|
-
readonly authorization
|
|
134
|
+
readonly authorization?: string;
|
|
135
135
|
/**
|
|
136
136
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
137
137
|
* @type {any}
|
|
@@ -193,5 +193,5 @@ export declare class OrganizationsApi extends BaseAPI {
|
|
|
193
193
|
* @throws {RequiredError}
|
|
194
194
|
* @memberof OrganizationsApi
|
|
195
195
|
*/
|
|
196
|
-
listOrganizations(requestParameters
|
|
196
|
+
listOrganizations(requestParameters?: OrganizationsApiListOrganizationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOrganizationsResponseClass, any>>;
|
|
197
197
|
}
|
|
@@ -99,20 +99,18 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
99
99
|
/**
|
|
100
100
|
* Get Organization by code
|
|
101
101
|
* @summary Retrieve the Organization
|
|
102
|
-
* @param {string} authorization Bearer Token
|
|
103
102
|
* @param {string} code
|
|
103
|
+
* @param {string} [authorization] Bearer Token
|
|
104
104
|
* @param {*} [options] Override http request option.
|
|
105
105
|
* @throws {RequiredError}
|
|
106
106
|
*/
|
|
107
|
-
getOrganization: function (
|
|
107
|
+
getOrganization: function (code, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
114
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
115
|
-
(0, common_1.assertParamExists)('getOrganization', 'authorization', authorization);
|
|
116
114
|
// verify required parameter 'code' is not null or undefined
|
|
117
115
|
(0, common_1.assertParamExists)('getOrganization', 'code', code);
|
|
118
116
|
localVarPath = "/tenantservice/v1/organizations/{code}"
|
|
@@ -149,7 +147,7 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
149
147
|
/**
|
|
150
148
|
* This will fetch list of organizations
|
|
151
149
|
* @summary List organizations
|
|
152
|
-
* @param {string} authorization Bearer Token
|
|
150
|
+
* @param {string} [authorization] Bearer Token
|
|
153
151
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
154
152
|
* @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.
|
|
155
153
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -166,8 +164,6 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
166
164
|
return __generator(this, function (_a) {
|
|
167
165
|
switch (_a.label) {
|
|
168
166
|
case 0:
|
|
169
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
170
|
-
(0, common_1.assertParamExists)('listOrganizations', 'authorization', authorization);
|
|
171
167
|
localVarPath = "/tenantservice/v1/organizations";
|
|
172
168
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
173
169
|
if (configuration) {
|
|
@@ -229,17 +225,17 @@ var OrganizationsApiFp = function (configuration) {
|
|
|
229
225
|
/**
|
|
230
226
|
* Get Organization by code
|
|
231
227
|
* @summary Retrieve the Organization
|
|
232
|
-
* @param {string} authorization Bearer Token
|
|
233
228
|
* @param {string} code
|
|
229
|
+
* @param {string} [authorization] Bearer Token
|
|
234
230
|
* @param {*} [options] Override http request option.
|
|
235
231
|
* @throws {RequiredError}
|
|
236
232
|
*/
|
|
237
|
-
getOrganization: function (
|
|
233
|
+
getOrganization: function (code, authorization, options) {
|
|
238
234
|
return __awaiter(this, void 0, void 0, function () {
|
|
239
235
|
var localVarAxiosArgs;
|
|
240
236
|
return __generator(this, function (_a) {
|
|
241
237
|
switch (_a.label) {
|
|
242
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrganization(
|
|
238
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrganization(code, authorization, options)];
|
|
243
239
|
case 1:
|
|
244
240
|
localVarAxiosArgs = _a.sent();
|
|
245
241
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -250,7 +246,7 @@ var OrganizationsApiFp = function (configuration) {
|
|
|
250
246
|
/**
|
|
251
247
|
* This will fetch list of organizations
|
|
252
248
|
* @summary List organizations
|
|
253
|
-
* @param {string} authorization Bearer Token
|
|
249
|
+
* @param {string} [authorization] Bearer Token
|
|
254
250
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
255
251
|
* @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.
|
|
256
252
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -286,18 +282,18 @@ var OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
|
286
282
|
/**
|
|
287
283
|
* Get Organization by code
|
|
288
284
|
* @summary Retrieve the Organization
|
|
289
|
-
* @param {string} authorization Bearer Token
|
|
290
285
|
* @param {string} code
|
|
286
|
+
* @param {string} [authorization] Bearer Token
|
|
291
287
|
* @param {*} [options] Override http request option.
|
|
292
288
|
* @throws {RequiredError}
|
|
293
289
|
*/
|
|
294
|
-
getOrganization: function (
|
|
295
|
-
return localVarFp.getOrganization(
|
|
290
|
+
getOrganization: function (code, authorization, options) {
|
|
291
|
+
return localVarFp.getOrganization(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
296
292
|
},
|
|
297
293
|
/**
|
|
298
294
|
* This will fetch list of organizations
|
|
299
295
|
* @summary List organizations
|
|
300
|
-
* @param {string} authorization Bearer Token
|
|
296
|
+
* @param {string} [authorization] Bearer Token
|
|
301
297
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
302
298
|
* @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.
|
|
303
299
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -334,7 +330,7 @@ var OrganizationsApi = /** @class */ (function (_super) {
|
|
|
334
330
|
*/
|
|
335
331
|
OrganizationsApi.prototype.getOrganization = function (requestParameters, options) {
|
|
336
332
|
var _this = this;
|
|
337
|
-
return (0, exports.OrganizationsApiFp)(this.configuration).getOrganization(requestParameters.
|
|
333
|
+
return (0, exports.OrganizationsApiFp)(this.configuration).getOrganization(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
338
334
|
};
|
|
339
335
|
/**
|
|
340
336
|
* This will fetch list of organizations
|
|
@@ -346,6 +342,7 @@ var OrganizationsApi = /** @class */ (function (_super) {
|
|
|
346
342
|
*/
|
|
347
343
|
OrganizationsApi.prototype.listOrganizations = function (requestParameters, options) {
|
|
348
344
|
var _this = this;
|
|
345
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
349
346
|
return (0, exports.OrganizationsApiFp)(this.configuration).listOrganizations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
350
347
|
};
|
|
351
348
|
return OrganizationsApi;
|