@sfxcode/nuxt-mongocamp-server 2.1.0 → 2.3.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 (80) hide show
  1. package/README.md +71 -19
  2. package/dist/module.d.mts +16 -0
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +103 -11
  5. package/dist/runtime/api/.openapi-generator/FILES +24 -2
  6. package/dist/runtime/api/apis/CollectionApi.d.ts +137 -0
  7. package/dist/runtime/api/apis/CollectionApi.js +213 -0
  8. package/dist/runtime/api/apis/DocumentApi.d.ts +225 -8
  9. package/dist/runtime/api/apis/DocumentApi.js +364 -5
  10. package/dist/runtime/api/docs/AuditEntry.md +52 -0
  11. package/dist/runtime/api/docs/CollectionApi.md +272 -2
  12. package/dist/runtime/api/docs/CollectionDeclaration.md +52 -0
  13. package/dist/runtime/api/docs/CollectionDeclarationAudit.md +34 -0
  14. package/dist/runtime/api/docs/CollectionDeclarationOwner.md +36 -0
  15. package/dist/runtime/api/docs/CollectionDeclarationSoftDelete.md +36 -0
  16. package/dist/runtime/api/docs/CollectionDeclarationTimestamps.md +40 -0
  17. package/dist/runtime/api/docs/CollectionDeclarationVersioned.md +38 -0
  18. package/dist/runtime/api/docs/CountRequest.md +34 -0
  19. package/dist/runtime/api/docs/DocumentApi.md +467 -12
  20. package/dist/runtime/api/docs/ErrorDescription.md +4 -0
  21. package/dist/runtime/api/docs/ExportRequest.md +40 -0
  22. package/dist/runtime/api/docs/MongoAggregateRequest.md +2 -0
  23. package/dist/runtime/api/docs/SettingsResponse.md +0 -6
  24. package/dist/runtime/api/docs/SuggestedValidator.md +40 -0
  25. package/dist/runtime/api/docs/{UpdateRequest.md → UpdateManyRequest.md} +4 -4
  26. package/dist/runtime/api/docs/ValidationIssue.md +36 -0
  27. package/dist/runtime/api/models/AuditEntry.d.ts +88 -0
  28. package/dist/runtime/api/models/AuditEntry.js +56 -0
  29. package/dist/runtime/api/models/CollectionDeclaration.d.ts +80 -0
  30. package/dist/runtime/api/models/CollectionDeclaration.js +73 -0
  31. package/dist/runtime/api/models/CollectionDeclarationAudit.d.ts +30 -0
  32. package/dist/runtime/api/models/CollectionDeclarationAudit.js +26 -0
  33. package/dist/runtime/api/models/CollectionDeclarationOwner.d.ts +43 -0
  34. package/dist/runtime/api/models/CollectionDeclarationOwner.js +34 -0
  35. package/dist/runtime/api/models/CollectionDeclarationSoftDelete.d.ts +34 -0
  36. package/dist/runtime/api/models/CollectionDeclarationSoftDelete.js +28 -0
  37. package/dist/runtime/api/models/CollectionDeclarationTimestamps.d.ts +42 -0
  38. package/dist/runtime/api/models/CollectionDeclarationTimestamps.js +33 -0
  39. package/dist/runtime/api/models/CollectionDeclarationVersioned.d.ts +46 -0
  40. package/dist/runtime/api/models/CollectionDeclarationVersioned.js +36 -0
  41. package/dist/runtime/api/models/CountRequest.d.ts +30 -0
  42. package/dist/runtime/api/models/CountRequest.js +25 -0
  43. package/dist/runtime/api/models/ErrorDescription.d.ts +11 -0
  44. package/dist/runtime/api/models/ErrorDescription.js +10 -2
  45. package/dist/runtime/api/models/ExportRequest.d.ts +42 -0
  46. package/dist/runtime/api/models/ExportRequest.js +31 -0
  47. package/dist/runtime/api/models/Grant.d.ts +10 -1
  48. package/dist/runtime/api/models/Grant.js +5 -0
  49. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +4 -0
  50. package/dist/runtime/api/models/MongoAggregateRequest.js +4 -2
  51. package/dist/runtime/api/models/SettingsResponse.d.ts +0 -14
  52. package/dist/runtime/api/models/SettingsResponse.js +0 -6
  53. package/dist/runtime/api/models/SuggestedValidator.d.ts +44 -0
  54. package/dist/runtime/api/models/SuggestedValidator.js +35 -0
  55. package/dist/runtime/api/models/UpdateManyRequest.d.ts +38 -0
  56. package/dist/runtime/api/models/{UpdateRequest.js → UpdateManyRequest.js} +7 -7
  57. package/dist/runtime/api/models/ValidationIssue.d.ts +34 -0
  58. package/dist/runtime/api/models/ValidationIssue.js +29 -0
  59. package/dist/runtime/api/models/index.d.ts +12 -1
  60. package/dist/runtime/api/models/index.js +12 -1
  61. package/dist/runtime/composables/mongocampApiCollection.d.ts +14 -15
  62. package/dist/runtime/composables/mongocampApiCollection.js +4 -1
  63. package/dist/runtime/composables/mongocampCollection.d.ts +106 -0
  64. package/dist/runtime/composables/mongocampCollection.js +200 -0
  65. package/dist/runtime/composables/mongocampLive.d.ts +33 -0
  66. package/dist/runtime/composables/mongocampLive.js +152 -0
  67. package/dist/runtime/composables/mongocampSearch.d.ts +12 -9
  68. package/dist/runtime/server/mongocamp/core.d.ts +2 -0
  69. package/dist/runtime/server/mongocamp/core.js +8 -1
  70. package/dist/runtime/server/mongocamp/plugin.d.ts +5 -1
  71. package/dist/runtime/server/mongocamp/plugin.js +21 -1
  72. package/dist/runtime/types/collections.d.ts +20 -0
  73. package/dist/runtime/types/collections.js +0 -0
  74. package/dist/runtime/utils/sse.d.ts +10 -0
  75. package/dist/runtime/utils/sse.js +33 -0
  76. package/dist/runtime/utils/toMongocampError.d.ts +7 -0
  77. package/dist/runtime/utils/toMongocampError.js +18 -1
  78. package/dist/types.d.mts +6 -0
  79. package/package.json +4 -3
  80. package/dist/runtime/api/models/UpdateRequest.d.ts +0 -38
