@sfxcode/nuxt-mongocamp-server 1.2.0 → 1.2.2

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 (153) hide show
  1. package/README.md +1 -1
  2. package/dist/module.json +5 -1
  3. package/dist/module.mjs +1 -1
  4. package/dist/runtime/api/apis/AdminApi.d.ts +2 -2
  5. package/dist/runtime/api/apis/{AdminApi.mjs → AdminApi.js} +101 -65
  6. package/dist/runtime/api/apis/ApplicationApi.d.ts +2 -2
  7. package/dist/runtime/api/apis/{ApplicationApi.mjs → ApplicationApi.js} +24 -15
  8. package/dist/runtime/api/apis/AuthApi.d.ts +2 -2
  9. package/dist/runtime/api/apis/{AuthApi.mjs → AuthApi.js} +21 -15
  10. package/dist/runtime/api/apis/BucketApi.d.ts +2 -2
  11. package/dist/runtime/api/apis/{BucketApi.mjs → BucketApi.js} +24 -15
  12. package/dist/runtime/api/apis/CollectionApi.d.ts +2 -2
  13. package/dist/runtime/api/apis/{CollectionApi.mjs → CollectionApi.js} +99 -66
  14. package/dist/runtime/api/apis/DatabaseApi.d.ts +2 -2
  15. package/dist/runtime/api/apis/{DatabaseApi.mjs → DatabaseApi.js} +25 -16
  16. package/dist/runtime/api/apis/DocumentApi.d.ts +6 -6
  17. package/dist/runtime/api/apis/{DocumentApi.mjs → DocumentApi.js} +153 -93
  18. package/dist/runtime/api/apis/FileApi.d.ts +2 -2
  19. package/dist/runtime/api/apis/{FileApi.mjs → FileApi.js} +121 -76
  20. package/dist/runtime/api/apis/IndexApi.d.ts +2 -2
  21. package/dist/runtime/api/apis/{IndexApi.mjs → IndexApi.js} +119 -71
  22. package/dist/runtime/api/apis/InformationApi.d.ts +2 -2
  23. package/dist/runtime/api/apis/{InformationApi.mjs → InformationApi.js} +2 -2
  24. package/dist/runtime/api/apis/JobsApi.d.ts +2 -2
  25. package/dist/runtime/api/apis/{JobsApi.mjs → JobsApi.js} +53 -29
  26. package/dist/runtime/api/apis/index.d.ts +11 -11
  27. package/dist/runtime/api/apis/index.js +11 -0
  28. package/dist/runtime/api/index.d.ts +3 -3
  29. package/dist/runtime/api/index.js +3 -0
  30. package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
  31. package/dist/runtime/api/models/BucketInformation.js +32 -0
  32. package/dist/runtime/api/models/CollectionStatus.d.ts +3 -3
  33. package/dist/runtime/api/models/CollectionStatus.js +59 -0
  34. package/dist/runtime/api/models/DatabaseInfo.d.ts +2 -2
  35. package/dist/runtime/api/models/DatabaseInfo.js +35 -0
  36. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
  37. package/dist/runtime/api/models/{DeleteResponse.mjs → DeleteResponse.js} +8 -12
  38. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
  39. package/dist/runtime/api/models/{ErrorDescription.mjs → ErrorDescription.js} +10 -14
  40. package/dist/runtime/api/models/FileInformation.d.ts +2 -2
  41. package/dist/runtime/api/models/FileInformation.js +38 -0
  42. package/dist/runtime/api/models/Grant.d.ts +1 -1
  43. package/dist/runtime/api/models/Grant.js +35 -0
  44. package/dist/runtime/api/models/IndexCreateRequest.d.ts +3 -3
  45. package/dist/runtime/api/models/IndexCreateRequest.js +29 -0
  46. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
  47. package/dist/runtime/api/models/{IndexCreateResponse.mjs → IndexCreateResponse.js} +6 -10
  48. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
  49. package/dist/runtime/api/models/{IndexDropResponse.mjs → IndexDropResponse.js} +6 -10
  50. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +1 -1
  51. package/dist/runtime/api/models/IndexOptionsRequest.js +36 -0
  52. package/dist/runtime/api/models/InsertResponse.d.ts +1 -1
  53. package/dist/runtime/api/models/InsertResponse.js +25 -0
  54. package/dist/runtime/api/models/JobConfig.d.ts +1 -1
  55. package/dist/runtime/api/models/JobConfig.js +38 -0
  56. package/dist/runtime/api/models/JobInformation.d.ts +1 -1
  57. package/dist/runtime/api/models/JobInformation.js +44 -0
  58. package/dist/runtime/api/models/JsonSchema.d.ts +3 -3
  59. package/dist/runtime/api/models/JsonSchema.js +34 -0
  60. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +2 -2
  61. package/dist/runtime/api/models/JsonSchemaDefinition.js +34 -0
  62. package/dist/runtime/api/models/JsonValueAny.d.ts +1 -1
  63. package/dist/runtime/api/models/{JsonValueAny.mjs → JsonValueAny.js} +6 -10
  64. package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
  65. package/dist/runtime/api/models/{JsonValueBoolean.mjs → JsonValueBoolean.js} +6 -10
  66. package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
  67. package/dist/runtime/api/models/{JsonValueString.mjs → JsonValueString.js} +6 -10
  68. package/dist/runtime/api/models/Login.d.ts +1 -1
  69. package/dist/runtime/api/models/{Login.mjs → Login.js} +8 -12
  70. package/dist/runtime/api/models/LoginResult.d.ts +2 -2
  71. package/dist/runtime/api/models/{LoginResult.mjs → LoginResult.js} +11 -15
  72. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +2 -2
  73. package/dist/runtime/api/models/MongoAggregateRequest.js +29 -0
  74. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -1
  75. package/dist/runtime/api/models/MongoCampConfiguration.js +35 -0
  76. package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -4
  77. package/dist/runtime/api/models/{MongoFindRequest.mjs → MongoFindRequest.js} +10 -14
  78. package/dist/runtime/api/models/MongoIndex.d.ts +4 -4
  79. package/dist/runtime/api/models/MongoIndex.js +55 -0
  80. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
  81. package/dist/runtime/api/models/{PasswordUpdateRequest.mjs → PasswordUpdateRequest.js} +6 -10
  82. package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
  83. package/dist/runtime/api/models/{PipelineStage.mjs → PipelineStage.js} +8 -12
  84. package/dist/runtime/api/models/Role.d.ts +2 -2
  85. package/dist/runtime/api/models/Role.js +32 -0
  86. package/dist/runtime/api/models/SchemaAnalysis.d.ts +2 -2
  87. package/dist/runtime/api/models/SchemaAnalysis.js +35 -0
  88. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +2 -2
  89. package/dist/runtime/api/models/SchemaAnalysisField.js +40 -0
  90. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
  91. package/dist/runtime/api/models/{SchemaAnalysisFieldType.mjs → SchemaAnalysisFieldType.js} +10 -14
  92. package/dist/runtime/api/models/SettingsResponse.d.ts +2 -2
  93. package/dist/runtime/api/models/SettingsResponse.js +29 -0
  94. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +2 -2
  95. package/dist/runtime/api/models/UpdateFileInformationRequest.js +24 -0
  96. package/dist/runtime/api/models/UpdateRequest.d.ts +3 -3
  97. package/dist/runtime/api/models/{UpdateRequest.mjs → UpdateRequest.js} +8 -12
  98. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
  99. package/dist/runtime/api/models/UpdateResponse.js +31 -0
  100. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +2 -2
  101. package/dist/runtime/api/models/UpdateRoleRequest.js +29 -0
  102. package/dist/runtime/api/models/UserInformation.d.ts +1 -1
  103. package/dist/runtime/api/models/UserInformation.js +30 -0
  104. package/dist/runtime/api/models/UserProfile.d.ts +2 -2
  105. package/dist/runtime/api/models/UserProfile.js +36 -0
  106. package/dist/runtime/api/models/Version.d.ts +1 -1
  107. package/dist/runtime/api/models/Version.js +29 -0
  108. package/dist/runtime/api/models/index.d.ts +39 -39
  109. package/dist/runtime/api/models/index.js +39 -0
  110. package/dist/runtime/api/runtime.d.ts +2 -3
  111. package/dist/runtime/api/{runtime.mjs → runtime.js} +0 -4
  112. package/dist/runtime/composables/mongocampApi.d.ts +1 -1
  113. package/dist/runtime/composables/{mongocampApi.mjs → mongocampApi.js} +3 -3
  114. package/dist/runtime/composables/mongocampAuth.d.ts +1 -1
  115. package/dist/runtime/composables/{mongocampAuth.mjs → mongocampAuth.js} +3 -3
  116. package/dist/runtime/composables/mongocampSearch.d.ts +1 -1
  117. package/dist/runtime/composables/{mongocampSearch.mjs → mongocampSearch.js} +1 -1
  118. package/dist/runtime/composables/mongocampStorage.d.ts +5 -0
  119. package/dist/runtime/composables/mongocampUser.d.ts +1 -1
  120. package/dist/types.d.mts +1 -16
  121. package/dist/types.d.ts +1 -16
  122. package/package.json +18 -17
  123. package/dist/runtime/api/apis/index.mjs +0 -11
  124. package/dist/runtime/api/index.mjs +0 -3
  125. package/dist/runtime/api/models/BucketInformation.mjs +0 -36
  126. package/dist/runtime/api/models/CollectionStatus.mjs +0 -63
  127. package/dist/runtime/api/models/DatabaseInfo.mjs +0 -39
  128. package/dist/runtime/api/models/FileInformation.mjs +0 -42
  129. package/dist/runtime/api/models/Grant.mjs +0 -39
  130. package/dist/runtime/api/models/IndexCreateRequest.mjs +0 -34
  131. package/dist/runtime/api/models/IndexOptionsRequest.mjs +0 -41
  132. package/dist/runtime/api/models/InsertResponse.mjs +0 -30
  133. package/dist/runtime/api/models/JobConfig.mjs +0 -42
  134. package/dist/runtime/api/models/JobInformation.mjs +0 -49
  135. package/dist/runtime/api/models/JsonSchema.mjs +0 -38
  136. package/dist/runtime/api/models/JsonSchemaDefinition.mjs +0 -39
  137. package/dist/runtime/api/models/MongoAggregateRequest.mjs +0 -34
  138. package/dist/runtime/api/models/MongoCampConfiguration.mjs +0 -39
  139. package/dist/runtime/api/models/MongoIndex.mjs +0 -60
  140. package/dist/runtime/api/models/Role.mjs +0 -37
  141. package/dist/runtime/api/models/SchemaAnalysis.mjs +0 -40
  142. package/dist/runtime/api/models/SchemaAnalysisField.mjs +0 -45
  143. package/dist/runtime/api/models/SettingsResponse.mjs +0 -34
  144. package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +0 -29
  145. package/dist/runtime/api/models/UpdateResponse.mjs +0 -36
  146. package/dist/runtime/api/models/UpdateRoleRequest.mjs +0 -34
  147. package/dist/runtime/api/models/UserInformation.mjs +0 -35
  148. package/dist/runtime/api/models/UserProfile.mjs +0 -41
  149. package/dist/runtime/api/models/Version.mjs +0 -33
  150. package/dist/runtime/api/models/index.mjs +0 -39
  151. /package/dist/runtime/composables/{mongocampStorage.mjs → mongocampStorage.js} +0 -0
  152. /package/dist/runtime/composables/{mongocampUrl.mjs → mongocampUrl.js} +0 -0
  153. /package/dist/runtime/composables/{mongocampUser.mjs → mongocampUser.js} +0 -0
