@sfxcode/nuxt-mongocamp-server 1.9.1 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/README.md +83 -5
  2. package/dist/module.d.mts +31 -1
  3. package/dist/module.json +2 -2
  4. package/dist/module.mjs +41 -4
  5. package/dist/runtime/api/apis/AdminApi.d.ts +5 -5
  6. package/dist/runtime/api/apis/AdminApi.js +4 -4
  7. package/dist/runtime/api/apis/ApplicationApi.d.ts +1 -1
  8. package/dist/runtime/api/apis/AuthApi.d.ts +3 -3
  9. package/dist/runtime/api/apis/AuthApi.js +2 -2
  10. package/dist/runtime/api/apis/BucketApi.d.ts +1 -1
  11. package/dist/runtime/api/apis/CollectionApi.d.ts +1 -1
  12. package/dist/runtime/api/apis/DatabaseApi.d.ts +1 -1
  13. package/dist/runtime/api/apis/DocumentApi.d.ts +1 -1
  14. package/dist/runtime/api/apis/FileApi.d.ts +1 -1
  15. package/dist/runtime/api/apis/IndexApi.d.ts +1 -1
  16. package/dist/runtime/api/apis/JobsApi.d.ts +1 -1
  17. package/dist/runtime/api/apis/SystemApi.d.ts +1 -1
  18. package/dist/runtime/api/docs/AdminApi.md +2 -2
  19. package/dist/runtime/api/docs/AuthApi.md +1 -1
  20. package/dist/runtime/api/docs/DocumentApi.md +1 -1
  21. package/dist/runtime/api/models/BucketInformation.d.ts +1 -1
  22. package/dist/runtime/api/models/Capabilities.d.ts +1 -1
  23. package/dist/runtime/api/models/CapabilityLimits.d.ts +1 -1
  24. package/dist/runtime/api/models/ClusterInformation.d.ts +1 -1
  25. package/dist/runtime/api/models/ClusterMemberInformation.d.ts +1 -1
  26. package/dist/runtime/api/models/CollectionCollation.d.ts +1 -1
  27. package/dist/runtime/api/models/CollectionOptions.d.ts +1 -1
  28. package/dist/runtime/api/models/CollectionPermission.d.ts +1 -1
  29. package/dist/runtime/api/models/CollectionStatus.d.ts +1 -1
  30. package/dist/runtime/api/models/CollectionSummary.d.ts +1 -1
  31. package/dist/runtime/api/models/ConnectionStats.d.ts +1 -1
  32. package/dist/runtime/api/models/CopyRequest.d.ts +1 -1
  33. package/dist/runtime/api/models/CopyResponse.d.ts +1 -1
  34. package/dist/runtime/api/models/CountResponse.d.ts +1 -1
  35. package/dist/runtime/api/models/CreateCollectionResponse.d.ts +1 -1
  36. package/dist/runtime/api/models/DatabaseInfo.d.ts +1 -1
  37. package/dist/runtime/api/models/DeleteResponse.d.ts +1 -1
  38. package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
  39. package/dist/runtime/api/models/FieldInfo.d.ts +1 -1
  40. package/dist/runtime/api/models/FieldTypeCount.d.ts +1 -1
  41. package/dist/runtime/api/models/FileInformation.d.ts +1 -1
  42. package/dist/runtime/api/models/Grant.d.ts +1 -1
  43. package/dist/runtime/api/models/ImportResponse.d.ts +1 -1
  44. package/dist/runtime/api/models/IndexCreateRequest.d.ts +1 -1
  45. package/dist/runtime/api/models/IndexCreateResponse.d.ts +1 -1
  46. package/dist/runtime/api/models/IndexDropResponse.d.ts +1 -1
  47. package/dist/runtime/api/models/IndexInfo.d.ts +1 -1
  48. package/dist/runtime/api/models/IndexKey.d.ts +1 -1
  49. package/dist/runtime/api/models/IndexOptionsRequest.d.ts +1 -1
  50. package/dist/runtime/api/models/IndexUsage.d.ts +1 -1
  51. package/dist/runtime/api/models/InsertError.d.ts +1 -1
  52. package/dist/runtime/api/models/InsertResponse.d.ts +1 -1
  53. package/dist/runtime/api/models/JobConfig.d.ts +1 -1
  54. package/dist/runtime/api/models/JobInformation.d.ts +1 -1
  55. package/dist/runtime/api/models/JsonSchema.d.ts +1 -1
  56. package/dist/runtime/api/models/JsonSchemaDefinition.d.ts +1 -1
  57. package/dist/runtime/api/models/JsonValueAny.d.ts +1 -1
  58. package/dist/runtime/api/models/JsonValueBoolean.d.ts +1 -1
  59. package/dist/runtime/api/models/JsonValueString.d.ts +1 -1
  60. package/dist/runtime/api/models/Login.d.ts +1 -1
  61. package/dist/runtime/api/models/LoginResult.d.ts +1 -1
  62. package/dist/runtime/api/models/MongoAggregateRequest.d.ts +1 -1
  63. package/dist/runtime/api/models/MongoCampConfiguration.d.ts +1 -1
  64. package/dist/runtime/api/models/MongoFindRequest.d.ts +1 -1
  65. package/dist/runtime/api/models/MongoIndex.d.ts +1 -1
  66. package/dist/runtime/api/models/OpCounters.d.ts +1 -1
  67. package/dist/runtime/api/models/PasswordUpdateRequest.d.ts +1 -1
  68. package/dist/runtime/api/models/PipelineStage.d.ts +1 -1
  69. package/dist/runtime/api/models/RenameRequest.d.ts +1 -1
  70. package/dist/runtime/api/models/RenameResponse.d.ts +1 -1
  71. package/dist/runtime/api/models/ReplicaSetState.d.ts +1 -1
  72. package/dist/runtime/api/models/Role.d.ts +1 -1
  73. package/dist/runtime/api/models/SchemaAnalysis.d.ts +1 -1
  74. package/dist/runtime/api/models/SchemaAnalysisField.d.ts +1 -1
  75. package/dist/runtime/api/models/SchemaAnalysisFieldType.d.ts +1 -1
  76. package/dist/runtime/api/models/SearchRequest.d.ts +1 -1
  77. package/dist/runtime/api/models/SettingsResponse.d.ts +1 -1
  78. package/dist/runtime/api/models/SystemInfo.d.ts +1 -1
  79. package/dist/runtime/api/models/SystemStats.d.ts +1 -1
  80. package/dist/runtime/api/models/UpdateFileInformationRequest.d.ts +1 -1
  81. package/dist/runtime/api/models/UpdateRequest.d.ts +1 -1
  82. package/dist/runtime/api/models/UpdateResponse.d.ts +1 -1
  83. package/dist/runtime/api/models/UpdateRoleRequest.d.ts +1 -1
  84. package/dist/runtime/api/models/UserInformation.d.ts +1 -1
  85. package/dist/runtime/api/models/UserProfile.d.ts +1 -1
  86. package/dist/runtime/api/models/Version.d.ts +1 -1
  87. package/dist/runtime/api/runtime.d.ts +1 -1
  88. package/dist/runtime/composables/mongocampApi.js +7 -0
  89. package/dist/runtime/server/composables/mongocampApi.d.ts +2 -1
  90. package/dist/runtime/server/composables/mongocampApi.js +11 -5
  91. package/dist/runtime/server/composables/mongocampServerApi.d.ts +2 -1
  92. package/dist/runtime/server/composables/mongocampServerApi.js +3 -7
  93. package/dist/runtime/server/mongocamp/core.d.ts +22 -0
  94. package/dist/runtime/server/mongocamp/core.js +32 -0
  95. package/dist/runtime/server/mongocamp/handler.d.ts +3 -0
  96. package/dist/runtime/server/mongocamp/handler.js +8 -0
  97. package/dist/runtime/server/mongocamp/plugin.d.ts +3 -0
  98. package/dist/runtime/server/mongocamp/plugin.js +7 -0
  99. package/dist/types.d.mts +1 -1
  100. package/package.json +38 -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.9.0
