pinia-orm-edge 1.7.3-28257628.bbb8bab

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 (55) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +96 -0
  3. package/dist/casts.cjs +124 -0
  4. package/dist/casts.d.cts +66 -0
  5. package/dist/casts.d.mts +66 -0
  6. package/dist/casts.d.ts +66 -0
  7. package/dist/casts.mjs +118 -0
  8. package/dist/decorators.cjs +219 -0
  9. package/dist/decorators.d.cts +107 -0
  10. package/dist/decorators.d.mts +107 -0
  11. package/dist/decorators.d.ts +107 -0
  12. package/dist/decorators.mjs +198 -0
  13. package/dist/helpers.cjs +69 -0
  14. package/dist/helpers.d.cts +54 -0
  15. package/dist/helpers.d.mts +54 -0
  16. package/dist/helpers.d.ts +54 -0
  17. package/dist/helpers.mjs +61 -0
  18. package/dist/index.cjs +3592 -0
  19. package/dist/index.d.cts +49 -0
  20. package/dist/index.d.mts +49 -0
  21. package/dist/index.d.ts +49 -0
  22. package/dist/index.mjs +3561 -0
  23. package/dist/nanoid/async.cjs +42 -0
  24. package/dist/nanoid/async.d.cts +29 -0
  25. package/dist/nanoid/async.d.mts +29 -0
  26. package/dist/nanoid/async.d.ts +29 -0
  27. package/dist/nanoid/async.mjs +39 -0
  28. package/dist/nanoid/index.cjs +42 -0
  29. package/dist/nanoid/index.d.cts +24 -0
  30. package/dist/nanoid/index.d.mts +24 -0
  31. package/dist/nanoid/index.d.ts +24 -0
  32. package/dist/nanoid/index.mjs +39 -0
  33. package/dist/nanoid/non-secure.cjs +42 -0
  34. package/dist/nanoid/non-secure.d.cts +24 -0
  35. package/dist/nanoid/non-secure.d.mts +24 -0
  36. package/dist/nanoid/non-secure.d.ts +24 -0
  37. package/dist/nanoid/non-secure.mjs +39 -0
  38. package/dist/shared/pinia-orm.1bd7d299.mjs +153 -0
  39. package/dist/shared/pinia-orm.4ff2e12f.mjs +66 -0
  40. package/dist/shared/pinia-orm.876a7cdc.d.cts +1981 -0
  41. package/dist/shared/pinia-orm.876a7cdc.d.mts +1981 -0
  42. package/dist/shared/pinia-orm.876a7cdc.d.ts +1981 -0
  43. package/dist/shared/pinia-orm.a62c4fc4.cjs +167 -0
  44. package/dist/shared/pinia-orm.a7e3e0f3.cjs +68 -0
  45. package/dist/uuid/v1.cjs +41 -0
  46. package/dist/uuid/v1.d.cts +25 -0
  47. package/dist/uuid/v1.d.mts +25 -0
  48. package/dist/uuid/v1.d.ts +25 -0
  49. package/dist/uuid/v1.mjs +38 -0
  50. package/dist/uuid/v4.cjs +41 -0
  51. package/dist/uuid/v4.d.cts +25 -0
  52. package/dist/uuid/v4.d.mts +25 -0
  53. package/dist/uuid/v4.d.ts +25 -0
  54. package/dist/uuid/v4.mjs +38 -0
  55. package/package.json +126 -0
