@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,29 +0,0 @@
1
- import { exists } from "../runtime.mjs";
2
- export function instanceOfUpdateFileInformationRequest(value) {
3
- let isInstance = true;
4
- return isInstance;
5
- }
6
- export function UpdateFileInformationRequestFromJSON(json) {
7
- return UpdateFileInformationRequestFromJSONTyped(json, false);
8
- }
9
- export function UpdateFileInformationRequestFromJSONTyped(json, ignoreDiscriminator) {
10
- if (json === void 0 || json === null) {
11
- return json;
12
- }
13
- return {
14
- "filename": !exists(json, "filename") ? void 0 : json["filename"],
15
- "metadata": !exists(json, "metadata") ? void 0 : json["metadata"]
16
- };
17
- }
18
- export function UpdateFileInformationRequestToJSON(value) {
19
- if (value === void 0) {
20
- return void 0;
21
- }
22
- if (value === null) {
23
- return null;
24
- }
25
- return {
26
- "filename": value.filename,
27
- "metadata": value.metadata
28
- };
29
- }
@@ -1,41 +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
- /**
13
- *
14
- * @export
15
- * @interface UpdateRequest
16
- */
17
- export interface UpdateRequest {
18
- /**
19
- *
20
- * @type {{ [key: string]: string; }}
21
- * @memberof UpdateRequest
22
- */
23
- document: {
24
- [key: string]: string;
25
- };
26
- /**
27
- *
28
- * @type {{ [key: string]: string; }}
29
- * @memberof UpdateRequest
30
- */
31
- filter: {
32
- [key: string]: string;
33
- };
34
- }
35
- /**
36
- * Check if a given object implements the UpdateRequest interface.
37
- */
38
- export declare function instanceOfUpdateRequest(value: object): boolean;
39
- export declare function UpdateRequestFromJSON(json: any): UpdateRequest;
40
- export declare function UpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRequest;
41
- export declare function UpdateRequestToJSON(value?: UpdateRequest | null): any;
@@ -1,30 +0,0 @@
1
- export function instanceOfUpdateRequest(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "document" in value;
4
- isInstance = isInstance && "filter" in value;
5
- return isInstance;
6
- }
7
- export function UpdateRequestFromJSON(json) {
8
- return UpdateRequestFromJSONTyped(json, false);
9
- }
10
- export function UpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
11
- if (json === void 0 || json === null) {
12
- return json;
13
- }
14
- return {
15
- "document": json["document"],
16
- "filter": json["filter"]
17
- };
18
- }
19
- export function UpdateRequestToJSON(value) {
20
- if (value === void 0) {
21
- return void 0;
22
- }
23
- if (value === null) {
24
- return null;
25
- }
26
- return {
27
- "document": value.document,
28
- "filter": value.filter
29
- };
30
- }
@@ -1,49 +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
- /**
13
- *
14
- * @export
15
- * @interface UpdateResponse
16
- */
17
- export interface UpdateResponse {
18
- /**
19
- *
20
- * @type {boolean}
21
- * @memberof UpdateResponse
22
- */
23
- wasAcknowledged: boolean;
24
- /**
25
- *
26
- * @type {Array<string>}
27
- * @memberof UpdateResponse
28
- */
29
- upsertedIds?: Array<string>;
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof UpdateResponse
34
- */
35
- modifiedCount: number;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof UpdateResponse
40
- */
41
- matchedCount: number;
42
- }
43
- /**
44
- * Check if a given object implements the UpdateResponse interface.
45
- */
46
- export declare function instanceOfUpdateResponse(value: object): boolean;
47
- export declare function UpdateResponseFromJSON(json: any): UpdateResponse;
48
- export declare function UpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateResponse;
49
- export declare function UpdateResponseToJSON(value?: UpdateResponse | null): any;
@@ -1,36 +0,0 @@
1
- import { exists } from "../runtime.mjs";
2
- export function instanceOfUpdateResponse(value) {
3
- let isInstance = true;
4
- isInstance = isInstance && "wasAcknowledged" in value;
5
- isInstance = isInstance && "modifiedCount" in value;
6
- isInstance = isInstance && "matchedCount" in value;
7
- return isInstance;
8
- }
9
- export function UpdateResponseFromJSON(json) {
10
- return UpdateResponseFromJSONTyped(json, false);
11
- }
12
- export function UpdateResponseFromJSONTyped(json, ignoreDiscriminator) {
13
- if (json === void 0 || json === null) {
14
- return json;
15
- }
16
- return {
17
- "wasAcknowledged": json["wasAcknowledged"],
18
- "upsertedIds": !exists(json, "upsertedIds") ? void 0 : json["upsertedIds"],
19
- "modifiedCount": json["modifiedCount"],
20
- "matchedCount": json["matchedCount"]
21
- };
22
- }
23
- export function UpdateResponseToJSON(value) {
24
- if (value === void 0) {
25
- return void 0;
26
- }
27
- if (value === null) {
28
- return null;
29
- }
30
- return {
31
- "wasAcknowledged": value.wasAcknowledged,
32
- "upsertedIds": value.upsertedIds,
33
- "modifiedCount": value.modifiedCount,
34
- "matchedCount": value.matchedCount
35
- };
36
- }
@@ -1,38 +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 type { Grant } from './Grant';
13
- /**
14
- *
15
- * @export
16
- * @interface UpdateRoleRequest
17
- */
18
- export interface UpdateRoleRequest {
19
- /**
20
- *
21
- * @type {boolean}
22
- * @memberof UpdateRoleRequest
23
- */
24
- isAdmin: boolean;
25
- /**
26
- *
27
- * @type {Array<Grant>}
28
- * @memberof UpdateRoleRequest
29
- */
30
- collectionGrants?: Array<Grant>;
31
- }
32
- /**
33
- * Check if a given object implements the UpdateRoleRequest interface.
34
- */
35
- export declare function instanceOfUpdateRoleRequest(value: object): boolean;
36
- export declare function UpdateRoleRequestFromJSON(json: any): UpdateRoleRequest;
37
- export declare function UpdateRoleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRoleRequest;
38
- export declare function UpdateRoleRequestToJSON(value?: UpdateRoleRequest | null): any;
@@ -1,34 +0,0 @@
1
- import { exists } from "../runtime.mjs";
2
- import {
3
- GrantFromJSON,
4
- GrantToJSON
5
- } from "./Grant.mjs";
6
- export function instanceOfUpdateRoleRequest(value) {
7
- let isInstance = true;
8
- isInstance = isInstance && "isAdmin" in value;
9
- return isInstance;
10
- }
11
- export function UpdateRoleRequestFromJSON(json) {
12
- return UpdateRoleRequestFromJSONTyped(json, false);
13
- }
14
- export function UpdateRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
15
- if (json === void 0 || json === null) {
16
- return json;
17
- }
18
- return {
19
- "isAdmin": json["isAdmin"],
20
- "collectionGrants": !exists(json, "collectionGrants") ? void 0 : json["collectionGrants"].map(GrantFromJSON)
21
- };
22
- }
23
- export function UpdateRoleRequestToJSON(value) {
24
- if (value === void 0) {
25
- return void 0;
26
- }
27
- if (value === null) {
28
- return null;
29
- }
30
- return {
31
- "isAdmin": value.isAdmin,
32
- "collectionGrants": value.collectionGrants === void 0 ? void 0 : value.collectionGrants.map(GrantToJSON)
33
- };
34
- }
@@ -1,49 +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
- /**
13
- *
14
- * @export
15
- * @interface UserInformation
16
- */
17
- export interface UserInformation {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof UserInformation
22
- */
23
- userId: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof UserInformation
28
- */
29
- password: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof UserInformation
34
- */
35
- apiKey?: string;
36
- /**
37
- *
38
- * @type {Array<string>}
39
- * @memberof UserInformation
40
- */
41
- roles?: Array<string>;
42
- }
43
- /**
44
- * Check if a given object implements the UserInformation interface.
45
- */
46
- export declare function instanceOfUserInformation(value: object): boolean;
47
- export declare function UserInformationFromJSON(json: any): UserInformation;
48
- export declare function UserInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserInformation;
49
- export declare function UserInformationToJSON(value?: UserInformation | null): any;
@@ -1,35 +0,0 @@
1
- import { exists } from "../runtime.mjs";
2
- export function instanceOfUserInformation(value) {
3
- let isInstance = true;
4
- isInstance = isInstance && "userId" in value;
5
- isInstance = isInstance && "password" in value;
6
- return isInstance;
7
- }
8
- export function UserInformationFromJSON(json) {
9
- return UserInformationFromJSONTyped(json, false);
10
- }
11
- export function UserInformationFromJSONTyped(json, ignoreDiscriminator) {
12
- if (json === void 0 || json === null) {
13
- return json;
14
- }
15
- return {
16
- "userId": json["userId"],
17
- "password": json["password"],
18
- "apiKey": !exists(json, "apiKey") ? void 0 : json["apiKey"],
19
- "roles": !exists(json, "roles") ? void 0 : json["roles"]
20
- };
21
- }
22
- export function UserInformationToJSON(value) {
23
- if (value === void 0) {
24
- return void 0;
25
- }
26
- if (value === null) {
27
- return null;
28
- }
29
- return {
30
- "userId": value.userId,
31
- "password": value.password,
32
- "apiKey": value.apiKey,
33
- "roles": value.roles
34
- };
35
- }
@@ -1,56 +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 type { Grant } from './Grant';
13
- /**
14
- *
15
- * @export
16
- * @interface UserProfile
17
- */
18
- export interface UserProfile {
19
- /**
20
- *
21
- * @type {string}
22
- * @memberof UserProfile
23
- */
24
- user: string;
25
- /**
26
- *
27
- * @type {boolean}
28
- * @memberof UserProfile
29
- */
30
- isAdmin: boolean;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof UserProfile
35
- */
36
- apiKey?: string;
37
- /**
38
- *
39
- * @type {Array<string>}
40
- * @memberof UserProfile
41
- */
42
- roles?: Array<string>;
43
- /**
44
- *
45
- * @type {Array<Grant>}
46
- * @memberof UserProfile
47
- */
48
- grants?: Array<Grant>;
49
- }
50
- /**
51
- * Check if a given object implements the UserProfile interface.
52
- */
53
- export declare function instanceOfUserProfile(value: object): boolean;
54
- export declare function UserProfileFromJSON(json: any): UserProfile;
55
- export declare function UserProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserProfile;
56
- export declare function UserProfileToJSON(value?: UserProfile | null): any;
@@ -1,41 +0,0 @@
1
- import { exists } from "../runtime.mjs";
2
- import {
3
- GrantFromJSON,
4
- GrantToJSON
5
- } from "./Grant.mjs";
6
- export function instanceOfUserProfile(value) {
7
- let isInstance = true;
8
- isInstance = isInstance && "user" in value;
9
- isInstance = isInstance && "isAdmin" in value;
10
- return isInstance;
11
- }
12
- export function UserProfileFromJSON(json) {
13
- return UserProfileFromJSONTyped(json, false);
14
- }
15
- export function UserProfileFromJSONTyped(json, ignoreDiscriminator) {
16
- if (json === void 0 || json === null) {
17
- return json;
18
- }
19
- return {
20
- "user": json["user"],
21
- "isAdmin": json["isAdmin"],
22
- "apiKey": !exists(json, "apiKey") ? void 0 : json["apiKey"],
23
- "roles": !exists(json, "roles") ? void 0 : json["roles"],
24
- "grants": !exists(json, "grants") ? void 0 : json["grants"].map(GrantFromJSON)
25
- };
26
- }
27
- export function UserProfileToJSON(value) {
28
- if (value === void 0) {
29
- return void 0;
30
- }
31
- if (value === null) {
32
- return null;
33
- }
34
- return {
35
- "user": value.user,
36
- "isAdmin": value.isAdmin,
37
- "apiKey": value.apiKey,
38
- "roles": value.roles,
39
- "grants": value.grants === void 0 ? void 0 : value.grants.map(GrantToJSON)
40
- };
41
- }
@@ -1,43 +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
- /**
13
- *
14
- * @export
15
- * @interface Version
16
- */
17
- export interface Version {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof Version
22
- */
23
- name: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof Version
28
- */
29
- version: string;
30
- /**
31
- *
32
- * @type {Date}
33
- * @memberof Version
34
- */
35
- builtAt: Date;
36
- }
37
- /**
38
- * Check if a given object implements the Version interface.
39
- */
40
- export declare function instanceOfVersion(value: object): boolean;
41
- export declare function VersionFromJSON(json: any): Version;
42
- export declare function VersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Version;
43
- export declare function VersionToJSON(value?: Version | null): any;
@@ -1,33 +0,0 @@
1
- export function instanceOfVersion(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "name" in value;
4
- isInstance = isInstance && "version" in value;
5
- isInstance = isInstance && "builtAt" in value;
6
- return isInstance;
7
- }
8
- export function VersionFromJSON(json) {
9
- return VersionFromJSONTyped(json, false);
10
- }
11
- export function VersionFromJSONTyped(json, ignoreDiscriminator) {
12
- if (json === void 0 || json === null) {
13
- return json;
14
- }
15
- return {
16
- "name": json["name"],
17
- "version": json["version"],
18
- "builtAt": new Date(json["builtAt"])
19
- };
20
- }
21
- export function VersionToJSON(value) {
22
- if (value === void 0) {
23
- return void 0;
24
- }
25
- if (value === null) {
26
- return null;
27
- }
28
- return {
29
- "name": value.name,
30
- "version": value.version,
31
- "builtAt": value.builtAt.toISOString()
32
- };
33
- }
@@ -1,39 +0,0 @@
1
- export * from './BucketInformation';
2
- export * from './CollectionStatus';
3
- export * from './DatabaseInfo';
4
- export * from './DeleteResponse';
5
- export * from './ErrorDescription';
6
- export * from './FileInformation';
7
- export * from './Grant';
8
- export * from './IndexCreateRequest';
9
- export * from './IndexCreateResponse';
10
- export * from './IndexDropResponse';
11
- export * from './IndexOptionsRequest';
12
- export * from './InsertResponse';
13
- export * from './JobConfig';
14
- export * from './JobInformation';
15
- export * from './JsonSchema';
16
- export * from './JsonSchemaDefinition';
17
- export * from './JsonValueAny';
18
- export * from './JsonValueBoolean';
19
- export * from './JsonValueString';
20
- export * from './Login';
21
- export * from './LoginResult';
22
- export * from './MongoAggregateRequest';
23
- export * from './MongoCampConfiguration';
24
- export * from './MongoFindRequest';
25
- export * from './MongoIndex';
26
- export * from './PasswordUpdateRequest';
27
- export * from './PipelineStage';
28
- export * from './Role';
29
- export * from './SchemaAnalysis';
30
- export * from './SchemaAnalysisField';
31
- export * from './SchemaAnalysisFieldType';
32
- export * from './SettingsResponse';
33
- export * from './UpdateFileInformationRequest';
34
- export * from './UpdateRequest';
35
- export * from './UpdateResponse';
36
- export * from './UpdateRoleRequest';
37
- export * from './UserInformation';
38
- export * from './UserProfile';
39
- export * from './Version';
@@ -1,39 +0,0 @@
1
- export * from "./BucketInformation.mjs";
2
- export * from "./CollectionStatus.mjs";
3
- export * from "./DatabaseInfo.mjs";
4
- export * from "./DeleteResponse.mjs";
5
- export * from "./ErrorDescription.mjs";
6
- export * from "./FileInformation.mjs";
7
- export * from "./Grant.mjs";
8
- export * from "./IndexCreateRequest.mjs";
9
- export * from "./IndexCreateResponse.mjs";
10
- export * from "./IndexDropResponse.mjs";
11
- export * from "./IndexOptionsRequest.mjs";
12
- export * from "./InsertResponse.mjs";
13
- export * from "./JobConfig.mjs";
14
- export * from "./JobInformation.mjs";
15
- export * from "./JsonSchema.mjs";
16
- export * from "./JsonSchemaDefinition.mjs";
17
- export * from "./JsonValueAny.mjs";
18
- export * from "./JsonValueBoolean.mjs";
19
- export * from "./JsonValueString.mjs";
20
- export * from "./Login.mjs";
21
- export * from "./LoginResult.mjs";
22
- export * from "./MongoAggregateRequest.mjs";
23
- export * from "./MongoCampConfiguration.mjs";
24
- export * from "./MongoFindRequest.mjs";
25
- export * from "./MongoIndex.mjs";
26
- export * from "./PasswordUpdateRequest.mjs";
27
- export * from "./PipelineStage.mjs";
28
- export * from "./Role.mjs";
29
- export * from "./SchemaAnalysis.mjs";
30
- export * from "./SchemaAnalysisField.mjs";
31
- export * from "./SchemaAnalysisFieldType.mjs";
32
- export * from "./SettingsResponse.mjs";
33
- export * from "./UpdateFileInformationRequest.mjs";
34
- export * from "./UpdateRequest.mjs";
35
- export * from "./UpdateResponse.mjs";
36
- export * from "./UpdateRoleRequest.mjs";
37
- export * from "./UserInformation.mjs";
38
- export * from "./UserProfile.mjs";
39
- export * from "./Version.mjs";