5
+ * The version of the OpenAPI document: 1.9.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,3 +1,4 @@
1
+ import { useRequestFetch } from "#app";
1
2
  import { Configuration } from "../api/index.js";
2
3
  import { createMongocampApis } from "../utils/createMongocampApis.js";
3
4
  import { useMongocampUrl } from "./mongocampUrl.js";
@@ -5,8 +6,14 @@ import { useMongocampStorage } from "./mongocampStorage.js";
5
6
  export function useMongocampApi() {
6
7
  const url = useMongocampUrl();
7
8
  const state = useMongocampStorage();
9
+ let fetchApi;
10
+ if (import.meta.server && url?.startsWith("/")) {
11
+ const requestFetch = useRequestFetch();
12
+ fetchApi = ((input, init) => requestFetch.native(input, init));
13
+ }
8
14
  const configuration = new Configuration({
9
15
  basePath: url,
16
+ ...fetchApi ? { fetchApi } : {},
10
17
  accessToken: () => state.value.token,
11
18
  middleware: [{
12
19
  // a 401 means the token itself is invalid/expired, so clear it everywhere.
@@ -1,5 +1,6 @@
1
1
  import type { H3Event } from 'h3';
2
- export declare function useMongocampApi(event: H3Event, token?: string): {
2
+ /** The generated client for the server code; `event` is kept for the signature of the earlier versions. */
3
+ export declare function useMongocampApi(_event: H3Event, token?: string): {
3
4
  adminApi: import("../../api/index.js").AdminApi;
4
5
  applicationApi: import("../../api/index.js").ApplicationApi;
5
6
  authApi: import("../../api/index.js").AuthApi;
@@ -1,8 +1,14 @@
1
- import { useRuntimeConfig } from "#imports";
1
+ import { useRuntimeConfig } from "nitro/runtime-config";
2
+ import { useMongocampCore } from "../mongocamp/core.js";
2
3
  import { useMongocampServerApi } from "./mongocampServerApi.js";
3
- export function useMongocampApi(event, token) {
4
- const config = useRuntimeConfig(event);
5
- const url = config.public.mongocamp?.url;
4
+ const EmbeddedBase = "http://mongocamp.embedded";
5
+ export function useMongocampApi(_event, token) {
6
+ const config = useRuntimeConfig();
6
7
  const apiKey = config.mongocampApiKey;
7
- return useMongocampServerApi(url, apiKey, token);
8
+ const embedded = config.mongocampServer;
9
+ if (embedded?.enabled) {
10
+ const fetchApi = async (input, init) => (await useMongocampCore(embedded)).fetch(new Request(input, init));
11
+ return useMongocampServerApi(EmbeddedBase, apiKey, token, fetchApi);
12
+ }
13
+ return useMongocampServerApi(config.public.mongocamp?.url, apiKey, token);
8
14
  }
@@ -1,4 +1,5 @@
1
- export declare function useMongocampServerApi(url: string, key?: string, token?: string): {
1
+ import type { FetchAPI } from '../../api/index.js';
2
+ export declare function useMongocampServerApi(url: string, key?: string, token?: string, fetchApi?: FetchAPI): {
2
3
  adminApi: import("../../api/index.js").AdminApi;
3
4
  applicationApi: import("../../api/index.js").ApplicationApi;
4
5
  authApi: import("../../api/index.js").AuthApi;
@@ -1,10 +1,6 @@
1
1
  import { Configuration } from "../../api/index.js";
2
2
  import { createMongocampApis } from "../../utils/createMongocampApis.js";
3
- export function useMongocampServerApi(url, key, token) {
4
- let configuration = new Configuration({ basePath: url });
5
- if (key && key.length > 0)
6
- configuration = new Configuration({ basePath: url, apiKey: key });
7
- else if (token && token.length > 0)
8
- configuration = new Configuration({ basePath: url, accessToken: token });
9
- return createMongocampApis(configuration);
3
+ export function useMongocampServerApi(url, key, token, fetchApi) {
4
+ const credentials = key && key.length > 0 ? { apiKey: key } : token && token.length > 0 ? { accessToken: token } : {};
5
+ return createMongocampApis(new Configuration({ basePath: url, ...credentials, ...fetchApi ? { fetchApi } : {} }));
10
6
  }