@@ -0,0 +1,28 @@
1
+ export function instanceOfCollectionDeclarationSoftDelete(value) {
2
+ if (!("field" in value) || value["field"] === void 0) return false;
3
+ return true;
4
+ }
5
+ export function CollectionDeclarationSoftDeleteFromJSON(json) {
6
+ return CollectionDeclarationSoftDeleteFromJSONTyped(json, false);
7
+ }
8
+ export function CollectionDeclarationSoftDeleteFromJSONTyped(json, ignoreDiscriminator) {
9
+ if (json == null) {
10
+ return json;
11
+ }
12
+ return {
13
+ "field": json["field"],
14
+ "purgeAfterDays": json["purgeAfterDays"] == null ? void 0 : json["purgeAfterDays"]
15
+ };
16
+ }
17
+ export function CollectionDeclarationSoftDeleteToJSON(json) {
18
+ return CollectionDeclarationSoftDeleteToJSONTyped(json, false);
19
+ }
20
+ export function CollectionDeclarationSoftDeleteToJSONTyped(value, ignoreDiscriminator = false) {
21
+ if (value == null) {
22
+ return value;
23
+ }
24
+ return {
25
+ "field": value["field"],
26
+ "purgeAfterDays": value["purgeAfterDays"]
27
+ };
28
+ }
@@ -0,0 +1,42 @@
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: 2.0.0
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 CollectionDeclarationTimestamps
16
+ */
17
+ export interface CollectionDeclarationTimestamps {
18
+ /**
19
+ *
20
+ */
21
+ createdAt: string;
22
+ /**
23
+ *
24
+ */
25
+ updatedAt: string;
26
+ /**
27
+ *
28
+ */
29
+ createdBy?: string;
30
+ /**
31
+ *
32
+ */
33
+ updatedBy?: string;
34
+ }
35
+ /**
36
+ * Check if a given object implements the CollectionDeclarationTimestamps interface.
37
+ */
38
+ export declare function instanceOfCollectionDeclarationTimestamps(value: object): value is CollectionDeclarationTimestamps;
39
+ export declare function CollectionDeclarationTimestampsFromJSON(json: any): CollectionDeclarationTimestamps;
40
+ export declare function CollectionDeclarationTimestampsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionDeclarationTimestamps;
41
+ export declare function CollectionDeclarationTimestampsToJSON(json: any): CollectionDeclarationTimestamps;
42
+ export declare function CollectionDeclarationTimestampsToJSONTyped(value?: CollectionDeclarationTimestamps | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,33 @@
1
+ export function instanceOfCollectionDeclarationTimestamps(value) {
2
+ if (!("createdAt" in value) || value["createdAt"] === void 0) return false;
3
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0) return false;
4
+ return true;
5
+ }
6
+ export function CollectionDeclarationTimestampsFromJSON(json) {
7
+ return CollectionDeclarationTimestampsFromJSONTyped(json, false);
8
+ }
9
+ export function CollectionDeclarationTimestampsFromJSONTyped(json, ignoreDiscriminator) {
10
+ if (json == null) {
11
+ return json;
12
+ }
13
+ return {
14
+ "createdAt": json["createdAt"],
15
+ "updatedAt": json["updatedAt"],
16
+ "createdBy": json["createdBy"] == null ? void 0 : json["createdBy"],
17
+ "updatedBy": json["updatedBy"] == null ? void 0 : json["updatedBy"]
18
+ };
19
+ }
20
+ export function CollectionDeclarationTimestampsToJSON(json) {
21
+ return CollectionDeclarationTimestampsToJSONTyped(json, false);
22
+ }
23
+ export function CollectionDeclarationTimestampsToJSONTyped(value, ignoreDiscriminator = false) {
24
+ if (value == null) {
25
+ return value;
26
+ }
27
+ return {
28
+ "createdAt": value["createdAt"],
29
+ "updatedAt": value["updatedAt"],
30
+ "createdBy": value["createdBy"],
31
+ "updatedBy": value["updatedBy"]
32
+ };
33
+ }
@@ -0,0 +1,46 @@
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: 2.0.0
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 CollectionDeclarationVersioned
16
+ */
17
+ export interface CollectionDeclarationVersioned {
18
+ /**
19
+ *
20
+ */
21
+ mode: CollectionDeclarationVersionedModeEnum;
22
+ /**
23
+ *
24
+ */
25
+ field: string;
26
+ /**
27
+ *
28
+ */
29
+ required: boolean;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const CollectionDeclarationVersionedModeEnum: {
35
+ readonly Counter: "counter";
36
+ readonly Timestamp: "timestamp";
37
+ };
38
+ export type CollectionDeclarationVersionedModeEnum = typeof CollectionDeclarationVersionedModeEnum[keyof typeof CollectionDeclarationVersionedModeEnum];
39
+ /**
40
+ * Check if a given object implements the CollectionDeclarationVersioned interface.
41
+ */
42
+ export declare function instanceOfCollectionDeclarationVersioned(value: object): value is CollectionDeclarationVersioned;
43
+ export declare function CollectionDeclarationVersionedFromJSON(json: any): CollectionDeclarationVersioned;
44
+ export declare function CollectionDeclarationVersionedFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionDeclarationVersioned;
45
+ export declare function CollectionDeclarationVersionedToJSON(json: any): CollectionDeclarationVersioned;
46
+ export declare function CollectionDeclarationVersionedToJSONTyped(value?: CollectionDeclarationVersioned | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,36 @@
1
+ export const CollectionDeclarationVersionedModeEnum = {
2
+ Counter: "counter",
3
+ Timestamp: "timestamp"
4
+ };
5
+ export function instanceOfCollectionDeclarationVersioned(value) {
6
+ if (!("mode" in value) || value["mode"] === void 0) return false;
7
+ if (!("field" in value) || value["field"] === void 0) return false;
8
+ if (!("required" in value) || value["required"] === void 0) return false;
9
+ return true;
10
+ }
11
+ export function CollectionDeclarationVersionedFromJSON(json) {
12
+ return CollectionDeclarationVersionedFromJSONTyped(json, false);
13
+ }
14
+ export function CollectionDeclarationVersionedFromJSONTyped(json, ignoreDiscriminator) {
15
+ if (json == null) {
16
+ return json;
17
+ }
18
+ return {
19
+ "mode": json["mode"],
20
+ "field": json["field"],
21
+ "required": json["required"]
22
+ };
23
+ }
24
+ export function CollectionDeclarationVersionedToJSON(json) {
25
+ return CollectionDeclarationVersionedToJSONTyped(json, false);
26
+ }
27
+ export function CollectionDeclarationVersionedToJSONTyped(value, ignoreDiscriminator = false) {
28
+ if (value == null) {
29
+ return value;
30
+ }
31
+ return {
32
+ "mode": value["mode"],
33
+ "field": value["field"],
34
+ "required": value["required"]
35
+ };
36
+ }
@@ -0,0 +1,30 @@
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: 2.0.0
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 CountRequest
16
+ */
17
+ export interface CountRequest {
18
+ /**
19
+ * Lucene filter like on the list of documents, by default all documents
20
+ */
21
+ filter?: string;
22
+ }
23
+ /**
24
+ * Check if a given object implements the CountRequest interface.
25
+ */
26
+ export declare function instanceOfCountRequest(value: object): value is CountRequest;
27
+ export declare function CountRequestFromJSON(json: any): CountRequest;
28
+ export declare function CountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CountRequest;
29
+ export declare function CountRequestToJSON(json: any): CountRequest;
30
+ export declare function CountRequestToJSONTyped(value?: CountRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,25 @@
1
+ export function instanceOfCountRequest(value) {
2
+ return true;
3
+ }
4
+ export function CountRequestFromJSON(json) {
5
+ return CountRequestFromJSONTyped(json, false);
6
+ }
7
+ export function CountRequestFromJSONTyped(json, ignoreDiscriminator) {
8
+ if (json == null) {
9
+ return json;
10
+ }
11
+ return {
12
+ "filter": json["filter"] == null ? void 0 : json["filter"]
13
+ };
14
+ }
15
+ export function CountRequestToJSON(json) {
16
+ return CountRequestToJSONTyped(json, false);
17
+ }
18
+ export function CountRequestToJSONTyped(value, ignoreDiscriminator = false) {
19
+ if (value == null) {
20
+ return value;
21
+ }
22
+ return {
23
+ "filter": value["filter"]
24
+ };
25
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ValidationIssue } from './ValidationIssue.js';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -27,6 +28,16 @@ export interface ErrorDescription {
27
28
  *
28
29
  */
29
30
  additionalInfo: string;
31
+ /**
32
+ * The fields of a document that is not valid (a schema, a before-hook or the validator of the collection). Only set for these errors.
33
+ */
34
+ issues?: Array<ValidationIssue>;
35
+ /**
36
+ * The stored document of a version conflict (409, code 4092, 2.4.0), as Extended JSON: show it or merge with it, then send the change again with its version.
37
+ */
38
+ current?: {
39
+ [key: string]: any;
40
+ };
30
41
  }
31
42
  /**
32
43
  * Check if a given object implements the ErrorDescription interface.
@@ -1,3 +1,7 @@
1
+ import {
2
+ ValidationIssueFromJSON,
3
+ ValidationIssueToJSON
4
+ } from "./ValidationIssue.js";
1
5
  export function instanceOfErrorDescription(value) {
2
6
  if (!("code" in value) || value["code"] === void 0) return false;
3
7
  if (!("msg" in value) || value["msg"] === void 0) return false;
@@ -14,7 +18,9 @@ export function ErrorDescriptionFromJSONTyped(json, ignoreDiscriminator) {
14
18
  return {
15
19
  "code": json["code"],
16
20
  "msg": json["msg"],
17
- "additionalInfo": json["additionalInfo"]
21
+ "additionalInfo": json["additionalInfo"],
22
+ "issues": json["issues"] == null ? void 0 : json["issues"].map(ValidationIssueFromJSON),
23
+ "current": json["current"] == null ? void 0 : json["current"]
18
24
  };
19
25
  }
20
26
  export function ErrorDescriptionToJSON(json) {
@@ -27,6 +33,8 @@ export function ErrorDescriptionToJSONTyped(value, ignoreDiscriminator = false)
27
33
  return {
28
34
  "code": value["code"],
29
35
  "msg": value["msg"],
30
- "additionalInfo": value["additionalInfo"]
36
+ "additionalInfo": value["additionalInfo"],
37
+ "issues": value["issues"] == null ? void 0 : value["issues"].map(ValidationIssueToJSON),
38
+ "current": value["current"]
31
39
  };
32
40
  }
@@ -0,0 +1,42 @@
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: 2.0.0
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 ExportRequest
16
+ */
17
+ export interface ExportRequest {
18
+ /**
19
+ * Lucene filter like on the list of documents, by default all documents
20
+ */
21
+ filter?: string;
22
+ /**
23
+ *
24
+ */
25
+ sort?: Array<string>;
26
+ /**
27
+ *
28
+ */
29
+ projection?: Array<string>;
30
+ /**
31
+ *
32
+ */
33
+ limit?: number;
34
+ }
35
+ /**
36
+ * Check if a given object implements the ExportRequest interface.
37
+ */
38
+ export declare function instanceOfExportRequest(value: object): value is ExportRequest;
39
+ export declare function ExportRequestFromJSON(json: any): ExportRequest;
40
+ export declare function ExportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportRequest;
41
+ export declare function ExportRequestToJSON(json: any): ExportRequest;
42
+ export declare function ExportRequestToJSONTyped(value?: ExportRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,31 @@
1
+ export function instanceOfExportRequest(value) {
2
+ return true;
3
+ }
4
+ export function ExportRequestFromJSON(json) {
5
+ return ExportRequestFromJSONTyped(json, false);
6
+ }
7
+ export function ExportRequestFromJSONTyped(json, ignoreDiscriminator) {
8
+ if (json == null) {
9
+ return json;
10
+ }
11
+ return {
12
+ "filter": json["filter"] == null ? void 0 : json["filter"],
13
+ "sort": json["sort"] == null ? void 0 : json["sort"],
14
+ "projection": json["projection"] == null ? void 0 : json["projection"],
15
+ "limit": json["limit"] == null ? void 0 : json["limit"]
16
+ };
17
+ }
18
+ export function ExportRequestToJSON(json) {
19
+ return ExportRequestToJSONTyped(json, false);
20
+ }
21
+ export function ExportRequestToJSONTyped(value, ignoreDiscriminator = false) {
22
+ if (value == null) {
23
+ return value;
24
+ }
25
+ return {
26
+ "filter": value["filter"],
27
+ "sort": value["sort"],
28
+ "projection": value["projection"],
29
+ "limit": value["limit"]
30
+ };
31
+ }
@@ -34,8 +34,17 @@ export interface Grant {
34
34
  /**
35
35
  *
36
36
  */
37
- grantType: string;
37
+ grantType: GrantGrantTypeEnum;
38
38
  }
39
+ /**
40
+ * @export
41
+ */
42
+ export declare const GrantGrantTypeEnum: {
43
+ readonly Collection: "COLLECTION";
44
+ readonly Bucket: "BUCKET";
45
+ readonly BucketMeta: "BUCKET_META";
46
+ };
47
+ export type GrantGrantTypeEnum = typeof GrantGrantTypeEnum[keyof typeof GrantGrantTypeEnum];
39
48
  /**
40
49
  * Check if a given object implements the Grant interface.
41
50
  */
@@ -1,3 +1,8 @@
1
+ export const GrantGrantTypeEnum = {
2
+ Collection: "COLLECTION",
3
+ Bucket: "BUCKET",
4
+ BucketMeta: "BUCKET_META"
5
+ };
1
6
  export function instanceOfGrant(value) {
2
7
  if (!("name" in value) || value["name"] === void 0) return false;
3
8
  if (!("read" in value) || value["read"] === void 0) return false;
@@ -24,6 +24,10 @@ export interface MongoAggregateRequest {
24
24
  *
25
25
  */
26
26
  allowDiskUse: boolean;
27
+ /**
28
+ * 2.1.0: the Lucene filter of the list as first stage, like the query parameter filter (send one of both; no URL limit in the body)
29
+ */
30
+ filter?: string;
27
31
  }
28
32
  /**
29
33
  * Check if a given object implements the MongoAggregateRequest interface.
@@ -15,7 +15,8 @@ export function MongoAggregateRequestFromJSONTyped(json, ignoreDiscriminator) {
15
15
  }
16
16
  return {
17
17
  "pipeline": json["pipeline"] == null ? void 0 : json["pipeline"].map(PipelineStageFromJSON),
18
- "allowDiskUse": json["allowDiskUse"]
18
+ "allowDiskUse": json["allowDiskUse"],
19
+ "filter": json["filter"] == null ? void 0 : json["filter"]
19
20
  };
20
21
  }
21
22
  export function MongoAggregateRequestToJSON(json) {
@@ -27,6 +28,7 @@ export function MongoAggregateRequestToJSONTyped(value, ignoreDiscriminator = fa
27
28
  }
28
29
  return {
29
30
  "pipeline": value["pipeline"] == null ? void 0 : value["pipeline"].map(PipelineStageToJSON),
30
- "allowDiskUse": value["allowDiskUse"]
31
+ "allowDiskUse": value["allowDiskUse"],
32
+ "filter": value["filter"]
31
33
  };
32
34
  }
@@ -15,20 +15,6 @@
15
15
  * @interface SettingsResponse
16
16
  */
17
17
  export interface SettingsResponse {
18
- /**
19
- *
20
- */
21
- routesPlugins?: Array<string>;
22
- /**
23
- * Deprecated: plugin system of the Scala server, always [GridFsFileAdapter]
24
- * @deprecated
25
- */
26
- filePlugins?: Array<string>;
27
- /**
28
- * Deprecated: plugin system of the Scala server, the value of PLUGINS_IGNORED
29
- * @deprecated
30
- */
31
- ignoredPlugins?: Array<string>;
32
18
  /**
33
19
  *
34
20
  */
@@ -10,9 +10,6 @@ export function SettingsResponseFromJSONTyped(json, ignoreDiscriminator) {
10
10
  return json;
11
11
  }
12
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
13
  "configurations": json["configurations"]
17
14
  };
18
15
  }
@@ -24,9 +21,6 @@ export function SettingsResponseToJSONTyped(value, ignoreDiscriminator = false)
24
21
  return value;
25
22
  }
26
23
  return {
27
- "routesPlugins": value["routesPlugins"],
28
- "filePlugins": value["filePlugins"],
29
- "ignoredPlugins": value["ignoredPlugins"],
30
24
  "configurations": value["configurations"]
31
25
  };
32
26
  }
@@ -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: 2.0.0
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 SuggestedValidator
16
+ */
17
+ export interface SuggestedValidator {
18
+ /**
19
+ * The validator: an object with the key $jsonSchema.
20
+ */
21
+ validator: {
22
+ [key: string]: any;
23
+ };
24
+ /**
25
+ * The number of documents of the collection.
26
+ */
27
+ count: number;
28
+ /**
29
+ * The number of documents the suggestion is made of.
30
+ */
31
+ sample: number;
32
+ /**
33
+ *
34
+ */
35
+ warnings: Array<string>;
36
+ }
37
+ /**
38
+ * Check if a given object implements the SuggestedValidator interface.
39
+ */
40
+ export declare function instanceOfSuggestedValidator(value: object): value is SuggestedValidator;
41
+ export declare function SuggestedValidatorFromJSON(json: any): SuggestedValidator;
42
+ export declare function SuggestedValidatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuggestedValidator;
43
+ export declare function SuggestedValidatorToJSON(json: any): SuggestedValidator;
44
+ export declare function SuggestedValidatorToJSONTyped(value?: SuggestedValidator | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,35 @@
1
+ export function instanceOfSuggestedValidator(value) {
2
+ if (!("validator" in value) || value["validator"] === void 0) return false;
3
+ if (!("count" in value) || value["count"] === void 0) return false;
4
+ if (!("sample" in value) || value["sample"] === void 0) return false;
5
+ if (!("warnings" in value) || value["warnings"] === void 0) return false;
6
+ return true;
7
+ }
8
+ export function SuggestedValidatorFromJSON(json) {
9
+ return SuggestedValidatorFromJSONTyped(json, false);
10
+ }
11
+ export function SuggestedValidatorFromJSONTyped(json, ignoreDiscriminator) {
12
+ if (json == null) {
13
+ return json;
14
+ }
15
+ return {
16
+ "validator": json["validator"],
17
+ "count": json["count"],
18
+ "sample": json["sample"],
19
+ "warnings": json["warnings"]
20
+ };
21
+ }
22
+ export function SuggestedValidatorToJSON(json) {
23
+ return SuggestedValidatorToJSONTyped(json, false);
24
+ }
25
+ export function SuggestedValidatorToJSONTyped(value, ignoreDiscriminator = false) {
26
+ if (value == null) {
27
+ return value;
28
+ }
29
+ return {
30
+ "validator": value["validator"],
31
+ "count": value["count"],
32
+ "sample": value["sample"],
33
+ "warnings": value["warnings"]
34
+ };
35
+ }
@@ -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: 2.0.0
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 UpdateManyRequest
16
+ */
17
+ export interface UpdateManyRequest {
18
+ /**
19
+ *
20
+ */
21
+ document: {
22
+ [key: string]: any | null;
23
+ };
24
+ /**
25
+ *
26
+ */
27
+ filter: {
28
+ [key: string]: any | null;
29
+ };
30
+ }
31
+ /**
32
+ * Check if a given object implements the UpdateManyRequest interface.
33
+ */
34
+ export declare function instanceOfUpdateManyRequest(value: object): value is UpdateManyRequest;
35
+ export declare function UpdateManyRequestFromJSON(json: any): UpdateManyRequest;
36
+ export declare function UpdateManyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateManyRequest;
37
+ export declare function UpdateManyRequestToJSON(json: any): UpdateManyRequest;
38
+ export declare function UpdateManyRequestToJSONTyped(value?: UpdateManyRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,12 +1,12 @@
1
- export function instanceOfUpdateRequest(value) {
1
+ export function instanceOfUpdateManyRequest(value) {
2
2
  if (!("document" in value) || value["document"] === void 0) return false;
3
3
  if (!("filter" in value) || value["filter"] === void 0) return false;
4
4
  return true;
5
5
  }
6
- export function UpdateRequestFromJSON(json) {
7
- return UpdateRequestFromJSONTyped(json, false);
6
+ export function UpdateManyRequestFromJSON(json) {
7
+ return UpdateManyRequestFromJSONTyped(json, false);
8
8
  }
9
- export function UpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
9
+ export function UpdateManyRequestFromJSONTyped(json, ignoreDiscriminator) {
10
10
  if (json == null) {
11
11
  return json;
12
12
  }
@@ -15,10 +15,10 @@ export function UpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
15
15
  "filter": json["filter"]
16
16
  };
17
17
  }
18
- export function UpdateRequestToJSON(json) {
19
- return UpdateRequestToJSONTyped(json, false);
18
+ export function UpdateManyRequestToJSON(json) {
19
+ return UpdateManyRequestToJSONTyped(json, false);
20
20
  }
21
- export function UpdateRequestToJSONTyped(value, ignoreDiscriminator = false) {
21
+ export function UpdateManyRequestToJSONTyped(value, ignoreDiscriminator = false) {
22
22
  if (value == null) {
23
23
  return value;
24
24
  }
@@ -0,0 +1,34 @@
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: 2.0.0
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 ValidationIssue
16
+ */
17
+ export interface ValidationIssue {
18
+ /**
19
+ * The field in dot notation (`items.0.qty`), empty for the whole document; `[3].qty` for the fourth document of a request with several.
20
+ */
21
+ path: string;
22
+ /**
23
+ *
24
+ */
25
+ message: string;
26
+ }
27
+ /**
28
+ * Check if a given object implements the ValidationIssue interface.
29
+ */
30
+ export declare function instanceOfValidationIssue(value: object): value is ValidationIssue;
31
+ export declare function ValidationIssueFromJSON(json: any): ValidationIssue;
32
+ export declare function ValidationIssueFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationIssue;
33
+ export declare function ValidationIssueToJSON(json: any): ValidationIssue;
34
+ export declare function ValidationIssueToJSONTyped(value?: ValidationIssue | null, ignoreDiscriminator?: boolean): any;