zenstack 0.2.11 → 0.2.12

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.
@@ -10,33 +10,33 @@ enum ReferentialAction {
10
10
  }
11
11
 
12
12
  /*
13
- * Reads value from an environment variable
13
+ * Reads value from an environment variable.
14
14
  */
15
15
  function env(name: String): String {}
16
16
 
17
17
  /*
18
- * Gets thec current login user
18
+ * Gets thec current login user.
19
19
  */
20
20
  function auth(): Any {}
21
21
 
22
22
  /*
23
- * Gets current date-time (as DateTime type)
23
+ * Gets current date-time (as DateTime type).
24
24
  */
25
25
  function now(): DateTime {}
26
26
 
27
27
  /*
28
- * Generate a globally unique identifier based on the UUID spec
28
+ * Generates a globally unique identifier based on the UUID specs.
29
29
  */
30
30
  function uuid(): String {}
31
31
 
32
32
  /*
33
- * Generate a globally unique identifier based on the CUID spec
33
+ * Generates a globally unique identifier based on the CUID spec.
34
34
  */
35
35
  function cuid(): String {}
36
36
 
37
37
  /*
38
- * Create a sequence of integers in the underlying database and assign the incremented
39
- * values to the ID values of the created records based on the sequence
38
+ * Creates a sequence of integers in the underlying database and assign the incremented
39
+ * values to the ID values of the created records based on the sequence.
40
40
  */
41
41
  function autoincrement(): Int {}
42
42
 
@@ -46,57 +46,57 @@ function autoincrement(): Int {}
46
46
  function dbgenerated(expr: String): Any {}
47
47
 
48
48
  /*
49
- * Defines an ID on the model
49
+ * Defines an ID on the model.
50
50
  */
51
51
  attribute @id(map: String?)
52
52
 
53
53
  /*
54
- * Defines a default value for a field
54
+ * Defines a default value for a field.
55
55
  */
56
56
  attribute @default(_ value: ContextType)
57
57
 
58
58
  /*
59
- * Defines a unique constraint for this field
59
+ * Defines a unique constraint for this field.
60
60
  */
61
61
  attribute @unique(map: String?)
62
62
 
63
63
  /*
64
- * Defines a compound unique constraint for the specified fields
64
+ * Defines a compound unique constraint for the specified fields.
65
65
  */
66
66
  attribute @@unique(_ fields: FieldReference[], name: String?, map: String?)
67
67
 
68
68
  /*
69
- * Defines an index in the database
69
+ * Defines an index in the database.
70
70
  */
71
71
  attribute @@index(_ fields: FieldReference[], map: String?)
72
72
 
73
73
  /*
74
- * Defines meta information about the relation
74
+ * Defines meta information about the relation.
75
75
  */
76
76
  attribute @relation(_ name: String?, fields: FieldReference[]?, references: FieldReference[]?, onDelete: ReferentialAction?, onUpdate: ReferentialAction?, map: String?)
77
77
 
78
78
  /*
79
- * Maps a field name or enum value from the schema to a column with a different name in the database
79
+ * Maps a field name or enum value from the schema to a column with a different name in the database.
80
80
  */
81
81
  attribute @map(_ name: String)
82
82
 
83
83
  /*
84
- * Maps the schema model name to a table with a different name, or an enum name to a different underlying enum in the database
84
+ * Maps the schema model name to a table with a different name, or an enum name to a different underlying enum in the database.
85
85
  */
86
86
  attribute @@map(_ name: String)
87
87
 
88
88
  /*
89
- * Automatically stores the time when a record was last updated
89
+ * Automatically stores the time when a record was last updated.
90
90
  */
91
91
  attribute @updatedAt()
92
92
 
93
93
  /*
94
- * Defines an access policy that allows a set of operations when the given condition is true
94
+ * Defines an access policy that allows a set of operations when the given condition is true.
95
95
  */
96
96
  attribute @@allow(_ operation: String, _ condition: Boolean)
97
97
 
98
98
  /*
99
- * Defines an access policy that denies a set of operations when the given condition is true
99
+ * Defines an access policy that denies a set of operations when the given condition is true.
100
100
  */
101
101
  attribute @@deny(_ operation: String, _ condition: Boolean)
102
102
 
@@ -113,6 +113,6 @@ attribute @@deny(_ operation: String, _ condition: Boolean)
113
113
  attribute @password(saltLength: Int?, salt: String?)
114
114
 
115
115
  /*
116
- * Indicates that the field should be omitted when read from the generated services
116
+ * Indicates that the field should be omitted when read from the generated services.
117
117
  */
118
118
  attribute @omit()
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publisher": "zenstack",
4
4
  "displayName": "ZenStack Language Tools",
5
5
  "description": "ZenStack is a toolkit that simplifies full-stack development",
6
- "version": "0.2.11",
6
+ "version": "0.2.12",
7
7
  "author": {
8
8
  "name": "ZenStack Team"
9
9
  },
