@emilgroup/tenant-sdk-node 1.4.0 → 1.4.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.
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.4.0 --save
20
+ npm install @emilgroup/tenant-sdk-node@1.4.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk-node@1.4.0
24
+ yarn add @emilgroup/tenant-sdk-node@1.4.1
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
package/api/roles-api.ts CHANGED
@@ -34,6 +34,7 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
34
34
  return {
35
35
  /**
36
36
  *
37
+ * @param {string} [authorization] Bearer Token
37
38
  * @param {number} [pageSize] Page size
38
39
  * @param {string} [pageToken] Page token
39
40
  * @param {string} [filter] List filter
@@ -43,7 +44,7 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
43
44
  * @param {*} [options] Override http request option.
44
45
  * @throws {RequiredError}
45
46
  */
46
- listRoles: async (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47
+ listRoles: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47
48
  const localVarPath = `/tenantservice/v1/roles`;
48
49
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
49
50
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -86,6 +87,10 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
86
87
  localVarQueryParameter['expand'] = expand;
87
88
  }
88
89
 
90
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
91
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
92
+ }
93
+
89
94
 
90
95
 
91
96
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -109,6 +114,7 @@ export const RolesApiFp = function(configuration?: Configuration) {
109
114
  return {
110
115
  /**
111
116
  *
117
+ * @param {string} [authorization] Bearer Token
112
118
  * @param {number} [pageSize] Page size
113
119
  * @param {string} [pageToken] Page token
114
120
  * @param {string} [filter] List filter
@@ -118,8 +124,8 @@ export const RolesApiFp = function(configuration?: Configuration) {
118
124
  * @param {*} [options] Override http request option.
119
125
  * @throws {RequiredError}
120
126
  */
121
- async listRoles(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesResponseClass>> {
122
- const localVarAxiosArgs = await localVarAxiosParamCreator.listRoles(pageSize, pageToken, filter, search, order, expand, options);
127
+ async listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesResponseClass>> {
128
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listRoles(authorization, pageSize, pageToken, filter, search, order, expand, options);
123
129
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
124
130
  },
125
131
  }
@@ -134,6 +140,7 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
134
140
  return {
135
141
  /**
136
142
  *
143
+ * @param {string} [authorization] Bearer Token
137
144
  * @param {number} [pageSize] Page size
138
145
  * @param {string} [pageToken] Page token
139
146
  * @param {string} [filter] List filter
@@ -143,8 +150,8 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
143
150
  * @param {*} [options] Override http request option.
144
151
  * @throws {RequiredError}
145
152
  */
146
- listRoles(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRolesResponseClass> {
147
- return localVarFp.listRoles(pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
153
+ listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRolesResponseClass> {
154
+ return localVarFp.listRoles(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
148
155
  },
149
156
  };
150
157
  };
@@ -155,6 +162,13 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
155
162
  * @interface RolesApiListRolesRequest
156
163
  */
157
164
  export interface RolesApiListRolesRequest {
165
+ /**
166
+ * Bearer Token
167
+ * @type {string}
168
+ * @memberof RolesApiListRoles
169
+ */
170
+ readonly authorization?: string
171
+
158
172
  /**
159
173
  * Page size
160
174
  * @type {number}
@@ -213,6 +227,6 @@ export class RolesApi extends BaseAPI {
213
227
  * @memberof RolesApi
214
228
  */
215
229
  public listRoles(requestParameters: RolesApiListRolesRequest = {}, options?: AxiosRequestConfig) {
216
- return RolesApiFp(this.configuration).listRoles(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
230
+ return RolesApiFp(this.configuration).listRoles(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
217
231
  }
218
232
  }
@@ -20,6 +20,7 @@ import { ListRolesResponseClass } from '../models';
20
20
  export declare const RolesApiAxiosParamCreator: (configuration?: Configuration) => {
21
21
  /**
22
22
  *
23
+ * @param {string} [authorization] Bearer Token
23
24
  * @param {number} [pageSize] Page size
24
25
  * @param {string} [pageToken] Page token
25
26
  * @param {string} [filter] List filter
@@ -29,7 +30,7 @@ export declare const RolesApiAxiosParamCreator: (configuration?: Configuration)
29
30
  * @param {*} [options] Override http request option.
30
31
  * @throws {RequiredError}
31
32
  */
32
- listRoles: (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
+ listRoles: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
34
  };
34
35
  /**
35
36
  * RolesApi - functional programming interface
@@ -38,6 +39,7 @@ export declare const RolesApiAxiosParamCreator: (configuration?: Configuration)
38
39
  export declare const RolesApiFp: (configuration?: Configuration) => {
39
40
  /**
40
41
  *
42
+ * @param {string} [authorization] Bearer Token
41
43
  * @param {number} [pageSize] Page size
42
44
  * @param {string} [pageToken] Page token
43
45
  * @param {string} [filter] List filter
@@ -47,7 +49,7 @@ export declare const RolesApiFp: (configuration?: Configuration) => {
47
49
  * @param {*} [options] Override http request option.
48
50
  * @throws {RequiredError}
49
51
  */
50
- listRoles(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesResponseClass>>;
52
+ listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesResponseClass>>;
51
53
  };
52
54
  /**
53
55
  * RolesApi - factory interface
@@ -56,6 +58,7 @@ export declare const RolesApiFp: (configuration?: Configuration) => {
56
58
  export declare const RolesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
57
59
  /**
58
60
  *
61
+ * @param {string} [authorization] Bearer Token
59
62
  * @param {number} [pageSize] Page size
60
63
  * @param {string} [pageToken] Page token
61
64
  * @param {string} [filter] List filter
@@ -65,7 +68,7 @@ export declare const RolesApiFactory: (configuration?: Configuration, basePath?:
65
68
  * @param {*} [options] Override http request option.
66
69
  * @throws {RequiredError}
67
70
  */
68
- listRoles(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRolesResponseClass>;
71
+ listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRolesResponseClass>;
69
72
  };
70
73
  /**
71
74
  * Request parameters for listRoles operation in RolesApi.
@@ -73,6 +76,12 @@ export declare const RolesApiFactory: (configuration?: Configuration, basePath?:
73
76
  * @interface RolesApiListRolesRequest
74
77
  */
75
78
  export interface RolesApiListRolesRequest {
79
+ /**
80
+ * Bearer Token
81
+ * @type {string}
82
+ * @memberof RolesApiListRoles
83
+ */
84
+ readonly authorization?: string;
76
85
  /**
77
86
  * Page size
78
87
  * @type {number}
@@ -98,6 +98,7 @@ var RolesApiAxiosParamCreator = function (configuration) {
98
98
  return {
99
99
  /**
100
100
  *
101
+ * @param {string} [authorization] Bearer Token
101
102
  * @param {number} [pageSize] Page size
102
103
  * @param {string} [pageToken] Page token
103
104
  * @param {string} [filter] List filter
@@ -107,7 +108,7 @@ var RolesApiAxiosParamCreator = function (configuration) {
107
108
  * @param {*} [options] Override http request option.
108
109
  * @throws {RequiredError}
109
110
  */
110
- listRoles: function (pageSize, pageToken, filter, search, order, expand, options) {
111
+ listRoles: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
111
112
  if (options === void 0) { options = {}; }
112
113
  return __awaiter(_this, void 0, void 0, function () {
113
114
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -148,6 +149,9 @@ var RolesApiAxiosParamCreator = function (configuration) {
148
149
  if (expand !== undefined) {
149
150
  localVarQueryParameter['expand'] = expand;
150
151
  }
152
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
153
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
154
+ }
151
155
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
152
156
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
153
157
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -171,6 +175,7 @@ var RolesApiFp = function (configuration) {
171
175
  return {
172
176
  /**
173
177
  *
178
+ * @param {string} [authorization] Bearer Token
174
179
  * @param {number} [pageSize] Page size
175
180
  * @param {string} [pageToken] Page token
176
181
  * @param {string} [filter] List filter
@@ -180,12 +185,12 @@ var RolesApiFp = function (configuration) {
180
185
  * @param {*} [options] Override http request option.
181
186
  * @throws {RequiredError}
182
187
  */
183
- listRoles: function (pageSize, pageToken, filter, search, order, expand, options) {
188
+ listRoles: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
184
189
  return __awaiter(this, void 0, void 0, function () {
185
190
  var localVarAxiosArgs;
186
191
  return __generator(this, function (_a) {
187
192
  switch (_a.label) {
188
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRoles(pageSize, pageToken, filter, search, order, expand, options)];
193
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRoles(authorization, pageSize, pageToken, filter, search, order, expand, options)];
189
194
  case 1:
190
195
  localVarAxiosArgs = _a.sent();
191
196
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -205,6 +210,7 @@ var RolesApiFactory = function (configuration, basePath, axios) {
205
210
  return {
206
211
  /**
207
212
  *
213
+ * @param {string} [authorization] Bearer Token
208
214
  * @param {number} [pageSize] Page size
209
215
  * @param {string} [pageToken] Page token
210
216
  * @param {string} [filter] List filter
@@ -214,8 +220,8 @@ var RolesApiFactory = function (configuration, basePath, axios) {
214
220
  * @param {*} [options] Override http request option.
215
221
  * @throws {RequiredError}
216
222
  */
217
- listRoles: function (pageSize, pageToken, filter, search, order, expand, options) {
218
- return localVarFp.listRoles(pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
223
+ listRoles: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
224
+ return localVarFp.listRoles(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
219
225
  },
220
226
  };
221
227
  };
@@ -241,7 +247,7 @@ var RolesApi = /** @class */ (function (_super) {
241
247
  RolesApi.prototype.listRoles = function (requestParameters, options) {
242
248
  var _this = this;
243
249
  if (requestParameters === void 0) { requestParameters = {}; }
244
- return (0, exports.RolesApiFp)(this.configuration).listRoles(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
250
+ return (0, exports.RolesApiFp)(this.configuration).listRoles(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
245
251
  };
246
252
  return RolesApi;
247
253
  }(base_1.BaseAPI));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/tenant-sdk-node",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "OpenAPI client for @emilgroup/tenant-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [