@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.
- package/README.md +1 -1
- package/dist/module.json +5 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/api/apis/AdminApi.d.ts +2 -2
- package/dist/runtime/api/apis/{AdminApi.mjs → AdminApi.js} +101 -65
- package/dist/runtime/api/apis/ApplicationApi.d.ts +2 -2
- package/dist/runtime/api/apis/{ApplicationApi.mjs → ApplicationApi.js} +24 -15
- package/dist/runtime/api/apis/AuthApi.d.ts +2 -2
- package/dist/runtime/api/apis/{AuthApi.mjs → AuthApi.js} +21 -15
- package/dist/runtime/api/apis/BucketApi.d.ts +2 -2
- package/dist/runtime/api/apis/{BucketApi.mjs → BucketApi.js} +24 -15
- package/dist/runtime/api/apis/CollectionApi.d.ts +2 -2
- package/dist/runtime/api/apis/{CollectionApi.mjs → CollectionApi.js} +99 -66
- package/dist/runtime/api/apis/DatabaseApi.d.ts +2 -2
- package/dist/runtime/api/apis/{DatabaseApi.mjs → DatabaseApi.js} +25 -16
- package/dist/runtime/api/apis/DocumentApi.d.ts +6 -6
- package/dist/runtime/api/apis/{DocumentApi.mjs → DocumentApi.js} +153 -93
- package/dist/runtime/api/apis/FileApi.d.ts +2 -2
- package/dist/runtime/api/apis/{FileApi.mjs → FileApi.js} +121 -76
- package/dist/runtime/api/apis/IndexApi.d.ts +2 -2
- package/dist/runtime/api/apis/{IndexApi.mjs → IndexApi.js} +119 -71
- package/dist/runtime/api/apis/InformationApi.d.ts +2 -2
- package/dist/runtime/api/apis/{InformationApi.mjs → InformationApi.js} +2 -2
- package/dist/runtime/api/apis/JobsApi.d.ts +2 -2
- package/dist/runtime/api/apis/{JobsApi.mjs → JobsApi.js} +53 -29
- package/dist/runtime/api/apis/index.d.ts +11 -11
- package/dist/runtime/api/apis/index.js +11 -0
- package/dist/runtime/api/index.d.ts +3 -3
- package/dist/runtime/api/index.js +3 -0
- package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
- package/dist/runtime/api/models/BucketInformation.js +32 -0
- package/dist/runtime/api/models/CollectionStatus.d.ts +3 -3
- package/dist/runtime/api/models/CollectionStatus.js +59 -0
- package/dist/runtime/api/models/DatabaseInfo.d.ts +2 -2
- package/dist/runtime/api/models/DatabaseInfo.js +35 -0
- package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
- package/dist/runtime/api/models/{DeleteResponse.mjs → DeleteResponse.js} +8 -12
- package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
- package/dist/runtime/api/models/{ErrorDescription.mjs → ErrorDescription.js} +10 -14
- package/dist/runtime/api/models/FileInformation.d.ts +2 -2
- package/dist/runtime/api/models/FileInformation.js +38 -0
- package/dist/runtime/api/models/Grant.d.ts +1 -1
- package/dist/runtime/api/models/Grant.js +35 -0
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +3 -3
- package/dist/runtime/api/models/IndexCreateRequest.js +29 -0
- package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
- package/dist/runtime/api/models/{IndexCreateResponse.mjs → IndexCreateResponse.js} +6 -10
- package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
- package/dist/runtime/api/models/{IndexDropResponse.mjs → IndexDropResponse.js} +6 -10
- package/dist/runtime/api/models/IndexOptionsRequest.d.ts +1 -1
- package/dist/runtime/api/models/IndexOptionsRequest.js +36 -0
- package/dist/runtime/api/models/InsertResponse.d.ts +1 -1
- package/dist/runtime/api/models/InsertResponse.js +25 -0
- package/dist/runtime/api/models/JobConfig.d.ts +1 -1
- package/dist/runtime/api/models/JobConfig.js +38 -0
- package/dist/runtime/api/models/JobInformation.d.ts +1 -1
- package/dist/runtime/api/models/JobInformation.js +44 -0
- package/dist/runtime/api/models/JsonSchema.d.ts +3 -3
- package/dist/runtime/api/models/JsonSchema.js +34 -0
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +2 -2
- package/dist/runtime/api/models/JsonSchemaDefinition.js +34 -0
- package/dist/runtime/api/models/JsonValueAny.d.ts +1 -1
- package/dist/runtime/api/models/{JsonValueAny.mjs → JsonValueAny.js} +6 -10
- package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
- package/dist/runtime/api/models/{JsonValueBoolean.mjs → JsonValueBoolean.js} +6 -10
- package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
- package/dist/runtime/api/models/{JsonValueString.mjs → JsonValueString.js} +6 -10
- package/dist/runtime/api/models/Login.d.ts +1 -1
- package/dist/runtime/api/models/{Login.mjs → Login.js} +8 -12
- package/dist/runtime/api/models/LoginResult.d.ts +2 -2
- package/dist/runtime/api/models/{LoginResult.mjs → LoginResult.js} +11 -15
- package/dist/runtime/api/models/MongoAggregateRequest.d.ts +2 -2
- package/dist/runtime/api/models/MongoAggregateRequest.js +29 -0
- package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -1
- package/dist/runtime/api/models/MongoCampConfiguration.js +35 -0
- package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -4
- package/dist/runtime/api/models/{MongoFindRequest.mjs → MongoFindRequest.js} +10 -14
- package/dist/runtime/api/models/MongoIndex.d.ts +4 -4
- package/dist/runtime/api/models/MongoIndex.js +55 -0
- package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
- package/dist/runtime/api/models/{PasswordUpdateRequest.mjs → PasswordUpdateRequest.js} +6 -10
- package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
- package/dist/runtime/api/models/{PipelineStage.mjs → PipelineStage.js} +8 -12
- package/dist/runtime/api/models/Role.d.ts +2 -2
- package/dist/runtime/api/models/Role.js +32 -0
- package/dist/runtime/api/models/SchemaAnalysis.d.ts +2 -2
- package/dist/runtime/api/models/SchemaAnalysis.js +35 -0
- package/dist/runtime/api/models/SchemaAnalysisField.d.ts +2 -2
- package/dist/runtime/api/models/SchemaAnalysisField.js +40 -0
- package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
- package/dist/runtime/api/models/{SchemaAnalysisFieldType.mjs → SchemaAnalysisFieldType.js} +10 -14
- package/dist/runtime/api/models/SettingsResponse.d.ts +2 -2
- package/dist/runtime/api/models/SettingsResponse.js +29 -0
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +2 -2
- package/dist/runtime/api/models/UpdateFileInformationRequest.js +24 -0
- package/dist/runtime/api/models/UpdateRequest.d.ts +3 -3
- package/dist/runtime/api/models/{UpdateRequest.mjs → UpdateRequest.js} +8 -12
- package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
- package/dist/runtime/api/models/UpdateResponse.js +31 -0
- package/dist/runtime/api/models/UpdateRoleRequest.d.ts +2 -2
- package/dist/runtime/api/models/UpdateRoleRequest.js +29 -0
- package/dist/runtime/api/models/UserInformation.d.ts +1 -1
- package/dist/runtime/api/models/UserInformation.js +30 -0
- package/dist/runtime/api/models/UserProfile.d.ts +2 -2
- package/dist/runtime/api/models/UserProfile.js +36 -0
- package/dist/runtime/api/models/Version.d.ts +1 -1
- package/dist/runtime/api/models/Version.js +29 -0
- package/dist/runtime/api/models/index.d.ts +39 -39
- package/dist/runtime/api/models/index.js +39 -0
- package/dist/runtime/api/runtime.d.ts +2 -3
- package/dist/runtime/api/{runtime.mjs → runtime.js} +0 -4
- package/dist/runtime/composables/mongocampApi.d.ts +1 -1
- package/dist/runtime/composables/{mongocampApi.mjs → mongocampApi.js} +3 -3
- package/dist/runtime/composables/mongocampAuth.d.ts +1 -1
- package/dist/runtime/composables/{mongocampAuth.mjs → mongocampAuth.js} +3 -3
- package/dist/runtime/composables/mongocampSearch.d.ts +1 -1
- package/dist/runtime/composables/{mongocampSearch.mjs → mongocampSearch.js} +1 -1
- package/dist/runtime/composables/mongocampStorage.d.ts +5 -0
- package/dist/runtime/composables/mongocampUser.d.ts +1 -1
- package/dist/types.d.mts +1 -16
- package/dist/types.d.ts +1 -16
- package/package.json +18 -17
- package/dist/runtime/api/apis/index.mjs +0 -11
- package/dist/runtime/api/index.mjs +0 -3
- package/dist/runtime/api/models/BucketInformation.mjs +0 -36
- package/dist/runtime/api/models/CollectionStatus.mjs +0 -63
- package/dist/runtime/api/models/DatabaseInfo.mjs +0 -39
- package/dist/runtime/api/models/FileInformation.mjs +0 -42
- package/dist/runtime/api/models/Grant.mjs +0 -39
- package/dist/runtime/api/models/IndexCreateRequest.mjs +0 -34
- package/dist/runtime/api/models/IndexOptionsRequest.mjs +0 -41
- package/dist/runtime/api/models/InsertResponse.mjs +0 -30
- package/dist/runtime/api/models/JobConfig.mjs +0 -42
- package/dist/runtime/api/models/JobInformation.mjs +0 -49
- package/dist/runtime/api/models/JsonSchema.mjs +0 -38
- package/dist/runtime/api/models/JsonSchemaDefinition.mjs +0 -39
- package/dist/runtime/api/models/MongoAggregateRequest.mjs +0 -34
- package/dist/runtime/api/models/MongoCampConfiguration.mjs +0 -39
- package/dist/runtime/api/models/MongoIndex.mjs +0 -60
- package/dist/runtime/api/models/Role.mjs +0 -37
- package/dist/runtime/api/models/SchemaAnalysis.mjs +0 -40
- package/dist/runtime/api/models/SchemaAnalysisField.mjs +0 -45
- package/dist/runtime/api/models/SettingsResponse.mjs +0 -34
- package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +0 -29
- package/dist/runtime/api/models/UpdateResponse.mjs +0 -36
- package/dist/runtime/api/models/UpdateRoleRequest.mjs +0 -34
- package/dist/runtime/api/models/UserInformation.mjs +0 -35
- package/dist/runtime/api/models/UserProfile.mjs +0 -41
- package/dist/runtime/api/models/Version.mjs +0 -33
- package/dist/runtime/api/models/index.mjs +0 -39
- /package/dist/runtime/composables/{mongocampStorage.mjs → mongocampStorage.js} +0 -0
- /package/dist/runtime/composables/{mongocampUrl.mjs → mongocampUrl.js} +0 -0
- /package/dist/runtime/composables/{mongocampUser.mjs → mongocampUser.js} +0 -0
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export function instanceOfGrant(value) {
|
|
2
|
-
let isInstance = true;
|
|
3
|
-
isInstance = isInstance && "name" in value;
|
|
4
|
-
isInstance = isInstance && "read" in value;
|
|
5
|
-
isInstance = isInstance && "write" in value;
|
|
6
|
-
isInstance = isInstance && "administrate" in value;
|
|
7
|
-
isInstance = isInstance && "grantType" in value;
|
|
8
|
-
return isInstance;
|
|
9
|
-
}
|
|
10
|
-
export function GrantFromJSON(json) {
|
|
11
|
-
return GrantFromJSONTyped(json, false);
|
|
12
|
-
}
|
|
13
|
-
export function GrantFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
-
if (json === void 0 || json === null) {
|
|
15
|
-
return json;
|
|
16
|
-
}
|
|
17
|
-
return {
|
|
18
|
-
"name": json["name"],
|
|
19
|
-
"read": json["read"],
|
|
20
|
-
"write": json["write"],
|
|
21
|
-
"administrate": json["administrate"],
|
|
22
|
-
"grantType": json["grantType"]
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export function GrantToJSON(value) {
|
|
26
|
-
if (value === void 0) {
|
|
27
|
-
return void 0;
|
|
28
|
-
}
|
|
29
|
-
if (value === null) {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
"name": value.name,
|
|
34
|
-
"read": value.read,
|
|
35
|
-
"write": value.write,
|
|
36
|
-
"administrate": value.administrate,
|
|
37
|
-
"grantType": value.grantType
|
|
38
|
-
};
|
|
39
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
|
-
import {
|
|
3
|
-
IndexOptionsRequestFromJSON,
|
|
4
|
-
IndexOptionsRequestToJSON
|
|
5
|
-
} from "./IndexOptionsRequest.mjs";
|
|
6
|
-
export function instanceOfIndexCreateRequest(value) {
|
|
7
|
-
let isInstance = true;
|
|
8
|
-
isInstance = isInstance && "keys" in value;
|
|
9
|
-
return isInstance;
|
|
10
|
-
}
|
|
11
|
-
export function IndexCreateRequestFromJSON(json) {
|
|
12
|
-
return IndexCreateRequestFromJSONTyped(json, false);
|
|
13
|
-
}
|
|
14
|
-
export function IndexCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
15
|
-
if (json === void 0 || json === null) {
|
|
16
|
-
return json;
|
|
17
|
-
}
|
|
18
|
-
return {
|
|
19
|
-
"keys": json["keys"],
|
|
20
|
-
"indexOptionsRequest": !exists(json, "indexOptionsRequest") ? void 0 : IndexOptionsRequestFromJSON(json["indexOptionsRequest"])
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export function IndexCreateRequestToJSON(value) {
|
|
24
|
-
if (value === void 0) {
|
|
25
|
-
return void 0;
|
|
26
|
-
}
|
|
27
|
-
if (value === null) {
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
"keys": value.keys,
|
|
32
|
-
"indexOptionsRequest": IndexOptionsRequestToJSON(value.indexOptionsRequest)
|
|
33
|
-
};
|
|
34
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
|
-
export function instanceOfIndexOptionsRequest(value) {
|
|
3
|
-
let isInstance = true;
|
|
4
|
-
return isInstance;
|
|
5
|
-
}
|
|
6
|
-
export function IndexOptionsRequestFromJSON(json) {
|
|
7
|
-
return IndexOptionsRequestFromJSONTyped(json, false);
|
|
8
|
-
}
|
|
9
|
-
export function IndexOptionsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
-
if (json === void 0 || json === null) {
|
|
11
|
-
return json;
|
|
12
|
-
}
|
|
13
|
-
return {
|
|
14
|
-
"name": !exists(json, "name") ? void 0 : json["name"],
|
|
15
|
-
"background": !exists(json, "background") ? void 0 : json["background"],
|
|
16
|
-
"defaultLanguage": !exists(json, "defaultLanguage") ? void 0 : json["defaultLanguage"],
|
|
17
|
-
"textVersion": !exists(json, "textVersion") ? void 0 : json["textVersion"],
|
|
18
|
-
"expireAfter": !exists(json, "expireAfter") ? void 0 : json["expireAfter"],
|
|
19
|
-
"unique": !exists(json, "unique") ? void 0 : json["unique"],
|
|
20
|
-
"max": !exists(json, "max") ? void 0 : json["max"],
|
|
21
|
-
"min": !exists(json, "min") ? void 0 : json["min"]
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export function IndexOptionsRequestToJSON(value) {
|
|
25
|
-
if (value === void 0) {
|
|
26
|
-
return void 0;
|
|
27
|
-
}
|
|
28
|
-
if (value === null) {
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
"name": value.name,
|
|
33
|
-
"background": value.background,
|
|
34
|
-
"defaultLanguage": value.defaultLanguage,
|
|
35
|
-
"textVersion": value.textVersion,
|
|
36
|
-
"expireAfter": value.expireAfter,
|
|
37
|
-
"unique": value.unique,
|
|
38
|
-
"max": value.max,
|
|
39
|
-
"min": value.min
|
|
40
|
-
};
|
|
41
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
|
-
export function instanceOfInsertResponse(value) {
|
|
3
|
-
let isInstance = true;
|
|
4
|
-
isInstance = isInstance && "wasAcknowledged" in value;
|
|
5
|
-
return isInstance;
|
|
6
|
-
}
|
|
7
|
-
export function InsertResponseFromJSON(json) {
|
|
8
|
-
return InsertResponseFromJSONTyped(json, false);
|
|
9
|
-
}
|
|
10
|
-
export function InsertResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
11
|
-
if (json === void 0 || json === null) {
|
|
12
|
-
return json;
|
|
13
|
-
}
|
|
14
|
-
return {
|
|
15
|
-
"wasAcknowledged": json["wasAcknowledged"],
|
|
16
|
-
"insertedIds": !exists(json, "insertedIds") ? void 0 : json["insertedIds"]
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export function InsertResponseToJSON(value) {
|
|
20
|
-
if (value === void 0) {
|
|
21
|
-
return void 0;
|
|
22
|
-
}
|
|
23
|
-
if (value === null) {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
return {
|
|
27
|
-
"wasAcknowledged": value.wasAcknowledged,
|
|
28
|
-
"insertedIds": value.insertedIds
|
|
29
|
-
};
|
|
30
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export function instanceOfJobConfig(value) {
|
|
2
|
-
let isInstance = true;
|
|
3
|
-
isInstance = isInstance && "name" in value;
|
|
4
|
-
isInstance = isInstance && "className" in value;
|
|
5
|
-
isInstance = isInstance && "description" in value;
|
|
6
|
-
isInstance = isInstance && "cronExpression" in value;
|
|
7
|
-
isInstance = isInstance && "group" in value;
|
|
8
|
-
isInstance = isInstance && "priority" in value;
|
|
9
|
-
return isInstance;
|
|
10
|
-
}
|
|
11
|
-
export function JobConfigFromJSON(json) {
|
|
12
|
-
return JobConfigFromJSONTyped(json, false);
|
|
13
|
-
}
|
|
14
|
-
export function JobConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
15
|
-
if (json === void 0 || json === null) {
|
|
16
|
-
return json;
|
|
17
|
-
}
|
|
18
|
-
return {
|
|
19
|
-
"name": json["name"],
|
|
20
|
-
"className": json["className"],
|
|
21
|
-
"description": json["description"],
|
|
22
|
-
"cronExpression": json["cronExpression"],
|
|
23
|
-
"group": json["group"],
|
|
24
|
-
"priority": json["priority"]
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export function JobConfigToJSON(value) {
|
|
28
|
-
if (value === void 0) {
|
|
29
|
-
return void 0;
|
|
30
|
-
}
|
|
31
|
-
if (value === null) {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
"name": value.name,
|
|
36
|
-
"className": value.className,
|
|
37
|
-
"description": value.description,
|
|
38
|
-
"cronExpression": value.cronExpression,
|
|
39
|
-
"group": value.group,
|
|
40
|
-
"priority": value.priority
|
|
41
|
-
};
|
|
42
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
|
-
export function instanceOfJobInformation(value) {
|
|
3
|
-
let isInstance = true;
|
|
4
|
-
isInstance = isInstance && "name" in value;
|
|
5
|
-
isInstance = isInstance && "group" in value;
|
|
6
|
-
isInstance = isInstance && "jobClassName" in value;
|
|
7
|
-
isInstance = isInstance && "description" in value;
|
|
8
|
-
isInstance = isInstance && "cronExpression" in value;
|
|
9
|
-
isInstance = isInstance && "priority" in value;
|
|
10
|
-
return isInstance;
|
|
11
|
-
}
|
|
12
|
-
export function JobInformationFromJSON(json) {
|
|
13
|
-
return JobInformationFromJSONTyped(json, false);
|
|
14
|
-
}
|
|
15
|
-
export function JobInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
16
|
-
if (json === void 0 || json === null) {
|
|
17
|
-
return json;
|
|
18
|
-
}
|
|
19
|
-
return {
|
|
20
|
-
"name": json["name"],
|
|
21
|
-
"group": json["group"],
|
|
22
|
-
"jobClassName": json["jobClassName"],
|
|
23
|
-
"description": json["description"],
|
|
24
|
-
"cronExpression": json["cronExpression"],
|
|
25
|
-
"priority": json["priority"],
|
|
26
|
-
"lastScheduledFireTime": !exists(json, "lastScheduledFireTime") ? void 0 : new Date(json["lastScheduledFireTime"]),
|
|
27
|
-
"nextScheduledFireTime": !exists(json, "nextScheduledFireTime") ? void 0 : new Date(json["nextScheduledFireTime"]),
|
|
28
|
-
"scheduleInformation": !exists(json, "scheduleInformation") ? void 0 : json["scheduleInformation"]
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export function JobInformationToJSON(value) {
|
|
32
|
-
if (value === void 0) {
|
|
33
|
-
return void 0;
|
|
34
|
-
}
|
|
35
|
-
if (value === null) {
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
"name": value.name,
|
|
40
|
-
"group": value.group,
|
|
41
|
-
"jobClassName": value.jobClassName,
|
|
42
|
-
"description": value.description,
|
|
43
|
-
"cronExpression": value.cronExpression,
|
|
44
|
-
"priority": value.priority,
|
|
45
|
-
"lastScheduledFireTime": value.lastScheduledFireTime === void 0 ? void 0 : value.lastScheduledFireTime.toISOString(),
|
|
46
|
-
"nextScheduledFireTime": value.nextScheduledFireTime === void 0 ? void 0 : value.nextScheduledFireTime.toISOString(),
|
|
47
|
-
"scheduleInformation": value.scheduleInformation
|
|
48
|
-
};
|
|
49
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { mapValues } from "../runtime.mjs";
|
|
2
|
-
import {
|
|
3
|
-
JsonSchemaDefinitionFromJSON,
|
|
4
|
-
JsonSchemaDefinitionToJSON
|
|
5
|
-
} from "./JsonSchemaDefinition.mjs";
|
|
6
|
-
export function instanceOfJsonSchema(value) {
|
|
7
|
-
let isInstance = true;
|
|
8
|
-
isInstance = isInstance && "$schema" in value;
|
|
9
|
-
isInstance = isInstance && "$ref" in value;
|
|
10
|
-
isInstance = isInstance && "definitions" in value;
|
|
11
|
-
return isInstance;
|
|
12
|
-
}
|
|
13
|
-
export function JsonSchemaFromJSON(json) {
|
|
14
|
-
return JsonSchemaFromJSONTyped(json, false);
|
|
15
|
-
}
|
|
16
|
-
export function JsonSchemaFromJSONTyped(json, ignoreDiscriminator) {
|
|
17
|
-
if (json === void 0 || json === null) {
|
|
18
|
-
return json;
|
|
19
|
-
}
|
|
20
|
-
return {
|
|
21
|
-
"$schema": json["$schema"],
|
|
22
|
-
"$ref": json["$ref"],
|
|
23
|
-
"definitions": mapValues(json["definitions"], JsonSchemaDefinitionFromJSON)
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export function JsonSchemaToJSON(value) {
|
|
27
|
-
if (value === void 0) {
|
|
28
|
-
return void 0;
|
|
29
|
-
}
|
|
30
|
-
if (value === null) {
|
|
31
|
-
return null;
|
|
32
|
-
}
|
|
33
|
-
return {
|
|
34
|
-
"$schema": value.$schema,
|
|
35
|
-
"$ref": value.$ref,
|
|
36
|
-
"definitions": mapValues(value.definitions, JsonSchemaDefinitionToJSON)
|
|
37
|
-
};
|
|
38
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
|
-
export function instanceOfJsonSchemaDefinition(value) {
|
|
3
|
-
let isInstance = true;
|
|
4
|
-
isInstance = isInstance && "type" in value;
|
|
5
|
-
isInstance = isInstance && "title" in value;
|
|
6
|
-
isInstance = isInstance && "additionalProperties" in value;
|
|
7
|
-
isInstance = isInstance && "properties" in value;
|
|
8
|
-
return isInstance;
|
|
9
|
-
}
|
|
10
|
-
export function JsonSchemaDefinitionFromJSON(json) {
|
|
11
|
-
return JsonSchemaDefinitionFromJSONTyped(json, false);
|
|
12
|
-
}
|
|
13
|
-
export function JsonSchemaDefinitionFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
-
if (json === void 0 || json === null) {
|
|
15
|
-
return json;
|
|
16
|
-
}
|
|
17
|
-
return {
|
|
18
|
-
"type": json["type"],
|
|
19
|
-
"title": json["title"],
|
|
20
|
-
"additionalProperties": json["additionalProperties"],
|
|
21
|
-
"required": !exists(json, "required") ? void 0 : json["required"],
|
|
22
|
-
"properties": json["properties"]
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export function JsonSchemaDefinitionToJSON(value) {
|
|
26
|
-
if (value === void 0) {
|
|
27
|
-
return void 0;
|
|
28
|
-
}
|
|
29
|
-
if (value === null) {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
"type": value.type,
|
|
34
|
-
"title": value.title,
|
|
35
|
-
"additionalProperties": value.additionalProperties,
|
|
36
|
-
"required": value.required,
|
|
37
|
-
"properties": value.properties
|
|
38
|
-
};
|
|
39
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
|
-
import {
|
|
3
|
-
PipelineStageFromJSON,
|
|
4
|
-
PipelineStageToJSON
|
|
5
|
-
} from "./PipelineStage.mjs";
|
|
6
|
-
export function instanceOfMongoAggregateRequest(value) {
|
|
7
|
-
let isInstance = true;
|
|
8
|
-
isInstance = isInstance && "allowDiskUse" in value;
|
|
9
|
-
return isInstance;
|
|
10
|
-
}
|
|
11
|
-
export function MongoAggregateRequestFromJSON(json) {
|
|
12
|
-
return MongoAggregateRequestFromJSONTyped(json, false);
|
|
13
|
-
}
|
|
14
|
-
export function MongoAggregateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
15
|
-
if (json === void 0 || json === null) {
|
|
16
|
-
return json;
|
|
17
|
-
}
|
|
18
|
-
return {
|
|
19
|
-
"pipeline": !exists(json, "pipeline") ? void 0 : json["pipeline"].map(PipelineStageFromJSON),
|
|
20
|
-
"allowDiskUse": json["allowDiskUse"]
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export function MongoAggregateRequestToJSON(value) {
|
|
24
|
-
if (value === void 0) {
|
|
25
|
-
return void 0;
|
|
26
|
-
}
|
|
27
|
-
if (value === null) {
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
"pipeline": value.pipeline === void 0 ? void 0 : value.pipeline.map(PipelineStageToJSON),
|
|
32
|
-
"allowDiskUse": value.allowDiskUse
|
|
33
|
-
};
|
|
34
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export function instanceOfMongoCampConfiguration(value) {
|
|
2
|
-
let isInstance = true;
|
|
3
|
-
isInstance = isInstance && "key" in value;
|
|
4
|
-
isInstance = isInstance && "value" in value;
|
|
5
|
-
isInstance = isInstance && "configType" in value;
|
|
6
|
-
isInstance = isInstance && "comment" in value;
|
|
7
|
-
isInstance = isInstance && "needsRestartForActivation" in value;
|
|
8
|
-
return isInstance;
|
|
9
|
-
}
|
|
10
|
-
export function MongoCampConfigurationFromJSON(json) {
|
|
11
|
-
return MongoCampConfigurationFromJSONTyped(json, false);
|
|
12
|
-
}
|
|
13
|
-
export function MongoCampConfigurationFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
-
if (json === void 0 || json === null) {
|
|
15
|
-
return json;
|
|
16
|
-
}
|
|
17
|
-
return {
|
|
18
|
-
"key": json["key"],
|
|
19
|
-
"value": json["value"],
|
|
20
|
-
"configType": json["configType"],
|
|
21
|
-
"comment": json["comment"],
|
|
22
|
-
"needsRestartForActivation": json["needsRestartForActivation"]
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export function MongoCampConfigurationToJSON(value) {
|
|
26
|
-
if (value === void 0) {
|
|
27
|
-
return void 0;
|
|
28
|
-
}
|
|
29
|
-
if (value === null) {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
"key": value.key,
|
|
34
|
-
"value": value.value,
|
|
35
|
-
"configType": value.configType,
|
|
36
|
-
"comment": value.comment,
|
|
37
|
-
"needsRestartForActivation": value.needsRestartForActivation
|
|
38
|
-
};
|
|
39
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
|
-
export function instanceOfMongoIndex(value) {
|
|
3
|
-
let isInstance = true;
|
|
4
|
-
isInstance = isInstance && "name" in value;
|
|
5
|
-
isInstance = isInstance && "unique" in value;
|
|
6
|
-
isInstance = isInstance && "version" in value;
|
|
7
|
-
isInstance = isInstance && "namespace" in value;
|
|
8
|
-
isInstance = isInstance && "keys" in value;
|
|
9
|
-
isInstance = isInstance && "weights" in value;
|
|
10
|
-
isInstance = isInstance && "expire" in value;
|
|
11
|
-
isInstance = isInstance && "expireAfterSeconds" in value;
|
|
12
|
-
isInstance = isInstance && "text" in value;
|
|
13
|
-
isInstance = isInstance && "fetched" in value;
|
|
14
|
-
isInstance = isInstance && "map" in value;
|
|
15
|
-
return isInstance;
|
|
16
|
-
}
|
|
17
|
-
export function MongoIndexFromJSON(json) {
|
|
18
|
-
return MongoIndexFromJSONTyped(json, false);
|
|
19
|
-
}
|
|
20
|
-
export function MongoIndexFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
-
if (json === void 0 || json === null) {
|
|
22
|
-
return json;
|
|
23
|
-
}
|
|
24
|
-
return {
|
|
25
|
-
"name": json["name"],
|
|
26
|
-
"fields": !exists(json, "fields") ? void 0 : json["fields"],
|
|
27
|
-
"unique": json["unique"],
|
|
28
|
-
"version": json["version"],
|
|
29
|
-
"namespace": json["namespace"],
|
|
30
|
-
"keys": json["keys"],
|
|
31
|
-
"weights": json["weights"],
|
|
32
|
-
"expire": json["expire"],
|
|
33
|
-
"expireAfterSeconds": json["expireAfterSeconds"],
|
|
34
|
-
"text": json["text"],
|
|
35
|
-
"fetched": new Date(json["fetched"]),
|
|
36
|
-
"map": json["map"]
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
export function MongoIndexToJSON(value) {
|
|
40
|
-
if (value === void 0) {
|
|
41
|
-
return void 0;
|
|
42
|
-
}
|
|
43
|
-
if (value === null) {
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
"name": value.name,
|
|
48
|
-
"fields": value.fields,
|
|
49
|
-
"unique": value.unique,
|
|
50
|
-
"version": value.version,
|
|
51
|
-
"namespace": value.namespace,
|
|
52
|
-
"keys": value.keys,
|
|
53
|
-
"weights": value.weights,
|
|
54
|
-
"expire": value.expire,
|
|
55
|
-
"expireAfterSeconds": value.expireAfterSeconds,
|
|
56
|
-
"text": value.text,
|
|
57
|
-
"fetched": value.fetched.toISOString(),
|
|
58
|
-
"map": value.map
|
|
59
|
-
};
|
|
60
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
|
-
import {
|
|
3
|
-
GrantFromJSON,
|
|
4
|
-
GrantToJSON
|
|
5
|
-
} from "./Grant.mjs";
|
|
6
|
-
export function instanceOfRole(value) {
|
|
7
|
-
let isInstance = true;
|
|
8
|
-
isInstance = isInstance && "name" in value;
|
|
9
|
-
isInstance = isInstance && "isAdmin" in value;
|
|
10
|
-
return isInstance;
|
|
11
|
-
}
|
|
12
|
-
export function RoleFromJSON(json) {
|
|
13
|
-
return RoleFromJSONTyped(json, false);
|
|
14
|
-
}
|
|
15
|
-
export function RoleFromJSONTyped(json, ignoreDiscriminator) {
|
|
16
|
-
if (json === void 0 || json === null) {
|
|
17
|
-
return json;
|
|
18
|
-
}
|
|
19
|
-
return {
|
|
20
|
-
"name": json["name"],
|
|
21
|
-
"isAdmin": json["isAdmin"],
|
|
22
|
-
"collectionGrants": !exists(json, "collectionGrants") ? void 0 : json["collectionGrants"].map(GrantFromJSON)
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export function RoleToJSON(value) {
|
|
26
|
-
if (value === void 0) {
|
|
27
|
-
return void 0;
|
|
28
|
-
}
|
|
29
|
-
if (value === null) {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
"name": value.name,
|
|
34
|
-
"isAdmin": value.isAdmin,
|
|
35
|
-
"collectionGrants": value.collectionGrants === void 0 ? void 0 : value.collectionGrants.map(GrantToJSON)
|
|
36
|
-
};
|
|
37
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
|
-
import {
|
|
3
|
-
SchemaAnalysisFieldFromJSON,
|
|
4
|
-
SchemaAnalysisFieldToJSON
|
|
5
|
-
} from "./SchemaAnalysisField.mjs";
|
|
6
|
-
export function instanceOfSchemaAnalysis(value) {
|
|
7
|
-
let isInstance = true;
|
|
8
|
-
isInstance = isInstance && "count" in value;
|
|
9
|
-
isInstance = isInstance && "sample" in value;
|
|
10
|
-
isInstance = isInstance && "percentageOfAnalysed" in value;
|
|
11
|
-
return isInstance;
|
|
12
|
-
}
|
|
13
|
-
export function SchemaAnalysisFromJSON(json) {
|
|
14
|
-
return SchemaAnalysisFromJSONTyped(json, false);
|
|
15
|
-
}
|
|
16
|
-
export function SchemaAnalysisFromJSONTyped(json, ignoreDiscriminator) {
|
|
17
|
-
if (json === void 0 || json === null) {
|
|
18
|
-
return json;
|
|
19
|
-
}
|
|
20
|
-
return {
|
|
21
|
-
"count": json["count"],
|
|
22
|
-
"sample": json["sample"],
|
|
23
|
-
"percentageOfAnalysed": json["percentageOfAnalysed"],
|
|
24
|
-
"fields": !exists(json, "fields") ? void 0 : json["fields"].map(SchemaAnalysisFieldFromJSON)
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export function SchemaAnalysisToJSON(value) {
|
|
28
|
-
if (value === void 0) {
|
|
29
|
-
return void 0;
|
|
30
|
-
}
|
|
31
|
-
if (value === null) {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
"count": value.count,
|
|
36
|
-
"sample": value.sample,
|
|
37
|
-
"percentageOfAnalysed": value.percentageOfAnalysed,
|
|
38
|
-
"fields": value.fields === void 0 ? void 0 : value.fields.map(SchemaAnalysisFieldToJSON)
|
|
39
|
-
};
|
|
40
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
|
-
import {
|
|
3
|
-
SchemaAnalysisFieldTypeFromJSON,
|
|
4
|
-
SchemaAnalysisFieldTypeToJSON
|
|
5
|
-
} from "./SchemaAnalysisFieldType.mjs";
|
|
6
|
-
export function instanceOfSchemaAnalysisField(value) {
|
|
7
|
-
let isInstance = true;
|
|
8
|
-
isInstance = isInstance && "name" in value;
|
|
9
|
-
isInstance = isInstance && "fullName" in value;
|
|
10
|
-
isInstance = isInstance && "count" in value;
|
|
11
|
-
isInstance = isInstance && "percentageOfParent" in value;
|
|
12
|
-
return isInstance;
|
|
13
|
-
}
|
|
14
|
-
export function SchemaAnalysisFieldFromJSON(json) {
|
|
15
|
-
return SchemaAnalysisFieldFromJSONTyped(json, false);
|
|
16
|
-
}
|
|
17
|
-
export function SchemaAnalysisFieldFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
-
if (json === void 0 || json === null) {
|
|
19
|
-
return json;
|
|
20
|
-
}
|
|
21
|
-
return {
|
|
22
|
-
"name": json["name"],
|
|
23
|
-
"fullName": json["fullName"],
|
|
24
|
-
"fieldTypes": !exists(json, "fieldTypes") ? void 0 : json["fieldTypes"].map(SchemaAnalysisFieldTypeFromJSON),
|
|
25
|
-
"count": json["count"],
|
|
26
|
-
"percentageOfParent": json["percentageOfParent"],
|
|
27
|
-
"subFields": !exists(json, "subFields") ? void 0 : json["subFields"].map(SchemaAnalysisFieldFromJSON)
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export function SchemaAnalysisFieldToJSON(value) {
|
|
31
|
-
if (value === void 0) {
|
|
32
|
-
return void 0;
|
|
33
|
-
}
|
|
34
|
-
if (value === null) {
|
|
35
|
-
return null;
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
"name": value.name,
|
|
39
|
-
"fullName": value.fullName,
|
|
40
|
-
"fieldTypes": value.fieldTypes === void 0 ? void 0 : value.fieldTypes.map(SchemaAnalysisFieldTypeToJSON),
|
|
41
|
-
"count": value.count,
|
|
42
|
-
"percentageOfParent": value.percentageOfParent,
|
|
43
|
-
"subFields": value.subFields === void 0 ? void 0 : value.subFields.map(SchemaAnalysisFieldToJSON)
|
|
44
|
-
};
|
|
45
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
|
-
export function instanceOfSettingsResponse(value) {
|
|
3
|
-
let isInstance = true;
|
|
4
|
-
isInstance = isInstance && "configurations" in value;
|
|
5
|
-
return isInstance;
|
|
6
|
-
}
|
|
7
|
-
export function SettingsResponseFromJSON(json) {
|
|
8
|
-
return SettingsResponseFromJSONTyped(json, false);
|
|
9
|
-
}
|
|
10
|
-
export function SettingsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
11
|
-
if (json === void 0 || json === null) {
|
|
12
|
-
return json;
|
|
13
|
-
}
|
|
14
|
-
return {
|
|
15
|
-
"routesPlugins": !exists(json, "routesPlugins") ? void 0 : json["routesPlugins"],
|
|
16
|
-
"filePlugins": !exists(json, "filePlugins") ? void 0 : json["filePlugins"],
|
|
17
|
-
"ignoredPlugins": !exists(json, "ignoredPlugins") ? void 0 : json["ignoredPlugins"],
|
|
18
|
-
"configurations": json["configurations"]
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export function SettingsResponseToJSON(value) {
|
|
22
|
-
if (value === void 0) {
|
|
23
|
-
return void 0;
|
|
24
|
-
}
|
|
25
|
-
if (value === null) {
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
"routesPlugins": value.routesPlugins,
|
|
30
|
-
"filePlugins": value.filePlugins,
|
|
31
|
-
"ignoredPlugins": value.ignoredPlugins,
|
|
32
|
-
"configurations": value.configurations
|
|
33
|
-
};
|
|
34
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
|
-
export function instanceOfUpdateFileInformationRequest(value) {
|
|
3
|
-
let isInstance = true;
|
|
4
|
-
return isInstance;
|
|
5
|
-
}
|
|
6
|
-
export function UpdateFileInformationRequestFromJSON(json) {
|
|
7
|
-
return UpdateFileInformationRequestFromJSONTyped(json, false);
|
|
8
|
-
}
|
|
9
|
-
export function UpdateFileInformationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
-
if (json === void 0 || json === null) {
|
|
11
|
-
return json;
|
|
12
|
-
}
|
|
13
|
-
return {
|
|
14
|
-
"filename": !exists(json, "filename") ? void 0 : json["filename"],
|
|
15
|
-
"metadata": !exists(json, "metadata") ? void 0 : json["metadata"]
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export function UpdateFileInformationRequestToJSON(value) {
|
|
19
|
-
if (value === void 0) {
|
|
20
|
-
return void 0;
|
|
21
|
-
}
|
|
22
|
-
if (value === null) {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
"filename": value.filename,
|
|
27
|
-
"metadata": value.metadata
|
|
28
|
-
};
|
|
29
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
|
-
export function instanceOfUpdateResponse(value) {
|
|
3
|
-
let isInstance = true;
|
|
4
|
-
isInstance = isInstance && "wasAcknowledged" in value;
|
|
5
|
-
isInstance = isInstance && "modifiedCount" in value;
|
|
6
|
-
isInstance = isInstance && "matchedCount" in value;
|
|
7
|
-
return isInstance;
|
|
8
|
-
}
|
|
9
|
-
export function UpdateResponseFromJSON(json) {
|
|
10
|
-
return UpdateResponseFromJSONTyped(json, false);
|
|
11
|
-
}
|
|
12
|
-
export function UpdateResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
-
if (json === void 0 || json === null) {
|
|
14
|
-
return json;
|
|
15
|
-
}
|
|
16
|
-
return {
|
|
17
|
-
"wasAcknowledged": json["wasAcknowledged"],
|
|
18
|
-
"upsertedIds": !exists(json, "upsertedIds") ? void 0 : json["upsertedIds"],
|
|
19
|
-
"modifiedCount": json["modifiedCount"],
|
|
20
|
-
"matchedCount": json["matchedCount"]
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export function UpdateResponseToJSON(value) {
|
|
24
|
-
if (value === void 0) {
|
|
25
|
-
return void 0;
|
|
26
|
-
}
|
|
27
|
-
if (value === null) {
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
"wasAcknowledged": value.wasAcknowledged,
|
|
32
|
-
"upsertedIds": value.upsertedIds,
|
|
33
|
-
"modifiedCount": value.modifiedCount,
|
|
34
|
-
"matchedCount": value.matchedCount
|
|
35
|
-
};
|
|
36
|
-
}
|