@sfxcode/nuxt-mongocamp-server 1.7.0 → 1.8.0

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 (103) hide show
  1. package/README.md +8 -0
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +1 -1
  4. package/dist/runtime/api/.openapi-generator/FILES +18 -0
  5. package/dist/runtime/api/apis/AdminApi.d.ts +1 -1
  6. package/dist/runtime/api/apis/ApplicationApi.d.ts +1 -1
  7. package/dist/runtime/api/apis/AuthApi.d.ts +1 -1
  8. package/dist/runtime/api/apis/BucketApi.d.ts +1 -1
  9. package/dist/runtime/api/apis/CollectionApi.d.ts +58 -2
  10. package/dist/runtime/api/apis/CollectionApi.js +183 -0
  11. package/dist/runtime/api/apis/DatabaseApi.d.ts +1 -1
  12. package/dist/runtime/api/apis/DocumentApi.d.ts +47 -2
  13. package/dist/runtime/api/apis/DocumentApi.js +145 -0
  14. package/dist/runtime/api/apis/FileApi.d.ts +1 -1
  15. package/dist/runtime/api/apis/IndexApi.d.ts +19 -2
  16. package/dist/runtime/api/apis/IndexApi.js +52 -0
  17. package/dist/runtime/api/apis/JobsApi.d.ts +1 -1
  18. package/dist/runtime/api/apis/SystemApi.d.ts +1 -1
  19. package/dist/runtime/api/docs/CollectionApi.md +253 -1
  20. package/dist/runtime/api/docs/CopyRequest.md +40 -0
  21. package/dist/runtime/api/docs/CopyResponse.md +38 -0
  22. package/dist/runtime/api/docs/DocumentApi.md +196 -5
  23. package/dist/runtime/api/docs/FieldInfo.md +36 -0
  24. package/dist/runtime/api/docs/FieldTypeCount.md +36 -0
  25. package/dist/runtime/api/docs/ImportResponse.md +42 -0
  26. package/dist/runtime/api/docs/IndexApi.md +78 -0
  27. package/dist/runtime/api/docs/IndexCreateRequest.md +2 -0
  28. package/dist/runtime/api/docs/IndexInfo.md +54 -0
  29. package/dist/runtime/api/docs/IndexKey.md +36 -0
  30. package/dist/runtime/api/docs/IndexOptionsRequest.md +10 -0
  31. package/dist/runtime/api/docs/RenameRequest.md +36 -0
  32. package/dist/runtime/api/docs/RenameResponse.md +34 -0
  33. package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
  34. package/dist/runtime/api/models/ClusterInformation.d.ts +1 -1
  35. package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -1
  36. package/dist/runtime/api/models/CollectionPermission.d.ts +1 -1
  37. package/dist/runtime/api/models/CollectionStatus.d.ts +1 -1
  38. package/dist/runtime/api/models/CollectionSummary.d.ts +1 -1
  39. package/dist/runtime/api/models/CopyRequest.d.ts +50 -0
  40. package/dist/runtime/api/models/CopyRequest.js +32 -0
  41. package/dist/runtime/api/models/CopyResponse.d.ts +44 -0
  42. package/dist/runtime/api/models/CopyResponse.js +32 -0
  43. package/dist/runtime/api/models/CountResponse.d.ts +1 -1
  44. package/dist/runtime/api/models/DatabaseInfo.d.ts +1 -1
  45. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
  46. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
  47. package/dist/runtime/api/models/FieldInfo.d.ts +39 -0
  48. package/dist/runtime/api/models/FieldInfo.js +32 -0
  49. package/dist/runtime/api/models/FieldTypeCount.d.ts +38 -0
  50. package/dist/runtime/api/models/FieldTypeCount.js +29 -0
  51. package/dist/runtime/api/models/FileInformation.d.ts +1 -1
  52. package/dist/runtime/api/models/Grant.d.ts +1 -1
  53. package/dist/runtime/api/models/ImportResponse.d.ts +57 -0
  54. package/dist/runtime/api/models/ImportResponse.js +41 -0
  55. package/dist/runtime/api/models/IndexCreateRequest.d.ts +9 -2
  56. package/dist/runtime/api/models/IndexCreateRequest.js +9 -4
  57. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
  58. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
  59. package/dist/runtime/api/models/IndexInfo.d.ts +99 -0
  60. package/dist/runtime/api/models/IndexInfo.js +54 -0
  61. package/dist/runtime/api/models/IndexKey.d.ts +38 -0
  62. package/dist/runtime/api/models/IndexKey.js +29 -0
  63. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +37 -1
  64. package/dist/runtime/api/models/IndexOptionsRequest.js +12 -2
  65. package/dist/runtime/api/models/IndexUsage.d.ts +1 -1
  66. package/dist/runtime/api/models/InsertError.d.ts +1 -1
  67. package/dist/runtime/api/models/InsertResponse.d.ts +1 -1
  68. package/dist/runtime/api/models/JobConfig.d.ts +1 -1
  69. package/dist/runtime/api/models/JobInformation.d.ts +1 -1
  70. package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
  71. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +1 -1
  72. package/dist/runtime/api/models/JsonValueAny.d.ts +1 -1
  73. package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
  74. package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
  75. package/dist/runtime/api/models/Login.d.ts +1 -1
  76. package/dist/runtime/api/models/LoginResult.d.ts +1 -1
  77. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -1
  78. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -1
  79. package/dist/runtime/api/models/MongoFindRequest.d.ts +1 -1
  80. package/dist/runtime/api/models/MongoIndex.d.ts +1 -1
  81. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
  82. package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
  83. package/dist/runtime/api/models/RenameRequest.d.ts +38 -0
  84. package/dist/runtime/api/models/RenameRequest.js +28 -0
  85. package/dist/runtime/api/models/RenameResponse.d.ts +32 -0
  86. package/dist/runtime/api/models/RenameResponse.js +26 -0
  87. package/dist/runtime/api/models/Role.d.ts +1 -1
  88. package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -1
  89. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -1
  90. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
  91. package/dist/runtime/api/models/SearchRequest.d.ts +1 -1
  92. package/dist/runtime/api/models/SettingsResponse.d.ts +1 -1
  93. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +1 -1
  94. package/dist/runtime/api/models/UpdateRequest.d.ts +1 -1
  95. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
  96. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -1
  97. package/dist/runtime/api/models/UserInformation.d.ts +1 -1
  98. package/dist/runtime/api/models/UserProfile.d.ts +1 -1
  99. package/dist/runtime/api/models/Version.d.ts +1 -1
  100. package/dist/runtime/api/models/index.d.ts +9 -0
  101. package/dist/runtime/api/models/index.js +9 -0
  102. package/dist/runtime/api/runtime.d.ts +1 -1
  103. package/package.json +2 -2
