@emilgroup/tenant-sdk-node 1.0.3 → 1.2.1

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.
Files changed (89) hide show
  1. package/.openapi-generator/FILES +2 -15
  2. package/README.md +2 -2
  3. package/api/custom-schema-api.ts +16 -16
  4. package/api/invite-organizations-api.ts +8 -8
  5. package/api/invite-users-api.ts +20 -20
  6. package/api/organizations-api.ts +128 -8
  7. package/api/users-api.ts +36 -36
  8. package/api.ts +0 -4
  9. package/base.ts +3 -3
  10. package/dist/api/custom-schema-api.d.ts +16 -16
  11. package/dist/api/custom-schema-api.js +12 -12
  12. package/dist/api/invite-organizations-api.d.ts +8 -8
  13. package/dist/api/invite-organizations-api.js +6 -6
  14. package/dist/api/invite-users-api.d.ts +20 -20
  15. package/dist/api/invite-users-api.js +15 -15
  16. package/dist/api/organizations-api.d.ts +74 -8
  17. package/dist/api/organizations-api.js +105 -6
  18. package/dist/api/users-api.d.ts +36 -36
  19. package/dist/api/users-api.js +27 -27
  20. package/dist/api.d.ts +0 -2
  21. package/dist/api.js +0 -2
  22. package/dist/base.d.ts +1 -1
  23. package/dist/base.js +3 -3
  24. package/dist/models/create-custom-schema-request-dto.d.ts +1 -0
  25. package/dist/models/create-custom-schema-request-dto.js +2 -1
  26. package/dist/models/index.d.ts +2 -13
  27. package/dist/models/index.js +2 -13
  28. package/dist/models/invite-org-request-dto.d.ts +0 -12
  29. package/dist/models/invite-org-request-dto.js +0 -6
  30. package/dist/models/org-invitation-class.d.ts +0 -12
  31. package/dist/models/org-invitation-class.js +0 -6
  32. package/dist/models/organization-class.d.ts +18 -12
  33. package/dist/models/organization-class.js +0 -6
  34. package/dist/models/update-custom-schema-request-dto.d.ts +1 -0
  35. package/dist/models/update-custom-schema-request-dto.js +2 -1
  36. package/dist/models/update-organization-request-dto-rest.d.ts +60 -0
  37. package/dist/models/{get-data-report-response-class.d.ts → update-organization-response-class.d.ts} +7 -7
  38. package/models/create-custom-schema-request-dto.ts +2 -1
  39. package/models/index.ts +2 -13
  40. package/models/invite-org-request-dto.ts +0 -15
  41. package/models/org-invitation-class.ts +0 -15
  42. package/models/organization-class.ts +18 -15
  43. package/models/update-custom-schema-request-dto.ts +2 -1
  44. package/models/update-organization-request-dto-rest.ts +66 -0
  45. package/models/{create-data-report-response-class.ts → update-organization-response-class.ts} +7 -7
  46. package/package.json +2 -2
  47. package/api/data-report-api.ts +0 -677
  48. package/api/data-report-executor-api.ts +0 -165
  49. package/dist/api/data-report-api.d.ts +0 -380
  50. package/dist/api/data-report-api.js +0 -636
  51. package/dist/api/data-report-executor-api.d.ts +0 -93
  52. package/dist/api/data-report-executor-api.js +0 -224
  53. package/dist/models/create-data-report-request-dto.d.ts +0 -61
  54. package/dist/models/create-data-report-response-class.d.ts +0 -25
  55. package/dist/models/data-report-class.d.ts +0 -79
  56. package/dist/models/data-report-class.js +0 -15
  57. package/dist/models/data-report-filter-class.d.ts +0 -72
  58. package/dist/models/data-report-filter-class.js +0 -15
  59. package/dist/models/data-report-filter-dto.d.ts +0 -48
  60. package/dist/models/data-report-filter-dto.js +0 -15
  61. package/dist/models/data-report-filter-single-value-dto.d.ts +0 -42
  62. package/dist/models/data-report-filter-single-value-dto.js +0 -15
  63. package/dist/models/data-report-filter-value-dto.d.ts +0 -31
  64. package/dist/models/data-report-filter-value-dto.js +0 -15
  65. package/dist/models/get-data-report-response-class.js +0 -15
  66. package/dist/models/list-data-reports-response-class.d.ts +0 -31
  67. package/dist/models/list-data-reports-response-class.js +0 -15
  68. package/dist/models/run-data-report-request-dto.d.ts +0 -31
  69. package/dist/models/run-data-report-request-dto.js +0 -15
  70. package/dist/models/run-data-report-response-class.d.ts +0 -24
  71. package/dist/models/run-data-report-response-class.js +0 -15
  72. package/dist/models/update-data-report-request-dto.d.ts +0 -61
  73. package/dist/models/update-data-report-request-dto.js +0 -15
  74. package/dist/models/update-data-report-response-class.d.ts +0 -25
  75. package/dist/models/update-data-report-response-class.js +0 -15
  76. package/models/create-data-report-request-dto.ts +0 -67
  77. package/models/data-report-class.ts +0 -85
  78. package/models/data-report-filter-class.ts +0 -78
  79. package/models/data-report-filter-dto.ts +0 -54
  80. package/models/data-report-filter-single-value-dto.ts +0 -48
  81. package/models/data-report-filter-value-dto.ts +0 -37
  82. package/models/get-data-report-response-class.ts +0 -31
  83. package/models/list-data-reports-response-class.ts +0 -37
  84. package/models/run-data-report-request-dto.ts +0 -37
  85. package/models/run-data-report-response-class.ts +0 -30
  86. package/models/update-data-report-request-dto.ts +0 -67
  87. package/models/update-data-report-response-class.ts +0 -31
  88. /package/dist/models/{create-data-report-request-dto.js → update-organization-request-dto-rest.js} +0 -0
  89. /package/dist/models/{create-data-report-response-class.js → update-organization-response-class.js} +0 -0
