@sfxcode/nuxt-mongocamp-server 1.2.2 → 1.2.4

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 (103) hide show
  1. package/dist/module.d.mts +1 -1
  2. package/dist/module.d.ts +1 -1
  3. package/dist/module.json +2 -2
  4. package/dist/module.mjs +118 -12
  5. package/dist/runtime/api/apis/AdminApi.d.ts +1 -1
  6. package/dist/runtime/api/apis/ApplicationApi.d.ts +14 -1
  7. package/dist/runtime/api/apis/ApplicationApi.js +39 -0
  8. package/dist/runtime/api/apis/AuthApi.d.ts +1 -1
  9. package/dist/runtime/api/apis/BucketApi.d.ts +1 -1
  10. package/dist/runtime/api/apis/CollectionApi.d.ts +4 -4
  11. package/dist/runtime/api/apis/DatabaseApi.d.ts +1 -1
  12. package/dist/runtime/api/apis/DocumentApi.d.ts +1 -1
  13. package/dist/runtime/api/apis/FileApi.d.ts +1 -1
  14. package/dist/runtime/api/apis/IndexApi.d.ts +1 -1
  15. package/dist/runtime/api/apis/InformationApi.d.ts +1 -1
  16. package/dist/runtime/api/apis/JobsApi.d.ts +1 -1
  17. package/dist/runtime/api/models/BucketInformation.d.ts +3 -2
  18. package/dist/runtime/api/models/BucketInformation.js +4 -1
  19. package/dist/runtime/api/models/CollectionStatus.d.ts +3 -2
  20. package/dist/runtime/api/models/CollectionStatus.js +4 -1
  21. package/dist/runtime/api/models/DatabaseInfo.d.ts +3 -2
  22. package/dist/runtime/api/models/DatabaseInfo.js +4 -1
  23. package/dist/runtime/api/models/DeleteResponse.d.ts +3 -2
  24. package/dist/runtime/api/models/DeleteResponse.js +4 -1
  25. package/dist/runtime/api/models/ErrorDescription.d.ts +3 -2
  26. package/dist/runtime/api/models/ErrorDescription.js +4 -1
  27. package/dist/runtime/api/models/FileInformation.d.ts +3 -2
  28. package/dist/runtime/api/models/FileInformation.js +4 -1
  29. package/dist/runtime/api/models/Grant.d.ts +3 -2
  30. package/dist/runtime/api/models/Grant.js +4 -1
  31. package/dist/runtime/api/models/IndexCreateRequest.d.ts +3 -2
  32. package/dist/runtime/api/models/IndexCreateRequest.js +4 -1
  33. package/dist/runtime/api/models/IndexCreateResponse.d.ts +3 -2
  34. package/dist/runtime/api/models/IndexCreateResponse.js +4 -1
  35. package/dist/runtime/api/models/IndexDropResponse.d.ts +3 -2
  36. package/dist/runtime/api/models/IndexDropResponse.js +4 -1
  37. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +3 -2
  38. package/dist/runtime/api/models/IndexOptionsRequest.js +4 -1
  39. package/dist/runtime/api/models/InsertResponse.d.ts +3 -2
  40. package/dist/runtime/api/models/InsertResponse.js +4 -1
  41. package/dist/runtime/api/models/JobConfig.d.ts +3 -2
  42. package/dist/runtime/api/models/JobConfig.js +4 -1
  43. package/dist/runtime/api/models/JobInformation.d.ts +3 -2
  44. package/dist/runtime/api/models/JobInformation.js +4 -1
  45. package/dist/runtime/api/models/JsonSchema.d.ts +3 -2
  46. package/dist/runtime/api/models/JsonSchema.js +4 -1
  47. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +3 -2
  48. package/dist/runtime/api/models/JsonSchemaDefinition.js +4 -1
  49. package/dist/runtime/api/models/JsonValueAny.d.ts +3 -2
  50. package/dist/runtime/api/models/JsonValueAny.js +4 -1
  51. package/dist/runtime/api/models/JsonValueBoolean.d.ts +3 -2
  52. package/dist/runtime/api/models/JsonValueBoolean.js +4 -1
  53. package/dist/runtime/api/models/JsonValueString.d.ts +3 -2
  54. package/dist/runtime/api/models/JsonValueString.js +4 -1
  55. package/dist/runtime/api/models/Login.d.ts +3 -2
  56. package/dist/runtime/api/models/Login.js +4 -1
  57. package/dist/runtime/api/models/LoginResult.d.ts +3 -2
  58. package/dist/runtime/api/models/LoginResult.js +4 -1
  59. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +3 -2
  60. package/dist/runtime/api/models/MongoAggregateRequest.js +4 -1
  61. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +3 -2
  62. package/dist/runtime/api/models/MongoCampConfiguration.js +4 -1
  63. package/dist/runtime/api/models/MongoFindRequest.d.ts +3 -2
  64. package/dist/runtime/api/models/MongoFindRequest.js +4 -1
  65. package/dist/runtime/api/models/MongoIndex.d.ts +3 -2
  66. package/dist/runtime/api/models/MongoIndex.js +4 -1
  67. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +3 -2
  68. package/dist/runtime/api/models/PasswordUpdateRequest.js +4 -1
  69. package/dist/runtime/api/models/PipelineStage.d.ts +3 -2
  70. package/dist/runtime/api/models/PipelineStage.js +4 -1
  71. package/dist/runtime/api/models/Role.d.ts +3 -2
  72. package/dist/runtime/api/models/Role.js +4 -1
  73. package/dist/runtime/api/models/SchemaAnalysis.d.ts +3 -2
  74. package/dist/runtime/api/models/SchemaAnalysis.js +4 -1
  75. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +3 -2
  76. package/dist/runtime/api/models/SchemaAnalysisField.js +4 -1
  77. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +3 -2
  78. package/dist/runtime/api/models/SchemaAnalysisFieldType.js +4 -1
  79. package/dist/runtime/api/models/SettingsResponse.d.ts +3 -2
  80. package/dist/runtime/api/models/SettingsResponse.js +4 -1
  81. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +3 -2
  82. package/dist/runtime/api/models/UpdateFileInformationRequest.js +4 -1
  83. package/dist/runtime/api/models/UpdateRequest.d.ts +3 -2
  84. package/dist/runtime/api/models/UpdateRequest.js +4 -1
  85. package/dist/runtime/api/models/UpdateResponse.d.ts +3 -2
  86. package/dist/runtime/api/models/UpdateResponse.js +4 -1
  87. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +3 -2
  88. package/dist/runtime/api/models/UpdateRoleRequest.js +4 -1
  89. package/dist/runtime/api/models/UserInformation.d.ts +3 -2
  90. package/dist/runtime/api/models/UserInformation.js +4 -1
  91. package/dist/runtime/api/models/UserProfile.d.ts +3 -2
  92. package/dist/runtime/api/models/UserProfile.js +4 -1
  93. package/dist/runtime/api/models/Version.d.ts +3 -2
  94. package/dist/runtime/api/models/Version.js +4 -1
  95. package/dist/runtime/api/runtime.d.ts +1 -1
  96. package/dist/runtime/composables/mongocampApi.d.ts +1 -1
  97. package/dist/runtime/composables/mongocampAuth.d.ts +1 -1
  98. package/dist/runtime/composables/mongocampSearch.d.ts +1 -1
  99. package/dist/runtime/composables/mongocampStorage.d.ts +1 -1
  100. package/dist/runtime/composables/mongocampUser.d.ts +1 -1
  101. package/dist/runtime/server/composables/mongocampServerApi.d.ts +14 -0
  102. package/dist/runtime/server/composables/mongocampServerApi.js +46 -0
  103. package/package.json +18 -19
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.9
5
+ * The version of the OpenAPI document: 1.5.10
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -28,4 +28,5 @@ export interface PasswordUpdateRequest {
28
28
  export declare function instanceOfPasswordUpdateRequest(value: object): value is PasswordUpdateRequest;
29
29
  export declare function PasswordUpdateRequestFromJSON(json: any): PasswordUpdateRequest;
30
30
  export declare function PasswordUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordUpdateRequest;
31
- export declare function PasswordUpdateRequestToJSON(value?: PasswordUpdateRequest | null): any;
31
+ export declare function PasswordUpdateRequestToJSON(json: any): PasswordUpdateRequest;
32
+ export declare function PasswordUpdateRequestToJSONTyped(value?: PasswordUpdateRequest | null, ignoreDiscriminator?: boolean): any;
@@ -13,7 +13,10 @@ export function PasswordUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
13
13
  "password": json["password"]
14
14
  };
