@sfxcode/nuxt-mongocamp-server 0.8.8 → 0.9.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 (109) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +466 -11
  3. package/dist/runtime/api/apis/AdminApi.d.ts +26 -26
  4. package/dist/runtime/api/apis/AdminApi.mjs +145 -49
  5. package/dist/runtime/api/apis/ApplicationApi.d.ts +10 -50
  6. package/dist/runtime/api/apis/ApplicationApi.mjs +47 -128
  7. package/dist/runtime/api/apis/AuthApi.d.ts +18 -18
  8. package/dist/runtime/api/apis/AuthApi.mjs +93 -29
  9. package/dist/runtime/api/apis/BucketApi.d.ts +10 -10
  10. package/dist/runtime/api/apis/BucketApi.mjs +49 -17
  11. package/dist/runtime/api/apis/CollectionApi.d.ts +22 -22
  12. package/dist/runtime/api/apis/CollectionApi.mjs +121 -41
  13. package/dist/runtime/api/apis/DatabaseApi.d.ts +12 -12
  14. package/dist/runtime/api/apis/DatabaseApi.mjs +61 -21
  15. package/dist/runtime/api/apis/DocumentApi.d.ts +22 -22
  16. package/dist/runtime/api/apis/DocumentApi.mjs +121 -41
  17. package/dist/runtime/api/apis/FileApi.d.ts +16 -16
  18. package/dist/runtime/api/apis/FileApi.mjs +85 -29
  19. package/dist/runtime/api/apis/IndexApi.d.ts +18 -18
  20. package/dist/runtime/api/apis/IndexApi.mjs +97 -33
  21. package/dist/runtime/api/apis/InformationApi.d.ts +4 -4
  22. package/dist/runtime/api/apis/InformationApi.mjs +9 -1
  23. package/dist/runtime/api/apis/JobsApi.d.ts +14 -14
  24. package/dist/runtime/api/apis/JobsApi.mjs +73 -25
  25. package/dist/runtime/api/models/BucketInformation.d.ts +5 -1
  26. package/dist/runtime/api/models/BucketInformation.mjs +8 -0
  27. package/dist/runtime/api/models/CollectionStatus.d.ts +5 -1
  28. package/dist/runtime/api/models/CollectionStatus.mjs +17 -0
  29. package/dist/runtime/api/models/DatabaseInfo.d.ts +5 -1
  30. package/dist/runtime/api/models/DatabaseInfo.mjs +9 -0
  31. package/dist/runtime/api/models/DeleteResponse.d.ts +5 -1
  32. package/dist/runtime/api/models/DeleteResponse.mjs +6 -0
  33. package/dist/runtime/api/models/ErrorDescription.d.ts +5 -1
  34. package/dist/runtime/api/models/ErrorDescription.mjs +7 -0
  35. package/dist/runtime/api/models/FileInformation.d.ts +5 -1
  36. package/dist/runtime/api/models/FileInformation.mjs +10 -0
  37. package/dist/runtime/api/models/Grant.d.ts +5 -1
  38. package/dist/runtime/api/models/Grant.mjs +9 -0
  39. package/dist/runtime/api/models/IndexCreateRequest.d.ts +6 -2
  40. package/dist/runtime/api/models/IndexCreateRequest.mjs +6 -1
  41. package/dist/runtime/api/models/IndexCreateResponse.d.ts +5 -1
  42. package/dist/runtime/api/models/IndexCreateResponse.mjs +5 -0
  43. package/dist/runtime/api/models/IndexDropResponse.d.ts +5 -1
  44. package/dist/runtime/api/models/IndexDropResponse.mjs +5 -0
  45. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +5 -1
  46. package/dist/runtime/api/models/IndexOptionsRequest.mjs +4 -0
  47. package/dist/runtime/api/models/InsertResponse.d.ts +5 -1
  48. package/dist/runtime/api/models/InsertResponse.mjs +5 -0
  49. package/dist/runtime/api/models/JobConfig.d.ts +5 -1
  50. package/dist/runtime/api/models/JobConfig.mjs +10 -0
  51. package/dist/runtime/api/models/JobInformation.d.ts +5 -1
  52. package/dist/runtime/api/models/JobInformation.mjs +10 -0
  53. package/dist/runtime/api/models/JsonSchema.d.ts +6 -2
  54. package/dist/runtime/api/models/JsonSchema.mjs +8 -1
  55. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +5 -1
  56. package/dist/runtime/api/models/JsonSchemaDefinition.mjs +8 -0
  57. package/dist/runtime/api/models/JsonValueAny.d.ts +5 -1
  58. package/dist/runtime/api/models/JsonValueAny.mjs +5 -0
  59. package/dist/runtime/api/models/JsonValueBoolean.d.ts +5 -1
  60. package/dist/runtime/api/models/JsonValueBoolean.mjs +5 -0
  61. package/dist/runtime/api/models/JsonValueString.d.ts +5 -1
  62. package/dist/runtime/api/models/JsonValueString.mjs +5 -0
  63. package/dist/runtime/api/models/Login.d.ts +5 -1
  64. package/dist/runtime/api/models/Login.mjs +6 -0
  65. package/dist/runtime/api/models/LoginResult.d.ts +6 -2
  66. package/dist/runtime/api/models/LoginResult.mjs +8 -1
  67. package/dist/runtime/api/models/Metric.mjs +1 -1
  68. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +6 -2
  69. package/dist/runtime/api/models/MongoAggregateRequest.mjs +6 -1
  70. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +5 -1
  71. package/dist/runtime/api/models/MongoCampConfiguration.mjs +9 -0
  72. package/dist/runtime/api/models/MongoFindRequest.d.ts +5 -1
  73. package/dist/runtime/api/models/MongoFindRequest.mjs +7 -0
  74. package/dist/runtime/api/models/MongoIndex.d.ts +5 -1
  75. package/dist/runtime/api/models/MongoIndex.mjs +15 -0
  76. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +5 -1
  77. package/dist/runtime/api/models/PasswordUpdateRequest.mjs +5 -0
  78. package/dist/runtime/api/models/PipelineStage.d.ts +5 -1
  79. package/dist/runtime/api/models/PipelineStage.mjs +6 -0
  80. package/dist/runtime/api/models/Role.d.ts +6 -2
  81. package/dist/runtime/api/models/Role.mjs +7 -1
  82. package/dist/runtime/api/models/SchemaAnalysis.d.ts +6 -2
  83. package/dist/runtime/api/models/SchemaAnalysis.mjs +8 -1
  84. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +6 -2
  85. package/dist/runtime/api/models/SchemaAnalysisField.mjs +9 -1
  86. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +5 -1
  87. package/dist/runtime/api/models/SchemaAnalysisFieldType.mjs +7 -0
  88. package/dist/runtime/api/models/SettingsResponse.d.ts +5 -1
  89. package/dist/runtime/api/models/SettingsResponse.mjs +5 -0
  90. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +5 -1
  91. package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +4 -0
  92. package/dist/runtime/api/models/UpdateRequest.d.ts +5 -1
  93. package/dist/runtime/api/models/UpdateRequest.mjs +6 -0
  94. package/dist/runtime/api/models/UpdateResponse.d.ts +5 -1
  95. package/dist/runtime/api/models/UpdateResponse.mjs +7 -0
  96. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +6 -2
  97. package/dist/runtime/api/models/UpdateRoleRequest.mjs +6 -1
  98. package/dist/runtime/api/models/UserInformation.d.ts +5 -1
  99. package/dist/runtime/api/models/UserInformation.mjs +6 -0
  100. package/dist/runtime/api/models/UserProfile.d.ts +6 -2
  101. package/dist/runtime/api/models/UserProfile.mjs +7 -1
  102. package/dist/runtime/api/models/Version.d.ts +5 -1
  103. package/dist/runtime/api/models/Version.mjs +7 -0
  104. package/dist/runtime/api/models/index.d.ts +0 -2
  105. package/dist/runtime/api/models/index.mjs +0 -2
  106. package/dist/runtime/api/runtime.d.ts +71 -29
  107. package/dist/runtime/api/runtime.mjs +154 -72
  108. package/dist/runtime/composables/mongocampApi.mjs +1 -1
  109. package/package.json +7 -7
