@sfxcode/nuxt-mongocamp-server 2.2.0 → 2.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 (60) hide show
  1. package/README.md +52 -1
  2. package/dist/module.d.mts +10 -0
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +91 -11
  5. package/dist/runtime/api/.openapi-generator/FILES +18 -0
  6. package/dist/runtime/api/apis/CollectionApi.d.ts +124 -0
  7. package/dist/runtime/api/apis/CollectionApi.js +205 -0
  8. package/dist/runtime/api/apis/DocumentApi.d.ts +134 -0
  9. package/dist/runtime/api/apis/DocumentApi.js +208 -0
  10. package/dist/runtime/api/docs/AuditEntry.md +52 -0
  11. package/dist/runtime/api/docs/CollectionApi.md +269 -2
  12. package/dist/runtime/api/docs/CollectionDeclaration.md +52 -0
  13. package/dist/runtime/api/docs/CollectionDeclarationAudit.md +34 -0
  14. package/dist/runtime/api/docs/CollectionDeclarationOwner.md +36 -0
  15. package/dist/runtime/api/docs/CollectionDeclarationSoftDelete.md +36 -0
  16. package/dist/runtime/api/docs/CollectionDeclarationTimestamps.md +40 -0
  17. package/dist/runtime/api/docs/CollectionDeclarationVersioned.md +38 -0
  18. package/dist/runtime/api/docs/DocumentApi.md +282 -8
  19. package/dist/runtime/api/docs/ErrorDescription.md +4 -0
  20. package/dist/runtime/api/docs/SuggestedValidator.md +40 -0
  21. package/dist/runtime/api/docs/ValidationIssue.md +36 -0
  22. package/dist/runtime/api/models/AuditEntry.d.ts +88 -0
  23. package/dist/runtime/api/models/AuditEntry.js +56 -0
  24. package/dist/runtime/api/models/CollectionDeclaration.d.ts +80 -0
  25. package/dist/runtime/api/models/CollectionDeclaration.js +73 -0
  26. package/dist/runtime/api/models/CollectionDeclarationAudit.d.ts +30 -0
  27. package/dist/runtime/api/models/CollectionDeclarationAudit.js +26 -0
  28. package/dist/runtime/api/models/CollectionDeclarationOwner.d.ts +43 -0
  29. package/dist/runtime/api/models/CollectionDeclarationOwner.js +34 -0
  30. package/dist/runtime/api/models/CollectionDeclarationSoftDelete.d.ts +34 -0
  31. package/dist/runtime/api/models/CollectionDeclarationSoftDelete.js +28 -0
  32. package/dist/runtime/api/models/CollectionDeclarationTimestamps.d.ts +42 -0
  33. package/dist/runtime/api/models/CollectionDeclarationTimestamps.js +33 -0
  34. package/dist/runtime/api/models/CollectionDeclarationVersioned.d.ts +46 -0
  35. package/dist/runtime/api/models/CollectionDeclarationVersioned.js +36 -0
  36. package/dist/runtime/api/models/ErrorDescription.d.ts +11 -0
  37. package/dist/runtime/api/models/ErrorDescription.js +10 -2
  38. package/dist/runtime/api/models/SuggestedValidator.d.ts +44 -0
  39. package/dist/runtime/api/models/SuggestedValidator.js +35 -0
  40. package/dist/runtime/api/models/ValidationIssue.d.ts +34 -0
  41. package/dist/runtime/api/models/ValidationIssue.js +29 -0
  42. package/dist/runtime/api/models/index.d.ts +9 -0
  43. package/dist/runtime/api/models/index.js +9 -0
  44. package/dist/runtime/composables/mongocampApiCollection.d.ts +14 -15
  45. package/dist/runtime/composables/mongocampApiCollection.js +4 -1
  46. package/dist/runtime/composables/mongocampCollection.d.ts +106 -0
  47. package/dist/runtime/composables/mongocampCollection.js +200 -0
  48. package/dist/runtime/composables/mongocampLive.d.ts +33 -0
  49. package/dist/runtime/composables/mongocampLive.js +152 -0
  50. package/dist/runtime/composables/mongocampSearch.d.ts +12 -9
  51. package/dist/runtime/server/mongocamp/plugin.d.ts +2 -2
  52. package/dist/runtime/server/mongocamp/plugin.js +10 -1
  53. package/dist/runtime/types/collections.d.ts +20 -0
  54. package/dist/runtime/types/collections.js +0 -0
  55. package/dist/runtime/utils/sse.d.ts +10 -0
  56. package/dist/runtime/utils/sse.js +33 -0
  57. package/dist/runtime/utils/toMongocampError.d.ts +7 -0
  58. package/dist/runtime/utils/toMongocampError.js +18 -1
  59. package/dist/types.d.mts +6 -0
  60. package/package.json +4 -3
