@antelopejs/interface-dms 0.17.3 → 0.17.4-next.1103.g1c1421b
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.
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { Table } from "@antelopejs/interface-database-decorators";
|
|
2
2
|
export declare const tenantsTableName = "tenants";
|
|
3
|
+
/** Index group that orders tenants by `createdAt`, then `_id`, so ties page stably. */
|
|
4
|
+
export declare const TENANT_CREATED_AT_THEN_ID_INDEX = "createdAtThenId";
|
|
3
5
|
export declare class Tenant extends Table {
|
|
6
|
+
/**
|
|
7
|
+
* Declared before `_id`: the index group lists its fields in declaration
|
|
8
|
+
* order, and the sort must read `createdAt` first.
|
|
9
|
+
*/
|
|
10
|
+
createdAt: Date;
|
|
4
11
|
_id: string;
|
|
5
12
|
name: string;
|
|
6
13
|
/** True while default tenant provisioning must be retried. Absent means provisioned. */
|
|
@@ -14,6 +21,5 @@ export declare class Tenant extends Table {
|
|
|
14
21
|
* from null on a declared column.
|
|
15
22
|
*/
|
|
16
23
|
provisioningRevision?: string;
|
|
17
|
-
createdAt: Date;
|
|
18
24
|
updatedAt: Date;
|
|
19
25
|
}
|
|
@@ -9,14 +9,24 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.Tenant = exports.tenantsTableName = void 0;
|
|
12
|
+
exports.Tenant = exports.TENANT_CREATED_AT_THEN_ID_INDEX = exports.tenantsTableName = void 0;
|
|
13
13
|
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
14
14
|
const constants_1 = require("../../constants");
|
|
15
15
|
exports.tenantsTableName = "tenants";
|
|
16
|
+
/** Index group that orders tenants by `createdAt`, then `_id`, so ties page stably. */
|
|
17
|
+
exports.TENANT_CREATED_AT_THEN_ID_INDEX = "createdAtThenId";
|
|
16
18
|
let Tenant = class Tenant extends interface_database_decorators_1.Table {
|
|
17
19
|
};
|
|
18
20
|
exports.Tenant = Tenant;
|
|
19
21
|
__decorate([
|
|
22
|
+
(0, interface_database_decorators_1.CreationTime)(),
|
|
23
|
+
(0, interface_database_decorators_1.Index)(),
|
|
24
|
+
(0, interface_database_decorators_1.Index)({ group: exports.TENANT_CREATED_AT_THEN_ID_INDEX }),
|
|
25
|
+
(0, interface_database_decorators_1.Field)("date"),
|
|
26
|
+
__metadata("design:type", Date)
|
|
27
|
+
], Tenant.prototype, "createdAt", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, interface_database_decorators_1.Index)({ group: exports.TENANT_CREATED_AT_THEN_ID_INDEX }),
|
|
20
30
|
(0, interface_database_decorators_1.Field)("string"),
|
|
21
31
|
__metadata("design:type", String)
|
|
22
32
|
], Tenant.prototype, "_id", void 0);
|
|
@@ -32,12 +42,6 @@ __decorate([
|
|
|
32
42
|
(0, interface_database_decorators_1.Field)("string"),
|
|
33
43
|
__metadata("design:type", Object)
|
|
34
44
|
], Tenant.prototype, "provisioningHolder", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, interface_database_decorators_1.CreationTime)(),
|
|
37
|
-
(0, interface_database_decorators_1.Index)(),
|
|
38
|
-
(0, interface_database_decorators_1.Field)("date"),
|
|
39
|
-
__metadata("design:type", Date)
|
|
40
|
-
], Tenant.prototype, "createdAt", void 0);
|
|
41
45
|
__decorate([
|
|
42
46
|
(0, interface_database_decorators_1.UpdateTime)(),
|
|
43
47
|
(0, interface_database_decorators_1.Index)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.table.js","sourceRoot":"","sources":["../../../src/db/tables/tenants.table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6FAOmD;AACnD,+CAAmD;AAEtC,QAAA,gBAAgB,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"tenants.table.js","sourceRoot":"","sources":["../../../src/db/tables/tenants.table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6FAOmD;AACnD,+CAAmD;AAEtC,QAAA,gBAAgB,GAAG,SAAS,CAAC;AAE1C,uFAAuF;AAC1E,QAAA,+BAA+B,GAAG,iBAAiB,CAAC;AAG1D,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,qCAAK;CAsChC,CAAA;;AA7BS;IAJP,IAAA,4CAAY,GAAE;IACd,IAAA,qCAAK,GAAE;IACP,IAAA,qCAAK,EAAC,EAAE,KAAK,EAAE,QAAA,+BAA+B,EAAE,CAAC;IACjD,IAAA,qCAAK,EAAC,MAAM,CAAC;8BACK,IAAI;yCAAC;AAIhB;IAFP,IAAA,qCAAK,EAAC,EAAE,KAAK,EAAE,QAAA,+BAA+B,EAAE,CAAC;IACjD,IAAA,qCAAK,EAAC,QAAQ,CAAC;;mCACI;AAGZ;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;oCACK;AAIb;IADP,IAAA,qCAAK,EAAC,SAAS,CAAC;;mDACqB;AAI9B;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;kDAC2B;AAanC;IAHP,IAAA,0CAAU,GAAE;IACZ,IAAA,qCAAK,GAAE;IACP,IAAA,qCAAK,EAAC,MAAM,CAAC;8BACK,IAAI;yCAAC;iBArCb,MAAM;IADlB,IAAA,6CAAa,EAAC,QAAA,gBAAgB,EAAE,4BAAgB,CAAC;GACrC,MAAM,CAsClB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antelopejs/interface-dms",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.4-next.1103.g1c1421b",
|
|
4
4
|
"description": "Public AntelopeJS interfaces of the DMS: pages, components, permissions, tenancy, auth, notifications and HTML rendering.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antelopejs",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@antelopejs/interface-database": ">=0.4.3 <0.5.0",
|
|
51
51
|
"@antelopejs/interface-database-decorators": ">=0.5.4 <0.6.0",
|
|
52
52
|
"@antelopejs/interface-file-storage": ">=0.1.4 <0.2.0",
|
|
53
|
-
"@antelopejs/tooling-configs": ">=0.10.
|
|
53
|
+
"@antelopejs/tooling-configs": ">=0.10.15 <0.11.0",
|
|
54
54
|
"@types/node": "^24.0.0",
|
|
55
55
|
"@types/randomstring": "^1.3.0",
|
|
56
56
|
"knip": "^6.34.0",
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"provenance": true,
|
|
132
132
|
"registry": "https://registry.npmjs.org/"
|
|
133
133
|
},
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "1c1421b0bbe16282f5b6c47753e8fd84facd2844",
|
|
135
135
|
"scripts": {
|
|
136
136
|
"build": "rimraf dist && antelopejs-tsc",
|
|
137
137
|
"typecheck": "antelopejs-tsc --noEmit",
|