@sfxcode/nuxt-mongocamp-server 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/module.d.mts +9 -0
  2. package/dist/module.d.ts +9 -2
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +557 -4
  5. package/dist/runtime/api/apis/AdminApi.d.ts +181 -0
  6. package/dist/runtime/api/apis/AdminApi.mjs +509 -0
  7. package/dist/runtime/api/apis/ApplicationApi.d.ts +65 -0
  8. package/dist/runtime/api/apis/ApplicationApi.mjs +164 -0
  9. package/dist/runtime/api/apis/AuthApi.d.ts +104 -0
  10. package/dist/runtime/api/apis/AuthApi.mjs +296 -0
  11. package/dist/runtime/api/apis/BucketApi.d.ts +67 -0
  12. package/dist/runtime/api/apis/BucketApi.mjs +160 -0
  13. package/dist/runtime/api/apis/CollectionApi.d.ts +161 -0
  14. package/dist/runtime/api/apis/CollectionApi.mjs +435 -0
  15. package/dist/runtime/api/apis/DatabaseApi.d.ts +77 -0
  16. package/dist/runtime/api/apis/DatabaseApi.mjs +196 -0
  17. package/dist/runtime/api/apis/DocumentApi.d.ts +188 -0
  18. package/dist/runtime/api/apis/DocumentApi.mjs +465 -0
  19. package/dist/runtime/api/apis/FileApi.d.ts +125 -0
  20. package/dist/runtime/api/apis/FileApi.mjs +355 -0
  21. package/dist/runtime/api/apis/IndexApi.d.ts +137 -0
  22. package/dist/runtime/api/apis/IndexApi.mjs +367 -0
  23. package/dist/runtime/api/apis/InformationApi.d.ts +28 -0
  24. package/dist/runtime/api/apis/InformationApi.mjs +29 -0
  25. package/dist/runtime/api/apis/JobsApi.d.ts +94 -0
  26. package/dist/runtime/api/apis/JobsApi.mjs +252 -0
  27. package/dist/runtime/api/apis/index.d.ts +11 -0
  28. package/dist/runtime/api/apis/index.mjs +11 -0
  29. package/dist/runtime/api/index.d.ts +3 -0
  30. package/dist/runtime/api/index.mjs +3 -0
  31. package/dist/runtime/api/models/BucketInformation.d.ts +49 -0
  32. package/dist/runtime/api/models/BucketInformation.mjs +36 -0
  33. package/dist/runtime/api/models/CollectionStatus.d.ts +107 -0
  34. package/dist/runtime/api/models/CollectionStatus.mjs +63 -0
  35. package/dist/runtime/api/models/DatabaseInfo.d.ts +57 -0
  36. package/dist/runtime/api/models/DatabaseInfo.mjs +39 -0
  37. package/dist/runtime/api/models/DeleteResponse.d.ts +37 -0
  38. package/dist/runtime/api/models/DeleteResponse.mjs +30 -0
  39. package/dist/runtime/api/models/ErrorDescription.d.ts +43 -0
  40. package/dist/runtime/api/models/ErrorDescription.mjs +33 -0
  41. package/dist/runtime/api/models/FileInformation.d.ts +63 -0
  42. package/dist/runtime/api/models/FileInformation.mjs +42 -0
  43. package/dist/runtime/api/models/Grant.d.ts +55 -0
  44. package/dist/runtime/api/models/Grant.mjs +39 -0
  45. package/dist/runtime/api/models/IndexCreateRequest.d.ts +40 -0
  46. package/dist/runtime/api/models/IndexCreateRequest.mjs +34 -0
  47. package/dist/runtime/api/models/IndexCreateResponse.d.ts +31 -0
  48. package/dist/runtime/api/models/IndexCreateResponse.mjs +27 -0
  49. package/dist/runtime/api/models/IndexDropResponse.d.ts +31 -0
  50. package/dist/runtime/api/models/IndexDropResponse.mjs +27 -0
  51. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +73 -0
  52. package/dist/runtime/api/models/IndexOptionsRequest.mjs +41 -0
  53. package/dist/runtime/api/models/InsertResponse.d.ts +37 -0
  54. package/dist/runtime/api/models/InsertResponse.mjs +30 -0
  55. package/dist/runtime/api/models/JobConfig.d.ts +61 -0
  56. package/dist/runtime/api/models/JobConfig.mjs +42 -0
  57. package/dist/runtime/api/models/JobInformation.d.ts +79 -0
  58. package/dist/runtime/api/models/JobInformation.mjs +49 -0
  59. package/dist/runtime/api/models/JsonSchema.d.ts +46 -0
  60. package/dist/runtime/api/models/JsonSchema.mjs +38 -0
  61. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +59 -0
  62. package/dist/runtime/api/models/JsonSchemaDefinition.mjs +39 -0
  63. package/dist/runtime/api/models/JsonValueAny.d.ts +31 -0
  64. package/dist/runtime/api/models/JsonValueAny.mjs +27 -0
  65. package/dist/runtime/api/models/JsonValueBoolean.d.ts +31 -0
  66. package/dist/runtime/api/models/JsonValueBoolean.mjs +27 -0
  67. package/dist/runtime/api/models/JsonValueString.d.ts +31 -0
  68. package/dist/runtime/api/models/JsonValueString.mjs +27 -0
  69. package/dist/runtime/api/models/Login.d.ts +37 -0
  70. package/dist/runtime/api/models/Login.mjs +30 -0
  71. package/dist/runtime/api/models/LoginResult.d.ts +44 -0
  72. package/dist/runtime/api/models/LoginResult.mjs +37 -0
  73. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +38 -0
  74. package/dist/runtime/api/models/MongoAggregateRequest.mjs +34 -0
  75. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +55 -0
  76. package/dist/runtime/api/models/MongoCampConfiguration.mjs +39 -0
  77. package/dist/runtime/api/models/MongoFindRequest.d.ts +49 -0
  78. package/dist/runtime/api/models/MongoFindRequest.mjs +33 -0
  79. package/dist/runtime/api/models/MongoIndex.d.ts +103 -0
  80. package/dist/runtime/api/models/MongoIndex.mjs +60 -0
  81. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +31 -0
  82. package/dist/runtime/api/models/PasswordUpdateRequest.mjs +27 -0
  83. package/dist/runtime/api/models/PipelineStage.d.ts +37 -0
  84. package/dist/runtime/api/models/PipelineStage.mjs +30 -0
  85. package/dist/runtime/api/models/Role.d.ts +44 -0
  86. package/dist/runtime/api/models/Role.mjs +37 -0
  87. package/dist/runtime/api/models/SchemaAnalysis.d.ts +50 -0
  88. package/dist/runtime/api/models/SchemaAnalysis.mjs +40 -0
  89. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +62 -0
  90. package/dist/runtime/api/models/SchemaAnalysisField.mjs +45 -0
  91. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +43 -0
  92. package/dist/runtime/api/models/SchemaAnalysisFieldType.mjs +33 -0
  93. package/dist/runtime/api/models/SettingsResponse.d.ts +51 -0
  94. package/dist/runtime/api/models/SettingsResponse.mjs +34 -0
  95. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +39 -0
  96. package/dist/runtime/api/models/UpdateFileInformationRequest.mjs +29 -0
  97. package/dist/runtime/api/models/UpdateRequest.d.ts +41 -0
  98. package/dist/runtime/api/models/UpdateRequest.mjs +30 -0
  99. package/dist/runtime/api/models/UpdateResponse.d.ts +49 -0
  100. package/dist/runtime/api/models/UpdateResponse.mjs +36 -0
  101. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +38 -0
  102. package/dist/runtime/api/models/UpdateRoleRequest.mjs +34 -0
  103. package/dist/runtime/api/models/UserInformation.d.ts +49 -0
  104. package/dist/runtime/api/models/UserInformation.mjs +35 -0
  105. package/dist/runtime/api/models/UserProfile.d.ts +56 -0
  106. package/dist/runtime/api/models/UserProfile.mjs +41 -0
  107. package/dist/runtime/api/models/Version.d.ts +43 -0
  108. package/dist/runtime/api/models/Version.mjs +33 -0
  109. package/dist/runtime/api/models/index.d.ts +39 -0
  110. package/dist/runtime/api/models/index.mjs +39 -0
  111. package/dist/runtime/api/runtime.d.ts +182 -0
  112. package/dist/runtime/api/runtime.mjs +289 -0
  113. package/dist/runtime/composables/mongocampApi.d.ts +14 -0
  114. package/dist/runtime/composables/mongocampApi.mjs +45 -0
  115. package/dist/runtime/composables/mongocampAuth.d.ts +8 -0
  116. package/dist/runtime/composables/mongocampAuth.mjs +28 -0
  117. package/dist/runtime/composables/mongocampSearch.d.ts +11 -0
  118. package/dist/runtime/composables/mongocampSearch.mjs +20 -0
  119. package/dist/runtime/composables/mongocampStorage.d.ts +0 -0
  120. package/dist/runtime/composables/mongocampStorage.mjs +5 -0
  121. package/dist/runtime/composables/mongocampUrl.d.ts +1 -0
  122. package/dist/runtime/composables/mongocampUrl.mjs +5 -0
  123. package/dist/runtime/composables/mongocampUser.d.ts +3 -0
  124. package/dist/runtime/composables/mongocampUser.mjs +4 -0
  125. package/dist/types.d.mts +15 -0
  126. package/dist/types.d.ts +2 -8
  127. package/package.json +14 -13