@@ -2,7 +2,7 @@
2
2
  * mongocamp-server
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.4.0
5
+ * The version of the OpenAPI document: 1.4.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { JsonValueBoolean, JsonValueString, PasswordUpdateRequest, Role, UpdateRoleRequest, UserInformation, UserProfile } from '../models';
13
+ import type { JsonValueBoolean, JsonValueString, PasswordUpdateRequest, Role, UpdateRoleRequest, UserInformation, UserProfile } from '../models';
14
14
  export interface AddRoleRequest {
15
15
  role: Role;
16
16
  }
@@ -62,120 +62,120 @@ export declare class AdminApi extends runtime.BaseAPI {
62
62
  * Add a new Role
63
63
  * Add Role
64
64
  */
65
- addRoleRaw(requestParameters: AddRoleRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Role>>;
65
+ addRoleRaw(requestParameters: AddRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Role>>;
66
66
  /**
67
67
  * Add a new Role
68
68
  * Add Role
69
69
  */
70
- addRole(requestParameters: AddRoleRequest, initOverrides?: RequestInit): Promise<Role>;
70
+ addRole(requestParameters: AddRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Role>;
71
71
  /**
72
72
  * Add a new User
73
73
  * Add User
74
74
  */
75
- addUserRaw(requestParameters: AddUserRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<UserProfile>>;
75
+ addUserRaw(requestParameters: AddUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserProfile>>;
76
76
  /**
77
77
  * Add a new User
78
78
  * Add User
79
79
  */
80
- addUser(requestParameters: AddUserRequest, initOverrides?: RequestInit): Promise<UserProfile>;
80
+ addUser(requestParameters: AddUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserProfile>;
81
81
  /**
82
82
  * Delete Role
83
83
  * Delete Role
84
84
  */
85
- deleteRoleRaw(requestParameters: DeleteRoleRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<JsonValueBoolean>>;
85
+ deleteRoleRaw(requestParameters: DeleteRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
86
86
  /**
87
87
  * Delete Role
88
88
  * Delete Role
89
89
  */
90
- deleteRole(requestParameters: DeleteRoleRequest, initOverrides?: RequestInit): Promise<JsonValueBoolean>;
90
+ deleteRole(requestParameters: DeleteRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
91
91
  /**
92
92
  * Delete User
93
93
  * Delete User
94
94
  */
95
- deleteUserRaw(requestParameters: DeleteUserRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<JsonValueBoolean>>;
95
+ deleteUserRaw(requestParameters: DeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
96
96
  /**
97
97
  * Delete User
98
98
  * Delete User
99
99
  */
100
- deleteUser(requestParameters: DeleteUserRequest, initOverrides?: RequestInit): Promise<JsonValueBoolean>;
100
+ deleteUser(requestParameters: DeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
101
101
  /**
102
102
  * Get Role by RoleKey
103
103
  * Get Role
104
104
  */
105
- getRoleRaw(requestParameters: GetRoleRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Role>>;
105
+ getRoleRaw(requestParameters: GetRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Role>>;
106
106
  /**
107
107
  * Get Role by RoleKey
108
108
  * Get Role
109
109
  */
110
- getRole(requestParameters: GetRoleRequest, initOverrides?: RequestInit): Promise<Role>;
110
+ getRole(requestParameters: GetRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Role>;
111
111
  /**
112
112
  * Get UserProfile for user
113
113
  * UserProfile for userId
114
114
  */
115
- getUserRaw(requestParameters: GetUserRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<UserProfile>>;
115
+ getUserRaw(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserProfile>>;
116
116
  /**
117
117
  * Get UserProfile for user
118
118
  * UserProfile for userId
119
119
  */
120
- getUser(requestParameters: GetUserRequest, initOverrides?: RequestInit): Promise<UserProfile>;
120
+ getUser(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserProfile>;
121
121
  /**
122
122
  * Generate an new APIkey for the user
123
123
  * Update ApiKey
124
124
  */
125
- gnerateNewApiKeyForUserRaw(requestParameters: GnerateNewApiKeyForUserRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<JsonValueString>>;
125
+ gnerateNewApiKeyForUserRaw(requestParameters: GnerateNewApiKeyForUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueString>>;
126
126
  /**
127
127
  * Generate an new APIkey for the user
128
128
  * Update ApiKey
129
129
  */
130
- gnerateNewApiKeyForUser(requestParameters: GnerateNewApiKeyForUserRequest, initOverrides?: RequestInit): Promise<JsonValueString>;
130
+ gnerateNewApiKeyForUser(requestParameters: GnerateNewApiKeyForUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueString>;
131
131
  /**
132
132
  * List all Roles or filtered
133
133
  * List Roles
134
134
  */
135
- listRolesRaw(requestParameters: ListRolesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<Role>>>;
135
+ listRolesRaw(requestParameters: ListRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Role>>>;
136
136
  /**
137
137
  * List all Roles or filtered
138
138
  * List Roles
139
139
  */
140
- listRoles(requestParameters?: ListRolesRequest, initOverrides?: RequestInit): Promise<Array<Role>>;
140
+ listRoles(requestParameters?: ListRolesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Role>>;
141
141
  /**
142
142
  * List all Users or filtered
143
143
  * List Users
144
144
  */
145
- listUsersRaw(requestParameters: ListUsersRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<UserProfile>>>;
145
+ listUsersRaw(requestParameters: ListUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UserProfile>>>;
146
146
  /**
147
147
  * List all Users or filtered
148
148
  * List Users
149
149
  */
150
- listUsers(requestParameters?: ListUsersRequest, initOverrides?: RequestInit): Promise<Array<UserProfile>>;
150
+ listUsers(requestParameters?: ListUsersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UserProfile>>;
151
151
  /**
152
152
  * Change Password of User
153
153
  * Update Password
154
154
  */
155
- updatePasswordForUserRaw(requestParameters: UpdatePasswordForUserRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<JsonValueBoolean>>;
155
+ updatePasswordForUserRaw(requestParameters: UpdatePasswordForUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
156
156
  /**
157
157
  * Change Password of User
158
158
  * Update Password
159
159
  */
160
- updatePasswordForUser(requestParameters: UpdatePasswordForUserRequest, initOverrides?: RequestInit): Promise<JsonValueBoolean>;
160
+ updatePasswordForUser(requestParameters: UpdatePasswordForUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
161
161
  /**
162
162
  * Update Role
163
163
  * Update Role
164
164
  */
165
- updateRoleRaw(requestParameters: UpdateRoleOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Role>>;
165
+ updateRoleRaw(requestParameters: UpdateRoleOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Role>>;
166
166
  /**
167
167
  * Update Role
168
168
  * Update Role
169
169
  */
170
- updateRole(requestParameters: UpdateRoleOperationRequest, initOverrides?: RequestInit): Promise<Role>;
170
+ updateRole(requestParameters: UpdateRoleOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Role>;
171
171
  /**
172
172
  * Update Roles of User
173
173
  * Update User Roles
174
174
  */
175
- updateRolesForUserRaw(requestParameters: UpdateRolesForUserRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<UserProfile>>;
175
+ updateRolesForUserRaw(requestParameters: UpdateRolesForUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserProfile>>;
176
176
  /**
177
177
  * Update Roles of User
178
178
  * Update User Roles
179
179
  */
180
- updateRolesForUser(requestParameters: UpdateRolesForUserRequest, initOverrides?: RequestInit): Promise<UserProfile>;
180
+ updateRolesForUser(requestParameters: UpdateRolesForUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserProfile>;
181
181
  }
@@ -8,8 +8,12 @@ import {
8
8
  UpdateRoleRequestToJSON,
9
9
  UserInformationToJSON,
10
10
  UserProfileFromJSON
11
- } from "../models";
11
+ } from "../models/index.mjs";
12
12
  export class AdminApi extends runtime.BaseAPI {
13
+ /**
14
+ * Add a new Role
15
+ * Add Role
16
+ */
13
17
  async addRoleRaw(requestParameters, initOverrides) {
14
18
  if (requestParameters.role === null || requestParameters.role === void 0) {
15
19
  throw new runtime.RequiredError("role", "Required parameter requestParameters.role was null or undefined when calling addRole.");
@@ -17,8 +21,8 @@ export class AdminApi extends runtime.BaseAPI {
17
21
  const queryParameters = {};
18
22
  const headerParameters = {};
19
23
  headerParameters["Content-Type"] = "application/json";
20
- if (this.configuration && this.configuration.apiKey) {
21
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
24
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
25
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
22
26
  }
23
27
  if (this.configuration && this.configuration.accessToken) {
24
28
  const token = this.configuration.accessToken;
@@ -27,8 +31,8 @@ export class AdminApi extends runtime.BaseAPI {
27
31
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
28
32
  }
29
33
  }
30
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
31
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
34
+ if (this.configuration && this.configuration.apiKey) {
35
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
32
36
  }
33
37
  const response = await this.request({
34
38
  path: `/admin/roles`,
@@ -39,10 +43,18 @@ export class AdminApi extends runtime.BaseAPI {
39
43
  }, initOverrides);
40
44
  return new runtime.JSONApiResponse(response, (jsonValue) => RoleFromJSON(jsonValue));
41
45
  }
46
+ /**
47
+ * Add a new Role
48
+ * Add Role
49
+ */
42
50
  async addRole(requestParameters, initOverrides) {
43
51
  const response = await this.addRoleRaw(requestParameters, initOverrides);
44
52
  return await response.value();
45
53
  }
54
+ /**
55
+ * Add a new User
56
+ * Add User
57
+ */
46
58
  async addUserRaw(requestParameters, initOverrides) {
47
59
  if (requestParameters.userInformation === null || requestParameters.userInformation === void 0) {
48
60
  throw new runtime.RequiredError("userInformation", "Required parameter requestParameters.userInformation was null or undefined when calling addUser.");
@@ -50,8 +62,8 @@ export class AdminApi extends runtime.BaseAPI {
50
62
  const queryParameters = {};
51
63
  const headerParameters = {};
52
64
  headerParameters["Content-Type"] = "application/json";
53
- if (this.configuration && this.configuration.apiKey) {
54
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
65
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
66
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
55
67
  }
56
68
  if (this.configuration && this.configuration.accessToken) {
57
69
  const token = this.configuration.accessToken;
@@ -60,8 +72,8 @@ export class AdminApi extends runtime.BaseAPI {
60
72
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
61
73
  }
62
74
  }
63
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
64
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
75
+ if (this.configuration && this.configuration.apiKey) {
76
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
65
77
  }
66
78
  const response = await this.request({
67
79
  path: `/admin/users`,
@@ -72,18 +84,26 @@ export class AdminApi extends runtime.BaseAPI {
72
84
  }, initOverrides);
73
85
  return new runtime.JSONApiResponse(response, (jsonValue) => UserProfileFromJSON(jsonValue));
74
86
  }
87
+ /**
88
+ * Add a new User
89
+ * Add User
90
+ */
75
91
  async addUser(requestParameters, initOverrides) {
76
92
  const response = await this.addUserRaw(requestParameters, initOverrides);
77
93
  return await response.value();
78
94
  }
95
+ /**
96
+ * Delete Role
97
+ * Delete Role
98
+ */
79
99
  async deleteRoleRaw(requestParameters, initOverrides) {
80
100
  if (requestParameters.roleName === null || requestParameters.roleName === void 0) {
81
101
  throw new runtime.RequiredError("roleName", "Required parameter requestParameters.roleName was null or undefined when calling deleteRole.");
82
102
  }
83
103
  const queryParameters = {};
84
104
  const headerParameters = {};
85
- if (this.configuration && this.configuration.apiKey) {
86
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
105
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
106
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
87
107
  }
88
108
  if (this.configuration && this.configuration.accessToken) {
89
109
  const token = this.configuration.accessToken;
@@ -92,8 +112,8 @@ export class AdminApi extends runtime.BaseAPI {
92
112
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
93
113
  }
94
114
  }
95
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
96
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
115
+ if (this.configuration && this.configuration.apiKey) {
116
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
97
117
  }
98
118
  const response = await this.request({
99
119
  path: `/admin/roles/{roleName}`.replace(`{${"roleName"}}`, encodeURIComponent(String(requestParameters.roleName))),
@@ -103,18 +123,26 @@ export class AdminApi extends runtime.BaseAPI {
103
123
  }, initOverrides);
104
124
  return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
105
125
  }
126
+ /**
127
+ * Delete Role
128
+ * Delete Role
129
+ */
106
130
  async deleteRole(requestParameters, initOverrides) {
107
131
  const response = await this.deleteRoleRaw(requestParameters, initOverrides);
108
132
  return await response.value();
109
133
  }
134
+ /**
135
+ * Delete User
136
+ * Delete User
137
+ */
110
138
  async deleteUserRaw(requestParameters, initOverrides) {
111
139
  if (requestParameters.userId === null || requestParameters.userId === void 0) {
112
140
  throw new runtime.RequiredError("userId", "Required parameter requestParameters.userId was null or undefined when calling deleteUser.");
113
141
  }
114
142
  const queryParameters = {};
115
143
  const headerParameters = {};
116
- if (this.configuration && this.configuration.apiKey) {
117
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
144
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
145
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
118
146
  }
119
147
  if (this.configuration && this.configuration.accessToken) {
120
148
  const token = this.configuration.accessToken;
@@ -123,8 +151,8 @@ export class AdminApi extends runtime.BaseAPI {
123
151
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
124
152
  }
125
153
  }
126
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
127
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
154
+ if (this.configuration && this.configuration.apiKey) {
155
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
128
156
  }
129
157
  const response = await this.request({
130
158
  path: `/admin/users/{userId}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
@@ -134,18 +162,26 @@ export class AdminApi extends runtime.BaseAPI {
134
162
  }, initOverrides);
135
163
  return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
136
164
  }
165
+ /**
166
+ * Delete User
167
+ * Delete User
168
+ */
137
169
  async deleteUser(requestParameters, initOverrides) {
138
170
  const response = await this.deleteUserRaw(requestParameters, initOverrides);
139
171
  return await response.value();
140
172
  }
173
+ /**
174
+ * Get Role by RoleKey
175
+ * Get Role
176
+ */
141
177
  async getRoleRaw(requestParameters, initOverrides) {
142
178
  if (requestParameters.roleName === null || requestParameters.roleName === void 0) {
143
179
  throw new runtime.RequiredError("roleName", "Required parameter requestParameters.roleName was null or undefined when calling getRole.");
144
180
  }
145
181
  const queryParameters = {};
146
182
  const headerParameters = {};
147
- if (this.configuration && this.configuration.apiKey) {
148
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
183
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
184
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
149
185
  }
150
186
  if (this.configuration && this.configuration.accessToken) {
151
187
  const token = this.configuration.accessToken;
@@ -154,8 +190,8 @@ export class AdminApi extends runtime.BaseAPI {
154
190
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
155
191
  }
156
192
  }
157
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
158
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
193
+ if (this.configuration && this.configuration.apiKey) {
194
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
159
195
  }
160
196
  const response = await this.request({
161
197
  path: `/admin/roles/{roleName}`.replace(`{${"roleName"}}`, encodeURIComponent(String(requestParameters.roleName))),
@@ -165,18 +201,26 @@ export class AdminApi extends runtime.BaseAPI {
165
201
  }, initOverrides);
166
202
  return new runtime.JSONApiResponse(response, (jsonValue) => RoleFromJSON(jsonValue));
167
203
  }
204
+ /**
205
+ * Get Role by RoleKey
206
+ * Get Role
207
+ */
168
208
  async getRole(requestParameters, initOverrides) {
169
209
  const response = await this.getRoleRaw(requestParameters, initOverrides);
170
210
  return await response.value();
171
211
  }
212
+ /**
213
+ * Get UserProfile for user
214
+ * UserProfile for userId
215
+ */
172
216
  async getUserRaw(requestParameters, initOverrides) {
173
217
  if (requestParameters.userId === null || requestParameters.userId === void 0) {
174
218
  throw new runtime.RequiredError("userId", "Required parameter requestParameters.userId was null or undefined when calling getUser.");
175
219
  }
176
220
  const queryParameters = {};
177
221
  const headerParameters = {};
178
- if (this.configuration && this.configuration.apiKey) {
179
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
222
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
223
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
180
224
  }
181
225
  if (this.configuration && this.configuration.accessToken) {
182
226
  const token = this.configuration.accessToken;
@@ -185,8 +229,8 @@ export class AdminApi extends runtime.BaseAPI {
185
229
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
186
230
  }
187
231
  }
188
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
189
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
232
+ if (this.configuration && this.configuration.apiKey) {
233
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
190
234
  }
191
235
  const response = await this.request({
192
236
  path: `/admin/users/{userId}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
@@ -196,18 +240,26 @@ export class AdminApi extends runtime.BaseAPI {
196
240
  }, initOverrides);
197
241
  return new runtime.JSONApiResponse(response, (jsonValue) => UserProfileFromJSON(jsonValue));
198
242
  }
243
+ /**
244
+ * Get UserProfile for user
245
+ * UserProfile for userId
246
+ */
199
247
  async getUser(requestParameters, initOverrides) {
200
248
  const response = await this.getUserRaw(requestParameters, initOverrides);
201
249
  return await response.value();
202
250
  }
251
+ /**
252
+ * Generate an new APIkey for the user
253
+ * Update ApiKey
254
+ */
203
255
  async gnerateNewApiKeyForUserRaw(requestParameters, initOverrides) {
204
256
  if (requestParameters.userId === null || requestParameters.userId === void 0) {
205
257
  throw new runtime.RequiredError("userId", "Required parameter requestParameters.userId was null or undefined when calling gnerateNewApiKeyForUser.");
206
258
  }
207
259
  const queryParameters = {};
208
260
  const headerParameters = {};
209
- if (this.configuration && this.configuration.apiKey) {
210
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
261
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
262
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
211
263
  }
212
264
  if (this.configuration && this.configuration.accessToken) {
213
265
  const token = this.configuration.accessToken;
@@ -216,8 +268,8 @@ export class AdminApi extends runtime.BaseAPI {
216
268
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
217
269
  }
218
270
  }
219
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
220
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
271
+ if (this.configuration && this.configuration.apiKey) {
272
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
221
273
  }
222
274
  const response = await this.request({
223
275
  path: `/admin/users/{userId}/apikey`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
@@ -227,10 +279,18 @@ export class AdminApi extends runtime.BaseAPI {
227
279
  }, initOverrides);
228
280
  return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueStringFromJSON(jsonValue));
229
281
  }
282
+ /**
283
+ * Generate an new APIkey for the user
284
+ * Update ApiKey
285
+ */
230
286
  async gnerateNewApiKeyForUser(requestParameters, initOverrides) {
231
287
  const response = await this.gnerateNewApiKeyForUserRaw(requestParameters, initOverrides);
232
288
  return await response.value();
233
289
  }
290
+ /**
291
+ * List all Roles or filtered
292
+ * List Roles
293
+ */
234
294
  async listRolesRaw(requestParameters, initOverrides) {
235
295
  const queryParameters = {};
236
296
  if (requestParameters.filter !== void 0) {
@@ -243,8 +303,8 @@ export class AdminApi extends runtime.BaseAPI {
243
303
  queryParameters["page"] = requestParameters.page;
244
304
  }
245
305
  const headerParameters = {};
246
- if (this.configuration && this.configuration.apiKey) {
247
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
306
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
307
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
248
308
  }
249
309
  if (this.configuration && this.configuration.accessToken) {
250
310
  const token = this.configuration.accessToken;
@@ -253,8 +313,8 @@ export class AdminApi extends runtime.BaseAPI {
253
313
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
254
314
  }
255
315
  }
256
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
257
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
316
+ if (this.configuration && this.configuration.apiKey) {
317
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
258
318
  }
259
319
  const response = await this.request({
260
320
  path: `/admin/roles`,
@@ -264,10 +324,18 @@ export class AdminApi extends runtime.BaseAPI {
264
324
  }, initOverrides);
265
325
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(RoleFromJSON));
266
326
  }
327
+ /**
328
+ * List all Roles or filtered
329
+ * List Roles
330
+ */
267
331
  async listRoles(requestParameters = {}, initOverrides) {
268
332
  const response = await this.listRolesRaw(requestParameters, initOverrides);
269
333
  return await response.value();
270
334
  }
335
+ /**
336
+ * List all Users or filtered
337
+ * List Users
338
+ */
271
339
  async listUsersRaw(requestParameters, initOverrides) {
272
340
  const queryParameters = {};
273
341
  if (requestParameters.filter !== void 0) {
@@ -280,8 +348,8 @@ export class AdminApi extends runtime.BaseAPI {
280
348
  queryParameters["page"] = requestParameters.page;
281
349
  }
282
350
  const headerParameters = {};
283
- if (this.configuration && this.configuration.apiKey) {
284
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
351
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
352
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
285
353
  }
286
354
  if (this.configuration && this.configuration.accessToken) {
287
355
  const token = this.configuration.accessToken;
@@ -290,8 +358,8 @@ export class AdminApi extends runtime.BaseAPI {
290
358
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
291
359
  }
292
360
  }
293
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
294
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
361
+ if (this.configuration && this.configuration.apiKey) {
362
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
295
363
  }
296
364
  const response = await this.request({
297
365
  path: `/admin/users`,
@@ -301,10 +369,18 @@ export class AdminApi extends runtime.BaseAPI {
301
369
  }, initOverrides);
302
370
  return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UserProfileFromJSON));
303
371
  }
372
+ /**
373
+ * List all Users or filtered
374
+ * List Users
375
+ */
304
376
  async listUsers(requestParameters = {}, initOverrides) {
305
377
  const response = await this.listUsersRaw(requestParameters, initOverrides);
306
378
  return await response.value();
307
379
  }
380
+ /**
381
+ * Change Password of User
382
+ * Update Password
383
+ */
308
384
  async updatePasswordForUserRaw(requestParameters, initOverrides) {
309
385
  if (requestParameters.userId === null || requestParameters.userId === void 0) {
310
386
  throw new runtime.RequiredError("userId", "Required parameter requestParameters.userId was null or undefined when calling updatePasswordForUser.");
@@ -315,8 +391,8 @@ export class AdminApi extends runtime.BaseAPI {
315
391
  const queryParameters = {};
316
392
  const headerParameters = {};
317
393
  headerParameters["Content-Type"] = "application/json";
318
- if (this.configuration && this.configuration.apiKey) {
319
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
394
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
395
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
320
396
  }
321
397
  if (this.configuration && this.configuration.accessToken) {
322
398
  const token = this.configuration.accessToken;
@@ -325,8 +401,8 @@ export class AdminApi extends runtime.BaseAPI {
325
401
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
326
402
  }
327
403
  }
328
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
329
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
404
+ if (this.configuration && this.configuration.apiKey) {
405
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
330
406
  }
331
407
  const response = await this.request({
332
408
  path: `/admin/users/{userId}/password`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
@@ -337,10 +413,18 @@ export class AdminApi extends runtime.BaseAPI {
337
413
  }, initOverrides);
338
414
  return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
339
415
  }
416
+ /**
417
+ * Change Password of User
418
+ * Update Password
419
+ */
340
420
  async updatePasswordForUser(requestParameters, initOverrides) {
341
421
  const response = await this.updatePasswordForUserRaw(requestParameters, initOverrides);
342
422
  return await response.value();
343
423
  }
424
+ /**
425
+ * Update Role
426
+ * Update Role
427
+ */
344
428
  async updateRoleRaw(requestParameters, initOverrides) {
345
429
  if (requestParameters.roleName === null || requestParameters.roleName === void 0) {
346
430
  throw new runtime.RequiredError("roleName", "Required parameter requestParameters.roleName was null or undefined when calling updateRole.");
@@ -351,8 +435,8 @@ export class AdminApi extends runtime.BaseAPI {
351
435
  const queryParameters = {};
352
436
  const headerParameters = {};
353
437
  headerParameters["Content-Type"] = "application/json";
354
- if (this.configuration && this.configuration.apiKey) {
355
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
438
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
439
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
356
440
  }
357
441
  if (this.configuration && this.configuration.accessToken) {
358
442
  const token = this.configuration.accessToken;
@@ -361,8 +445,8 @@ export class AdminApi extends runtime.BaseAPI {
361
445
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
362
446
  }
363
447
  }
364
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
365
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
448
+ if (this.configuration && this.configuration.apiKey) {
449
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
366
450
  }
367
451
  const response = await this.request({
368
452
  path: `/admin/roles/{roleName}`.replace(`{${"roleName"}}`, encodeURIComponent(String(requestParameters.roleName))),
@@ -373,10 +457,18 @@ export class AdminApi extends runtime.BaseAPI {
373
457
  }, initOverrides);
374
458
  return new runtime.JSONApiResponse(response, (jsonValue) => RoleFromJSON(jsonValue));
375
459
  }
460
+ /**
461
+ * Update Role
462
+ * Update Role
463
+ */
376
464
  async updateRole(requestParameters, initOverrides) {
377
465
  const response = await this.updateRoleRaw(requestParameters, initOverrides);
378
466
  return await response.value();
379
467
  }
468
+ /**
469
+ * Update Roles of User
470
+ * Update User Roles
471
+ */
380
472
  async updateRolesForUserRaw(requestParameters, initOverrides) {
381
473
  if (requestParameters.userId === null || requestParameters.userId === void 0) {
382
474
  throw new runtime.RequiredError("userId", "Required parameter requestParameters.userId was null or undefined when calling updateRolesForUser.");
@@ -384,8 +476,8 @@ export class AdminApi extends runtime.BaseAPI {
384
476
  const queryParameters = {};
385
477
  const headerParameters = {};
386
478
  headerParameters["Content-Type"] = "application/json";
387
- if (this.configuration && this.configuration.apiKey) {
388
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
479
+ if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
480
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
389
481
  }
390
482
  if (this.configuration && this.configuration.accessToken) {
391
483
  const token = this.configuration.accessToken;
@@ -394,8 +486,8 @@ export class AdminApi extends runtime.BaseAPI {
394
486
  headerParameters["Authorization"] = `Bearer ${tokenString}`;
395
487
  }
396
488
  }
397
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
398
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
489
+ if (this.configuration && this.configuration.apiKey) {
490
+ headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
399
491
  }
400
492
  const response = await this.request({
401
493
  path: `/admin/users/{userId}/roles`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
@@ -406,6 +498,10 @@ export class AdminApi extends runtime.BaseAPI {
406
498
  }, initOverrides);
407
499
  return new runtime.JSONApiResponse(response, (jsonValue) => UserProfileFromJSON(jsonValue));
408
500
  }
501
+ /**
502
+ * Update Roles of User
503
+ * Update User Roles
504
+ */
409
505
  async updateRolesForUser(requestParameters, initOverrides) {
410
506
  const response = await this.updateRolesForUserRaw(requestParameters, initOverrides);
411
507
  return await response.value();