@@ -0,0 +1,36 @@
1
+
2
+ # IndexKey
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `field` | string
10
+ `direction` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { IndexKey } from ''
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "field": null,
20
+ "direction": null,
21
+ } satisfies IndexKey
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as IndexKey
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -14,6 +14,11 @@ Name | Type
14
14
  `unique` | boolean
15
15
  `max` | number
16
16
  `min` | number
17
+ `sparse` | boolean
18
+ `hidden` | boolean
19
+ `partialFilterExpression` | { [key: string]: any; }
20
+ `weights` | { [key: string]: number; }
21
+ `collation` | { [key: string]: any; }
17
22
 
18
23
  ## Example
19
24
 
@@ -30,6 +35,11 @@ const example = {
30
35
  "unique": null,
31
36
  "max": null,
32
37
  "min": null,
38
+ "sparse": null,
39
+ "hidden": null,
40
+ "partialFilterExpression": null,
41
+ "weights": null,
42
+ "collation": null,
33
43
  } satisfies IndexOptionsRequest
34
44
 
35
45
  console.log(example)
@@ -0,0 +1,36 @@
1
+
2
+ # RenameRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `target` | string
10
+ `dropTarget` | boolean
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { RenameRequest } from ''
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "target": null,
20
+ "dropTarget": null,
21
+ } satisfies RenameRequest
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as RenameRequest
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,34 @@
1
+
2
+ # RenameResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { RenameResponse } from ''
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "name": null,
19
+ } satisfies RenameResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as RenameResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.7.1
5
+ * The version of the OpenAPI document: 1.8.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.7.1
5
+ * The version of the OpenAPI document: 1.8.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.7.1
5
+ * The version of the OpenAPI document: 1.8.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.7.1
5
+ * The version of the OpenAPI document: 1.8.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.7.1
5
+ * The version of the OpenAPI document: 1.8.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.7.1
5
+ * The version of the OpenAPI document: 1.8.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,50 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.8.1
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 CopyRequest
16
+ */
17
+ export interface CopyRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CopyRequest
22
+ */
23
+ target: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CopyRequest
28
+ */
29
+ filter?: string;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof CopyRequest
34
+ */
35
+ withIndexes?: boolean;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof CopyRequest
40
+ */
41
+ dropTarget?: boolean;
42
+ }
43
+ /**
44
+ * Check if a given object implements the CopyRequest interface.
45
+ */
46
+ export declare function instanceOfCopyRequest(value: object): value is CopyRequest;
47
+ export declare function CopyRequestFromJSON(json: any): CopyRequest;
48
+ export declare function CopyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CopyRequest;
49
+ export declare function CopyRequestToJSON(json: any): CopyRequest;
50
+ export declare function CopyRequestToJSONTyped(value?: CopyRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,32 @@
1
+ export function instanceOfCopyRequest(value) {
2
+ if (!("target" in value) || value["target"] === void 0) return false;
3
+ return true;
4
+ }
5
+ export function CopyRequestFromJSON(json) {
6
+ return CopyRequestFromJSONTyped(json, false);
7
+ }
8
+ export function CopyRequestFromJSONTyped(json, ignoreDiscriminator) {
9
+ if (json == null) {
10
+ return json;
11
+ }
12
+ return {
13
+ "target": json["target"],
14
+ "filter": json["filter"] == null ? void 0 : json["filter"],
15
+ "withIndexes": json["withIndexes"] == null ? void 0 : json["withIndexes"],
16
+ "dropTarget": json["dropTarget"] == null ? void 0 : json["dropTarget"]
17
+ };
18
+ }
19
+ export function CopyRequestToJSON(json) {
20
+ return CopyRequestToJSONTyped(json, false);
21
+ }
22
+ export function CopyRequestToJSONTyped(value, ignoreDiscriminator = false) {
23
+ if (value == null) {
24
+ return value;
25
+ }
26
+ return {
27
+ "target": value["target"],
28
+ "filter": value["filter"],
29
+ "withIndexes": value["withIndexes"],
30
+ "dropTarget": value["dropTarget"]
31
+ };
32
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.8.1
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 CopyResponse
16
+ */
17
+ export interface CopyResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CopyResponse
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof CopyResponse
28
+ */
29
+ count: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof CopyResponse
34
+ */
35
+ indexes: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the CopyResponse interface.
39
+ */
40
+ export declare function instanceOfCopyResponse(value: object): value is CopyResponse;
41
+ export declare function CopyResponseFromJSON(json: any): CopyResponse;
42
+ export declare function CopyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CopyResponse;
43
+ export declare function CopyResponseToJSON(json: any): CopyResponse;
44
+ export declare function CopyResponseToJSONTyped(value?: CopyResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,32 @@
1
+ export function instanceOfCopyResponse(value) {
2
+ if (!("name" in value) || value["name"] === void 0) return false;
3
+ if (!("count" in value) || value["count"] === void 0) return false;
4
+ if (!("indexes" in value) || value["indexes"] === void 0) return false;
5
+ return true;
6
+ }
7
+ export function CopyResponseFromJSON(json) {
8
+ return CopyResponseFromJSONTyped(json, false);
9
+ }
10
+ export function CopyResponseFromJSONTyped(json, ignoreDiscriminator) {
11
+ if (json == null) {
12
+ return json;
13
+ }
14
+ return {
15
+ "name": json["name"],
16
+ "count": json["count"],
17
+ "indexes": json["indexes"]
18
+ };
19
+ }
20
+ export function CopyResponseToJSON(json) {
21
+ return CopyResponseToJSONTyped(json, false);
22
+ }
23
+ export function CopyResponseToJSONTyped(value, ignoreDiscriminator = false) {
24
+ if (value == null) {
25
+ return value;
26
+ }
27
+ return {
28
+ "name": value["name"],
29
+ "count": value["count"],
30
+ "indexes": value["indexes"]
31
+ };
32
+ }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.7.1
5
+ * The version of the OpenAPI document: 1.8.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.7.1
5
+ * The version of the OpenAPI document: 1.8.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.7.1
5
+ * The version of the OpenAPI document: 1.8.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.7.1
5
+ * The version of the OpenAPI document: 1.8.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,39 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.8.1
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 { FieldTypeCount } from './FieldTypeCount.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface FieldInfo
17
+ */
18
+ export interface FieldInfo {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof FieldInfo
23
+ */
24
+ path: string;
25
+ /**
26
+ *
27
+ * @type {Array<FieldTypeCount>}
28
+ * @memberof FieldInfo
29
+ */
30
+ types?: Array<FieldTypeCount>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the FieldInfo interface.
34
+ */
35
+ export declare function instanceOfFieldInfo(value: object): value is FieldInfo;
36
+ export declare function FieldInfoFromJSON(json: any): FieldInfo;
37
+ export declare function FieldInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldInfo;
38
+ export declare function FieldInfoToJSON(json: any): FieldInfo;
39
+ export declare function FieldInfoToJSONTyped(value?: FieldInfo | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,32 @@
1
+ import {
2
+ FieldTypeCountFromJSON,
3
+ FieldTypeCountToJSON
4
+ } from "./FieldTypeCount.js";
5
+ export function instanceOfFieldInfo(value) {
6
+ if (!("path" in value) || value["path"] === void 0) return false;
7
+ return true;
8
+ }
9
+ export function FieldInfoFromJSON(json) {
10
+ return FieldInfoFromJSONTyped(json, false);
11
+ }
12
+ export function FieldInfoFromJSONTyped(json, ignoreDiscriminator) {
13
+ if (json == null) {
14
+ return json;
15
+ }
16
+ return {
17
+ "path": json["path"],
18
+ "types": json["types"] == null ? void 0 : json["types"].map(FieldTypeCountFromJSON)
19
+ };
20
+ }
21
+ export function FieldInfoToJSON(json) {
22
+ return FieldInfoToJSONTyped(json, false);
23
+ }
24
+ export function FieldInfoToJSONTyped(value, ignoreDiscriminator = false) {
25
+ if (value == null) {
26
+ return value;
27
+ }
28
+ return {
29
+ "path": value["path"],
30
+ "types": value["types"] == null ? void 0 : value["types"].map(FieldTypeCountToJSON)
31
+ };
32
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.8.1
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 FieldTypeCount
16
+ */
17
+ export interface FieldTypeCount {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof FieldTypeCount
22
+ */
23
+ type: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof FieldTypeCount
28
+ */
29
+ count: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the FieldTypeCount interface.
33
+ */
34
+ export declare function instanceOfFieldTypeCount(value: object): value is FieldTypeCount;
35
+ export declare function FieldTypeCountFromJSON(json: any): FieldTypeCount;
36
+ export declare function FieldTypeCountFromJSONTyped(json: any, ignoreDiscriminator: boolean): FieldTypeCount;
37
+ export declare function FieldTypeCountToJSON(json: any): FieldTypeCount;
38
+ export declare function FieldTypeCountToJSONTyped(value?: FieldTypeCount | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,29 @@
1
+ export function instanceOfFieldTypeCount(value) {
2
+ if (!("type" in value) || value["type"] === void 0) return false;
3
+ if (!("count" in value) || value["count"] === void 0) return false;
4
+ return true;
5
+ }
6
+ export function FieldTypeCountFromJSON(json) {
7
+ return FieldTypeCountFromJSONTyped(json, false);
8
+ }
9
+ export function FieldTypeCountFromJSONTyped(json, ignoreDiscriminator) {
10
+ if (json == null) {
11
+ return json;
12
+ }
13
+ return {
14
+ "type": json["type"],
15
+ "count": json["count"]
16
+ };
17
+ }
18
+ export function FieldTypeCountToJSON(json) {
19
+ return FieldTypeCountToJSONTyped(json, false);
20
+ }
21
+ export function FieldTypeCountToJSONTyped(value, ignoreDiscriminator = false) {
22
+ if (value == null) {
23
+ return value;
24
+ }
25
+ return {
26
+ "type": value["type"],
27
+ "count": value["count"]
28
+ };
29
+ }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.7.1
5
+ * The version of the OpenAPI document: 1.8.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.7.1
5
+ * The version of the OpenAPI document: 1.8.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,57 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.8.1
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 { InsertError } from './InsertError.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ImportResponse
17
+ */
18
+ export interface ImportResponse {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof ImportResponse
23
+ */
24
+ read: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof ImportResponse
29
+ */
30
+ inserted: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof ImportResponse
35
+ */
36
+ failed: number;
37
+ /**
38
+ *
39
+ * @type {Array<InsertError>}
40
+ * @memberof ImportResponse
41
+ */
42
+ errors?: Array<InsertError>;
43
+ /**
44
+ *
45
+ * @type {boolean}
46
+ * @memberof ImportResponse
47
+ */
48
+ errorsTruncated: boolean;
49
+ }
50
+ /**
51
+ * Check if a given object implements the ImportResponse interface.
52
+ */
53
+ export declare function instanceOfImportResponse(value: object): value is ImportResponse;
54
+ export declare function ImportResponseFromJSON(json: any): ImportResponse;
55
+ export declare function ImportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportResponse;
56
+ export declare function ImportResponseToJSON(json: any): ImportResponse;
57
+ export declare function ImportResponseToJSONTyped(value?: ImportResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,41 @@
1
+ import {
2
+ InsertErrorFromJSON,
3
+ InsertErrorToJSON
4
+ } from "./InsertError.js";
5
+ export function instanceOfImportResponse(value) {
6
+ if (!("read" in value) || value["read"] === void 0) return false;
7
+ if (!("inserted" in value) || value["inserted"] === void 0) return false;
8
+ if (!("failed" in value) || value["failed"] === void 0) return false;
9
+ if (!("errorsTruncated" in value) || value["errorsTruncated"] === void 0) return false;
10
+ return true;
11
+ }
12
+ export function ImportResponseFromJSON(json) {
13
+ return ImportResponseFromJSONTyped(json, false);
14
+ }
15
+ export function ImportResponseFromJSONTyped(json, ignoreDiscriminator) {
16
+ if (json == null) {
17
+ return json;
18
+ }
19
+ return {
20
+ "read": json["read"],
21
+ "inserted": json["inserted"],
22
+ "failed": json["failed"],
23
+ "errors": json["errors"] == null ? void 0 : json["errors"].map(InsertErrorFromJSON),
24
+ "errorsTruncated": json["errorsTruncated"]
25
+ };
26
+ }
27
+ export function ImportResponseToJSON(json) {
28
+ return ImportResponseToJSONTyped(json, false);
29
+ }
30
+ export function ImportResponseToJSONTyped(value, ignoreDiscriminator = false) {
31
+ if (value == null) {
32
+ return value;
33
+ }
34
+ return {
35
+ "read": value["read"],
36
+ "inserted": value["inserted"],
37
+ "failed": value["failed"],
38
+ "errors": value["errors"] == null ? void 0 : value["errors"].map(InsertErrorToJSON),
39
+ "errorsTruncated": value["errorsTruncated"]
40
+ };
41
+ }