@sfxcode/nuxt-mongocamp-server 1.0.2 → 1.0.4

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 (133) hide show
  1. package/dist/module.d.ts +2 -9
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +4 -553
  4. package/dist/types.d.ts +8 -2
  5. package/package.json +8 -8
  6. package/dist/runtime/api/apis/AdminApi.d.ts +0 -181
  7. package/dist/runtime/api/apis/AdminApi.mjs +0 -509
  8. package/dist/runtime/api/apis/ApplicationApi.d.ts +0 -65
  9. package/dist/runtime/api/apis/ApplicationApi.mjs +0 -164
  10. package/dist/runtime/api/apis/AuthApi.d.ts +0 -104
  11. package/dist/runtime/api/apis/AuthApi.mjs +0 -296
  12. package/dist/runtime/api/apis/BucketApi.d.ts +0 -67
  13. package/dist/runtime/api/apis/BucketApi.mjs +0 -160
  14. package/dist/runtime/api/apis/CollectionApi.d.ts +0 -161
  15. package/dist/runtime/api/apis/CollectionApi.mjs +0 -435
  16. package/dist/runtime/api/apis/DatabaseApi.d.ts +0 -77
  17. package/dist/runtime/api/apis/DatabaseApi.mjs +0 -196
  18. package/dist/runtime/api/apis/DocumentApi.d.ts +0 -188
  19. package/dist/runtime/api/apis/DocumentApi.mjs +0 -465
  20. package/dist/runtime/api/apis/FileApi.d.ts +0 -125
  21. package/dist/runtime/api/apis/FileApi.mjs +0 -355
  22. package/dist/runtime/api/apis/IndexApi.d.ts +0 -137
  23. package/dist/runtime/api/apis/IndexApi.mjs +0 -367
  24. package/dist/runtime/api/apis/InformationApi.d.ts +0 -28
  25. package/dist/runtime/api/apis/InformationApi.mjs +0 -29
  26. package/dist/runtime/api/apis/JobsApi.d.ts +0 -94
  27. package/dist/runtime/api/apis/JobsApi.mjs +0 -252
  28. package/dist/runtime/api/apis/index.d.ts +0 -11
  29. package/dist/runtime/api/apis/index.mjs +0 -11
  30. package/dist/runtime/api/index.d.ts +0 -3
  31. package/dist/runtime/api/index.mjs +0 -3
  32. package/dist/runtime/api/models/BucketInformation.d.ts +0 -49
  33. package/dist/runtime/api/models/BucketInformation.mjs +0 -36
  34. package/dist/runtime/api/models/CollectionStatus.d.ts +0 -107
  35. package/dist/runtime/api/models/CollectionStatus.mjs +0 -63
  36. package/dist/runtime/api/models/DatabaseInfo.d.ts +0 -57
  37. package/dist/runtime/api/models/DatabaseInfo.mjs +0 -39
  38. package/dist/runtime/api/models/DeleteResponse.d.ts +0 -37
  39. package/dist/runtime/api/models/DeleteResponse.mjs +0 -30
  40. package/dist/runtime/api/models/ErrorDescription.d.ts +0 -43
  41. package/dist/runtime/api/models/ErrorDescription.mjs +0 -33
  42. package/dist/runtime/api/models/FileInformation.d.ts +0 -63
  43. package/dist/runtime/api/models/FileInformation.mjs +0 -42
  44. package/dist/runtime/api/models/Grant.d.ts +0 -55
  45. package/dist/runtime/api/models/Grant.mjs +0 -39
  46. package/dist/runtime/api/models/IndexCreateRequest.d.ts +0 -40
  47. package/dist/runtime/api/models/IndexCreateRequest.mjs +0 -34
  48. package/dist/runtime/api/models/IndexCreateResponse.d.ts +0 -31
  49. package/dist/runtime/api/models/IndexCreateResponse.mjs +0 -27
  50. package/dist/runtime/api/models/IndexDropResponse.d.ts +0 -31
  51. package/dist/runtime/api/models/IndexDropResponse.mjs +0 -27
  52. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +0 -73
  53. package/dist/runtime/api/models/IndexOptionsRequest.mjs +0 -41
  54. package/dist/runtime/api/models/InsertResponse.d.ts +0 -37
  55. package/dist/runtime/api/models/InsertResponse.mjs +0 -30
  56. package/dist/runtime/api/models/JobConfig.d.ts +0 -61
  57. package/dist/runtime/api/models/JobConfig.mjs +0 -42
  58. package/dist/runtime/api/models/JobInformation.d.ts +0 -79
  59. package/dist/runtime/api/models/JobInformation.mjs +0 -49
  60. package/dist/runtime/api/models/JsonResultBoolean.d.ts +0 -27
  61. package/dist/runtime/api/models/JsonResultBoolean.mjs +0 -22
  62. package/dist/runtime/api/models/JsonResultString.d.ts +0 -27
  63. package/dist/runtime/api/models/JsonResultString.mjs +0 -22
  64. package/dist/runtime/api/models/JsonSchema.d.ts +0 -46
  65. package/dist/runtime/api/models/JsonSchema.mjs +0 -38
  66. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +0 -59
  67. package/dist/runtime/api/models/JsonSchemaDefinition.mjs +0 -39
  68. package/dist/runtime/api/models/JsonValueAny.d.ts +0 -31
  69. package/dist/runtime/api/models/JsonValueAny.mjs +0 -27
  70. package/dist/runtime/api/models/JsonValueBoolean.d.ts +0 -31
  71. package/dist/runtime/api/models/JsonValueBoolean.mjs +0 -27
  72. package/dist/runtime/api/models/JsonValueString.d.ts +0 -31
  73. package/dist/runtime/api/models/JsonValueString.mjs +0 -27
  74. package/dist/runtime/api/models/Login.d.ts +0 -37
  75. package/dist/runtime/api/models/Login.mjs +0 -30
  76. package/dist/runtime/api/models/LoginResult.d.ts +0 -44
  77. package/dist/runtime/api/models/LoginResult.mjs +0 -37
  78. package/dist/runtime/api/models/Measurement.d.ts +0 -33
  79. package/dist/runtime/api/models/Measurement.mjs +0 -24
  80. package/dist/runtime/api/models/Metric.d.ts +0 -52
  81. package/dist/runtime/api/models/Metric.mjs +0 -35
  82. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +0 -38
  83. package/dist/runtime/api/models/MongoAggregateRequest.mjs +0 -34
  84. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +0 -55
  85. package/dist/runtime/api/models/MongoCampConfiguration.mjs +0 -39
  86. package/dist/runtime/api/models/MongoFindRequest.d.ts +0 -49
  87. package/dist/runtime/api/models/MongoFindRequest.mjs +0 -33
  88. package/dist/runtime/api/models/MongoIndex.d.ts +0 -103
  89. package/dist/runtime/api/models/MongoIndex.mjs +0 -60
  90. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +0 -31
  91. package/dist/runtime/api/models/PasswordUpdateRequest.mjs +0 -27
  92. package/dist/runtime/api/models/PipelineStage.d.ts +0 -37
  93. package/dist/runtime/api/models/PipelineStage.mjs +0 -30
  94. package/dist/runtime/api/models/Role.d.ts +0 -44
  95. package/dist/runtime/api/models/Role.mjs +0 -37
  96. package/dist/runtime/api/models/SchemaAnalysis.d.ts +0 -50
  97. package/dist/runtime/api/models/SchemaAnalysis.mjs +0 -40
  98. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +0 -62
  99. package/dist/runtime/api/models/SchemaAnalysisField.mjs +0 -45
  100. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +0 -43
  101. package/dist/runtime/api/models/SchemaAnalysisFieldType.mjs +0 -33
  102. package/dist/runtime/api/models/SettingsResponse.d.ts +0 -51
  103. package/dist/runtime/api/models/SettingsResponse.mjs +0 -34
  104. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +0 -39
  105. package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +0 -29
  106. package/dist/runtime/api/models/UpdateRequest.d.ts +0 -41
  107. package/dist/runtime/api/models/UpdateRequest.mjs +0 -30
  108. package/dist/runtime/api/models/UpdateResponse.d.ts +0 -49
  109. package/dist/runtime/api/models/UpdateResponse.mjs +0 -36
  110. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +0 -38
  111. package/dist/runtime/api/models/UpdateRoleRequest.mjs +0 -34
  112. package/dist/runtime/api/models/UserInformation.d.ts +0 -49
  113. package/dist/runtime/api/models/UserInformation.mjs +0 -35
  114. package/dist/runtime/api/models/UserProfile.d.ts +0 -56
  115. package/dist/runtime/api/models/UserProfile.mjs +0 -41
  116. package/dist/runtime/api/models/Version.d.ts +0 -43
  117. package/dist/runtime/api/models/Version.mjs +0 -33
  118. package/dist/runtime/api/models/index.d.ts +0 -39
  119. package/dist/runtime/api/models/index.mjs +0 -39
  120. package/dist/runtime/api/runtime.d.ts +0 -182
  121. package/dist/runtime/api/runtime.mjs +0 -281
  122. package/dist/runtime/composables/mongocampApi.d.ts +0 -14
  123. package/dist/runtime/composables/mongocampApi.mjs +0 -45
  124. package/dist/runtime/composables/mongocampAuth.d.ts +0 -8
  125. package/dist/runtime/composables/mongocampAuth.mjs +0 -28
  126. package/dist/runtime/composables/mongocampSearch.d.ts +0 -11
  127. package/dist/runtime/composables/mongocampSearch.mjs +0 -20
  128. package/dist/runtime/composables/mongocampStorage.d.ts +0 -0
  129. package/dist/runtime/composables/mongocampStorage.mjs +0 -5
  130. package/dist/runtime/composables/mongocampUrl.d.ts +0 -1
  131. package/dist/runtime/composables/mongocampUrl.mjs +0 -5
  132. package/dist/runtime/composables/mongocampUser.d.ts +0 -3
  133. package/dist/runtime/composables/mongocampUser.mjs +0 -4