@@ -0,0 +1,219 @@
1
+ 'use strict';
2
+
3
+ function Attr(value) {
4
+ return (target, propertyKey) => {
5
+ const self = target.$self();
6
+ self.setRegistry(propertyKey, () => self.attr(value));
7
+ };
8
+ }
9
+
10
+ function Str(value, options = {}) {
11
+ return (target, propertyKey) => {
12
+ const self = target.$self();
13
+ self.setRegistry(propertyKey, () => {
14
+ const attr = self.string(value);
15
+ if (options.notNullable) {
16
+ attr.notNullable();
17
+ }
18
+ return attr;
19
+ });
20
+ };
21
+ }
22
+
23
+ function Num(value, options = {}) {
24
+ return (target, propertyKey) => {
25
+ const self = target.$self();
26
+ self.setRegistry(propertyKey, () => {
27
+ const attr = self.number(value);
28
+ if (options.notNullable) {
29
+ attr.notNullable();
30
+ }
31
+ return attr;
32
+ });
33
+ };
34
+ }
35
+
36
+ function Bool(value, options = {}) {
37
+ return (target, propertyKey) => {
38
+ const self = target.$self();
39
+ self.setRegistry(propertyKey, () => {
40
+ const attr = self.boolean(value);
41
+ if (options.notNullable) {
42
+ attr.notNullable();
43
+ }
44
+ return attr;
45
+ });
46
+ };
47
+ }
48
+
49
+ function Uid(options) {
50
+ return (target, propertyKey) => {
51
+ const self = target.$self();
52
+ self.setRegistry(propertyKey, () => self.uid(options));
53
+ };
54
+ }
55
+
56
+ function HasOne(related, foreignKey, localKey) {
57
+ return (target, propertyKey) => {
58
+ const self = target.$self();
59
+ self.setRegistry(
60
+ propertyKey,
61
+ () => self.hasOne(related(), foreignKey, localKey)
62
+ );
63
+ };
64
+ }
65
+
66
+ function BelongsTo(related, foreignKey, ownerKey) {
67
+ return (target, propertyKey) => {
68
+ const self = target.$self();
69
+ self.setRegistry(
70
+ propertyKey,
71
+ () => self.belongsTo(related(), foreignKey, ownerKey)
72
+ );
73
+ };
74
+ }
75
+
76
+ function BelongsToMany(related, pivot, foreignPivotKey, relatedPivotKey, parentKey, relatedKey) {
77
+ return (target, propertyKey) => {
78
+ const self = target.$self();
79
+ self.setRegistry(
80
+ propertyKey,
81
+ () => self.belongsToMany(related(), pivot(), foreignPivotKey, relatedPivotKey, parentKey, relatedKey)
82
+ );
83
+ };
84
+ }
85
+
86
+ function HasMany(related, foreignKey, localKey) {
87
+ return (target, propertyKey) => {
88
+ const self = target.$self();
89
+ self.setRegistry(
90
+ propertyKey,
91
+ () => self.hasMany(related(), foreignKey, localKey)
92
+ );
93
+ };
94
+ }
95
+
96
+ function HasManyBy(related, foreignKey, ownerKey) {
97
+ return (target, propertyKey) => {
98
+ const self = target.$self();
99
+ self.setRegistry(
100
+ propertyKey,
101
+ () => self.hasManyBy(related(), foreignKey, ownerKey)
102
+ );
103
+ };
104
+ }
105
+
106
+ function HasManyThrough(related, through, firstKey, secondKey, localKey, secondLocalKey) {
107
+ return (target, propertyKey) => {
108
+ const self = target.$self();
109
+ self.setRegistry(
110
+ propertyKey,
111
+ () => self.hasManyThrough(related(), through(), firstKey, secondKey, localKey, secondLocalKey)
112
+ );
113
+ };
114
+ }
115
+
116
+ function MorphOne(related, id, type, localKey) {
117
+ return (target, propertyKey) => {
118
+ const self = target.$self();
119
+ self.setRegistry(
120
+ propertyKey,
121
+ () => self.morphOne(related(), id, type, localKey)
122
+ );
123
+ };
124
+ }
125
+
126
+ function MorphTo(related, id, type, ownerKey) {
127
+ return (target, propertyKey) => {
128
+ const self = target.$self();
129
+ self.setRegistry(
130
+ propertyKey,
131
+ () => self.morphTo(related(), id, type, ownerKey)
132
+ );
133
+ };
134
+ }
135
+
136
+ function MorphToMany(related, pivot, relatedId, id, type, parentKey, relatedKey) {
137
+ return (target, propertyKey) => {
138
+ const self = target.$self();
139
+ self.setRegistry(
140
+ propertyKey,
141
+ () => self.morphToMany(related(), pivot(), relatedId, id, type, parentKey, relatedKey)
142
+ );
143
+ };
144
+ }
145
+
146
+ function MorphMany(related, id, type, localKey) {
147
+ return (target, propertyKey) => {
148
+ const self = target.$self();
149
+ self.setRegistry(
150
+ propertyKey,
151
+ () => self.morphMany(related(), id, type, localKey)
152
+ );
153
+ };
154
+ }
155
+
156
+ function OnDelete(mode) {
157
+ return (target, propertyKey) => {
158
+ const self = target.$self();
159
+ self.setFieldDeleteMode(propertyKey, mode);
160
+ };
161
+ }
162
+
163
+ function Cast(to) {
164
+ return (target, propertyKey) => {
165
+ const self = target.$self();
166
+ self.setCast(propertyKey, to());
167
+ };
168
+ }
169
+
170
+ function Mutate(get, set) {
171
+ return (target, propertyKey) => {
172
+ const self = target.$self();
173
+ self.setMutator(propertyKey, { get, set });
174
+ };
175
+ }
176
+
177
+ function Hidden() {
178
+ return (target, propertyKey) => {
179
+ const self = target.$self();
180
+ self.setHidden(propertyKey);
181
+ };
182
+ }
183
+
184
+ function NonEnumerable(target, propertyKey) {
185
+ const descriptor = Object.getOwnPropertyDescriptor(target, propertyKey) || /* @__PURE__ */ Object.create(null);
186
+ if (descriptor.enumerable !== false) {
187
+ Object.defineProperty(target, propertyKey, {
188
+ enumerable: false,
189
+ set(value) {
190
+ Object.defineProperty(this, propertyKey, {
191
+ enumerable: false,
192
+ writable: true,
193
+ value
194
+ });
195
+ }
196
+ });
197
+ }
198
+ }
199
+
200
+ exports.Attr = Attr;
201
+ exports.BelongsTo = BelongsTo;
202
+ exports.BelongsToMany = BelongsToMany;
203
+ exports.Bool = Bool;
204
+ exports.Cast = Cast;
205
+ exports.HasMany = HasMany;
206
+ exports.HasManyBy = HasManyBy;
207
+ exports.HasManyThrough = HasManyThrough;
208
+ exports.HasOne = HasOne;
209
+ exports.Hidden = Hidden;
210
+ exports.MorphMany = MorphMany;
211
+ exports.MorphOne = MorphOne;
212
+ exports.MorphTo = MorphTo;
213
+ exports.MorphToMany = MorphToMany;
214
+ exports.Mutate = Mutate;
215
+ exports.NonEnumerable = NonEnumerable;
216
+ exports.Num = Num;
217
+ exports.OnDelete = OnDelete;
218
+ exports.Str = Str;
219
+ exports.Uid = Uid;
@@ -0,0 +1,107 @@
1
+ import { a0 as TypeDefault, af as PropertyDecorator, ag as TypeOptions, ah as UidOptions, M as Model, s as PrimaryKey, z as deleteModes, $ as CastAttribute, ai as Mutator } from './shared/pinia-orm.876a7cdc.cjs';
2
+ export { aj as NanoidOptions } from './shared/pinia-orm.876a7cdc.cjs';
3
+ import 'pinia';
4
+ import '@pinia-orm/normalizr';
5
+ import '@/composables';
6
+
7
+ /**
8
+ * Create an Attr attribute property decorator.
9
+ */
10
+ declare function Attr(value?: TypeDefault<any>): PropertyDecorator;
11
+
12
+ /**
13
+ * Create a String attribute property decorator.
14
+ */
15
+ declare function Str(value: TypeDefault<string>, options?: TypeOptions): PropertyDecorator;
16
+
17
+ /**
18
+ * Create a Number attribute property decorator.
19
+ */
20
+ declare function Num(value: TypeDefault<number>, options?: TypeOptions): PropertyDecorator;
21
+
22
+ /**
23
+ * Create a Boolean attribute property decorator.
24
+ */
25
+ declare function Bool(value: TypeDefault<boolean>, options?: TypeOptions): PropertyDecorator;
26
+
27
+ /**
28
+ * Create a Uid attribute property decorator.
29
+ */
30
+ declare function Uid(options?: UidOptions): PropertyDecorator;
31
+
32
+ /**
33
+ * Create a has-one attribute property decorator.
34
+ */
35
+ declare function HasOne(related: () => typeof Model, foreignKey: PrimaryKey, localKey?: PrimaryKey): PropertyDecorator;
36
+
37
+ /**
38
+ * Create a belongs-to attribute property decorator.
39
+ */
40
+ declare function BelongsTo(related: () => typeof Model, foreignKey: PrimaryKey, ownerKey?: PrimaryKey): PropertyDecorator;
41
+
42
+ /**
43
+ * Create a belongs-to-many attribute property decorator.
44
+ */
45
+ declare function BelongsToMany(related: () => typeof Model, pivot: () => typeof Model, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): PropertyDecorator;
46
+
47
+ /**
48
+ * Create a has-many attribute property decorator.
49
+ */
50
+ declare function HasMany(related: () => typeof Model, foreignKey: PrimaryKey, localKey?: PrimaryKey): PropertyDecorator;
51
+
52
+ /**
53
+ * Create a has-many-by attribute property decorator.
54
+ */
55
+ declare function HasManyBy(related: () => typeof Model, foreignKey: string, ownerKey?: string): PropertyDecorator;
56
+
57
+ /**
58
+ * Create a has-many attribute property decorator.
59
+ */
60
+ declare function HasManyThrough(related: () => typeof Model, through: () => typeof Model, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): PropertyDecorator;
61
+
62
+ /**
63
+ * Create a morph-one attribute property decorator.
64
+ */
65
+ declare function MorphOne(related: () => typeof Model, id: string, type: string, localKey?: string): PropertyDecorator;
66
+
67
+ /**
68
+ * Create a morph-to attribute property decorator.
69
+ */
70
+ declare function MorphTo(related: () => typeof Model[], id: string, type: string, ownerKey?: string): PropertyDecorator;
71
+
72
+ /**
73
+ * Create a morph-to-many attribute property decorator.
74
+ */
75
+ declare function MorphToMany(related: () => typeof Model, pivot: () => typeof Model, relatedId: string, id: string, type: string, parentKey?: string, relatedKey?: string): PropertyDecorator;
76
+
77
+ /**
78
+ * Create a morph-many attribute property decorator.
79
+ */
80
+ declare function MorphMany(related: () => typeof Model, id: string, type: string, localKey?: string): PropertyDecorator;
81
+
82
+ /**
83
+ * Define the delete behaviour for a relation
84
+ */
85
+ declare function OnDelete(mode: deleteModes): PropertyDecorator;
86
+
87
+ /**
88
+ * Create a cast for an attribute property decorator.
89
+ */
90
+ declare function Cast(to: (() => typeof CastAttribute)): PropertyDecorator;
91
+
92
+ /**
93
+ * Create an Mutate attribute property decorator.
94
+ */
95
+ declare function Mutate(get?: Mutator<any>, set?: Mutator<any>): PropertyDecorator;
96
+
97
+ /**
98
+ * Create an Mutate attribute property decorator.
99
+ */
100
+ declare function Hidden(): PropertyDecorator;
101
+
102
+ /**
103
+ * Sets an object property to be innumerable.
104
+ */
105
+ declare function NonEnumerable(target: any, propertyKey: string): void;
106
+
107
+ export { Attr, BelongsTo, BelongsToMany, Bool, Cast, HasMany, HasManyBy, HasManyThrough, HasOne, Hidden, MorphMany, MorphOne, MorphTo, MorphToMany, Mutate, NonEnumerable, Num, OnDelete, PropertyDecorator, Str, TypeOptions, Uid, UidOptions };
@@ -0,0 +1,107 @@
1
+ import { a0 as TypeDefault, af as PropertyDecorator, ag as TypeOptions, ah as UidOptions, M as Model, s as PrimaryKey, z as deleteModes, $ as CastAttribute, ai as Mutator } from './shared/pinia-orm.876a7cdc.mjs';
2
+ export { aj as NanoidOptions } from './shared/pinia-orm.876a7cdc.mjs';
3
+ import 'pinia';
4
+ import '@pinia-orm/normalizr';
5
+ import '@/composables';
6
+
7
+ /**
8
+ * Create an Attr attribute property decorator.
9
+ */
10
+ declare function Attr(value?: TypeDefault<any>): PropertyDecorator;
11
+
12
+ /**
13
+ * Create a String attribute property decorator.
14
+ */
15
+ declare function Str(value: TypeDefault<string>, options?: TypeOptions): PropertyDecorator;
16
+
17
+ /**
18
+ * Create a Number attribute property decorator.
19
+ */
20
+ declare function Num(value: TypeDefault<number>, options?: TypeOptions): PropertyDecorator;
21
+
22
+ /**
23
+ * Create a Boolean attribute property decorator.
24
+ */
25
+ declare function Bool(value: TypeDefault<boolean>, options?: TypeOptions): PropertyDecorator;
26
+
27
+ /**
28
+ * Create a Uid attribute property decorator.
29
+ */
30
+ declare function Uid(options?: UidOptions): PropertyDecorator;
31
+
32
+ /**
33
+ * Create a has-one attribute property decorator.
34
+ */
35
+ declare function HasOne(related: () => typeof Model, foreignKey: PrimaryKey, localKey?: PrimaryKey): PropertyDecorator;
36
+
37
+ /**
38
+ * Create a belongs-to attribute property decorator.
39
+ */
40
+ declare function BelongsTo(related: () => typeof Model, foreignKey: PrimaryKey, ownerKey?: PrimaryKey): PropertyDecorator;
41
+
42
+ /**
43
+ * Create a belongs-to-many attribute property decorator.
44
+ */
45
+ declare function BelongsToMany(related: () => typeof Model, pivot: () => typeof Model, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): PropertyDecorator;
46
+
47
+ /**
48
+ * Create a has-many attribute property decorator.
49
+ */
50
+ declare function HasMany(related: () => typeof Model, foreignKey: PrimaryKey, localKey?: PrimaryKey): PropertyDecorator;
51
+
52
+ /**
53
+ * Create a has-many-by attribute property decorator.
54
+ */
55
+ declare function HasManyBy(related: () => typeof Model, foreignKey: string, ownerKey?: string): PropertyDecorator;
56
+
57
+ /**
58
+ * Create a has-many attribute property decorator.
59
+ */
60
+ declare function HasManyThrough(related: () => typeof Model, through: () => typeof Model, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): PropertyDecorator;
61
+
62
+ /**
63
+ * Create a morph-one attribute property decorator.
64
+ */
65
+ declare function MorphOne(related: () => typeof Model, id: string, type: string, localKey?: string): PropertyDecorator;
66
+
67
+ /**
68
+ * Create a morph-to attribute property decorator.
69
+ */
70
+ declare function MorphTo(related: () => typeof Model[], id: string, type: string, ownerKey?: string): PropertyDecorator;
71
+
72
+ /**
73
+ * Create a morph-to-many attribute property decorator.
74
+ */
75
+ declare function MorphToMany(related: () => typeof Model, pivot: () => typeof Model, relatedId: string, id: string, type: string, parentKey?: string, relatedKey?: string): PropertyDecorator;
76
+
77
+ /**
78
+ * Create a morph-many attribute property decorator.
79
+ */
80
+ declare function MorphMany(related: () => typeof Model, id: string, type: string, localKey?: string): PropertyDecorator;
81
+
82
+ /**
83
+ * Define the delete behaviour for a relation
84
+ */
85
+ declare function OnDelete(mode: deleteModes): PropertyDecorator;
86
+
87
+ /**
88
+ * Create a cast for an attribute property decorator.
89
+ */
90
+ declare function Cast(to: (() => typeof CastAttribute)): PropertyDecorator;
91
+
92
+ /**
93
+ * Create an Mutate attribute property decorator.
94
+ */
95
+ declare function Mutate(get?: Mutator<any>, set?: Mutator<any>): PropertyDecorator;
96
+
97
+ /**
98
+ * Create an Mutate attribute property decorator.
99
+ */
100
+ declare function Hidden(): PropertyDecorator;
101
+
102
+ /**
103
+ * Sets an object property to be innumerable.
104
+ */
105
+ declare function NonEnumerable(target: any, propertyKey: string): void;
106
+
107
+ export { Attr, BelongsTo, BelongsToMany, Bool, Cast, HasMany, HasManyBy, HasManyThrough, HasOne, Hidden, MorphMany, MorphOne, MorphTo, MorphToMany, Mutate, NonEnumerable, Num, OnDelete, PropertyDecorator, Str, TypeOptions, Uid, UidOptions };
@@ -0,0 +1,107 @@
1
+ import { a0 as TypeDefault, af as PropertyDecorator, ag as TypeOptions, ah as UidOptions, M as Model, s as PrimaryKey, z as deleteModes, $ as CastAttribute, ai as Mutator } from './shared/pinia-orm.876a7cdc.js';
2
+ export { aj as NanoidOptions } from './shared/pinia-orm.876a7cdc.js';
3
+ import 'pinia';
4
+ import '@pinia-orm/normalizr';
5
+ import '@/composables';
6
+
7
+ /**
8
+ * Create an Attr attribute property decorator.
9
+ */
10
+ declare function Attr(value?: TypeDefault<any>): PropertyDecorator;
11
+
12
+ /**
13
+ * Create a String attribute property decorator.
14
+ */
15
+ declare function Str(value: TypeDefault<string>, options?: TypeOptions): PropertyDecorator;
16
+
17
+ /**
18
+ * Create a Number attribute property decorator.
19
+ */
20
+ declare function Num(value: TypeDefault<number>, options?: TypeOptions): PropertyDecorator;
21
+
22
+ /**
23
+ * Create a Boolean attribute property decorator.
24
+ */
25
+ declare function Bool(value: TypeDefault<boolean>, options?: TypeOptions): PropertyDecorator;
26
+
27
+ /**
28
+ * Create a Uid attribute property decorator.
29
+ */
30
+ declare function Uid(options?: UidOptions): PropertyDecorator;
31
+
32
+ /**
33
+ * Create a has-one attribute property decorator.
34
+ */
35
+ declare function HasOne(related: () => typeof Model, foreignKey: PrimaryKey, localKey?: PrimaryKey): PropertyDecorator;
36
+
37
+ /**
38
+ * Create a belongs-to attribute property decorator.
39
+ */
40
+ declare function BelongsTo(related: () => typeof Model, foreignKey: PrimaryKey, ownerKey?: PrimaryKey): PropertyDecorator;
41
+
42
+ /**
43
+ * Create a belongs-to-many attribute property decorator.
44
+ */
45
+ declare function BelongsToMany(related: () => typeof Model, pivot: () => typeof Model, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): PropertyDecorator;
46
+
47
+ /**
48
+ * Create a has-many attribute property decorator.
49
+ */
50
+ declare function HasMany(related: () => typeof Model, foreignKey: PrimaryKey, localKey?: PrimaryKey): PropertyDecorator;
51
+
52
+ /**
53
+ * Create a has-many-by attribute property decorator.
54
+ */
55
+ declare function HasManyBy(related: () => typeof Model, foreignKey: string, ownerKey?: string): PropertyDecorator;
56
+
57
+ /**
58
+ * Create a has-many attribute property decorator.
59
+ */
60
+ declare function HasManyThrough(related: () => typeof Model, through: () => typeof Model, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): PropertyDecorator;
61
+
62
+ /**
63
+ * Create a morph-one attribute property decorator.
64
+ */
65
+ declare function MorphOne(related: () => typeof Model, id: string, type: string, localKey?: string): PropertyDecorator;
66
+
67
+ /**
68
+ * Create a morph-to attribute property decorator.
69
+ */
70
+ declare function MorphTo(related: () => typeof Model[], id: string, type: string, ownerKey?: string): PropertyDecorator;
71
+
72
+ /**
73
+ * Create a morph-to-many attribute property decorator.
74
+ */
75
+ declare function MorphToMany(related: () => typeof Model, pivot: () => typeof Model, relatedId: string, id: string, type: string, parentKey?: string, relatedKey?: string): PropertyDecorator;
76
+
77
+ /**
78
+ * Create a morph-many attribute property decorator.
79
+ */
80
+ declare function MorphMany(related: () => typeof Model, id: string, type: string, localKey?: string): PropertyDecorator;
81
+
82
+ /**
83
+ * Define the delete behaviour for a relation
84
+ */
85
+ declare function OnDelete(mode: deleteModes): PropertyDecorator;
86
+
87
+ /**
88
+ * Create a cast for an attribute property decorator.
89
+ */
90
+ declare function Cast(to: (() => typeof CastAttribute)): PropertyDecorator;
91
+
92
+ /**
93
+ * Create an Mutate attribute property decorator.
94
+ */
95
+ declare function Mutate(get?: Mutator<any>, set?: Mutator<any>): PropertyDecorator;
96
+
97
+ /**
98
+ * Create an Mutate attribute property decorator.
99
+ */
100
+ declare function Hidden(): PropertyDecorator;
101
+
102
+ /**
103
+ * Sets an object property to be innumerable.
104
+ */
105
+ declare function NonEnumerable(target: any, propertyKey: string): void;
106
+
107
+ export { Attr, BelongsTo, BelongsToMany, Bool, Cast, HasMany, HasManyBy, HasManyThrough, HasOne, Hidden, MorphMany, MorphOne, MorphTo, MorphToMany, Mutate, NonEnumerable, Num, OnDelete, PropertyDecorator, Str, TypeOptions, Uid, UidOptions };