@emilgroup/tenant-sdk-node 1.29.1-beta.1 → 1.31.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.
- package/.openapi-generator/FILES +9 -0
- package/README.md +2 -2
- package/api/invite-users-api.ts +4 -4
- package/api/organization-migration-api.ts +683 -0
- package/api/users-api.ts +4 -4
- package/api.ts +2 -0
- package/base.ts +45 -3
- package/dist/api/custom-schema-api.js +14 -39
- package/dist/api/dashboard-api.js +29 -74
- package/dist/api/dashboard-group-api.js +17 -46
- package/dist/api/data-report-api.js +14 -39
- package/dist/api/data-report-executor-api.js +5 -18
- package/dist/api/delete-organization-invitations-api.js +5 -18
- package/dist/api/health-check-api.js +5 -18
- package/dist/api/invite-organizations-api.js +5 -18
- package/dist/api/invite-users-api.d.ts +4 -4
- package/dist/api/invite-users-api.js +17 -42
- package/dist/api/list-organization-invitations-api.js +5 -18
- package/dist/api/organization-migration-api.d.ts +385 -0
- package/dist/api/organization-migration-api.js +639 -0
- package/dist/api/organizations-api.js +11 -32
- package/dist/api/re-invite-an-organization-api.js +5 -18
- package/dist/api/roles-api.js +5 -18
- package/dist/api/settings-api.js +5 -18
- package/dist/api/users-api.d.ts +4 -4
- package/dist/api/users-api.js +26 -63
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +11 -2
- package/dist/base.js +56 -27
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -2
- package/dist/models/create-organization-migration-request-dto.d.ts +42 -0
- package/dist/models/create-organization-migration-request-dto.js +15 -0
- package/dist/models/create-organization-migration-response-class.d.ts +25 -0
- package/dist/models/create-organization-migration-response-class.js +15 -0
- package/dist/models/create-resources-migration-request-dto.d.ts +36 -0
- package/dist/models/create-resources-migration-request-dto.js +15 -0
- package/dist/models/get-organization-migration-response-class.d.ts +25 -0
- package/dist/models/get-organization-migration-response-class.js +15 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/models/link-user-with-partner-request-dto-rest.d.ts +6 -0
- package/dist/models/list-organization-migrations-response-class.d.ts +43 -0
- package/dist/models/list-organization-migrations-response-class.js +15 -0
- package/dist/models/org-invitation-class.d.ts +6 -0
- package/dist/models/organization-migration-class.d.ts +81 -0
- package/dist/models/organization-migration-class.js +24 -0
- package/dist/models/revert-organization-migration-request-dto.d.ts +30 -0
- package/dist/models/revert-organization-migration-request-dto.js +15 -0
- package/dist/models/revert-organization-migration-response-class.d.ts +25 -0
- package/dist/models/revert-organization-migration-response-class.js +15 -0
- package/models/create-organization-migration-request-dto.ts +48 -0
- package/models/create-organization-migration-response-class.ts +31 -0
- package/models/create-resources-migration-request-dto.ts +42 -0
- package/models/get-organization-migration-response-class.ts +31 -0
- package/models/index.ts +8 -0
- package/models/link-user-with-partner-request-dto-rest.ts +6 -0
- package/models/list-organization-migrations-response-class.ts +49 -0
- package/models/org-invitation-class.ts +6 -0
- package/models/organization-migration-class.ts +90 -0
- package/models/revert-organization-migration-request-dto.ts +36 -0
- package/models/revert-organization-migration-response-class.ts +31 -0
- package/package.json +4 -4
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
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
|
|
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
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -113,14 +104,10 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
113
104
|
* @param {*} [options] Override http request option.
|
|
114
105
|
* @throws {RequiredError}
|
|
115
106
|
*/
|
|
116
|
-
getOrganization: function (
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
args_1[_i - 2] = arguments[_i];
|
|
120
|
-
}
|
|
121
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
107
|
+
getOrganization: function (code, authorization, options) {
|
|
108
|
+
if (options === void 0) { options = {}; }
|
|
109
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
122
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
123
|
-
if (options === void 0) { options = {}; }
|
|
124
111
|
return __generator(this, function (_a) {
|
|
125
112
|
switch (_a.label) {
|
|
126
113
|
case 0:
|
|
@@ -171,14 +158,10 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
171
158
|
* @param {*} [options] Override http request option.
|
|
172
159
|
* @throws {RequiredError}
|
|
173
160
|
*/
|
|
174
|
-
listOrganizations: function (
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
args_1[_i - 8] = arguments[_i];
|
|
178
|
-
}
|
|
179
|
-
return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
161
|
+
listOrganizations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
162
|
+
if (options === void 0) { options = {}; }
|
|
163
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
180
164
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
181
|
-
if (options === void 0) { options = {}; }
|
|
182
165
|
return __generator(this, function (_a) {
|
|
183
166
|
switch (_a.label) {
|
|
184
167
|
case 0:
|
|
@@ -242,14 +225,10 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
242
225
|
* @param {*} [options] Override http request option.
|
|
243
226
|
* @throws {RequiredError}
|
|
244
227
|
*/
|
|
245
|
-
updateOrganization: function (
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
args_1[_i - 3] = arguments[_i];
|
|
249
|
-
}
|
|
250
|
-
return __awaiter(_this, __spreadArray([code_1, updateOrganizationRequestDtoRest_1, authorization_1], args_1, true), void 0, function (code, updateOrganizationRequestDtoRest, authorization, options) {
|
|
228
|
+
updateOrganization: function (code, updateOrganizationRequestDtoRest, authorization, options) {
|
|
229
|
+
if (options === void 0) { options = {}; }
|
|
230
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
251
231
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
252
|
-
if (options === void 0) { options = {}; }
|
|
253
232
|
return __generator(this, function (_a) {
|
|
254
233
|
switch (_a.label) {
|
|
255
234
|
case 0:
|
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
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
|
|
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
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -112,14 +103,10 @@ var ReInviteAnOrganizationApiAxiosParamCreator = function (configuration) {
|
|
|
112
103
|
* @param {*} [options] Override http request option.
|
|
113
104
|
* @throws {RequiredError}
|
|
114
105
|
*/
|
|
115
|
-
reInviteOrganization: function (
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
args_1[_i - 2] = arguments[_i];
|
|
119
|
-
}
|
|
120
|
-
return __awaiter(_this, __spreadArray([reInviteOrgRequestDto_1, authorization_1], args_1, true), void 0, function (reInviteOrgRequestDto, authorization, options) {
|
|
106
|
+
reInviteOrganization: function (reInviteOrgRequestDto, authorization, options) {
|
|
107
|
+
if (options === void 0) { options = {}; }
|
|
108
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
121
109
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
122
|
-
if (options === void 0) { options = {}; }
|
|
123
110
|
return __generator(this, function (_a) {
|
|
124
111
|
switch (_a.label) {
|
|
125
112
|
case 0:
|
package/dist/api/roles-api.js
CHANGED
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
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
|
|
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
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -119,14 +110,10 @@ var RolesApiAxiosParamCreator = function (configuration) {
|
|
|
119
110
|
* @deprecated
|
|
120
111
|
* @throws {RequiredError}
|
|
121
112
|
*/
|
|
122
|
-
listRoles: function (
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
args_1[_i - 7] = arguments[_i];
|
|
126
|
-
}
|
|
127
|
-
return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
113
|
+
listRoles: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
114
|
+
if (options === void 0) { options = {}; }
|
|
115
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
128
116
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
129
|
-
if (options === void 0) { options = {}; }
|
|
130
117
|
return __generator(this, function (_a) {
|
|
131
118
|
switch (_a.label) {
|
|
132
119
|
case 0:
|
package/dist/api/settings-api.js
CHANGED
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
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
|
|
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
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -113,14 +104,10 @@ var SettingsApiAxiosParamCreator = function (configuration) {
|
|
|
113
104
|
* @param {*} [options] Override http request option.
|
|
114
105
|
* @throws {RequiredError}
|
|
115
106
|
*/
|
|
116
|
-
getTenantSettings: function (
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
args_1[_i - 2] = arguments[_i];
|
|
120
|
-
}
|
|
121
|
-
return __awaiter(_this, __spreadArray([keys_1, authorization_1], args_1, true), void 0, function (keys, authorization, options) {
|
|
107
|
+
getTenantSettings: function (keys, authorization, options) {
|
|
108
|
+
if (options === void 0) { options = {}; }
|
|
109
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
122
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
123
|
-
if (options === void 0) { options = {}; }
|
|
124
111
|
return __generator(this, function (_a) {
|
|
125
112
|
switch (_a.label) {
|
|
126
113
|
case 0:
|
package/dist/api/users-api.d.ts
CHANGED
|
@@ -89,7 +89,7 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
89
89
|
* @param {string} [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.
|
|
90
90
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
91
91
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
92
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
|
|
92
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email</i>
|
|
93
93
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
|
|
94
94
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
95
95
|
* @param {*} [options] Override http request option.
|
|
@@ -162,7 +162,7 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
162
162
|
* @param {string} [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.
|
|
163
163
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
164
164
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
165
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
|
|
165
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email</i>
|
|
166
166
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
|
|
167
167
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
168
168
|
* @param {*} [options] Override http request option.
|
|
@@ -235,7 +235,7 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
|
|
|
235
235
|
* @param {string} [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.
|
|
236
236
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
237
237
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
238
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
|
|
238
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email</i>
|
|
239
239
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
|
|
240
240
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
241
241
|
* @param {*} [options] Override http request option.
|
|
@@ -412,7 +412,7 @@ export interface UsersApiListUsersRequest {
|
|
|
412
412
|
*/
|
|
413
413
|
readonly search?: string;
|
|
414
414
|
/**
|
|
415
|
-
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
|
|
415
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email</i>
|
|
416
416
|
* @type {string}
|
|
417
417
|
* @memberof UsersApiListUsers
|
|
418
418
|
*/
|
package/dist/api/users-api.js
CHANGED
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
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
|
|
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
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -114,14 +105,10 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
114
105
|
* @deprecated
|
|
115
106
|
* @throws {RequiredError}
|
|
116
107
|
*/
|
|
117
|
-
assignUserRoles: function (
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
args_1[_i - 3] = arguments[_i];
|
|
121
|
-
}
|
|
122
|
-
return __awaiter(_this, __spreadArray([id_1, assignUserRolesRequestDto_1, authorization_1], args_1, true), void 0, function (id, assignUserRolesRequestDto, authorization, options) {
|
|
108
|
+
assignUserRoles: function (id, assignUserRolesRequestDto, authorization, options) {
|
|
109
|
+
if (options === void 0) { options = {}; }
|
|
110
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
123
111
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
124
|
-
if (options === void 0) { options = {}; }
|
|
125
112
|
return __generator(this, function (_a) {
|
|
126
113
|
switch (_a.label) {
|
|
127
114
|
case 0:
|
|
@@ -169,14 +156,10 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
169
156
|
* @param {*} [options] Override http request option.
|
|
170
157
|
* @throws {RequiredError}
|
|
171
158
|
*/
|
|
172
|
-
deleteUsers: function (
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
args_1[_i - 2] = arguments[_i];
|
|
176
|
-
}
|
|
177
|
-
return __awaiter(_this, __spreadArray([batchDeleteRequestDto_1, authorization_1], args_1, true), void 0, function (batchDeleteRequestDto, authorization, options) {
|
|
159
|
+
deleteUsers: function (batchDeleteRequestDto, authorization, options) {
|
|
160
|
+
if (options === void 0) { options = {}; }
|
|
161
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
178
162
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
179
|
-
if (options === void 0) { options = {}; }
|
|
180
163
|
return __generator(this, function (_a) {
|
|
181
164
|
switch (_a.label) {
|
|
182
165
|
case 0:
|
|
@@ -221,14 +204,10 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
221
204
|
* @param {*} [options] Override http request option.
|
|
222
205
|
* @throws {RequiredError}
|
|
223
206
|
*/
|
|
224
|
-
disableUsers: function (
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
args_1[_i - 2] = arguments[_i];
|
|
228
|
-
}
|
|
229
|
-
return __awaiter(_this, __spreadArray([disableUsersRequestDto_1, authorization_1], args_1, true), void 0, function (disableUsersRequestDto, authorization, options) {
|
|
207
|
+
disableUsers: function (disableUsersRequestDto, authorization, options) {
|
|
208
|
+
if (options === void 0) { options = {}; }
|
|
209
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
230
210
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
231
|
-
if (options === void 0) { options = {}; }
|
|
232
211
|
return __generator(this, function (_a) {
|
|
233
212
|
switch (_a.label) {
|
|
234
213
|
case 0:
|
|
@@ -273,14 +252,10 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
273
252
|
* @param {*} [options] Override http request option.
|
|
274
253
|
* @throws {RequiredError}
|
|
275
254
|
*/
|
|
276
|
-
enableUsers: function (
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
args_1[_i - 2] = arguments[_i];
|
|
280
|
-
}
|
|
281
|
-
return __awaiter(_this, __spreadArray([enableUsersRequestDto_1, authorization_1], args_1, true), void 0, function (enableUsersRequestDto, authorization, options) {
|
|
255
|
+
enableUsers: function (enableUsersRequestDto, authorization, options) {
|
|
256
|
+
if (options === void 0) { options = {}; }
|
|
257
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
282
258
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
283
|
-
if (options === void 0) { options = {}; }
|
|
284
259
|
return __generator(this, function (_a) {
|
|
285
260
|
switch (_a.label) {
|
|
286
261
|
case 0:
|
|
@@ -326,14 +301,10 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
326
301
|
* @param {*} [options] Override http request option.
|
|
327
302
|
* @throws {RequiredError}
|
|
328
303
|
*/
|
|
329
|
-
getUser: function (
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
args_1[_i - 3] = arguments[_i];
|
|
333
|
-
}
|
|
334
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1, expand_1], args_1, true), void 0, function (code, authorization, expand, options) {
|
|
304
|
+
getUser: function (code, authorization, expand, options) {
|
|
305
|
+
if (options === void 0) { options = {}; }
|
|
306
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
335
307
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
336
|
-
if (options === void 0) { options = {}; }
|
|
337
308
|
return __generator(this, function (_a) {
|
|
338
309
|
switch (_a.label) {
|
|
339
310
|
case 0:
|
|
@@ -381,14 +352,10 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
381
352
|
* @param {*} [options] Override http request option.
|
|
382
353
|
* @throws {RequiredError}
|
|
383
354
|
*/
|
|
384
|
-
linkUserWithPartner: function (
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
args_1[_i - 3] = arguments[_i];
|
|
388
|
-
}
|
|
389
|
-
return __awaiter(_this, __spreadArray([code_1, linkUserWithPartnerRequestDtoRest_1, authorization_1], args_1, true), void 0, function (code, linkUserWithPartnerRequestDtoRest, authorization, options) {
|
|
355
|
+
linkUserWithPartner: function (code, linkUserWithPartnerRequestDtoRest, authorization, options) {
|
|
356
|
+
if (options === void 0) { options = {}; }
|
|
357
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
390
358
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
391
|
-
if (options === void 0) { options = {}; }
|
|
392
359
|
return __generator(this, function (_a) {
|
|
393
360
|
switch (_a.label) {
|
|
394
361
|
case 0:
|
|
@@ -437,20 +404,16 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
437
404
|
* @param {string} [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.
|
|
438
405
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
439
406
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
440
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
|
|
407
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email</i>
|
|
441
408
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
|
|
442
409
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
443
410
|
* @param {*} [options] Override http request option.
|
|
444
411
|
* @throws {RequiredError}
|
|
445
412
|
*/
|
|
446
|
-
listUsers: function (
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
args_1[_i - 8] = arguments[_i];
|
|
450
|
-
}
|
|
451
|
-
return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
413
|
+
listUsers: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
414
|
+
if (options === void 0) { options = {}; }
|
|
415
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
452
416
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
453
|
-
if (options === void 0) { options = {}; }
|
|
454
417
|
return __generator(this, function (_a) {
|
|
455
418
|
switch (_a.label) {
|
|
456
419
|
case 0:
|
|
@@ -647,7 +610,7 @@ var UsersApiFp = function (configuration) {
|
|
|
647
610
|
* @param {string} [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.
|
|
648
611
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
649
612
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
650
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
|
|
613
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email</i>
|
|
651
614
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
|
|
652
615
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
653
616
|
* @param {*} [options] Override http request option.
|
|
@@ -748,7 +711,7 @@ var UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
748
711
|
* @param {string} [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.
|
|
749
712
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
750
713
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
751
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
|
|
714
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email</i>
|
|
752
715
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
|
|
753
716
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
754
717
|
* @param {*} [options] Override http request option.
|
package/dist/api.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from './api/health-check-api';
|
|
|
19
19
|
export * from './api/invite-organizations-api';
|
|
20
20
|
export * from './api/invite-users-api';
|
|
21
21
|
export * from './api/list-organization-invitations-api';
|
|
22
|
+
export * from './api/organization-migration-api';
|
|
22
23
|
export * from './api/organizations-api';
|
|
23
24
|
export * from './api/re-invite-an-organization-api';
|
|
24
25
|
export * from './api/roles-api';
|
package/dist/api.js
CHANGED
|
@@ -37,6 +37,7 @@ __exportStar(require("./api/health-check-api"), exports);
|
|
|
37
37
|
__exportStar(require("./api/invite-organizations-api"), exports);
|
|
38
38
|
__exportStar(require("./api/invite-users-api"), exports);
|
|
39
39
|
__exportStar(require("./api/list-organization-invitations-api"), exports);
|
|
40
|
+
__exportStar(require("./api/organization-migration-api"), exports);
|
|
40
41
|
__exportStar(require("./api/organizations-api"), exports);
|
|
41
42
|
__exportStar(require("./api/re-invite-an-organization-api"), exports);
|
|
42
43
|
__exportStar(require("./api/roles-api"), exports);
|
package/dist/base.d.ts
CHANGED
|
@@ -26,6 +26,14 @@ export interface LoginClass {
|
|
|
26
26
|
accessToken: string;
|
|
27
27
|
permissions: string;
|
|
28
28
|
}
|
|
29
|
+
export interface SwitchWorkspaceRequest {
|
|
30
|
+
username: string;
|
|
31
|
+
targetWorkspace: string;
|
|
32
|
+
}
|
|
33
|
+
export interface SwitchWorkspaceResponseClass {
|
|
34
|
+
accessToken: string;
|
|
35
|
+
permissions: string;
|
|
36
|
+
}
|
|
29
37
|
export declare enum Environment {
|
|
30
38
|
Production = "https://apiv2.emil.de",
|
|
31
39
|
Test = "https://apiv2-test.emil.de",
|
|
@@ -55,12 +63,13 @@ export declare class BaseAPI {
|
|
|
55
63
|
private username?;
|
|
56
64
|
private password?;
|
|
57
65
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
58
|
-
initialize(env?: Environment): Promise<void>;
|
|
66
|
+
initialize(env?: Environment, targetWorkspace?: string): Promise<void>;
|
|
59
67
|
private loadCredentials;
|
|
60
68
|
private readConfigFile;
|
|
61
69
|
private readEnvVariables;
|
|
62
70
|
selectEnvironment(env: Environment): void;
|
|
63
|
-
authorize(username: string, password: string): Promise<void>;
|
|
71
|
+
authorize(username: string, password: string, targetWorkspace?: string): Promise<void>;
|
|
72
|
+
switchWorkspace(targetWorkspace: string): Promise<void>;
|
|
64
73
|
refreshTokenInternal(): Promise<string>;
|
|
65
74
|
private extractRefreshToken;
|
|
66
75
|
getConfiguration(): Configuration;
|