@@ -100,7 +100,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
100
100
  * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
101
101
  * @summary Delete the invited user
102
102
  * @param {number} id
103
- * @param {string} [authorization] Bearer Token
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
104
  * @param {*} [options] Override http request option.
105
105
  * @throws {RequiredError}
106
106
  */
@@ -148,7 +148,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
148
148
  * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
149
149
  * @summary Delete invited users.
150
150
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
151
- * @param {string} [authorization] Bearer Token
151
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
152
152
  * @param {*} [options] Override http request option.
153
153
  * @throws {RequiredError}
154
154
  */
@@ -197,7 +197,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
197
197
  * This send an email to invite a user with the specific role/roles.
198
198
  * @summary Invite a user
199
199
  * @param {InviteUserRequestDto} inviteUserRequestDto
200
- * @param {string} [authorization] Bearer Token
200
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
201
201
  * @param {*} [options] Override http request option.
202
202
  * @throws {RequiredError}
203
203
  */
@@ -246,7 +246,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
246
246
  * This send bulk emails to invite users with the specific role/roles.
247
247
  * @summary Invite batch of users
248
248
  * @param {InviteUsersRequestDto} inviteUsersRequestDto
249
- * @param {string} [authorization] Bearer Token
249
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
250
  * @param {*} [options] Override http request option.
251
251
  * @throws {RequiredError}
252
252
  */
@@ -294,7 +294,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
294
294
  /**
295
295
  * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
296
296
  * @summary List invited users
297
- * @param {string} [authorization] Bearer Token
297
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
298
298
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
299
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
300
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -373,7 +373,7 @@ var InviteUsersApiFp = function (configuration) {
373
373
  * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
374
374
  * @summary Delete the invited user
375
375
  * @param {number} id
376
- * @param {string} [authorization] Bearer Token
376
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
377
377
  * @param {*} [options] Override http request option.
378
378
  * @throws {RequiredError}
379
379
  */
