@h3ravel/arquebus 0.7.0 → 0.7.2
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/bin/index.cjs +1 -1
- package/bin/index.js +1 -1
- package/dist/concerns/index.cjs +35 -72
- package/dist/concerns/index.d.ts +209 -235
- package/dist/concerns/index.js +41 -26
- package/dist/relations/index.cjs +47 -24
- package/dist/relations/index.d.ts +5072 -2
- package/dist/relations/index.js +39 -26
- package/package.json +1 -1
- package/dist/concerns/chunk-Bop6jNiL.js +0 -15
package/bin/index.cjs
CHANGED
package/bin/index.js
CHANGED
package/dist/concerns/index.cjs
CHANGED
|
@@ -173,8 +173,7 @@ var casts_attributes_default = CastsAttributes;
|
|
|
173
173
|
|
|
174
174
|
//#endregion
|
|
175
175
|
//#region src/concerns/has-attributes.ts
|
|
176
|
-
|
|
177
|
-
const HasAttributes = (Model$1) => {
|
|
176
|
+
const HasAttributes$1 = (Model$1) => {
|
|
178
177
|
return class extends Model$1 {
|
|
179
178
|
static castTypeCache = {};
|
|
180
179
|
attributes = {};
|
|
@@ -416,7 +415,7 @@ const HasAttributes = (Model$1) => {
|
|
|
416
415
|
}
|
|
417
416
|
};
|
|
418
417
|
};
|
|
419
|
-
var has_attributes_default = HasAttributes;
|
|
418
|
+
var has_attributes_default = HasAttributes$1;
|
|
420
419
|
|
|
421
420
|
//#endregion
|
|
422
421
|
//#region src/errors.ts
|
|
@@ -466,8 +465,7 @@ var scope_default = Scope;
|
|
|
466
465
|
|
|
467
466
|
//#endregion
|
|
468
467
|
//#region src/concerns/has-global-scopes.ts
|
|
469
|
-
|
|
470
|
-
const HasGlobalScopes = (Model$1) => {
|
|
468
|
+
const HasGlobalScopes$1 = (Model$1) => {
|
|
471
469
|
return class extends Model$1 {
|
|
472
470
|
static globalScopes;
|
|
473
471
|
static addGlobalScope(scope, implementation = null) {
|
|
@@ -498,7 +496,7 @@ const HasGlobalScopes = (Model$1) => {
|
|
|
498
496
|
}
|
|
499
497
|
};
|
|
500
498
|
};
|
|
501
|
-
var has_global_scopes_default = HasGlobalScopes;
|
|
499
|
+
var has_global_scopes_default = HasGlobalScopes$1;
|
|
502
500
|
|
|
503
501
|
//#endregion
|
|
504
502
|
//#region src/hooks.ts
|
|
@@ -531,8 +529,7 @@ var hooks_default = Hooks;
|
|
|
531
529
|
|
|
532
530
|
//#endregion
|
|
533
531
|
//#region src/concerns/has-hooks.ts
|
|
534
|
-
|
|
535
|
-
const HasHooks = (Model$1) => {
|
|
532
|
+
const HasHooks$1 = (Model$1) => {
|
|
536
533
|
return class extends Model$1 {
|
|
537
534
|
static hooks = null;
|
|
538
535
|
static addHook(hook, callback) {
|
|
@@ -581,7 +578,7 @@ const HasHooks = (Model$1) => {
|
|
|
581
578
|
}
|
|
582
579
|
};
|
|
583
580
|
};
|
|
584
|
-
var has_hooks_default = HasHooks;
|
|
581
|
+
var has_hooks_default = HasHooks$1;
|
|
585
582
|
|
|
586
583
|
//#endregion
|
|
587
584
|
//#region src/collection.ts
|
|
@@ -2175,8 +2172,7 @@ var has_one_default = HasOne;
|
|
|
2175
2172
|
|
|
2176
2173
|
//#endregion
|
|
2177
2174
|
//#region src/concerns/has-timestamps.ts
|
|
2178
|
-
|
|
2179
|
-
const HasTimestamps = (Model$1) => {
|
|
2175
|
+
const HasTimestamps$1 = (Model$1) => {
|
|
2180
2176
|
return class extends Model$1 {
|
|
2181
2177
|
static CREATED_AT = "created_at";
|
|
2182
2178
|
static UPDATED_AT = "updated_at";
|
|
@@ -2218,12 +2214,11 @@ const HasTimestamps = (Model$1) => {
|
|
|
2218
2214
|
}
|
|
2219
2215
|
};
|
|
2220
2216
|
};
|
|
2221
|
-
var has_timestamps_default = HasTimestamps;
|
|
2217
|
+
var has_timestamps_default = HasTimestamps$1;
|
|
2222
2218
|
|
|
2223
2219
|
//#endregion
|
|
2224
2220
|
//#region src/concerns/hides-attributes.ts
|
|
2225
|
-
|
|
2226
|
-
const HidesAttributes = (Model$1) => {
|
|
2221
|
+
const HidesAttributes$1 = (Model$1) => {
|
|
2227
2222
|
return class extends Model$1 {
|
|
2228
2223
|
hidden = [];
|
|
2229
2224
|
visible = [];
|
|
@@ -2254,12 +2249,11 @@ const HidesAttributes = (Model$1) => {
|
|
|
2254
2249
|
}
|
|
2255
2250
|
};
|
|
2256
2251
|
};
|
|
2257
|
-
var hides_attributes_default = HidesAttributes;
|
|
2252
|
+
var hides_attributes_default = HidesAttributes$1;
|
|
2258
2253
|
|
|
2259
2254
|
//#endregion
|
|
2260
2255
|
//#region src/concerns/unique-ids.ts
|
|
2261
|
-
|
|
2262
|
-
const UniqueIds = (Model$1) => {
|
|
2256
|
+
const UniqueIds$1 = (Model$1) => {
|
|
2263
2257
|
return class extends Model$1 {
|
|
2264
2258
|
useUniqueIds = false;
|
|
2265
2259
|
usesUniqueIds() {
|
|
@@ -2274,7 +2268,7 @@ const UniqueIds = (Model$1) => {
|
|
|
2274
2268
|
}
|
|
2275
2269
|
};
|
|
2276
2270
|
};
|
|
2277
|
-
var unique_ids_default = UniqueIds;
|
|
2271
|
+
var unique_ids_default = UniqueIds$1;
|
|
2278
2272
|
|
|
2279
2273
|
//#endregion
|
|
2280
2274
|
//#region src/casts/attribute.ts
|
|
@@ -3373,8 +3367,7 @@ var has_one_through_default = HasOneThrough;
|
|
|
3373
3367
|
|
|
3374
3368
|
//#endregion
|
|
3375
3369
|
//#region src/concerns/has-relations.ts
|
|
3376
|
-
|
|
3377
|
-
const HasRelations = (Model$1) => {
|
|
3370
|
+
const HasRelations$1 = (Model$1) => {
|
|
3378
3371
|
return class extends Model$1 {
|
|
3379
3372
|
relations = {};
|
|
3380
3373
|
getRelation(relation) {
|
|
@@ -3466,12 +3459,11 @@ const HasRelations = (Model$1) => {
|
|
|
3466
3459
|
}
|
|
3467
3460
|
};
|
|
3468
3461
|
};
|
|
3469
|
-
var has_relations_default = HasRelations;
|
|
3462
|
+
var has_relations_default = HasRelations$1;
|
|
3470
3463
|
|
|
3471
3464
|
//#endregion
|
|
3472
3465
|
//#region src/concerns/has-unique-ids.ts
|
|
3473
|
-
|
|
3474
|
-
const HasUniqueIds = (Model$1) => {
|
|
3466
|
+
const HasUniqueIds$1 = (Model$1) => {
|
|
3475
3467
|
return class extends Model$1 {
|
|
3476
3468
|
useUniqueIds = true;
|
|
3477
3469
|
uniqueIds() {
|
|
@@ -3487,54 +3479,25 @@ const HasUniqueIds = (Model$1) => {
|
|
|
3487
3479
|
}
|
|
3488
3480
|
};
|
|
3489
3481
|
};
|
|
3490
|
-
var has_unique_ids_default = HasUniqueIds;
|
|
3482
|
+
var has_unique_ids_default = HasUniqueIds$1;
|
|
3491
3483
|
|
|
3492
3484
|
//#endregion
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
enumerable: true,
|
|
3513
|
-
get: function () {
|
|
3514
|
-
return has_relations_exports;
|
|
3515
|
-
}
|
|
3516
|
-
});
|
|
3517
|
-
Object.defineProperty(exports, 'HasTimestamps', {
|
|
3518
|
-
enumerable: true,
|
|
3519
|
-
get: function () {
|
|
3520
|
-
return has_timestamps_exports;
|
|
3521
|
-
}
|
|
3522
|
-
});
|
|
3523
|
-
Object.defineProperty(exports, 'HasUniqueIds', {
|
|
3524
|
-
enumerable: true,
|
|
3525
|
-
get: function () {
|
|
3526
|
-
return has_unique_ids_exports;
|
|
3527
|
-
}
|
|
3528
|
-
});
|
|
3529
|
-
Object.defineProperty(exports, 'HidesAttributes', {
|
|
3530
|
-
enumerable: true,
|
|
3531
|
-
get: function () {
|
|
3532
|
-
return hides_attributes_exports;
|
|
3533
|
-
}
|
|
3534
|
-
});
|
|
3535
|
-
Object.defineProperty(exports, 'UniqueIds', {
|
|
3536
|
-
enumerable: true,
|
|
3537
|
-
get: function () {
|
|
3538
|
-
return unique_ids_exports;
|
|
3539
|
-
}
|
|
3540
|
-
});
|
|
3485
|
+
//#region src/concerns/index.ts
|
|
3486
|
+
const HasAttributes = has_attributes_default;
|
|
3487
|
+
const HasGlobalScopes = has_global_scopes_default;
|
|
3488
|
+
const HasHooks = has_hooks_default;
|
|
3489
|
+
const HasRelations = has_relations_default;
|
|
3490
|
+
const HasTimestamps = has_timestamps_default;
|
|
3491
|
+
const HasUniqueIds = has_unique_ids_default;
|
|
3492
|
+
const HidesAttributes = hides_attributes_default;
|
|
3493
|
+
const UniqueIds = unique_ids_default;
|
|
3494
|
+
|
|
3495
|
+
//#endregion
|
|
3496
|
+
exports.HasAttributes = HasAttributes;
|
|
3497
|
+
exports.HasGlobalScopes = HasGlobalScopes;
|
|
3498
|
+
exports.HasHooks = HasHooks;
|
|
3499
|
+
exports.HasRelations = HasRelations;
|
|
3500
|
+
exports.HasTimestamps = HasTimestamps;
|
|
3501
|
+
exports.HasUniqueIds = HasUniqueIds;
|
|
3502
|
+
exports.HidesAttributes = HidesAttributes;
|
|
3503
|
+
exports.UniqueIds = UniqueIds;
|