@antelopejs/dms-saas 0.11.0 → 0.12.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 +12 -12
- package/dist/data-api/platformOwner/admin-user-invoices.d.ts +1 -1
- package/dist/data-api/platformOwner/admin-user-workspaces.d.ts +1 -1
- package/dist/data-api/platformOwner/credit-notes.d.ts +14 -1
- package/dist/data-api/platformOwner/features.d.ts +15 -2
- package/dist/data-api/platformOwner/invitations.d.ts +1 -1
- package/dist/data-api/platformOwner/invoices.d.ts +7 -1
- package/dist/data-api/platformOwner/members.d.ts +1 -1
- package/dist/data-api/platformOwner/plan-migrations.d.ts +1 -1
- package/dist/data-api/platformOwner/plans.d.ts +8 -2
- package/dist/data-api/platformOwner/plans.js +1 -1
- package/dist/data-api/platformOwner/plans.js.map +1 -1
- package/dist/data-api/platformOwner/segments.d.ts +14 -1
- package/dist/data-api/platformOwner/users.d.ts +14 -1
- package/dist/data-api/platformOwner/workspaces.d.ts +1 -1
- package/dist/data-api/tenant/tenant-invoices.d.ts +1 -1
- package/dist/invoice-line-items/recovery/task.model.d.ts +3 -3
- package/dist/operator-actions/db/lifecycle-delivery.model.d.ts +3 -3
- package/dist/operator-actions/db/operator-action.model.d.ts +3 -3
- package/dist/routes/platformOwner/plan-migration-export.js +4 -1
- package/dist/routes/platformOwner/plan-migration-export.js.map +1 -1
- package/dist/routes/platformOwner/plans.d.ts +1 -1
- package/dist/routes/platformOwner/platform-notes.d.ts +2 -1
- package/dist/routes/platformOwner/platform-notes.js +1 -1
- package/dist/routes/platformOwner/platform-notes.js.map +1 -1
- package/dist/routes/platformOwner/segments-export.js +4 -1
- package/dist/routes/platformOwner/segments-export.js.map +1 -1
- package/dist/routes/tenant/data-export.d.ts +2 -1
- package/dist/routes/tenant/data-export.js +1 -1
- package/dist/routes/tenant/data-export.js.map +1 -1
- package/dist/routes/tenant/tenant-billing.js +2 -1
- package/dist/routes/tenant/tenant-billing.js.map +1 -1
- package/dist/upcoming-invoice/db/preview-cache.model.d.ts +3 -3
- package/dist/utils/pagination.d.ts +2 -1
- package/dist/utils/pagination.js +3 -1
- package/dist/utils/pagination.js.map +1 -1
- package/dist/utils/row-instance.d.ts +2 -1
- package/dist/utils/row-instance.js.map +1 -1
- package/dist/utils/workspace-records.js.map +1 -1
- package/dist/workspaces/db/provisioning-attempt.model.d.ts +3 -3
- package/dist/workspaces/db/trial-identity.model.d.ts +3 -3
- package/frontend-vue/app/build/PayInvoicePanel.vue +4 -4
- package/frontend-vue/app/build/PlanChangeReview.vue +4 -4
- package/frontend-vue/app/build/PlanFeatureValueInput.vue +2 -2
- package/frontend-vue/app/build/components/FormFieldRow.vue +1 -1
- package/frontend-vue/app/build/components/RetirePlanDiff.vue +2 -2
- package/frontend-vue/app/build/public/OtherWorkspaces.vue +2 -2
- package/frontend-vue/app/build/public/PricingComparison.vue +2 -2
- package/frontend-vue/app/build/public/PricingFaq.vue +2 -2
- package/frontend-vue/app/build/public/PublicStage.vue +3 -3
- package/frontend-vue/app/build/public/RegistrationPlanCard.vue +5 -5
- package/frontend-vue/app/build/public/legal-html.ts +146 -0
- package/frontend-vue/app/build/workspace-detail/ComplimentaryDialog.vue +3 -3
- package/frontend-vue/app/build/workspace-detail/CreditDialog.vue +2 -2
- package/frontend-vue/app/build/workspace-detail/UpgradeDialog.vue +1 -1
- package/frontend-vue/app/components/BillingIdentityFields.vue +2 -2
- package/frontend-vue/app/components/DataExport.vue +8 -8
- package/frontend-vue/app/components/DataExportHistory.vue +2 -2
- package/frontend-vue/app/components/IssueCreditNoteModal.vue +2 -2
- package/frontend-vue/app/components/LegalLayout.vue +33 -30
- package/frontend-vue/app/components/PastDueAlert.vue +3 -3
- package/frontend-vue/app/components/PaymentMethodCard.vue +2 -2
- package/frontend-vue/app/components/PlanCard.vue +2 -2
- package/frontend-vue/app/components/PlanCardPublic.vue +3 -3
- package/frontend-vue/app/components/PlanEditorPreview.vue +4 -4
- package/frontend-vue/app/components/PlanUpgradeModal.vue +4 -4
- package/frontend-vue/app/components/PlatformNotes.vue +2 -2
- package/frontend-vue/app/components/Pricing.vue +10 -8
- package/frontend-vue/app/components/RefundButton.vue +3 -3
- package/frontend-vue/app/components/Register.vue +4 -2
- package/frontend-vue/app/components/RegistrationClosed.vue +1 -1
- package/frontend-vue/app/components/RetirePlanModal.vue +6 -6
- package/frontend-vue/app/components/SeatQuotaBanner.vue +8 -8
- package/frontend-vue/app/components/SegmentLivePreview.vue +4 -4
- package/frontend-vue/app/components/TenantBillingForm.vue +2 -2
- package/frontend-vue/app/components/TenantPlanCard.vue +8 -8
- package/frontend-vue/app/components/UserPlatformRoleCard.vue +2 -2
- package/frontend-vue/app/components/UserSegmentMatches.vue +2 -2
- package/frontend-vue/app/components/WorkspaceAdminCreateModal.vue +2 -2
- package/frontend-vue/app/components/WorkspaceInvitationLink.vue +1 -1
- package/frontend-vue/app/components/WorkspaceOperatorActions.vue +2 -2
- package/frontend-vue/app/components/WorkspaceSuspended.vue +9 -9
- package/frontend-vue/app/custom-pages/auth/no-workspace.vue +3 -3
- package/frontend-vue/build/backend-boundary.ts +8 -3
- package/frontend-vue/eslint.config.mjs +0 -1
- package/frontend-vue/package.json +1 -1
- package/package.json +18 -15
|
@@ -2,6 +2,7 @@ import { type RequestContext } from "@antelopejs/interface-api";
|
|
|
2
2
|
import type { User } from "@antelopejs/interface-dms/auth/db";
|
|
3
3
|
import { type ExportJobStatus, type ExportJobSummary, type ExportJobTicket } from "@antelopejs/interface-dms/base";
|
|
4
4
|
import { type Page } from "../../utils";
|
|
5
|
+
import type { QueryParameterValue } from "../../utils/query-parameter";
|
|
5
6
|
interface ExportHistoryPage extends Page<ExportJobSummary> {
|
|
6
7
|
page: number;
|
|
7
8
|
pageSize: number;
|
|
@@ -9,7 +10,7 @@ interface ExportHistoryPage extends Page<ExportJobSummary> {
|
|
|
9
10
|
declare const SaasDataExportController_base: import("@antelopejs/interface-api").ControllerClass<object>;
|
|
10
11
|
export declare class SaasDataExportController extends SaasDataExportController_base {
|
|
11
12
|
start(user: User, ctx: RequestContext): Promise<ExportJobTicket>;
|
|
12
|
-
history(user: User, ctx: RequestContext, page
|
|
13
|
+
history(user: User, ctx: RequestContext, page: QueryParameterValue, pageSize: QueryParameterValue): Promise<ExportHistoryPage>;
|
|
13
14
|
status(user: User, ctx: RequestContext, jobId: string): Promise<ExportJobStatus>;
|
|
14
15
|
download(user: User, ctx: RequestContext, jobId: string): Promise<void>;
|
|
15
16
|
}
|
|
@@ -92,7 +92,7 @@ __decorate([
|
|
|
92
92
|
__param(2, (0, interface_api_1.Parameter)("page", "query")),
|
|
93
93
|
__param(3, (0, interface_api_1.Parameter)("pageSize", "query")),
|
|
94
94
|
__metadata("design:type", Function),
|
|
95
|
-
__metadata("design:paramtypes", [Function, Object,
|
|
95
|
+
__metadata("design:paramtypes", [Function, Object, Object, Object]),
|
|
96
96
|
__metadata("design:returntype", Promise)
|
|
97
97
|
], SaasDataExportController.prototype, "history", null);
|
|
98
98
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-export.js","sourceRoot":"","sources":["../../../src/routes/tenant/data-export.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAOmC;AACnC,uEAAwD;AACxD,6DAAmE;AACnE,gEAAoE;AACpE,6EAA8E;AAE9E,yDAWwC;AACxC,gEAAuE;AACvE,uCAMqB;
|
|
1
|
+
{"version":3,"file":"data-export.js","sourceRoot":"","sources":["../../../src/routes/tenant/data-export.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAOmC;AACnC,uEAAwD;AACxD,6DAAmE;AACnE,gEAAoE;AACpE,6EAA8E;AAE9E,yDAWwC;AACxC,gEAAuE;AACvE,uCAMqB;AAGrB,MAAM,iBAAiB,GAAG,yBAAyB,CAAC;AACpD,MAAM,sBAAsB,GAAG,kBAAkB,CAAC;AAMlD,MAAM,mBAAmB,GAAe;IACtC,eAAe,EAAE,EAAE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WAAA,IAAA,wBAAe,GAAE,CAAA;IACjB,WAAA,IAAA,uBAAO,GAAE,CAAA;IACT,WAAA,IAAA,yBAAS,EAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC1B,WAAA,IAAA,yBAAS,EAAC,UAAU,EAAE,OAAO,CAAC,CAAA;;;;uDAehC;AAGK;IADL,IAAA,mBAAG,EAAC,gBAAgB,CAAC;IAEnB,WAAA,IAAA,wBAAe,GAAE,CAAA;IACjB,WAAA,IAAA,uBAAO,GAAE,CAAA;IACT,WAAA,IAAA,yBAAS,EAAC,OAAO,CAAC,CAAA;;;;sDAGpB;AAGK;IADL,IAAA,mBAAG,EAAC,kBAAkB,CAAC;IAErB,WAAA,IAAA,wBAAe,GAAE,CAAA;IACjB,WAAA,IAAA,uBAAO,GAAE,CAAA;IACT,WAAA,IAAA,yBAAS,EAAC,OAAO,CAAC,CAAA;;;;wDAGpB"}
|
|
@@ -93,7 +93,8 @@ class SaasTenantBillingController extends (0, interface_api_1.Controller)("/api/
|
|
|
93
93
|
if (status === stored)
|
|
94
94
|
return info;
|
|
95
95
|
await billingModel.update(info._id, { vatVerificationStatus: status });
|
|
96
|
-
|
|
96
|
+
info.vatVerificationStatus = status;
|
|
97
|
+
return info;
|
|
97
98
|
}
|
|
98
99
|
async getBillingInfo(_user, ctx) {
|
|
99
100
|
const tenantId = (0, request_tenant_1.getRequestTenantId)(ctx);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant-billing.js","sourceRoot":"","sources":["../../../src/routes/tenant/tenant-billing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DAOmC;AACnC,uEAAwD;AACxD,6FAAqE;AACrE,6DAG0C;AAC1C,6EAA8E;AAE9E,iCASkB;AAClB,wEAM2C;AAC3C,kFAAiF;AACjF,kEAA6E;AAC7E,yCAMsB;AACtB,uCAAiD;AACjD,6DAA4D;AAE5D,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,oBA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AAC,eAAe,CAAC;IAElB,WAAA,IAAA,uBAAO,GAAE,CAAA;IACT,WAAA,IAAA,wBAAe,EAAC,EAAE,sBAAsB,EAAE,IAAI,EAAE,CAAC,CAAA;IACjD,WAAA,IAAA,wBAAQ,GAAE,CAAA;;;;oEAwBZ"}
|
|
@@ -15,9 +15,9 @@ declare const UpcomingInvoicePreviewCacheModel_base: {
|
|
|
15
15
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
16
16
|
readonly table: import("@antelopejs/interface-database").Table<UpcomingInvoicePreviewEntry>;
|
|
17
17
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
18
|
-
get(id: string):
|
|
19
|
-
getBy(index: keyof UpcomingInvoicePreviewEntry, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]):
|
|
20
|
-
getAll():
|
|
18
|
+
get(id: string): Promise<UpcomingInvoicePreviewEntry | undefined>;
|
|
19
|
+
getBy(index: keyof UpcomingInvoicePreviewEntry, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): Promise<UpcomingInvoicePreviewEntry[]>;
|
|
20
|
+
getAll(): Promise<UpcomingInvoicePreviewEntry[]>;
|
|
21
21
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UpcomingInvoicePreviewEntry> | import("@antelopejs/interface-database-decorators").DeepPartial<UpcomingInvoicePreviewEntry>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
22
22
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<UpcomingInvoicePreviewEntry>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
23
23
|
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<UpcomingInvoicePreviewEntry> & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { QueryParameterValue } from "./query-parameter";
|
|
2
|
+
export declare function parsePositiveInt(value: QueryParameterValue): number | undefined;
|
|
2
3
|
export interface PageRequest {
|
|
3
4
|
page?: number;
|
|
4
5
|
pageSize?: number;
|
package/dist/utils/pagination.js
CHANGED
|
@@ -8,7 +8,9 @@ const MIN_PAGE_SIZE = 1;
|
|
|
8
8
|
const LOOKAHEAD = 1;
|
|
9
9
|
const POSITIVE_INT_PATTERN = /^\d+$/;
|
|
10
10
|
function parsePositiveInt(value) {
|
|
11
|
-
if (value === undefined ||
|
|
11
|
+
if (value === undefined ||
|
|
12
|
+
value === true ||
|
|
13
|
+
!POSITIVE_INT_PATTERN.test(value)) {
|
|
12
14
|
return undefined;
|
|
13
15
|
}
|
|
14
16
|
const parsed = Number.parseInt(value, 10);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../src/utils/pagination.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../src/utils/pagination.ts"],"names":[],"mappings":";;AAUA,4CAYC;AAyCD,8CAgBC;AAQD,8BAMC;AA3FD,MAAM,UAAU,GAAG,CAAC,CAAC;AACrB,MAAM,aAAa,GAAG,CAAC,CAAC;AAExB,MAAM,SAAS,GAAG,CAAC,CAAC;AAGpB,MAAM,oBAAoB,GAAG,OAAO,CAAC;AAErC,SAAgB,gBAAgB,CAC9B,KAA0B;IAE1B,IACE,KAAK,KAAK,SAAS;QACnB,KAAK,KAAK,IAAI;QACd,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,EACjC,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAC1C,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACpE,CAAC;AAyCD,SAAgB,iBAAiB,CAC/B,OAAoB,EACpB,MAAkB;IAElB,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CACvB,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,IAAI,MAAM,CAAC,eAAe,EAAE,aAAa,CAAC,EACnE,MAAM,CAAC,WAAW,CACnB,CAAC;IACF,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,IAAI,UAAU,EAAE,UAAU,CAAC,CAAC;IAC9D,MAAM,MAAM,GAAG,CAAC,IAAI,GAAG,UAAU,CAAC,GAAG,QAAQ,CAAC;IAC9C,OAAO;QACL,IAAI;QACJ,QAAQ;QACR,MAAM;QACN,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,QAAQ,GAAG,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC;KAC1E,CAAC;AACJ,CAAC;AAQD,SAAgB,SAAS,CAAI,IAAkB,EAAE,MAAkB;IACjE,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC;IAC5C,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;QACrC,OAAO,EAAE,IAAI,CAAC,MAAM,GAAG,GAAG;KAC3B,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Table } from "@antelopejs/interface-database-decorators";
|
|
2
|
+
export declare function getRowInstance(row: Table): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"row-instance.js","sourceRoot":"","sources":["../../src/utils/row-instance.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"row-instance.js","sourceRoot":"","sources":["../../src/utils/row-instance.ts"],"names":[],"mappings":";;AAMA,wCAIC;AATD,yDAA8C;AAE9C,MAAM,cAAc,GAAG,WAAW,CAAC;AAGnC,SAAgB,cAAc,CAAC,GAAU;IACvC,MAAM,QAAQ,GAAG,cAAc,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACzE,IAAI,CAAC,IAAA,2BAAQ,EAAC,QAAQ,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,cAAc,cAAc,EAAE,CAAC,CAAC;IACzE,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-records.js","sourceRoot":"","sources":["../../src/utils/workspace-records.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"workspace-records.js","sourceRoot":"","sources":["../../src/utils/workspace-records.ts"],"names":[],"mappings":";;AA4DA,oDA4BC;AAxFD,uEAAgE;AAChE,6FAGmD;AACnD,qDAAiE;AACjE,8BAOe;AACf,iDAAgD;AAchD,SAAS,gBAAgB,CACvB,IAAW,EACX,IAAiC;IAEjC,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,MAAM,KAAK,GAAG,IAAI,GAAG,EAAa,CAAC;IACnC,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,MAAM,QAAQ,GAAG,IAAA,6BAAc,EAAC,GAAG,CAAC,CAAC;QACrC,IAAI,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC;YAAE,SAAS;QACjC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACnB,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;QACxB,IAAI,KAAK,KAAK,SAAS;YAAE,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IACtD,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,gBAAgB,CAAkB,IAAS;IAClD,MAAM,MAAM,GAAG,IAAI,GAAG,EAAe,CAAC;IACtC,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,MAAM,QAAQ,GAAG,IA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EAAE,CACtD,2BAAsB,CAAC,YAAY,CAAC,GAAG,CAAC,CACzC;QACD,aAAa;QACb,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,CAAC;KACrC,CAAC;AACJ,CAAC"}
|
|
@@ -3,9 +3,9 @@ declare const ProvisioningAttemptModel_base: {
|
|
|
3
3
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
4
4
|
readonly table: import("@antelopejs/interface-database").Table<ProvisioningAttempt>;
|
|
5
5
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
6
|
-
get(id: string):
|
|
7
|
-
getBy(index: keyof ProvisioningAttempt, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]):
|
|
8
|
-
getAll():
|
|
6
|
+
get(id: string): Promise<ProvisioningAttempt | undefined>;
|
|
7
|
+
getBy(index: keyof ProvisioningAttempt, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): Promise<ProvisioningAttempt[]>;
|
|
8
|
+
getAll(): Promise<ProvisioningAttempt[]>;
|
|
9
9
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<ProvisioningAttempt> | import("@antelopejs/interface-database-decorators").DeepPartial<ProvisioningAttempt>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
10
10
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<ProvisioningAttempt>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
11
11
|
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<ProvisioningAttempt> & {
|
|
@@ -4,9 +4,9 @@ declare const TrialIdentityModel_base: {
|
|
|
4
4
|
new (database: import("@antelopejs/interface-database").SchemaInstance<any>): {
|
|
5
5
|
readonly table: import("@antelopejs/interface-database").Table<TrialIdentity>;
|
|
6
6
|
readonly database: import("@antelopejs/interface-database").SchemaInstance<any>;
|
|
7
|
-
get(id: string):
|
|
8
|
-
getBy(index: keyof TrialIdentity, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]):
|
|
9
|
-
getAll():
|
|
7
|
+
get(id: string): Promise<TrialIdentity | undefined>;
|
|
8
|
+
getBy(index: keyof TrialIdentity, ...keys: import("@antelopejs/interface-database-decorators").IndexKey[]): Promise<TrialIdentity[]>;
|
|
9
|
+
getAll(): Promise<TrialIdentity[]>;
|
|
10
10
|
insert(obj: import("@antelopejs/interface-database-decorators").DeepPartial<TrialIdentity> | import("@antelopejs/interface-database-decorators").DeepPartial<TrialIdentity>[], options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<string[]>;
|
|
11
11
|
update(id: string, obj: import("@antelopejs/interface-database-decorators").DeepPartial<TrialIdentity>, options?: import("@antelopejs/interface-database-decorators").ValidateOptions): Promise<number>;
|
|
12
12
|
update(obj: import("@antelopejs/interface-database-decorators").DeepPartial<TrialIdentity> & {
|
|
@@ -100,7 +100,7 @@ function confirm(): void {
|
|
|
100
100
|
|
|
101
101
|
<template v-else-if="status">
|
|
102
102
|
<div role="radiogroup" class="flex flex-col gap-2">
|
|
103
|
-
<
|
|
103
|
+
<DmsCardPanel
|
|
104
104
|
v-if="card"
|
|
105
105
|
as="button"
|
|
106
106
|
type="button"
|
|
@@ -120,8 +120,8 @@ function confirm(): void {
|
|
|
120
120
|
</p>
|
|
121
121
|
</div>
|
|
122
122
|
</div>
|
|
123
|
-
</
|
|
124
|
-
<
|
|
123
|
+
</DmsCardPanel>
|
|
124
|
+
<DmsCardPanel
|
|
125
125
|
v-if="canPayOnStripe"
|
|
126
126
|
as="button"
|
|
127
127
|
type="button"
|
|
@@ -143,7 +143,7 @@ function confirm(): void {
|
|
|
143
143
|
</p>
|
|
144
144
|
</div>
|
|
145
145
|
</div>
|
|
146
|
-
</
|
|
146
|
+
</DmsCardPanel>
|
|
147
147
|
</div>
|
|
148
148
|
|
|
149
149
|
<p v-if="!card && !canPayOnStripe" class="text-muted text-sm">
|
|
@@ -253,7 +253,7 @@ onMounted(() => void loadPreview())
|
|
|
253
253
|
</div>
|
|
254
254
|
|
|
255
255
|
<div class="grid gap-2 sm:grid-cols-2">
|
|
256
|
-
<
|
|
256
|
+
<DmsCardPanel :padded="true">
|
|
257
257
|
<p class="text-muted text-xs">
|
|
258
258
|
{{
|
|
259
259
|
isDowngrade
|
|
@@ -263,14 +263,14 @@ onMounted(() => void loadPreview())
|
|
|
263
263
|
</p>
|
|
264
264
|
<p class="font-semibold">{{ currentPlanName ?? '—' }}</p>
|
|
265
265
|
<p class="text-muted text-sm">{{ priceOf(currentPlan) }}</p>
|
|
266
|
-
</
|
|
267
|
-
<
|
|
266
|
+
</DmsCardPanel>
|
|
267
|
+
<DmsCardPanel :padded="true" selected>
|
|
268
268
|
<p v-if="targetEyebrow" class="text-muted text-xs">
|
|
269
269
|
{{ targetEyebrow }}
|
|
270
270
|
</p>
|
|
271
271
|
<p class="font-semibold">{{ plan.name }}</p>
|
|
272
272
|
<p class="text-muted text-sm">{{ priceOf(plan) }}</p>
|
|
273
|
-
</
|
|
273
|
+
</DmsCardPanel>
|
|
274
274
|
</div>
|
|
275
275
|
|
|
276
276
|
<div
|
|
@@ -95,7 +95,7 @@ function setBoolean(next: string | number | undefined): void {
|
|
|
95
95
|
v-if="valueType === 'number'"
|
|
96
96
|
class="flex flex-wrap items-center gap-2"
|
|
97
97
|
>
|
|
98
|
-
<
|
|
98
|
+
<DmsSegmentedControl
|
|
99
99
|
:model-value="mode"
|
|
100
100
|
:items="numberModes"
|
|
101
101
|
:disabled="disabled"
|
|
@@ -120,7 +120,7 @@ function setBoolean(next: string | number | undefined): void {
|
|
|
120
120
|
}}</span>
|
|
121
121
|
</div>
|
|
122
122
|
</div>
|
|
123
|
-
<
|
|
123
|
+
<DmsSegmentedControl
|
|
124
124
|
v-else-if="valueType === 'boolean'"
|
|
125
125
|
:model-value="modelValue === true ? 'on' : 'off'"
|
|
126
126
|
:items="booleanModes"
|
|
@@ -17,7 +17,7 @@ interface FormFieldRowProps {
|
|
|
17
17
|
/** Already translated; marks the control invalid. */
|
|
18
18
|
error?: string | null
|
|
19
19
|
required?: boolean
|
|
20
|
-
/** The card's side inset: rows of a `
|
|
20
|
+
/** The card's side inset: rows of a `DmsSectionPanel`. */
|
|
21
21
|
inset?: boolean
|
|
22
22
|
/**
|
|
23
23
|
* Whether the label names the control the default slot binds the id to;
|
|
@@ -78,7 +78,7 @@ function memberCap(value: number): string {
|
|
|
78
78
|
</script>
|
|
79
79
|
|
|
80
80
|
<template>
|
|
81
|
-
<
|
|
81
|
+
<DmsCardPanel :padded="false">
|
|
82
82
|
<div
|
|
83
83
|
class="border-default flex items-center justify-between border-b px-4 py-2.5"
|
|
84
84
|
>
|
|
@@ -174,5 +174,5 @@ function memberCap(value: number): string {
|
|
|
174
174
|
</span>
|
|
175
175
|
</li>
|
|
176
176
|
</ul>
|
|
177
|
-
</
|
|
177
|
+
</DmsCardPanel>
|
|
178
178
|
</template>
|
|
@@ -38,7 +38,7 @@ async function open(workspace: OtherWorkspace): Promise<void> {
|
|
|
38
38
|
</script>
|
|
39
39
|
|
|
40
40
|
<template>
|
|
41
|
-
<
|
|
41
|
+
<DmsCardPanel
|
|
42
42
|
:title="$t('saas.public.suspended.others.title')"
|
|
43
43
|
:count="workspaces.length"
|
|
44
44
|
:padded="false"
|
|
@@ -77,5 +77,5 @@ async function open(workspace: OtherWorkspace): Promise<void> {
|
|
|
77
77
|
</div>
|
|
78
78
|
</template>
|
|
79
79
|
</DmsListRow>
|
|
80
|
-
</
|
|
80
|
+
</DmsCardPanel>
|
|
81
81
|
</template>
|
|
@@ -142,7 +142,7 @@ const visibleRows = computed(() =>
|
|
|
142
142
|
</p>
|
|
143
143
|
</header>
|
|
144
144
|
|
|
145
|
-
<
|
|
145
|
+
<DmsCardPanel :padded="false" class="overflow-x-auto">
|
|
146
146
|
<table class="w-full min-w-[640px] text-left text-[13px]">
|
|
147
147
|
<thead>
|
|
148
148
|
<tr class="border-default border-b">
|
|
@@ -201,7 +201,7 @@ const visibleRows = computed(() =>
|
|
|
201
201
|
</tr>
|
|
202
202
|
</tbody>
|
|
203
203
|
</table>
|
|
204
|
-
</
|
|
204
|
+
</DmsCardPanel>
|
|
205
205
|
|
|
206
206
|
<div class="flex flex-wrap items-center justify-between gap-2">
|
|
207
207
|
<p class="text-muted text-xs">
|
|
@@ -69,8 +69,8 @@ const items = computed<AccordionItem[]>(() => [
|
|
|
69
69
|
{{ $t('saas.public.pricing.faq.title') }}
|
|
70
70
|
</h2>
|
|
71
71
|
</header>
|
|
72
|
-
<
|
|
72
|
+
<DmsCardPanel :padded="false" class="px-4">
|
|
73
73
|
<UAccordion :items="items" type="multiple" />
|
|
74
|
-
</
|
|
74
|
+
</DmsCardPanel>
|
|
75
75
|
</section>
|
|
76
76
|
</template>
|
|
@@ -32,7 +32,7 @@ const WIDTH_CLASSES: Record<PublicStageWidth, string> = {
|
|
|
32
32
|
</script>
|
|
33
33
|
|
|
34
34
|
<template>
|
|
35
|
-
<
|
|
35
|
+
<DmsCardPanel
|
|
36
36
|
as="section"
|
|
37
37
|
variant="elevated"
|
|
38
38
|
:padded="false"
|
|
@@ -44,7 +44,7 @@ const WIDTH_CLASSES: Record<PublicStageWidth, string> = {
|
|
|
44
44
|
</DmsIconWell>
|
|
45
45
|
|
|
46
46
|
<slot name="eyebrow">
|
|
47
|
-
<
|
|
47
|
+
<DmsEyebrowLabel
|
|
48
48
|
v-if="props.eyebrow"
|
|
49
49
|
as="span"
|
|
50
50
|
tone="primary"
|
|
@@ -68,5 +68,5 @@ const WIDTH_CLASSES: Record<PublicStageWidth, string> = {
|
|
|
68
68
|
</p>
|
|
69
69
|
|
|
70
70
|
<slot />
|
|
71
|
-
</
|
|
71
|
+
</DmsCardPanel>
|
|
72
72
|
</template>
|
|
@@ -52,7 +52,7 @@ const highlights = computed(() => {
|
|
|
52
52
|
<template>
|
|
53
53
|
<USkeleton v-if="isLoading && !summary" class="h-14 w-full rounded-lg" />
|
|
54
54
|
|
|
55
|
-
<
|
|
55
|
+
<DmsNoticeBanner
|
|
56
56
|
v-else-if="loadError"
|
|
57
57
|
tone="error"
|
|
58
58
|
size="sm"
|
|
@@ -69,15 +69,15 @@ const highlights = computed(() => {
|
|
|
69
69
|
@click="emit('retry')"
|
|
70
70
|
/>
|
|
71
71
|
</template>
|
|
72
|
-
</
|
|
72
|
+
</DmsNoticeBanner>
|
|
73
73
|
|
|
74
74
|
<div v-else-if="summary" class="flex flex-col gap-2">
|
|
75
|
-
<
|
|
75
|
+
<DmsCardPanel
|
|
76
76
|
:padded="false"
|
|
77
77
|
class="flex items-start justify-between gap-3 px-4 py-3"
|
|
78
78
|
>
|
|
79
79
|
<div class="min-w-0">
|
|
80
|
-
<
|
|
80
|
+
<DmsEyebrowLabel as="span" :label="$t('saas.public.plan_card.eyebrow')" />
|
|
81
81
|
<p class="text-highlighted text-sm font-semibold">
|
|
82
82
|
{{ summary.plan.name }}
|
|
83
83
|
<span class="text-muted font-normal">
|
|
@@ -106,7 +106,7 @@ const highlights = computed(() => {
|
|
|
106
106
|
color="neutral"
|
|
107
107
|
variant="ghost"
|
|
108
108
|
/>
|
|
109
|
-
</
|
|
109
|
+
</DmsCardPanel>
|
|
110
110
|
|
|
111
111
|
<p v-if="summary.requestedPlan" class="text-muted flex gap-1.5 text-xs">
|
|
112
112
|
<UIcon name="i-ph-info" class="mt-0.5 size-3.5 shrink-0" />
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { h, type VNodeChild } from 'vue'
|
|
2
|
+
|
|
3
|
+
type ElementProps = Record<string, string | number | Record<string, string>>
|
|
4
|
+
|
|
5
|
+
/** Reads one attribute of an allowed element into props, or leaves it out. */
|
|
6
|
+
type AttributeReader = (element: Element, props: ElementProps) => void
|
|
7
|
+
|
|
8
|
+
const ALLOWED_SCHEMES = new Set(['http:', 'https:', 'mailto:', 'tel:'])
|
|
9
|
+
const RELATIVE_BASE = 'https://relative.invalid/'
|
|
10
|
+
const TEXT_ALIGNMENTS = new Set(['left', 'center', 'right', 'justify'])
|
|
11
|
+
const NEW_TAB = '_blank'
|
|
12
|
+
const NEW_TAB_REL = 'noopener noreferrer'
|
|
13
|
+
const LIST_START = /^-?\d+$/
|
|
14
|
+
|
|
15
|
+
function hasAllowedScheme(href: string): boolean {
|
|
16
|
+
try {
|
|
17
|
+
return ALLOWED_SCHEMES.has(new URL(href, RELATIVE_BASE).protocol)
|
|
18
|
+
} catch {
|
|
19
|
+
return false
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Whether a link target is safe to follow: a relative address or one of the
|
|
25
|
+
* allowed schemes. The scheme is read by the URL parser the browser follows
|
|
26
|
+
* the link with, from the value the page carries and from that value with
|
|
27
|
+
* every leading and trailing space removed, so no space hides a scheme.
|
|
28
|
+
*/
|
|
29
|
+
function isSafeHref(href: string): boolean {
|
|
30
|
+
return hasAllowedScheme(href) && hasAllowedScheme(href.trim())
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const readHref: AttributeReader = (element, props) => {
|
|
34
|
+
const href = element.getAttribute('href')
|
|
35
|
+
if (href !== null && isSafeHref(href)) props.href = href
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const readTarget: AttributeReader = (element, props) => {
|
|
39
|
+
if (element.getAttribute('target') !== NEW_TAB) return
|
|
40
|
+
props.target = NEW_TAB
|
|
41
|
+
props.rel = NEW_TAB_REL
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const readStart: AttributeReader = (element, props) => {
|
|
45
|
+
const start = element.getAttribute('start')
|
|
46
|
+
if (start !== null && LIST_START.test(start)) props.start = Number(start)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const readTextAlign: AttributeReader = (element, props) => {
|
|
50
|
+
const textAlign =
|
|
51
|
+
element instanceof HTMLElement ? element.style.textAlign : ''
|
|
52
|
+
if (TEXT_ALIGNMENTS.has(textAlign)) props.style = { textAlign }
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const readId: AttributeReader = (element, props) => {
|
|
56
|
+
if (element.id) props.id = element.id
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** Headings the contents link to keep the anchor id the outline gives them. */
|
|
60
|
+
const ANCHORED_HEADING_READERS = [readTextAlign, readId]
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The elements a legal document may render, each with the attributes it
|
|
64
|
+
* keeps: what the DMS rich text editor writes. Any other attribute, event
|
|
65
|
+
* handlers and inline styles included, is dropped.
|
|
66
|
+
*/
|
|
67
|
+
const ALLOWED_ELEMENTS = new Map<string, readonly AttributeReader[]>([
|
|
68
|
+
['p', [readTextAlign]],
|
|
69
|
+
['h1', ANCHORED_HEADING_READERS],
|
|
70
|
+
['h2', ANCHORED_HEADING_READERS],
|
|
71
|
+
['h3', ANCHORED_HEADING_READERS],
|
|
72
|
+
['h4', [readTextAlign]],
|
|
73
|
+
['h5', [readTextAlign]],
|
|
74
|
+
['h6', [readTextAlign]],
|
|
75
|
+
['strong', []],
|
|
76
|
+
['b', []],
|
|
77
|
+
['em', []],
|
|
78
|
+
['i', []],
|
|
79
|
+
['u', []],
|
|
80
|
+
['s', []],
|
|
81
|
+
['code', []],
|
|
82
|
+
['pre', []],
|
|
83
|
+
['blockquote', []],
|
|
84
|
+
['ul', []],
|
|
85
|
+
['ol', [readStart]],
|
|
86
|
+
['li', []],
|
|
87
|
+
['br', []],
|
|
88
|
+
['hr', []],
|
|
89
|
+
['a', [readHref, readTarget]],
|
|
90
|
+
])
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Elements dropped with everything inside them. Any other element not
|
|
94
|
+
* allowed is unwrapped: its text and allowed children still render.
|
|
95
|
+
*/
|
|
96
|
+
const DROPPED_ELEMENTS = new Set([
|
|
97
|
+
'script',
|
|
98
|
+
'style',
|
|
99
|
+
'template',
|
|
100
|
+
'noscript',
|
|
101
|
+
'iframe',
|
|
102
|
+
'object',
|
|
103
|
+
'embed',
|
|
104
|
+
'svg',
|
|
105
|
+
'math',
|
|
106
|
+
])
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Parses a stored legal document, without the elements dropped with their
|
|
110
|
+
* content, so the headings found in it are the ones the page shows.
|
|
111
|
+
*
|
|
112
|
+
* @param html Stored document
|
|
113
|
+
*/
|
|
114
|
+
export function parseLegalDocument(html: string): HTMLElement {
|
|
115
|
+
const { body } = new DOMParser().parseFromString(html, 'text/html')
|
|
116
|
+
for (const dropped of body.querySelectorAll(
|
|
117
|
+
[...DROPPED_ELEMENTS].join(','),
|
|
118
|
+
)) {
|
|
119
|
+
dropped.remove()
|
|
120
|
+
}
|
|
121
|
+
return body
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function renderNode(node: Node): VNodeChild[] {
|
|
125
|
+
if (node.nodeType === Node.TEXT_NODE) return [node.textContent ?? '']
|
|
126
|
+
if (!(node instanceof Element)) return []
|
|
127
|
+
const tag = node.localName
|
|
128
|
+
if (DROPPED_ELEMENTS.has(tag)) return []
|
|
129
|
+
const children = renderAllowedHtml(node)
|
|
130
|
+
const readers = ALLOWED_ELEMENTS.get(tag)
|
|
131
|
+
if (!readers) return children
|
|
132
|
+
const props: ElementProps = {}
|
|
133
|
+
for (const read of readers) read(node, props)
|
|
134
|
+
return [h(tag, props, children)]
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Renders the children of a parsed HTML document as Vue nodes, keeping only
|
|
139
|
+
* the allowed elements and attributes: no markup reaches the page as HTML,
|
|
140
|
+
* so a script, an event handler or a `javascript:` link never runs.
|
|
141
|
+
*
|
|
142
|
+
* @param parent Parsed node whose children to render
|
|
143
|
+
*/
|
|
144
|
+
export function renderAllowedHtml(parent: ParentNode): VNodeChild[] {
|
|
145
|
+
return [...parent.childNodes].flatMap(renderNode)
|
|
146
|
+
}
|
|
@@ -151,7 +151,7 @@ onMounted(load)
|
|
|
151
151
|
<FormRows has-required>
|
|
152
152
|
<FormFieldRow :label="$t(`${D}.plan`)" :help="fitNote" required>
|
|
153
153
|
<template #default="{ id }">
|
|
154
|
-
<
|
|
154
|
+
<DmsInputSelect
|
|
155
155
|
:id="id"
|
|
156
156
|
v-model="planId"
|
|
157
157
|
:items="planItems"
|
|
@@ -177,14 +177,14 @@ onMounted(load)
|
|
|
177
177
|
</template>
|
|
178
178
|
</FormFieldRow>
|
|
179
179
|
</FormRows>
|
|
180
|
-
<
|
|
180
|
+
<DmsNoticeBanner
|
|
181
181
|
v-if="cancelsSubscription"
|
|
182
182
|
tone="error"
|
|
183
183
|
icon="i-ph-warning"
|
|
184
184
|
:title="$t(`${D}.cancellation_title`)"
|
|
185
185
|
:description="cancellation"
|
|
186
186
|
/>
|
|
187
|
-
<
|
|
187
|
+
<DmsInputCheckbox
|
|
188
188
|
v-if="cancelsSubscription"
|
|
189
189
|
v-model="isAcknowledged"
|
|
190
190
|
:label="$t(`${D}.acknowledge`)"
|
|
@@ -198,7 +198,7 @@ onMounted(load)
|
|
|
198
198
|
required
|
|
199
199
|
>
|
|
200
200
|
<template #default="{ id }">
|
|
201
|
-
<
|
|
201
|
+
<DmsInputTextarea
|
|
202
202
|
:id="id"
|
|
203
203
|
v-model="reason"
|
|
204
204
|
:maxlength="REASON_MAX_LENGTH"
|
|
@@ -209,7 +209,7 @@ onMounted(load)
|
|
|
209
209
|
</template>
|
|
210
210
|
</FormFieldRow>
|
|
211
211
|
</FormRows>
|
|
212
|
-
<
|
|
212
|
+
<DmsNoticeBanner
|
|
213
213
|
v-if="outcome"
|
|
214
214
|
size="sm"
|
|
215
215
|
tone="info"
|
|
@@ -172,7 +172,7 @@ function cluster(className: string): ClusterBindings {
|
|
|
172
172
|
:aria-label="$t(`${KEY_PREFIX}.customer_type`)"
|
|
173
173
|
class="@min-[480px]:grid-cols-2 grid gap-2"
|
|
174
174
|
>
|
|
175
|
-
<
|
|
175
|
+
<DmsCardPanel
|
|
176
176
|
v-for="customerType in CUSTOMER_TYPES"
|
|
177
177
|
:key="customerType"
|
|
178
178
|
as="button"
|
|
@@ -203,7 +203,7 @@ function cluster(className: string): ClusterBindings {
|
|
|
203
203
|
</span>
|
|
204
204
|
</span>
|
|
205
205
|
</span>
|
|
206
|
-
</
|
|
206
|
+
</DmsCardPanel>
|
|
207
207
|
</div>
|
|
208
208
|
</div>
|
|
209
209
|
</FormFieldRow>
|