@sfxcode/nuxt-mongocamp-server 1.2.8 → 1.3.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 (70) hide show
  1. package/dist/module.d.mts +1 -0
  2. package/dist/module.json +3 -3
  3. package/dist/module.mjs +4 -3
  4. package/dist/runtime/api/.openapi-generator/FILES +50 -0
  5. package/dist/runtime/api/.openapi-generator/VERSION +1 -1
  6. package/dist/runtime/api/apis/AdminApi.js +32 -12
  7. package/dist/runtime/api/apis/ApplicationApi.js +12 -5
  8. package/dist/runtime/api/apis/AuthApi.js +16 -8
  9. package/dist/runtime/api/apis/BucketApi.js +11 -4
  10. package/dist/runtime/api/apis/CollectionApi.js +30 -10
  11. package/dist/runtime/api/apis/DatabaseApi.js +13 -5
  12. package/dist/runtime/api/apis/DocumentApi.js +34 -10
  13. package/dist/runtime/api/apis/FileApi.js +25 -7
  14. package/dist/runtime/api/apis/IndexApi.js +31 -8
  15. package/dist/runtime/api/apis/InformationApi.js +2 -1
  16. package/dist/runtime/api/apis/JobsApi.js +18 -6
  17. package/dist/runtime/api/docs/AdminApi.md +972 -0
  18. package/dist/runtime/api/docs/ApplicationApi.md +387 -0
  19. package/dist/runtime/api/docs/AuthApi.md +577 -0
  20. package/dist/runtime/api/docs/BucketApi.md +312 -0
  21. package/dist/runtime/api/docs/BucketInformation.md +40 -0
  22. package/dist/runtime/api/docs/CollectionApi.md +822 -0
  23. package/dist/runtime/api/docs/CollectionStatus.md +58 -0
  24. package/dist/runtime/api/docs/DatabaseApi.md +382 -0
  25. package/dist/runtime/api/docs/DatabaseInfo.md +42 -0
  26. package/dist/runtime/api/docs/DeleteResponse.md +36 -0
  27. package/dist/runtime/api/docs/DocumentApi.md +850 -0
  28. package/dist/runtime/api/docs/ErrorDescription.md +38 -0
  29. package/dist/runtime/api/docs/FileApi.md +606 -0
  30. package/dist/runtime/api/docs/FileInformation.md +44 -0
  31. package/dist/runtime/api/docs/Grant.md +42 -0
  32. package/dist/runtime/api/docs/IndexApi.md +682 -0
  33. package/dist/runtime/api/docs/IndexCreateRequest.md +36 -0
  34. package/dist/runtime/api/docs/IndexCreateResponse.md +34 -0
  35. package/dist/runtime/api/docs/IndexDropResponse.md +34 -0
  36. package/dist/runtime/api/docs/IndexOptionsRequest.md +48 -0
  37. package/dist/runtime/api/docs/InformationApi.md +69 -0
  38. package/dist/runtime/api/docs/InsertResponse.md +36 -0
  39. package/dist/runtime/api/docs/JobConfig.md +44 -0
  40. package/dist/runtime/api/docs/JobInformation.md +50 -0
  41. package/dist/runtime/api/docs/JobsApi.md +474 -0
  42. package/dist/runtime/api/docs/JsonSchema.md +38 -0
  43. package/dist/runtime/api/docs/JsonSchemaDefinition.md +42 -0
  44. package/dist/runtime/api/docs/JsonValueAny.md +34 -0
  45. package/dist/runtime/api/docs/JsonValueBoolean.md +34 -0
  46. package/dist/runtime/api/docs/JsonValueString.md +34 -0
  47. package/dist/runtime/api/docs/Login.md +36 -0
  48. package/dist/runtime/api/docs/LoginResult.md +38 -0
  49. package/dist/runtime/api/docs/MongoAggregateRequest.md +36 -0
  50. package/dist/runtime/api/docs/MongoCampConfiguration.md +42 -0
  51. package/dist/runtime/api/docs/MongoFindRequest.md +38 -0
  52. package/dist/runtime/api/docs/MongoIndex.md +56 -0
  53. package/dist/runtime/api/docs/PasswordUpdateRequest.md +34 -0
  54. package/dist/runtime/api/docs/PipelineStage.md +36 -0
  55. package/dist/runtime/api/docs/Role.md +38 -0
  56. package/dist/runtime/api/docs/SchemaAnalysis.md +40 -0
  57. package/dist/runtime/api/docs/SchemaAnalysisField.md +44 -0
  58. package/dist/runtime/api/docs/SchemaAnalysisFieldType.md +38 -0
  59. package/dist/runtime/api/docs/SettingsResponse.md +40 -0
  60. package/dist/runtime/api/docs/UpdateFileInformationRequest.md +36 -0
  61. package/dist/runtime/api/docs/UpdateRequest.md +36 -0
  62. package/dist/runtime/api/docs/UpdateResponse.md +40 -0
  63. package/dist/runtime/api/docs/UpdateRoleRequest.md +36 -0
  64. package/dist/runtime/api/docs/UserInformation.md +40 -0
  65. package/dist/runtime/api/docs/UserProfile.md +42 -0
  66. package/dist/runtime/api/docs/Version.md +38 -0
  67. package/dist/runtime/api/models/JobInformation.js +2 -2
  68. package/dist/runtime/composables/mongocampAuth.d.ts +3 -3
  69. package/dist/types.d.mts +2 -0
  70. package/package.json +16 -16
