@sfxcode/nuxt-mongocamp-server 2.2.0 → 2.4.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.
- package/README.md +74 -1
- package/dist/module.d.mts +10 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +95 -11
- package/dist/runtime/api/.openapi-generator/FILES +22 -0
- package/dist/runtime/api/apis/CollectionApi.d.ts +124 -0
- package/dist/runtime/api/apis/CollectionApi.js +205 -0
- package/dist/runtime/api/apis/DocumentApi.d.ts +162 -0
- package/dist/runtime/api/apis/DocumentApi.js +229 -0
- package/dist/runtime/api/docs/AuditEntry.md +52 -0
- package/dist/runtime/api/docs/CollectionApi.md +269 -2
- package/dist/runtime/api/docs/CollectionDeclaration.md +56 -0
- package/dist/runtime/api/docs/CollectionDeclarationAudit.md +34 -0
- package/dist/runtime/api/docs/CollectionDeclarationIndexesInner.md +38 -0
- package/dist/runtime/api/docs/CollectionDeclarationOwner.md +36 -0
- package/dist/runtime/api/docs/CollectionDeclarationRefsInner.md +38 -0
- package/dist/runtime/api/docs/CollectionDeclarationSoftDelete.md +36 -0
- package/dist/runtime/api/docs/CollectionDeclarationTimestamps.md +40 -0
- package/dist/runtime/api/docs/CollectionDeclarationVersioned.md +38 -0
- package/dist/runtime/api/docs/DocumentApi.md +303 -8
- package/dist/runtime/api/docs/ErrorDescription.md +4 -0
- package/dist/runtime/api/docs/ExportRequest.md +2 -0
- package/dist/runtime/api/docs/MongoFindRequest.md +2 -0
- package/dist/runtime/api/docs/SearchRequest.md +2 -0
- package/dist/runtime/api/docs/SuggestedValidator.md +40 -0
- package/dist/runtime/api/docs/ValidationIssue.md +36 -0
- package/dist/runtime/api/models/AuditEntry.d.ts +88 -0
- package/dist/runtime/api/models/AuditEntry.js +56 -0
- package/dist/runtime/api/models/CollectionDeclaration.d.ts +90 -0
- package/dist/runtime/api/models/CollectionDeclaration.js +87 -0
- package/dist/runtime/api/models/CollectionDeclarationAudit.d.ts +30 -0
- package/dist/runtime/api/models/CollectionDeclarationAudit.js +26 -0
- package/dist/runtime/api/models/CollectionDeclarationIndexesInner.d.ts +40 -0
- package/dist/runtime/api/models/CollectionDeclarationIndexesInner.js +32 -0
- package/dist/runtime/api/models/CollectionDeclarationOwner.d.ts +43 -0
- package/dist/runtime/api/models/CollectionDeclarationOwner.js +34 -0
- package/dist/runtime/api/models/CollectionDeclarationRefsInner.d.ts +38 -0
- package/dist/runtime/api/models/CollectionDeclarationRefsInner.js +31 -0
- package/dist/runtime/api/models/CollectionDeclarationSoftDelete.d.ts +34 -0
- package/dist/runtime/api/models/CollectionDeclarationSoftDelete.js +28 -0
- package/dist/runtime/api/models/CollectionDeclarationTimestamps.d.ts +42 -0
- package/dist/runtime/api/models/CollectionDeclarationTimestamps.js +33 -0
- package/dist/runtime/api/models/CollectionDeclarationVersioned.d.ts +46 -0
- package/dist/runtime/api/models/CollectionDeclarationVersioned.js +36 -0
- package/dist/runtime/api/models/ErrorDescription.d.ts +11 -0
- package/dist/runtime/api/models/ErrorDescription.js +10 -2
- package/dist/runtime/api/models/ExportRequest.d.ts +4 -0
- package/dist/runtime/api/models/ExportRequest.js +4 -2
- package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -0
- package/dist/runtime/api/models/MongoFindRequest.js +4 -2
- package/dist/runtime/api/models/SearchRequest.d.ts +4 -0
- package/dist/runtime/api/models/SearchRequest.js +4 -2
- package/dist/runtime/api/models/SuggestedValidator.d.ts +44 -0
- package/dist/runtime/api/models/SuggestedValidator.js +35 -0
- package/dist/runtime/api/models/ValidationIssue.d.ts +34 -0
- package/dist/runtime/api/models/ValidationIssue.js +29 -0
- package/dist/runtime/api/models/index.d.ts +11 -0
- package/dist/runtime/api/models/index.js +11 -0
- package/dist/runtime/composables/mongocampApiCollection.d.ts +14 -15
- package/dist/runtime/composables/mongocampApiCollection.js +4 -1
- package/dist/runtime/composables/mongocampCollection.d.ts +144 -0
- package/dist/runtime/composables/mongocampCollection.js +241 -0
- package/dist/runtime/composables/mongocampLive.d.ts +36 -0
- package/dist/runtime/composables/mongocampLive.js +155 -0
- package/dist/runtime/composables/mongocampSearch.d.ts +12 -9
- package/dist/runtime/server/composables/mongocampServerCollection.d.ts +20 -0
- package/dist/runtime/server/composables/mongocampServerCollection.js +12 -0
- package/dist/runtime/server/mongocamp/plugin.d.ts +2 -2
- package/dist/runtime/server/mongocamp/plugin.js +10 -1
- package/dist/runtime/types/collections.d.ts +30 -0
- package/dist/runtime/types/collections.js +0 -0
- package/dist/runtime/utils/sse.d.ts +10 -0
- package/dist/runtime/utils/sse.js +33 -0
- package/dist/runtime/utils/toMongocampError.d.ts +7 -0
- package/dist/runtime/utils/toMongocampError.js +18 -1
- package/dist/types.d.mts +6 -0
- package/package.json +4 -3
|
@@ -0,0 +1,88 @@
|
|
|
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 AuditEntry
|
|
16
|
+
*/
|
|
17
|
+
export interface AuditEntry {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
collection: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
database: string;
|
|
26
|
+
/**
|
|
27
|
+
* The _id of the document; absent on a summary record.
|
|
28
|
+
*/
|
|
29
|
+
documentId?: any | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
operation: AuditEntryOperationEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
user: string;
|
|
38
|
+
/**
|
|
39
|
+
* The time (Extended JSON date).
|
|
40
|
+
*/
|
|
41
|
+
at: {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
before?: {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
after?: {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* A write of many documents: count and recorded.
|
|
58
|
+
*/
|
|
59
|
+
summary?: {
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
expiresAt?: {
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export declare const AuditEntryOperationEnum: {
|
|
73
|
+
readonly Insert: "insert";
|
|
74
|
+
readonly Replace: "replace";
|
|
75
|
+
readonly Update: "update";
|
|
76
|
+
readonly Delete: "delete";
|
|
77
|
+
readonly SoftDelete: "softDelete";
|
|
78
|
+
readonly Restore: "restore";
|
|
79
|
+
};
|
|
80
|
+
export type AuditEntryOperationEnum = typeof AuditEntryOperationEnum[keyof typeof AuditEntryOperationEnum];
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the AuditEntry interface.
|
|
83
|
+
*/
|
|
84
|
+
export declare function instanceOfAuditEntry(value: object): value is AuditEntry;
|
|
85
|
+
export declare function AuditEntryFromJSON(json: any): AuditEntry;
|
|
86
|
+
export declare function AuditEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditEntry;
|
|
87
|
+
export declare function AuditEntryToJSON(json: any): AuditEntry;
|
|
88
|
+
export declare function AuditEntryToJSONTyped(value?: AuditEntry | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export const AuditEntryOperationEnum = {
|
|
2
|
+
Insert: "insert",
|
|
3
|
+
Replace: "replace",
|
|
4
|
+
Update: "update",
|
|
5
|
+
Delete: "delete",
|
|
6
|
+
SoftDelete: "softDelete",
|
|
7
|
+
Restore: "restore"
|
|
8
|
+
};
|
|
9
|
+
export function instanceOfAuditEntry(value) {
|
|
10
|
+
if (!("collection" in value) || value["collection"] === void 0) return false;
|
|
11
|
+
if (!("database" in value) || value["database"] === void 0) return false;
|
|
12
|
+
if (!("operation" in value) || value["operation"] === void 0) return false;
|
|
13
|
+
if (!("user" in value) || value["user"] === void 0) return false;
|
|
14
|
+
if (!("at" in value) || value["at"] === void 0) return false;
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
export function AuditEntryFromJSON(json) {
|
|
18
|
+
return AuditEntryFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
export function AuditEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
+
if (json == null) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
"collection": json["collection"],
|
|
26
|
+
"database": json["database"],
|
|
27
|
+
"documentId": json["documentId"] === void 0 ? void 0 : json["documentId"] === null ? null : json["documentId"],
|
|
28
|
+
"operation": json["operation"],
|
|
29
|
+
"user": json["user"],
|
|
30
|
+
"at": json["at"],
|
|
31
|
+
"before": json["before"] == null ? void 0 : json["before"],
|
|
32
|
+
"after": json["after"] == null ? void 0 : json["after"],
|
|
33
|
+
"summary": json["summary"] == null ? void 0 : json["summary"],
|
|
34
|
+
"expiresAt": json["expiresAt"] == null ? void 0 : json["expiresAt"]
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function AuditEntryToJSON(json) {
|
|
38
|
+
return AuditEntryToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function AuditEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
"collection": value["collection"],
|
|
46
|
+
"database": value["database"],
|
|
47
|
+
"documentId": value["documentId"],
|
|
48
|
+
"operation": value["operation"],
|
|
49
|
+
"user": value["user"],
|
|
50
|
+
"at": value["at"],
|
|
51
|
+
"before": value["before"],
|
|
52
|
+
"after": value["after"],
|
|
53
|
+
"summary": value["summary"],
|
|
54
|
+
"expiresAt": value["expiresAt"]
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
import type { CollectionDeclarationAudit } from './CollectionDeclarationAudit.js';
|
|
13
|
+
import type { CollectionDeclarationTimestamps } from './CollectionDeclarationTimestamps.js';
|
|
14
|
+
import type { CollectionDeclarationVersioned } from './CollectionDeclarationVersioned.js';
|
|
15
|
+
import type { CollectionDeclarationOwner } from './CollectionDeclarationOwner.js';
|
|
16
|
+
import type { CollectionDeclarationRefsInner } from './CollectionDeclarationRefsInner.js';
|
|
17
|
+
import type { CollectionDeclarationIndexesInner } from './CollectionDeclarationIndexesInner.js';
|
|
18
|
+
import type { CollectionDeclarationSoftDelete } from './CollectionDeclarationSoftDelete.js';
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface CollectionDeclaration
|
|
23
|
+
*/
|
|
24
|
+
export interface CollectionDeclaration {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
name: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
database: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
validation: CollectionDeclarationValidationEnum;
|
|
37
|
+
/**
|
|
38
|
+
* The fields the server writes (timestamps, owner, version, deleted mark); clients do not send them.
|
|
39
|
+
*/
|
|
40
|
+
systemFields: Array<string>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
protectedFields: Array<string>;
|
|
45
|
+
/**
|
|
46
|
+
* The indexes of the declaration and its behaviours (2.4.0), synced at the start.
|
|
47
|
+
*/
|
|
48
|
+
indexes: Array<CollectionDeclarationIndexesInner>;
|
|
49
|
+
/**
|
|
50
|
+
* The references of the declaration (2.4.0), the fields a read can expand (query parameter expand).
|
|
51
|
+
*/
|
|
52
|
+
refs: Array<CollectionDeclarationRefsInner>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
timestamps?: CollectionDeclarationTimestamps;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
owner?: CollectionDeclarationOwner;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
softDelete?: CollectionDeclarationSoftDelete;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
versioned?: CollectionDeclarationVersioned;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
audit?: CollectionDeclarationAudit;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export declare const CollectionDeclarationValidationEnum: {
|
|
78
|
+
readonly Off: "off";
|
|
79
|
+
readonly Warn: "warn";
|
|
80
|
+
readonly Error: "error";
|
|
81
|
+
};
|
|
82
|
+
export type CollectionDeclarationValidationEnum = typeof CollectionDeclarationValidationEnum[keyof typeof CollectionDeclarationValidationEnum];
|
|
83
|
+
/**
|
|
84
|
+
* Check if a given object implements the CollectionDeclaration interface.
|
|
85
|
+
*/
|
|
86
|
+
export declare function instanceOfCollectionDeclaration(value: object): value is CollectionDeclaration;
|
|
87
|
+
export declare function CollectionDeclarationFromJSON(json: any): CollectionDeclaration;
|
|
88
|
+
export declare function CollectionDeclarationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionDeclaration;
|
|
89
|
+
export declare function CollectionDeclarationToJSON(json: any): CollectionDeclaration;
|
|
90
|
+
export declare function CollectionDeclarationToJSONTyped(value?: CollectionDeclaration | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CollectionDeclarationAuditFromJSON,
|
|
3
|
+
CollectionDeclarationAuditToJSON
|
|
4
|
+
} from "./CollectionDeclarationAudit.js";
|
|
5
|
+
import {
|
|
6
|
+
CollectionDeclarationTimestampsFromJSON,
|
|
7
|
+
CollectionDeclarationTimestampsToJSON
|
|
8
|
+
} from "./CollectionDeclarationTimestamps.js";
|
|
9
|
+
import {
|
|
10
|
+
CollectionDeclarationVersionedFromJSON,
|
|
11
|
+
CollectionDeclarationVersionedToJSON
|
|
12
|
+
} from "./CollectionDeclarationVersioned.js";
|
|
13
|
+
import {
|
|
14
|
+
CollectionDeclarationOwnerFromJSON,
|
|
15
|
+
CollectionDeclarationOwnerToJSON
|
|
16
|
+
} from "./CollectionDeclarationOwner.js";
|
|
17
|
+
import {
|
|
18
|
+
CollectionDeclarationRefsInnerFromJSON,
|
|
19
|
+
CollectionDeclarationRefsInnerToJSON
|
|
20
|
+
} from "./CollectionDeclarationRefsInner.js";
|
|
21
|
+
import {
|
|
22
|
+
CollectionDeclarationIndexesInnerFromJSON,
|
|
23
|
+
CollectionDeclarationIndexesInnerToJSON
|
|
24
|
+
} from "./CollectionDeclarationIndexesInner.js";
|
|
25
|
+
import {
|
|
26
|
+
CollectionDeclarationSoftDeleteFromJSON,
|
|
27
|
+
CollectionDeclarationSoftDeleteToJSON
|
|
28
|
+
} from "./CollectionDeclarationSoftDelete.js";
|
|
29
|
+
export const CollectionDeclarationValidationEnum = {
|
|
30
|
+
Off: "off",
|
|
31
|
+
Warn: "warn",
|
|
32
|
+
Error: "error"
|
|
33
|
+
};
|
|
34
|
+
export function instanceOfCollectionDeclaration(value) {
|
|
35
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
36
|
+
if (!("database" in value) || value["database"] === void 0) return false;
|
|
37
|
+
if (!("validation" in value) || value["validation"] === void 0) return false;
|
|
38
|
+
if (!("systemFields" in value) || value["systemFields"] === void 0) return false;
|
|
39
|
+
if (!("protectedFields" in value) || value["protectedFields"] === void 0) return false;
|
|
40
|
+
if (!("indexes" in value) || value["indexes"] === void 0) return false;
|
|
41
|
+
if (!("refs" in value) || value["refs"] === void 0) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
export function CollectionDeclarationFromJSON(json) {
|
|
45
|
+
return CollectionDeclarationFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function CollectionDeclarationFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
"name": json["name"],
|
|
53
|
+
"database": json["database"],
|
|
54
|
+
"validation": json["validation"],
|
|
55
|
+
"systemFields": json["systemFields"],
|
|
56
|
+
"protectedFields": json["protectedFields"],
|
|
57
|
+
"indexes": json["indexes"].map(CollectionDeclarationIndexesInnerFromJSON),
|
|
58
|
+
"refs": json["refs"].map(CollectionDeclarationRefsInnerFromJSON),
|
|
59
|
+
"timestamps": json["timestamps"] == null ? void 0 : CollectionDeclarationTimestampsFromJSON(json["timestamps"]),
|
|
60
|
+
"owner": json["owner"] == null ? void 0 : CollectionDeclarationOwnerFromJSON(json["owner"]),
|
|
61
|
+
"softDelete": json["softDelete"] == null ? void 0 : CollectionDeclarationSoftDeleteFromJSON(json["softDelete"]),
|
|
62
|
+
"versioned": json["versioned"] == null ? void 0 : CollectionDeclarationVersionedFromJSON(json["versioned"]),
|
|
63
|
+
"audit": json["audit"] == null ? void 0 : CollectionDeclarationAuditFromJSON(json["audit"])
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export function CollectionDeclarationToJSON(json) {
|
|
67
|
+
return CollectionDeclarationToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
export function CollectionDeclarationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
"name": value["name"],
|
|
75
|
+
"database": value["database"],
|
|
76
|
+
"validation": value["validation"],
|
|
77
|
+
"systemFields": value["systemFields"],
|
|
78
|
+
"protectedFields": value["protectedFields"],
|
|
79
|
+
"indexes": value["indexes"].map(CollectionDeclarationIndexesInnerToJSON),
|
|
80
|
+
"refs": value["refs"].map(CollectionDeclarationRefsInnerToJSON),
|
|
81
|
+
"timestamps": CollectionDeclarationTimestampsToJSON(value["timestamps"]),
|
|
82
|
+
"owner": CollectionDeclarationOwnerToJSON(value["owner"]),
|
|
83
|
+
"softDelete": CollectionDeclarationSoftDeleteToJSON(value["softDelete"]),
|
|
84
|
+
"versioned": CollectionDeclarationVersionedToJSON(value["versioned"]),
|
|
85
|
+
"audit": CollectionDeclarationAuditToJSON(value["audit"])
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -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 CollectionDeclarationAudit
|
|
16
|
+
*/
|
|
17
|
+
export interface CollectionDeclarationAudit {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
retentionDays: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the CollectionDeclarationAudit interface.
|
|
25
|
+
*/
|
|
26
|
+
export declare function instanceOfCollectionDeclarationAudit(value: object): value is CollectionDeclarationAudit;
|
|
27
|
+
export declare function CollectionDeclarationAuditFromJSON(json: any): CollectionDeclarationAudit;
|
|
28
|
+
export declare function CollectionDeclarationAuditFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionDeclarationAudit;
|
|
29
|
+
export declare function CollectionDeclarationAuditToJSON(json: any): CollectionDeclarationAudit;
|
|
30
|
+
export declare function CollectionDeclarationAuditToJSONTyped(value?: CollectionDeclarationAudit | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export function instanceOfCollectionDeclarationAudit(value) {
|
|
2
|
+
if (!("retentionDays" in value) || value["retentionDays"] === void 0) return false;
|
|
3
|
+
return true;
|
|
4
|
+
}
|
|
5
|
+
export function CollectionDeclarationAuditFromJSON(json) {
|
|
6
|
+
return CollectionDeclarationAuditFromJSONTyped(json, false);
|
|
7
|
+
}
|
|
8
|
+
export function CollectionDeclarationAuditFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if (json == null) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
"retentionDays": json["retentionDays"]
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export function CollectionDeclarationAuditToJSON(json) {
|
|
17
|
+
return CollectionDeclarationAuditToJSONTyped(json, false);
|
|
18
|
+
}
|
|
19
|
+
export function CollectionDeclarationAuditToJSONTyped(value, ignoreDiscriminator = false) {
|
|
20
|
+
if (value == null) {
|
|
21
|
+
return value;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
"retentionDays": value["retentionDays"]
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 CollectionDeclarationIndexesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface CollectionDeclarationIndexesInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
name: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
key: {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
unique: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the CollectionDeclarationIndexesInner interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfCollectionDeclarationIndexesInner(value: object): value is CollectionDeclarationIndexesInner;
|
|
37
|
+
export declare function CollectionDeclarationIndexesInnerFromJSON(json: any): CollectionDeclarationIndexesInner;
|
|
38
|
+
export declare function CollectionDeclarationIndexesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionDeclarationIndexesInner;
|
|
39
|
+
export declare function CollectionDeclarationIndexesInnerToJSON(json: any): CollectionDeclarationIndexesInner;
|
|
40
|
+
export declare function CollectionDeclarationIndexesInnerToJSONTyped(value?: CollectionDeclarationIndexesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export function instanceOfCollectionDeclarationIndexesInner(value) {
|
|
2
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
3
|
+
if (!("key" in value) || value["key"] === void 0) return false;
|
|
4
|
+
if (!("unique" in value) || value["unique"] === void 0) return false;
|
|
5
|
+
return true;
|
|
6
|
+
}
|
|
7
|
+
export function CollectionDeclarationIndexesInnerFromJSON(json) {
|
|
8
|
+
return CollectionDeclarationIndexesInnerFromJSONTyped(json, false);
|
|
9
|
+
}
|
|
10
|
+
export function CollectionDeclarationIndexesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
11
|
+
if (json == null) {
|
|
12
|
+
return json;
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
"name": json["name"],
|
|
16
|
+
"key": json["key"],
|
|
17
|
+
"unique": json["unique"]
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export function CollectionDeclarationIndexesInnerToJSON(json) {
|
|
21
|
+
return CollectionDeclarationIndexesInnerToJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function CollectionDeclarationIndexesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
24
|
+
if (value == null) {
|
|
25
|
+
return value;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
"name": value["name"],
|
|
29
|
+
"key": value["key"],
|
|
30
|
+
"unique": value["unique"]
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 CollectionDeclarationOwner
|
|
16
|
+
*/
|
|
17
|
+
export interface CollectionDeclarationOwner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
field: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
read: CollectionDeclarationOwnerReadEnum;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export declare const CollectionDeclarationOwnerReadEnum: {
|
|
31
|
+
readonly Own: "own";
|
|
32
|
+
readonly All: "all";
|
|
33
|
+
readonly Custom: "custom";
|
|
34
|
+
};
|
|
35
|
+
export type CollectionDeclarationOwnerReadEnum = typeof CollectionDeclarationOwnerReadEnum[keyof typeof CollectionDeclarationOwnerReadEnum];
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the CollectionDeclarationOwner interface.
|
|
38
|
+
*/
|
|
39
|
+
export declare function instanceOfCollectionDeclarationOwner(value: object): value is CollectionDeclarationOwner;
|
|
40
|
+
export declare function CollectionDeclarationOwnerFromJSON(json: any): CollectionDeclarationOwner;
|
|
41
|
+
export declare function CollectionDeclarationOwnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionDeclarationOwner;
|
|
42
|
+
export declare function CollectionDeclarationOwnerToJSON(json: any): CollectionDeclarationOwner;
|
|
43
|
+
export declare function CollectionDeclarationOwnerToJSONTyped(value?: CollectionDeclarationOwner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const CollectionDeclarationOwnerReadEnum = {
|
|
2
|
+
Own: "own",
|
|
3
|
+
All: "all",
|
|
4
|
+
Custom: "custom"
|
|
5
|
+
};
|
|
6
|
+
export function instanceOfCollectionDeclarationOwner(value) {
|
|
7
|
+
if (!("field" in value) || value["field"] === void 0) return false;
|
|
8
|
+
if (!("read" in value) || value["read"] === void 0) return false;
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
export function CollectionDeclarationOwnerFromJSON(json) {
|
|
12
|
+
return CollectionDeclarationOwnerFromJSONTyped(json, false);
|
|
13
|
+
}
|
|
14
|
+
export function CollectionDeclarationOwnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
15
|
+
if (json == null) {
|
|
16
|
+
return json;
|
|
17
|
+
}
|
|
18
|
+
return {
|
|
19
|
+
"field": json["field"],
|
|
20
|
+
"read": json["read"]
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export function CollectionDeclarationOwnerToJSON(json) {
|
|
24
|
+
return CollectionDeclarationOwnerToJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function CollectionDeclarationOwnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
27
|
+
if (value == null) {
|
|
28
|
+
return value;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
"field": value["field"],
|
|
32
|
+
"read": value["read"]
|
|
33
|
+
};
|
|
34
|
+
}
|
|
@@ -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 CollectionDeclarationRefsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface CollectionDeclarationRefsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
field: string;
|
|
22
|
+
/**
|
|
23
|
+
* The target collection (name or database:name).
|
|
24
|
+
*/
|
|
25
|
+
collection: string;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the field holds an array of ids (from the schema); missing when the schema does not tell.
|
|
28
|
+
*/
|
|
29
|
+
many?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CollectionDeclarationRefsInner interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCollectionDeclarationRefsInner(value: object): value is CollectionDeclarationRefsInner;
|
|
35
|
+
export declare function CollectionDeclarationRefsInnerFromJSON(json: any): CollectionDeclarationRefsInner;
|
|
36
|
+
export declare function CollectionDeclarationRefsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionDeclarationRefsInner;
|
|
37
|
+
export declare function CollectionDeclarationRefsInnerToJSON(json: any): CollectionDeclarationRefsInner;
|
|
38
|
+
export declare function CollectionDeclarationRefsInnerToJSONTyped(value?: CollectionDeclarationRefsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export function instanceOfCollectionDeclarationRefsInner(value) {
|
|
2
|
+
if (!("field" in value) || value["field"] === void 0) return false;
|
|
3
|
+
if (!("collection" in value) || value["collection"] === void 0) return false;
|
|
4
|
+
return true;
|
|
5
|
+
}
|
|
6
|
+
export function CollectionDeclarationRefsInnerFromJSON(json) {
|
|
7
|
+
return CollectionDeclarationRefsInnerFromJSONTyped(json, false);
|
|
8
|
+
}
|
|
9
|
+
export function CollectionDeclarationRefsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
+
if (json == null) {
|
|
11
|
+
return json;
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
"field": json["field"],
|
|
15
|
+
"collection": json["collection"],
|
|
16
|
+
"many": json["many"] == null ? void 0 : json["many"]
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export function CollectionDeclarationRefsInnerToJSON(json) {
|
|
20
|
+
return CollectionDeclarationRefsInnerToJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
export function CollectionDeclarationRefsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
23
|
+
if (value == null) {
|
|
24
|
+
return value;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
"field": value["field"],
|
|
28
|
+
"collection": value["collection"],
|
|
29
|
+
"many": value["many"]
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -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 CollectionDeclarationSoftDelete
|
|
16
|
+
*/
|
|
17
|
+
export interface CollectionDeclarationSoftDelete {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
field: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
purgeAfterDays?: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the CollectionDeclarationSoftDelete interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfCollectionDeclarationSoftDelete(value: object): value is CollectionDeclarationSoftDelete;
|
|
31
|
+
export declare function CollectionDeclarationSoftDeleteFromJSON(json: any): CollectionDeclarationSoftDelete;
|
|
32
|
+
export declare function CollectionDeclarationSoftDeleteFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionDeclarationSoftDelete;
|
|
33
|
+
export declare function CollectionDeclarationSoftDeleteToJSON(json: any): CollectionDeclarationSoftDelete;
|
|
34
|
+
export declare function CollectionDeclarationSoftDeleteToJSONTyped(value?: CollectionDeclarationSoftDelete | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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
|
+
}
|