15
15
  }
16
- export function PasswordUpdateRequestToJSON(value) {
16
+ export function PasswordUpdateRequestToJSON(json) {
17
+ return PasswordUpdateRequestToJSONTyped(json, false);
18
+ }
19
+ export function PasswordUpdateRequestToJSONTyped(value, ignoreDiscriminator = false) {
17
20
  if (value == null) {
18
21
  return value;
19
22
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.9
5
+ * The version of the OpenAPI document: 1.5.10
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -34,4 +34,5 @@ export interface PipelineStage {
34
34
  export declare function instanceOfPipelineStage(value: object): value is PipelineStage;
35
35
  export declare function PipelineStageFromJSON(json: any): PipelineStage;
36
36
  export declare function PipelineStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineStage;
37
- export declare function PipelineStageToJSON(value?: PipelineStage | null): any;
37
+ export declare function PipelineStageToJSON(json: any): PipelineStage;
38
+ export declare function PipelineStageToJSONTyped(value?: PipelineStage | null, ignoreDiscriminator?: boolean): any;
@@ -15,7 +15,10 @@ export function PipelineStageFromJSONTyped(json, ignoreDiscriminator) {
15
15
  "value": json["value"]
16
16
  };
17
17
  }
18
- export function PipelineStageToJSON(value) {
18
+ export function PipelineStageToJSON(json) {
19
+ return PipelineStageToJSONTyped(json, false);
20
+ }
21
+ export function PipelineStageToJSONTyped(value, ignoreDiscriminator = false) {
19
22
  if (value == null) {
20
23
  return value;
21
24
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.9
5
+ * The version of the OpenAPI document: 1.5.10
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -41,4 +41,5 @@ export interface Role {
41
41
  export declare function instanceOfRole(value: object): value is Role;
42
42
  export declare function RoleFromJSON(json: any): Role;
43
43
  export declare function RoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Role;
44
- export declare function RoleToJSON(value?: Role | null): any;
44
+ export declare function RoleToJSON(json: any): Role;
45
+ export declare function RoleToJSONTyped(value?: Role | null, ignoreDiscriminator?: boolean): any;
@@ -20,7 +20,10 @@ export function RoleFromJSONTyped(json, ignoreDiscriminator) {
20
20
  "collectionGrants": json["collectionGrants"] == null ? void 0 : json["collectionGrants"].map(GrantFromJSON)
21
21
  };
22
22
  }
23
- export function RoleToJSON(value) {
23
+ export function RoleToJSON(json) {
24
+ return RoleToJSONTyped(json, false);
25
+ }
26
+ export function RoleToJSONTyped(value, ignoreDiscriminator = false) {
24
27
  if (value == null) {
25
28
  return value;
26
29
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.9
5
+ * The version of the OpenAPI document: 1.5.10
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -47,4 +47,5 @@ export interface SchemaAnalysis {
47
47
  export declare function instanceOfSchemaAnalysis(value: object): value is SchemaAnalysis;
48
48
  export declare function SchemaAnalysisFromJSON(json: any): SchemaAnalysis;
49
49
  export declare function SchemaAnalysisFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaAnalysis;
50
- export declare function SchemaAnalysisToJSON(value?: SchemaAnalysis | null): any;
50
+ export declare function SchemaAnalysisToJSON(json: any): SchemaAnalysis;
51
+ export declare function SchemaAnalysisToJSONTyped(value?: SchemaAnalysis | null, ignoreDiscriminator?: boolean): any;
@@ -22,7 +22,10 @@ export function SchemaAnalysisFromJSONTyped(json, ignoreDiscriminator) {
22
22
  "fields": json["fields"] == null ? void 0 : json["fields"].map(SchemaAnalysisFieldFromJSON)
23
23
  };
24
24
  }
25
- export function SchemaAnalysisToJSON(value) {
25
+ export function SchemaAnalysisToJSON(json) {
26
+ return SchemaAnalysisToJSONTyped(json, false);
27
+ }
28
+ export function SchemaAnalysisToJSONTyped(value, ignoreDiscriminator = false) {
26
29
  if (value == null) {
27
30
  return value;
28
31
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.9
5
+ * The version of the OpenAPI document: 1.5.10
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -59,4 +59,5 @@ export interface SchemaAnalysisField {
59
59
  export declare function instanceOfSchemaAnalysisField(value: object): value is SchemaAnalysisField;
60
60
  export declare function SchemaAnalysisFieldFromJSON(json: any): SchemaAnalysisField;
61
61
  export declare function SchemaAnalysisFieldFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaAnalysisField;
62
- export declare function SchemaAnalysisFieldToJSON(value?: SchemaAnalysisField | null): any;
62
+ export declare function SchemaAnalysisFieldToJSON(json: any): SchemaAnalysisField;
63
+ export declare function SchemaAnalysisFieldToJSONTyped(value?: SchemaAnalysisField | null, ignoreDiscriminator?: boolean): any;
@@ -25,7 +25,10 @@ export function SchemaAnalysisFieldFromJSONTyped(json, ignoreDiscriminator) {
25
25
  "subFields": json["subFields"] == null ? void 0 : json["subFields"].map(SchemaAnalysisFieldFromJSON)
26
26
  };
27
27
  }
28
- export function SchemaAnalysisFieldToJSON(value) {
28
+ export function SchemaAnalysisFieldToJSON(json) {
29
+ return SchemaAnalysisFieldToJSONTyped(json, false);
30
+ }
31
+ export function SchemaAnalysisFieldToJSONTyped(value, ignoreDiscriminator = false) {
29
32
  if (value == null) {
30
33
  return value;
31
34
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.9
5
+ * The version of the OpenAPI document: 1.5.10
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -40,4 +40,5 @@ export interface SchemaAnalysisFieldType {
40
40
  export declare function instanceOfSchemaAnalysisFieldType(value: object): value is SchemaAnalysisFieldType;
41
41
  export declare function SchemaAnalysisFieldTypeFromJSON(json: any): SchemaAnalysisFieldType;
42
42
  export declare function SchemaAnalysisFieldTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SchemaAnalysisFieldType;
43
- export declare function SchemaAnalysisFieldTypeToJSON(value?: SchemaAnalysisFieldType | null): any;
43
+ export declare function SchemaAnalysisFieldTypeToJSON(json: any): SchemaAnalysisFieldType;
44
+ export declare function SchemaAnalysisFieldTypeToJSONTyped(value?: SchemaAnalysisFieldType | null, ignoreDiscriminator?: boolean): any;
@@ -17,7 +17,10 @@ export function SchemaAnalysisFieldTypeFromJSONTyped(json, ignoreDiscriminator)
17
17
  "percentageOfParent": json["percentageOfParent"]
18
18
  };
19
19
  }
20
- export function SchemaAnalysisFieldTypeToJSON(value) {
20
+ export function SchemaAnalysisFieldTypeToJSON(json) {
21
+ return SchemaAnalysisFieldTypeToJSONTyped(json, false);
22
+ }
23
+ export function SchemaAnalysisFieldTypeToJSONTyped(value, ignoreDiscriminator = false) {
21
24
  if (value == null) {
22
25
  return value;
23
26
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.9
5
+ * The version of the OpenAPI document: 1.5.10
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -48,4 +48,5 @@ export interface SettingsResponse {
48
48
  export declare function instanceOfSettingsResponse(value: object): value is SettingsResponse;
49
49
  export declare function SettingsResponseFromJSON(json: any): SettingsResponse;
50
50
  export declare function SettingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SettingsResponse;
51
- export declare function SettingsResponseToJSON(value?: SettingsResponse | null): any;
51
+ export declare function SettingsResponseToJSON(json: any): SettingsResponse;
52
+ export declare function SettingsResponseToJSONTyped(value?: SettingsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -16,7 +16,10 @@ export function SettingsResponseFromJSONTyped(json, ignoreDiscriminator) {
16
16
  "configurations": json["configurations"]
17
17
  };
18
18
  }
19
- export function SettingsResponseToJSON(value) {
19
+ export function SettingsResponseToJSON(json) {
20
+ return SettingsResponseToJSONTyped(json, false);
21
+ }
22
+ export function SettingsResponseToJSONTyped(value, ignoreDiscriminator = false) {
20
23
  if (value == null) {
21
24
  return value;
22
25
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.9
5
+ * The version of the OpenAPI document: 1.5.10
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -36,4 +36,5 @@ export interface UpdateFileInformationRequest {
36
36
  export declare function instanceOfUpdateFileInformationRequest(value: object): value is UpdateFileInformationRequest;
37
37
  export declare function UpdateFileInformationRequestFromJSON(json: any): UpdateFileInformationRequest;
38
38
  export declare function UpdateFileInformationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFileInformationRequest;
39
- export declare function UpdateFileInformationRequestToJSON(value?: UpdateFileInformationRequest | null): any;
39
+ export declare function UpdateFileInformationRequestToJSON(json: any): UpdateFileInformationRequest;
40
+ export declare function UpdateFileInformationRequestToJSONTyped(value?: UpdateFileInformationRequest | null, ignoreDiscriminator?: boolean): any;
@@ -13,7 +13,10 @@ export function UpdateFileInformationRequestFromJSONTyped(json, ignoreDiscrimina
13
13
  "metadata": json["metadata"] == null ? void 0 : json["metadata"]
14
14
  };
15
15
  }
16
- export function UpdateFileInformationRequestToJSON(value) {
16
+ export function UpdateFileInformationRequestToJSON(json) {
17
+ return UpdateFileInformationRequestToJSONTyped(json, false);
18
+ }
19
+ export function UpdateFileInformationRequestToJSONTyped(value, ignoreDiscriminator = false) {
17
20
  if (value == null) {
18
21
  return value;
19
22
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.9
5
+ * The version of the OpenAPI document: 1.5.10
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -38,4 +38,5 @@ export interface UpdateRequest {
38
38
  export declare function instanceOfUpdateRequest(value: object): value is UpdateRequest;
39
39
  export declare function UpdateRequestFromJSON(json: any): UpdateRequest;
40
40
  export declare function UpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRequest;
41
- export declare function UpdateRequestToJSON(value?: UpdateRequest | null): any;
41
+ export declare function UpdateRequestToJSON(json: any): UpdateRequest;
42
+ export declare function UpdateRequestToJSONTyped(value?: UpdateRequest | null, ignoreDiscriminator?: boolean): any;
@@ -15,7 +15,10 @@ export function UpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
15
15
  "filter": json["filter"]
16
16
  };
17
17
  }
18
- export function UpdateRequestToJSON(value) {
18
+ export function UpdateRequestToJSON(json) {
19
+ return UpdateRequestToJSONTyped(json, false);
20
+ }
21
+ export function UpdateRequestToJSONTyped(value, ignoreDiscriminator = false) {
19
22
  if (value == null) {
20
23
  return value;
21
24
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.9
5
+ * The version of the OpenAPI document: 1.5.10
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -46,4 +46,5 @@ export interface UpdateResponse {
46
46
  export declare function instanceOfUpdateResponse(value: object): value is UpdateResponse;
47
47
  export declare function UpdateResponseFromJSON(json: any): UpdateResponse;
48
48
  export declare function UpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateResponse;
49
- export declare function UpdateResponseToJSON(value?: UpdateResponse | null): any;
49
+ export declare function UpdateResponseToJSON(json: any): UpdateResponse;
50
+ export declare function UpdateResponseToJSONTyped(value?: UpdateResponse | null, ignoreDiscriminator?: boolean): any;
@@ -18,7 +18,10 @@ export function UpdateResponseFromJSONTyped(json, ignoreDiscriminator) {
18
18
  "matchedCount": json["matchedCount"]
19
19
  };
20
20
  }
21
- export function UpdateResponseToJSON(value) {
21
+ export function UpdateResponseToJSON(json) {
22
+ return UpdateResponseToJSONTyped(json, false);
23
+ }
24
+ export function UpdateResponseToJSONTyped(value, ignoreDiscriminator = false) {
22
25
  if (value == null) {
23
26
  return value;
24
27
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.9
5
+ * The version of the OpenAPI document: 1.5.10
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -35,4 +35,5 @@ export interface UpdateRoleRequest {
35
35
  export declare function instanceOfUpdateRoleRequest(value: object): value is UpdateRoleRequest;
36
36
  export declare function UpdateRoleRequestFromJSON(json: any): UpdateRoleRequest;
37
37
  export declare function UpdateRoleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRoleRequest;
38
- export declare function UpdateRoleRequestToJSON(value?: UpdateRoleRequest | null): any;
38
+ export declare function UpdateRoleRequestToJSON(json: any): UpdateRoleRequest;
39
+ export declare function UpdateRoleRequestToJSONTyped(value?: UpdateRoleRequest | null, ignoreDiscriminator?: boolean): any;
@@ -18,7 +18,10 @@ export function UpdateRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
18
18
  "collectionGrants": json["collectionGrants"] == null ? void 0 : json["collectionGrants"].map(GrantFromJSON)
19
19
  };
20
20
  }
21
- export function UpdateRoleRequestToJSON(value) {
21
+ export function UpdateRoleRequestToJSON(json) {
22
+ return UpdateRoleRequestToJSONTyped(json, false);
23
+ }
24
+ export function UpdateRoleRequestToJSONTyped(value, ignoreDiscriminator = false) {
22
25
  if (value == null) {
23
26
  return value;
24
27
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.9
5
+ * The version of the OpenAPI document: 1.5.10
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -46,4 +46,5 @@ export interface UserInformation {
46
46
  export declare function instanceOfUserInformation(value: object): value is UserInformation;
47
47
  export declare function UserInformationFromJSON(json: any): UserInformation;
48
48
  export declare function UserInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserInformation;
49
- export declare function UserInformationToJSON(value?: UserInformation | null): any;
49
+ export declare function UserInformationToJSON(json: any): UserInformation;
50
+ export declare function UserInformationToJSONTyped(value?: UserInformation | null, ignoreDiscriminator?: boolean): any;
@@ -17,7 +17,10 @@ export function UserInformationFromJSONTyped(json, ignoreDiscriminator) {
17
17
  "roles": json["roles"] == null ? void 0 : json["roles"]
18
18
  };
19
19
  }
20
- export function UserInformationToJSON(value) {
20
+ export function UserInformationToJSON(json) {
21
+ return UserInformationToJSONTyped(json, false);
22
+ }
23
+ export function UserInformationToJSONTyped(value, ignoreDiscriminator = false) {
21
24
  if (value == null) {
22
25
  return value;
23
26
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.9
5
+ * The version of the OpenAPI document: 1.5.10
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -53,4 +53,5 @@ export interface UserProfile {
53
53
  export declare function instanceOfUserProfile(value: object): value is UserProfile;
54
54
  export declare function UserProfileFromJSON(json: any): UserProfile;
55
55
  export declare function UserProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserProfile;
56
- export declare function UserProfileToJSON(value?: UserProfile | null): any;
56
+ export declare function UserProfileToJSON(json: any): UserProfile;
57
+ export declare function UserProfileToJSONTyped(value?: UserProfile | null, ignoreDiscriminator?: boolean): any;
@@ -22,7 +22,10 @@ export function UserProfileFromJSONTyped(json, ignoreDiscriminator) {
22
22
  "grants": json["grants"] == null ? void 0 : json["grants"].map(GrantFromJSON)
23
23
  };
24
24
  }
25
- export function UserProfileToJSON(value) {
25
+ export function UserProfileToJSON(json) {
26
+ return UserProfileToJSONTyped(json, false);
27
+ }
28
+ export function UserProfileToJSONTyped(value, ignoreDiscriminator = false) {
26
29
  if (value == null) {
27
30
  return value;
28
31
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.9
5
+ * The version of the OpenAPI document: 1.5.10
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -40,4 +40,5 @@ export interface Version {
40
40
  export declare function instanceOfVersion(value: object): value is Version;
41
41
  export declare function VersionFromJSON(json: any): Version;
42
42
  export declare function VersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Version;
43
- export declare function VersionToJSON(value?: Version | null): any;
43
+ export declare function VersionToJSON(json: any): Version;
44
+ export declare function VersionToJSONTyped(value?: Version | null, ignoreDiscriminator?: boolean): any;
@@ -17,7 +17,10 @@ export function VersionFromJSONTyped(json, ignoreDiscriminator) {
17
17
  "builtAt": new Date(json["builtAt"])
18
18
  };
19
19
  }
20
- export function VersionToJSON(value) {
20
+ export function VersionToJSON(json) {
21
+ return VersionToJSONTyped(json, false);
22
+ }
23
+ export function VersionToJSONTyped(value, ignoreDiscriminator = false) {
21
24
  if (value == null) {
22
25
  return value;
23
26
  }
@@ -2,7 +2,7 @@
2
2
  * mongocamp-library
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 1.5.9
5
+ * The version of the OpenAPI document: 1.5.10
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,4 +1,4 @@
1
- import { AdminApi, ApplicationApi, AuthApi, BucketApi, CollectionApi, DatabaseApi, DocumentApi, FileApi, IndexApi, InformationApi, JobsApi } from '../api.js';
1
+ import { AdminApi, ApplicationApi, AuthApi, BucketApi, CollectionApi, DatabaseApi, DocumentApi, FileApi, IndexApi, InformationApi, JobsApi } from '../api/index.js';
2
2
  export declare function useMongocampApi(): {
3
3
  adminApi: AdminApi;
4
4
  applicationApi: ApplicationApi;
@@ -1,4 +1,4 @@
1
- import type { UserProfile } from '../api.js';
1
+ import type { UserProfile } from '../api/index.js';
2
2
  export declare function useMongocampAuth(): {
3
3
  login: (loginId: string, loginPassword: string) => Promise<UserProfile>;
4
4
  logout: () => void;
@@ -1,4 +1,4 @@
1
- import type { FindRequest, MongoFindRequest } from '../api.js';
1
+ import type { FindRequest, MongoFindRequest } from '../api/index.js';
2
2
  export declare function useMongocampSearch(): {
3
3
  mongoFindRequest: (filter?: object, sort?: object, projection?: object) => MongoFindRequest;
4
4
  findRequest: (collection: string, searchParameter?: MongoFindRequest, rows?: number, actualPage?: number) => FindRequest;
@@ -1,4 +1,4 @@
1
- import type { UserProfile } from '../api.js';
1
+ import type { UserProfile } from '../api/index.js';
2
2
  export declare function useMongocampStorage(): import("@vueuse/shared").RemovableRef<{
3
3
  token: string;
4
4
  profile: UserProfile;
@@ -1,3 +1,3 @@
1
1
  import type { Ref } from 'vue';
2
- import type { UserProfile } from '../api.js';
2
+ import type { UserProfile } from '../api/index.js';
3
3
  export declare function useMongocampUser(): Ref<UserProfile>;
@@ -0,0 +1,14 @@
1
+ import { AdminApi, ApplicationApi, AuthApi, BucketApi, CollectionApi, DatabaseApi, DocumentApi, FileApi, IndexApi, InformationApi, JobsApi } from '../../api/index.js';
2
+ export declare function useMongocampServerApi(url: string, key?: string, token?: string): {
3
+ adminApi: AdminApi;
4
+ applicationApi: ApplicationApi;
5
+ authApi: AuthApi;
6
+ bucketApi: BucketApi;
7
+ collectionApi: CollectionApi;
8
+ databaseApi: DatabaseApi;
9
+ documentApi: DocumentApi;
10
+ fileApi: FileApi;
11
+ indexApi: IndexApi;
12
+ informationApi: InformationApi;
13
+ jobApi: JobsApi;
14
+ };
@@ -0,0 +1,46 @@
1
+ import {
2
+ AdminApi,
3
+ ApplicationApi,
4
+ AuthApi,
5
+ BucketApi,
6
+ CollectionApi,
7
+ Configuration,
8
+ DatabaseApi,
9
+ DocumentApi,
10
+ FileApi,
11
+ IndexApi,
12
+ InformationApi,
13
+ JobsApi
14
+ } from "../../api/index.js";
15
+ export function useMongocampServerApi(url, key, token) {
16
+ let configuration = new Configuration();
17
+ if (key && key.length > 0)
18
+ configuration = new Configuration({ basePath: url, apiKey: key });
19
+ else if (token && token.length > 0)
20
+ configuration = new Configuration({ basePath: url, accessToken: token });
21
+ console.log(configuration);
22
+ const adminApi = new AdminApi(configuration);
23
+ const applicationApi = new ApplicationApi(configuration);
24
+ const authApi = new AuthApi(configuration);
25
+ const bucketApi = new BucketApi(configuration);
26
+ const collectionApi = new CollectionApi(configuration);
27
+ const databaseApi = new DatabaseApi(configuration);
28
+ const documentApi = new DocumentApi(configuration);
29
+ const fileApi = new FileApi(configuration);
30
+ const indexApi = new IndexApi(configuration);
31
+ const informationApi = new InformationApi(configuration);
32
+ const jobApi = new JobsApi(configuration);
33
+ return {
34
+ adminApi,
35
+ applicationApi,
36
+ authApi,
37
+ bucketApi,
38
+ collectionApi,
39
+ databaseApi,
40
+ documentApi,
41
+ fileApi,
42
+ indexApi,
43
+ informationApi,
44
+ jobApi
45
+ };
46
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sfxcode/nuxt-mongocamp-server",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -24,6 +24,7 @@
24
24
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
25
25
  "release": "npm run lint && npm run test && npm run prepack && changelogen --release --patch && npm publish --access public && git push --follow-tags",
26
26
  "lint": "eslint .",
27
+ "lint:fix": "eslint --fix .",
27
28
  "test": "vitest run",
28
29
  "test:watch": "vitest watch",
29
30
  "test:coverage": "vitest run --coverage",
@@ -32,24 +33,22 @@
32
33
  "api-codegen": "openapi-generator-cli generate -i ./openapi/docs.yaml -g typescript-fetch -o src/runtime/api --additional-properties=typescriptThreePlus=true,supportsES6=true"
33
34
  },
34
35
  "dependencies": {
35
- "@nuxt/kit": "^3.12.4",
36
- "@vueuse/nuxt": "^10.11.0"
36
+ "@nuxt/kit": "^3.15.4",
37
+ "@vueuse/nuxt": "^12.7.0"
37
38
  },
38
39
  "devDependencies": {
39
- "@iconify-json/bx": "^1.1.10",
40
- "@nuxt/devtools": "^1.3.9",
41
- "@nuxt/eslint-config": "^0.4.0",
42
- "@nuxt/module-builder": "^0.8.1",
43
- "@nuxt/schema": "^3.12.4",
44
- "@nuxt/test-utils": "^3.14.0",
45
- "@openapitools/openapi-generator-cli": "^2.13.4",
46
- "@types/node": "^22.1.0",
47
- "@unocss/nuxt": "^0.61.9",
48
- "changelogen": "^0.5.5",
49
- "eslint": "^9.8.0",
50
- "nuxt": "^3.12.4",
51
- "nuxt-primevue": "^3.0.0",
52
- "primeicons": "^7.0.0",
53
- "vitest": "^2.0.5"
54
- }
40
+ "@nuxt/devtools": "^2.1.3",
41
+ "@nuxt/eslint-config": "^1.1.0",
42
+ "@nuxt/module-builder": "^0.8.4",
43
+ "@nuxt/schema": "^3.15.4",
44
+ "@nuxt/test-utils": "^3.17.1",
45
+ "@openapitools/openapi-generator-cli": "^2.17.0",
46
+ "@types/node": "^22.13.9",
47
+ "@unocss/nuxt": "^66.0.0",
48
+ "changelogen": "^0.6.1",
49
+ "eslint": "^9.21.0",
50
+ "nuxt": "^3.15.4",
51
+ "vitest": "^3.0.7"
52
+ },
53
+ "packageManager": "pnpm@10.4.1+sha512.c753b6c3ad7afa13af388fa6d808035a008e30ea9993f58c6663e2bc5ff21679aa834db094987129aa4d488b86df57f7b634981b2f827cdcacc698cc0cfb88af"
55
54
  }