@@ -394,7 +394,7 @@ var InviteUsersApiFp = function (configuration) {
394
394
  * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
395
395
  * @summary Delete invited users.
396
396
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
397
- * @param {string} [authorization] Bearer Token
397
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
398
398
  * @param {*} [options] Override http request option.
399
399
  * @throws {RequiredError}
400
400
  */
@@ -415,7 +415,7 @@ var InviteUsersApiFp = function (configuration) {
415
415
  * This send an email to invite a user with the specific role/roles.
416
416
  * @summary Invite a user
417
417
  * @param {InviteUserRequestDto} inviteUserRequestDto
418
- * @param {string} [authorization] Bearer Token
418
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
419
419
  * @param {*} [options] Override http request option.
420
420
  * @throws {RequiredError}
421
421
  */
@@ -436,7 +436,7 @@ var InviteUsersApiFp = function (configuration) {
436
436
  * This send bulk emails to invite users with the specific role/roles.
437
437
  * @summary Invite batch of users
438
438
  * @param {InviteUsersRequestDto} inviteUsersRequestDto
439
- * @param {string} [authorization] Bearer Token
439
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
440
440
  * @param {*} [options] Override http request option.
441
441
  * @throws {RequiredError}
442
442
  */
@@ -456,7 +456,7 @@ var InviteUsersApiFp = function (configuration) {
456
456
  /**
457
457
  * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
458
458
  * @summary List invited users
459
- * @param {string} [authorization] Bearer Token
459
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
460
460
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
461
461
  * @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.
462
462
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -493,7 +493,7 @@ var InviteUsersApiFactory = function (configuration, basePath, axios) {
493
493
  * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
494
494
  * @summary Delete the invited user
495
495
  * @param {number} id
496
- * @param {string} [authorization] Bearer Token
496
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
497
497
  * @param {*} [options] Override http request option.
498
498
  * @throws {RequiredError}
499
499
  */
@@ -504,7 +504,7 @@ var InviteUsersApiFactory = function (configuration, basePath, axios) {
504
504
  * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
505
505
  * @summary Delete invited users.
506
506
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
507
- * @param {string} [authorization] Bearer Token
507
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
508
508
  * @param {*} [options] Override http request option.
509
509
  * @throws {RequiredError}
510
510
  */
@@ -515,7 +515,7 @@ var InviteUsersApiFactory = function (configuration, basePath, axios) {
515
515
  * This send an email to invite a user with the specific role/roles.
516
516
  * @summary Invite a user
517
517
  * @param {InviteUserRequestDto} inviteUserRequestDto
518
- * @param {string} [authorization] Bearer Token
518
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
519
519
  * @param {*} [options] Override http request option.
520
520
  * @throws {RequiredError}
521
521
  */
@@ -526,7 +526,7 @@ var InviteUsersApiFactory = function (configuration, basePath, axios) {
526
526
  * This send bulk emails to invite users with the specific role/roles.
527
527
  * @summary Invite batch of users
528
528
  * @param {InviteUsersRequestDto} inviteUsersRequestDto
529
- * @param {string} [authorization] Bearer Token
529
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
530
530
  * @param {*} [options] Override http request option.
531
531
  * @throws {RequiredError}
532
532
  */
@@ -536,7 +536,7 @@ var InviteUsersApiFactory = function (configuration, basePath, axios) {
536
536
  /**
537
537
  * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
538
538
  * @summary List invited users
539
- * @param {string} [authorization] Bearer Token
539
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
540
540
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
541
541
  * @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.
542
542
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -14,6 +14,8 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { GetOrganizationResponseClass } from '../models';
16
16
  import { ListOrganizationsResponseClass } from '../models';
17
+ import { UpdateOrganizationRequestDtoRest } from '../models';
18
+ import { UpdateOrganizationResponseClass } from '../models';
17
19
  /**
18
20
  * OrganizationsApi - axios parameter creator
19
21
  * @export
@@ -23,7 +25,7 @@ export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configu
23
25
  * Get Organization by code
24
26
  * @summary Retrieve the Organization
25
27
  * @param {string} code
26
- * @param {string} [authorization] Bearer Token
28
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
27
29
  * @param {*} [options] Override http request option.
28
30
  * @throws {RequiredError}
29
31
  */
@@ -31,7 +33,7 @@ export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configu
31
33
  /**
32
34
  * This will fetch list of organizations
33
35
  * @summary List organizations
34
- * @param {string} [authorization] Bearer Token
36
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
35
37
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
36
38
  * @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
39
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -42,6 +44,16 @@ export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configu
42
44
  * @throws {RequiredError}
43
45
  */
44
46
  listOrganizations: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
+ /**
48
+ * Update organization data
49
+ * @summary Update the Organization
50
+ * @param {string} code
51
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
52
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ updateOrganization: (code: string, updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
57
  };
46
58
  /**
47
59
  * OrganizationsApi - functional programming interface
@@ -52,7 +64,7 @@ export declare const OrganizationsApiFp: (configuration?: Configuration) => {
52
64
  * Get Organization by code
53
65
  * @summary Retrieve the Organization
54
66
  * @param {string} code
55
- * @param {string} [authorization] Bearer Token
67
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
56
68
  * @param {*} [options] Override http request option.
57
69
  * @throws {RequiredError}
58
70
  */
@@ -60,7 +72,7 @@ export declare const OrganizationsApiFp: (configuration?: Configuration) => {
60
72
  /**
61
73
  * This will fetch list of organizations
62
74
  * @summary List organizations
63
- * @param {string} [authorization] Bearer Token
75
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
64
76
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
65
77
  * @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.
66
78
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -71,6 +83,16 @@ export declare const OrganizationsApiFp: (configuration?: Configuration) => {
71
83
  * @throws {RequiredError}
72
84
  */
73
85
  listOrganizations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrganizationsResponseClass>>;
86
+ /**
87
+ * Update organization data
88
+ * @summary Update the Organization
89
+ * @param {string} code
90
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
91
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
92
+ * @param {*} [options] Override http request option.
93
+ * @throws {RequiredError}
94
+ */
95
+ updateOrganization(code: string, updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateOrganizationResponseClass>>;
74
96
  };
75
97
  /**
76
98
  * OrganizationsApi - factory interface
@@ -81,7 +103,7 @@ export declare const OrganizationsApiFactory: (configuration?: Configuration, ba
81
103
  * Get Organization by code
82
104
  * @summary Retrieve the Organization
83
105
  * @param {string} code
84
- * @param {string} [authorization] Bearer Token
106
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
85
107
  * @param {*} [options] Override http request option.
86
108
  * @throws {RequiredError}
87
109
  */
@@ -89,7 +111,7 @@ export declare const OrganizationsApiFactory: (configuration?: Configuration, ba
89
111
  /**
90
112
  * This will fetch list of organizations
91
113
  * @summary List organizations
92
- * @param {string} [authorization] Bearer Token
114
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
93
115
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
94
116
  * @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.
95
117
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -100,6 +122,16 @@ export declare const OrganizationsApiFactory: (configuration?: Configuration, ba
100
122
  * @throws {RequiredError}
101
123
  */
102
124
  listOrganizations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrganizationsResponseClass>;
125
+ /**
126
+ * Update organization data
127
+ * @summary Update the Organization
128
+ * @param {string} code
129
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
130
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ updateOrganization(code: string, updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UpdateOrganizationResponseClass>;
103
135
  };
104
136
  /**
105
137
  * Request parameters for getOrganization operation in OrganizationsApi.
@@ -114,7 +146,7 @@ export interface OrganizationsApiGetOrganizationRequest {
114
146
  */
115
147
  readonly code: string;
116
148
  /**
117
- * Bearer Token
149
+ * Bearer Token: provided by the login endpoint under the name accessToken.
118
150
  * @type {string}
119
151
  * @memberof OrganizationsApiGetOrganization
120
152
  */
@@ -127,7 +159,7 @@ export interface OrganizationsApiGetOrganizationRequest {
127
159
  */
128
160
  export interface OrganizationsApiListOrganizationsRequest {
129
161
  /**
130
- * Bearer Token
162
+ * Bearer Token: provided by the login endpoint under the name accessToken.
131
163
  * @type {string}
132
164
  * @memberof OrganizationsApiListOrganizations
133
165
  */
@@ -169,6 +201,31 @@ export interface OrganizationsApiListOrganizationsRequest {
169
201
  */
170
202
  readonly expand?: any;
171
203
  }
204
+ /**
205
+ * Request parameters for updateOrganization operation in OrganizationsApi.
206
+ * @export
207
+ * @interface OrganizationsApiUpdateOrganizationRequest
208
+ */
209
+ export interface OrganizationsApiUpdateOrganizationRequest {
210
+ /**
211
+ *
212
+ * @type {string}
213
+ * @memberof OrganizationsApiUpdateOrganization
214
+ */
215
+ readonly code: string;
216
+ /**
217
+ *
218
+ * @type {UpdateOrganizationRequestDtoRest}
219
+ * @memberof OrganizationsApiUpdateOrganization
220
+ */
221
+ readonly updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest;
222
+ /**
223
+ * Bearer Token: provided by the login endpoint under the name accessToken.
224
+ * @type {string}
225
+ * @memberof OrganizationsApiUpdateOrganization
226
+ */
227
+ readonly authorization?: string;
228
+ }
172
229
  /**
173
230
  * OrganizationsApi - object-oriented interface
174
231
  * @export
@@ -194,4 +251,13 @@ export declare class OrganizationsApi extends BaseAPI {
194
251
  * @memberof OrganizationsApi
195
252
  */
196
253
  listOrganizations(requestParameters?: OrganizationsApiListOrganizationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOrganizationsResponseClass, any>>;
254
+ /**
255
+ * Update organization data
256
+ * @summary Update the Organization
257
+ * @param {OrganizationsApiUpdateOrganizationRequest} requestParameters Request parameters.
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ * @memberof OrganizationsApi
261
+ */
262
+ updateOrganization(requestParameters: OrganizationsApiUpdateOrganizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateOrganizationResponseClass, any>>;
197
263
  }
@@ -100,7 +100,7 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
100
100
  * Get Organization by code
101
101
  * @summary Retrieve the Organization
102
102
  * @param {string} code
103
- * @param {string} [authorization] Bearer Token
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
104
  * @param {*} [options] Override http request option.
105
105
  * @throws {RequiredError}
106
106
  */
@@ -147,7 +147,7 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
147
147
  /**
148
148
  * This will fetch list of organizations
149
149
  * @summary List organizations
150
- * @param {string} [authorization] Bearer Token
150
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
151
151
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
152
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
153
153
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -212,6 +212,59 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
212
212
  });
213
213
  });
214
214
  },
215
+ /**
216
+ * Update organization data
217
+ * @summary Update the Organization
218
+ * @param {string} code
219
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
220
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
221
+ * @param {*} [options] Override http request option.
222
+ * @throws {RequiredError}
223
+ */
224
+ updateOrganization: function (code, updateOrganizationRequestDtoRest, authorization, options) {
225
+ if (options === void 0) { options = {}; }
226
+ return __awaiter(_this, void 0, void 0, function () {
227
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
228
+ return __generator(this, function (_a) {
229
+ switch (_a.label) {
230
+ case 0:
231
+ // verify required parameter 'code' is not null or undefined
232
+ (0, common_1.assertParamExists)('updateOrganization', 'code', code);
233
+ // verify required parameter 'updateOrganizationRequestDtoRest' is not null or undefined
234
+ (0, common_1.assertParamExists)('updateOrganization', 'updateOrganizationRequestDtoRest', updateOrganizationRequestDtoRest);
235
+ localVarPath = "/tenantservice/v1/organizations/{code}"
236
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
237
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
238
+ if (configuration) {
239
+ baseOptions = configuration.baseOptions;
240
+ baseAccessToken = configuration.accessToken;
241
+ }
242
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
243
+ localVarHeaderParameter = {};
244
+ localVarQueryParameter = {};
245
+ // authentication bearer required
246
+ // http bearer authentication required
247
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
248
+ case 1:
249
+ // authentication bearer required
250
+ // http bearer authentication required
251
+ _a.sent();
252
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
253
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
254
+ }
255
+ localVarHeaderParameter['Content-Type'] = 'application/json';
256
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
257
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
258
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
259
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateOrganizationRequestDtoRest, localVarRequestOptions, configuration);
260
+ return [2 /*return*/, {
261
+ url: (0, common_1.toPathString)(localVarUrlObj),
262
+ options: localVarRequestOptions,
263
+ }];
264
+ }
265
+ });
266
+ });
267
+ },
215
268
  };
216
269
  };
217
270
  exports.OrganizationsApiAxiosParamCreator = OrganizationsApiAxiosParamCreator;
@@ -226,7 +279,7 @@ var OrganizationsApiFp = function (configuration) {
226
279
  * Get Organization by code
227
280
  * @summary Retrieve the Organization
228
281
  * @param {string} code
229
- * @param {string} [authorization] Bearer Token
282
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
230
283
  * @param {*} [options] Override http request option.
231
284
  * @throws {RequiredError}
232
285
  */
@@ -246,7 +299,7 @@ var OrganizationsApiFp = function (configuration) {
246
299
  /**
247
300
  * This will fetch list of organizations
248
301
  * @summary List organizations
249
- * @param {string} [authorization] Bearer Token
302
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
303
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
251
304
  * @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.
252
305
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -269,6 +322,28 @@ var OrganizationsApiFp = function (configuration) {
269
322
  });
270
323
  });
271
324
  },
325
+ /**
326
+ * Update organization data
327
+ * @summary Update the Organization
328
+ * @param {string} code
329
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
330
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
331
+ * @param {*} [options] Override http request option.
332
+ * @throws {RequiredError}
333
+ */
334
+ updateOrganization: function (code, updateOrganizationRequestDtoRest, authorization, options) {
335
+ return __awaiter(this, void 0, void 0, function () {
336
+ var localVarAxiosArgs;
337
+ return __generator(this, function (_a) {
338
+ switch (_a.label) {
339
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateOrganization(code, updateOrganizationRequestDtoRest, authorization, options)];
340
+ case 1:
341
+ localVarAxiosArgs = _a.sent();
342
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
343
+ }
344
+ });
345
+ });
346
+ },
272
347
  };
273
348
  };
274
349
  exports.OrganizationsApiFp = OrganizationsApiFp;
@@ -283,7 +358,7 @@ var OrganizationsApiFactory = function (configuration, basePath, axios) {
283
358
  * Get Organization by code
284
359
  * @summary Retrieve the Organization
285
360
  * @param {string} code
286
- * @param {string} [authorization] Bearer Token
361
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
287
362
  * @param {*} [options] Override http request option.
288
363
  * @throws {RequiredError}
289
364
  */
@@ -293,7 +368,7 @@ var OrganizationsApiFactory = function (configuration, basePath, axios) {
293
368
  /**
294
369
  * This will fetch list of organizations
295
370
  * @summary List organizations
296
- * @param {string} [authorization] Bearer Token
371
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
297
372
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
298
373
  * @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.
299
374
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -306,6 +381,18 @@ var OrganizationsApiFactory = function (configuration, basePath, axios) {
306
381
  listOrganizations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
307
382
  return localVarFp.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
308
383
  },
384
+ /**
385
+ * Update organization data
386
+ * @summary Update the Organization
387
+ * @param {string} code
388
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
389
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
390
+ * @param {*} [options] Override http request option.
391
+ * @throws {RequiredError}
392
+ */
393
+ updateOrganization: function (code, updateOrganizationRequestDtoRest, authorization, options) {
394
+ return localVarFp.updateOrganization(code, updateOrganizationRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
395
+ },
309
396
  };
310
397
  };
311
398
  exports.OrganizationsApiFactory = OrganizationsApiFactory;
@@ -345,6 +432,18 @@ var OrganizationsApi = /** @class */ (function (_super) {
345
432
  if (requestParameters === void 0) { requestParameters = {}; }
346
433
  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); });
347
434
  };
435
+ /**
436
+ * Update organization data
437
+ * @summary Update the Organization
438
+ * @param {OrganizationsApiUpdateOrganizationRequest} requestParameters Request parameters.
439
+ * @param {*} [options] Override http request option.
440
+ * @throws {RequiredError}
441
+ * @memberof OrganizationsApi
442
+ */
443
+ OrganizationsApi.prototype.updateOrganization = function (requestParameters, options) {
444
+ var _this = this;
445
+ return (0, exports.OrganizationsApiFp)(this.configuration).updateOrganization(requestParameters.code, requestParameters.updateOrganizationRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
446
+ };
348
447
  return OrganizationsApi;
349
448
  }(base_1.BaseAPI));
350
449
  exports.OrganizationsApi = OrganizationsApi;