@sfxcode/nuxt-mongocamp-server 1.1.2 → 1.2.1
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/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/api/apis/AdminApi.mjs +99 -63
- package/dist/runtime/api/apis/ApplicationApi.mjs +22 -13
- package/dist/runtime/api/apis/AuthApi.mjs +19 -13
- package/dist/runtime/api/apis/BucketApi.mjs +22 -13
- package/dist/runtime/api/apis/CollectionApi.mjs +97 -64
- package/dist/runtime/api/apis/DatabaseApi.mjs +23 -14
- package/dist/runtime/api/apis/DocumentApi.d.ts +5 -5
- package/dist/runtime/api/apis/DocumentApi.mjs +151 -91
- package/dist/runtime/api/apis/FileApi.mjs +119 -74
- package/dist/runtime/api/apis/IndexApi.mjs +117 -69
- package/dist/runtime/api/apis/JobsApi.mjs +51 -27
- package/dist/runtime/api/models/BucketInformation.mjs +16 -16
- package/dist/runtime/api/models/CollectionStatus.d.ts +2 -2
- package/dist/runtime/api/models/CollectionStatus.mjs +43 -34
- package/dist/runtime/api/models/DatabaseInfo.d.ts +1 -1
- package/dist/runtime/api/models/DatabaseInfo.mjs +19 -18
- package/dist/runtime/api/models/DeleteResponse.mjs +10 -12
- package/dist/runtime/api/models/ErrorDescription.mjs +13 -14
- package/dist/runtime/api/models/FileInformation.d.ts +1 -1
- package/dist/runtime/api/models/FileInformation.mjs +22 -20
- package/dist/runtime/api/models/Grant.mjs +19 -18
- package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -1
- package/dist/runtime/api/models/IndexCreateRequest.mjs +9 -13
- package/dist/runtime/api/models/IndexCreateResponse.mjs +7 -10
- package/dist/runtime/api/models/IndexDropResponse.mjs +7 -10
- package/dist/runtime/api/models/IndexOptionsRequest.mjs +20 -25
- package/dist/runtime/api/models/InsertResponse.mjs +9 -13
- package/dist/runtime/api/models/JobConfig.mjs +22 -20
- package/dist/runtime/api/models/JobInformation.mjs +28 -27
- package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
- package/dist/runtime/api/models/JsonSchema.mjs +14 -20
- package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +1 -1
- package/dist/runtime/api/models/JsonSchemaDefinition.mjs +18 -19
- package/dist/runtime/api/models/JsonValueAny.mjs +7 -10
- package/dist/runtime/api/models/JsonValueBoolean.mjs +7 -10
- package/dist/runtime/api/models/JsonValueString.mjs +7 -10
- package/dist/runtime/api/models/Login.mjs +10 -12
- package/dist/runtime/api/models/LoginResult.mjs +13 -14
- package/dist/runtime/api/models/MongoAggregateRequest.mjs +9 -13
- package/dist/runtime/api/models/MongoCampConfiguration.mjs +19 -18
- package/dist/runtime/api/models/MongoFindRequest.d.ts +3 -3
- package/dist/runtime/api/models/MongoFindRequest.mjs +13 -14
- package/dist/runtime/api/models/MongoIndex.d.ts +3 -3
- package/dist/runtime/api/models/MongoIndex.mjs +39 -33
- package/dist/runtime/api/models/PasswordUpdateRequest.mjs +7 -10
- package/dist/runtime/api/models/PipelineStage.mjs +10 -12
- package/dist/runtime/api/models/Role.mjs +12 -15
- package/dist/runtime/api/models/SchemaAnalysis.mjs +15 -17
- package/dist/runtime/api/models/SchemaAnalysisField.mjs +20 -21
- package/dist/runtime/api/models/SchemaAnalysisFieldType.mjs +13 -14
- package/dist/runtime/api/models/SettingsResponse.d.ts +1 -1
- package/dist/runtime/api/models/SettingsResponse.mjs +13 -17
- package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +1 -1
- package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +8 -13
- package/dist/runtime/api/models/UpdateRequest.d.ts +2 -2
- package/dist/runtime/api/models/UpdateRequest.mjs +10 -12
- package/dist/runtime/api/models/UpdateResponse.mjs +15 -17
- package/dist/runtime/api/models/UpdateRoleRequest.mjs +9 -13
- package/dist/runtime/api/models/UserInformation.mjs +14 -17
- package/dist/runtime/api/models/UserProfile.mjs +16 -19
- package/dist/runtime/api/models/Version.mjs +13 -14
- package/dist/runtime/api/runtime.d.ts +2 -3
- package/dist/runtime/api/runtime.mjs +0 -4
- package/dist/runtime/composables/mongocampAuth.mjs +2 -0
- package/package.json +29 -18
|
@@ -1,29 +1,38 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
1
|
export function instanceOfMongoIndex(value) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
if (!("name" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("unique" in value))
|
|
5
|
+
return false;
|
|
6
|
+
if (!("version" in value))
|
|
7
|
+
return false;
|
|
8
|
+
if (!("namespace" in value))
|
|
9
|
+
return false;
|
|
10
|
+
if (!("keys" in value))
|
|
11
|
+
return false;
|
|
12
|
+
if (!("weights" in value))
|
|
13
|
+
return false;
|
|
14
|
+
if (!("expire" in value))
|
|
15
|
+
return false;
|
|
16
|
+
if (!("expireAfterSeconds" in value))
|
|
17
|
+
return false;
|
|
18
|
+
if (!("text" in value))
|
|
19
|
+
return false;
|
|
20
|
+
if (!("fetched" in value))
|
|
21
|
+
return false;
|
|
22
|
+
if (!("map" in value))
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
16
25
|
}
|
|
17
26
|
export function MongoIndexFromJSON(json) {
|
|
18
27
|
return MongoIndexFromJSONTyped(json, false);
|
|
19
28
|
}
|
|
20
29
|
export function MongoIndexFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
-
if (json
|
|
30
|
+
if (json == null) {
|
|
22
31
|
return json;
|
|
23
32
|
}
|
|
24
33
|
return {
|
|
25
34
|
"name": json["name"],
|
|
26
|
-
"fields":
|
|
35
|
+
"fields": json["fields"] == null ? void 0 : json["fields"],
|
|
27
36
|
"unique": json["unique"],
|
|
28
37
|
"version": json["version"],
|
|
29
38
|
"namespace": json["namespace"],
|
|
@@ -37,24 +46,21 @@ export function MongoIndexFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
46
|
};
|
|
38
47
|
}
|
|
39
48
|
export function MongoIndexToJSON(value) {
|
|
40
|
-
if (value
|
|
41
|
-
return
|
|
42
|
-
}
|
|
43
|
-
if (value === null) {
|
|
44
|
-
return null;
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
45
51
|
}
|
|
46
52
|
return {
|
|
47
|
-
"name": value
|
|
48
|
-
"fields": value
|
|
49
|
-
"unique": value
|
|
50
|
-
"version": value
|
|
51
|
-
"namespace": value
|
|
52
|
-
"keys": value
|
|
53
|
-
"weights": value
|
|
54
|
-
"expire": value
|
|
55
|
-
"expireAfterSeconds": value
|
|
56
|
-
"text": value
|
|
57
|
-
"fetched": value
|
|
58
|
-
"map": value
|
|
53
|
+
"name": value["name"],
|
|
54
|
+
"fields": value["fields"],
|
|
55
|
+
"unique": value["unique"],
|
|
56
|
+
"version": value["version"],
|
|
57
|
+
"namespace": value["namespace"],
|
|
58
|
+
"keys": value["keys"],
|
|
59
|
+
"weights": value["weights"],
|
|
60
|
+
"expire": value["expire"],
|
|
61
|
+
"expireAfterSeconds": value["expireAfterSeconds"],
|
|
62
|
+
"text": value["text"],
|
|
63
|
+
"fetched": value["fetched"].toISOString(),
|
|
64
|
+
"map": value["map"]
|
|
59
65
|
};
|
|
60
66
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export function instanceOfPasswordUpdateRequest(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return
|
|
2
|
+
if (!("password" in value))
|
|
3
|
+
return false;
|
|
4
|
+
return true;
|
|
5
5
|
}
|
|
6
6
|
export function PasswordUpdateRequestFromJSON(json) {
|
|
7
7
|
return PasswordUpdateRequestFromJSONTyped(json, false);
|
|
8
8
|
}
|
|
9
9
|
export function PasswordUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
-
if (json
|
|
10
|
+
if (json == null) {
|
|
11
11
|
return json;
|
|
12
12
|
}
|
|
13
13
|
return {
|
|
@@ -15,13 +15,10 @@ export function PasswordUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
export function PasswordUpdateRequestToJSON(value) {
|
|
18
|
-
if (value
|
|
19
|
-
return
|
|
20
|
-
}
|
|
21
|
-
if (value === null) {
|
|
22
|
-
return null;
|
|
18
|
+
if (value == null) {
|
|
19
|
+
return value;
|
|
23
20
|
}
|
|
24
21
|
return {
|
|
25
|
-
"password": value
|
|
22
|
+
"password": value["password"]
|
|
26
23
|
};
|
|
27
24
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export function instanceOfPipelineStage(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
if (!("stage" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("value" in value))
|
|
5
|
+
return false;
|
|
6
|
+
return true;
|
|
6
7
|
}
|
|
7
8
|
export function PipelineStageFromJSON(json) {
|
|
8
9
|
return PipelineStageFromJSONTyped(json, false);
|
|
9
10
|
}
|
|
10
11
|
export function PipelineStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
11
|
-
if (json
|
|
12
|
+
if (json == null) {
|
|
12
13
|
return json;
|
|
13
14
|
}
|
|
14
15
|
return {
|
|
@@ -17,14 +18,11 @@ export function PipelineStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
export function PipelineStageToJSON(value) {
|
|
20
|
-
if (value
|
|
21
|
-
return
|
|
22
|
-
}
|
|
23
|
-
if (value === null) {
|
|
24
|
-
return null;
|
|
21
|
+
if (value == null) {
|
|
22
|
+
return value;
|
|
25
23
|
}
|
|
26
24
|
return {
|
|
27
|
-
"stage": value
|
|
28
|
-
"value": value
|
|
25
|
+
"stage": value["stage"],
|
|
26
|
+
"value": value["value"]
|
|
29
27
|
};
|
|
30
28
|
}
|
|
@@ -1,37 +1,34 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
1
|
import {
|
|
3
2
|
GrantFromJSON,
|
|
4
3
|
GrantToJSON
|
|
5
4
|
} from "./Grant.mjs";
|
|
6
5
|
export function instanceOfRole(value) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
if (!("name" in value))
|
|
7
|
+
return false;
|
|
8
|
+
if (!("isAdmin" in value))
|
|
9
|
+
return false;
|
|
10
|
+
return true;
|
|
11
11
|
}
|
|
12
12
|
export function RoleFromJSON(json) {
|
|
13
13
|
return RoleFromJSONTyped(json, false);
|
|
14
14
|
}
|
|
15
15
|
export function RoleFromJSONTyped(json, ignoreDiscriminator) {
|
|
16
|
-
if (json
|
|
16
|
+
if (json == null) {
|
|
17
17
|
return json;
|
|
18
18
|
}
|
|
19
19
|
return {
|
|
20
20
|
"name": json["name"],
|
|
21
21
|
"isAdmin": json["isAdmin"],
|
|
22
|
-
"collectionGrants":
|
|
22
|
+
"collectionGrants": json["collectionGrants"] == null ? void 0 : json["collectionGrants"].map(GrantFromJSON)
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
export function RoleToJSON(value) {
|
|
26
|
-
if (value
|
|
27
|
-
return
|
|
28
|
-
}
|
|
29
|
-
if (value === null) {
|
|
30
|
-
return null;
|
|
26
|
+
if (value == null) {
|
|
27
|
+
return value;
|
|
31
28
|
}
|
|
32
29
|
return {
|
|
33
|
-
"name": value
|
|
34
|
-
"isAdmin": value
|
|
35
|
-
"collectionGrants": value
|
|
30
|
+
"name": value["name"],
|
|
31
|
+
"isAdmin": value["isAdmin"],
|
|
32
|
+
"collectionGrants": value["collectionGrants"] == null ? void 0 : value["collectionGrants"].map(GrantToJSON)
|
|
36
33
|
};
|
|
37
34
|
}
|
|
@@ -1,40 +1,38 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
1
|
import {
|
|
3
2
|
SchemaAnalysisFieldFromJSON,
|
|
4
3
|
SchemaAnalysisFieldToJSON
|
|
5
4
|
} from "./SchemaAnalysisField.mjs";
|
|
6
5
|
export function instanceOfSchemaAnalysis(value) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
if (!("count" in value))
|
|
7
|
+
return false;
|
|
8
|
+
if (!("sample" in value))
|
|
9
|
+
return false;
|
|
10
|
+
if (!("percentageOfAnalysed" in value))
|
|
11
|
+
return false;
|
|
12
|
+
return true;
|
|
12
13
|
}
|
|
13
14
|
export function SchemaAnalysisFromJSON(json) {
|
|
14
15
|
return SchemaAnalysisFromJSONTyped(json, false);
|
|
15
16
|
}
|
|
16
17
|
export function SchemaAnalysisFromJSONTyped(json, ignoreDiscriminator) {
|
|
17
|
-
if (json
|
|
18
|
+
if (json == null) {
|
|
18
19
|
return json;
|
|
19
20
|
}
|
|
20
21
|
return {
|
|
21
22
|
"count": json["count"],
|
|
22
23
|
"sample": json["sample"],
|
|
23
24
|
"percentageOfAnalysed": json["percentageOfAnalysed"],
|
|
24
|
-
"fields":
|
|
25
|
+
"fields": json["fields"] == null ? void 0 : json["fields"].map(SchemaAnalysisFieldFromJSON)
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
28
|
export function SchemaAnalysisToJSON(value) {
|
|
28
|
-
if (value
|
|
29
|
-
return
|
|
30
|
-
}
|
|
31
|
-
if (value === null) {
|
|
32
|
-
return null;
|
|
29
|
+
if (value == null) {
|
|
30
|
+
return value;
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
35
|
-
"count": value
|
|
36
|
-
"sample": value
|
|
37
|
-
"percentageOfAnalysed": value
|
|
38
|
-
"fields": value
|
|
33
|
+
"count": value["count"],
|
|
34
|
+
"sample": value["sample"],
|
|
35
|
+
"percentageOfAnalysed": value["percentageOfAnalysed"],
|
|
36
|
+
"fields": value["fields"] == null ? void 0 : value["fields"].map(SchemaAnalysisFieldToJSON)
|
|
39
37
|
};
|
|
40
38
|
}
|
|
@@ -1,45 +1,44 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
1
|
import {
|
|
3
2
|
SchemaAnalysisFieldTypeFromJSON,
|
|
4
3
|
SchemaAnalysisFieldTypeToJSON
|
|
5
4
|
} from "./SchemaAnalysisFieldType.mjs";
|
|
6
5
|
export function instanceOfSchemaAnalysisField(value) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
if (!("name" in value))
|
|
7
|
+
return false;
|
|
8
|
+
if (!("fullName" in value))
|
|
9
|
+
return false;
|
|
10
|
+
if (!("count" in value))
|
|
11
|
+
return false;
|
|
12
|
+
if (!("percentageOfParent" in value))
|
|
13
|
+
return false;
|
|
14
|
+
return true;
|
|
13
15
|
}
|
|
14
16
|
export function SchemaAnalysisFieldFromJSON(json) {
|
|
15
17
|
return SchemaAnalysisFieldFromJSONTyped(json, false);
|
|
16
18
|
}
|
|
17
19
|
export function SchemaAnalysisFieldFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
-
if (json
|
|
20
|
+
if (json == null) {
|
|
19
21
|
return json;
|
|
20
22
|
}
|
|
21
23
|
return {
|
|
22
24
|
"name": json["name"],
|
|
23
25
|
"fullName": json["fullName"],
|
|
24
|
-
"fieldTypes":
|
|
26
|
+
"fieldTypes": json["fieldTypes"] == null ? void 0 : json["fieldTypes"].map(SchemaAnalysisFieldTypeFromJSON),
|
|
25
27
|
"count": json["count"],
|
|
26
28
|
"percentageOfParent": json["percentageOfParent"],
|
|
27
|
-
"subFields":
|
|
29
|
+
"subFields": json["subFields"] == null ? void 0 : json["subFields"].map(SchemaAnalysisFieldFromJSON)
|
|
28
30
|
};
|
|
29
31
|
}
|
|
30
32
|
export function SchemaAnalysisFieldToJSON(value) {
|
|
31
|
-
if (value
|
|
32
|
-
return
|
|
33
|
-
}
|
|
34
|
-
if (value === null) {
|
|
35
|
-
return null;
|
|
33
|
+
if (value == null) {
|
|
34
|
+
return value;
|
|
36
35
|
}
|
|
37
36
|
return {
|
|
38
|
-
"name": value
|
|
39
|
-
"fullName": value
|
|
40
|
-
"fieldTypes": value
|
|
41
|
-
"count": value
|
|
42
|
-
"percentageOfParent": value
|
|
43
|
-
"subFields": value
|
|
37
|
+
"name": value["name"],
|
|
38
|
+
"fullName": value["fullName"],
|
|
39
|
+
"fieldTypes": value["fieldTypes"] == null ? void 0 : value["fieldTypes"].map(SchemaAnalysisFieldTypeToJSON),
|
|
40
|
+
"count": value["count"],
|
|
41
|
+
"percentageOfParent": value["percentageOfParent"],
|
|
42
|
+
"subFields": value["subFields"] == null ? void 0 : value["subFields"].map(SchemaAnalysisFieldToJSON)
|
|
44
43
|
};
|
|
45
44
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
export function instanceOfSchemaAnalysisFieldType(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
if (!("fieldType" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("count" in value))
|
|
5
|
+
return false;
|
|
6
|
+
if (!("percentageOfParent" in value))
|
|
7
|
+
return false;
|
|
8
|
+
return true;
|
|
7
9
|
}
|
|
8
10
|
export function SchemaAnalysisFieldTypeFromJSON(json) {
|
|
9
11
|
return SchemaAnalysisFieldTypeFromJSONTyped(json, false);
|
|
10
12
|
}
|
|
11
13
|
export function SchemaAnalysisFieldTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
-
if (json
|
|
14
|
+
if (json == null) {
|
|
13
15
|
return json;
|
|
14
16
|
}
|
|
15
17
|
return {
|
|
@@ -19,15 +21,12 @@ export function SchemaAnalysisFieldTypeFromJSONTyped(json, ignoreDiscriminator)
|
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
export function SchemaAnalysisFieldTypeToJSON(value) {
|
|
22
|
-
if (value
|
|
23
|
-
return
|
|
24
|
-
}
|
|
25
|
-
if (value === null) {
|
|
26
|
-
return null;
|
|
24
|
+
if (value == null) {
|
|
25
|
+
return value;
|
|
27
26
|
}
|
|
28
27
|
return {
|
|
29
|
-
"fieldType": value
|
|
30
|
-
"count": value
|
|
31
|
-
"percentageOfParent": value
|
|
28
|
+
"fieldType": value["fieldType"],
|
|
29
|
+
"count": value["count"],
|
|
30
|
+
"percentageOfParent": value["percentageOfParent"]
|
|
32
31
|
};
|
|
33
32
|
}
|
|
@@ -1,34 +1,30 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
1
|
export function instanceOfSettingsResponse(value) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return
|
|
2
|
+
if (!("configurations" in value))
|
|
3
|
+
return false;
|
|
4
|
+
return true;
|
|
6
5
|
}
|
|
7
6
|
export function SettingsResponseFromJSON(json) {
|
|
8
7
|
return SettingsResponseFromJSONTyped(json, false);
|
|
9
8
|
}
|
|
10
9
|
export function SettingsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
11
|
-
if (json
|
|
10
|
+
if (json == null) {
|
|
12
11
|
return json;
|
|
13
12
|
}
|
|
14
13
|
return {
|
|
15
|
-
"routesPlugins":
|
|
16
|
-
"filePlugins":
|
|
17
|
-
"ignoredPlugins":
|
|
14
|
+
"routesPlugins": json["routesPlugins"] == null ? void 0 : json["routesPlugins"],
|
|
15
|
+
"filePlugins": json["filePlugins"] == null ? void 0 : json["filePlugins"],
|
|
16
|
+
"ignoredPlugins": json["ignoredPlugins"] == null ? void 0 : json["ignoredPlugins"],
|
|
18
17
|
"configurations": json["configurations"]
|
|
19
18
|
};
|
|
20
19
|
}
|
|
21
20
|
export function SettingsResponseToJSON(value) {
|
|
22
|
-
if (value
|
|
23
|
-
return
|
|
24
|
-
}
|
|
25
|
-
if (value === null) {
|
|
26
|
-
return null;
|
|
21
|
+
if (value == null) {
|
|
22
|
+
return value;
|
|
27
23
|
}
|
|
28
24
|
return {
|
|
29
|
-
"routesPlugins": value
|
|
30
|
-
"filePlugins": value
|
|
31
|
-
"ignoredPlugins": value
|
|
32
|
-
"configurations": value
|
|
25
|
+
"routesPlugins": value["routesPlugins"],
|
|
26
|
+
"filePlugins": value["filePlugins"],
|
|
27
|
+
"ignoredPlugins": value["ignoredPlugins"],
|
|
28
|
+
"configurations": value["configurations"]
|
|
33
29
|
};
|
|
34
30
|
}
|
|
@@ -1,29 +1,24 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
1
|
export function instanceOfUpdateFileInformationRequest(value) {
|
|
3
|
-
|
|
4
|
-
return isInstance;
|
|
2
|
+
return true;
|
|
5
3
|
}
|
|
6
4
|
export function UpdateFileInformationRequestFromJSON(json) {
|
|
7
5
|
return UpdateFileInformationRequestFromJSONTyped(json, false);
|
|
8
6
|
}
|
|
9
7
|
export function UpdateFileInformationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
-
if (json
|
|
8
|
+
if (json == null) {
|
|
11
9
|
return json;
|
|
12
10
|
}
|
|
13
11
|
return {
|
|
14
|
-
"filename":
|
|
15
|
-
"metadata":
|
|
12
|
+
"filename": json["filename"] == null ? void 0 : json["filename"],
|
|
13
|
+
"metadata": json["metadata"] == null ? void 0 : json["metadata"]
|
|
16
14
|
};
|
|
17
15
|
}
|
|
18
16
|
export function UpdateFileInformationRequestToJSON(value) {
|
|
19
|
-
if (value
|
|
20
|
-
return
|
|
21
|
-
}
|
|
22
|
-
if (value === null) {
|
|
23
|
-
return null;
|
|
17
|
+
if (value == null) {
|
|
18
|
+
return value;
|
|
24
19
|
}
|
|
25
20
|
return {
|
|
26
|
-
"filename": value
|
|
27
|
-
"metadata": value
|
|
21
|
+
"filename": value["filename"],
|
|
22
|
+
"metadata": value["metadata"]
|
|
28
23
|
};
|
|
29
24
|
}
|
|
@@ -22,7 +22,7 @@ export interface UpdateRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
document: {
|
|
24
24
|
[key: string]: string;
|
|
25
|
-
}
|
|
25
|
+
};
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @type {{ [key: string]: string; }}
|
|
@@ -30,7 +30,7 @@ export interface UpdateRequest {
|
|
|
30
30
|
*/
|
|
31
31
|
filter: {
|
|
32
32
|
[key: string]: string;
|
|
33
|
-
}
|
|
33
|
+
};
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* Check if a given object implements the UpdateRequest interface.
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export function instanceOfUpdateRequest(value) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
if (!("document" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("filter" in value))
|
|
5
|
+
return false;
|
|
6
|
+
return true;
|
|
6
7
|
}
|
|
7
8
|
export function UpdateRequestFromJSON(json) {
|
|
8
9
|
return UpdateRequestFromJSONTyped(json, false);
|
|
9
10
|
}
|
|
10
11
|
export function UpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
11
|
-
if (json
|
|
12
|
+
if (json == null) {
|
|
12
13
|
return json;
|
|
13
14
|
}
|
|
14
15
|
return {
|
|
@@ -17,14 +18,11 @@ export function UpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
export function UpdateRequestToJSON(value) {
|
|
20
|
-
if (value
|
|
21
|
-
return
|
|
22
|
-
}
|
|
23
|
-
if (value === null) {
|
|
24
|
-
return null;
|
|
21
|
+
if (value == null) {
|
|
22
|
+
return value;
|
|
25
23
|
}
|
|
26
24
|
return {
|
|
27
|
-
"document": value
|
|
28
|
-
"filter": value
|
|
25
|
+
"document": value["document"],
|
|
26
|
+
"filter": value["filter"]
|
|
29
27
|
};
|
|
30
28
|
}
|
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
1
|
export function instanceOfUpdateResponse(value) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
if (!("wasAcknowledged" in value))
|
|
3
|
+
return false;
|
|
4
|
+
if (!("modifiedCount" in value))
|
|
5
|
+
return false;
|
|
6
|
+
if (!("matchedCount" in value))
|
|
7
|
+
return false;
|
|
8
|
+
return true;
|
|
8
9
|
}
|
|
9
10
|
export function UpdateResponseFromJSON(json) {
|
|
10
11
|
return UpdateResponseFromJSONTyped(json, false);
|
|
11
12
|
}
|
|
12
13
|
export function UpdateResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
-
if (json
|
|
14
|
+
if (json == null) {
|
|
14
15
|
return json;
|
|
15
16
|
}
|
|
16
17
|
return {
|
|
17
18
|
"wasAcknowledged": json["wasAcknowledged"],
|
|
18
|
-
"upsertedIds":
|
|
19
|
+
"upsertedIds": json["upsertedIds"] == null ? void 0 : json["upsertedIds"],
|
|
19
20
|
"modifiedCount": json["modifiedCount"],
|
|
20
21
|
"matchedCount": json["matchedCount"]
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
24
|
export function UpdateResponseToJSON(value) {
|
|
24
|
-
if (value
|
|
25
|
-
return
|
|
26
|
-
}
|
|
27
|
-
if (value === null) {
|
|
28
|
-
return null;
|
|
25
|
+
if (value == null) {
|
|
26
|
+
return value;
|
|
29
27
|
}
|
|
30
28
|
return {
|
|
31
|
-
"wasAcknowledged": value
|
|
32
|
-
"upsertedIds": value
|
|
33
|
-
"modifiedCount": value
|
|
34
|
-
"matchedCount": value
|
|
29
|
+
"wasAcknowledged": value["wasAcknowledged"],
|
|
30
|
+
"upsertedIds": value["upsertedIds"],
|
|
31
|
+
"modifiedCount": value["modifiedCount"],
|
|
32
|
+
"matchedCount": value["matchedCount"]
|
|
35
33
|
};
|
|
36
34
|
}
|
|
@@ -1,34 +1,30 @@
|
|
|
1
|
-
import { exists } from "../runtime.mjs";
|
|
2
1
|
import {
|
|
3
2
|
GrantFromJSON,
|
|
4
3
|
GrantToJSON
|
|
5
4
|
} from "./Grant.mjs";
|
|
6
5
|
export function instanceOfUpdateRoleRequest(value) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return
|
|
6
|
+
if (!("isAdmin" in value))
|
|
7
|
+
return false;
|
|
8
|
+
return true;
|
|
10
9
|
}
|
|
11
10
|
export function UpdateRoleRequestFromJSON(json) {
|
|
12
11
|
return UpdateRoleRequestFromJSONTyped(json, false);
|
|
13
12
|
}
|
|
14
13
|
export function UpdateRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
15
|
-
if (json
|
|
14
|
+
if (json == null) {
|
|
16
15
|
return json;
|
|
17
16
|
}
|
|
18
17
|
return {
|
|
19
18
|
"isAdmin": json["isAdmin"],
|
|
20
|
-
"collectionGrants":
|
|
19
|
+
"collectionGrants": json["collectionGrants"] == null ? void 0 : json["collectionGrants"].map(GrantFromJSON)
|
|
21
20
|
};
|
|
22
21
|
}
|
|
23
22
|
export function UpdateRoleRequestToJSON(value) {
|
|
24
|
-
if (value
|
|
25
|
-
return
|
|
26
|
-
}
|
|
27
|
-
if (value === null) {
|
|
28
|
-
return null;
|
|
23
|
+
if (value == null) {
|
|
24
|
+
return value;
|
|
29
25
|
}
|
|
30
26
|
return {
|
|
31
|
-
"isAdmin": value
|
|
32
|
-
"collectionGrants": value
|
|
27
|
+
"isAdmin": value["isAdmin"],
|
|
28
|
+
"collectionGrants": value["collectionGrants"] == null ? void 0 : value["collectionGrants"].map(GrantToJSON)
|
|
33
29
|
};
|
|
34
30
|
}
|