@@ -0,0 +1,37 @@
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
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.5.7
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 { SchemaAnalysisField } from './SchemaAnalysisField';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SchemaAnalysis
17
+ */
18
+ export interface SchemaAnalysis {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof SchemaAnalysis
23
+ */
24
+ count: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof SchemaAnalysis
29
+ */
30
+ sample: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof SchemaAnalysis
35
+ */
36
+ percentageOfAnalysed: number;
37
+ /**
38
+ *
39
+ * @type {Array<SchemaAnalysisField>}
40
+ * @memberof SchemaAnalysis
41
+ */
42
+ fields?: Array<SchemaAnalysisField>;
43
+ }
44
+ /**
45
+ * Check if a given object implements the SchemaAnalysis interface.
46
+ */
47
+ export declare function instanceOfSchemaAnalysis(value: object): boolean;
48
+ export declare function SchemaAnalysisFromJSON(json: any): SchemaAnalysis;
49
+ export declare function SchemaAnalysisFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaAnalysis;
50
+ export declare function SchemaAnalysisToJSON(value?: SchemaAnalysis | null): any;
@@ -0,0 +1,40 @@
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
+ }
@@ -0,0 +1,62 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.5.7
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 { SchemaAnalysisFieldType } from './SchemaAnalysisFieldType';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface SchemaAnalysisField
17
+ */
18
+ export interface SchemaAnalysisField {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof SchemaAnalysisField
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof SchemaAnalysisField
29
+ */
30
+ fullName: string;
31
+ /**
32
+ *
33
+ * @type {Array<SchemaAnalysisFieldType>}
34
+ * @memberof SchemaAnalysisField
35
+ */
36
+ fieldTypes?: Array<SchemaAnalysisFieldType>;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof SchemaAnalysisField
41
+ */
42
+ count: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof SchemaAnalysisField
47
+ */
48
+ percentageOfParent: number;
49
+ /**
50
+ *
51
+ * @type {Array<SchemaAnalysisField>}
52
+ * @memberof SchemaAnalysisField
53
+ */
54
+ subFields?: Array<SchemaAnalysisField>;
55
+ }
56
+ /**
57
+ * Check if a given object implements the SchemaAnalysisField interface.
58
+ */
59
+ export declare function instanceOfSchemaAnalysisField(value: object): boolean;
60
+ export declare function SchemaAnalysisFieldFromJSON(json: any): SchemaAnalysisField;
61
+ export declare function SchemaAnalysisFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaAnalysisField;
62
+ export declare function SchemaAnalysisFieldToJSON(value?: SchemaAnalysisField | null): any;
@@ -0,0 +1,45 @@
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
+ }
@@ -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: 1.5.7
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 SchemaAnalysisFieldType
16
+ */
17
+ export interface SchemaAnalysisFieldType {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SchemaAnalysisFieldType
22
+ */
23
+ fieldType: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof SchemaAnalysisFieldType
28
+ */
29
+ count: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof SchemaAnalysisFieldType
34
+ */
35
+ percentageOfParent: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the SchemaAnalysisFieldType interface.
39
+ */
40
+ export declare function instanceOfSchemaAnalysisFieldType(value: object): boolean;
41
+ export declare function SchemaAnalysisFieldTypeFromJSON(json: any): SchemaAnalysisFieldType;
42
+ export declare function SchemaAnalysisFieldTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaAnalysisFieldType;
43
+ export declare function SchemaAnalysisFieldTypeToJSON(value?: SchemaAnalysisFieldType | null): any;
@@ -0,0 +1,33 @@
1
+ export function instanceOfSchemaAnalysisFieldType(value) {
2
+ let isInstance = true;
3
+ isInstance = isInstance && "fieldType" in value;
4
+ isInstance = isInstance && "count" in value;
5
+ isInstance = isInstance && "percentageOfParent" in value;
6
+ return isInstance;
7
+ }
8
+ export function SchemaAnalysisFieldTypeFromJSON(json) {
9
+ return SchemaAnalysisFieldTypeFromJSONTyped(json, false);
10
+ }
11
+ export function SchemaAnalysisFieldTypeFromJSONTyped(json, ignoreDiscriminator) {
12
+ if (json === void 0 || json === null) {
13
+ return json;
14
+ }
15
+ return {
16
+ "fieldType": json["fieldType"],
17
+ "count": json["count"],
18
+ "percentageOfParent": json["percentageOfParent"]
19
+ };
20
+ }
21
+ export function SchemaAnalysisFieldTypeToJSON(value) {
22
+ if (value === void 0) {
23
+ return void 0;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ "fieldType": value.fieldType,
30
+ "count": value.count,
31
+ "percentageOfParent": value.percentageOfParent
32
+ };
33
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.5.7
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 SettingsResponse
16
+ */
17
+ export interface SettingsResponse {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof SettingsResponse
22
+ */
23
+ routesPlugins?: Array<string>;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof SettingsResponse
28
+ */
29
+ filePlugins?: Array<string>;
30
+ /**
31
+ *
32
+ * @type {Array<string>}
33
+ * @memberof SettingsResponse
34
+ */
35
+ ignoredPlugins?: Array<string>;
36
+ /**
37
+ *
38
+ * @type {{ [key: string]: string; }}
39
+ * @memberof SettingsResponse
40
+ */
41
+ configurations: {
42
+ [key: string]: string;
43
+ } | null;
44
+ }
45
+ /**
46
+ * Check if a given object implements the SettingsResponse interface.
47
+ */
48
+ export declare function instanceOfSettingsResponse(value: object): boolean;
49
+ export declare function SettingsResponseFromJSON(json: any): SettingsResponse;
50
+ export declare function SettingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SettingsResponse;
51
+ export declare function SettingsResponseToJSON(value?: SettingsResponse | null): any;
@@ -0,0 +1,34 @@
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
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.5.7
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 UpdateFileInformationRequest
16
+ */
17
+ export interface UpdateFileInformationRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UpdateFileInformationRequest
22
+ */
23
+ filename?: string;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: string; }}
27
+ * @memberof UpdateFileInformationRequest
28
+ */
29
+ metadata?: {
30
+ [key: string]: string;
31
+ } | null;
32
+ }
33
+ /**
34
+ * Check if a given object implements the UpdateFileInformationRequest interface.
35
+ */
36
+ export declare function instanceOfUpdateFileInformationRequest(value: object): boolean;
37
+ export declare function UpdateFileInformationRequestFromJSON(json: any): UpdateFileInformationRequest;
38
+ export declare function UpdateFileInformationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFileInformationRequest;
39
+ export declare function UpdateFileInformationRequestToJSON(value?: UpdateFileInformationRequest | null): any;
@@ -0,0 +1,29 @@
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
+ }
@@ -0,0 +1,41 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.5.7
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 UpdateRequest
16
+ */
17
+ export interface UpdateRequest {
18
+ /**
19
+ *
20
+ * @type {{ [key: string]: string; }}
21
+ * @memberof UpdateRequest
22
+ */
23
+ document: {
24
+ [key: string]: string;
25
+ } | null;
26
+ /**
27
+ *
28
+ * @type {{ [key: string]: string; }}
29
+ * @memberof UpdateRequest
30
+ */
31
+ filter: {
32
+ [key: string]: string;
33
+ } | null;
34
+ }
35
+ /**
36
+ * Check if a given object implements the UpdateRequest interface.
37
+ */
38
+ export declare function instanceOfUpdateRequest(value: object): boolean;
39
+ export declare function UpdateRequestFromJSON(json: any): UpdateRequest;
40
+ export declare function UpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRequest;
41
+ export declare function UpdateRequestToJSON(value?: UpdateRequest | null): any;
@@ -0,0 +1,30 @@
1
+ export function instanceOfUpdateRequest(value) {
2
+ let isInstance = true;
3
+ isInstance = isInstance && "document" in value;
4
+ isInstance = isInstance && "filter" in value;
5
+ return isInstance;
6
+ }
7
+ export function UpdateRequestFromJSON(json) {
8
+ return UpdateRequestFromJSONTyped(json, false);
9
+ }
10
+ export function UpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
11
+ if (json === void 0 || json === null) {
12
+ return json;
13
+ }
14
+ return {
15
+ "document": json["document"],
16
+ "filter": json["filter"]
17
+ };
18
+ }
19
+ export function UpdateRequestToJSON(value) {
20
+ if (value === void 0) {
21
+ return void 0;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ "document": value.document,
28
+ "filter": value.filter
29
+ };
30
+ }
@@ -0,0 +1,49 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.5.7
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 UpdateResponse
16
+ */
17
+ export interface UpdateResponse {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof UpdateResponse
22
+ */
23
+ wasAcknowledged: boolean;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof UpdateResponse
28
+ */
29
+ upsertedIds?: Array<string>;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof UpdateResponse
34
+ */
35
+ modifiedCount: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof UpdateResponse
40
+ */
41
+ matchedCount: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the UpdateResponse interface.
45
+ */
46
+ export declare function instanceOfUpdateResponse(value: object): boolean;
47
+ export declare function UpdateResponseFromJSON(json: any): UpdateResponse;
48
+ export declare function UpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateResponse;
49
+ export declare function UpdateResponseToJSON(value?: UpdateResponse | null): any;
@@ -0,0 +1,36 @@
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
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * mongocamp-library
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.5.7
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 { Grant } from './Grant';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdateRoleRequest
17
+ */
18
+ export interface UpdateRoleRequest {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof UpdateRoleRequest
23
+ */
24
+ isAdmin: boolean;
25
+ /**
26
+ *
27
+ * @type {Array<Grant>}
28
+ * @memberof UpdateRoleRequest
29
+ */
30
+ collectionGrants?: Array<Grant>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the UpdateRoleRequest interface.
34
+ */
35
+ export declare function instanceOfUpdateRoleRequest(value: object): boolean;
36
+ export declare function UpdateRoleRequestFromJSON(json: any): UpdateRoleRequest;
37
+ export declare function UpdateRoleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRoleRequest;
38
+ export declare function UpdateRoleRequestToJSON(value?: UpdateRoleRequest | null): any;