@antelopejs/dms-saas 0.9.1 → 0.10.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 +21 -25
- package/dist/auth/subscription-access-gate.d.ts +4 -0
- package/dist/auth/subscription-access-gate.js +7 -2
- package/dist/auth/subscription-access-gate.js.map +1 -1
- package/dist/automation/index.d.ts +10 -10
- package/dist/automation/index.js +4 -1
- package/dist/automation/index.js.map +1 -1
- package/dist/data-api/platformOwner/admin-user-invoices.d.ts +3 -3
- package/dist/data-api/platformOwner/admin-user-workspaces.d.ts +3 -3
- package/dist/data-api/platformOwner/credit-note-rows.js +7 -7
- package/dist/data-api/platformOwner/credit-note-rows.js.map +1 -1
- package/dist/data-api/platformOwner/credit-notes.d.ts +4 -4
- package/dist/data-api/platformOwner/features.d.ts +32 -10
- package/dist/data-api/platformOwner/invitations.d.ts +2 -2
- package/dist/data-api/platformOwner/invoice-options.d.ts +1 -1
- package/dist/data-api/platformOwner/invoices.d.ts +6 -6
- package/dist/data-api/platformOwner/members.d.ts +4 -3
- package/dist/data-api/platformOwner/plan-migrations.d.ts +4 -4
- package/dist/data-api/platformOwner/plans.d.ts +7 -7
- package/dist/data-api/platformOwner/segments.d.ts +4 -3
- package/dist/data-api/platformOwner/segments.js.map +1 -1
- package/dist/data-api/platformOwner/table-scope.d.ts +1 -1
- package/dist/data-api/platformOwner/users.d.ts +4 -4
- package/dist/data-api/platformOwner/workspaces.d.ts +5 -5
- package/dist/data-api/tenant/tenant-invoices.d.ts +4 -4
- package/dist/data-api/tenant/tenant-invoices.js +2 -3
- package/dist/data-api/tenant/tenant-invoices.js.map +1 -1
- package/dist/hooks/register.js +2 -1
- package/dist/hooks/register.js.map +1 -1
- package/dist/hooks/tenant-export.d.ts +1 -1
- package/dist/hooks/tenant-export.js.map +1 -1
- package/dist/invoice-line-items/recovery/process.js +7 -8
- package/dist/invoice-line-items/recovery/process.js.map +1 -1
- package/dist/invoice-line-items/recovery/task.model.d.ts +7 -5
- package/dist/metrics/activity-sources.js.map +1 -1
- package/dist/metrics/activity.js +19 -15
- package/dist/metrics/activity.js.map +1 -1
- package/dist/metrics/revenue.js +8 -5
- package/dist/metrics/revenue.js.map +1 -1
- package/dist/notifications/recipients.js +2 -1
- package/dist/notifications/recipients.js.map +1 -1
- package/dist/operator-actions/db/lifecycle-delivery.model.d.ts +7 -5
- package/dist/operator-actions/db/operator-action.model.d.ts +7 -5
- package/dist/operator-actions/journal.js +12 -21
- package/dist/operator-actions/journal.js.map +1 -1
- package/dist/operator-billing/billing-rules.d.ts +4 -1
- package/dist/operator-billing/billing-rules.js +16 -6
- package/dist/operator-billing/billing-rules.js.map +1 -1
- package/dist/operator-billing/legal-documents-store.js +1 -1
- package/dist/operator-billing/legal-documents-store.js.map +1 -1
- package/dist/pages/platform/plans/index.js.map +1 -1
- package/dist/pages/tenant/general.d.ts +1 -0
- package/dist/pages/tenant/general.js +3 -3
- package/dist/pages/tenant/general.js.map +1 -1
- package/dist/plan-changes/deferred.js +1 -1
- package/dist/plan-changes/deferred.js.map +1 -1
- package/dist/plan-changes/pending-target.d.ts +1 -1
- package/dist/plan-changes/pending-target.js +2 -3
- package/dist/plan-changes/pending-target.js.map +1 -1
- package/dist/plans/migration-blocks.js +6 -5
- package/dist/plans/migration-blocks.js.map +1 -1
- package/dist/plans/plan-access-type.d.ts +20 -7
- package/dist/plans/plan-access-type.js +7 -1
- package/dist/plans/plan-access-type.js.map +1 -1
- package/dist/plans/plan-diff.js +19 -14
- package/dist/plans/plan-diff.js.map +1 -1
- package/dist/plans/plan-write.d.ts +7 -4
- package/dist/plans/plan-write.js +28 -5
- package/dist/plans/plan-write.js.map +1 -1
- package/dist/plans/stripe-sync.js +2 -0
- package/dist/plans/stripe-sync.js.map +1 -1
- package/dist/routes/platformOwner/billing-settings.d.ts +7 -3
- package/dist/routes/platformOwner/billing-settings.js +3 -4
- package/dist/routes/platformOwner/billing-settings.js.map +1 -1
- package/dist/routes/platformOwner/billing-stats.js.map +1 -1
- package/dist/routes/platformOwner/credit-notes-issue.js +3 -4
- package/dist/routes/platformOwner/credit-notes-issue.js.map +1 -1
- package/dist/routes/platformOwner/plan-migrations.js +3 -3
- package/dist/routes/platformOwner/plan-migrations.js.map +1 -1
- package/dist/routes/platformOwner/plans.d.ts +26 -0
- package/dist/routes/platformOwner/plans.js +6 -2
- package/dist/routes/platformOwner/plans.js.map +1 -1
- package/dist/routes/platformOwner/segments.d.ts +2 -1
- package/dist/routes/platformOwner/segments.js.map +1 -1
- package/dist/routes/platformOwner/workspace-operator-actions.d.ts +6 -5
- package/dist/routes/platformOwner/workspace-operator-actions.js.map +1 -1
- package/dist/routes/public/public-plan-catalog.d.ts +2 -1
- package/dist/routes/public/public-plan-catalog.js.map +1 -1
- package/dist/routes/public/register.js +3 -1
- package/dist/routes/public/register.js.map +1 -1
- package/dist/routes/tenant/billing-pay-invoice.d.ts +3 -4
- package/dist/routes/tenant/billing-pay-invoice.js +15 -17
- package/dist/routes/tenant/billing-pay-invoice.js.map +1 -1
- package/dist/routes/tenant/billing-portal.d.ts +3 -5
- package/dist/routes/tenant/billing-portal.js +13 -12
- package/dist/routes/tenant/billing-portal.js.map +1 -1
- package/dist/routes/tenant/billing-self-refund.d.ts +4 -3
- package/dist/routes/tenant/billing-self-refund.js +38 -33
- package/dist/routes/tenant/billing-self-refund.js.map +1 -1
- package/dist/routes/tenant/complimentary-banner.d.ts +3 -3
- package/dist/routes/tenant/complimentary-banner.js +4 -6
- package/dist/routes/tenant/complimentary-banner.js.map +1 -1
- package/dist/routes/tenant/tenant-billing.d.ts +3 -3
- package/dist/routes/tenant/tenant-billing.js +10 -11
- package/dist/routes/tenant/tenant-billing.js.map +1 -1
- package/dist/routes/tenant/tenant-plan-authentication.d.ts +1 -1
- package/dist/routes/tenant/tenant-plan-authentication.js +4 -4
- package/dist/routes/tenant/tenant-plan-authentication.js.map +1 -1
- package/dist/routes/tenant/tenant-plan-cancellation.d.ts +2 -3
- package/dist/routes/tenant/tenant-plan-cancellation.js +9 -7
- package/dist/routes/tenant/tenant-plan-cancellation.js.map +1 -1
- package/dist/routes/tenant/tenant-plan-checkout.js +18 -16
- package/dist/routes/tenant/tenant-plan-checkout.js.map +1 -1
- package/dist/routes/tenant/tenant-plan-ops.js +9 -8
- package/dist/routes/tenant/tenant-plan-ops.js.map +1 -1
- package/dist/routes/tenant/tenant-plan.d.ts +9 -8
- package/dist/routes/tenant/tenant-plan.js +25 -30
- package/dist/routes/tenant/tenant-plan.js.map +1 -1
- package/dist/routes/tenant/tenant-seats.d.ts +2 -3
- package/dist/routes/tenant/tenant-seats.js +4 -6
- package/dist/routes/tenant/tenant-seats.js.map +1 -1
- package/dist/routes/tenant/workspace-access.js +1 -1
- package/dist/routes/tenant/workspace-access.js.map +1 -1
- package/dist/stripe/availability.d.ts +0 -1
- package/dist/stripe/availability.js +2 -5
- package/dist/stripe/availability.js.map +1 -1
- package/dist/stripe/customer-billing.js +9 -9
- package/dist/stripe/customer-billing.js.map +1 -1
- package/dist/stripe/sync-plan.js +16 -7
- package/dist/stripe/sync-plan.js.map +1 -1
- package/dist/stripe/webhook-handlers.js +4 -1
- package/dist/stripe/webhook-handlers.js.map +1 -1
- package/dist/stripe/webhook-shared.d.ts +5 -1
- package/dist/stripe/webhook-shared.js +1 -1
- package/dist/stripe/webhook-shared.js.map +1 -1
- package/dist/stripe/workspace-checkout.d.ts +1 -1
- package/dist/stripe/workspace-checkout.js +6 -12
- package/dist/stripe/workspace-checkout.js.map +1 -1
- package/dist/upcoming-invoice/db/preview-cache.model.d.ts +7 -5
- package/dist/upcoming-invoice/invalidation.js +1 -1
- package/dist/upcoming-invoice/invalidation.js.map +1 -1
- package/dist/upcoming-invoice/pricing.js +2 -11
- package/dist/upcoming-invoice/pricing.js.map +1 -1
- package/dist/utils/parse-future-date.d.ts +2 -1
- package/dist/utils/parse-future-date.js.map +1 -1
- package/dist/utils/rejection-reasons.d.ts +1 -0
- package/dist/utils/rejection-reasons.js +12 -0
- package/dist/utils/rejection-reasons.js.map +1 -0
- package/dist/utils/row-instance.js +5 -1
- package/dist/utils/row-instance.js.map +1 -1
- package/dist/utils/segment-conditions-type.d.ts +8 -9
- package/dist/utils/segment-conditions-type.js +2 -1
- package/dist/utils/segment-conditions-type.js.map +1 -1
- package/dist/utils/segment-evaluator.d.ts +7 -3
- package/dist/utils/segment-evaluator.js +49 -33
- package/dist/utils/segment-evaluator.js.map +1 -1
- package/dist/utils/segment-explain.d.ts +2 -1
- package/dist/utils/segment-explain.js.map +1 -1
- package/dist/utils/segment-matching.d.ts +2 -2
- package/dist/utils/segment-preview.js.map +1 -1
- package/dist/utils/segment-validation.d.ts +5 -4
- package/dist/utils/segment-validation.js +57 -32
- package/dist/utils/segment-validation.js.map +1 -1
- package/dist/utils/status-vocabulary.js +2 -1
- package/dist/utils/status-vocabulary.js.map +1 -1
- package/dist/utils/zod-json.d.ts +3 -0
- package/dist/utils/zod-json.js +21 -0
- package/dist/utils/zod-json.js.map +1 -0
- package/dist/workers/plan-migration.js +6 -1
- package/dist/workers/plan-migration.js.map +1 -1
- package/dist/workspaces/billing-identity.d.ts +1 -1
- package/dist/workspaces/billing-identity.js +5 -3
- package/dist/workspaces/billing-identity.js.map +1 -1
- package/dist/workspaces/db/provisioning-attempt.model.d.ts +7 -5
- package/dist/workspaces/db/trial-identity.model.d.ts +7 -5
- package/dist/workspaces/default-member-role.js +14 -10
- package/dist/workspaces/default-member-role.js.map +1 -1
- package/dist/workspaces/operator-creation.d.ts +6 -5
- package/dist/workspaces/operator-creation.js.map +1 -1
- package/dist/workspaces/owner-invitation-email.js.map +1 -1
- package/dist/workspaces/registration-extras.d.ts +2 -1
- package/dist/workspaces/registration-extras.js.map +1 -1
- package/frontend-vue/package.json +1 -1
- package/package.json +15 -15
- package/skills/dms-saas/SKILL.md +2 -1
package/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# `@antelopejs/dms-saas`
|
|
4
4
|
|
|
5
|
-
<a href="https://www.npmjs.com/package/@antelopejs/dms-saas"><img alt="npm" src="https://img.shields.io/npm/v/@antelopejs/dms-saas?style=for-the-badge&labelColor=000000&color=000000"></a>
|
|
6
|
-
<a href="./LICENSE"><img alt="License" src="https://img.shields.io/npm/l/@antelopejs/dms-saas?style=for-the-badge&labelColor=000000&color=000000"></a>
|
|
7
|
-
<a href="https://discord.gg/g4pFt6eXqu"><img alt="Discord" src="https://img.shields.io/badge/Discord-18181B?logo=discord&style=for-the-badge&color=000000"></a>
|
|
8
|
-
<a href="https://dms.antelopejs.com/docs/modules/saas"><img alt="Documentation" src="https://img.shields.io/badge/Docs-18181B?style=for-the-badge&color=000000"></a>
|
|
5
|
+
<a href="https://www.npmjs.com/package/@antelopejs/dms-saas"><img alt="npm" src="https://img.shields.io/npm/v/@antelopejs/dms-saas?style=for-the-badge&labelColor=000000&color=000000" data-illustration></a>
|
|
6
|
+
<a href="./LICENSE"><img alt="License" src="https://img.shields.io/npm/l/@antelopejs/dms-saas?style=for-the-badge&labelColor=000000&color=000000" data-illustration></a>
|
|
7
|
+
<a href="https://discord.gg/g4pFt6eXqu"><img alt="Discord" src="https://img.shields.io/badge/Discord-18181B?logo=discord&style=for-the-badge&color=000000" data-illustration></a>
|
|
8
|
+
<a href="https://dms.antelopejs.com/docs/modules/saas"><img alt="Documentation" src="https://img.shields.io/badge/Docs-18181B?style=for-the-badge&color=000000" data-illustration></a>
|
|
9
9
|
|
|
10
10
|
Sign-up, plans, Stripe billing and a back office for a multi-tenant AntelopeJS DMS.
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
14
|
-