@@ -0,0 +1,42 @@
1
+
2
+ # UserProfile
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `user` | string
10
+ `isAdmin` | boolean
11
+ `apiKey` | string
12
+ `roles` | Array<string>
13
+ `grants` | [Array<Grant>](Grant.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { UserProfile } from ''
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "user": null,
23
+ "isAdmin": null,
24
+ "apiKey": null,
25
+ "roles": null,
26
+ "grants": null,
27
+ } satisfies UserProfile
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as UserProfile
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -0,0 +1,38 @@
1
+
2
+ # Version
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `version` | string
11
+ `builtAt` | Date
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { Version } from ''
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "name": null,
21
+ "version": null,
22
+ "builtAt": null,
23
+ } satisfies Version
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as Version
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -40,8 +40,8 @@ export function JobInformationToJSONTyped(value, ignoreDiscriminator = false) {
40
40
  "description": value["description"],
41
41
  "cronExpression": value["cronExpression"],
42
42
  "priority": value["priority"],
43
- "lastScheduledFireTime": value["lastScheduledFireTime"] == null ? void 0 : value["lastScheduledFireTime"].toISOString(),
44
- "nextScheduledFireTime": value["nextScheduledFireTime"] == null ? void 0 : value["nextScheduledFireTime"].toISOString(),
43
+ "lastScheduledFireTime": value["lastScheduledFireTime"] == null ? value["lastScheduledFireTime"] : value["lastScheduledFireTime"].toISOString(),
44
+ "nextScheduledFireTime": value["nextScheduledFireTime"] == null ? value["nextScheduledFireTime"] : value["nextScheduledFireTime"].toISOString(),
45
45
  "scheduleInformation": value["scheduleInformation"]
46
46
  };
47
47
  }
@@ -3,7 +3,7 @@ export declare function useMongocampAuth(): {
3
3
  login: (loginId: string, loginPassword: string) => Promise<UserProfile>;
4
4
  logout: () => void;
5
5
  isAuthenticated: () => Promise<import("../api/index.js").JsonValueBoolean>;
6
- isLoggedIn: import("@vue/reactivity").ComputedRef<boolean>;
7
- userRoles: import("@vue/reactivity").ComputedRef<string[]>;
8
- userGrants: import("@vue/reactivity").ComputedRef<import("../api/index.js").Grant[]>;
6
+ isLoggedIn: import("vue").ComputedRef<boolean>;
7
+ userRoles: import("vue").ComputedRef<string[]>;
8
+ userGrants: import("vue").ComputedRef<import("../api/index.js").Grant[]>;
9
9
  };
package/dist/types.d.mts CHANGED
@@ -1,3 +1,5 @@
1
1
  export { default } from './module.mjs'
2
2
 
3
3
  export { type ModuleOptions } from './module.mjs'
4
+
5
+ export * from '../dist/runtime/api/models/index.js'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sfxcode/nuxt-mongocamp-server",
3
- "version": "1.2.8",
3
+ "version": "1.3.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -28,7 +28,7 @@
28
28
  "dev": "nuxi dev playground",
29
29
  "dev:build": "nuxi build playground",
30
30
  "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
31
- "release": "npm run lint && npm run test && npm run prepack && changelogen --release --patch && npm publish --access public && git push --follow-tags",
31
+ "release": "npm run lint && npm run test && npm run prepack && changelogen --release --minor && npm publish --access public && git push --follow-tags",
32
32
  "lint": "eslint .",
33
33
  "lint:fix": "eslint --fix .",
34
34
  "test": "vitest run",
@@ -39,22 +39,22 @@
39
39
  "api-codegen": "openapi-generator-cli generate -i ./openapi/docs.yaml -g typescript-fetch -o src/runtime/api --additional-properties=typescriptThreePlus=true,supportsES6=true"
40
40
  },
41
41
  "dependencies": {
42
- "@nuxt/kit": "^3.17.7",
43
- "@vueuse/nuxt": "^13.5.0"
42
+ "@nuxt/kit": "^4.3.1",
43
+ "@vueuse/nuxt": "^14.2.1"
44
44
  },
45
45
  "devDependencies": {
46
- "@nuxt/devtools": "^2.6.2",
47
- "@nuxt/eslint-config": "^1.6.0",
48
- "@nuxt/module-builder": "^1.0.1",
49
- "@nuxt/schema": "^3.17.7",
50
- "@nuxt/test-utils": "^3.19.2",
51
- "@openapitools/openapi-generator-cli": "^2.21.3",
52
- "@types/node": "^24.0.15",
53
- "@unocss/nuxt": "66.2.3",
46
+ "@nuxt/devtools": "^3.2.1",
47
+ "@nuxt/eslint-config": "^1.15.1",
48
+ "@nuxt/module-builder": "^1.0.2",
49
+ "@nuxt/schema": "^4.3.1",
50
+ "@nuxt/test-utils": "^4.0.0",
51
+ "@openapitools/openapi-generator-cli": "^2.29.0",
52
+ "@types/node": "^25.3.0",
53
+ "@unocss/nuxt": "66.6.0",
54
54
  "changelogen": "^0.6.2",
55
- "eslint": "^9.31.0",
56
- "nuxt": "^3.17.7",
57
- "vitest": "^3.2.4"
55
+ "eslint": "^10.0.0",
56
+ "nuxt": "^4.3.1",
57
+ "vitest": "^4.0.18"
58
58
  },
59
- "packageManager": "pnpm@10.4.1+sha512.c753b6c3ad7afa13af388fa6d808035a008e30ea9993f58c6663e2bc5ff21679aa834db094987129aa4d488b86df57f7b634981b2f827cdcacc698cc0cfb88af"
59
+ "packageManager": "pnpm@10.30.0+sha512.2b5753de015d480eeb88f5b5b61e0051f05b4301808a82ec8b840c9d2adf7748eb352c83f5c1593ca703ff1017295bc3fdd3119abb9686efc96b9fcb18200937"
60
60
  }