@stacksjs/orm 0.70.256 → 0.70.258
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/dist/auto-crud.d.ts +22 -7
- package/dist/index.d.ts +8 -0
- package/dist/index.js +15 -15
- package/package.json +5 -5
package/dist/auto-crud.d.ts
CHANGED
|
@@ -187,17 +187,32 @@ export declare const SYSTEM_COLUMNS: string[];
|
|
|
187
187
|
* @defaultValue
|
|
188
188
|
* ```ts
|
|
189
189
|
* {
|
|
190
|
-
* string: {
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
190
|
+
* string: {
|
|
191
|
+
* get: (v) => ReturnType<unknown> | null,
|
|
192
|
+
* set: (v) => ReturnType<unknown> | null
|
|
193
|
+
* },
|
|
194
|
+
* number: {
|
|
195
|
+
* get: (v) => ReturnType<unknown> | null,
|
|
196
|
+
* set: (v) => ReturnType<unknown> | null
|
|
197
|
+
* },
|
|
198
|
+
* integer: {
|
|
199
|
+
* get: (v) => ReturnType<unknown.trunc> | null,
|
|
200
|
+
* set: (v) => ReturnType<unknown.trunc> | null
|
|
201
|
+
* },
|
|
202
|
+
* float: {
|
|
203
|
+
* get: (v) => ReturnType<unknown.parseFloat> | null,
|
|
204
|
+
* set: (v) => ReturnType<unknown.parseFloat> | null
|
|
205
|
+
* },
|
|
194
206
|
* boolean: { get: (v) => boolean, set: (v) => number },
|
|
195
|
-
* json: {
|
|
207
|
+
* json: {
|
|
208
|
+
* get: (v) => null | ReturnType<unknown> | unknown,
|
|
209
|
+
* set: (v) => null | unknown | ReturnType<unknown.stringify>
|
|
210
|
+
* },
|
|
196
211
|
* datetime: { get: (v) => Date | null, set: (v) => unknown },
|
|
197
212
|
* date: { get: (v) => Date | null, set: (v) => unknown },
|
|
198
213
|
* array: {
|
|
199
|
-
* get: (v) => never[] | unknown | unknown | never[],
|
|
200
|
-
* set: (v) => null | unknown
|
|
214
|
+
* get: (v) => never[] | unknown | ReturnType<unknown> | never[],
|
|
215
|
+
* set: (v) => null | ReturnType<unknown.stringify> | unknown
|
|
201
216
|
* }
|
|
202
217
|
* }
|
|
203
218
|
* ```
|
package/dist/index.d.ts
CHANGED
|
@@ -208,6 +208,14 @@ export {
|
|
|
208
208
|
// Audit trait public API: setAuditUser is the queue/cron escape hatch for
|
|
209
209
|
// attributing audit rows to a user when there's no current HTTP request.
|
|
210
210
|
export { setAuditUser, createAuditMethods } from './traits/audit';
|
|
211
|
+
// The polymorphic trait factories, alongside audit's. `define-model` already
|
|
212
|
+
// pulls these in, and they are the documented surface for the trait methods —
|
|
213
|
+
// there was no way to reach them except a subpath import that never resolved,
|
|
214
|
+
// since only the `@stacksjs/orm` barrel itself is aliased.
|
|
215
|
+
export { createCommentableMethods } from './traits/commentable';
|
|
216
|
+
export { createTaggableMethods } from './traits/taggable';
|
|
217
|
+
export { createCategorizableMethods } from './traits/categorizable';
|
|
218
|
+
export { createLikeableMethods } from './traits/likeable';
|
|
211
219
|
// Shared write-error classifiers (stacksjs/stacks#1957). Named exports only —
|
|
212
220
|
// `export *` would collide with the snakeCase helpers also exported from
|
|
213
221
|
// './auto-crud' via other barrels. `isUniqueViolation` is re-exported by
|