@antelopejs/interface-dms-saas 0.3.0 → 0.4.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/README.md +19 -0
- package/dist/billing.d.ts +2 -0
- package/dist/billing.js +2 -1
- package/dist/billing.js.map +1 -1
- package/dist/db/models/creditNotes.model.d.ts +1 -0
- package/dist/db/models/creditNotes.model.js +9 -0
- package/dist/db/models/creditNotes.model.js.map +1 -1
- package/dist/db/models/planMigrations.model.d.ts +5 -2
- package/dist/db/models/planMigrations.model.js +25 -8
- package/dist/db/models/planMigrations.model.js.map +1 -1
- package/dist/db/models/segments.model.d.ts +7 -2
- package/dist/db/models/segments.model.js +14 -3
- package/dist/db/models/segments.model.js.map +1 -1
- package/dist/db/models/tenantBillingState.model.d.ts +3 -2
- package/dist/db/models/tenantBillingState.model.js +47 -5
- package/dist/db/models/tenantBillingState.model.js.map +1 -1
- package/dist/db/models/tenantSubscriptions.model.d.ts +1 -0
- package/dist/db/models/tenantSubscriptions.model.js +6 -0
- package/dist/db/models/tenantSubscriptions.model.js.map +1 -1
- package/dist/db/models/userSegments.model.d.ts +2 -1
- package/dist/db/models/userSegments.model.js +2 -2
- package/dist/db/models/userSegments.model.js.map +1 -1
- package/dist/db/tables/billingSettings.table.d.ts +1 -0
- package/dist/db/tables/billingSettings.table.js +4 -0
- package/dist/db/tables/billingSettings.table.js.map +1 -1
- package/dist/db/tables/features.table.js +2 -0
- package/dist/db/tables/features.table.js.map +1 -1
- package/dist/db/tables/invoices.table.d.ts +6 -0
- package/dist/db/tables/invoices.table.js +24 -0
- package/dist/db/tables/invoices.table.js.map +1 -1
- package/dist/db/tables/legalDocuments.table.d.ts +8 -0
- package/dist/db/tables/legalDocuments.table.js +10 -1
- package/dist/db/tables/legalDocuments.table.js.map +1 -1
- package/dist/db/tables/planMigrations.table.d.ts +19 -1
- package/dist/db/tables/planMigrations.table.js +60 -1
- package/dist/db/tables/planMigrations.table.js.map +1 -1
- package/dist/db/tables/plans.table.d.ts +1 -0
- package/dist/db/tables/plans.table.js +2 -1
- package/dist/db/tables/plans.table.js.map +1 -1
- package/dist/db/tables/segments.table.d.ts +6 -0
- package/dist/db/tables/segments.table.js +8 -0
- package/dist/db/tables/segments.table.js.map +1 -1
- package/dist/db/tables/tenantBillingState.table.d.ts +48 -1
- package/dist/db/tables/tenantBillingState.table.js +100 -1
- package/dist/db/tables/tenantBillingState.table.js.map +1 -1
- package/dist/db/tables/tenantSubscriptions.table.d.ts +2 -0
- package/dist/db/tables/tenantSubscriptions.table.js +9 -0
- package/dist/db/tables/tenantSubscriptions.table.js.map +1 -1
- package/dist/page-definitions.d.ts +1 -8
- package/dist/page-definitions.js +1 -27
- package/dist/page-definitions.js.map +1 -1
- package/dist/pages.d.ts +1 -2
- package/dist/pages.js +13 -11
- package/dist/pages.js.map +1 -1
- package/dist/plans.d.ts +1 -1
- package/dist/plans.js +12 -2
- package/dist/plans.js.map +1 -1
- package/package.json +3 -3
|
@@ -66,6 +66,30 @@ __decorate([
|
|
|
66
66
|
(0, interface_database_decorators_1.Field)("number"),
|
|
67
67
|
__metadata("design:type", Number)
|
|
68
68
|
], Invoice.prototype, "total", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, interface_database_decorators_1.Field)("number"),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], Invoice.prototype, "amountPaid", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, interface_database_decorators_1.Field)("number"),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], Invoice.prototype, "attemptCount", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, interface_database_decorators_1.Field)("date"),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], Invoice.prototype, "nextPaymentAttemptAt", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, interface_database_decorators_1.Field)("date"),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], Invoice.prototype, "dueAt", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, interface_database_decorators_1.Field)("date"),
|
|
87
|
+
__metadata("design:type", Object)
|
|
88
|
+
], Invoice.prototype, "autoFinalizesAt", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
91
|
+
__metadata("design:type", Object)
|
|
92
|
+
], Invoice.prototype, "latestRevisionStripeId", void 0);
|
|
69
93
|
__decorate([
|
|
70
94
|
(0, interface_database_decorators_1.Field)("string"),
|
|
71
95
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoices.table.js","sourceRoot":"","sources":["../../../src/db/tables/invoices.table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6FAOmD;AACnD,mEAAyE;AAE5D,QAAA,iBAAiB,GAAG,UAAU,CAAC;AAE/B,QAAA,gBAAgB,GAAG;IAC9B,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,eAAe;CACP,CAAC;AAwBJ,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,qCAAK;
|
|
1
|
+
{"version":3,"file":"invoices.table.js","sourceRoot":"","sources":["../../../src/db/tables/invoices.table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6FAOmD;AACnD,mEAAyE;AAE5D,QAAA,iBAAiB,GAAG,UAAU,CAAC;AAE/B,QAAA,gBAAgB,GAAG;IAC9B,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,eAAe;CACP,CAAC;AAwBJ,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,qCAAK;CA6GjC,CAAA;AA7GY,0BAAO;AAEV;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;oCACI;AAIZ;IAFP,IAAA,qCAAK,EAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,qCAAK,EAAC,QAAQ,CAAC;;6CAC0B;AAIlC;IAFP,I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AAC;;qCACY;AAGpB;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;iDACwB;AAGhC;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;8CACqB;AAG7B;IADP,IAAA,qCAAK,EAAC,KAAK,CAAC;;yCACqB;AAG1B;IADP,IAAA,qCAAK,EAAC,MAAM,CAAC;;uCACc;AAGpB;IADP,IAAA,qCAAK,EAAC,MAAM,CAAC;;yCACgB;AAItB;IAFP,IAAA,qCAAK,EAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,qCAAK,EAAC,MAAM,CAAC;8BACI,IAAI;yCAAC;AAIf;IAFP,IAAA,4CAAY,GAAE;IACd,IAAA,qCAAK,EAAC,MAAM,CAAC;8BACK,IAAI;0CAAC;AAIhB;IAFP,IAAA,0CAAU,GAAE;IACZ,IAAA,qCAAK,EAAC,MAAM,CAAC;8BACK,IAAI;0CAAC;kBA5Gb,OAAO;IADnB,IAAA,6CAAa,EAAC,yBAAiB,EAAE,8BAAkB,CAAC;GACxC,OAAO,CA6GnB"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import { Table } from "@antelopejs/interface-database-decorators";
|
|
2
2
|
export declare const legalDocumentsTableName = "legal_documents";
|
|
3
3
|
export declare const LEGAL_DOCUMENTS_SINGLETON_ID = "singleton";
|
|
4
|
+
export declare const LEGAL_DOCUMENT_KEYS: readonly ["termsOfUse", "termsAndConditions", "privacyPolicy"];
|
|
5
|
+
export type LegalDocumentKey = (typeof LEGAL_DOCUMENT_KEYS)[number];
|
|
6
|
+
export interface LegalDocumentVersion {
|
|
7
|
+
version: number;
|
|
8
|
+
publishedAt: Date | null;
|
|
9
|
+
}
|
|
10
|
+
export type LegalDocumentVersions = Record<LegalDocumentKey, LegalDocumentVersion>;
|
|
4
11
|
export declare class LegalDocuments extends Table {
|
|
5
12
|
_id: string;
|
|
6
13
|
termsOfUse: string;
|
|
7
14
|
termsAndConditions: string;
|
|
8
15
|
privacyPolicy: string;
|
|
16
|
+
versions: LegalDocumentVersions;
|
|
9
17
|
updatedAt: Date;
|
|
10
18
|
}
|
|
@@ -9,11 +9,16 @@ 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.LegalDocuments = exports.LEGAL_DOCUMENTS_SINGLETON_ID = exports.legalDocumentsTableName = void 0;
|
|
12
|
+
exports.LegalDocuments = exports.LEGAL_DOCUMENT_KEYS = exports.LEGAL_DOCUMENTS_SINGLETON_ID = exports.legalDocumentsTableName = void 0;
|
|
13
13
|
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
14
14
|
const constants_1 = require("@antelopejs/interface-dms/constants");
|
|
15
15
|
exports.legalDocumentsTableName = "legal_documents";
|
|
16
16
|
exports.LEGAL_DOCUMENTS_SINGLETON_ID = "singleton";
|
|
17
|
+
exports.LEGAL_DOCUMENT_KEYS = [
|
|
18
|
+
"termsOfUse",
|
|
19
|
+
"termsAndConditions",
|
|
20
|
+
"privacyPolicy",
|
|
21
|
+
];
|
|
17
22
|
let LegalDocuments = class LegalDocuments extends interface_database_decorators_1.Table {
|
|
18
23
|
};
|
|
19
24
|
exports.LegalDocuments = LegalDocuments;
|
|
@@ -33,6 +38,10 @@ __decorate([
|
|
|
33
38
|
(0, interface_database_decorators_1.Field)("string"),
|
|
34
39
|
__metadata("design:type", String)
|
|
35
40
|
], LegalDocuments.prototype, "privacyPolicy", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, interface_database_decorators_1.Field)("any"),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], LegalDocuments.prototype, "versions", void 0);
|
|
36
45
|
__decorate([
|
|
37
46
|
(0, interface_database_decorators_1.UpdateTime)(),
|
|
38
47
|
(0, interface_database_decorators_1.Field)("date"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legalDocuments.table.js","sourceRoot":"","sources":["../../../src/db/tables/legalDocuments.table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6FAKmD;AACnD,mEAAuE;AAE1D,QAAA,uBAAuB,GAAG,iBAAiB,CAAC;AAC5C,QAAA,4BAA4B,GAAG,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"legalDocuments.table.js","sourceRoot":"","sources":["../../../src/db/tables/legalDocuments.table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6FAKmD;AACnD,mEAAuE;AAE1D,QAAA,uBAAuB,GAAG,iBAAiB,CAAC;AAC5C,QAAA,4BAA4B,GAAG,WAAW,CAAC;AAG3C,QAAA,mBAAmB,GAAG;IACjC,YAAY;IACZ,oBAAoB;IACpB,eAAe;CACP,CAAC;AAqBJ,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,qCAAK;CAoBxC,CAAA;AApBY,wCAAc;AAEjB;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;2CACI;AAGZ;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;kDACW;AAGnB;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;0DACmB;AAG3B;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;qDACc;AAItB;IADP,IAAA,qCAAK,EAAC,KAAK,CAAC;;gDAC2B;AAIhC;IAFP,IAAA,0CAAU,GAAE;IACZ,IAAA,qCAAK,EAAC,MAAM,CAAC;8BACK,IAAI;iDAAC;yBAnBb,cAAc;IAD1B,IAAA,6CAAa,EAAC,+BAAuB,EAAE,4BAAgB,CAAC;GAC5C,cAAc,CAoB1B"}
|
|
@@ -18,12 +18,23 @@ export interface PlanMigrationSnapshot {
|
|
|
18
18
|
tenantIds: string[];
|
|
19
19
|
target: PlanMigrationTarget;
|
|
20
20
|
}
|
|
21
|
+
export declare const PLAN_MIGRATION_TENANT_STATUSES: readonly ["running", "succeeded", "reconciliation_required", "failed", "kept"];
|
|
22
|
+
export type PlanMigrationTenantStatus = (typeof PLAN_MIGRATION_TENANT_STATUSES)[number];
|
|
21
23
|
export interface PlanMigrationTenantOutcome {
|
|
22
24
|
tenantId: string;
|
|
23
|
-
status:
|
|
25
|
+
status: PlanMigrationTenantStatus;
|
|
24
26
|
error: string | null;
|
|
25
27
|
seatQuantity: number | null;
|
|
28
|
+
attempt: number;
|
|
29
|
+
updatedAt: Date | null;
|
|
30
|
+
resolvedBy?: string | null;
|
|
26
31
|
}
|
|
32
|
+
export declare const PLAN_MIGRATION_STAGES: readonly ["running", "needs_attention", "done"];
|
|
33
|
+
export type PlanMigrationStage = (typeof PLAN_MIGRATION_STAGES)[number];
|
|
34
|
+
export declare function planMigrationStageOf(status: PlanMigrationStatus): PlanMigrationStage;
|
|
35
|
+
export declare function isPlanMigrationExecuting(status: PlanMigrationStatus): boolean;
|
|
36
|
+
export declare const PLAN_MIGRATION_REASONS: readonly ["plan_retired"];
|
|
37
|
+
export type PlanMigrationReason = (typeof PLAN_MIGRATION_REASONS)[number];
|
|
27
38
|
export interface PlanMigrationPermissionDiff {
|
|
28
39
|
removed: string[];
|
|
29
40
|
added: string[];
|
|
@@ -48,6 +59,7 @@ export declare class PlanMigration extends Table {
|
|
|
48
59
|
toPlanId: string;
|
|
49
60
|
notifyMembers: boolean;
|
|
50
61
|
status: PlanMigrationStatus;
|
|
62
|
+
stage: PlanMigrationStage;
|
|
51
63
|
totalWorkspaces: number;
|
|
52
64
|
processedWorkspaces: number;
|
|
53
65
|
processedTenantIds: string[];
|
|
@@ -55,6 +67,12 @@ export declare class PlanMigration extends Table {
|
|
|
55
67
|
initiatedBy: string;
|
|
56
68
|
permissionDiff: PlanMigrationPermissionDiff;
|
|
57
69
|
featureDiff: PlanMigrationFeatureDiff;
|
|
70
|
+
fromPlanName: string;
|
|
71
|
+
toPlanName: string;
|
|
72
|
+
reason: PlanMigrationReason;
|
|
73
|
+
reconciledAt?: Date | null;
|
|
74
|
+
reconciledBy?: string | null;
|
|
75
|
+
reconciliationNote?: string | null;
|
|
58
76
|
createdAt: Date;
|
|
59
77
|
startedAt: Date | null;
|
|
60
78
|
completedAt: Date | null;
|
|
@@ -9,7 +9,9 @@ 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.PlanMigration = exports.PLAN_MIGRATION_STATUSES = exports.planMigrationsTableName = void 0;
|
|
12
|
+
exports.PlanMigration = exports.PLAN_MIGRATION_REASONS = exports.PLAN_MIGRATION_STAGES = exports.PLAN_MIGRATION_TENANT_STATUSES = exports.PLAN_MIGRATION_STATUSES = exports.planMigrationsTableName = void 0;
|
|
13
|
+
exports.planMigrationStageOf = planMigrationStageOf;
|
|
14
|
+
exports.isPlanMigrationExecuting = isPlanMigrationExecuting;
|
|
13
15
|
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
14
16
|
const constants_1 = require("@antelopejs/interface-dms/constants");
|
|
15
17
|
const tenants_table_1 = require("@antelopejs/interface-dms/db/tables/tenants.table");
|
|
@@ -24,6 +26,33 @@ exports.PLAN_MIGRATION_STATUSES = [
|
|
|
24
26
|
"partially_failed",
|
|
25
27
|
"reconciliation_required",
|
|
26
28
|
];
|
|
29
|
+
exports.PLAN_MIGRATION_TENANT_STATUSES = [
|
|
30
|
+
"running",
|
|
31
|
+
"succeeded",
|
|
32
|
+
"reconciliation_required",
|
|
33
|
+
"failed",
|
|
34
|
+
"kept",
|
|
35
|
+
];
|
|
36
|
+
exports.PLAN_MIGRATION_STAGES = [
|
|
37
|
+
"running",
|
|
38
|
+
"needs_attention",
|
|
39
|
+
"done",
|
|
40
|
+
];
|
|
41
|
+
const STAGE_BY_STATUS = {
|
|
42
|
+
pending: "running",
|
|
43
|
+
running: "running",
|
|
44
|
+
reconciliation_required: "needs_attention",
|
|
45
|
+
failed: "needs_attention",
|
|
46
|
+
completed: "done",
|
|
47
|
+
partially_failed: "done",
|
|
48
|
+
};
|
|
49
|
+
function planMigrationStageOf(status) {
|
|
50
|
+
return STAGE_BY_STATUS[status];
|
|
51
|
+
}
|
|
52
|
+
function isPlanMigrationExecuting(status) {
|
|
53
|
+
return planMigrationStageOf(status) === "running";
|
|
54
|
+
}
|
|
55
|
+
exports.PLAN_MIGRATION_REASONS = ["plan_retired"];
|
|
27
56
|
let PlanMigration = class PlanMigration extends interface_database_decorators_1.Table {
|
|
28
57
|
};
|
|
29
58
|
exports.PlanMigration = PlanMigration;
|
|
@@ -64,6 +93,11 @@ __decorate([
|
|
|
64
93
|
(0, interface_database_decorators_1.Field)("string"),
|
|
65
94
|
__metadata("design:type", String)
|
|
66
95
|
], PlanMigration.prototype, "status", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, interface_database_decorators_1.Index)(),
|
|
98
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], PlanMigration.prototype, "stage", void 0);
|
|
67
101
|
__decorate([
|
|
68
102
|
(0, interface_database_decorators_1.Field)("number"),
|
|
69
103
|
__metadata("design:type", Number)
|
|
@@ -94,6 +128,31 @@ __decorate([
|
|
|
94
128
|
(0, interface_database_decorators_1.Field)("any"),
|
|
95
129
|
__metadata("design:type", Object)
|
|
96
130
|
], PlanMigration.prototype, "featureDiff", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
133
|
+
__metadata("design:type", String)
|
|
134
|
+
], PlanMigration.prototype, "fromPlanName", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
137
|
+
__metadata("design:type", String)
|
|
138
|
+
], PlanMigration.prototype, "toPlanName", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
141
|
+
__metadata("design:type", String)
|
|
142
|
+
], PlanMigration.prototype, "reason", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, interface_database_decorators_1.Field)("date"),
|
|
145
|
+
__metadata("design:type", Object)
|
|
146
|
+
], PlanMigration.prototype, "reconciledAt", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
149
|
+
(0, interface_database_decorators_1.Relation)({ to: () => users_table_1.User }),
|
|
150
|
+
__metadata("design:type", Object)
|
|
151
|
+
], PlanMigration.prototype, "reconciledBy", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
154
|
+
__metadata("design:type", Object)
|
|
155
|
+
], PlanMigration.prototype, "reconciliationNote", void 0);
|
|
97
156
|
__decorate([
|
|
98
157
|
(0, interface_database_decorators_1.Index)(),
|
|
99
158
|
(0, interface_database_decorators_1.CreationTime)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planMigrations.table.js","sourceRoot":"","sources":["../../../src/db/tables/planMigrations.table.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"planMigrations.table.js","sourceRoot":"","sources":["../../../src/db/tables/planMigrations.table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgGA,oDAIC;AAGD,4DAEC;AAzGD,6FAOmD;AACnD,mEAAuE;AACvE,qFAA2E;AAC3E,sFAA4E;AAC5E,+CAA2D;AAE9C,QAAA,uBAAuB,GAAG,iBAAiB,CAAC;AAE5C,QAAA,uBAAuB,GAAG;IACrC,SAAS;IACT,SAAS;IACT,WAAW;IACX,QAAQ;IACR,kBAAkB;IAClB,yBAAyB;CACjB,CAAC;AA2BE,QAAA,8BAA8B,GAAG;IAC5C,SAAS;IACT,WAAW;IACX,yBAAyB;IACzB,QAAQ;IACR,MAAM;CACE,CAAC;AAwBE,QAAA,qBAAqB,GAAG;IACnC,SAAS;IACT,iBAAiB;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a;IADzB,IAAA,6CAAa,EAAC,+BAAuB,EAAE,4BAAgB,CAAC;GAC5C,aAAa,CA0FzB"}
|
|
@@ -9,13 +9,14 @@ 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.Plan = exports.PLAN_BILLING_MODES = exports.PLAN_INTERVALS = exports.PLAN_AUDIENCES = exports.plansTableName = void 0;
|
|
12
|
+
exports.Plan = exports.PLAN_UNLIMITED = exports.PLAN_BILLING_MODES = exports.PLAN_INTERVALS = exports.PLAN_AUDIENCES = exports.plansTableName = void 0;
|
|
13
13
|
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
14
14
|
const constants_1 = require("@antelopejs/interface-dms/constants");
|
|
15
15
|
exports.plansTableName = "plans";
|
|
16
16
|
exports.PLAN_AUDIENCES = ["any", "individual", "business"];
|
|
17
17
|
exports.PLAN_INTERVALS = ["month", "year"];
|
|
18
18
|
exports.PLAN_BILLING_MODES = ["flat", "seat"];
|
|
19
|
+
exports.PLAN_UNLIMITED = -1;
|
|
19
20
|
let Plan = class Plan extends interface_database_decorators_1.Table {
|
|
20
21
|
};
|
|
21
22
|
exports.Plan = Plan;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plans.table.js","sourceRoot":"","sources":["../../../src/db/tables/plans.table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6FAQmD;AACnD,mEAAuE;AAE1D,QAAA,cAAc,GAAG,OAAO,CAAC;AAEzB,QAAA,cAAc,GAAG,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,CAAU,CAAC;AAG5D,QAAA,cAAc,GAAG,CAAC,OAAO,EAAE,MAAM,CAAU,CAAC;AAG5C,QAAA,kBAAkB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAU,CAAC;
|
|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AC;;gDACa;AAGlC;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;uCACU;AAIlB;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;wCACW;AAInB;IAFP,IAAA,qCAAK,GAAE;IACP,IAAA,qCAAK,EAAC,SAAS,CAAC;;sCACS;AAGlB;IADP,IAAA,qCAAK,EAAC,KAAK,CAAC;;iDACiC;AAGtC;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;yCACmB;AAG3B;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;yCACmB;AAI3B;IAFP,IAAA,qCAAK,GAAE;IACP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;mCACM;AAId;IAFP,IAAA,qCAAK,GAAE;IACP,IAAA,qCAAK,EAAC,SAAS,CAAC;;sCACS;AAGlB;IADP,IAAA,qCAAK,EAAC,SAAS,CAAC;;uCACU;AAInB;IAFP,IAAA,4CAAY,GAAE;IACd,IAAA,qCAAK,EAAC,MAAM,CAAC;8BACK,IAAI;uCAAC;AAIhB;IAFP,IAAA,0CAAU,GAAE;IACZ,IAAA,qCAAK,EAAC,MAAM,CAAC;8BACK,IAAI;uCAAC;eA7Eb,IAAI;IADhB,IAAA,6CAAa,EAAC,sBAAc,EAAE,4BAAgB,CAAC;GACnC,IAAI,CA8EhB"}
|
|
@@ -23,6 +23,10 @@ export interface SegmentConditionGroup {
|
|
|
23
23
|
logical: SegmentLogical;
|
|
24
24
|
conditions: (SegmentCondition | SegmentConditionGroup | SegmentWorkspaceRef)[];
|
|
25
25
|
}
|
|
26
|
+
export interface SegmentCountPoint {
|
|
27
|
+
day: string;
|
|
28
|
+
count: number;
|
|
29
|
+
}
|
|
26
30
|
export declare class Segment extends Table {
|
|
27
31
|
_id: string;
|
|
28
32
|
name: string;
|
|
@@ -32,6 +36,8 @@ export declare class Segment extends Table {
|
|
|
32
36
|
revision: string;
|
|
33
37
|
membershipGeneration?: string;
|
|
34
38
|
lastEvaluatedAt: Date | null;
|
|
39
|
+
countHistory: SegmentCountPoint[];
|
|
40
|
+
lastEvaluationMs: number | null;
|
|
35
41
|
createdAt: Date;
|
|
36
42
|
updatedAt: Date;
|
|
37
43
|
}
|
|
@@ -77,6 +77,14 @@ __decorate([
|
|
|
77
77
|
(0, interface_database_decorators_1.Field)("date"),
|
|
78
78
|
__metadata("design:type", Object)
|
|
79
79
|
], Segment.prototype, "lastEvaluatedAt", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, interface_database_decorators_1.Field)("any"),
|
|
82
|
+
__metadata("design:type", Array)
|
|
83
|
+
], Segment.prototype, "countHistory", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, interface_database_decorators_1.Field)("number"),
|
|
86
|
+
__metadata("design:type", Object)
|
|
87
|
+
], Segment.prototype, "lastEvaluationMs", void 0);
|
|
80
88
|
__decorate([
|
|
81
89
|
(0, interface_database_decorators_1.CreationTime)(),
|
|
82
90
|
(0, interface_database_decorators_1.Field)("date"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segments.table.js","sourceRoot":"","sources":["../../../src/db/tables/segments.table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAyC;AACzC,sEAA8E;AAC9E,6FASmD;AACnD,mEAAuE;AAE1D,QAAA,iBAAiB,GAAG,UAAU,CAAC;AAE/B,QAAA,iBAAiB,GAAG;IAC/B,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,KAAK;IACL,UAAU;CACF,CAAC;AAGE,QAAA,eAAe,GAAG,CAAC,KAAK,EAAE,IAAI,CAAU,CAAC;AAGzC,QAAA,mBAAmB,GAAG,CAAC,KAAK,EAAE,KAAK,CAAU,CAAC;AAG9C,QAAA,oBAAoB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"segments.table.js","sourceRoot":"","sources":["../../../src/db/tables/segments.table.ts"],"names":[],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AAQ,CAAC;;+CACe;AAIvB;IAFP,QAAQ,EAAE;IACV,IAAA,qCAAK,EAAC,QAAQ,CAAC;;yCACS;AAIjB;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;qDACsB;AAI9B;IAFP,IAAA,qCAAK,GAAE;IACP,IAAA,qCAAK,EAAC,MAAM,CAAC;;gDACuB;AAQ7B;IADP,IAAA,qCAAK,EAAC,KAAK,CAAC;;6CAC6B;AAIlC;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;iDACwB;AAIhC;IAFP,IAAA,4CAAY,GAAE;IACd,IAAA,qCAAK,EAAC,MAAM,CAAC;8BACK,IAAI;0CAAC;AAIhB;IAFP,IAAA,0CAAU,GAAE;IACZ,IAAA,qCAAK,EAAC,MAAM,CAAC;8BACK,IAAI;0CAAC;kBA9Cb,OAAO;IADnB,IAAA,6CAAa,EAAC,yBAAiB,EAAE,4BAAgB,CAAC;GACtC,OAAO,CA+CnB"}
|
|
@@ -1,12 +1,59 @@
|
|
|
1
1
|
import { Table } from "@antelopejs/interface-database-decorators";
|
|
2
|
+
import type { PlanBillingMode, PlanInterval } from "./plans.table";
|
|
2
3
|
export declare const tenantBillingStateTableName = "tenant_billing_state";
|
|
3
4
|
export declare const BILLING_STATES: readonly ["free", "active", "trialing", "past_due", "suspended", "cancelled", "pending_payment"];
|
|
4
5
|
export type BillingState = (typeof BILLING_STATES)[number];
|
|
5
|
-
export declare
|
|
6
|
+
export declare const WORKSPACE_OWNER_STATUSES: readonly ["joined", "invited", "expired", "none"];
|
|
7
|
+
export type WorkspaceOwnerStatus = (typeof WORKSPACE_OWNER_STATUSES)[number];
|
|
8
|
+
export declare const WORKSPACE_RENEWAL_KINDS: readonly ["renews", "trial_ends", "free_until", "suspends", "suspended", "awaiting_payment", "deletes"];
|
|
9
|
+
export type WorkspaceRenewalKind = (typeof WORKSPACE_RENEWAL_KINDS)[number];
|
|
10
|
+
export interface WorkspaceDirectoryFields {
|
|
11
|
+
planId: string | null;
|
|
12
|
+
planName: string | null;
|
|
13
|
+
planInterval: PlanInterval | null;
|
|
14
|
+
planBillingMode: PlanBillingMode | null;
|
|
15
|
+
planUnitAmountMinor: number | null;
|
|
16
|
+
currency: string | null;
|
|
17
|
+
seats: number;
|
|
18
|
+
members: number;
|
|
19
|
+
pendingPlanId: string | null;
|
|
20
|
+
isComplimentary: boolean;
|
|
21
|
+
mrrMinor: number;
|
|
22
|
+
previousMrrMinor: number;
|
|
23
|
+
reportingMrr: number;
|
|
24
|
+
renewalKind: WorkspaceRenewalKind | null;
|
|
25
|
+
renewsAt: Date | null;
|
|
26
|
+
stateSince: Date | null;
|
|
27
|
+
ownerStatus: WorkspaceOwnerStatus;
|
|
28
|
+
ownerNeverJoined: boolean;
|
|
29
|
+
ownerName: string | null;
|
|
30
|
+
ownerEmail: string | null;
|
|
31
|
+
}
|
|
32
|
+
export declare class TenantBillingState extends Table implements WorkspaceDirectoryFields {
|
|
6
33
|
_id: string;
|
|
7
34
|
tenantId: string;
|
|
8
35
|
billingState: BillingState;
|
|
9
36
|
updatedAt: Date;
|
|
10
37
|
revision: string;
|
|
11
38
|
deletedAt: Date | null;
|
|
39
|
+
planId: string | null;
|
|
40
|
+
planName: string | null;
|
|
41
|
+
planInterval: PlanInterval | null;
|
|
42
|
+
planBillingMode: PlanBillingMode | null;
|
|
43
|
+
planUnitAmountMinor: number | null;
|
|
44
|
+
currency: string | null;
|
|
45
|
+
seats: number;
|
|
46
|
+
members: number;
|
|
47
|
+
pendingPlanId: string | null;
|
|
48
|
+
isComplimentary: boolean;
|
|
49
|
+
mrrMinor: number;
|
|
50
|
+
previousMrrMinor: number;
|
|
51
|
+
reportingMrr: number;
|
|
52
|
+
renewalKind: WorkspaceRenewalKind | null;
|
|
53
|
+
renewsAt: Date | null;
|
|
54
|
+
stateSince: Date | null;
|
|
55
|
+
ownerStatus: WorkspaceOwnerStatus;
|
|
56
|
+
ownerNeverJoined: boolean;
|
|
57
|
+
ownerName: string | null;
|
|
58
|
+
ownerEmail: string | null;
|
|
12
59
|
}
|
|
@@ -9,7 +9,7 @@ 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.TenantBillingState = exports.BILLING_STATES = exports.tenantBillingStateTableName = void 0;
|
|
12
|
+
exports.TenantBillingState = exports.WORKSPACE_RENEWAL_KINDS = exports.WORKSPACE_OWNER_STATUSES = exports.BILLING_STATES = exports.tenantBillingStateTableName = void 0;
|
|
13
13
|
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
14
14
|
const constants_1 = require("@antelopejs/interface-dms/constants");
|
|
15
15
|
const tenants_table_1 = require("@antelopejs/interface-dms/db/tables/tenants.table");
|
|
@@ -23,6 +23,21 @@ exports.BILLING_STATES = [
|
|
|
23
23
|
"cancelled",
|
|
24
24
|
"pending_payment",
|
|
25
25
|
];
|
|
26
|
+
exports.WORKSPACE_OWNER_STATUSES = [
|
|
27
|
+
"joined",
|
|
28
|
+
"invited",
|
|
29
|
+
"expired",
|
|
30
|
+
"none",
|
|
31
|
+
];
|
|
32
|
+
exports.WORKSPACE_RENEWAL_KINDS = [
|
|
33
|
+
"renews",
|
|
34
|
+
"trial_ends",
|
|
35
|
+
"free_until",
|
|
36
|
+
"suspends",
|
|
37
|
+
"suspended",
|
|
38
|
+
"awaiting_payment",
|
|
39
|
+
"deletes",
|
|
40
|
+
];
|
|
26
41
|
let TenantBillingState = class TenantBillingState extends interface_database_decorators_1.Table {
|
|
27
42
|
};
|
|
28
43
|
exports.TenantBillingState = TenantBillingState;
|
|
@@ -53,6 +68,90 @@ __decorate([
|
|
|
53
68
|
(0, interface_database_decorators_1.Field)("date"),
|
|
54
69
|
__metadata("design:type", Object)
|
|
55
70
|
], TenantBillingState.prototype, "deletedAt", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, interface_database_decorators_1.Index)(),
|
|
73
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
74
|
+
__metadata("design:type", Object)
|
|
75
|
+
], TenantBillingState.prototype, "planId", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
78
|
+
__metadata("design:type", Object)
|
|
79
|
+
], TenantBillingState.prototype, "planName", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], TenantBillingState.prototype, "planInterval", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
86
|
+
__metadata("design:type", Object)
|
|
87
|
+
], TenantBillingState.prototype, "planBillingMode", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, interface_database_decorators_1.Field)("number"),
|
|
90
|
+
__metadata("design:type", Object)
|
|
91
|
+
], TenantBillingState.prototype, "planUnitAmountMinor", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
94
|
+
__metadata("design:type", Object)
|
|
95
|
+
], TenantBillingState.prototype, "currency", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, interface_database_decorators_1.Field)("number"),
|
|
98
|
+
__metadata("design:type", Number)
|
|
99
|
+
], TenantBillingState.prototype, "seats", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, interface_database_decorators_1.Field)("number"),
|
|
102
|
+
__metadata("design:type", Number)
|
|
103
|
+
], TenantBillingState.prototype, "members", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, interface_database_decorators_1.Index)(),
|
|
106
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
107
|
+
__metadata("design:type", Object)
|
|
108
|
+
], TenantBillingState.prototype, "pendingPlanId", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, interface_database_decorators_1.Field)("boolean"),
|
|
111
|
+
__metadata("design:type", Boolean)
|
|
112
|
+
], TenantBillingState.prototype, "isComplimentary", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, interface_database_decorators_1.Index)(),
|
|
115
|
+
(0, interface_database_decorators_1.Field)("number"),
|
|
116
|
+
__metadata("design:type", Number)
|
|
117
|
+
], TenantBillingState.prototype, "mrrMinor", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, interface_database_decorators_1.Field)("number"),
|
|
120
|
+
__metadata("design:type", Number)
|
|
121
|
+
], TenantBillingState.prototype, "previousMrrMinor", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, interface_database_decorators_1.Field)("number"),
|
|
124
|
+
__metadata("design:type", Number)
|
|
125
|
+
], TenantBillingState.prototype, "reportingMrr", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
128
|
+
__metadata("design:type", Object)
|
|
129
|
+
], TenantBillingState.prototype, "renewalKind", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, interface_database_decorators_1.Index)(),
|
|
132
|
+
(0, interface_database_decorators_1.Field)("date"),
|
|
133
|
+
__metadata("design:type", Object)
|
|
134
|
+
], TenantBillingState.prototype, "renewsAt", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, interface_database_decorators_1.Field)("date"),
|
|
137
|
+
__metadata("design:type", Object)
|
|
138
|
+
], TenantBillingState.prototype, "stateSince", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
141
|
+
__metadata("design:type", String)
|
|
142
|
+
], TenantBillingState.prototype, "ownerStatus", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, interface_database_decorators_1.Field)("boolean"),
|
|
145
|
+
__metadata("design:type", Boolean)
|
|
146
|
+
], TenantBillingState.prototype, "ownerNeverJoined", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
149
|
+
__metadata("design:type", Object)
|
|
150
|
+
], TenantBillingState.prototype, "ownerName", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
153
|
+
__metadata("design:type", Object)
|
|
154
|
+
], TenantBillingState.prototype, "ownerEmail", void 0);
|
|
56
155
|
exports.TenantBillingState = TenantBillingState = __decorate([
|
|
57
156
|
(0, interface_database_decorators_1.RegisterTable)(exports.tenantBillingStateTableName, constants_1.CORE_SCHEMA_NAME)
|
|
58
157
|
], TenantBillingState);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenantBillingState.table.js","sourceRoot":"","sources":["../../../src/db/tables/tenantBillingState.table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6FAMmD;AACnD,mEAAuE;AACvE,qFAA2E;
|
|
1
|
+
{"version":3,"file":"tenantBillingState.table.js","sourceRoot":"","sources":["../../../src/db/tables/tenantBillingState.table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6FAMmD;AACnD,mEAAuE;AACvE,qFAA2E;AAG9D,QAAA,2BAA2B,GAAG,sBAAsB,CAAC;AAErD,QAAA,cAAc,GAAG;IAC5B,MAAM;IACN,QAAQ;IACR,UAAU;IACV,UAAU;IACV,WAAW;IACX,WAAW;IACX,iBAAiB;CACT,CAAC;AAIE,QAAA,wBAAwB,GAAG;IACtC,QAAQ;IACR,SAAS;IACT,SAAS;IACT,MAAM;CACE,CAAC;AASE,QAAA,uBAAuB,GAAG;IACrC,QAAQ;IACR,YAAY;IACZ,YAAY;IACZ,UAAU;IACV,WAAW;IACX,kBAAkB;IAClB,SAAS;CACD,CAAC;AA+CJ,IAAM,kBAAkB,GAAxB,MAAM,kBACX,SAAQ,qCAAK;CAwFd,CAAA;AAzFY,gDAAkB;AAKrB;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;+CACI;AAKZ;IAHP,IAAA,qCAAK,GAAE;IACP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C,MAAM,CAAC;;oDACgB;AAGtB;IADP,IAAA,qCAAK,EAAC,MAAM,CAAC;;sDACkB;AAGxB;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;uDAC0B;AAGlC;IADP,IAAA,qCAAK,EAAC,SAAS,CAAC;;4DACiB;AAG1B;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;qDACiB;AAGzB;IADP,IAAA,qCAAK,EAAC,QAAQ,CAAC;;sDACkB;6BAxFvB,kBAAkB;IAD9B,IAAA,6CAAa,EAAC,mCAA2B,EAAE,4BAAgB,CAAC;GAChD,kBAAkB,CAyF9B"}
|
|
@@ -36,6 +36,8 @@ export declare class TenantSubscription extends Table {
|
|
|
36
36
|
revision: string;
|
|
37
37
|
createdBy: string | null;
|
|
38
38
|
refundRequestedAt: Date | null;
|
|
39
|
+
deletionRequestedAt: Date | null;
|
|
40
|
+
deletionRequestedBy: string | null;
|
|
39
41
|
pastDueSince: Date | null;
|
|
40
42
|
freeUntil: Date | null;
|
|
41
43
|
isComplimentary: boolean;
|
|
@@ -92,6 +92,7 @@ __decorate([
|
|
|
92
92
|
__metadata("design:type", Object)
|
|
93
93
|
], TenantSubscription.prototype, "currentPeriodEnd", void 0);
|
|
94
94
|
__decorate([
|
|
95
|
+
(0, interface_database_decorators_1.Index)({ crossInstance: true }),
|
|
95
96
|
(0, interface_database_decorators_1.Field)("string"),
|
|
96
97
|
(0, interface_database_decorators_1.Relation)({ to: () => plans_table_1.Plan }),
|
|
97
98
|
__metadata("design:type", Object)
|
|
@@ -117,6 +118,14 @@ __decorate([
|
|
|
117
118
|
(0, interface_database_decorators_1.Field)("date"),
|
|
118
119
|
__metadata("design:type", Object)
|
|
119
120
|
], TenantSubscription.prototype, "refundRequestedAt", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, interface_database_decorators_1.Field)("date"),
|
|
123
|
+
__metadata("design:type", Object)
|
|
124
|
+
], TenantSubscription.prototype, "deletionRequestedAt", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, interface_database_decorators_1.Field)("string"),
|
|
127
|
+
__metadata("design:type", Object)
|
|
128
|
+
], TenantSubscription.prototype, "deletionRequestedBy", void 0);
|
|
120
129
|
__decorate([
|
|
121
130
|
(0, exports.DunningClock)(),
|
|
122
131
|
(0, interface_database_decorators_1.Index)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenantSubscriptions.table.js","sourceRoot":"","sources":["../../../src/db/tables/tenantSubscriptions.table.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sEAA8E;AAC9E,6FAUmD;AACnD,mEAAyE;AACzE,sFAA4E;AAC5E,+CAAqC;AAExB,QAAA,4BAA4B,GAAG,sBAAsB,CAAC;AAEtD,QAAA,4BAA4B,GAAG;IAC1C,iBAAiB;IACjB,QAAQ;IACR,UAAU;IACV,UAAU;IACV,WAAW;IACX,WAAW;CACH,CAAC;AA4BX,MAAM,eAAe,GAA6B,UAAU,CAAC;AAO7D,MAAM,oBAAqB,SAAQ,wCAAQ;IACzC,MAAM,CAAC,MAAyB,EAAE,KAAa;QAC7C,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS;YAAE,OAAO;QACxC,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,SAAS;YAAE,OAAO;QACxC,IAAI,MAAM,CAAC,MAAM,KAAK,eAAe,EAAE,CAAC;YACtC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;QACvB,CAAC;IACH,CAAC;CACF;AAoBY,QAAA,YAAY,GAAG,IAAA,kCAAqB,EAAC,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE;IACvE,8CAAsC,CACrC,MAAM,CAAC,WAA+B,EACtC,oBAAoB,EACpB,WAAqB,EACrB,EAAE,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAII,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,qCAAK;
|
|
1
|
+
{"version":3,"file":"tenantSubscriptions.table.js","sourceRoot":"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,QAAQ,CAAC;;+DAC2B;AAQnC;IAHP,IAAA,oBAAY,GAAE;IACd,IAAA,qCAAK,GAAE;IACP,IAAA,qCAAK,EAAC,MAAM,CAAC;;wDACoB;AAI1B;IAFP,IAAA,qCAAK,GAAE;IACP,IAAA,qCAAK,EAAC,MAAM,CAAC;;qDACiB;AAIvB;IADP,IAAA,qCAAK,EAAC,SAAS,CAAC;;2DACgB;AAIzB;IADP,IAAA,qCAAK,EAAC,MAAM,CAAC;;8DAC2B;AAIjC;IADP,IAAA,qCAAK,EAAC,KAAK,CAAC;;4DAC+B;AAIpC;IAFP,IAAA,4CAAY,GAAE;IACd,IAAA,qCAAK,EAAC,MAAM,CAAC;8BACK,IAAI;qDAAC;AAKhB;IAHP,IAAA,0CAAU,GAAE;IACZ,IAAA,qCAAK,GAAE;IACP,IAAA,qCAAK,EAAC,MAAM,CAAC;8BACK,IAAI;qDAAC;6BA7Gb,kBAAkB;IAD9B,IAAA,6CAAa,EAAC,oCAA4B,EAAE,8BAAkB,CAAC;GACnD,kBAAkB,CA8G9B"}
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ModuleInfo, PageInfo } from "@antelopejs/interface-dms/page";
|
|
2
2
|
interface SaasModuleDefinition {
|
|
3
3
|
fullId: string;
|
|
4
4
|
fullSlug: string;
|
|
5
5
|
registration: ModuleInfo;
|
|
6
6
|
}
|
|
7
|
-
interface WorkspaceSettingsCategoryDefinition extends Omit<MenuOptions, "category" | "module"> {
|
|
8
|
-
id: string;
|
|
9
|
-
fullId: string;
|
|
10
|
-
fullSlug: string;
|
|
11
|
-
}
|
|
12
7
|
export declare const MODULES_ROOT_DEFINITION: PageInfo;
|
|
13
|
-
export declare const SETTINGS_ROOT_DEFINITION: PageInfo;
|
|
14
8
|
export declare const SAAS_MODULE_ID = "saas";
|
|
15
9
|
export declare const SAAS_MODULE_DEFINITION: SaasModuleDefinition;
|
|
16
|
-
export declare const WORKSPACE_SETTINGS_CATEGORY_DEFINITION: WorkspaceSettingsCategoryDefinition;
|
|
17
10
|
export {};
|
package/dist/page-definitions.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SAAS_MODULE_DEFINITION = exports.SAAS_MODULE_ID = exports.MODULES_ROOT_DEFINITION = void 0;
|
|
4
4
|
exports.MODULES_ROOT_DEFINITION = {
|
|
5
5
|
id: "modules",
|
|
6
6
|
fullId: "modules",
|
|
@@ -19,23 +19,6 @@ exports.MODULES_ROOT_DEFINITION = {
|
|
|
19
19
|
authOnly: undefined,
|
|
20
20
|
bypassTenantAccessGate: undefined,
|
|
21
21
|
};
|
|
22
|
-
exports.SETTINGS_ROOT_DEFINITION = {
|
|
23
|
-
id: "settings",
|
|
24
|
-
fullId: "settings",
|
|
25
|
-
fullSlug: "/settings",
|
|
26
|
-
layoutUrl: "/settings/pagelayout",
|
|
27
|
-
category: undefined,
|
|
28
|
-
displayName: "$page.settings.title",
|
|
29
|
-
description: "$page.settings.intro",
|
|
30
|
-
urlSlug: "/settings",
|
|
31
|
-
icon: "i-ph-gear",
|
|
32
|
-
order: 3,
|
|
33
|
-
noComponentPermissions: true,
|
|
34
|
-
hidden: undefined,
|
|
35
|
-
publicAccess: undefined,
|
|
36
|
-
authOnly: undefined,
|
|
37
|
-
bypassTenantAccessGate: undefined,
|
|
38
|
-
};
|
|
39
22
|
exports.SAAS_MODULE_ID = "saas";
|
|
40
23
|
exports.SAAS_MODULE_DEFINITION = {
|
|
41
24
|
fullId: `${exports.MODULES_ROOT_DEFINITION.fullId}.${exports.SAAS_MODULE_ID}`,
|
|
@@ -48,13 +31,4 @@ exports.SAAS_MODULE_DEFINITION = {
|
|
|
48
31
|
landingPage: "dashboard",
|
|
49
32
|
},
|
|
50
33
|
};
|
|
51
|
-
exports.WORKSPACE_SETTINGS_CATEGORY_DEFINITION = {
|
|
52
|
-
id: "workspace",
|
|
53
|
-
fullId: `${exports.SETTINGS_ROOT_DEFINITION.fullId}.workspace`,
|
|
54
|
-
fullSlug: `${exports.SETTINGS_ROOT_DEFINITION.fullSlug}/workspace`,
|
|
55
|
-
displayName: "$saas.workspace.settings.title",
|
|
56
|
-
urlSlug: "workspace",
|
|
57
|
-
icon: "i-ph-buildings",
|
|
58
|
-
order: 2,
|
|
59
|
-
};
|
|
60
34
|
//# sourceMappingURL=page-definitions.js.map
|