@@ -0,0 +1,55 @@
1
+ export function instanceOfMongoIndex(value) {
2
+ if (!("name" in value) || value["name"] === void 0) return false;
3
+ if (!("unique" in value) || value["unique"] === void 0) return false;
4
+ if (!("version" in value) || value["version"] === void 0) return false;
5
+ if (!("namespace" in value) || value["namespace"] === void 0) return false;
6
+ if (!("keys" in value) || value["keys"] === void 0) return false;
7
+ if (!("weights" in value) || value["weights"] === void 0) return false;
8
+ if (!("expire" in value) || value["expire"] === void 0) return false;
9
+ if (!("expireAfterSeconds" in value) || value["expireAfterSeconds"] === void 0) return false;
10
+ if (!("text" in value) || value["text"] === void 0) return false;
11
+ if (!("fetched" in value) || value["fetched"] === void 0) return false;
12
+ if (!("map" in value) || value["map"] === void 0) return false;
13
+ return true;
14
+ }
15
+ export function MongoIndexFromJSON(json) {
16
+ return MongoIndexFromJSONTyped(json, false);
17
+ }
18
+ export function MongoIndexFromJSONTyped(json, ignoreDiscriminator) {
19
+ if (json == null) {
20
+ return json;
21
+ }
22
+ return {
23
+ "name": json["name"],
24
+ "fields": json["fields"] == null ? void 0 : json["fields"],
25
+ "unique": json["unique"],
26
+ "version": json["version"],
27
+ "namespace": json["namespace"],
28
+ "keys": json["keys"],
29
+ "weights": json["weights"],
30
+ "expire": json["expire"],
31
+ "expireAfterSeconds": json["expireAfterSeconds"],
32
+ "text": json["text"],
33
+ "fetched": new Date(json["fetched"]),
34
+ "map": json["map"]
35
+ };
36
+ }
37
+ export function MongoIndexToJSON(value) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ "name": value["name"],
43
+ "fields": value["fields"],
44
+ "unique": value["unique"],
45
+ "version": value["version"],
46
+ "namespace": value["namespace"],
47
+ "keys": value["keys"],
48
+ "weights": value["weights"],
49
+ "expire": value["expire"],
50
+ "expireAfterSeconds": value["expireAfterSeconds"],
51
+ "text": value["text"],
52
+ "fetched": value["fetched"].toISOString(),
53
+ "map": value["map"]
54
+ };
55
+ }
@@ -25,7 +25,7 @@ export interface PasswordUpdateRequest {
25
25
  /**
26
26
  * Check if a given object implements the PasswordUpdateRequest interface.
27
27
  */
28
- export declare function instanceOfPasswordUpdateRequest(value: object): boolean;
28
+ export declare function instanceOfPasswordUpdateRequest(value: object): value is PasswordUpdateRequest;
29
29
  export declare function PasswordUpdateRequestFromJSON(json: any): PasswordUpdateRequest;
30
30
  export declare function PasswordUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordUpdateRequest;
31
31
  export declare function PasswordUpdateRequestToJSON(value?: PasswordUpdateRequest | null): any;
@@ -1,13 +1,12 @@
1
1
  export function instanceOfPasswordUpdateRequest(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "password" in value;
4
- return isInstance;
2
+ if (!("password" in value) || value["password"] === void 0) return false;
3
+ return true;
5
4
  }
6
5
  export function PasswordUpdateRequestFromJSON(json) {
7
6
  return PasswordUpdateRequestFromJSONTyped(json, false);
8
7
  }
9
8
  export function PasswordUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
10
- if (json === void 0 || json === null) {
9
+ if (json == null) {
11
10
  return json;
12
11
  }
13
12
  return {
@@ -15,13 +14,10 @@ export function PasswordUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
15
14
  };
16
15
  }
17
16
  export function PasswordUpdateRequestToJSON(value) {
18
- if (value === void 0) {
19
- return void 0;
20
- }
21
- if (value === null) {
22
- return null;
17
+ if (value == null) {
18
+ return value;
23
19
  }
24
20
  return {
25
- "password": value.password
21
+ "password": value["password"]
26
22
  };
27
23
  }
@@ -31,7 +31,7 @@ export interface PipelineStage {
31
31
  /**
32
32
  * Check if a given object implements the PipelineStage interface.
33
33
  */
34
- export declare function instanceOfPipelineStage(value: object): boolean;
34
+ export declare function instanceOfPipelineStage(value: object): value is PipelineStage;
35
35
  export declare function PipelineStageFromJSON(json: any): PipelineStage;
36
36
  export declare function PipelineStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineStage;
37
37
  export declare function PipelineStageToJSON(value?: PipelineStage | null): any;
@@ -1,14 +1,13 @@
1
1
  export function instanceOfPipelineStage(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "stage" in value;
4
- isInstance = isInstance && "value" in value;
5
- return isInstance;
2
+ if (!("stage" in value) || value["stage"] === void 0) return false;
3
+ if (!("value" in value) || value["value"] === void 0) return false;
4
+ return true;
6
5
  }
7
6
  export function PipelineStageFromJSON(json) {
8
7
  return PipelineStageFromJSONTyped(json, false);
9
8
  }
10
9
  export function PipelineStageFromJSONTyped(json, ignoreDiscriminator) {
11
- if (json === void 0 || json === null) {
10
+ if (json == null) {
12
11
  return json;
13
12
  }
14
13
  return {
@@ -17,14 +16,11 @@ export function PipelineStageFromJSONTyped(json, ignoreDiscriminator) {
17
16
  };
18
17
  }
19
18
  export function PipelineStageToJSON(value) {
20
- if (value === void 0) {
21
- return void 0;
22
- }
23
- if (value === null) {
24
- return null;
19
+ if (value == null) {
20
+ return value;
25
21
  }
26
22
  return {
27
- "stage": value.stage,
28
- "value": value.value
23
+ "stage": value["stage"],
24
+ "value": value["value"]
29
25
  };
30
26
  }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Grant } from './Grant';
12
+ import type { Grant } from './Grant.js';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -38,7 +38,7 @@ export interface Role {
38
38
  /**
39
39
  * Check if a given object implements the Role interface.
40
40
  */
41
- export declare function instanceOfRole(value: object): boolean;
41
+ export declare function instanceOfRole(value: object): value is Role;
42
42
  export declare function RoleFromJSON(json: any): Role;
43
43
  export declare function RoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Role;
44
44
  export declare function RoleToJSON(value?: Role | null): any;
@@ -0,0 +1,32 @@
1
+ import {
2
+ GrantFromJSON,
3
+ GrantToJSON
4
+ } from "./Grant.js";
5
+ export function instanceOfRole(value) {
6
+ if (!("name" in value) || value["name"] === void 0) return false;
7
+ if (!("isAdmin" in value) || value["isAdmin"] === void 0) return false;
8
+ return true;
9
+ }
10
+ export function RoleFromJSON(json) {
11
+ return RoleFromJSONTyped(json, false);
12
+ }
13
+ export function RoleFromJSONTyped(json, ignoreDiscriminator) {
14
+ if (json == null) {
15
+ return json;
16
+ }
17
+ return {
18
+ "name": json["name"],
19
+ "isAdmin": json["isAdmin"],
20
+ "collectionGrants": json["collectionGrants"] == null ? void 0 : json["collectionGrants"].map(GrantFromJSON)
21
+ };
22
+ }
23
+ export function RoleToJSON(value) {
24
+ if (value == null) {
25
+ return value;
26
+ }
27
+ return {
28
+ "name": value["name"],
29
+ "isAdmin": value["isAdmin"],
30
+ "collectionGrants": value["collectionGrants"] == null ? void 0 : value["collectionGrants"].map(GrantToJSON)
31
+ };
32
+ }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { SchemaAnalysisField } from './SchemaAnalysisField';
12
+ import type { SchemaAnalysisField } from './SchemaAnalysisField.js';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -44,7 +44,7 @@ export interface SchemaAnalysis {
44
44
  /**
45
45
  * Check if a given object implements the SchemaAnalysis interface.
46
46
  */
47
- export declare function instanceOfSchemaAnalysis(value: object): boolean;
47
+ export declare function instanceOfSchemaAnalysis(value: object): value is SchemaAnalysis;
48
48
  export declare function SchemaAnalysisFromJSON(json: any): SchemaAnalysis;
49
49
  export declare function SchemaAnalysisFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaAnalysis;
50
50
  export declare function SchemaAnalysisToJSON(value?: SchemaAnalysis | null): any;
@@ -0,0 +1,35 @@
1
+ import {
2
+ SchemaAnalysisFieldFromJSON,
3
+ SchemaAnalysisFieldToJSON
4
+ } from "./SchemaAnalysisField.js";
5
+ export function instanceOfSchemaAnalysis(value) {
6
+ if (!("count" in value) || value["count"] === void 0) return false;
7
+ if (!("sample" in value) || value["sample"] === void 0) return false;
8
+ if (!("percentageOfAnalysed" in value) || value["percentageOfAnalysed"] === void 0) return false;
9
+ return true;
10
+ }
11
+ export function SchemaAnalysisFromJSON(json) {
12
+ return SchemaAnalysisFromJSONTyped(json, false);
13
+ }
14
+ export function SchemaAnalysisFromJSONTyped(json, ignoreDiscriminator) {
15
+ if (json == null) {
16
+ return json;
17
+ }
18
+ return {
19
+ "count": json["count"],
20
+ "sample": json["sample"],
21
+ "percentageOfAnalysed": json["percentageOfAnalysed"],
22
+ "fields": json["fields"] == null ? void 0 : json["fields"].map(SchemaAnalysisFieldFromJSON)
23
+ };
24
+ }
25
+ export function SchemaAnalysisToJSON(value) {
26
+ if (value == null) {
27
+ return value;
28
+ }
29
+ return {
30
+ "count": value["count"],
31
+ "sample": value["sample"],
32
+ "percentageOfAnalysed": value["percentageOfAnalysed"],
33
+ "fields": value["fields"] == null ? void 0 : value["fields"].map(SchemaAnalysisFieldToJSON)
34
+ };
35
+ }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { SchemaAnalysisFieldType } from './SchemaAnalysisFieldType';
12
+ import type { SchemaAnalysisFieldType } from './SchemaAnalysisFieldType.js';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -56,7 +56,7 @@ export interface SchemaAnalysisField {
56
56
  /**
57
57
  * Check if a given object implements the SchemaAnalysisField interface.
58
58
  */
59
- export declare function instanceOfSchemaAnalysisField(value: object): boolean;
59
+ export declare function instanceOfSchemaAnalysisField(value: object): value is SchemaAnalysisField;
60
60
  export declare function SchemaAnalysisFieldFromJSON(json: any): SchemaAnalysisField;
61
61
  export declare function SchemaAnalysisFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaAnalysisField;
62
62
  export declare function SchemaAnalysisFieldToJSON(value?: SchemaAnalysisField | null): any;
@@ -0,0 +1,40 @@
1
+ import {
2
+ SchemaAnalysisFieldTypeFromJSON,
3
+ SchemaAnalysisFieldTypeToJSON
4
+ } from "./SchemaAnalysisFieldType.js";
5
+ export function instanceOfSchemaAnalysisField(value) {
6
+ if (!("name" in value) || value["name"] === void 0) return false;
7
+ if (!("fullName" in value) || value["fullName"] === void 0) return false;
8
+ if (!("count" in value) || value["count"] === void 0) return false;
9
+ if (!("percentageOfParent" in value) || value["percentageOfParent"] === void 0) return false;
10
+ return true;
11
+ }
12
+ export function SchemaAnalysisFieldFromJSON(json) {
13
+ return SchemaAnalysisFieldFromJSONTyped(json, false);
14
+ }
15
+ export function SchemaAnalysisFieldFromJSONTyped(json, ignoreDiscriminator) {
16
+ if (json == null) {
17
+ return json;
18
+ }
19
+ return {
20
+ "name": json["name"],
21
+ "fullName": json["fullName"],
22
+ "fieldTypes": json["fieldTypes"] == null ? void 0 : json["fieldTypes"].map(SchemaAnalysisFieldTypeFromJSON),
23
+ "count": json["count"],
24
+ "percentageOfParent": json["percentageOfParent"],
25
+ "subFields": json["subFields"] == null ? void 0 : json["subFields"].map(SchemaAnalysisFieldFromJSON)
26
+ };
27
+ }
28
+ export function SchemaAnalysisFieldToJSON(value) {
29
+ if (value == null) {
30
+ return value;
31
+ }
32
+ return {
33
+ "name": value["name"],
34
+ "fullName": value["fullName"],
35
+ "fieldTypes": value["fieldTypes"] == null ? void 0 : value["fieldTypes"].map(SchemaAnalysisFieldTypeToJSON),
36
+ "count": value["count"],
37
+ "percentageOfParent": value["percentageOfParent"],
38
+ "subFields": value["subFields"] == null ? void 0 : value["subFields"].map(SchemaAnalysisFieldToJSON)
39
+ };
40
+ }
@@ -37,7 +37,7 @@ export interface SchemaAnalysisFieldType {
37
37
  /**
38
38
  * Check if a given object implements the SchemaAnalysisFieldType interface.
39
39
  */
40
- export declare function instanceOfSchemaAnalysisFieldType(value: object): boolean;
40
+ export declare function instanceOfSchemaAnalysisFieldType(value: object): value is SchemaAnalysisFieldType;
41
41
  export declare function SchemaAnalysisFieldTypeFromJSON(json: any): SchemaAnalysisFieldType;
42
42
  export declare function SchemaAnalysisFieldTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaAnalysisFieldType;
43
43
  export declare function SchemaAnalysisFieldTypeToJSON(value?: SchemaAnalysisFieldType | null): any;
@@ -1,15 +1,14 @@
1
1
  export function instanceOfSchemaAnalysisFieldType(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "fieldType" in value;
4
- isInstance = isInstance && "count" in value;
5
- isInstance = isInstance && "percentageOfParent" in value;
6
- return isInstance;
2
+ if (!("fieldType" in value) || value["fieldType"] === void 0) return false;
3
+ if (!("count" in value) || value["count"] === void 0) return false;
4
+ if (!("percentageOfParent" in value) || value["percentageOfParent"] === void 0) return false;
5
+ return true;
7
6
  }
8
7
  export function SchemaAnalysisFieldTypeFromJSON(json) {
9
8
  return SchemaAnalysisFieldTypeFromJSONTyped(json, false);
10
9
  }
11
10
  export function SchemaAnalysisFieldTypeFromJSONTyped(json, ignoreDiscriminator) {
12
- if (json === void 0 || json === null) {
11
+ if (json == null) {
13
12
  return json;
14
13
  }
15
14
  return {
@@ -19,15 +18,12 @@ export function SchemaAnalysisFieldTypeFromJSONTyped(json, ignoreDiscriminator)
19
18
  };
20
19
  }
21
20
  export function SchemaAnalysisFieldTypeToJSON(value) {
22
- if (value === void 0) {
23
- return void 0;
24
- }
25
- if (value === null) {
26
- return null;
21
+ if (value == null) {
22
+ return value;
27
23
  }
28
24
  return {
29
- "fieldType": value.fieldType,
30
- "count": value.count,
31
- "percentageOfParent": value.percentageOfParent
25
+ "fieldType": value["fieldType"],
26
+ "count": value["count"],
27
+ "percentageOfParent": value["percentageOfParent"]
32
28
  };
33
29
  }
@@ -40,12 +40,12 @@ export interface SettingsResponse {
40
40
  */
41
41
  configurations: {
42
42
  [key: string]: string;
43
- } | null;
43
+ };
44
44
  }
45
45
  /**
46
46
  * Check if a given object implements the SettingsResponse interface.
47
47
  */
48
- export declare function instanceOfSettingsResponse(value: object): boolean;
48
+ export declare function instanceOfSettingsResponse(value: object): value is SettingsResponse;
49
49
  export declare function SettingsResponseFromJSON(json: any): SettingsResponse;
50
50
  export declare function SettingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SettingsResponse;
51
51
  export declare function SettingsResponseToJSON(value?: SettingsResponse | null): any;
@@ -0,0 +1,29 @@
1
+ export function instanceOfSettingsResponse(value) {
2
+ if (!("configurations" in value) || value["configurations"] === void 0) return false;
3
+ return true;
4
+ }
5
+ export function SettingsResponseFromJSON(json) {
6
+ return SettingsResponseFromJSONTyped(json, false);
7
+ }
8
+ export function SettingsResponseFromJSONTyped(json, ignoreDiscriminator) {
9
+ if (json == null) {
10
+ return json;
11
+ }
12
+ return {
13
+ "routesPlugins": json["routesPlugins"] == null ? void 0 : json["routesPlugins"],
14
+ "filePlugins": json["filePlugins"] == null ? void 0 : json["filePlugins"],
15
+ "ignoredPlugins": json["ignoredPlugins"] == null ? void 0 : json["ignoredPlugins"],
16
+ "configurations": json["configurations"]
17
+ };
18
+ }
19
+ export function SettingsResponseToJSON(value) {
20
+ if (value == null) {
21
+ return value;
22
+ }
23
+ return {
24
+ "routesPlugins": value["routesPlugins"],
25
+ "filePlugins": value["filePlugins"],
26
+ "ignoredPlugins": value["ignoredPlugins"],
27
+ "configurations": value["configurations"]
28
+ };
29
+ }
@@ -28,12 +28,12 @@ export interface UpdateFileInformationRequest {
28
28
  */
29
29
  metadata?: {
30
30
  [key: string]: string;
31
- } | null;
31
+ };
32
32
  }
33
33
  /**
34
34
  * Check if a given object implements the UpdateFileInformationRequest interface.
35
35
  */
36
- export declare function instanceOfUpdateFileInformationRequest(value: object): boolean;
36
+ export declare function instanceOfUpdateFileInformationRequest(value: object): value is UpdateFileInformationRequest;
37
37
  export declare function UpdateFileInformationRequestFromJSON(json: any): UpdateFileInformationRequest;
38
38
  export declare function UpdateFileInformationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFileInformationRequest;
39
39
  export declare function UpdateFileInformationRequestToJSON(value?: UpdateFileInformationRequest | null): any;
@@ -0,0 +1,24 @@
1
+ export function instanceOfUpdateFileInformationRequest(value) {
2
+ return true;
3
+ }
4
+ export function UpdateFileInformationRequestFromJSON(json) {
5
+ return UpdateFileInformationRequestFromJSONTyped(json, false);
6
+ }
7
+ export function UpdateFileInformationRequestFromJSONTyped(json, ignoreDiscriminator) {
8
+ if (json == null) {
9
+ return json;
10
+ }
11
+ return {
12
+ "filename": json["filename"] == null ? void 0 : json["filename"],
13
+ "metadata": json["metadata"] == null ? void 0 : json["metadata"]
14
+ };
15
+ }
16
+ export function UpdateFileInformationRequestToJSON(value) {
17
+ if (value == null) {
18
+ return value;
19
+ }
20
+ return {
21
+ "filename": value["filename"],
22
+ "metadata": value["metadata"]
23
+ };
24
+ }
@@ -22,7 +22,7 @@ export interface UpdateRequest {
22
22
  */
23
23
  document: {
24
24
  [key: string]: string;
25
- } | null;
25
+ };
26
26
  /**
27
27
  *
28
28
  * @type {{ [key: string]: string; }}
@@ -30,12 +30,12 @@ export interface UpdateRequest {
30
30
  */
31
31
  filter: {
32
32
  [key: string]: string;
33
- } | null;
33
+ };
34
34
  }
35
35
  /**
36
36
  * Check if a given object implements the UpdateRequest interface.
37
37
  */
38
- export declare function instanceOfUpdateRequest(value: object): boolean;
38
+ export declare function instanceOfUpdateRequest(value: object): value is UpdateRequest;
39
39
  export declare function UpdateRequestFromJSON(json: any): UpdateRequest;
40
40
  export declare function UpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRequest;
41
41
  export declare function UpdateRequestToJSON(value?: UpdateRequest | null): any;
@@ -1,14 +1,13 @@
1
1
  export function instanceOfUpdateRequest(value) {
2
- let isInstance = true;
3
- isInstance = isInstance && "document" in value;
4
- isInstance = isInstance && "filter" in value;
5
- return isInstance;
2
+ if (!("document" in value) || value["document"] === void 0) return false;
3
+ if (!("filter" in value) || value["filter"] === void 0) return false;
4
+ return true;
6
5
  }
7
6
  export function UpdateRequestFromJSON(json) {
8
7
  return UpdateRequestFromJSONTyped(json, false);
9
8
  }
10
9
  export function UpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
11
- if (json === void 0 || json === null) {
10
+ if (json == null) {
12
11
  return json;
13
12
  }
14
13
  return {
@@ -17,14 +16,11 @@ export function UpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
17
16
  };
18
17
  }
19
18
  export function UpdateRequestToJSON(value) {
20
- if (value === void 0) {
21
- return void 0;
22
- }
23
- if (value === null) {
24
- return null;
19
+ if (value == null) {
20
+ return value;
25
21
  }
26
22
  return {
27
- "document": value.document,
28
- "filter": value.filter
23
+ "document": value["document"],
24
+ "filter": value["filter"]
29
25
  };
30
26
  }
@@ -43,7 +43,7 @@ export interface UpdateResponse {
43
43
  /**
44
44
  * Check if a given object implements the UpdateResponse interface.
45
45
  */
46
- export declare function instanceOfUpdateResponse(value: object): boolean;
46
+ export declare function instanceOfUpdateResponse(value: object): value is UpdateResponse;
47
47
  export declare function UpdateResponseFromJSON(json: any): UpdateResponse;
48
48
  export declare function UpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateResponse;
49
49
  export declare function UpdateResponseToJSON(value?: UpdateResponse | null): any;
@@ -0,0 +1,31 @@
1
+ export function instanceOfUpdateResponse(value) {
2
+ if (!("wasAcknowledged" in value) || value["wasAcknowledged"] === void 0) return false;
3
+ if (!("modifiedCount" in value) || value["modifiedCount"] === void 0) return false;
4
+ if (!("matchedCount" in value) || value["matchedCount"] === void 0) return false;
5
+ return true;
6
+ }
7
+ export function UpdateResponseFromJSON(json) {
8
+ return UpdateResponseFromJSONTyped(json, false);
9
+ }
10
+ export function UpdateResponseFromJSONTyped(json, ignoreDiscriminator) {
11
+ if (json == null) {
12
+ return json;
13
+ }
14
+ return {
15
+ "wasAcknowledged": json["wasAcknowledged"],
16
+ "upsertedIds": json["upsertedIds"] == null ? void 0 : json["upsertedIds"],
17
+ "modifiedCount": json["modifiedCount"],
18
+ "matchedCount": json["matchedCount"]
19
+ };
20
+ }
21
+ export function UpdateResponseToJSON(value) {
22
+ if (value == null) {
23
+ return value;
24
+ }
25
+ return {
26
+ "wasAcknowledged": value["wasAcknowledged"],
27
+ "upsertedIds": value["upsertedIds"],
28
+ "modifiedCount": value["modifiedCount"],
29
+ "matchedCount": value["matchedCount"]
30
+ };
31
+ }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Grant } from './Grant';
12
+ import type { Grant } from './Grant.js';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -32,7 +32,7 @@ export interface UpdateRoleRequest {
32
32
  /**
33
33
  * Check if a given object implements the UpdateRoleRequest interface.
34
34
  */
35
- export declare function instanceOfUpdateRoleRequest(value: object): boolean;
35
+ export declare function instanceOfUpdateRoleRequest(value: object): value is UpdateRoleRequest;
36
36
  export declare function UpdateRoleRequestFromJSON(json: any): UpdateRoleRequest;
37
37
  export declare function UpdateRoleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRoleRequest;
38
38
  export declare function UpdateRoleRequestToJSON(value?: UpdateRoleRequest | null): any;
@@ -0,0 +1,29 @@
1
+ import {
2
+ GrantFromJSON,
3
+ GrantToJSON
4
+ } from "./Grant.js";
5
+ export function instanceOfUpdateRoleRequest(value) {
6
+ if (!("isAdmin" in value) || value["isAdmin"] === void 0) return false;
7
+ return true;
8
+ }
9
+ export function UpdateRoleRequestFromJSON(json) {
10
+ return UpdateRoleRequestFromJSONTyped(json, false);
11
+ }
12
+ export function UpdateRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
13
+ if (json == null) {
14
+ return json;
15
+ }
16
+ return {
17
+ "isAdmin": json["isAdmin"],
18
+ "collectionGrants": json["collectionGrants"] == null ? void 0 : json["collectionGrants"].map(GrantFromJSON)
19
+ };
20
+ }
21
+ export function UpdateRoleRequestToJSON(value) {
22
+ if (value == null) {
23
+ return value;
24
+ }
25
+ return {
26
+ "isAdmin": value["isAdmin"],
27
+ "collectionGrants": value["collectionGrants"] == null ? void 0 : value["collectionGrants"].map(GrantToJSON)
28
+ };
29
+ }
@@ -43,7 +43,7 @@ export interface UserInformation {
43
43
  /**
44
44
  * Check if a given object implements the UserInformation interface.
45
45
  */
46
- export declare function instanceOfUserInformation(value: object): boolean;
46
+ export declare function instanceOfUserInformation(value: object): value is UserInformation;
47
47
  export declare function UserInformationFromJSON(json: any): UserInformation;
48
48
  export declare function UserInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserInformation;
49
49
  export declare function UserInformationToJSON(value?: UserInformation | null): any;
@@ -0,0 +1,30 @@
1
+ export function instanceOfUserInformation(value) {
2
+ if (!("userId" in value) || value["userId"] === void 0) return false;
3
+ if (!("password" in value) || value["password"] === void 0) return false;
4
+ return true;
5
+ }
6
+ export function UserInformationFromJSON(json) {
7
+ return UserInformationFromJSONTyped(json, false);
8
+ }
9
+ export function UserInformationFromJSONTyped(json, ignoreDiscriminator) {
10
+ if (json == null) {
11
+ return json;
12
+ }
13
+ return {
14
+ "userId": json["userId"],
15
+ "password": json["password"],
16
+ "apiKey": json["apiKey"] == null ? void 0 : json["apiKey"],
17
+ "roles": json["roles"] == null ? void 0 : json["roles"]
18
+ };
19
+ }
20
+ export function UserInformationToJSON(value) {
21
+ if (value == null) {
22
+ return value;
23
+ }
24
+ return {
25
+ "userId": value["userId"],
26
+ "password": value["password"],
27
+ "apiKey": value["apiKey"],
28
+ "roles": value["roles"]
29
+ };
30
+ }