@happyvertical/smrt-cli 0.53.6 → 0.54.0
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/{AuditLogCollection-B1YonCAP-Crf-dCr_.js → AuditLogCollection-B1YonCAP-CNsxnrpT.js} +1 -1
- package/dist/{OidcIdentity-Cb1bxreM-B6XDawZQ.js → OidcIdentity-Cb1bxreM-DWv68S6Z.js} +2 -2
- package/dist/{OidcIdentityCollection-TV8VdK69-ZwKF9iwf.js → OidcIdentityCollection-TV8VdK69-D7d1tW94.js} +1 -1
- package/dist/{ProfileAssetCollection-B9hacUJa-BS8VMInH.js → ProfileAssetCollection-B9hacUJa-Dp_0ufhn.js} +3 -3
- package/dist/{ProfileCollection-DuJT7Mum-CCKEl9oT.js → ProfileCollection-DuJT7Mum-BiLmw57t.js} +16 -16
- package/dist/{ProfileLinkCollection-4uNURz32-Vo7wyan6.js → ProfileLinkCollection-4uNURz32-BuU5FSzw.js} +2 -2
- package/dist/{ProfileMetadataCollection-DQhbfEfa-OvHyg4k0.js → ProfileMetadataCollection-DQhbfEfa-B3qN5eJa.js} +1 -1
- package/dist/{ProfileMetafieldCollection-CoBuM_5G-KUHXgANZ.js → ProfileMetafieldCollection-CoBuM_5G-BgbIvkEP.js} +1 -1
- package/dist/{ProfileRelationshipCollection-DUVgaIqf-CedyrKgX.js → ProfileRelationshipCollection-DUVgaIqf-DTYo2dsw.js} +1 -1
- package/dist/{commands-C8SM-WRo.js → commands-CcItuLWc.js} +2 -2
- package/dist/{dist-VNy6NiC_.js → dist-B68F6Mll.js} +15 -15
- package/dist/{dist-BcPl3hiD.js → dist-BGaH9jjG.js} +3 -3
- package/dist/dist-BvL_tMPS.js +20 -0
- package/dist/{dist-BdrRmnpP.js → dist-DL5gGUmq.js} +4 -4
- package/dist/{dist-DbMWqynv.js → dist-DmUXNvp6.js} +2 -2
- package/dist/index.js +9 -9
- package/dist/{oidcProvisioningPrimitives-D9OYu5-F-Cc2KYoAb.js → oidcProvisioningPrimitives-D9OYu5-F-B_4MKjoX.js} +3 -3
- package/dist/{resolveIdentity-B-PK6RwU-JMNQ4YZ7.js → resolveIdentity-B-PK6RwU-D6D4J8d-.js} +14 -14
- package/package.json +10 -10
- package/dist/dist-BbDBCq3u.js +0 -20
package/dist/{AuditLogCollection-B1YonCAP-Crf-dCr_.js → AuditLogCollection-B1YonCAP-CNsxnrpT.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { i as tenantId, r as TenantScoped } from "./dist-
|
|
2
|
+
import { i as tenantId, r as TenantScoped } from "./dist-DmUXNvp6.js";
|
|
3
3
|
import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-Di3_eNCq.js";
|
|
4
4
|
import { SmrtCollection, SmrtObject, foreignKey, smrt } from "@happyvertical/smrt-core";
|
|
5
5
|
//#region ../profiles/dist/chunks/AuditLogCollection-B1YonCAP.js
|
|
@@ -35,7 +35,7 @@ var OidcIdentity = class extends SmrtObject {
|
|
|
35
35
|
* Find identity by issuer and subject
|
|
36
36
|
*/
|
|
37
37
|
static async findBySubject(issuer, subject, options = {}) {
|
|
38
|
-
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-TV8VdK69-
|
|
38
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-TV8VdK69-D7d1tW94.js").then((n) => n.r).then((n) => n.r);
|
|
39
39
|
return await (await OidcIdentityCollection.create(options)).findBySubject(issuer, subject);
|
|
40
40
|
}
|
|
41
41
|
/** Build the collision-free natural key for one OIDC issuer subject. */
|
|
@@ -58,7 +58,7 @@ var OidcIdentity = class extends SmrtObject {
|
|
|
58
58
|
static async findOrCreate(profile, oidcData, options = {}) {
|
|
59
59
|
const profileId = profile.id;
|
|
60
60
|
if (typeof profileId !== "string" || !profileId) throw new Error("OidcIdentity.findOrCreate() requires a saved Profile.");
|
|
61
|
-
const { reuseExistingOidcIdentityForProfile } = await import("./resolveIdentity-B-PK6RwU-
|
|
61
|
+
const { reuseExistingOidcIdentityForProfile } = await import("./resolveIdentity-B-PK6RwU-D6D4J8d-.js").then((n) => n.i).then((n) => n.i);
|
|
62
62
|
const profileOptions = profile.options ?? {};
|
|
63
63
|
return (await reuseExistingOidcIdentityForProfile(profileId, {
|
|
64
64
|
email: oidcData.email,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
2
|
import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-Di3_eNCq.js";
|
|
3
|
-
import { t as OidcIdentity } from "./OidcIdentity-Cb1bxreM-
|
|
3
|
+
import { t as OidcIdentity } from "./OidcIdentity-Cb1bxreM-DWv68S6Z.js";
|
|
4
4
|
import { SmrtCollection } from "@happyvertical/smrt-core";
|
|
5
5
|
//#region ../profiles/dist/chunks/OidcIdentityCollection-TV8VdK69.js
|
|
6
6
|
var OidcIdentityCollection_TV8VdK69_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { i as tenantId, r as TenantScoped } from "./dist-
|
|
2
|
+
import { i as tenantId, r as TenantScoped } from "./dist-DmUXNvp6.js";
|
|
3
3
|
import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-Di3_eNCq.js";
|
|
4
|
-
import { a as getOwnedAssetsFromCollection, o as removeOwnedAssetFromCollection, t as addOwnedAssetFromCollection } from "./dist-
|
|
4
|
+
import { a as getOwnedAssetsFromCollection, o as removeOwnedAssetFromCollection, t as addOwnedAssetFromCollection } from "./dist-BGaH9jjG.js";
|
|
5
5
|
import { SmrtJunction, SmrtObject, crossPackageRef, field, foreignKey, smrt } from "@happyvertical/smrt-core";
|
|
6
6
|
//#region ../profiles/dist/chunks/ProfileAssetCollection-B9hacUJa.js
|
|
7
7
|
var ProfileAssetCollection_B9hacUJa_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -76,7 +76,7 @@ var ProfileAssetCollection = class extends SmrtJunction {
|
|
|
76
76
|
profileCollectionPromise = null;
|
|
77
77
|
async getProfileCollection() {
|
|
78
78
|
if (!this.profileCollectionPromise) {
|
|
79
|
-
const { ProfileCollection } = await import("./ProfileCollection-DuJT7Mum-
|
|
79
|
+
const { ProfileCollection } = await import("./ProfileCollection-DuJT7Mum-BiLmw57t.js").then((n) => n.o).then((n) => n.r);
|
|
80
80
|
this.profileCollectionPromise = ProfileCollection.create({ db: this.db });
|
|
81
81
|
}
|
|
82
82
|
return this.profileCollectionPromise;
|
package/dist/{ProfileCollection-DuJT7Mum-CCKEl9oT.js → ProfileCollection-DuJT7Mum-BiLmw57t.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { a as queryGlobal, i as tenantId, l as withSystemContext, n as resolvePrompt, o as queryWithGlobals, r as TenantScoped, s as getTenantId, t as definePrompt } from "./dist-
|
|
2
|
+
import { a as queryGlobal, i as tenantId, l as withSystemContext, n as resolvePrompt, o as queryWithGlobals, r as TenantScoped, s as getTenantId, t as definePrompt } from "./dist-DmUXNvp6.js";
|
|
3
3
|
import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-Di3_eNCq.js";
|
|
4
|
-
import { a as getOwnedAssetsFromCollection, i as assertValidOwnedAssetSortOrder, n as assertAssetLinkable, o as removeOwnedAssetFromCollection, r as assertValidOwnedAssetRelationship, s as resolveOwnedAssetsById, t as addOwnedAssetFromCollection } from "./dist-
|
|
4
|
+
import { a as getOwnedAssetsFromCollection, i as assertValidOwnedAssetSortOrder, n as assertAssetLinkable, o as removeOwnedAssetFromCollection, r as assertValidOwnedAssetRelationship, s as resolveOwnedAssetsById, t as addOwnedAssetFromCollection } from "./dist-BGaH9jjG.js";
|
|
5
5
|
import { RuntimeError, SmrtCollection, SmrtObject, ValidationError, field, foreignKey, isAbortedTransactionError, oneToMany, smrt } from "@happyvertical/smrt-core";
|
|
6
6
|
import { BackfillTableUnavailableError, BackfillTracker } from "@happyvertical/smrt-core/migrations";
|
|
7
7
|
//#region ../profiles/dist/chunks/ProfileCollection-DuJT7Mum.js
|
|
@@ -430,8 +430,8 @@ var Profile = class extends SmrtObject {
|
|
|
430
430
|
* @param value - The value to set
|
|
431
431
|
*/
|
|
432
432
|
async addMetadata(metafieldSlug, value) {
|
|
433
|
-
const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-CoBuM_5G-
|
|
434
|
-
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DQhbfEfa-
|
|
433
|
+
const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-CoBuM_5G-BgbIvkEP.js").then((n) => n.r).then((n) => n.n);
|
|
434
|
+
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DQhbfEfa-B3qN5eJa.js").then((n) => n.r).then((n) => n.n);
|
|
435
435
|
const metafield = await this.resolveMetafield(await ProfileMetafieldCollection.create(this.options), metafieldSlug);
|
|
436
436
|
if (!metafield) throw new Error(`Metafield '${metafieldSlug}' not found`);
|
|
437
437
|
await metafield.validateValue(value);
|
|
@@ -464,7 +464,7 @@ var Profile = class extends SmrtObject {
|
|
|
464
464
|
* @returns Object with metafield slugs as keys
|
|
465
465
|
*/
|
|
466
466
|
async getMetadata() {
|
|
467
|
-
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DQhbfEfa-
|
|
467
|
+
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DQhbfEfa-B3qN5eJa.js").then((n) => n.r).then((n) => n.n);
|
|
468
468
|
return await (await ProfileMetadataCollection.create(this.options)).getMetadataObject(this.id);
|
|
469
469
|
}
|
|
470
470
|
/**
|
|
@@ -481,8 +481,8 @@ var Profile = class extends SmrtObject {
|
|
|
481
481
|
* @param metafieldSlug - The slug of the metafield to remove
|
|
482
482
|
*/
|
|
483
483
|
async removeMetadata(metafieldSlug) {
|
|
484
|
-
const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-CoBuM_5G-
|
|
485
|
-
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DQhbfEfa-
|
|
484
|
+
const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-CoBuM_5G-BgbIvkEP.js").then((n) => n.r).then((n) => n.n);
|
|
485
|
+
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-DQhbfEfa-B3qN5eJa.js").then((n) => n.r).then((n) => n.n);
|
|
486
486
|
const metafield = await this.resolveMetafield(await ProfileMetafieldCollection.create(this.options), metafieldSlug);
|
|
487
487
|
if (!metafield) throw new Error(`Metafield '${metafieldSlug}' not found`);
|
|
488
488
|
const existing = await (await ProfileMetadataCollection.create(this.options)).list({
|
|
@@ -507,7 +507,7 @@ var Profile = class extends SmrtObject {
|
|
|
507
507
|
return candidates.find((candidate) => ownerTenantId && candidate.tenantId === ownerTenantId) ?? candidates.find((candidate) => !candidate.tenantId) ?? null;
|
|
508
508
|
}
|
|
509
509
|
async getProfileLinkCollection() {
|
|
510
|
-
const { ProfileLinkCollection } = await import("./ProfileLinkCollection-4uNURz32-
|
|
510
|
+
const { ProfileLinkCollection } = await import("./ProfileLinkCollection-4uNURz32-BuU5FSzw.js").then((n) => n.i).then((n) => n.r);
|
|
511
511
|
return ProfileLinkCollection.create({ db: this.db });
|
|
512
512
|
}
|
|
513
513
|
/** This profile's web links in display order. */
|
|
@@ -524,7 +524,7 @@ var Profile = class extends SmrtObject {
|
|
|
524
524
|
return (await this.getProfileLinkCollection()).replaceForProfile(this.id, links);
|
|
525
525
|
}
|
|
526
526
|
async getProfileAssetCollection() {
|
|
527
|
-
const { ProfileAssetCollection } = await import("./ProfileAssetCollection-B9hacUJa-
|
|
527
|
+
const { ProfileAssetCollection } = await import("./ProfileAssetCollection-B9hacUJa-Dp_0ufhn.js").then((n) => n.r).then((n) => n.n);
|
|
528
528
|
return ProfileAssetCollection.create({ db: this.db });
|
|
529
529
|
}
|
|
530
530
|
async getAssets(relationship) {
|
|
@@ -556,7 +556,7 @@ var Profile = class extends SmrtObject {
|
|
|
556
556
|
*/
|
|
557
557
|
async addRelationship(toProfile, relationshipSlug, contextProfile) {
|
|
558
558
|
const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-HoTmV1q-.js").then((n) => n.n).then((n) => n.n);
|
|
559
|
-
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-
|
|
559
|
+
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-DTYo2dsw.js").then((n) => n.r).then((n) => n.n);
|
|
560
560
|
const { ProfileRelationshipType } = await import("./ProfileRelationshipType-BRiRka6t-Dezjv5jP.js").then((n) => n.n).then((n) => n.n);
|
|
561
561
|
const relationshipType = await (await ProfileRelationshipTypeCollection.create(this.options)).getBySlug(relationshipSlug);
|
|
562
562
|
if (!relationshipType) throw new Error(`Relationship type '${relationshipSlug}' not found`);
|
|
@@ -581,7 +581,7 @@ var Profile = class extends SmrtObject {
|
|
|
581
581
|
* @returns Array of ProfileRelationship instances
|
|
582
582
|
*/
|
|
583
583
|
async getRelationships(options) {
|
|
584
|
-
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-
|
|
584
|
+
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-DTYo2dsw.js").then((n) => n.r).then((n) => n.n);
|
|
585
585
|
const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-HoTmV1q-.js").then((n) => n.n).then((n) => n.n);
|
|
586
586
|
const relationshipCollection = await ProfileRelationshipCollection.create(this.options);
|
|
587
587
|
const direction = options?.direction || "all";
|
|
@@ -626,7 +626,7 @@ var Profile = class extends SmrtObject {
|
|
|
626
626
|
*/
|
|
627
627
|
async removeRelationship(toProfile, relationshipSlug) {
|
|
628
628
|
const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BdXwd7Kf-HoTmV1q-.js").then((n) => n.n).then((n) => n.n);
|
|
629
|
-
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-
|
|
629
|
+
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-DUVgaIqf-DTYo2dsw.js").then((n) => n.r).then((n) => n.n);
|
|
630
630
|
const relationshipType = await (await ProfileRelationshipTypeCollection.create(this.options)).getBySlug(relationshipSlug);
|
|
631
631
|
if (!relationshipType) throw new Error(`Relationship type '${relationshipSlug}' not found`);
|
|
632
632
|
const relationshipCollection = await ProfileRelationshipCollection.create(this.options);
|
|
@@ -750,7 +750,7 @@ var Profile = class extends SmrtObject {
|
|
|
750
750
|
* @returns Array of OIDC identity records
|
|
751
751
|
*/
|
|
752
752
|
async getOidcIdentities() {
|
|
753
|
-
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-TV8VdK69-
|
|
753
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-TV8VdK69-D7d1tW94.js").then((n) => n.r).then((n) => n.r);
|
|
754
754
|
return await (await OidcIdentityCollection.create(this.options)).findByProfile(this.id);
|
|
755
755
|
}
|
|
756
756
|
/**
|
|
@@ -763,7 +763,7 @@ var Profile = class extends SmrtObject {
|
|
|
763
763
|
* type, but refuses to create or rebind authority.
|
|
764
764
|
*/
|
|
765
765
|
async linkOidcIdentity(oidcData) {
|
|
766
|
-
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-TV8VdK69-
|
|
766
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-TV8VdK69-D7d1tW94.js").then((n) => n.r).then((n) => n.r);
|
|
767
767
|
return await (await OidcIdentityCollection.create(this.options)).linkToProfile(this, oidcData);
|
|
768
768
|
}
|
|
769
769
|
/**
|
|
@@ -792,7 +792,7 @@ var Profile = class extends SmrtObject {
|
|
|
792
792
|
* @returns Array of audit log entries
|
|
793
793
|
*/
|
|
794
794
|
async getAuditLogs(limit = 50) {
|
|
795
|
-
const { AuditLogCollection } = await import("./AuditLogCollection-B1YonCAP-
|
|
795
|
+
const { AuditLogCollection } = await import("./AuditLogCollection-B1YonCAP-CNsxnrpT.js").then((n) => n.r).then((n) => n.n);
|
|
796
796
|
return await (await AuditLogCollection.create(this.options)).getRecentActivity(this.id, limit);
|
|
797
797
|
}
|
|
798
798
|
/**
|
|
@@ -802,7 +802,7 @@ var Profile = class extends SmrtObject {
|
|
|
802
802
|
* @returns The created audit log entry
|
|
803
803
|
*/
|
|
804
804
|
async recordAction(options) {
|
|
805
|
-
const { AuditLogCollection } = await import("./AuditLogCollection-B1YonCAP-
|
|
805
|
+
const { AuditLogCollection } = await import("./AuditLogCollection-B1YonCAP-CNsxnrpT.js").then((n) => n.r).then((n) => n.n);
|
|
806
806
|
return await (await AuditLogCollection.create(this.options)).record({
|
|
807
807
|
profile: this,
|
|
808
808
|
...options
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { i as tenantId, r as TenantScoped } from "./dist-
|
|
2
|
+
import { i as tenantId, r as TenantScoped } from "./dist-DmUXNvp6.js";
|
|
3
3
|
import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-Di3_eNCq.js";
|
|
4
4
|
import { SmrtCollection, SmrtObject, field, foreignKey, isEmbeddedDatabase, smrt, withEmbeddedWriteTransaction } from "@happyvertical/smrt-core";
|
|
5
5
|
//#region ../profiles/dist/chunks/ProfileLinkCollection-4uNURz32.js
|
|
@@ -195,7 +195,7 @@ var ProfileLinkCollection = class ProfileLinkCollection extends SmrtCollection {
|
|
|
195
195
|
/** The profile's tenant; throws when the profile is not visible here. */
|
|
196
196
|
async requireProfileTenant(profileId) {
|
|
197
197
|
if (!profileId) throw new Error("A profile link needs a profile");
|
|
198
|
-
const { ProfileCollection } = await import("./ProfileCollection-DuJT7Mum-
|
|
198
|
+
const { ProfileCollection } = await import("./ProfileCollection-DuJT7Mum-BiLmw57t.js").then((n) => n.o).then((n) => n.r);
|
|
199
199
|
const profile = await (await ProfileCollection.create({ db: this.db })).get({ id: profileId });
|
|
200
200
|
if (!profile) throw new Error(`Profile '${profileId}' not found`);
|
|
201
201
|
return profile.tenantId ?? null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { i as tenantId, r as TenantScoped } from "./dist-
|
|
2
|
+
import { i as tenantId, r as TenantScoped } from "./dist-DmUXNvp6.js";
|
|
3
3
|
import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-Di3_eNCq.js";
|
|
4
4
|
import { SmrtCollection, SmrtObject, field, foreignKey, smrt } from "@happyvertical/smrt-core";
|
|
5
5
|
//#region ../profiles/dist/chunks/ProfileMetadataCollection-DQhbfEfa.js
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { i as tenantId, r as TenantScoped } from "./dist-
|
|
2
|
+
import { i as tenantId, r as TenantScoped } from "./dist-DmUXNvp6.js";
|
|
3
3
|
import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-Di3_eNCq.js";
|
|
4
4
|
import { SmrtCollection, SmrtObject, field, smrt } from "@happyvertical/smrt-core";
|
|
5
5
|
//#region ../profiles/dist/chunks/ProfileMetafieldCollection-CoBuM_5G.js
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { i as tenantId, r as TenantScoped } from "./dist-
|
|
2
|
+
import { i as tenantId, r as TenantScoped } from "./dist-DmUXNvp6.js";
|
|
3
3
|
import { n as __exportAll$1 } from "./NostrIdentity-n70E0vck-Di3_eNCq.js";
|
|
4
4
|
import { SmrtCollection, SmrtObject, foreignKey, oneToMany, smrt } from "@happyvertical/smrt-core";
|
|
5
5
|
//#region ../profiles/dist/chunks/ProfileRelationshipCollection-DUVgaIqf.js
|
|
@@ -7112,7 +7112,7 @@ var dbMaterializeTenantHierarchyCommand = {
|
|
|
7112
7112
|
if (!config.database?.url || config.database.url === ":memory:") throw new Error("Database configuration required for db:materialize-tenant-hierarchy. Configure database.url in smrt.config.ts (or DATABASE_URL).");
|
|
7113
7113
|
const dbType = config.database.type || "sqlite";
|
|
7114
7114
|
const { getDatabase } = await import("@happyvertical/sql");
|
|
7115
|
-
const { materializeTenantHierarchy, TenantHierarchyMaterializationError } = await import("./dist-
|
|
7115
|
+
const { materializeTenantHierarchy, TenantHierarchyMaterializationError } = await import("./dist-B68F6Mll.js");
|
|
7116
7116
|
db = await getDatabase({
|
|
7117
7117
|
type: dbType,
|
|
7118
7118
|
url: config.database.url
|
|
@@ -7321,7 +7321,7 @@ var dbMigrateLedgerAccountsCommand = {
|
|
|
7321
7321
|
if (dbType !== "postgres") throw new Error("db:migrate-ledger-accounts currently supports PostgreSQL only; no changes were made. See the smrt-ledgers README for SQLite.");
|
|
7322
7322
|
await autoDiscoverAndLoad();
|
|
7323
7323
|
const { getDatabase } = await import("@happyvertical/sql");
|
|
7324
|
-
const { migrateLedgerAccountsTable, planLedgerAccountsTableMove } = await import("./dist-
|
|
7324
|
+
const { migrateLedgerAccountsTable, planLedgerAccountsTableMove } = await import("./dist-DL5gGUmq.js");
|
|
7325
7325
|
db = await getDatabase({
|
|
7326
7326
|
type: dbType,
|
|
7327
7327
|
url: config.database.url
|