@happyvertical/smrt-cli 0.57.27 → 0.57.29
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-BBbvr8Qc-B0y3My8J.js → AuditLogCollection-BBbvr8Qc-BLKAC_lt.js} +1 -1
- package/dist/{OidcIdentity-MVVO3MfG-DisyRqSr.js → OidcIdentity-MVVO3MfG-NRsZDEk0.js} +2 -2
- package/dist/{OidcIdentityCollection-s4mp3n62-DHWhYhCS.js → OidcIdentityCollection-s4mp3n62-Bg2JYzW0.js} +1 -1
- package/dist/{PasswordCredentialService-DA2Y6H2X-ChHGmZ_W.js → PasswordCredentialService-DA2Y6H2X-u6IgiDQg.js} +14 -14
- package/dist/{ProfileAssetCollection-BuVAdOiv-Cysn74lL.js → ProfileAssetCollection-BuVAdOiv-CnTWWD-r.js} +3 -3
- package/dist/{ProfileCollection-CMS9dFc0-aYpqTPJt.js → ProfileCollection-CMS9dFc0-DnrPHwYV.js} +17 -17
- package/dist/{ProfileLinkCollection-ChK9iEBp-qKLBtSpP.js → ProfileLinkCollection-ChK9iEBp-DJpdQldn.js} +2 -2
- package/dist/{ProfileMetadataCollection-CAgJyjze-bYByCBcq.js → ProfileMetadataCollection-CAgJyjze-9ieKExQ-.js} +1 -1
- package/dist/{ProfileMetafieldCollection-19ae6Lpf-NaGli9d0.js → ProfileMetafieldCollection-19ae6Lpf-B2GKm3WL.js} +1 -1
- package/dist/{ProfileRelationshipCollection-BFSlTQ7J-CLhqYAFG.js → ProfileRelationshipCollection-BFSlTQ7J-D56AsFiv.js} +1 -1
- package/dist/{ProfileTypeCollection-B7m698Bl-Cncv0L-z.js → ProfileTypeCollection-B7m698Bl-qp8nqwFe.js} +2 -2
- package/dist/{commands-C4YScQuS.js → commands-CSHb5B5i.js} +3 -3
- package/dist/{dist-CoXaGgV-.js → dist-B5qhNGmn.js} +4 -4
- package/dist/{dist-onV0fPll.js → dist-BMxFUu5j.js} +2 -2
- package/dist/{dist-DTzOpbJ6.js → dist-BXBuCfoQ.js} +3 -3
- package/dist/{dist-Cbg6z5QH.js → dist-dCopPDeN.js} +5 -5
- package/dist/index.js +11 -11
- package/dist/{oidcProvisioningPrimitives-Dl9qIcYS-Bx6wIPMp.js → oidcProvisioningPrimitives-Dl9qIcYS-CMn20Sa_.js} +3 -3
- package/dist/{operator-1ZgirF53.js → operator-BbtzrspR.js} +2 -2
- package/dist/{resolveIdentity-CR5p_g7K-pnq_sehP.js → resolveIdentity-CR5p_g7K-DW6s3Fdt.js} +14 -14
- package/package.json +15 -15
|
@@ -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-BMxFUu5j.js";
|
|
3
3
|
import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.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-BXBuCfoQ.js";
|
|
5
5
|
import { SmrtJunction, SmrtObject, crossPackageRef, field, foreignKey, smrt } from "@happyvertical/smrt-core";
|
|
6
6
|
//#region ../profiles/dist/chunks/ProfileAssetCollection-BuVAdOiv.js
|
|
7
7
|
var ProfileAssetCollection_BuVAdOiv_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -84,7 +84,7 @@ var ProfileAssetCollection = class extends SmrtJunction {
|
|
|
84
84
|
profileCollectionPromise = null;
|
|
85
85
|
async getProfileCollection() {
|
|
86
86
|
if (!this.profileCollectionPromise) {
|
|
87
|
-
const { ProfileCollection } = await import("./ProfileCollection-CMS9dFc0-
|
|
87
|
+
const { ProfileCollection } = await import("./ProfileCollection-CMS9dFc0-DnrPHwYV.js").then((n) => n.r).then((n) => n.r);
|
|
88
88
|
this.profileCollectionPromise = ProfileCollection.create({ db: this.db });
|
|
89
89
|
}
|
|
90
90
|
return this.profileCollectionPromise;
|
package/dist/{ProfileCollection-CMS9dFc0-aYpqTPJt.js → ProfileCollection-CMS9dFc0-DnrPHwYV.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { d as getTenantId, i as tenantId, m as withSystemContext, n as resolvePrompt, o as queryGlobal, r as TenantScoped, s as queryWithGlobals, t as definePrompt } from "./dist-
|
|
2
|
+
import { d as getTenantId, i as tenantId, m as withSystemContext, n as resolvePrompt, o as queryGlobal, r as TenantScoped, s as queryWithGlobals, t as definePrompt } from "./dist-BMxFUu5j.js";
|
|
3
3
|
import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.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-BXBuCfoQ.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-CMS9dFc0.js
|
|
@@ -435,7 +435,7 @@ var Profile = class extends SmrtObject {
|
|
|
435
435
|
async getTypeSlug() {
|
|
436
436
|
const tenantId2 = this.tenantId || getTenantId();
|
|
437
437
|
if (this.typeId && tenantId2) {
|
|
438
|
-
const { ProfileTypeCollection } = await import("./ProfileTypeCollection-B7m698Bl-
|
|
438
|
+
const { ProfileTypeCollection } = await import("./ProfileTypeCollection-B7m698Bl-qp8nqwFe.js").then((n) => n.n).then((n) => n.n);
|
|
439
439
|
return (await (await ProfileTypeCollection.create(this.options)).getAvailableById(this.typeId, tenantId2))?.slug ?? "";
|
|
440
440
|
}
|
|
441
441
|
return (await this.loadRelated("typeId"))?.slug || "";
|
|
@@ -458,8 +458,8 @@ var Profile = class extends SmrtObject {
|
|
|
458
458
|
* @param value - The value to set
|
|
459
459
|
*/
|
|
460
460
|
async addMetadata(metafieldSlug, value) {
|
|
461
|
-
const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-19ae6Lpf-
|
|
462
|
-
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-CAgJyjze-
|
|
461
|
+
const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-19ae6Lpf-B2GKm3WL.js").then((n) => n.t).then((n) => n.n);
|
|
462
|
+
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-CAgJyjze-9ieKExQ-.js").then((n) => n.t).then((n) => n.n);
|
|
463
463
|
const metafield = await this.resolveMetafield(await ProfileMetafieldCollection.create(this.options), metafieldSlug);
|
|
464
464
|
if (!metafield) throw new Error(`Metafield '${metafieldSlug}' not found`);
|
|
465
465
|
await metafield.validateValue(value);
|
|
@@ -492,7 +492,7 @@ var Profile = class extends SmrtObject {
|
|
|
492
492
|
* @returns Object with metafield slugs as keys
|
|
493
493
|
*/
|
|
494
494
|
async getMetadata() {
|
|
495
|
-
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-CAgJyjze-
|
|
495
|
+
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-CAgJyjze-9ieKExQ-.js").then((n) => n.t).then((n) => n.n);
|
|
496
496
|
return await (await ProfileMetadataCollection.create(this.options)).getMetadataObject(this.id);
|
|
497
497
|
}
|
|
498
498
|
/**
|
|
@@ -509,8 +509,8 @@ var Profile = class extends SmrtObject {
|
|
|
509
509
|
* @param metafieldSlug - The slug of the metafield to remove
|
|
510
510
|
*/
|
|
511
511
|
async removeMetadata(metafieldSlug) {
|
|
512
|
-
const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-19ae6Lpf-
|
|
513
|
-
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-CAgJyjze-
|
|
512
|
+
const { ProfileMetafieldCollection } = await import("./ProfileMetafieldCollection-19ae6Lpf-B2GKm3WL.js").then((n) => n.t).then((n) => n.n);
|
|
513
|
+
const { ProfileMetadataCollection } = await import("./ProfileMetadataCollection-CAgJyjze-9ieKExQ-.js").then((n) => n.t).then((n) => n.n);
|
|
514
514
|
const metafield = await this.resolveMetafield(await ProfileMetafieldCollection.create(this.options), metafieldSlug);
|
|
515
515
|
if (!metafield) throw new Error(`Metafield '${metafieldSlug}' not found`);
|
|
516
516
|
const existing = await (await ProfileMetadataCollection.create(this.options)).list({
|
|
@@ -535,7 +535,7 @@ var Profile = class extends SmrtObject {
|
|
|
535
535
|
return candidates.find((candidate) => ownerTenantId && candidate.tenantId === ownerTenantId) ?? candidates.find((candidate) => !candidate.tenantId) ?? null;
|
|
536
536
|
}
|
|
537
537
|
async getProfileLinkCollection() {
|
|
538
|
-
const { ProfileLinkCollection } = await import("./ProfileLinkCollection-ChK9iEBp-
|
|
538
|
+
const { ProfileLinkCollection } = await import("./ProfileLinkCollection-ChK9iEBp-DJpdQldn.js").then((n) => n.t).then((n) => n.r);
|
|
539
539
|
return ProfileLinkCollection.create({ db: this.db });
|
|
540
540
|
}
|
|
541
541
|
/** This profile's web links in display order. */
|
|
@@ -552,7 +552,7 @@ var Profile = class extends SmrtObject {
|
|
|
552
552
|
return (await this.getProfileLinkCollection()).replaceForProfile(this.id, links);
|
|
553
553
|
}
|
|
554
554
|
async getProfileAssetCollection() {
|
|
555
|
-
const { ProfileAssetCollection } = await import("./ProfileAssetCollection-BuVAdOiv-
|
|
555
|
+
const { ProfileAssetCollection } = await import("./ProfileAssetCollection-BuVAdOiv-CnTWWD-r.js").then((n) => n.t).then((n) => n.n);
|
|
556
556
|
return ProfileAssetCollection.create({ db: this.db });
|
|
557
557
|
}
|
|
558
558
|
async getAssets(relationship) {
|
|
@@ -584,7 +584,7 @@ var Profile = class extends SmrtObject {
|
|
|
584
584
|
*/
|
|
585
585
|
async addRelationship(toProfile, relationshipSlug, contextProfile) {
|
|
586
586
|
const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BRBpX00F-D78l9V1y.js").then((n) => n.t).then((n) => n.n);
|
|
587
|
-
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-BFSlTQ7J-
|
|
587
|
+
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-BFSlTQ7J-D56AsFiv.js").then((n) => n.t).then((n) => n.n);
|
|
588
588
|
const { ProfileRelationshipType } = await import("./ProfileRelationshipType-Cevy-vaF-G82Gg40q.js").then((n) => n.n).then((n) => n.n);
|
|
589
589
|
const relationshipType = await (await ProfileRelationshipTypeCollection.create(this.options)).getBySlug(relationshipSlug);
|
|
590
590
|
if (!relationshipType) throw new Error(`Relationship type '${relationshipSlug}' not found`);
|
|
@@ -609,7 +609,7 @@ var Profile = class extends SmrtObject {
|
|
|
609
609
|
* @returns Array of ProfileRelationship instances
|
|
610
610
|
*/
|
|
611
611
|
async getRelationships(options) {
|
|
612
|
-
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-BFSlTQ7J-
|
|
612
|
+
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-BFSlTQ7J-D56AsFiv.js").then((n) => n.t).then((n) => n.n);
|
|
613
613
|
const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BRBpX00F-D78l9V1y.js").then((n) => n.t).then((n) => n.n);
|
|
614
614
|
const relationshipCollection = await ProfileRelationshipCollection.create(this.options);
|
|
615
615
|
const direction = options?.direction || "all";
|
|
@@ -654,7 +654,7 @@ var Profile = class extends SmrtObject {
|
|
|
654
654
|
*/
|
|
655
655
|
async removeRelationship(toProfile, relationshipSlug) {
|
|
656
656
|
const { ProfileRelationshipTypeCollection } = await import("./ProfileRelationshipTypeCollection-BRBpX00F-D78l9V1y.js").then((n) => n.t).then((n) => n.n);
|
|
657
|
-
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-BFSlTQ7J-
|
|
657
|
+
const { ProfileRelationshipCollection } = await import("./ProfileRelationshipCollection-BFSlTQ7J-D56AsFiv.js").then((n) => n.t).then((n) => n.n);
|
|
658
658
|
const relationshipType = await (await ProfileRelationshipTypeCollection.create(this.options)).getBySlug(relationshipSlug);
|
|
659
659
|
if (!relationshipType) throw new Error(`Relationship type '${relationshipSlug}' not found`);
|
|
660
660
|
const relationshipCollection = await ProfileRelationshipCollection.create(this.options);
|
|
@@ -778,7 +778,7 @@ var Profile = class extends SmrtObject {
|
|
|
778
778
|
* @returns Array of OIDC identity records
|
|
779
779
|
*/
|
|
780
780
|
async getOidcIdentities() {
|
|
781
|
-
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-s4mp3n62-
|
|
781
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-s4mp3n62-Bg2JYzW0.js").then((n) => n.r).then((n) => n.r);
|
|
782
782
|
return await (await OidcIdentityCollection.create(this.options)).findByProfile(this.id);
|
|
783
783
|
}
|
|
784
784
|
/**
|
|
@@ -791,7 +791,7 @@ var Profile = class extends SmrtObject {
|
|
|
791
791
|
* type, but refuses to create or rebind authority.
|
|
792
792
|
*/
|
|
793
793
|
async linkOidcIdentity(oidcData) {
|
|
794
|
-
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-s4mp3n62-
|
|
794
|
+
const { OidcIdentityCollection } = await import("./OidcIdentityCollection-s4mp3n62-Bg2JYzW0.js").then((n) => n.r).then((n) => n.r);
|
|
795
795
|
return await (await OidcIdentityCollection.create(this.options)).linkToProfile(this, oidcData);
|
|
796
796
|
}
|
|
797
797
|
/**
|
|
@@ -820,7 +820,7 @@ var Profile = class extends SmrtObject {
|
|
|
820
820
|
* @returns Array of audit log entries
|
|
821
821
|
*/
|
|
822
822
|
async getAuditLogs(limit = 50) {
|
|
823
|
-
const { AuditLogCollection } = await import("./AuditLogCollection-BBbvr8Qc-
|
|
823
|
+
const { AuditLogCollection } = await import("./AuditLogCollection-BBbvr8Qc-BLKAC_lt.js").then((n) => n.t).then((n) => n.n);
|
|
824
824
|
return await (await AuditLogCollection.create(this.options)).getRecentActivity(this.id, limit);
|
|
825
825
|
}
|
|
826
826
|
/**
|
|
@@ -830,7 +830,7 @@ var Profile = class extends SmrtObject {
|
|
|
830
830
|
* @returns The created audit log entry
|
|
831
831
|
*/
|
|
832
832
|
async recordAction(options) {
|
|
833
|
-
const { AuditLogCollection } = await import("./AuditLogCollection-BBbvr8Qc-
|
|
833
|
+
const { AuditLogCollection } = await import("./AuditLogCollection-BBbvr8Qc-BLKAC_lt.js").then((n) => n.t).then((n) => n.n);
|
|
834
834
|
return await (await AuditLogCollection.create(this.options)).record({
|
|
835
835
|
profile: this,
|
|
836
836
|
...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-BMxFUu5j.js";
|
|
3
3
|
import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
|
|
4
4
|
import { SmrtCollection, SmrtObject, field, foreignKey, isEmbeddedDatabase, smrt, withEmbeddedWriteTransaction } from "@happyvertical/smrt-core";
|
|
5
5
|
//#region ../profiles/dist/chunks/ProfileLinkCollection-ChK9iEBp.js
|
|
@@ -203,7 +203,7 @@ var ProfileLinkCollection = class ProfileLinkCollection extends SmrtCollection {
|
|
|
203
203
|
/** The profile's tenant; throws when the profile is not visible here. */
|
|
204
204
|
async requireProfileTenant(profileId) {
|
|
205
205
|
if (!profileId) throw new Error("A profile link needs a profile");
|
|
206
|
-
const { ProfileCollection } = await import("./ProfileCollection-CMS9dFc0-
|
|
206
|
+
const { ProfileCollection } = await import("./ProfileCollection-CMS9dFc0-DnrPHwYV.js").then((n) => n.r).then((n) => n.r);
|
|
207
207
|
const profile = await (await ProfileCollection.create({ db: this.db })).get({ id: profileId });
|
|
208
208
|
if (!profile) throw new Error(`Profile '${profileId}' not found`);
|
|
209
209
|
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-BMxFUu5j.js";
|
|
3
3
|
import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
|
|
4
4
|
import { SmrtCollection, SmrtObject, field, foreignKey, smrt } from "@happyvertical/smrt-core";
|
|
5
5
|
//#region ../profiles/dist/chunks/ProfileMetadataCollection-CAgJyjze.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-BMxFUu5j.js";
|
|
3
3
|
import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
|
|
4
4
|
import { SmrtCollection, SmrtObject, field, smrt } from "@happyvertical/smrt-core";
|
|
5
5
|
//#region ../profiles/dist/chunks/ProfileMetafieldCollection-19ae6Lpf.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-BMxFUu5j.js";
|
|
3
3
|
import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
|
|
4
4
|
import { SmrtCollection, SmrtObject, foreignKey, oneToMany, smrt } from "@happyvertical/smrt-core";
|
|
5
5
|
//#region ../profiles/dist/chunks/ProfileRelationshipCollection-BFSlTQ7J.js
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import { l as withTenantGlobalRead, p as isSystemContext } from "./dist-
|
|
2
|
+
import { l as withTenantGlobalRead, p as isSystemContext } from "./dist-BMxFUu5j.js";
|
|
3
3
|
import { n as __exportAll$1 } from "./NostrIdentity-RJaATTCt-BbRHWyee.js";
|
|
4
|
-
import { i as ProfileType } from "./ProfileCollection-CMS9dFc0-
|
|
4
|
+
import { i as ProfileType } from "./ProfileCollection-CMS9dFc0-DnrPHwYV.js";
|
|
5
5
|
import { SmrtCollection } from "@happyvertical/smrt-core";
|
|
6
6
|
//#region ../profiles/dist/chunks/ProfileTypeCollection-B7m698Bl.js
|
|
7
7
|
var ProfileTypeCollection_B7m698Bl_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -8404,7 +8404,7 @@ var dbMaterializeTenantHierarchyCommand = {
|
|
|
8404
8404
|
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).");
|
|
8405
8405
|
const dbType = config.database.type || "sqlite";
|
|
8406
8406
|
const { getDatabase } = await import("@happyvertical/sql");
|
|
8407
|
-
const { materializeTenantHierarchy, TenantHierarchyMaterializationError } = await import("./dist-
|
|
8407
|
+
const { materializeTenantHierarchy, TenantHierarchyMaterializationError } = await import("./dist-B5qhNGmn.js");
|
|
8408
8408
|
db = await getDatabase({
|
|
8409
8409
|
type: dbType,
|
|
8410
8410
|
url: config.database.url
|
|
@@ -8613,7 +8613,7 @@ var dbMigrateLedgerAccountsCommand = {
|
|
|
8613
8613
|
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.");
|
|
8614
8614
|
await autoDiscoverAndLoad();
|
|
8615
8615
|
const { getDatabase } = await import("@happyvertical/sql");
|
|
8616
|
-
const { migrateLedgerAccountsTable, planLedgerAccountsTableMove } = await import("./dist-
|
|
8616
|
+
const { migrateLedgerAccountsTable, planLedgerAccountsTableMove } = await import("./dist-dCopPDeN.js");
|
|
8617
8617
|
db = await getDatabase({
|
|
8618
8618
|
type: dbType,
|
|
8619
8619
|
url: config.database.url
|
|
@@ -10788,7 +10788,7 @@ var usersProvisionOwnerCommand = {
|
|
|
10788
10788
|
const config = getPackageConfig("cli", DEFAULT_CLI_CONFIG);
|
|
10789
10789
|
if (config.database?.type !== "postgres" || !config.database.url) throw new Error(FAILURE);
|
|
10790
10790
|
const { getDatabase } = await import("@happyvertical/sql");
|
|
10791
|
-
const { provisionPasswordOwner } = await import("./operator-
|
|
10791
|
+
const { provisionPasswordOwner } = await import("./operator-BbtzrspR.js");
|
|
10792
10792
|
db = await getDatabase({
|
|
10793
10793
|
type: "postgres",
|
|
10794
10794
|
url: config.database.url
|