@emilgroup/tenant-sdk-node 1.33.1-beta.23 → 1.34.1-beta.14
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 +5 -1
- package/README.md +2 -2
- package/api/dashboard-api.ts +6 -23
- package/api/invitation-controller-rest-api.ts +561 -0
- package/api/settings-api.ts +304 -0
- package/api/user-controller-rest-api.ts +1413 -0
- package/api.ts +4 -0
- package/base.ts +1 -0
- package/dist/api/dashboard-api.d.ts +3 -13
- package/dist/api/dashboard-api.js +6 -13
- package/dist/api/invitation-controller-rest-api.d.ts +315 -0
- package/dist/api/invitation-controller-rest-api.js +538 -0
- package/dist/api/settings-api.d.ts +156 -0
- package/dist/api/settings-api.js +268 -0
- package/dist/api/user-controller-rest-api.d.ts +777 -0
- package/dist/api/user-controller-rest-api.js +1227 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/base.d.ts +2 -1
- package/dist/base.js +1 -0
- package/dist/models/custom-field-dto.d.ts +1 -1
- package/dist/models/get-settings-response-class.d.ts +1 -1
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/dist/models/set-setting-grpc-request-dto.d.ts +42 -0
- package/dist/models/set-setting-request-dto.d.ts +4 -10
- package/dist/models/set-tenant-setting-response-class.d.ts +36 -0
- package/dist/models/set-tenant-setting-response-class.js +15 -0
- package/dist/models/set-user-setting-response-class.d.ts +36 -0
- package/dist/models/set-user-setting-response-class.js +15 -0
- package/dist/models/tenant-settings-class.d.ts +6 -0
- package/models/custom-field-dto.ts +1 -1
- package/models/get-settings-response-class.ts +1 -1
- package/models/index.ts +3 -1
- package/models/set-setting-grpc-request-dto.ts +48 -0
- package/models/set-setting-request-dto.ts +4 -10
- package/models/set-tenant-setting-response-class.ts +42 -0
- package/models/{duplicate-dashboard-request-dto.ts → set-user-setting-response-class.ts} +14 -8
- package/models/tenant-settings-class.ts +6 -0
- package/package.json +2 -2
- package/dist/models/duplicate-dashboard-request-dto.d.ts +0 -30
- /package/dist/models/{duplicate-dashboard-request-dto.js → set-setting-grpc-request-dto.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -10,6 +10,7 @@ api/data-report-api.ts
|
|
|
10
10
|
api/data-report-executor-api.ts
|
|
11
11
|
api/delete-organization-invitations-api.ts
|
|
12
12
|
api/health-check-api.ts
|
|
13
|
+
api/invitation-controller-rest-api.ts
|
|
13
14
|
api/invite-organizations-api.ts
|
|
14
15
|
api/invite-users-api.ts
|
|
15
16
|
api/list-organization-invitations-api.ts
|
|
@@ -18,6 +19,7 @@ api/organizations-api.ts
|
|
|
18
19
|
api/re-invite-an-organization-api.ts
|
|
19
20
|
api/roles-api.ts
|
|
20
21
|
api/settings-api.ts
|
|
22
|
+
api/user-controller-rest-api.ts
|
|
21
23
|
api/users-api.ts
|
|
22
24
|
base.ts
|
|
23
25
|
common.ts
|
|
@@ -55,7 +57,6 @@ models/dbconfig-dto.ts
|
|
|
55
57
|
models/delete-response-class.ts
|
|
56
58
|
models/disable-users-request-dto.ts
|
|
57
59
|
models/disable-users-response-class.ts
|
|
58
|
-
models/duplicate-dashboard-request-dto.ts
|
|
59
60
|
models/duplicate-dashboard-response-class.ts
|
|
60
61
|
models/enable-users-request-dto.ts
|
|
61
62
|
models/enable-users-response-class.ts
|
|
@@ -104,7 +105,10 @@ models/revert-organization-migration-response-class.ts
|
|
|
104
105
|
models/role-class.ts
|
|
105
106
|
models/run-data-report-request-dto.ts
|
|
106
107
|
models/run-data-report-response-class.ts
|
|
108
|
+
models/set-setting-grpc-request-dto.ts
|
|
107
109
|
models/set-setting-request-dto.ts
|
|
110
|
+
models/set-tenant-setting-response-class.ts
|
|
111
|
+
models/set-user-setting-response-class.ts
|
|
108
112
|
models/subscription-class.ts
|
|
109
113
|
models/tenant-admin-user-dto.ts
|
|
110
114
|
models/tenant-settings-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/tenant-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/tenant-sdk-node@1.34.1-beta.14 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/tenant-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/tenant-sdk-node@1.34.1-beta.14
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `UsersApi`.
|
package/api/dashboard-api.ts
CHANGED
|
@@ -31,8 +31,6 @@ import { CreateDashboardV2ResponseClass } from '../models';
|
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
import { DeleteResponseClass } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
|
-
import { DuplicateDashboardRequestDto } from '../models';
|
|
35
|
-
// @ts-ignore
|
|
36
34
|
import { DuplicateDashboardResponseClass } from '../models';
|
|
37
35
|
// @ts-ignore
|
|
38
36
|
import { GetDashboardResponseClass } from '../models';
|
|
@@ -202,16 +200,13 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
202
200
|
* Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
|
|
203
201
|
* @summary Creates a duplicate of an existing dashboard
|
|
204
202
|
* @param {string} code
|
|
205
|
-
* @param {DuplicateDashboardRequestDto} duplicateDashboardRequestDto
|
|
206
203
|
* @param {string} [authorization] Bearer Token
|
|
207
204
|
* @param {*} [options] Override http request option.
|
|
208
205
|
* @throws {RequiredError}
|
|
209
206
|
*/
|
|
210
|
-
duplicateDashboard: async (code: string,
|
|
207
|
+
duplicateDashboard: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
211
208
|
// verify required parameter 'code' is not null or undefined
|
|
212
209
|
assertParamExists('duplicateDashboard', 'code', code)
|
|
213
|
-
// verify required parameter 'duplicateDashboardRequestDto' is not null or undefined
|
|
214
|
-
assertParamExists('duplicateDashboard', 'duplicateDashboardRequestDto', duplicateDashboardRequestDto)
|
|
215
210
|
const localVarPath = `/tenantservice/v1/dashboards/{code}/duplicate`
|
|
216
211
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
217
212
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -237,12 +232,9 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
237
232
|
|
|
238
233
|
|
|
239
234
|
|
|
240
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
241
|
-
|
|
242
235
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
243
236
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
244
237
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
245
|
-
localVarRequestOptions.data = serializeDataIfNeeded(duplicateDashboardRequestDto, localVarRequestOptions, configuration)
|
|
246
238
|
|
|
247
239
|
return {
|
|
248
240
|
url: toPathString(localVarUrlObj),
|
|
@@ -656,13 +648,12 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
656
648
|
* Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
|
|
657
649
|
* @summary Creates a duplicate of an existing dashboard
|
|
658
650
|
* @param {string} code
|
|
659
|
-
* @param {DuplicateDashboardRequestDto} duplicateDashboardRequestDto
|
|
660
651
|
* @param {string} [authorization] Bearer Token
|
|
661
652
|
* @param {*} [options] Override http request option.
|
|
662
653
|
* @throws {RequiredError}
|
|
663
654
|
*/
|
|
664
|
-
async duplicateDashboard(code: string,
|
|
665
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.duplicateDashboard(code,
|
|
655
|
+
async duplicateDashboard(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DuplicateDashboardResponseClass>> {
|
|
656
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.duplicateDashboard(code, authorization, options);
|
|
666
657
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
667
658
|
},
|
|
668
659
|
/**
|
|
@@ -804,13 +795,12 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
804
795
|
* Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
|
|
805
796
|
* @summary Creates a duplicate of an existing dashboard
|
|
806
797
|
* @param {string} code
|
|
807
|
-
* @param {DuplicateDashboardRequestDto} duplicateDashboardRequestDto
|
|
808
798
|
* @param {string} [authorization] Bearer Token
|
|
809
799
|
* @param {*} [options] Override http request option.
|
|
810
800
|
* @throws {RequiredError}
|
|
811
801
|
*/
|
|
812
|
-
duplicateDashboard(code: string,
|
|
813
|
-
return localVarFp.duplicateDashboard(code,
|
|
802
|
+
duplicateDashboard(code: string, authorization?: string, options?: any): AxiosPromise<DuplicateDashboardResponseClass> {
|
|
803
|
+
return localVarFp.duplicateDashboard(code, authorization, options).then((request) => request(axios, basePath));
|
|
814
804
|
},
|
|
815
805
|
/**
|
|
816
806
|
* Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
|
|
@@ -975,13 +965,6 @@ export interface DashboardApiDuplicateDashboardRequest {
|
|
|
975
965
|
*/
|
|
976
966
|
readonly code: string
|
|
977
967
|
|
|
978
|
-
/**
|
|
979
|
-
*
|
|
980
|
-
* @type {DuplicateDashboardRequestDto}
|
|
981
|
-
* @memberof DashboardApiDuplicateDashboard
|
|
982
|
-
*/
|
|
983
|
-
readonly duplicateDashboardRequestDto: DuplicateDashboardRequestDto
|
|
984
|
-
|
|
985
968
|
/**
|
|
986
969
|
* Bearer Token
|
|
987
970
|
* @type {string}
|
|
@@ -1239,7 +1222,7 @@ export class DashboardApi extends BaseAPI {
|
|
|
1239
1222
|
* @memberof DashboardApi
|
|
1240
1223
|
*/
|
|
1241
1224
|
public duplicateDashboard(requestParameters: DashboardApiDuplicateDashboardRequest, options?: AxiosRequestConfig) {
|
|
1242
|
-
return DashboardApiFp(this.configuration).duplicateDashboard(requestParameters.code, requestParameters.
|
|
1225
|
+
return DashboardApiFp(this.configuration).duplicateDashboard(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1243
1226
|
}
|
|
1244
1227
|
|
|
1245
1228
|
/**
|