@antelopejs/dms-saas 0.3.13 → 0.3.15
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/automation/index.js +14 -18
- package/dist/automation/index.js.map +1 -1
- package/dist/data-api/platformOwner/admin-user-invoices.js +2 -1
- package/dist/data-api/platformOwner/admin-user-invoices.js.map +1 -1
- package/dist/data-api/platformOwner/credit-notes.js +2 -1
- package/dist/data-api/platformOwner/credit-notes.js.map +1 -1
- package/dist/data-api/platformOwner/invoices.js +1 -1
- package/dist/data-api/platformOwner/invoices.js.map +1 -1
- package/dist/data-api/tenant/tenant-invoices.js +1 -1
- package/dist/data-api/tenant/tenant-invoices.js.map +1 -1
- package/dist/utils/billing-document-status.d.ts +6 -0
- package/dist/utils/billing-document-status.js +28 -0
- package/dist/utils/billing-document-status.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/frontend-vue/app/components/PaymentMethodCard.vue +33 -1
- package/frontend-vue/app/components/PlanComparisonModal.vue +91 -1
- package/frontend-vue/app/composables/useComplimentaryAccess.ts +23 -0
- package/frontend-vue/app/composables/usePlanDowngrade.ts +47 -0
- package/frontend-vue/i18n/locales/saas-en-GB.json +60 -1
- package/frontend-vue/i18n/locales/saas-fr-FR.json +60 -1
- package/package.json +1 -1
package/dist/automation/index.js
CHANGED
|
@@ -33,11 +33,17 @@ async function emitTenantDeletedEvent(payload) {
|
|
|
33
33
|
const EMPTY_CONFIG_SCHEMA = { type: "object", properties: {} };
|
|
34
34
|
const TENANT_ID_PROPERTY = { type: "string" };
|
|
35
35
|
const AT_PROPERTY = { type: "string" };
|
|
36
|
+
const AUTOMATION_LABEL_NAMESPACE = "$saas.automation";
|
|
37
|
+
const NODE_ID_PREFIX = "saas.";
|
|
38
|
+
function automationNodeLabels(kind, id) {
|
|
39
|
+
const key = id.slice(NODE_ID_PREFIX.length).replaceAll("-", "_");
|
|
40
|
+
const prefix = `${AUTOMATION_LABEL_NAMESPACE}.${kind}.${key}`;
|
|
41
|
+
return { name: `${prefix}.name`, description: `${prefix}.description` };
|
|
42
|
+
}
|
|
36
43
|
function createEventTrigger(spec) {
|
|
37
44
|
return {
|
|
38
45
|
id: spec.event,
|
|
39
|
-
|
|
40
|
-
description: spec.description,
|
|
46
|
+
...automationNodeLabels("trigger", spec.event),
|
|
41
47
|
icon: spec.icon,
|
|
42
48
|
cluster: "replicated",
|
|
43
49
|
configSchema: EMPTY_CONFIG_SCHEMA,
|
|
@@ -62,8 +68,6 @@ function createEventTrigger(spec) {
|
|
|
62
68
|
const TRIGGERS = [
|
|
63
69
|
createEventTrigger({
|
|
64
70
|
event: "saas.subscription-started",
|
|
65
|
-
name: "Subscription started",
|
|
66
|
-
description: "Fires when a Stripe checkout completes and a workspace subscription becomes active or trialing",
|
|
67
71
|
icon: "i-ph-rocket-launch",
|
|
68
72
|
outputProperties: {
|
|
69
73
|
planId: { type: ["string", "null"] },
|
|
@@ -74,8 +78,6 @@ const TRIGGERS = [
|
|
|
74
78
|
}),
|
|
75
79
|
createEventTrigger({
|
|
76
80
|
event: "saas.subscription-cancelled",
|
|
77
|
-
name: "Subscription cancelled",
|
|
78
|
-
description: "Fires when a workspace subscription is cancelled in Stripe",
|
|
79
81
|
icon: "i-ph-x-circle",
|
|
80
82
|
outputProperties: {
|
|
81
83
|
stripeSubscriptionId: { type: "string" },
|
|
@@ -83,8 +85,6 @@ const TRIGGERS = [
|
|
|
83
85
|
}),
|
|
84
86
|
createEventTrigger({
|
|
85
87
|
event: "saas.payment-failed",
|
|
86
|
-
name: "Payment failed",
|
|
87
|
-
description: "Fires when an invoice payment fails and the workspace goes past due",
|
|
88
88
|
icon: "i-ph-warning-circle",
|
|
89
89
|
outputProperties: {
|
|
90
90
|
invoiceId: { type: "string" },
|
|
@@ -95,8 +95,6 @@ const TRIGGERS = [
|
|
|
95
95
|
}),
|
|
96
96
|
createEventTrigger({
|
|
97
97
|
event: "saas.trial-ending",
|
|
98
|
-
name: "Trial ending",
|
|
99
|
-
description: "Fires when a workspace trial is about to end",
|
|
100
98
|
icon: "i-ph-hourglass",
|
|
101
99
|
outputProperties: {
|
|
102
100
|
trialEndsAt: { type: ["string", "null"] },
|
|
@@ -104,12 +102,12 @@ const TRIGGERS = [
|
|
|
104
102
|
}),
|
|
105
103
|
createEventTrigger({
|
|
106
104
|
event: "saas.tenant-deleted",
|
|
107
|
-
name: "Workspace deleted",
|
|
108
|
-
description: "Fires when a workspace is deleted",
|
|
109
105
|
icon: "i-ph-trash",
|
|
110
106
|
outputProperties: { operationId: { type: "string" } },
|
|
111
107
|
}),
|
|
112
108
|
];
|
|
109
|
+
const SUSPEND_WORKSPACE_ACTION_ID = "saas.suspend-workspace";
|
|
110
|
+
const NOTIFY_TENANT_OWNERS_ACTION_ID = "saas.notify-tenant-owners";
|
|
113
111
|
function automationOperationId(runId, nodeId) {
|
|
114
112
|
const fingerprint = (0, node_crypto_1.createHash)("sha256")
|
|
115
113
|
.update(`${runId}\u0000${nodeId}`)
|
|
@@ -118,9 +116,8 @@ function automationOperationId(runId, nodeId) {
|
|
|
118
116
|
return `automation-${fingerprint}`;
|
|
119
117
|
}
|
|
120
118
|
const suspendWorkspaceAction = {
|
|
121
|
-
id:
|
|
122
|
-
|
|
123
|
-
description: "Suspend a workspace (pause Stripe collection) or reactivate it when suspended is false",
|
|
119
|
+
id: SUSPEND_WORKSPACE_ACTION_ID,
|
|
120
|
+
...automationNodeLabels("action", SUSPEND_WORKSPACE_ACTION_ID),
|
|
124
121
|
icon: "i-ph-prohibit",
|
|
125
122
|
inputSchema: {
|
|
126
123
|
type: "object",
|
|
@@ -157,9 +154,8 @@ const suspendWorkspaceAction = {
|
|
|
157
154
|
};
|
|
158
155
|
const DEFAULT_NOTIFICATION_ICON = "i-ph-bell";
|
|
159
156
|
const notifyTenantOwnersAction = {
|
|
160
|
-
id:
|
|
161
|
-
|
|
162
|
-
description: "Send an in-app notification to all owners of a workspace",
|
|
157
|
+
id: NOTIFY_TENANT_OWNERS_ACTION_ID,
|
|
158
|
+
...automationNodeLabels("action", NOTIFY_TENANT_OWNERS_ACTION_ID),
|
|
163
159
|
icon: DEFAULT_NOTIFICATION_ICON,
|
|
164
160
|
inputSchema: {
|
|
165
161
|
type: "object",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/automation/index.ts"],"names":[],"mappings":";;AA6FA,kDAWC;AAGD,wDAKC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/automation/index.ts"],"names":[],"mappings":";;AA6FA,kDAWC;AAGD,wDAKC;AA2ND,0DAOC;AAED,8DAOC;AA3VD,6CAAyC;AACzC,mFAQ8C;AAC9C,oDAG0B;AAC1B,0DAG6B;AAwD7B,MAAM,cAAc,GAAG,IAAI,GAAG,EAG3B,CAAC;AAEJ,SAAS,YAAY,CACnB,KAA0B;IAE1B,MAAM,QAAQ,GAAG,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC3C,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAC;IAC9B,MAAM,OAAO,GAAG,IAAI,GAAG,EAA2B,CAAC;IACnD,cAAc,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACnC,OAAO,OAAO,CAAC;AACjB,CAAC;AAOD,SAAgB,mBAAmB,CACjC,KAAQ,EACR,OAAmC;IAEnC,KAAK,MAAM,QAAQ,IAAI,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;QAC3C,IAAI,CAAC;YACH,KAAK,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;QACjE,CAAC;QAAC,MAAM,CAAC;QAET,CAAC;IACH,CAAC;AACH,CAAC;AAGM,KAAK,UAAU,sBAAsB,CAC1C,OAA2B;IAE3B,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23
|
const default_types_1 = require("@antelopejs/interface-dms/base/data-types/default-types");
|
|
24
24
|
const db_2 = require("../../db");
|
|
25
|
+
const utils_1 = require("../../utils");
|
|
25
26
|
const hidden_filter_1 = require("./hidden-filter");
|
|
26
27
|
const invoice_options_1 = require("./invoice-options");
|
|
27
28
|
const FIRST_MEMBERSHIP_INDEX = 0;
|
|
@@ -121,7 +122,7 @@ __decorate([
|
|
|
121
122
|
(0, base_1.Exported)(),
|
|
122
123
|
(0, base_1.Column)({
|
|
123
124
|
name: "$saas.invoices.column.status",
|
|
124
|
-
type:
|
|
125
|
+
type: (0, utils_1.billingDocumentStatusType)(),
|
|
125
126
|
filterable: true,
|
|
126
127
|
}),
|
|
127
128
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-user-invoices.js","sourceRoot":"","sources":["../../../src/data-api/platformOwner/admin-user-invoices.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6DAAuD;AACvD,+DAAyD;AACzD,uEAIwC;AACxC,sEASiD;AACjD,uEAA4E;AAC5E,6FAA4E;AAC5E,qDAAyE;AACzE,yDAA+D;AAC/D,yDAOwC;AACxC,2FAA2F;AAC3F,iCAAiD;AACjD,mDAAqD;AACrD,uDAAyE;AAEzE,MAAM,sBAAsB,GAAG,CAAC,CAAC;AAQ1B,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,IAAA,mCAAc,EAC1D,YAAO,EACP;IACE,GAAG,EAAE,sBAAe,CAAC,GAAG;IACxB,IAAI,EAAE,kCAAa,CAAC,WAAW,CAAC,sBAAe,CAAC,IAAI,EAAE,sCAAoB,CAAC;IAC3E,MAAM,EAAE,kCAAa,CAAC,WAAW,CAC/B,sBAAe,CAAC,MAAM,EACtB,sCAAoB,CACrB;IACD,KAAK,EAAE,kCAAa,CAAC,WAAW,CAC9B,sBAAe,CAAC,KAAK,EACrB,sCAAoB,CACrB;CACF,EACD,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;QACN,IAAI,EAAE,8BAA8B;QACpC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"admin-user-invoices.js","sourceRoot":"","sources":["../../../src/data-api/platformOwner/admin-user-invoices.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6DAAuD;AACvD,+DAAyD;AACzD,uEAIwC;AACxC,sEASiD;AACjD,uEAA4E;AAC5E,6FAA4E;AAC5E,qDAAyE;AACzE,yDAA+D;AAC/D,yDAOwC;AACxC,2FAA2F;AAC3F,iCAAiD;AACjD,uCAAwD;AACxD,mDAAqD;AACrD,uDAAyE;AAEzE,MAAM,sBAAsB,GAAG,CAAC,CAAC;AAQ1B,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,IAAA,mCAAc,EAC1D,YAAO,EACP;IACE,GAAG,EAAE,sBAAe,CAAC,GAAG;IACxB,IAAI,EAAE,kCAAa,CAAC,WAAW,CAAC,sBAAe,CAAC,IAAI,EAAE,sCAAoB,CAAC;IAC3E,MAAM,EAAE,kCAAa,CAAC,WAAW,CAC/B,sBAAe,CAAC,MAAM,EACtB,sCAAoB,CACrB;IACD,KAAK,EAAE,kCAAa,CAAC,WAAW,CAC9B,sBAAe,CAAC,KAAK,EACrB,sCAAoB,CACrB;CACF,EACD,IAAA,0BAAU,EAAC,sCAAsC,CAAC,CACnD;;IAEC;QACE,IAAA,4BAAW,EAAC,0BAAwB,EAAE,oBAAa,CAAC,CAAC,mBAAmB,CACtE,gCAAc,CACf,CAAC;IACJ,CAAC;CAkHF,CAAA;AAvIY,4DAAwB;AAyB3B;IAFP,IAAA,yBAAc,GAAE;IAChB,IAAA,qCAAK,EAAC,iBAAY,EAAE,mCAAc,CAAC;8BACrB,iBAAY;uDAAC;AAqBpB;IAnBP,IAAA,iBAAM,EACL,CACE,GAAG,CAAC,EAAE,AAAD,EAAG,AAAD,EAAG,MAAM,EAAE,AAAD,EAAG,GAAG,CAEtB,EACD,EAAE,CACF,+BAAU,CAAC,QAAQ,CAAC,I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Kf;IAHP,IAAA,aAAM,GAAE;IACR,IAAA,mBAAQ,GAAE;IACV,IAAA,iBAAM,EAAC,qBAAU,CAAC,QAAQ,CAAC;;kEACY;AAKhC;IAHP,IAAA,aAAM,GAAE;IACR,IAAA,mBAAQ,GAAE;IACV,IAAA,iBAAM,EAAC,qBAAU,CAAC,QAAQ,CAAC;;+DACS;mCAtI1B,wBAAwB;IAFpC,IAAA,2CAAsB,GAAE;IACxB,IAAA,oBAAa,GAAE;GACH,wBAAwB,CAuIpC"}
|
|
@@ -20,6 +20,7 @@ const auth_1 = require("@antelopejs/interface-dms/auth");
|
|
|
20
20
|
const base_1 = require("@antelopejs/interface-dms/base");
|
|
21
21
|
const default_types_1 = require("@antelopejs/interface-dms/base/data-types/default-types");
|
|
22
22
|
const db_2 = require("../../db");
|
|
23
|
+
const utils_1 = require("../../utils");
|
|
23
24
|
const hidden_filter_1 = require("./hidden-filter");
|
|
24
25
|
let creditNotesDataAPI = class creditNotesDataAPI extends (0, interface_data_api_1.DataController)(db_2.CreditNote, {
|
|
25
26
|
get: base_1.TableViewRoutes.Get,
|
|
@@ -108,7 +109,7 @@ __decorate([
|
|
|
108
109
|
(0, base_1.Exported)(),
|
|
109
110
|
(0, base_1.Column)({
|
|
110
111
|
name: "$saas.credit_notes.column.status",
|
|
111
|
-
type:
|
|
112
|
+
type: (0, utils_1.creditNoteStatusType)(),
|
|
112
113
|
filterable: true,
|
|
113
114
|
}),
|
|
114
115
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit-notes.js","sourceRoot":"","sources":["../../../src/data-api/platformOwner/credit-notes.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAuD;AACvD,uEAGwC;AACxC,sEAOiD;AACjD,uEAAgE;AAChE,6FAAkE;AAClE,qDAAsD;AACtD,yDAA+D;AAC/D,yDAMwC;AACxC,2FAA2F;AAC3F,iCAAuD;AACvD,mDAAq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IACV,IAAA,mBAAQ,GAAE;IACV,IAAA,eAAQ,GAAE;IACV,IAAA,aAAM,EAAC;QACN,IAAI,EAAE,qCAAqC;QAC3C,IAAI,EAAE,IAAI,gCAAgB,CAAC,QAAQ,EAAE;KACtC,CAAC;IACD,IAAA,iBAAM,EAAC,qBAAU,CAAC,QAAQ,CAAC;8BACV,IAAI;oDAAC;6BAhGZ,kBAAkB;IAF9B,IAAA,2CAAsB,GAAE;IACxB,IAAA,oBAAa,GAAE;GACH,kBAAkB,CAiG9B"}
|
|
@@ -110,7 +110,7 @@ __decorate([
|
|
|
110
110
|
(0, base_1.Exported)(),
|
|
111
111
|
(0, base_1.Column)({
|
|
112
112
|
name: "$saas.invoices.column.status",
|
|
113
|
-
type:
|
|
113
|
+
type: (0, utils_1.billingDocumentStatusType)(),
|
|
114
114
|
filterable: true,
|
|
115
115
|
}),
|
|
116
116
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../../src/data-api/platformOwner/invoices.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6DAAuD;AACvD,+DAAyD;AACzD,uEAIwC;AACxC,sEAQiD;AACjD,uEAAgE;AAChE,6FAAkE;AAClE,qDAAsD;AACtD,yDAA+D;AAC/D,yDAOwC;AACxC,2FAA2F;AAC3F,iCAAiD;AACjD,
|
|
1
|
+
{"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../../src/data-api/platformOwner/invoices.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6DAAuD;AACvD,+DAAyD;AACzD,uEAIwC;AACxC,sEAQiD;AACjD,uEAAgE;AAChE,6FAAkE;AAClE,qDAAsD;AACtD,yDAA+D;AAC/D,yDAOwC;AACxC,2FAA2F;AAC3F,iCAAiD;AACjD,uCAAwE;AACxE,mDAAqD;AACrD,uDAAyE;AAIlE,IAAM,eAAe,GAArB,MAAM,eAAgB,SA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AA,eAAQ,GAAE;IACV,IAAA,aAAM,EAAC;QACN,IAAI,EAAE,iCAAiC;QACvC,IAAI,EAAE,IAAI,gCAAgB,CAAC,QAAQ,EAAE;KACtC,CAAC;IACD,IAAA,iBAAM,EAAC,qBAAU,CAAC,QAAQ,CAAC;8BACV,IAAI;iDAAC;AAKf;IAHP,IAAA,aAAM,GAAE;IACR,IAAA,mBAAQ,GAAE;IACV,IAAA,iBAAM,EAAC,qBAAU,CAAC,QAAQ,CAAC;;yDACY;AAKhC;IAHP,IAAA,aAAM,GAAE;IACR,IAAA,mBAAQ,GAAE;IACV,IAAA,iBAAM,EAAC,qBAAU,CAAC,QAAQ,CAAC;;sDACS;0BAjH1B,eAAe;IAF3B,IAAA,2CAAsB,GAAE;IACxB,IAAA,oBAAa,GAAE;GACH,eAAe,CAkH3B"}
|
|
@@ -151,7 +151,7 @@ __decorate([
|
|
|
151
151
|
(0, base_1.Exported)(),
|
|
152
152
|
(0, base_1.Column)({
|
|
153
153
|
name: "$saas.invoices.column.status",
|
|
154
|
-
type:
|
|
154
|
+
type: (0, utils_1.billingDocumentStatusType)(),
|
|
155
155
|
filterable: true,
|
|
156
156
|
}),
|
|
157
157
|
(0, metadata_1.Access)(metadata_1.AccessMode.ReadOnly),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant-invoices.js","sourceRoot":"","sources":["../../../src/data-api/tenant/tenant-invoices.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAuD;AACvD,uEAGwC;AACxC,sEAMiD;AACjD,6FAAkE;AAClE,6EAA8E;AAC9E,yDAA0D;AAC1D,yDAMwC;AACxC,2FAA2F;AAE3F,iCAAiD;AACjD,
|
|
1
|
+
{"version":3,"file":"tenant-invoices.js","sourceRoot":"","sources":["../../../src/data-api/tenant/tenant-invoices.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAAuD;AACvD,uEAGwC;AACxC,sEAMiD;AACjD,6FAAkE;AAClE,6EAA8E;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ataTypes } from "@antelopejs/interface-dms/base/data-types/default-types";
|
|
3
|
+
export declare const BILLING_DOCUMENT_STATUS_ITEMS: FormComponents.SelectOption[];
|
|
4
|
+
export declare const CREDIT_NOTE_STATUS_ITEMS: FormComponents.SelectOption[];
|
|
5
|
+
export declare function billingDocumentStatusType(): DefaultDataTypes.SelectType;
|
|
6
|
+
export declare function creditNoteStatusType(): DefaultDataTypes.SelectType;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CREDIT_NOTE_STATUS_ITEMS = exports.BILLING_DOCUMENT_STATUS_ITEMS = void 0;
|
|
4
|
+
exports.billingDocumentStatusType = billingDocumentStatusType;
|
|
5
|
+
exports.creditNoteStatusType = creditNoteStatusType;
|
|
6
|
+
const default_types_1 = require("@antelopejs/interface-dms/base/data-types/default-types");
|
|
7
|
+
const db_1 = require("../db");
|
|
8
|
+
const BILLING_DOCUMENT_STATUSES = [
|
|
9
|
+
...db_1.INVOICE_STATUSES,
|
|
10
|
+
"issued",
|
|
11
|
+
];
|
|
12
|
+
function statusItems(statuses, namespace) {
|
|
13
|
+
return statuses.map((status) => ({
|
|
14
|
+
label: `$${namespace}.${status}`,
|
|
15
|
+
value: status,
|
|
16
|
+
}));
|
|
17
|
+
}
|
|
18
|
+
exports.BILLING_DOCUMENT_STATUS_ITEMS = statusItems(BILLING_DOCUMENT_STATUSES, "saas.invoices.status");
|
|
19
|
+
exports.CREDIT_NOTE_STATUS_ITEMS = statusItems(db_1.CREDIT_NOTE_STATUSES, "saas.credit_notes.status");
|
|
20
|
+
function billingDocumentStatusType() {
|
|
21
|
+
return new default_types_1.DefaultDataTypes.SelectType({
|
|
22
|
+
items: exports.BILLING_DOCUMENT_STATUS_ITEMS,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function creditNoteStatusType() {
|
|
26
|
+
return new default_types_1.DefaultDataTypes.SelectType({ items: exports.CREDIT_NOTE_STATUS_ITEMS });
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=billing-document-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing-document-status.js","sourceRoot":"","sources":["../../src/utils/billing-document-status.ts"],"names":[],"mappings":";;;AAkCA,8DAIC;AAGD,oDAEC;AA1CD,2FAA2F;AAE3F,8BAA+D;AAG/D,MAAM,yBAAyB,GAAqC;IAClE,GAAG,qBAAgB;IACnB,QAAQ;CACT,CAAC;AAEF,SAAS,WAAW,CAClB,QAA2B,EAC3B,SAAiB;IAEjB,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC/B,KAAK,EAAE,IAAI,SAAS,IAAI,MAAM,EAAE;QAChC,KAAK,EAAE,MAAM;KACd,CAAC,CAAC,CAAC;AACN,CAAC;AAGY,QAAA,6BAA6B,GAAG,WAAW,CACtD,yBAAyB,EACzB,sBAAsB,CACvB,CAAC;AAGW,QAAA,wBAAwB,GAAG,WAAW,CACjD,yBAAoB,EACpB,0BAA0B,CAC3B,CAAC;AAGF,SAAgB,yBAAyB;IACvC,OAAO,IAAI,gCAAgB,CAAC,UAAU,CAAC;QACrC,KAAK,EAAE,qCAA6B;KACrC,CAAC,CAAC;AACL,CAAC;AAGD,SAAgB,oBAAoB;IAClC,OAAO,IAAI,gCAAgB,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,gCAAwB,EAAE,CAAC,CAAC;AAC9E,CAAC"}
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./billing-document-status"), exports);
|
|
17
18
|
__exportStar(require("./billing-document-type"), exports);
|
|
18
19
|
__exportStar(require("./billing-period-type"), exports);
|
|
19
20
|
__exportStar(require("./email-hash"), exports);
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,wDAAsC;AACtC,+CAA6B;AAC7B,0DAAwC;AACxC,uDAAqC;AACrC,iDAA+B;AAC/B,qDAAmC;AACnC,+CAA6B;AAC7B,sDAAoC;AACpC,iDAA+B;AAC/B,4DAA0C;AAC1C,sDAAoC;AACpC,mDAAiC;AACjC,qDAAmC;AACnC,uDAAqC;AACrC,yCAAuB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,0DAAwC;AACxC,wDAAsC;AACtC,+CAA6B;AAC7B,0DAAwC;AACxC,uDAAqC;AACrC,iDAA+B;AAC/B,qDAAmC;AACnC,+CAA6B;AAC7B,sDAAoC;AACpC,iDAA+B;AAC/B,4DAA0C;AAC1C,sDAAoC;AACpC,mDAAiC;AACjC,qDAAmC;AACnC,uDAAqC;AACrC,yCAAuB"}
|
|
@@ -13,10 +13,16 @@ const FREE_PLAN_PRICE = 0;
|
|
|
13
13
|
const EXPIRY_YEAR_MODULO = 100;
|
|
14
14
|
const EXPIRY_PAD_LENGTH = 2;
|
|
15
15
|
const KEY_PREFIX = "saas.workspace.billing.payment_method";
|
|
16
|
+
const FULL_DATE_FORMAT: Intl.DateTimeFormatOptions = {
|
|
17
|
+
year: "numeric",
|
|
18
|
+
month: "long",
|
|
19
|
+
day: "numeric",
|
|
20
|
+
};
|
|
16
21
|
|
|
17
22
|
const { data, error, load, refresh } = useBillingStatus();
|
|
18
23
|
const { data: plan, load: loadPlan } = useTenantPlan();
|
|
19
24
|
const { open: openPlanComparison } = usePlanComparison();
|
|
25
|
+
const { t, locale } = useI18n();
|
|
20
26
|
|
|
21
27
|
const card = computed(() => data.value?.paymentMethod ?? null);
|
|
22
28
|
const needsUpdate = computed(() => data.value?.status === PAST_DUE_STATUS);
|
|
@@ -27,6 +33,21 @@ const isFreePlan = computed(
|
|
|
27
33
|
// manages the card rather than shown a misleading "no card".
|
|
28
34
|
const isTenantOwner = computed(() => !!data.value?.isTenantOwner);
|
|
29
35
|
const hasStripeCustomer = computed(() => !!data.value?.hasStripeCustomer);
|
|
36
|
+
// A gift on the top plan needs no card: offering an upgrade there is noise.
|
|
37
|
+
const complimentaryAccess = computed(() =>
|
|
38
|
+
resolveComplimentaryAccess(plan.value),
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
const complimentaryNote = computed(() => {
|
|
42
|
+
const endsOn = formatDate(
|
|
43
|
+
complimentaryAccess.value?.endsAt,
|
|
44
|
+
locale.value,
|
|
45
|
+
FULL_DATE_FORMAT,
|
|
46
|
+
);
|
|
47
|
+
return endsOn
|
|
48
|
+
? t(`${KEY_PREFIX}.complimentary_until_note`, { date: endsOn })
|
|
49
|
+
: t(`${KEY_PREFIX}.complimentary_note`);
|
|
50
|
+
});
|
|
30
51
|
|
|
31
52
|
// "You'll be asked for a card on upgrade" is only true without a Stripe
|
|
32
53
|
// customer: once one exists, a missing card is added through the portal.
|
|
@@ -35,6 +56,9 @@ const noCardKey = computed(() =>
|
|
|
35
56
|
);
|
|
36
57
|
|
|
37
58
|
const headerBadge = computed<PaymentMethodBadge>(() => {
|
|
59
|
+
if (complimentaryAccess.value) {
|
|
60
|
+
return { color: "success", key: "complimentary" };
|
|
61
|
+
}
|
|
38
62
|
if (!card.value) return { color: "warning", key: "missing" };
|
|
39
63
|
if (needsUpdate.value) return { color: "warning", key: "needs_update" };
|
|
40
64
|
if (isFreePlan.value) return { color: "success", key: "verified" };
|
|
@@ -84,7 +108,15 @@ onMounted(() => {
|
|
|
84
108
|
</p>
|
|
85
109
|
|
|
86
110
|
<div v-else class="flex flex-col gap-4">
|
|
87
|
-
<
|
|
111
|
+
<div
|
|
112
|
+
v-if="complimentaryAccess"
|
|
113
|
+
class="border-default flex flex-wrap items-center gap-3 rounded-lg border border-dashed p-3"
|
|
114
|
+
>
|
|
115
|
+
<UIcon name="i-ph-gift" class="text-muted size-5" />
|
|
116
|
+
<span class="text-muted grow text-sm">{{ complimentaryNote }}</span>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
<template v-else-if="card">
|
|
88
120
|
<div
|
|
89
121
|
class="border-default flex flex-wrap items-center gap-3 rounded-lg border p-3"
|
|
90
122
|
>
|
|
@@ -28,6 +28,8 @@ const planIntervalLabel = usePlanIntervalLabel("saas.workspace.plan.interval");
|
|
|
28
28
|
|
|
29
29
|
const showDetailRows = ref(false);
|
|
30
30
|
const pendingPlanRequest = ref<string | null>(null);
|
|
31
|
+
const isDowngradeConfirmOpen = ref(false);
|
|
32
|
+
const downgradeTarget = ref<TenantPlanView | null>(null);
|
|
31
33
|
|
|
32
34
|
/** A feature no compared plan sets would only render a row of dashes. */
|
|
33
35
|
const comparedFeatures = computed(() =>
|
|
@@ -80,12 +82,27 @@ function needsUpgradeFlow(plan: TenantPlanView): boolean {
|
|
|
80
82
|
return !props.isCurrentPaid && plan.price > 0;
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
|
|
85
|
+
function select(plan: TenantPlanView): void {
|
|
84
86
|
if (needsUpgradeFlow(plan)) {
|
|
85
87
|
open.value = false;
|
|
86
88
|
emit("upgrade", plan);
|
|
87
89
|
return;
|
|
88
90
|
}
|
|
91
|
+
if (isPlanDowngrade(currentPlan.value, plan, !!props.isCurrentPaid)) {
|
|
92
|
+
downgradeTarget.value = plan;
|
|
93
|
+
isDowngradeConfirmOpen.value = true;
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
void changeTo(plan);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
async function confirmDowngrade(): Promise<void> {
|
|
100
|
+
if (!downgradeTarget.value) return;
|
|
101
|
+
await changeTo(downgradeTarget.value);
|
|
102
|
+
isDowngradeConfirmOpen.value = false;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
async function changeTo(plan: TenantPlanView): Promise<void> {
|
|
89
106
|
pendingPlanRequest.value = plan._id;
|
|
90
107
|
try {
|
|
91
108
|
const result = await changePlan(plan._id);
|
|
@@ -249,6 +266,79 @@ async function select(plan: TenantPlanView): Promise<void> {
|
|
|
249
266
|
{{ $t("saas.workspace.plan.comparison.close") }}
|
|
250
267
|
</UButton>
|
|
251
268
|
</div>
|
|
269
|
+
|
|
270
|
+
<UModal
|
|
271
|
+
v-model:open="isDowngradeConfirmOpen"
|
|
272
|
+
:title="
|
|
273
|
+
$t('saas.workspace.plan.downgrade.title', {
|
|
274
|
+
plan: downgradeTarget?.name ?? '',
|
|
275
|
+
})
|
|
276
|
+
"
|
|
277
|
+
:dismissible="pendingPlanRequest === null"
|
|
278
|
+
>
|
|
279
|
+
<template #body>
|
|
280
|
+
<div v-if="downgradeTarget" class="flex flex-col gap-3 text-sm">
|
|
281
|
+
<p>
|
|
282
|
+
{{
|
|
283
|
+
$t("saas.workspace.plan.downgrade.description", {
|
|
284
|
+
plan: downgradeTarget.name,
|
|
285
|
+
})
|
|
286
|
+
}}
|
|
287
|
+
</p>
|
|
288
|
+
<UAlert
|
|
289
|
+
color="warning"
|
|
290
|
+
variant="subtle"
|
|
291
|
+
icon="i-ph-warning"
|
|
292
|
+
:title="$t('saas.workspace.plan.downgrade.warning_title')"
|
|
293
|
+
>
|
|
294
|
+
<template #description>
|
|
295
|
+
<ul class="list-disc space-y-1 ps-4">
|
|
296
|
+
<li>
|
|
297
|
+
{{
|
|
298
|
+
$t("saas.workspace.plan.downgrade.warning_features", {
|
|
299
|
+
plan: downgradeTarget.name,
|
|
300
|
+
})
|
|
301
|
+
}}
|
|
302
|
+
</li>
|
|
303
|
+
<li>
|
|
304
|
+
{{
|
|
305
|
+
$t("saas.workspace.plan.downgrade.warning_limits", {
|
|
306
|
+
plan: downgradeTarget.name,
|
|
307
|
+
})
|
|
308
|
+
}}
|
|
309
|
+
</li>
|
|
310
|
+
<li v-if="isFreePlan(downgradeTarget)">
|
|
311
|
+
{{ $t("saas.workspace.plan.downgrade.warning_free") }}
|
|
312
|
+
</li>
|
|
313
|
+
</ul>
|
|
314
|
+
</template>
|
|
315
|
+
</UAlert>
|
|
316
|
+
</div>
|
|
317
|
+
</template>
|
|
318
|
+
<template #footer>
|
|
319
|
+
<div class="flex w-full justify-end gap-2">
|
|
320
|
+
<UButton
|
|
321
|
+
color="neutral"
|
|
322
|
+
variant="subtle"
|
|
323
|
+
:disabled="pendingPlanRequest !== null"
|
|
324
|
+
@click="isDowngradeConfirmOpen = false"
|
|
325
|
+
>
|
|
326
|
+
{{ $t("saas.workspace.plan.downgrade.cancel") }}
|
|
327
|
+
</UButton>
|
|
328
|
+
<UButton
|
|
329
|
+
color="warning"
|
|
330
|
+
:loading="pendingPlanRequest !== null"
|
|
331
|
+
@click="confirmDowngrade"
|
|
332
|
+
>
|
|
333
|
+
{{
|
|
334
|
+
$t("saas.workspace.plan.downgrade.confirm", {
|
|
335
|
+
plan: downgradeTarget?.name ?? "",
|
|
336
|
+
})
|
|
337
|
+
}}
|
|
338
|
+
</UButton>
|
|
339
|
+
</div>
|
|
340
|
+
</template>
|
|
341
|
+
</UModal>
|
|
252
342
|
</template>
|
|
253
343
|
</UModal>
|
|
254
344
|
</template>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TenantPlanResponse } from "./useTenantPlan";
|
|
2
|
+
|
|
3
|
+
type ComplimentaryAccessState = Pick<
|
|
4
|
+
TenantPlanResponse,
|
|
5
|
+
"isPlanChangeLocked" | "freeUntil"
|
|
6
|
+
>;
|
|
7
|
+
|
|
8
|
+
/** A complimentary gift still in force, with its end date when it has one. */
|
|
9
|
+
export interface ComplimentaryAccess {
|
|
10
|
+
endsAt: string | null;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* `isPlanChangeLocked` is the server applying `isComplimentaryPlanLocked`:
|
|
15
|
+
* reading it instead of comparing `freeUntil` to the browser clock keeps the
|
|
16
|
+
* billing page aligned with what the plan endpoints actually allow.
|
|
17
|
+
*/
|
|
18
|
+
export function resolveComplimentaryAccess(
|
|
19
|
+
plan: ComplimentaryAccessState | null,
|
|
20
|
+
): ComplimentaryAccess | null {
|
|
21
|
+
if (!plan?.isPlanChangeLocked) return null;
|
|
22
|
+
return { endsAt: plan.freeUntil };
|
|
23
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { PlanInterval } from "./usePlanIntervalLabel";
|
|
2
|
+
|
|
3
|
+
const FREE_PLAN_PRICE = 0;
|
|
4
|
+
|
|
5
|
+
const MONTHS_PER_INTERVAL: Record<PlanInterval, number> = {
|
|
6
|
+
month: 1,
|
|
7
|
+
year: 12,
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export interface PlanPricing {
|
|
11
|
+
price: number;
|
|
12
|
+
interval: PlanInterval;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function monthlyPrice(plan: PlanPricing): number {
|
|
16
|
+
return plan.price / MONTHS_PER_INTERVAL[plan.interval];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Whether choosing `target` lowers what the workspace pays, which is when the
|
|
21
|
+
* customer must confirm before losing the features and limits of the current
|
|
22
|
+
* plan. Mirrors the server's `isDowngrade`; the paid-to-free fallback covers a
|
|
23
|
+
* current plan that is no longer offered and so is missing from the catalog.
|
|
24
|
+
*
|
|
25
|
+
* @param current Current plan as listed in the catalog, if it is listed
|
|
26
|
+
* @param target Plan the customer picked
|
|
27
|
+
* @param isCurrentPaid Whether the workspace currently pays for its plan
|
|
28
|
+
* @returns True when the change is a downgrade
|
|
29
|
+
*/
|
|
30
|
+
export function isPlanDowngrade(
|
|
31
|
+
current: PlanPricing | null,
|
|
32
|
+
target: PlanPricing,
|
|
33
|
+
isCurrentPaid: boolean,
|
|
34
|
+
): boolean {
|
|
35
|
+
if (current) return monthlyPrice(target) < monthlyPrice(current);
|
|
36
|
+
return isCurrentPaid && target.price === FREE_PLAN_PRICE;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Whether a plan is free.
|
|
41
|
+
*
|
|
42
|
+
* @param plan Plan to inspect
|
|
43
|
+
* @returns True when the plan costs nothing
|
|
44
|
+
*/
|
|
45
|
+
export function isFreePlan(plan: PlanPricing): boolean {
|
|
46
|
+
return plan.price === FREE_PLAN_PRICE;
|
|
47
|
+
}
|
|
@@ -697,6 +697,14 @@
|
|
|
697
697
|
"invoice": "Invoice",
|
|
698
698
|
"credit_note": "Credit note"
|
|
699
699
|
},
|
|
700
|
+
"status": {
|
|
701
|
+
"draft": "Draft",
|
|
702
|
+
"open": "Open",
|
|
703
|
+
"paid": "Paid",
|
|
704
|
+
"void": "Void",
|
|
705
|
+
"uncollectible": "Uncollectible",
|
|
706
|
+
"issued": "Issued"
|
|
707
|
+
},
|
|
700
708
|
"lines": {
|
|
701
709
|
"empty": "No line item."
|
|
702
710
|
}
|
|
@@ -713,6 +721,10 @@
|
|
|
713
721
|
"status": "Status",
|
|
714
722
|
"issued_at": "Issued at"
|
|
715
723
|
},
|
|
724
|
+
"status": {
|
|
725
|
+
"issued": "Issued",
|
|
726
|
+
"void": "Void"
|
|
727
|
+
},
|
|
716
728
|
"modal": {
|
|
717
729
|
"title": "Issue a credit note",
|
|
718
730
|
"description": "Invoice {number} (max refundable: {max}). Enter an amount in cents, pick a mode and provide a reason.",
|
|
@@ -1005,7 +1017,10 @@
|
|
|
1005
1017
|
"add": "Upgrade to a paid plan",
|
|
1006
1018
|
"owner_only": "The payment method is managed by the workspace owner.",
|
|
1007
1019
|
"update_note": "The last charge on this card was declined: update it in the Stripe portal, then settle the unpaid invoice.",
|
|
1008
|
-
"free_note": "Verified — never charged while the workspace stays on a free plan."
|
|
1020
|
+
"free_note": "Verified — never charged while the workspace stays on a free plan.",
|
|
1021
|
+
"complimentary": "complimentary",
|
|
1022
|
+
"complimentary_note": "Complimentary access: no card is needed.",
|
|
1023
|
+
"complimentary_until_note": "Complimentary access until {date}: no card is needed until then."
|
|
1009
1024
|
},
|
|
1010
1025
|
"billing_email": {
|
|
1011
1026
|
"label": "Billing e-mail",
|
|
@@ -1113,6 +1128,16 @@
|
|
|
1113
1128
|
"card_title": "Payment card",
|
|
1114
1129
|
"card_note": "The next step opens Stripe's secure payment page, where the card is entered and charged. It is never stored on our side.",
|
|
1115
1130
|
"confirm": "Continue to payment"
|
|
1131
|
+
},
|
|
1132
|
+
"downgrade": {
|
|
1133
|
+
"title": "Downgrade to {plan}?",
|
|
1134
|
+
"description": "Once the change takes effect, the workspace is held to the features and limits of {plan}.",
|
|
1135
|
+
"warning_title": "What you lose",
|
|
1136
|
+
"warning_features": "Features not included in {plan} are switched off, and role permissions that rely on them are removed.",
|
|
1137
|
+
"warning_limits": "Members, resources and data beyond the limits of {plan} may be restricted, and data over those limits may be lost.",
|
|
1138
|
+
"warning_free": "The paid subscription ends: paid features stop and the workspace is no longer billed.",
|
|
1139
|
+
"cancel": "Keep my current plan",
|
|
1140
|
+
"confirm": "Downgrade to {plan}"
|
|
1116
1141
|
}
|
|
1117
1142
|
},
|
|
1118
1143
|
"data_export": {
|
|
@@ -1318,6 +1343,40 @@
|
|
|
1318
1343
|
"recheck": "Check again",
|
|
1319
1344
|
"logout": "Back to login",
|
|
1320
1345
|
"load_error": "Could not check the workspace status. Please try again."
|
|
1346
|
+
},
|
|
1347
|
+
"automation": {
|
|
1348
|
+
"trigger": {
|
|
1349
|
+
"subscription_started": {
|
|
1350
|
+
"name": "Subscription started",
|
|
1351
|
+
"description": "Fires when a Stripe checkout completes and a workspace subscription becomes active or trialing"
|
|
1352
|
+
},
|
|
1353
|
+
"subscription_cancelled": {
|
|
1354
|
+
"name": "Subscription cancelled",
|
|
1355
|
+
"description": "Fires when a workspace subscription is cancelled in Stripe"
|
|
1356
|
+
},
|
|
1357
|
+
"payment_failed": {
|
|
1358
|
+
"name": "Payment failed",
|
|
1359
|
+
"description": "Fires when an invoice payment fails and the workspace goes past due"
|
|
1360
|
+
},
|
|
1361
|
+
"trial_ending": {
|
|
1362
|
+
"name": "Trial ending",
|
|
1363
|
+
"description": "Fires when a workspace trial is about to end"
|
|
1364
|
+
},
|
|
1365
|
+
"tenant_deleted": {
|
|
1366
|
+
"name": "Workspace deleted",
|
|
1367
|
+
"description": "Fires when a workspace is deleted"
|
|
1368
|
+
}
|
|
1369
|
+
},
|
|
1370
|
+
"action": {
|
|
1371
|
+
"suspend_workspace": {
|
|
1372
|
+
"name": "Suspend workspace",
|
|
1373
|
+
"description": "Suspend a workspace (pause Stripe collection) or reactivate it when suspended is false"
|
|
1374
|
+
},
|
|
1375
|
+
"notify_tenant_owners": {
|
|
1376
|
+
"name": "Notify workspace owners",
|
|
1377
|
+
"description": "Send an in-app notification to all owners of a workspace"
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1321
1380
|
}
|
|
1322
1381
|
}
|
|
1323
1382
|
}
|
|
@@ -697,6 +697,14 @@
|
|
|
697
697
|
"invoice": "Facture",
|
|
698
698
|
"credit_note": "Avoir"
|
|
699
699
|
},
|
|
700
|
+
"status": {
|
|
701
|
+
"draft": "Brouillon",
|
|
702
|
+
"open": "À régler",
|
|
703
|
+
"paid": "Payée",
|
|
704
|
+
"void": "Annulée",
|
|
705
|
+
"uncollectible": "Irrécouvrable",
|
|
706
|
+
"issued": "Émis"
|
|
707
|
+
},
|
|
700
708
|
"lines": {
|
|
701
709
|
"empty": "Aucune ligne."
|
|
702
710
|
}
|
|
@@ -713,6 +721,10 @@
|
|
|
713
721
|
"status": "Statut",
|
|
714
722
|
"issued_at": "Émise le"
|
|
715
723
|
},
|
|
724
|
+
"status": {
|
|
725
|
+
"issued": "Émis",
|
|
726
|
+
"void": "Annulé"
|
|
727
|
+
},
|
|
716
728
|
"modal": {
|
|
717
729
|
"title": "Émettre une note de crédit",
|
|
718
730
|
"description": "Facture {number} (montant max remboursable : {max}). Saisissez un montant en centimes, choisissez le mode et indiquez un motif.",
|
|
@@ -1005,7 +1017,10 @@
|
|
|
1005
1017
|
"add": "Passer à un plan payant",
|
|
1006
1018
|
"owner_only": "Le moyen de paiement est géré par le propriétaire du workspace.",
|
|
1007
1019
|
"update_note": "Le dernier prélèvement sur cette carte a été refusé : mettez-la à jour dans le portail Stripe, puis réglez la facture impayée.",
|
|
1008
|
-
"free_note": "Vérifiée — jamais débitée tant que le workspace reste sur un plan gratuit."
|
|
1020
|
+
"free_note": "Vérifiée — jamais débitée tant que le workspace reste sur un plan gratuit.",
|
|
1021
|
+
"complimentary": "offert",
|
|
1022
|
+
"complimentary_note": "Accès offert : aucune carte n'est nécessaire.",
|
|
1023
|
+
"complimentary_until_note": "Accès offert jusqu'au {date} : aucune carte n'est nécessaire d'ici là."
|
|
1009
1024
|
},
|
|
1010
1025
|
"billing_email": {
|
|
1011
1026
|
"label": "E-mail de facturation",
|
|
@@ -1113,6 +1128,16 @@
|
|
|
1113
1128
|
"card_title": "Carte bancaire",
|
|
1114
1129
|
"card_note": "L'étape suivante ouvre la page de paiement sécurisée de Stripe, où la carte est saisie et débitée. Elle n'est jamais stockée chez nous.",
|
|
1115
1130
|
"confirm": "Continuer vers le paiement"
|
|
1131
|
+
},
|
|
1132
|
+
"downgrade": {
|
|
1133
|
+
"title": "Passer au plan {plan} ?",
|
|
1134
|
+
"description": "Une fois le changement effectif, le workspace sera soumis aux fonctionnalités et aux limites du plan {plan}.",
|
|
1135
|
+
"warning_title": "Ce que vous perdez",
|
|
1136
|
+
"warning_features": "Les fonctionnalités non incluses dans le plan {plan} sont désactivées, et les permissions de rôle qui en dépendent sont retirées.",
|
|
1137
|
+
"warning_limits": "Les membres, ressources et données au-delà des limites du plan {plan} peuvent être restreints, et les données qui les dépassent peuvent être perdues.",
|
|
1138
|
+
"warning_free": "L'abonnement payant prend fin : les fonctionnalités payantes s'arrêtent et le workspace n'est plus facturé.",
|
|
1139
|
+
"cancel": "Conserver mon plan actuel",
|
|
1140
|
+
"confirm": "Passer au plan {plan}"
|
|
1116
1141
|
}
|
|
1117
1142
|
},
|
|
1118
1143
|
"data_export": {
|
|
@@ -1318,6 +1343,40 @@
|
|
|
1318
1343
|
"recheck": "Vérifier à nouveau",
|
|
1319
1344
|
"logout": "Retour à la connexion",
|
|
1320
1345
|
"load_error": "Impossible de vérifier le statut du workspace. Veuillez réessayer."
|
|
1346
|
+
},
|
|
1347
|
+
"automation": {
|
|
1348
|
+
"trigger": {
|
|
1349
|
+
"subscription_started": {
|
|
1350
|
+
"name": "Abonnement démarré",
|
|
1351
|
+
"description": "Se déclenche quand un paiement Stripe aboutit et que l'abonnement d'un workspace devient actif ou passe en essai"
|
|
1352
|
+
},
|
|
1353
|
+
"subscription_cancelled": {
|
|
1354
|
+
"name": "Abonnement annulé",
|
|
1355
|
+
"description": "Se déclenche quand l'abonnement d'un workspace est annulé dans Stripe"
|
|
1356
|
+
},
|
|
1357
|
+
"payment_failed": {
|
|
1358
|
+
"name": "Échec de paiement",
|
|
1359
|
+
"description": "Se déclenche quand le paiement d'une facture échoue et que le workspace passe en impayé"
|
|
1360
|
+
},
|
|
1361
|
+
"trial_ending": {
|
|
1362
|
+
"name": "Fin d'essai proche",
|
|
1363
|
+
"description": "Se déclenche quand l'essai d'un workspace arrive bientôt à son terme"
|
|
1364
|
+
},
|
|
1365
|
+
"tenant_deleted": {
|
|
1366
|
+
"name": "Workspace supprimé",
|
|
1367
|
+
"description": "Se déclenche quand un workspace est supprimé"
|
|
1368
|
+
}
|
|
1369
|
+
},
|
|
1370
|
+
"action": {
|
|
1371
|
+
"suspend_workspace": {
|
|
1372
|
+
"name": "Suspendre le workspace",
|
|
1373
|
+
"description": "Suspend un workspace (met en pause les prélèvements Stripe) ou le réactive quand suspended vaut false"
|
|
1374
|
+
},
|
|
1375
|
+
"notify_tenant_owners": {
|
|
1376
|
+
"name": "Notifier les propriétaires du workspace",
|
|
1377
|
+
"description": "Envoie une notification dans l'application à tous les propriétaires d'un workspace"
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1321
1380
|
}
|
|
1322
1381
|
}
|
|
1323
1382
|
}
|