@happyvertical/smrt-sites 0.60.18 → 0.61.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/AGENTS.md +2 -0
- package/README.md +14 -0
- package/dist/collections/DnsZoneCollection.d.ts +11 -0
- package/dist/collections/DnsZoneCollection.d.ts.map +1 -0
- package/dist/collections/DomainCollection.d.ts +13 -0
- package/dist/collections/DomainCollection.d.ts.map +1 -0
- package/dist/collections/ProjectDomainCollection.d.ts +26 -0
- package/dist/collections/ProjectDomainCollection.d.ts.map +1 -0
- package/dist/index.d.ts +11 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +286 -3
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +1405 -215
- package/dist/models/DnsZone.d.ts +21 -0
- package/dist/models/DnsZone.d.ts.map +1 -0
- package/dist/models/Domain.d.ts +20 -0
- package/dist/models/Domain.d.ts.map +1 -0
- package/dist/models/ProjectDomain.d.ts +22 -0
- package/dist/models/ProjectDomain.d.ts.map +1 -0
- package/dist/services/DomainService.d.ts +24 -0
- package/dist/services/DomainService.d.ts.map +1 -0
- package/dist/smrt-knowledge.json +944 -67
- package/dist/smrt-knowledge.okf.md +14 -2
- package/dist/types.d.ts +35 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DnsZone - An apex DNS zone (e.g. happyvertical.com).
|
|
3
|
+
*
|
|
4
|
+
* Named DnsZone, not Zone, because `@happyvertical/smrt-properties` already
|
|
5
|
+
* registers an ad/property `Zone` class and registry names are global.
|
|
6
|
+
* One zone hosts many hostnames (see Domain), which may belong to
|
|
7
|
+
* different projects.
|
|
8
|
+
*/
|
|
9
|
+
import { SmrtObject } from '@happyvertical/smrt-core';
|
|
10
|
+
import type { DnsZoneOptions } from "../types.js";
|
|
11
|
+
export declare class DnsZone extends SmrtObject {
|
|
12
|
+
tenantId: string;
|
|
13
|
+
/** Apex name, e.g. "happyvertical.com" */
|
|
14
|
+
name: string;
|
|
15
|
+
/** Free-form notes */
|
|
16
|
+
notes: string;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
updatedAt: Date;
|
|
19
|
+
constructor(options?: DnsZoneOptions);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=DnsZone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DnsZone.d.ts","sourceRoot":"","sources":["../../src/models/DnsZone.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAU,CAAC;AAE/C,qBAQa,OAAQ,SAAQ,UAAU;IAErC,QAAQ,EAAE,MAAM,CAAM;IAEtB,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAM;IAElB,sBAAsB;IACtB,KAAK,EAAE,MAAM,CAAM;IAEnB,SAAS,EAAE,IAAI,CAAc;IAC7B,SAAS,EAAE,IAAI,CAAc;gBAEjB,OAAO,GAAE,cAAmB;CAQzC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Domain - One hostname under a DnsZone (e.g. work.happyvertical.com).
|
|
3
|
+
*
|
|
4
|
+
* A domain with no ProjectDomain link is "unassigned".
|
|
5
|
+
*/
|
|
6
|
+
import { SmrtObject } from '@happyvertical/smrt-core';
|
|
7
|
+
import type { DomainOptions } from "../types.js";
|
|
8
|
+
export declare class Domain extends SmrtObject {
|
|
9
|
+
tenantId: string;
|
|
10
|
+
/** FK to dns_zones */
|
|
11
|
+
zoneId: string;
|
|
12
|
+
/** Fully qualified hostname, e.g. "work.happyvertical.com" */
|
|
13
|
+
hostname: string;
|
|
14
|
+
/** Free-form notes */
|
|
15
|
+
notes: string;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
constructor(options?: DomainOptions);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=Domain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Domain.d.ts","sourceRoot":"","sources":["../../src/models/Domain.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAc,UAAU,EAAQ,MAAM,0BAA0B,CAAC;AAExE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAU,CAAC;AAE9C,qBAQa,MAAO,SAAQ,UAAU;IAEpC,QAAQ,EAAE,MAAM,CAAM;IAEtB,sBAAsB;IAEtB,MAAM,EAAE,MAAM,CAAM;IAEpB,8DAA8D;IAC9D,QAAQ,EAAE,MAAM,CAAM;IAEtB,sBAAsB;IACtB,KAAK,EAAE,MAAM,CAAM;IAEnB,SAAS,EAAE,IAAI,CAAc;IAC7B,SAAS,EAAE,IAAI,CAAc;gBAEjB,OAAO,GAAE,aAAkB;CASxC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProjectDomain - Links a Domain to a project with a role.
|
|
3
|
+
*
|
|
4
|
+
* `projectId` is a qualified cross-package reference to
|
|
5
|
+
* `@happyvertical/smrt-projects:Project`; this package does not depend on
|
|
6
|
+
* smrt-projects (DAG, #1582).
|
|
7
|
+
*/
|
|
8
|
+
import { SmrtObject } from '@happyvertical/smrt-core';
|
|
9
|
+
import type { DomainRole, ProjectDomainOptions } from "../types.js";
|
|
10
|
+
export declare class ProjectDomain extends SmrtObject {
|
|
11
|
+
tenantId: string;
|
|
12
|
+
/** FK to domains */
|
|
13
|
+
domainId: string;
|
|
14
|
+
/** Project this hostname serves */
|
|
15
|
+
projectId: string;
|
|
16
|
+
/** production, staging, preview, mail, redirect, other */
|
|
17
|
+
role: DomainRole;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
constructor(options?: ProjectDomainOptions);
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=ProjectDomain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectDomain.d.ts","sourceRoot":"","sources":["../../src/models/ProjectDomain.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAGL,UAAU,EAEX,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,aAAU,CAAC;AAEjE,qBAQa,aAAc,SAAQ,UAAU;IAE3C,QAAQ,EAAE,MAAM,CAAM;IAEtB,oBAAoB;IAEpB,QAAQ,EAAE,MAAM,CAAM;IAEtB,mCAAmC;IAEnC,SAAS,EAAE,MAAM,CAAM;IAEvB,0DAA0D;IAC1D,IAAI,EAAE,UAAU,CAAgB;IAEhC,SAAS,EAAE,IAAI,CAAc;IAC7B,SAAS,EAAE,IAAI,CAAc;gBAEjB,OAAO,GAAE,oBAAyB;CAS/C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DomainService - Cross-collection domain helpers: domains by zone,
|
|
3
|
+
* by project, and unassigned. Every helper is scoped to one tenant.
|
|
4
|
+
*/
|
|
5
|
+
import type { DomainCollection } from "../collections/DomainCollection.js";
|
|
6
|
+
import type { ProjectDomainCollection } from "../collections/ProjectDomainCollection.js";
|
|
7
|
+
import type { Domain } from "../models/Domain.js";
|
|
8
|
+
import type { DomainRole } from "../types.js";
|
|
9
|
+
export interface DomainServiceOptions {
|
|
10
|
+
domains: DomainCollection;
|
|
11
|
+
links: ProjectDomainCollection;
|
|
12
|
+
}
|
|
13
|
+
export declare class DomainService {
|
|
14
|
+
private domains;
|
|
15
|
+
private links;
|
|
16
|
+
constructor(options: DomainServiceOptions);
|
|
17
|
+
/** All of a tenant's domains under a zone */
|
|
18
|
+
domainsByZone(tenantId: string, zoneId: string): Promise<Domain[]>;
|
|
19
|
+
/** A tenant's domains linked to a project, optionally for one role */
|
|
20
|
+
domainsByProject(tenantId: string, projectId: string, role?: DomainRole): Promise<Domain[]>;
|
|
21
|
+
/** A tenant's domains with no project link */
|
|
22
|
+
unassignedDomains(tenantId: string): Promise<Domain[]>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=DomainService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DomainService.d.ts","sourceRoot":"","sources":["../../src/services/DomainService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAAwC,CAAC;AACtF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAU,CAAC;AAE3C,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,KAAK,EAAE,uBAAuB,CAAC;CAChC;AAED,qBAAa,aAAa;IACxB,OAAO,CAAC,OAAO,CAAmB;IAClC,OAAO,CAAC,KAAK,CAA0B;gBAE3B,OAAO,EAAE,oBAAoB;IAKzC,6CAA6C;IACvC,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAIxE,sEAAsE;IAChE,gBAAgB,CACpB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,IAAI,CAAC,EAAE,UAAU,GAChB,OAAO,CAAC,MAAM,EAAE,CAAC;IASpB,8CAA8C;IACxC,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAW7D"}
|