@@ -1,65 +0,0 @@
1
- /**
2
- * mongocamp-server
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 1.4.2
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import * as runtime from '../runtime';
13
- import type { JsonValueAny, JsonValueBoolean, MongoCampConfiguration, SettingsResponse } from '../models';
14
- export interface GetConfigRequest {
15
- configurationKey: string;
16
- }
17
- export interface UpdateConfigurationRequest {
18
- configurationKey: string;
19
- jsonValueAny: JsonValueAny;
20
- }
21
- /**
22
- *
23
- */
24
- export declare class ApplicationApi extends runtime.BaseAPI {
25
- /**
26
- * Get Configuration for key
27
- * Configuration for configurationKey
28
- */
29
- getConfigRaw(requestParameters: GetConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MongoCampConfiguration>>;
30
- /**
31
- * Get Configuration for key
32
- * Configuration for configurationKey
33
- */
34
- getConfig(requestParameters: GetConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MongoCampConfiguration>;
35
- /**
36
- * List all Configurations or filtered
37
- * List Configurations
38
- */
39
- listConfigurationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MongoCampConfiguration>>>;
40
- /**
41
- * List all Configurations or filtered
42
- * List Configurations
43
- */
44
- listConfigurations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MongoCampConfiguration>>;
45
- /**
46
- * Returns the Settings of the running MongoCamp Application.
47
- * System Settings
48
- */
49
- settingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SettingsResponse>>;
50
- /**
51
- * Returns the Settings of the running MongoCamp Application.
52
- * System Settings
53
- */
54
- settings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SettingsResponse>;
55
- /**
56
- * Update Configuration with the value
57
- * Update Configuration
58
- */
59
- updateConfigurationRaw(requestParameters: UpdateConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
60
- /**
61
- * Update Configuration with the value
62
- * Update Configuration
63
- */
64
- updateConfiguration(requestParameters: UpdateConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
65
- }
@@ -1,164 +0,0 @@
1
- import * as runtime from "../runtime.mjs";
2
- import {
3
- JsonValueAnyToJSON,
4
- JsonValueBooleanFromJSON,
5
- MongoCampConfigurationFromJSON,
6
- SettingsResponseFromJSON
7
- } from "../models/index.mjs";
8
- export class ApplicationApi extends runtime.BaseAPI {
9
- /**
10
- * Get Configuration for key
11
- * Configuration for configurationKey
12
- */
13
- async getConfigRaw(requestParameters, initOverrides) {
14
- if (requestParameters.configurationKey === null || requestParameters.configurationKey === void 0) {
15
- throw new runtime.RequiredError("configurationKey", "Required parameter requestParameters.configurationKey was null or undefined when calling getConfig.");
16
- }
17
- const queryParameters = {};
18
- const headerParameters = {};
19
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
20
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
21
- }
22
- if (this.configuration && this.configuration.accessToken) {
23
- const token = this.configuration.accessToken;
24
- const tokenString = await token("httpAuth", []);
25
- if (tokenString) {
26
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
27
- }
28
- }
29
- if (this.configuration && this.configuration.apiKey) {
30
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
31
- }
32
- const response = await this.request({
33
- path: `/system/configurations/{configurationKey}`.replace(`{${"configurationKey"}}`, encodeURIComponent(String(requestParameters.configurationKey))),
34
- method: "GET",
35
- headers: headerParameters,
36
- query: queryParameters
37
- }, initOverrides);
38
- return new runtime.JSONApiResponse(response, (jsonValue) => MongoCampConfigurationFromJSON(jsonValue));
39
- }
40
- /**
41
- * Get Configuration for key
42
- * Configuration for configurationKey
43
- */
44
- async getConfig(requestParameters, initOverrides) {
45
- const response = await this.getConfigRaw(requestParameters, initOverrides);
46
- return await response.value();
47
- }
48
- /**
49
- * List all Configurations or filtered
50
- * List Configurations
51
- */
52
- async listConfigurationsRaw(initOverrides) {
53
- const queryParameters = {};
54
- const headerParameters = {};
55
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
56
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
57
- }
58
- if (this.configuration && this.configuration.accessToken) {
59
- const token = this.configuration.accessToken;
60
- const tokenString = await token("httpAuth", []);
61
- if (tokenString) {
62
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
63
- }
64
- }
65
- if (this.configuration && this.configuration.apiKey) {
66
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
67
- }
68
- const response = await this.request({
69
- path: `/system/configurations`,
70
- method: "GET",
71
- headers: headerParameters,
72
- query: queryParameters
73
- }, initOverrides);
74
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MongoCampConfigurationFromJSON));
75
- }
76
- /**
77
- * List all Configurations or filtered
78
- * List Configurations
79
- */
80
- async listConfigurations(initOverrides) {
81
- const response = await this.listConfigurationsRaw(initOverrides);
82
- return await response.value();
83
- }
84
- /**
85
- * Returns the Settings of the running MongoCamp Application.
86
- * System Settings
87
- */
88
- async settingsRaw(initOverrides) {
89
- const queryParameters = {};
90
- const headerParameters = {};
91
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
92
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
93
- }
94
- if (this.configuration && this.configuration.accessToken) {
95
- const token = this.configuration.accessToken;
96
- const tokenString = await token("httpAuth", []);
97
- if (tokenString) {
98
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
99
- }
100
- }
101
- if (this.configuration && this.configuration.apiKey) {
102
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
103
- }
104
- const response = await this.request({
105
- path: `/system/settings`,
106
- method: "GET",
107
- headers: headerParameters,
108
- query: queryParameters
109
- }, initOverrides);
110
- return new runtime.JSONApiResponse(response, (jsonValue) => SettingsResponseFromJSON(jsonValue));
111
- }
112
- /**
113
- * Returns the Settings of the running MongoCamp Application.
114
- * System Settings
115
- */
116
- async settings(initOverrides) {
117
- const response = await this.settingsRaw(initOverrides);
118
- return await response.value();
119
- }
120
- /**
121
- * Update Configuration with the value
122
- * Update Configuration
123
- */
124
- async updateConfigurationRaw(requestParameters, initOverrides) {
125
- if (requestParameters.configurationKey === null || requestParameters.configurationKey === void 0) {
126
- throw new runtime.RequiredError("configurationKey", "Required parameter requestParameters.configurationKey was null or undefined when calling updateConfiguration.");
127
- }
128
- if (requestParameters.jsonValueAny === null || requestParameters.jsonValueAny === void 0) {
129
- throw new runtime.RequiredError("jsonValueAny", "Required parameter requestParameters.jsonValueAny was null or undefined when calling updateConfiguration.");
130
- }
131
- const queryParameters = {};
132
- const headerParameters = {};
133
- headerParameters["Content-Type"] = "application/json";
134
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
135
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
136
- }
137
- if (this.configuration && this.configuration.accessToken) {
138
- const token = this.configuration.accessToken;
139
- const tokenString = await token("httpAuth", []);
140
- if (tokenString) {
141
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
142
- }
143
- }
144
- if (this.configuration && this.configuration.apiKey) {
145
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
146
- }
147
- const response = await this.request({
148
- path: `/system/configurations/{configurationKey}`.replace(`{${"configurationKey"}}`, encodeURIComponent(String(requestParameters.configurationKey))),
149
- method: "PATCH",
150
- headers: headerParameters,
151
- query: queryParameters,
152
- body: JsonValueAnyToJSON(requestParameters.jsonValueAny)
153
- }, initOverrides);
154
- return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
155
- }
156
- /**
157
- * Update Configuration with the value
158
- * Update Configuration
159
- */
160
- async updateConfiguration(requestParameters, initOverrides) {
161
- const response = await this.updateConfigurationRaw(requestParameters, initOverrides);
162
- return await response.value();
163
- }
164
- }
@@ -1,104 +0,0 @@
1
- /**
2
- * mongocamp-server
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 1.4.2
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import * as runtime from '../runtime';
13
- import type { JsonValueBoolean, JsonValueString, Login, LoginResult, PasswordUpdateRequest, UserProfile } from '../models';
14
- export interface LoginRequest {
15
- login: Login;
16
- }
17
- export interface UpdatePasswordRequest {
18
- passwordUpdateRequest: PasswordUpdateRequest;
19
- }
20
- /**
21
- *
22
- */
23
- export declare class AuthApi extends runtime.BaseAPI {
24
- /**
25
- * Generate new ApiKey of logged in User
26
- * Update ApiKey
27
- */
28
- generateNewApiKeyRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueString>>;
29
- /**
30
- * Generate new ApiKey of logged in User
31
- * Update ApiKey
32
- */
33
- generateNewApiKey(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueString>;
34
- /**
35
- * Check a given Login for is authenticated
36
- * Check Authentication
37
- */
38
- isAuthenticatedRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
39
- /**
40
- * Check a given Login for is authenticated
41
- * Check Authentication
42
- */
43
- isAuthenticated(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
44
- /**
45
- * Login for one user and return Login Information
46
- * Login User
47
- */
48
- loginRaw(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginResult>>;
49
- /**
50
- * Login for one user and return Login Information
51
- * Login User
52
- */
53
- login(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginResult>;
54
- /**
55
- * Logout by bearer Token
56
- * Logout User
57
- */
58
- logoutRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
59
- /**
60
- * Logout by bearer Token
61
- * Logout User
62
- */
63
- logout(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
64
- /**
65
- * Logout by bearer Token
66
- * Logout User
67
- */
68
- logoutByDeleteRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
69
- /**
70
- * Logout by bearer Token
71
- * Logout User
72
- */
73
- logoutByDelete(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
74
- /**
75
- * Refresh Token and return Login Information
76
- * Refresh User
77
- */
78
- refreshTokenRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginResult>>;
79
- /**
80
- * Refresh Token and return Login Information
81
- * Refresh User
82
- */
83
- refreshToken(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginResult>;
84
- /**
85
- * Change Password of logged in User
86
- * Update Password
87
- */
88
- updatePasswordRaw(requestParameters: UpdatePasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JsonValueBoolean>>;
89
- /**
90
- * Change Password of logged in User
91
- * Update Password
92
- */
93
- updatePassword(requestParameters: UpdatePasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JsonValueBoolean>;
94
- /**
95
- * Return the User Profile of loggedin user
96
- * User Profile
97
- */
98
- userProfileRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserProfile>>;
99
- /**
100
- * Return the User Profile of loggedin user
101
- * User Profile
102
- */
103
- userProfile(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserProfile>;
104
- }
@@ -1,296 +0,0 @@
1
- import * as runtime from "../runtime.mjs";
2
- import {
3
- JsonValueBooleanFromJSON,
4
- JsonValueStringFromJSON,
5
- LoginToJSON,
6
- LoginResultFromJSON,
7
- PasswordUpdateRequestToJSON,
8
- UserProfileFromJSON
9
- } from "../models/index.mjs";
10
- export class AuthApi extends runtime.BaseAPI {
11
- /**
12
- * Generate new ApiKey of logged in User
13
- * Update ApiKey
14
- */
15
- async generateNewApiKeyRaw(initOverrides) {
16
- const queryParameters = {};
17
- const headerParameters = {};
18
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
19
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
20
- }
21
- if (this.configuration && this.configuration.accessToken) {
22
- const token = this.configuration.accessToken;
23
- const tokenString = await token("httpAuth", []);
24
- if (tokenString) {
25
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
26
- }
27
- }
28
- if (this.configuration && this.configuration.apiKey) {
29
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
30
- }
31
- const response = await this.request({
32
- path: `/auth/profile/apikey`,
33
- method: "PATCH",
34
- headers: headerParameters,
35
- query: queryParameters
36
- }, initOverrides);
37
- return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueStringFromJSON(jsonValue));
38
- }
39
- /**
40
- * Generate new ApiKey of logged in User
41
- * Update ApiKey
42
- */
43
- async generateNewApiKey(initOverrides) {
44
- const response = await this.generateNewApiKeyRaw(initOverrides);
45
- return await response.value();
46
- }
47
- /**
48
- * Check a given Login for is authenticated
49
- * Check Authentication
50
- */
51
- async isAuthenticatedRaw(initOverrides) {
52
- const queryParameters = {};
53
- const headerParameters = {};
54
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
55
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
56
- }
57
- if (this.configuration && this.configuration.accessToken) {
58
- const token = this.configuration.accessToken;
59
- const tokenString = await token("httpAuth", []);
60
- if (tokenString) {
61
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
62
- }
63
- }
64
- if (this.configuration && this.configuration.apiKey) {
65
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
66
- }
67
- const response = await this.request({
68
- path: `/auth/authenticated`,
69
- method: "GET",
70
- headers: headerParameters,
71
- query: queryParameters
72
- }, initOverrides);
73
- return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
74
- }
75
- /**
76
- * Check a given Login for is authenticated
77
- * Check Authentication
78
- */
79
- async isAuthenticated(initOverrides) {
80
- const response = await this.isAuthenticatedRaw(initOverrides);
81
- return await response.value();
82
- }
83
- /**
84
- * Login for one user and return Login Information
85
- * Login User
86
- */
87
- async loginRaw(requestParameters, initOverrides) {
88
- if (requestParameters.login === null || requestParameters.login === void 0) {
89
- throw new runtime.RequiredError("login", "Required parameter requestParameters.login was null or undefined when calling login.");
90
- }
91
- const queryParameters = {};
92
- const headerParameters = {};
93
- headerParameters["Content-Type"] = "application/json";
94
- const response = await this.request({
95
- path: `/auth/login`,
96
- method: "POST",
97
- headers: headerParameters,
98
- query: queryParameters,
99
- body: LoginToJSON(requestParameters.login)
100
- }, initOverrides);
101
- return new runtime.JSONApiResponse(response, (jsonValue) => LoginResultFromJSON(jsonValue));
102
- }
103
- /**
104
- * Login for one user and return Login Information
105
- * Login User
106
- */
107
- async login(requestParameters, initOverrides) {
108
- const response = await this.loginRaw(requestParameters, initOverrides);
109
- return await response.value();
110
- }
111
- /**
112
- * Logout by bearer Token
113
- * Logout User
114
- */
115
- async logoutRaw(initOverrides) {
116
- const queryParameters = {};
117
- const headerParameters = {};
118
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
119
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
120
- }
121
- if (this.configuration && this.configuration.accessToken) {
122
- const token = this.configuration.accessToken;
123
- const tokenString = await token("httpAuth", []);
124
- if (tokenString) {
125
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
126
- }
127
- }
128
- if (this.configuration && this.configuration.apiKey) {
129
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
130
- }
131
- const response = await this.request({
132
- path: `/auth/logout`,
133
- method: "POST",
134
- headers: headerParameters,
135
- query: queryParameters
136
- }, initOverrides);
137
- return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
138
- }
139
- /**
140
- * Logout by bearer Token
141
- * Logout User
142
- */
143
- async logout(initOverrides) {
144
- const response = await this.logoutRaw(initOverrides);
145
- return await response.value();
146
- }
147
- /**
148
- * Logout by bearer Token
149
- * Logout User
150
- */
151
- async logoutByDeleteRaw(initOverrides) {
152
- const queryParameters = {};
153
- const headerParameters = {};
154
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
155
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
156
- }
157
- if (this.configuration && this.configuration.accessToken) {
158
- const token = this.configuration.accessToken;
159
- const tokenString = await token("httpAuth", []);
160
- if (tokenString) {
161
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
162
- }
163
- }
164
- if (this.configuration && this.configuration.apiKey) {
165
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
166
- }
167
- const response = await this.request({
168
- path: `/auth/logout`,
169
- method: "DELETE",
170
- headers: headerParameters,
171
- query: queryParameters
172
- }, initOverrides);
173
- return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
174
- }
175
- /**
176
- * Logout by bearer Token
177
- * Logout User
178
- */
179
- async logoutByDelete(initOverrides) {
180
- const response = await this.logoutByDeleteRaw(initOverrides);
181
- return await response.value();
182
- }
183
- /**
184
- * Refresh Token and return Login Information
185
- * Refresh User
186
- */
187
- async refreshTokenRaw(initOverrides) {
188
- const queryParameters = {};
189
- const headerParameters = {};
190
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
191
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
192
- }
193
- if (this.configuration && this.configuration.accessToken) {
194
- const token = this.configuration.accessToken;
195
- const tokenString = await token("httpAuth", []);
196
- if (tokenString) {
197
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
198
- }
199
- }
200
- if (this.configuration && this.configuration.apiKey) {
201
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
202
- }
203
- const response = await this.request({
204
- path: `/auth/token/refresh`,
205
- method: "GET",
206
- headers: headerParameters,
207
- query: queryParameters
208
- }, initOverrides);
209
- return new runtime.JSONApiResponse(response, (jsonValue) => LoginResultFromJSON(jsonValue));
210
- }
211
- /**
212
- * Refresh Token and return Login Information
213
- * Refresh User
214
- */
215
- async refreshToken(initOverrides) {
216
- const response = await this.refreshTokenRaw(initOverrides);
217
- return await response.value();
218
- }
219
- /**
220
- * Change Password of logged in User
221
- * Update Password
222
- */
223
- async updatePasswordRaw(requestParameters, initOverrides) {
224
- if (requestParameters.passwordUpdateRequest === null || requestParameters.passwordUpdateRequest === void 0) {
225
- throw new runtime.RequiredError("passwordUpdateRequest", "Required parameter requestParameters.passwordUpdateRequest was null or undefined when calling updatePassword.");
226
- }
227
- const queryParameters = {};
228
- const headerParameters = {};
229
- headerParameters["Content-Type"] = "application/json";
230
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
231
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
232
- }
233
- if (this.configuration && this.configuration.accessToken) {
234
- const token = this.configuration.accessToken;
235
- const tokenString = await token("httpAuth", []);
236
- if (tokenString) {
237
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
238
- }
239
- }
240
- if (this.configuration && this.configuration.apiKey) {
241
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
242
- }
243
- const response = await this.request({
244
- path: `/auth/profile/password`,
245
- method: "PATCH",
246
- headers: headerParameters,
247
- query: queryParameters,
248
- body: PasswordUpdateRequestToJSON(requestParameters.passwordUpdateRequest)
249
- }, initOverrides);
250
- return new runtime.JSONApiResponse(response, (jsonValue) => JsonValueBooleanFromJSON(jsonValue));
251
- }
252
- /**
253
- * Change Password of logged in User
254
- * Update Password
255
- */
256
- async updatePassword(requestParameters, initOverrides) {
257
- const response = await this.updatePasswordRaw(requestParameters, initOverrides);
258
- return await response.value();
259
- }
260
- /**
261
- * Return the User Profile of loggedin user
262
- * User Profile
263
- */
264
- async userProfileRaw(initOverrides) {
265
- const queryParameters = {};
266
- const headerParameters = {};
267
- if (this.configuration && (this.configuration.username !== void 0 || this.configuration.password !== void 0)) {
268
- headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
269
- }
270
- if (this.configuration && this.configuration.accessToken) {
271
- const token = this.configuration.accessToken;
272
- const tokenString = await token("httpAuth", []);
273
- if (tokenString) {
274
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
275
- }
276
- }
277
- if (this.configuration && this.configuration.apiKey) {
278
- headerParameters["X-AUTH-APIKEY"] = this.configuration.apiKey("X-AUTH-APIKEY");
279
- }
280
- const response = await this.request({
281
- path: `/auth/profile`,
282
- method: "GET",
283
- headers: headerParameters,
284
- query: queryParameters
285
- }, initOverrides);
286
- return new runtime.JSONApiResponse(response, (jsonValue) => UserProfileFromJSON(jsonValue));
287
- }
288
- /**
289
- * Return the User Profile of loggedin user
290
- * User Profile
291
- */
292
- async userProfile(initOverrides) {
293
- const response = await this.userProfileRaw(initOverrides);
294
- return await response.value();
295
- }
296
- }