@@ -64,7 +64,7 @@
64
64
  },
65
65
  "main": "./bundle/extension.js",
66
66
  "dependencies": {
67
- "@zenstackhq/internal": "0.2.11",
67
+ "@zenstackhq/internal": "0.2.12",
68
68
  "change-case": "^4.1.2",
69
69
  "chevrotain": "^9.1.0",
70
70
  "colors": "^1.4.0",
@@ -10,33 +10,33 @@ enum ReferentialAction {
10
10
  }
11
11
 
12
12
  /*
13
- * Reads value from an environment variable
13
+ * Reads value from an environment variable.
14
14
  */
15
15
  function env(name: String): String {}
16
16
 
17
17
  /*
18
- * Gets thec current login user
18
+ * Gets thec current login user.
19
19
  */
20
20
  function auth(): Any {}
21
21
 
22
22
  /*
23
- * Gets current date-time (as DateTime type)
23
+ * Gets current date-time (as DateTime type).
24
24
  */
25
25
  function now(): DateTime {}
26
26
 
27
27
  /*
28
- * Generate a globally unique identifier based on the UUID spec
28
+ * Generates a globally unique identifier based on the UUID specs.
29
29
  */
30
30
  function uuid(): String {}
31
31
 
32
32
  /*
33
- * Generate a globally unique identifier based on the CUID spec
33
+ * Generates a globally unique identifier based on the CUID spec.
34
34
  */
35
35
  function cuid(): String {}
36
36
 
37
37
  /*
38
- * Create a sequence of integers in the underlying database and assign the incremented
39
- * values to the ID values of the created records based on the sequence
38
+ * Creates a sequence of integers in the underlying database and assign the incremented
39
+ * values to the ID values of the created records based on the sequence.
40
40
  */
41
41
  function autoincrement(): Int {}
42
42
 
@@ -46,57 +46,57 @@ function autoincrement(): Int {}
46
46
  function dbgenerated(expr: String): Any {}
47
47
 
48
48
  /*
49
- * Defines an ID on the model
49
+ * Defines an ID on the model.
50
50
  */
51
51
  attribute @id(map: String?)
52
52
 
53
53
  /*
54
- * Defines a default value for a field
54
+ * Defines a default value for a field.
55
55
  */
56
56
  attribute @default(_ value: ContextType)
57
57
 
58
58
  /*
59
- * Defines a unique constraint for this field
59
+ * Defines a unique constraint for this field.
60
60
  */
61
61
  attribute @unique(map: String?)
62
62
 
63
63
  /*
64
- * Defines a compound unique constraint for the specified fields
64
+ * Defines a compound unique constraint for the specified fields.
65
65
  */
66
66
  attribute @@unique(_ fields: FieldReference[], name: String?, map: String?)
67
67
 
68
68
  /*
69
- * Defines an index in the database
69
+ * Defines an index in the database.
70
70
  */
71
71
  attribute @@index(_ fields: FieldReference[], map: String?)
72
72
 
73
73
  /*
74
- * Defines meta information about the relation
74
+ * Defines meta information about the relation.
75
75
  */
76
76
  attribute @relation(_ name: String?, fields: FieldReference[]?, references: FieldReference[]?, onDelete: ReferentialAction?, onUpdate: ReferentialAction?, map: String?)
77
77
 
78
78
  /*
79
- * Maps a field name or enum value from the schema to a column with a different name in the database
79
+ * Maps a field name or enum value from the schema to a column with a different name in the database.
80
80
  */
81
81
  attribute @map(_ name: String)
82
82
 
83
83
  /*
84
- * Maps the schema model name to a table with a different name, or an enum name to a different underlying enum in the database
84
+ * Maps the schema model name to a table with a different name, or an enum name to a different underlying enum in the database.
85
85
  */
86
86
  attribute @@map(_ name: String)
87
87
 
88
88
  /*
89
- * Automatically stores the time when a record was last updated
89
+ * Automatically stores the time when a record was last updated.
90
90
  */
91
91
  attribute @updatedAt()
92
92
 
93
93
  /*
94
- * Defines an access policy that allows a set of operations when the given condition is true
94
+ * Defines an access policy that allows a set of operations when the given condition is true.
95
95
  */
96
96
  attribute @@allow(_ operation: String, _ condition: Boolean)
97
97
 
98
98
  /*
99
- * Defines an access policy that denies a set of operations when the given condition is true
99
+ * Defines an access policy that denies a set of operations when the given condition is true.
100
100
  */
101
101
  attribute @@deny(_ operation: String, _ condition: Boolean)
102
102
 
@@ -113,6 +113,6 @@ attribute @@deny(_ operation: String, _ condition: Boolean)
113
113
  attribute @password(saltLength: Int?, salt: String?)
114
114
 
115
115
  /*
116
- * Indicates that the field should be omitted when read from the generated services
116
+ * Indicates that the field should be omitted when read from the generated services.
117
117
  */
118
118
  attribute @omit()