@junobuild/cli 0.2.6 → 0.2.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/cli",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "The Juno command-line interface",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",
@@ -49,7 +49,7 @@
49
49
  "@eslint/eslintrc": "^3.3.0",
50
50
  "@eslint/js": "^9.22.0",
51
51
  "@junobuild/config": "^0.1.3",
52
- "@junobuild/functions": "^0.0.12",
52
+ "@junobuild/functions": "^0.0.13",
53
53
  "@types/node": "^22.13.10",
54
54
  "@types/prompts": "^2.4.9",
55
55
  "@types/semver": "^7.5.8",
@@ -4,12 +4,67 @@ import {defineAssert, defineHook} from '@junobuild/functions';
4
4
  // However, if you don’t have to implement all of them, for example to improve readability or reduce unnecessary logic,
5
5
  // you can selectively delete the features you do not need.
6
6
 
7
+ export const onSetDoc = defineHook({
8
+ collections: [],
9
+ run: async (context) => {}
10
+ });
11
+
12
+ export const onSetManyDocs = defineHook({
13
+ collections: [],
14
+ run: async (context) => {}
15
+ });
16
+
17
+ export const onDeleteDoc = defineHook({
18
+ collections: [],
19
+ run: async (context) => {}
20
+ });
21
+
22
+ export const onDeleteManyDocs = defineHook({
23
+ collections: [],
24
+ run: async (context) => {}
25
+ });
26
+
27
+ export const onDeleteFilteredDocs = defineHook({
28
+ collections: [],
29
+ run: async (context) => {}
30
+ });
31
+
32
+ export const onUploadAsset = defineHook({
33
+ collections: [],
34
+ run: async (context) => {}
35
+ });
36
+
37
+ export const onDeleteAsset = defineHook({
38
+ collections: [],
39
+ run: async (context) => {}
40
+ });
41
+
42
+ export const onDeleteManyAssets = defineHook({
43
+ collections: [],
44
+ run: async (context) => {}
45
+ });
46
+
47
+ export const onDeleteFilteredAssets = defineHook({
48
+ collections: [],
49
+ run: async (context) => {}
50
+ });
51
+
7
52
  export const assertSetDoc = defineAssert({
8
53
  collections: [],
9
54
  assert: (context) => {}
10
55
  });
11
56
 
12
- export const onSetDoc = defineHook({
57
+ export const assertDeleteDoc = defineAssert({
13
58
  collections: [],
14
- run: async (context) => {}
59
+ assert: (context) => {}
60
+ });
61
+
62
+ export const assertUploadAsset = defineAssert({
63
+ collections: [],
64
+ assert: (context) => {}
65
+ });
66
+
67
+ export const assertDeleteAsset = defineAssert({
68
+ collections: [],
69
+ assert: (context) => {}
15
70
  });
@@ -1,15 +1,86 @@
1
- import {type AssertSetDoc, defineAssert, defineHook, type OnSetDoc} from '@junobuild/functions';
1
+ import {
2
+ type AssertDeleteAsset,
3
+ type AssertDeleteDoc,
4
+ type AssertSetDoc,
5
+ type AssertUploadAsset,
6
+ defineAssert,
7
+ defineHook,
8
+ type OnDeleteAsset,
9
+ type OnDeleteDoc,
10
+ type OnDeleteFilteredAssets,
11
+ type OnDeleteFilteredDocs,
12
+ type OnDeleteManyAssets,
13
+ type OnDeleteManyDocs,
14
+ type OnSetDoc,
15
+ type OnSetManyDocs,
16
+ OnUploadAsset
17
+ } from '@junobuild/functions';
2
18
 
3
19
  // All the available hooks and assertions for your Datastore and Storage are scaffolded by default in this module.
4
20
  // However, if you don’t have to implement all of them, for example to improve readability or reduce unnecessary logic,
5
21
  // you can selectively delete the features you do not need.
6
22
 
23
+ export const onSetDoc = defineHook<OnSetDoc>({
24
+ collections: [],
25
+ run: async (context) => {}
26
+ });
27
+
28
+ export const onSetManyDocs = defineHook<OnSetManyDocs>({
29
+ collections: [],
30
+ run: async (context) => {}
31
+ });
32
+
33
+ export const onDeleteDoc = defineHook<OnDeleteDoc>({
34
+ collections: [],
35
+ run: async (context) => {}
36
+ });
37
+
38
+ export const onDeleteManyDocs = defineHook<OnDeleteManyDocs>({
39
+ collections: [],
40
+ run: async (context) => {}
41
+ });
42
+
43
+ export const onDeleteFilteredDocs = defineHook<OnDeleteFilteredDocs>({
44
+ collections: [],
45
+ run: async (context) => {}
46
+ });
47
+
48
+ export const onUploadAsset = defineHook<OnUploadAsset>({
49
+ collections: [],
50
+ run: async (context) => {}
51
+ });
52
+
53
+ export const onDeleteAsset = defineHook<OnDeleteAsset>({
54
+ collections: [],
55
+ run: async (context) => {}
56
+ });
57
+
58
+ export const onDeleteManyAssets = defineHook<OnDeleteManyAssets>({
59
+ collections: [],
60
+ run: async (context) => {}
61
+ });
62
+
63
+ export const onDeleteFilteredAssets = defineHook<OnDeleteFilteredAssets>({
64
+ collections: [],
65
+ run: async (context) => {}
66
+ });
67
+
7
68
  export const assertSetDoc = defineAssert<AssertSetDoc>({
8
69
  collections: [],
9
70
  assert: (context) => {}
10
71
  });
11
72
 
12
- export const onSetDoc = defineHook<OnSetDoc>({
73
+ export const assertDeleteDoc = defineAssert<AssertDeleteDoc>({
13
74
  collections: [],
14
- run: async (context) => {}
75
+ assert: (context) => {}
76
+ });
77
+
78
+ export const assertUploadAsset = defineAssert<AssertUploadAsset>({
79
+ collections: [],
80
+ assert: (context) => {}
81
+ });
82
+
83
+ export const assertDeleteAsset = defineAssert<AssertDeleteAsset>({
84
+ collections: [],
85
+ assert: (context) => {}
15
86
  });