@@ -0,0 +1,52 @@
1
+
2
+ # CollectionDeclaration
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `database` | string
11
+ `validation` | string
12
+ `systemFields` | Array<string>
13
+ `protectedFields` | Array<string>
14
+ `timestamps` | [CollectionDeclarationTimestamps](CollectionDeclarationTimestamps.md)
15
+ `owner` | [CollectionDeclarationOwner](CollectionDeclarationOwner.md)
16
+ `softDelete` | [CollectionDeclarationSoftDelete](CollectionDeclarationSoftDelete.md)
17
+ `versioned` | [CollectionDeclarationVersioned](CollectionDeclarationVersioned.md)
18
+ `audit` | [CollectionDeclarationAudit](CollectionDeclarationAudit.md)
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import type { CollectionDeclaration } from ''
24
+
25
+ // TODO: Update the object below with actual values
26
+ const example = {
27
+ "name": null,
28
+ "database": null,
29
+ "validation": null,
30
+ "systemFields": null,
31
+ "protectedFields": null,
32
+ "timestamps": null,
33
+ "owner": null,
34
+ "softDelete": null,
35
+ "versioned": null,
36
+ "audit": null,
37
+ } satisfies CollectionDeclaration
38
+
39
+ console.log(example)
40
+
41
+ // Convert the instance to a JSON string
42
+ const exampleJSON: string = JSON.stringify(example)
43
+ console.log(exampleJSON)
44
+
45
+ // Parse the JSON string back to an object
46
+ const exampleParsed = JSON.parse(exampleJSON) as CollectionDeclaration
47
+ console.log(exampleParsed)
48
+ ```
49
+
50
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
51
+
52
+
@@ -0,0 +1,34 @@
1
+
2
+ # CollectionDeclarationAudit
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `retentionDays` | number
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { CollectionDeclarationAudit } from ''
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "retentionDays": null,
19
+ } satisfies CollectionDeclarationAudit
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as CollectionDeclarationAudit
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,36 @@
1
+
2
+ # CollectionDeclarationOwner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `field` | string
10
+ `read` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { CollectionDeclarationOwner } from ''
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "field": null,
20
+ "read": null,
21
+ } satisfies CollectionDeclarationOwner
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as CollectionDeclarationOwner
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,36 @@
1
+
2
+ # CollectionDeclarationSoftDelete
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `field` | string
10
+ `purgeAfterDays` | number
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { CollectionDeclarationSoftDelete } from ''
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "field": null,
20
+ "purgeAfterDays": null,
21
+ } satisfies CollectionDeclarationSoftDelete
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as CollectionDeclarationSoftDelete
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,40 @@
1
+
2
+ # CollectionDeclarationTimestamps
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `createdAt` | string
10
+ `updatedAt` | string
11
+ `createdBy` | string
12
+ `updatedBy` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { CollectionDeclarationTimestamps } from ''
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "createdAt": null,
22
+ "updatedAt": null,
23
+ "createdBy": null,
24
+ "updatedBy": null,
25
+ } satisfies CollectionDeclarationTimestamps
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as CollectionDeclarationTimestamps
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,38 @@
1
+
2
+ # CollectionDeclarationVersioned
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `mode` | string
10
+ `field` | string
11
+ `required` | boolean
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { CollectionDeclarationVersioned } from ''
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "mode": null,
21
+ "field": null,
22
+ "required": null,
23
+ } satisfies CollectionDeclarationVersioned
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 CollectionDeclarationVersioned
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
+