|
|
15
15
|
|
|
16
16
|
## What it does
|
|
17
17
|
|
|
@@ -23,7 +23,7 @@ Sign-up, plans, Stripe billing and a back office for a multi-tenant AntelopeJS D
|
|
|
23
23
|
|
|
24
24
|
## Install
|
|
25
25
|
|
|
26
|
-
Run the AntelopeJS CLI from the root of a project that loads `@antelopejs/dms` in multi-tenant mode, with an e-mail module and a file storage:
|
|
26
|
+
Run the AntelopeJS CLI from the root of a project that loads `@antelopejs/dms` in multi-tenant mode, with a database module, an e-mail module and a file storage:
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
29
|
ajs project modules add @antelopejs/dms-saas
|
|
@@ -35,6 +35,8 @@ Give the module its Stripe keys from the environment:
|
|
|
35
35
|
|
|
36
36
|
```ts
|
|
37
37
|
// antelope.config.ts
|
|
38
|
+
import { defineConfig } from "@antelopejs/interface-core/config";
|
|
39
|
+
|
|
38
40
|
export default defineConfig({
|
|
39
41
|
name: "my-saas",
|
|
40
42
|
envOverrides: {
|
|
@@ -44,7 +46,7 @@ export default defineConfig({
|
|
|
44
46
|
},
|
|
45
47
|
modules: {
|
|
46
48
|
"dms-saas": {
|
|
47
|
-
source: { type: "package", package: "@antelopejs/dms-saas", version: "^0.
|
|
49
|
+
source: { type: "package", package: "@antelopejs/dms-saas", version: "^0.9.0" },
|
|
48
50
|
config: {
|
|
49
51
|
stripe: {
|
|
50
52
|
secretKey: "sk_test_placeholder",
|
|
@@ -58,7 +60,7 @@ export default defineConfig({
|
|
|
58
60
|
});
|
|
59
61
|
```
|
|
60
62
|
|
|
61
|
-
Then point a Stripe webhook at `https://<api>/api/saas/webhooks/stripe`,
|
|
63
|
+
Then point a Stripe webhook at `https://<api>/api/saas/webhooks/stripe`, and publish a free plan in **Modules › SaaS › Plans**. Registration opens every workspace on that plan. With placeholder keys, the module still runs, and the blocks that need Stripe say so. For a deployment without Stripe, also set `registration.paymentMethod` to `none`, or the registration screen keeps its card step.
|
|
62
64
|
|
|
63
65
|
## Compatibility
|
|
64
66
|
|
|
@@ -66,27 +68,21 @@ Then point a Stripe webhook at `https://<api>/api/saas/webhooks/stripe`, set `DM
|
|
|
66
68
|
|
|
67
69
|
| Package | Supported | Tested with |
|
|
68
70
|
| ------------------------------------------- | ----------------- | ----------- |
|
|
69
|
-
| `@antelopejs/interface-api` | `>=0.0
|
|
70
|
-
| `@antelopejs/interface-api-util` | `>=0.
|
|
71
|
-
| `@antelopejs/interface-core` | `>=0.
|
|
72
|
-
| `@antelopejs/interface-data-api` | `>=0.
|
|
73
|
-
| `@antelopejs/interface-database` | `>=0.
|
|
74
|
-
| `@antelopejs/interface-database-decorators` | `>=0.
|
|
75
|
-
| `@antelopejs/interface-dms` | `>=0.
|
|
76
|
-
| `@antelopejs/interface-dms-automation` | `>=0.
|
|
71
|
+
| `@antelopejs/interface-api` | `>=0.3.0 <1.0.0` | `0.3.0` |
|
|
72
|
+
| `@antelopejs/interface-api-util` | `>=0.3.0 <1.0.0` | `0.3.0` |
|
|
73
|
+
| `@antelopejs/interface-core` | `>=0.4.0 <1.0.0` | `0.4.0` |
|
|
74
|
+
| `@antelopejs/interface-data-api` | `>=0.6.1 <1.0.0` | `0.6.1` |
|
|
75
|
+
| `@antelopejs/interface-database` | `>=0.3.0 <1.0.0` | `0.3.0` |
|
|
76
|
+
| `@antelopejs/interface-database-decorators` | `>=0.2.0 <1.0.0` | `0.2.0` |
|
|
77
|
+
| `@antelopejs/interface-dms` | `>=0.12.0 <1.0.0` | `0.12.0` |
|
|
78
|
+
| `@antelopejs/interface-dms-automation` | `>=0.6.0 <1.0.0` | `0.6.0` |
|
|
77
79
|
| `@antelopejs/interface-dms-saas` | `workspace:^` | `0.6.1` |
|
|
78
80
|
|
|
79
81
|
<!-- antelopejs-docs-compat:end -->
|
|
80
82
|
|
|
81
|
-
|
|
82
|
-
| --- | --- |
|
|
83
|
-
| `@antelopejs/dms` | `>=0.13.1 <1.0.0` |
|
|
84
|
-
| `@antelopejs/interface-dms` | `>=0.9.0 <1.0.0` |
|
|
85
|
-
| `@antelopejs/dms-frontend` (renderer) | `>=0.9.1 <0.10.0` |
|
|
86
|
-
| `@antelopejs/interface-dms-saas` | `>=0.6.0 <0.7.0` |
|
|
87
|
-
| Stripe API version | `2026-08-26.dahlia` |
|
|
83
|
+
The module also needs a DMS backend in a release that implements the `@antelopejs/interface-dms` range in the table above, and the `@antelopejs/dms-frontend` renderer in the range its frontend module declares in `engines["@antelopejs/dms-frontend"]` of `frontend-vue/package.json`. The `ajs dms` CLI refuses to build it with a renderer outside that range.
|
|
88
84
|
|
|
89
|
-
Before upgrading an existing database, read [Upgrading](https://dms.antelopejs.com/docs/modules/saas/faq#upgrading).
|
|
85
|
+
The module calls Stripe with the API version `2026-08-26.dahlia`. Before upgrading an existing database, read [Upgrading](https://dms.antelopejs.com/docs/modules/saas/faq#upgrading).
|
|
90
86
|
|
|
91
87
|
## Documentation
|
|
92
88
|
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import type { TenantSubscriptionStatus } from "../db";
|
|
2
2
|
export declare const PLAN_CHANGE_ACCESS_GATE_ID = "dms-saas.plan-change";
|
|
3
|
+
declare const BLOCKING_STATUS_LIST: readonly ["pending_payment", "suspended", "cancelled"];
|
|
4
|
+
export type BlockingStatus = (typeof BLOCKING_STATUS_LIST)[number];
|
|
3
5
|
export declare const BLOCKING_STATUSES: Set<"active" | "cancelled" | "suspended" | "trialing" | "past_due" | "pending_payment">;
|
|
6
|
+
export declare function isBlockingStatus(status: TenantSubscriptionStatus): status is BlockingStatus;
|
|
4
7
|
export declare const WORKSPACE_ACCESS_BLOCKED_CODE = "saas.errors.workspace.access_blocked";
|
|
5
8
|
export declare function isTenantSubscriptionBlocked(tenantId: string): Promise<{
|
|
6
9
|
blocked: boolean;
|
|
7
10
|
status?: TenantSubscriptionStatus;
|
|
8
11
|
}>;
|
|
9
12
|
export declare function registerSubscriptionAccessGate(): void;
|
|
13
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WORKSPACE_ACCESS_BLOCKED_CODE = exports.BLOCKING_STATUSES = exports.PLAN_CHANGE_ACCESS_GATE_ID = void 0;
|
|
4
|
+
exports.isBlockingStatus = isBlockingStatus;
|
|
4
5
|
exports.isTenantSubscriptionBlocked = isTenantSubscriptionBlocked;
|
|
5
6
|
exports.registerSubscriptionAccessGate = registerSubscriptionAccessGate;
|
|
6
7
|
const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
|
|
@@ -10,11 +11,15 @@ const guarded_state_1 = require("../plan-changes/guarded-state");
|
|
|
10
11
|
const GATE_ID = "dms-saas.subscription-status";
|
|
11
12
|
exports.PLAN_CHANGE_ACCESS_GATE_ID = "dms-saas.plan-change";
|
|
12
13
|
const GATE_ORDER = 100;
|
|
13
|
-
|
|
14
|
+
const BLOCKING_STATUS_LIST = [
|
|
14
15
|
"pending_payment",
|
|
15
16
|
"suspended",
|
|
16
17
|
"cancelled",
|
|
17
|
-
]
|
|
18
|
+
];
|
|
19
|
+
exports.BLOCKING_STATUSES = new Set(BLOCKING_STATUS_LIST);
|
|
20
|
+
function isBlockingStatus(status) {
|
|
21
|
+
return exports.BLOCKING_STATUSES.has(status);
|
|
22
|
+
}
|
|
18
23
|
exports.WORKSPACE_ACCESS_BLOCKED_CODE = "saas.errors.workspace.access_blocked";
|
|
19
24
|
async function isTenantSubscriptionBlocked(tenantId) {
|
|
20
25
|
const tenantSubscriptionModel = (0, interface_database_decorators_1.GetModel)(db_1.TenantSubscriptionModel, tenantId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-access-gate.js","sourceRoot":"","sources":["../../src/auth/subscription-access-gate.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"subscription-access-gate.js","sourceRoot":"","sources":["../../src/auth/subscription-access-gate.ts"],"names":[],"mappings":";;;AAuBA,4CAIC;AAUD,kEAaC;AAED,wEA0BC;AA9ED,6FAAqE;AACrE,2EAAmF;AAEnF,8BAAgD;AAChD,iEAA2E;AAE3E,MAAM,OAAO,GAAG,8BAA8B,CAAC;AAClC,QAAA,0BAA0B,GAAG,sBAAsB,CAAC;AACjE,MAAM,UAAU,GAAG,GAAG,CAA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AAE,IAAI,EAAE,CAAC;QAC3B,CAAC;KACF,CAAC,CAAC;IACH,IAAA,wCAAwB,EAAC;QACvB,EAAE,EAAE,kCAA0B;QAC9B,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE;YAChC,MAAM,YAAY,GAAG,MAAM,IAAA,wCAAQ,EACjC,4BAAuB,EACvB,QAAQ,CACT,CAAC,OAAO,EAAE,CAAC;YACZ,IAAI,YAAY,IAAI,IAAA,0CAA0B,EAAC,YAAY,CAAC,EAAE,CAAC;gBAC7D,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,qCAA6B,EAAE,CAAC;YACjE,CAAC;YACD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;QAC3B,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type SubscriptionStartedEvent = {
|
|
2
2
|
tenantId: string;
|
|
3
3
|
planId: string | null;
|
|
4
4
|
status: string;
|
|
5
5
|
stripeSubscriptionId: string;
|
|
6
6
|
trialConsumptionRecorded: boolean;
|
|
7
7
|
at: string;
|
|
8
|
-
}
|
|
9
|
-
export
|
|
8
|
+
};
|
|
9
|
+
export type SubscriptionCancelledEvent = {
|
|
10
10
|
tenantId: string;
|
|
11
11
|
stripeSubscriptionId: string;
|
|
12
12
|
at: string;
|
|
13
|
-
}
|
|
14
|
-
export
|
|
13
|
+
};
|
|
14
|
+
export type PaymentFailedEvent = {
|
|
15
15
|
tenantId: string;
|
|
16
16
|
invoiceId: string;
|
|
17
17
|
invoiceNumber: string | null;
|
|
18
18
|
amountDue: number;
|
|
19
19
|
currency: string;
|
|
20
20
|
at: string;
|
|
21
|
-
}
|
|
22
|
-
export
|
|
21
|
+
};
|
|
22
|
+
export type TrialEndingEvent = {
|
|
23
23
|
tenantId: string;
|
|
24
24
|
trialEndsAt: string | null;
|
|
25
25
|
at: string;
|
|
26
|
-
}
|
|
27
|
-
export
|
|
26
|
+
};
|
|
27
|
+
export type TenantDeletedEvent = {
|
|
28
28
|
tenantId: string;
|
|
29
29
|
at: string;
|
|
30
30
|
operationId?: string;
|
|
31
|
-
}
|
|
31
|
+
};
|
|
32
32
|
interface AutomationEventPayloads {
|
|
33
33
|
"saas.subscription-started": SubscriptionStartedEvent;
|
|
34
34
|
"saas.subscription-cancelled": SubscriptionCancelledEvent;
|
package/dist/automation/index.js
CHANGED
|
@@ -61,7 +61,10 @@ function createEventTrigger(spec) {
|
|
|
61
61
|
return listener;
|
|
62
62
|
},
|
|
63
63
|
async deactivate(handle) {
|
|
64
|
-
listenersFor(spec.event)
|
|
64
|
+
const listeners = listenersFor(spec.event);
|
|
65
|
+
const listener = [...listeners].find((candidate) => candidate === handle);
|
|
66
|
+
if (listener)
|
|
67
|
+
listeners.delete(listener);
|
|
65
68
|
},
|
|
66
69
|
};
|
|
67
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/automation/index.ts"],"names":[],"mappings":";;AAgGA,kDAWC;AAGD,wDAKC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/automation/index.ts"],"names":[],"mappings":";;AAgGA,kDAWC;AAGD,wDAKC;AA6ND,0DAOC;AAED,8DAOC;AAhWD,6CAAyC;AACzC,mFAQ8C;AAC9C,oDAG0B;AAC1B,0DAG6B;AA0D7B,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;IACn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AM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,IAAA,8CAAmB,EAAC,OAAO,CAAC,CAAC;IAC/B,CAAC;IACD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,IAAA,6CAAkB,EAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC;AAED,SAAgB,yBAAyB;IACvC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,IAAA,gDAAqB,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACpC,CAAC;IACD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,IAAA,+CAAoB,EAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAClC,CAAC;AACH,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Invoice, InvoiceModel } from "../../db";
|
|
2
2
|
declare const adminUserInvoicesDataAPI_base: import("@antelopejs/interface-core/decorators").Class<import("@antelopejs/interface-data-api").ExtractDefCallbacks<{
|
|
3
|
-
get: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
4
|
-
list: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
5
|
-
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<
|
|
3
|
+
get: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-data-api/metadata").RowFields, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-dms/auth/db").User, import("@antelopejs/interface-api").RequestContext, string | undefined, string | undefined, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
4
|
+
list: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/base").TableViewListPage, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
5
|
+
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/base").TableViewListPage, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
6
6
|
count: import("@antelopejs/interface-data-api").DataControllerCallback;
|
|
7
7
|
}> & {
|
|
8
8
|
table: Invoice;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TenantMember, TenantMemberModel } from "@antelopejs/interface-dms/db";
|
|
2
2
|
declare const adminUserWorkspacesDataAPI_base: import("@antelopejs/interface-core/decorators").Class<import("@antelopejs/interface-data-api").ExtractDefCallbacks<{
|
|
3
|
-
get: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
4
|
-
list: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
5
|
-
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<
|
|
3
|
+
get: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-data-api/metadata").RowFields, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-dms/auth/db").User, import("@antelopejs/interface-api").RequestContext, string | undefined, string | undefined, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
4
|
+
list: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/base").TableViewListPage, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
5
|
+
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/base").TableViewListPage, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
6
6
|
count: import("@antelopejs/interface-data-api").DataControllerCallback;
|
|
7
7
|
}> & {
|
|
8
8
|
table: TenantMember;
|
|
@@ -20,12 +20,12 @@ exports.CREDIT_NOTE_REASONS = [
|
|
|
20
20
|
"prorated_cancellation",
|
|
21
21
|
"order_change",
|
|
22
22
|
];
|
|
23
|
-
const STRIPE_REASONS =
|
|
24
|
-
duplicate
|
|
25
|
-
fraudulent
|
|
26
|
-
order_change
|
|
27
|
-
product_unsatisfactory
|
|
28
|
-
|
|
23
|
+
const STRIPE_REASONS = new Map([
|
|
24
|
+
["duplicate", "duplicate"],
|
|
25
|
+
["fraudulent", "fraudulent"],
|
|
26
|
+
["order_change", "order_change"],
|
|
27
|
+
["product_unsatisfactory", "service_issue"],
|
|
28
|
+
]);
|
|
29
29
|
function metadataText(metadata, key) {
|
|
30
30
|
const value = metadata?.[key];
|
|
31
31
|
return (0, primitive_guards_1.isString)(value) && value.length > 0 ? value : null;
|
|
@@ -37,7 +37,7 @@ function creditNoteReason(row) {
|
|
|
37
37
|
if (metadataText(row.metadata, webhook_handlers_1.AUTO_PRORATA_METADATA_KEY)) {
|
|
38
38
|
return "prorated_cancellation";
|
|
39
39
|
}
|
|
40
|
-
return STRIPE_REASONS
|
|
40
|
+
return STRIPE_REASONS.get(row.reason) ?? null;
|
|
41
41
|
}
|
|
42
42
|
function creditNoteMemo(row) {
|
|
43
43
|
return (metadataText(row.metadata, credit_note_request_1.CREDIT_NOTE_METADATA.internalMemo) ??
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit-note-rows.js","sourceRoot":"","sources":["../../../src/data-api/platformOwner/credit-note-rows.ts"],"names":[],"mappings":";;;AAcA,sCAEC;AAmCD,4CASC;AAQD,wCAOC;AAQD,4CAKC;AAQD,sDAMC;AAtGD,6FAAqE;AACrE,iCAAyD;AACzD,oFAGoD;AACpD,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,CAAC;IACvE,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC;IAC1B,IAAI,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,4CAAyB,CAAC,EAAE,CAAC;QAC1D,OAAO,uBAAuB,CAAC;IACjC,CAAC;IACD,OAAO,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC;AAChD,CAAC;AAQD,SAAgB,cAAc,CAC5B,GAA0C;IAE1C,OAAO,CACL,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,0CAAoB,CAAC,YAAY,CAAC;QAC7D,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,CACnB,CAAC;AACJ,CAAC;AAQD,SAAgB,gBAAgB,CAC9B,GAAiC;IAEjC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,0CAAoB,CAAC,QAAQ,CAAC;QAAE,OAAO,IAAI,CAAC;IAC5E,OAAO,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,0CAAoB,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;AAC7E,CAAC;AAQM,KAAK,UAAU,qBAAqB,CACzC,QAAgB,EAChB,SAAiB;IAEjB,MAAM,OAAO,GAAG,MAAM,IAAA,wCAAQ,EAAC,iBAAY,EAAE,QAAQ,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACtE,OAAO,OAAO,EAAE,MAAM,IAAI,IAAI,CAAC;AACjC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CreditNote, CreditNoteModel } from "../../db";
|
|
2
2
|
declare const creditNotesDataAPI_base: import("@antelopejs/interface-core/decorators").Class<import("@antelopejs/interface-data-api").ExtractDefCallbacks<{
|
|
3
|
-
get: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
4
|
-
list: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
5
|
-
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<
|
|
3
|
+
get: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-data-api/metadata").RowFields, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-dms/auth/db").User, import("@antelopejs/interface-api").RequestContext, string | undefined, string | undefined, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
4
|
+
list: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/base").TableViewListPage, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
5
|
+
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/base").TableViewListPage, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
6
6
|
count: import("@antelopejs/interface-data-api").DataControllerCallback;
|
|
7
|
-
countBatch: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<any>;
|
|
7
|
+
countBatch: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<any, unknown, [ctx: any, opts: any, ...args: any[]]>;
|
|
8
8
|
}> & {
|
|
9
9
|
table: CreditNote;
|
|
10
10
|
}> & import("@antelopejs/interface-core/decorators").Class<object> & {
|
|
@@ -1,17 +1,39 @@
|
|
|
1
1
|
import { type ComposedText } from "@antelopejs/interface-dms/base";
|
|
2
2
|
import { Feature, FeatureModel } from "../../db";
|
|
3
3
|
declare const featuresDataAPI_base: import("@antelopejs/interface-core/decorators").Class<import("@antelopejs/interface-data-api").ExtractDefCallbacks<{
|
|
4
|
-
readonly get: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
5
|
-
readonly list: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
6
|
-
readonly select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<
|
|
4
|
+
readonly get: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-data-api/metadata").RowFields, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-dms/auth/db").User, import("@antelopejs/interface-api").RequestContext, string | undefined, string | undefined, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
5
|
+
readonly list: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/base").TableViewListPage, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
6
|
+
readonly select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/base").TableViewListPage, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
7
7
|
readonly count: import("@antelopejs/interface-data-api").DataControllerCallback;
|
|
8
|
-
readonly countBatch: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<any>;
|
|
9
|
-
readonly summary: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<any>;
|
|
10
|
-
readonly new: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
8
|
+
readonly countBatch: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<any, unknown, [ctx: any, opts: any, ...args: any[]]>;
|
|
9
|
+
readonly summary: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<any, unknown, [ctx: any, opts: any, ...args: any[]]>;
|
|
10
|
+
readonly new: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.NewParameters, {
|
|
11
|
+
_id: string;
|
|
12
|
+
}, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.NewParameters, import("@antelopejs/interface-data-api/components").Validation.WrittenBody, import("@antelopejs/interface-dms/auth/db").User, import("@antelopejs/interface-api").RequestContext, string | undefined, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
13
|
+
readonly edit: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.EditParameters, import("@antelopejs/interface-data-api/metadata").RowFields, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.EditParameters, import("@antelopejs/interface-data-api/components").Validation.WrittenBody, import("@antelopejs/interface-dms/auth/db").User, import("@antelopejs/interface-api").RequestContext, string | undefined, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
14
|
+
readonly delete: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.DeleteParameters, number | {
|
|
15
|
+
deleted: number;
|
|
16
|
+
}, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.DeleteParameters, Buffer<ArrayBufferLike>, import("@antelopejs/interface-dms/auth/db").User, import("@antelopejs/interface-api").RequestContext, string | undefined, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
17
|
+
readonly archive: import("@antelopejs/interface-data-api").DataControllerCallback<unknown, {
|
|
18
|
+
success: boolean;
|
|
19
|
+
archivedCount: number;
|
|
20
|
+
} | {
|
|
21
|
+
success: boolean;
|
|
22
|
+
restoredCount: number;
|
|
23
|
+
} | {
|
|
24
|
+
success: boolean;
|
|
25
|
+
archivedCount: number;
|
|
26
|
+
}, [import("@antelopejs/interface-api").RequestContext, string[], Buffer<ArrayBufferLike>, import("@antelopejs/interface-dms/auth/db").User, import("@antelopejs/interface-api").RequestContext, string | undefined, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
27
|
+
readonly restore: import("@antelopejs/interface-data-api").DataControllerCallback<unknown, {
|
|
28
|
+
success: boolean;
|
|
29
|
+
archivedCount: number;
|
|
30
|
+
} | {
|
|
31
|
+
success: boolean;
|
|
32
|
+
restoredCount: number;
|
|
33
|
+
} | {
|
|
34
|
+
success: boolean;
|
|
35
|
+
restoredCount: number;
|
|
36
|
+
}, [import("@antelopejs/interface-api").RequestContext, string[], Buffer<ArrayBufferLike>, import("@antelopejs/interface-dms/auth/db").User, import("@antelopejs/interface-api").RequestContext, string | undefined, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
15
37
|
}> & {
|
|
16
38
|
table: Feature;
|
|
17
39
|
}> & import("@antelopejs/interface-core/decorators").Class<object> & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UserInvite, UserInviteModel } from "@antelopejs/interface-dms/db";
|
|
2
2
|
declare const invitationsDataAPI_base: import("@antelopejs/interface-core/decorators").Class<import("@antelopejs/interface-data-api").ExtractDefCallbacks<{
|
|
3
|
-
get: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
4
|
-
list: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
3
|
+
get: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-data-api/metadata").RowFields, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-dms/auth/db").User, import("@antelopejs/interface-api").RequestContext, string | undefined, string | undefined, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
4
|
+
list: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/base").TableViewListPage, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
5
5
|
count: import("@antelopejs/interface-data-api").DataControllerCallback;
|
|
6
6
|
}> & {
|
|
7
7
|
table: UserInvite;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TableViewGuards } from "@antelopejs/interface-dms/base/types/guards";
|
|
2
2
|
export declare const INVOICE_LIST_OPTIONS: {
|
|
3
3
|
filters: {
|
|
4
|
-
documentType: [string,
|
|
4
|
+
documentType: [string, string];
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
7
|
export declare const INVOICE_GUARDS: TableViewGuards;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type CellSubline, type ComposedText } from "@antelopejs/interface-dms/base";
|
|
2
2
|
import { Invoice, type InvoiceLine, InvoiceModel, type InvoiceStatus } from "../../db";
|
|
3
3
|
declare const invoicesDataAPI_base: import("@antelopejs/interface-core/decorators").Class<import("@antelopejs/interface-data-api").ExtractDefCallbacks<{
|
|
4
|
-
exportStart: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters>;
|
|
5
|
-
get: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
6
|
-
list: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters>;
|
|
7
|
-
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters>;
|
|
8
|
-
count: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters>;
|
|
9
|
-
countBatch: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters>;
|
|
4
|
+
exportStart: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, unknown, [ctx: any, opts: import("@antelopejs/interface-data-api/components").Parameters.ListParameters, ...args: any[]]>;
|
|
5
|
+
get: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-data-api/metadata").RowFields, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-dms/auth/db").User, import("@antelopejs/interface-api").RequestContext, string | undefined, string | undefined, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
6
|
+
list: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, unknown, [ctx: any, opts: import("@antelopejs/interface-data-api/components").Parameters.ListParameters, ...args: any[]]>;
|
|
7
|
+
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, unknown, [ctx: any, opts: import("@antelopejs/interface-data-api/components").Parameters.ListParameters, ...args: any[]]>;
|
|
8
|
+
count: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, unknown, [ctx: any, opts: import("@antelopejs/interface-data-api/components").Parameters.ListParameters, ...args: any[]]>;
|
|
9
|
+
countBatch: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, unknown, [ctx: any, opts: import("@antelopejs/interface-data-api/components").Parameters.ListParameters, ...args: any[]]>;
|
|
10
10
|
}> & {
|
|
11
11
|
table: Invoice;
|
|
12
12
|
}> & import("@antelopejs/interface-core/decorators").Class<object> & {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { TenantMember, TenantMemberModel } from "@antelopejs/interface-dms/db";
|
|
2
|
+
import { User } from "@antelopejs/interface-dms/auth/db";
|
|
2
3
|
declare const membersDataAPI_base: import("@antelopejs/interface-core/decorators").Class<import("@antelopejs/interface-data-api").ExtractDefCallbacks<{
|
|
3
|
-
get: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
4
|
-
list: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
5
|
-
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<
|
|
4
|
+
get: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-data-api/metadata").RowFields, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.GetParameters, User, import("@antelopejs/interface-api").RequestContext, string | undefined, string | undefined, User]>;
|
|
5
|
+
list: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/base").TableViewListPage, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.ListParameters, User]>;
|
|
6
|
+
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/base").TableViewListPage, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.ListParameters, User]>;
|
|
6
7
|
count: import("@antelopejs/interface-data-api").DataControllerCallback;
|
|
7
8
|
}> & {
|
|
8
9
|
table: TenantMember;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type ComposedText } from "@antelopejs/interface-dms/base";
|
|
2
2
|
import { PlanMigration, PlanMigrationModel } from "../../db";
|
|
3
3
|
declare const planMigrationsDataAPI_base: import("@antelopejs/interface-core/decorators").Class<import("@antelopejs/interface-data-api").ExtractDefCallbacks<{
|
|
4
|
-
get: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
5
|
-
list: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
6
|
-
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<
|
|
4
|
+
get: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-data-api/metadata").RowFields, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-dms/auth/db").User, import("@antelopejs/interface-api").RequestContext, string | undefined, string | undefined, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
5
|
+
list: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/base").TableViewListPage, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
6
|
+
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/base").TableViewListPage, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
7
7
|
count: import("@antelopejs/interface-data-api").DataControllerCallback;
|
|
8
|
-
countBatch: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<any>;
|
|
8
|
+
countBatch: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<any, unknown, [ctx: any, opts: any, ...args: any[]]>;
|
|
9
9
|
}> & {
|
|
10
10
|
table: PlanMigration;
|
|
11
11
|
}> & import("@antelopejs/interface-core/decorators").Class<object> & {
|
|
@@ -3,13 +3,13 @@ import { Plan, type PlanFeatureValue, PlanModel } from "../../db";
|
|
|
3
3
|
export declare const PLAN_SALE_STATUSES: readonly ["on_sale", "legacy"];
|
|
4
4
|
export type PlanSaleStatus = (typeof PLAN_SALE_STATUSES)[number];
|
|
5
5
|
declare const plansDataAPI_base: import("@antelopejs/interface-core/decorators").Class<import("@antelopejs/interface-data-api").ExtractDefCallbacks<{
|
|
6
|
-
exportStart: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters>;
|
|
7
|
-
get: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
8
|
-
list: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters>;
|
|
9
|
-
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters>;
|
|
10
|
-
count: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters>;
|
|
11
|
-
countBatch: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters>;
|
|
12
|
-
edit: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
6
|
+
exportStart: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, unknown, [ctx: any, opts: import("@antelopejs/interface-data-api/components").Parameters.ListParameters, ...args: any[]]>;
|
|
7
|
+
get: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-data-api/metadata").RowFields, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-dms/auth/db").User, import("@antelopejs/interface-api").RequestContext, string | undefined, string | undefined, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
8
|
+
list: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, unknown, [ctx: any, opts: import("@antelopejs/interface-data-api/components").Parameters.ListParameters, ...args: any[]]>;
|
|
9
|
+
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, unknown, [ctx: any, opts: import("@antelopejs/interface-data-api/components").Parameters.ListParameters, ...args: any[]]>;
|
|
10
|
+
count: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, unknown, [ctx: any, opts: import("@antelopejs/interface-data-api/components").Parameters.ListParameters, ...args: any[]]>;
|
|
11
|
+
countBatch: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, unknown, [ctx: any, opts: import("@antelopejs/interface-data-api/components").Parameters.ListParameters, ...args: any[]]>;
|
|
12
|
+
edit: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.EditParameters, import("@antelopejs/interface-data-api/metadata").RowFields, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.EditParameters, import("@antelopejs/interface-data-api/components").Validation.WrittenBody, import("@antelopejs/interface-dms/auth/db").User, import("@antelopejs/interface-api").RequestContext, string | undefined, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
13
13
|
}> & {
|
|
14
14
|
table: Plan;
|
|
15
15
|
}> & import("@antelopejs/interface-core/decorators").Class<object> & {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { type RequestContext } from "@antelopejs/interface-api";
|
|
1
2
|
import { type DataControllerCallback } from "@antelopejs/interface-data-api";
|
|
2
3
|
import { type CellSubline } from "@antelopejs/interface-dms/base";
|
|
3
4
|
import { Segment, type SegmentConditionGroup, type SegmentCountPoint, SegmentModel } from "../../db";
|
|
4
5
|
export declare function weeklyCountChange(history: readonly SegmentCountPoint[], currentCount: number, now?: Date): number;
|
|
5
6
|
export declare function weeklyChangeLine(change: number): CellSubline;
|
|
6
7
|
declare const segmentsDataAPI_base: import("@antelopejs/interface-core/decorators").Class<import("@antelopejs/interface-data-api").ExtractDefCallbacks<{
|
|
7
|
-
get: DataControllerCallback
|
|
8
|
-
list: DataControllerCallback
|
|
9
|
-
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<
|
|
8
|
+
get: DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-data-api/metadata").RowFields, [RequestContext, import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-dms/auth/db").User, RequestContext, string | undefined, string | undefined, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
9
|
+
list: DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/base").TableViewListPage, [RequestContext, import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
10
|
+
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/base").TableViewListPage, [RequestContext, import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/auth/db").User]>;
|
|
10
11
|
count: DataControllerCallback;
|
|
11
12
|
delete: DataControllerCallback;
|
|
12
13
|
}> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segments.js","sourceRoot":"","sources":["../../../src/data-api/platformOwner/segments.ts"],"names":[],"mappings":";;;;;;;;;;;;AA6EA,8CASC;AAkBD,4CAQC;AAhHD,6DAA4E;AAC5E,uEAIwC;AACxC,sEAMiD;AACjD,6FAA4E;AAC5E,yDAA+D;AAC/D,yDASwC;AACxC,2FAA2F;AAC3F,iCAMkB;AAClB,4DAAoD;AACpD,uCAIqB;AAErB,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;AAC/C,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAC7B,MAAM,cAAc,GAAG,EAAE,CAAC;AAE1B,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAC9B,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAC9B,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAChC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAUlC,SAAS,KAAK,CAAC,IAAwB;IACrC,OAAO,IAAI,CAAC,KAAK,CAAC;AACpB,CAAC;AAED,SAAS,SAAS,CAAC,IAAwB;IACzC,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,YAAY,C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ACN,IAAI,EAAE,yCAAyC;QAC/C,IAAI,EAAE,IAAI,gCAAgB,CAAC,QAAQ,EAAE;QACrC,OAAO,EAAE,IAAI,sBAAe,CAAC,mBAAmB,CAAC;YAC/C,UAAU,EAAE,gCAAgC;YAC5C,SAAS,EAAE,SAAS;SACrB,CAAC;QACF,IAAI,EAAE,qBAAqB;KAC5B,CAAC;IACD,IAAA,iBAAM,EAAC,qBAAU,CAAC,QAAQ,CAAC;;wDACS;AAY7B;IAVP,IAAA,aAAM,GAAE;IACR,IAAA,mBAAQ,GAAE;IACV,IAAA,eAAQ,GAAE;IACV,IAAA,aAAM,EAAC;QACN,IAAI,EAAE,uCAAuC;QAC7C,IAAI,EAAE,IAAI,gCAAgB,CAAC,UAAU,EAAE;QACvC,OAAO,EAAE,IAAI,sBAAe,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAC5D,SAAS,EAAE,KAAK;KACjB,CAAC;IACD,IAAA,iBAAM,EAAC,qBAAU,CAAC,QAAQ,CAAC;;yDACY;0BAzH7B,eAAe;IAF3B,IAAA,2CAAsB,GAAE;IACxB,IAAA,oBAAa,GAAE;GACH,eAAe,CA0H3B"}
|
|
@@ -4,4 +4,4 @@ import type { FilterValue } from "@antelopejs/interface-data-api/metadata";
|
|
|
4
4
|
export interface TableScope extends Parameters.ListParameters {
|
|
5
5
|
filters: Record<string, FilterValue>;
|
|
6
6
|
}
|
|
7
|
-
export declare function withTableScope(scope: TableScope): (route: DataControllerCallback<Parameters.ListParameters> | DataControllerCallbackWithOptions<Parameters.ListParameters>) => DataControllerCallbackWithOptions<Parameters.ListParameters>;
|
|
7
|
+
export declare function withTableScope(scope: TableScope): (route: DataControllerCallback<Parameters.ListParameters> | DataControllerCallbackWithOptions<Parameters.ListParameters>) => DataControllerCallbackWithOptions<Parameters.ListParameters, unknown, [ctx: any, opts: Parameters.ListParameters, ...args: any[]]>;
|
|
@@ -5,11 +5,11 @@ export interface UserWorkspaceCounts {
|
|
|
5
5
|
member: number;
|
|
6
6
|
}
|
|
7
7
|
declare const saasUsersDataAPI_base: import("@antelopejs/interface-core/decorators").Class<import("@antelopejs/interface-data-api").ExtractDefCallbacks<{
|
|
8
|
-
get: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
9
|
-
list: import("@antelopejs/interface-data-api").DataControllerCallback
|
|
10
|
-
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<
|
|
8
|
+
get: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.GetParameters, import("@antelopejs/interface-data-api/metadata").RowFields, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.GetParameters, User, import("@antelopejs/interface-api").RequestContext, string | undefined, string | undefined, User]>;
|
|
9
|
+
list: import("@antelopejs/interface-data-api").DataControllerCallback<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/base").TableViewListPage, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.ListParameters, User]>;
|
|
10
|
+
select: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<import("@antelopejs/interface-data-api/components").Parameters.ListParameters, import("@antelopejs/interface-dms/base").TableViewListPage, [import("@antelopejs/interface-api").RequestContext, import("@antelopejs/interface-data-api/components").Parameters.ListParameters, User]>;
|
|
11
11
|
count: import("@antelopejs/interface-data-api").DataControllerCallback;
|
|
12
|
-
countBatch: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<any>;
|
|
12
|
+
countBatch: import("@antelopejs/interface-data-api").DataControllerCallbackWithOptions<any, unknown, [ctx: any, opts: any, ...args: any[]]>;
|
|
13
13
|
}> & {
|
|
14
14
|
table: User;
|
|
15
15
|
}> & import("@antelopejs/interface-core/decorators").Class<object> & {
|