@qcobro/common 1.13.0 → 1.14.1
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/billing/evaluate.d.ts +36 -0
- package/dist/billing/evaluate.d.ts.map +1 -0
- package/dist/billing/evaluate.js +136 -0
- package/dist/billing/evaluate.js.map +1 -0
- package/dist/billing/index.d.ts +7 -0
- package/dist/billing/index.d.ts.map +1 -0
- package/dist/billing/index.js +7 -0
- package/dist/billing/index.js.map +1 -0
- package/dist/billing/ledger.d.ts +70 -0
- package/dist/billing/ledger.d.ts.map +1 -0
- package/dist/billing/ledger.js +59 -0
- package/dist/billing/ledger.js.map +1 -0
- package/dist/billing/money.d.ts +26 -0
- package/dist/billing/money.d.ts.map +1 -0
- package/dist/billing/money.js +58 -0
- package/dist/billing/money.js.map +1 -0
- package/dist/billing/pricing.d.ts +58 -0
- package/dist/billing/pricing.d.ts.map +1 -0
- package/dist/billing/pricing.js +68 -0
- package/dist/billing/pricing.js.map +1 -0
- package/dist/billing/proration.d.ts +8 -0
- package/dist/billing/proration.d.ts.map +1 -0
- package/dist/billing/proration.js +17 -0
- package/dist/billing/proration.js.map +1 -0
- package/dist/billing/rates.d.ts +108 -0
- package/dist/billing/rates.d.ts.map +1 -0
- package/dist/billing/rates.js +56 -0
- package/dist/billing/rates.js.map +1 -0
- package/dist/bin/engineEval.d.ts.map +1 -1
- package/dist/bin/engineEval.js +7 -1
- package/dist/bin/engineEval.js.map +1 -1
- package/dist/config.d.ts +139 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +62 -0
- package/dist/config.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas/billing.d.ts +74 -0
- package/dist/schemas/billing.d.ts.map +1 -0
- package/dist/schemas/billing.js +68 -0
- package/dist/schemas/billing.js.map +1 -0
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/types/billing.d.ts +134 -0
- package/dist/types/billing.d.ts.map +1 -0
- package/dist/types/billing.js +8 -0
- package/dist/types/billing.js.map +1 -0
- package/dist/types/engine.d.ts +8 -2
- package/dist/types/engine.d.ts.map +1 -1
- package/dist/types/engine.js +12 -1
- package/dist/types/engine.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Input schemas for the billing service functions (usage-ledger capability).
|
|
4
|
+
* The client interfaces they pair with live in `../types/billing.ts`.
|
|
5
|
+
*/
|
|
6
|
+
/** Meters one billable dispatch (priced at write time from the workspace's plan). */
|
|
7
|
+
export declare const meterDispatchSchema: z.ZodObject<{
|
|
8
|
+
workspaceRef: z.ZodString;
|
|
9
|
+
meter: z.ZodEnum<{
|
|
10
|
+
sms: "sms";
|
|
11
|
+
email: "email";
|
|
12
|
+
whatsappMessage: "whatsappMessage";
|
|
13
|
+
voicePrerecorded: "voicePrerecorded";
|
|
14
|
+
voiceAi: "voiceAi";
|
|
15
|
+
whatsappVoicePrerecorded: "whatsappVoicePrerecorded";
|
|
16
|
+
whatsappVoiceAi: "whatsappVoiceAi";
|
|
17
|
+
}>;
|
|
18
|
+
at: z.ZodString;
|
|
19
|
+
campaignId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
portfolioAccountId: z.ZodOptional<z.ZodString>;
|
|
21
|
+
providerRef: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type MeterDispatchInput = z.infer<typeof meterDispatchSchema>;
|
|
24
|
+
/** Settles a voice usage record to its actual answered duration (idempotent per ref). */
|
|
25
|
+
export declare const settleVoiceUsageSchema: z.ZodObject<{
|
|
26
|
+
providerRef: z.ZodString;
|
|
27
|
+
answeredSeconds: z.ZodNumber;
|
|
28
|
+
at: z.ZodString;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type SettleVoiceUsageInput = z.infer<typeof settleVoiceUsageSchema>;
|
|
31
|
+
/**
|
|
32
|
+
* Turns a workspace's billing cycle over (close previous, open next): voids the
|
|
33
|
+
* unused remainder and grants the new allowance. Idempotent per
|
|
34
|
+
* `(workspaceRef, stripeInvoiceId)` — a replayed webhook no-ops.
|
|
35
|
+
*/
|
|
36
|
+
export declare const cycleTurnoverSchema: z.ZodObject<{
|
|
37
|
+
workspaceRef: z.ZodString;
|
|
38
|
+
stripeInvoiceId: z.ZodString;
|
|
39
|
+
grantMicro: z.ZodNumber;
|
|
40
|
+
cycleStart: z.ZodString;
|
|
41
|
+
cycleEnd: z.ZodString;
|
|
42
|
+
at: z.ZodString;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type CycleTurnoverInput = z.infer<typeof cycleTurnoverSchema>;
|
|
45
|
+
/** Reads a workspace's billing status (balance, plan, cycle). */
|
|
46
|
+
export declare const getWorkspaceBillingStatusSchema: z.ZodObject<{
|
|
47
|
+
workspaceRef: z.ZodString;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export type GetWorkspaceBillingStatusInput = z.infer<typeof getWorkspaceBillingStatusSchema>;
|
|
50
|
+
/**
|
|
51
|
+
* Puts a workspace on a paid plan. First paid workspace for a payer → a
|
|
52
|
+
* Stripe-hosted Checkout session (collects the card, creates customer +
|
|
53
|
+
* subscription); subsequent workspaces → a prorated subscription item on the
|
|
54
|
+
* existing subscription, no card entry.
|
|
55
|
+
*/
|
|
56
|
+
export declare const subscribeWorkspaceSchema: z.ZodObject<{
|
|
57
|
+
workspaceRef: z.ZodString;
|
|
58
|
+
planKey: z.ZodString;
|
|
59
|
+
ownerUserRef: z.ZodString;
|
|
60
|
+
successUrl: z.ZodString;
|
|
61
|
+
cancelUrl: z.ZodString;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type SubscribeWorkspaceInput = z.infer<typeof subscribeWorkspaceSchema>;
|
|
64
|
+
/**
|
|
65
|
+
* Changes a workspace's plan. Upgrades apply immediately (prorated charge +
|
|
66
|
+
* prorated allowance replacing the remainder); downgrades take effect at
|
|
67
|
+
* period end via a subscription schedule.
|
|
68
|
+
*/
|
|
69
|
+
export declare const changePlanSchema: z.ZodObject<{
|
|
70
|
+
workspaceRef: z.ZodString;
|
|
71
|
+
targetPlanKey: z.ZodString;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
export type ChangePlanInput = z.infer<typeof changePlanSchema>;
|
|
74
|
+
//# sourceMappingURL=billing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing.d.ts","sourceRoot":"","sources":["../../src/schemas/billing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;GAGG;AAEH,qFAAqF;AACrF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;iBAS9B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAErE,yFAAyF;AACzF,eAAO,MAAM,sBAAsB;;;;iBAMjC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE3E;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;iBAU9B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAErE,iEAAiE;AACjE,eAAO,MAAM,+BAA+B;;iBAE1C,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAE7F;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB;;;;;;iBAMnC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { billingMeterSchema } from "../billing/rates.js";
|
|
3
|
+
/**
|
|
4
|
+
* Input schemas for the billing service functions (usage-ledger capability).
|
|
5
|
+
* The client interfaces they pair with live in `../types/billing.ts`.
|
|
6
|
+
*/
|
|
7
|
+
/** Meters one billable dispatch (priced at write time from the workspace's plan). */
|
|
8
|
+
export const meterDispatchSchema = z.object({
|
|
9
|
+
workspaceRef: z.string().min(1),
|
|
10
|
+
meter: billingMeterSchema,
|
|
11
|
+
/** Dispatch instant, ISO. */
|
|
12
|
+
at: z.string().min(1),
|
|
13
|
+
campaignId: z.string().min(1).optional(),
|
|
14
|
+
portfolioAccountId: z.string().min(1).optional(),
|
|
15
|
+
/** Provider ref of the dispatch — the settlement correlation key for voice. */
|
|
16
|
+
providerRef: z.string().min(1).optional()
|
|
17
|
+
});
|
|
18
|
+
/** Settles a voice usage record to its actual answered duration (idempotent per ref). */
|
|
19
|
+
export const settleVoiceUsageSchema = z.object({
|
|
20
|
+
providerRef: z.string().min(1),
|
|
21
|
+
/** Answered seconds (answer → hang-up; 0 = never answered, ring time excluded). */
|
|
22
|
+
answeredSeconds: z.number().int().nonnegative(),
|
|
23
|
+
/** Settlement instant, ISO. */
|
|
24
|
+
at: z.string().min(1)
|
|
25
|
+
});
|
|
26
|
+
/**
|
|
27
|
+
* Turns a workspace's billing cycle over (close previous, open next): voids the
|
|
28
|
+
* unused remainder and grants the new allowance. Idempotent per
|
|
29
|
+
* `(workspaceRef, stripeInvoiceId)` — a replayed webhook no-ops.
|
|
30
|
+
*/
|
|
31
|
+
export const cycleTurnoverSchema = z.object({
|
|
32
|
+
workspaceRef: z.string().min(1),
|
|
33
|
+
stripeInvoiceId: z.string().min(1),
|
|
34
|
+
/** The (possibly prorated) allowance to grant, integer micro-units. */
|
|
35
|
+
grantMicro: z.number().int().nonnegative(),
|
|
36
|
+
/** New cycle bounds, ISO. */
|
|
37
|
+
cycleStart: z.string().min(1),
|
|
38
|
+
cycleEnd: z.string().min(1),
|
|
39
|
+
/** Turnover instant, ISO. */
|
|
40
|
+
at: z.string().min(1)
|
|
41
|
+
});
|
|
42
|
+
/** Reads a workspace's billing status (balance, plan, cycle). */
|
|
43
|
+
export const getWorkspaceBillingStatusSchema = z.object({
|
|
44
|
+
workspaceRef: z.string().min(1)
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* Puts a workspace on a paid plan. First paid workspace for a payer → a
|
|
48
|
+
* Stripe-hosted Checkout session (collects the card, creates customer +
|
|
49
|
+
* subscription); subsequent workspaces → a prorated subscription item on the
|
|
50
|
+
* existing subscription, no card entry.
|
|
51
|
+
*/
|
|
52
|
+
export const subscribeWorkspaceSchema = z.object({
|
|
53
|
+
workspaceRef: z.string().min(1),
|
|
54
|
+
planKey: z.string().min(1),
|
|
55
|
+
ownerUserRef: z.string().min(1),
|
|
56
|
+
successUrl: z.string().url(),
|
|
57
|
+
cancelUrl: z.string().url()
|
|
58
|
+
});
|
|
59
|
+
/**
|
|
60
|
+
* Changes a workspace's plan. Upgrades apply immediately (prorated charge +
|
|
61
|
+
* prorated allowance replacing the remainder); downgrades take effect at
|
|
62
|
+
* period end via a subscription schedule.
|
|
63
|
+
*/
|
|
64
|
+
export const changePlanSchema = z.object({
|
|
65
|
+
workspaceRef: z.string().min(1),
|
|
66
|
+
targetPlanKey: z.string().min(1)
|
|
67
|
+
});
|
|
68
|
+
//# sourceMappingURL=billing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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C/B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACjC,CAAC,CAAC"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client interfaces the billing service functions depend on — the Prisma subset
|
|
3
|
+
* they use, so tests inject stubs with no live database. Monetary columns are
|
|
4
|
+
* BigInt in the database; these interfaces surface them as `bigint` and the
|
|
5
|
+
* functions convert to safe-integer micro-unit `number`s at the boundary.
|
|
6
|
+
*/
|
|
7
|
+
/** Prisma's BillingMeter enum values (DB spelling of the common meter keys). */
|
|
8
|
+
export type DbBillingMeter = "SMS" | "EMAIL" | "WHATSAPP_MESSAGE" | "VOICE_PRERECORDED" | "VOICE_AI" | "WHATSAPP_VOICE_PRERECORDED" | "WHATSAPP_VOICE_AI";
|
|
9
|
+
export type DbLedgerEntryKind = "GRANT" | "USAGE_DEBIT" | "VOID" | "ADJUSTMENT";
|
|
10
|
+
export interface WorkspaceBillingRecord {
|
|
11
|
+
workspaceRef: string;
|
|
12
|
+
billingAccountId: string;
|
|
13
|
+
planKey: string;
|
|
14
|
+
/** Enterprise overrides: a Partial of the shared rates schema (validated on read). */
|
|
15
|
+
rateOverrides: unknown;
|
|
16
|
+
stripeSubscriptionItemId: string | null;
|
|
17
|
+
cycleStart: Date | null;
|
|
18
|
+
cycleEnd: Date | null;
|
|
19
|
+
}
|
|
20
|
+
export interface UsageRecordRow {
|
|
21
|
+
id: string;
|
|
22
|
+
workspaceRef: string;
|
|
23
|
+
meter: DbBillingMeter;
|
|
24
|
+
quantity: number;
|
|
25
|
+
unitPriceMicro: bigint;
|
|
26
|
+
amountMicro: bigint;
|
|
27
|
+
increments: string | null;
|
|
28
|
+
settledAt: Date | null;
|
|
29
|
+
campaignId: string | null;
|
|
30
|
+
portfolioAccountId: string | null;
|
|
31
|
+
providerRef: string | null;
|
|
32
|
+
at: Date;
|
|
33
|
+
}
|
|
34
|
+
export interface LedgerEntryRow {
|
|
35
|
+
id: string;
|
|
36
|
+
workspaceRef: string;
|
|
37
|
+
kind: DbLedgerEntryKind;
|
|
38
|
+
amountMicro: bigint;
|
|
39
|
+
at: Date;
|
|
40
|
+
usageRecordId: string | null;
|
|
41
|
+
stripeInvoiceId: string | null;
|
|
42
|
+
}
|
|
43
|
+
/** The Prisma subset the billing functions reach through the tRPC/engine context. */
|
|
44
|
+
export interface BillingAccountRecord {
|
|
45
|
+
id: string;
|
|
46
|
+
createdFromUserRef: string;
|
|
47
|
+
stripeCustomerId: string;
|
|
48
|
+
stripeSubscriptionId: string | null;
|
|
49
|
+
collectionMethod: string;
|
|
50
|
+
paymentFailed: boolean;
|
|
51
|
+
}
|
|
52
|
+
export interface BillingClient {
|
|
53
|
+
workspaceBilling: {
|
|
54
|
+
findUnique(args: {
|
|
55
|
+
where: {
|
|
56
|
+
workspaceRef: string;
|
|
57
|
+
};
|
|
58
|
+
}): Promise<WorkspaceBillingRecord | null>;
|
|
59
|
+
create(args: {
|
|
60
|
+
data: Record<string, unknown>;
|
|
61
|
+
}): Promise<WorkspaceBillingRecord>;
|
|
62
|
+
update(args: {
|
|
63
|
+
where: {
|
|
64
|
+
workspaceRef: string;
|
|
65
|
+
};
|
|
66
|
+
data: Record<string, unknown>;
|
|
67
|
+
}): Promise<WorkspaceBillingRecord>;
|
|
68
|
+
};
|
|
69
|
+
billingAccount: {
|
|
70
|
+
findUnique(args: {
|
|
71
|
+
where: {
|
|
72
|
+
id: string;
|
|
73
|
+
};
|
|
74
|
+
}): Promise<BillingAccountRecord | null>;
|
|
75
|
+
findFirst(args: {
|
|
76
|
+
where: {
|
|
77
|
+
stripeCustomerId?: string;
|
|
78
|
+
createdFromUserRef?: string;
|
|
79
|
+
};
|
|
80
|
+
}): Promise<BillingAccountRecord | null>;
|
|
81
|
+
create(args: {
|
|
82
|
+
data: Record<string, unknown>;
|
|
83
|
+
}): Promise<BillingAccountRecord>;
|
|
84
|
+
update(args: {
|
|
85
|
+
where: {
|
|
86
|
+
id: string;
|
|
87
|
+
};
|
|
88
|
+
data: Record<string, unknown>;
|
|
89
|
+
}): Promise<BillingAccountRecord>;
|
|
90
|
+
updateMany(args: {
|
|
91
|
+
where: {
|
|
92
|
+
stripeCustomerId: string;
|
|
93
|
+
};
|
|
94
|
+
data: Record<string, unknown>;
|
|
95
|
+
}): Promise<{
|
|
96
|
+
count: number;
|
|
97
|
+
}>;
|
|
98
|
+
};
|
|
99
|
+
usageRecord: {
|
|
100
|
+
create(args: {
|
|
101
|
+
data: Record<string, unknown>;
|
|
102
|
+
}): Promise<UsageRecordRow>;
|
|
103
|
+
findUnique(args: {
|
|
104
|
+
where: {
|
|
105
|
+
providerRef: string;
|
|
106
|
+
};
|
|
107
|
+
}): Promise<UsageRecordRow | null>;
|
|
108
|
+
update(args: {
|
|
109
|
+
where: {
|
|
110
|
+
id: string;
|
|
111
|
+
};
|
|
112
|
+
data: Record<string, unknown>;
|
|
113
|
+
}): Promise<UsageRecordRow>;
|
|
114
|
+
};
|
|
115
|
+
ledgerEntry: {
|
|
116
|
+
create(args: {
|
|
117
|
+
data: Record<string, unknown>;
|
|
118
|
+
}): Promise<LedgerEntryRow>;
|
|
119
|
+
aggregate(args: {
|
|
120
|
+
where: {
|
|
121
|
+
workspaceRef: string;
|
|
122
|
+
};
|
|
123
|
+
_sum: {
|
|
124
|
+
amountMicro: true;
|
|
125
|
+
};
|
|
126
|
+
}): Promise<{
|
|
127
|
+
_sum: {
|
|
128
|
+
amountMicro: bigint | null;
|
|
129
|
+
};
|
|
130
|
+
}>;
|
|
131
|
+
};
|
|
132
|
+
$transaction<T>(fn: (tx: BillingClient) => Promise<T>): Promise<T>;
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=billing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing.d.ts","sourceRoot":"","sources":["../../src/types/billing.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,gFAAgF;AAChF,MAAM,MAAM,cAAc,GACtB,KAAK,GACL,OAAO,GACP,kBAAkB,GAClB,mBAAmB,GACnB,UAAU,GACV,4BAA4B,GAC5B,mBAAmB,CAAC;AAExB,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,aAAa,GAAG,MAAM,GAAG,YAAY,CAAC;AAEhF,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,sFAAsF;IACtF,aAAa,EAAE,OAAO,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2
|
+
* Client interfaces the billing service functions depend on — the Prisma subset
|
|
3
|
+
* they use, so tests inject stubs with no live database. Monetary columns are
|
|
4
|
+
* BigInt in the database; these interfaces surface them as `bigint` and the
|
|
5
|
+
* functions convert to safe-integer micro-unit `number`s at the boundary.
|
|
6
|
+
*/
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=billing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing.js","sourceRoot":"","sources":["../../src/types/billing.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
package/dist/types/engine.d.ts
CHANGED
|
@@ -12,10 +12,16 @@ export interface Clock {
|
|
|
12
12
|
}
|
|
13
13
|
/** Channels the engine can dispatch (the subset `dispatchOutreach` supports). */
|
|
14
14
|
export type EngineChannel = "VOICE_AI" | "VOICE_PRERECORDED" | "SMS" | "EMAIL" | "WHATSAPP";
|
|
15
|
+
/**
|
|
16
|
+
* Which billing meter a dispatch on each channel consumes — THE single mapping
|
|
17
|
+
* (used by the engine tick, manual outreach, and any future dispatch surface,
|
|
18
|
+
* so the same traffic can never be metered differently on different paths).
|
|
19
|
+
*/
|
|
20
|
+
export declare const BILLING_METER_OF_CHANNEL: Record<EngineChannel, import("../billing/rates.js").BillingMeter>;
|
|
15
21
|
/** Why a campaign was not dispatched at all this tick. */
|
|
16
|
-
export type CampaignSkipReason = "not_active" | "out_of_window" | "channel_not_configured" | "channel_not_supported" | "empty_number_pool" | "voice_not_synced";
|
|
22
|
+
export type CampaignSkipReason = "not_active" | "out_of_window" | "channel_not_configured" | "channel_not_supported" | "empty_number_pool" | "voice_not_synced" | "credits_exhausted" | "payment_failed";
|
|
17
23
|
/** The outcome of considering a single account during a tick. */
|
|
18
|
-
export type AccountDecision = "dispatched" | "dispatch_failed" | "no_phone" | "no_email" | "intent_suppressed" | "account_suppressed" | "promise_suppressed" | "lifetime_cap" | "daily_cap" | "budget_exhausted";
|
|
24
|
+
export type AccountDecision = "dispatched" | "dispatch_failed" | "no_phone" | "no_email" | "intent_suppressed" | "account_suppressed" | "promise_suppressed" | "lifetime_cap" | "daily_cap" | "budget_exhausted" | "credits_exhausted";
|
|
19
25
|
/** Per-account line in the tick report. */
|
|
20
26
|
export interface AccountDecisionEntry {
|
|
21
27
|
portfolioAccountId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/types/engine.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,oFAAoF;AACpF,MAAM,WAAW,KAAK;IACpB,GAAG,IAAI,IAAI,CAAC;CACb;AAED,iFAAiF;AACjF,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,mBAAmB,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,CAAC;AAE5F,0DAA0D;AAC1D,MAAM,MAAM,kBAAkB,GAC1B,YAAY,GACZ,eAAe,GACf,wBAAwB,GACxB,uBAAuB,GACvB,mBAAmB,GACnB,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/types/engine.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,oFAAoF;AACpF,MAAM,WAAW,KAAK;IACpB,GAAG,IAAI,IAAI,CAAC;CACb;AAED,iFAAiF;AACjF,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,mBAAmB,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,CAAC;AAE5F;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAC3C,aAAa,EACb,OAAO,qBAAqB,EAAE,YAAY,CAO3C,CAAC;AAEF,0DAA0D;AAC1D,MAAM,MAAM,kBAAkB,GAC1B,YAAY,GACZ,eAAe,GACf,wBAAwB,GACxB,uBAAuB,GACvB,mBAAmB,GACnB,kBAAkB,GAClB,mBAAmB,GACnB,gBAAgB,CAAC;AAErB,iEAAiE;AACjE,MAAM,MAAM,eAAe,GACvB,YAAY,GACZ,iBAAiB,GACjB,UAAU,GACV,UAAU,GACV,mBAAmB,GACnB,oBAAoB,GACpB,oBAAoB,GACpB,cAAc,GACd,WAAW,GACX,kBAAkB,GAClB,mBAAmB,CAAC;AAExB,2CAA2C;AAC3C,MAAM,WAAW,oBAAoB;IACnC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,eAAe,CAAC;IAC1B,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,+CAA+C;AAC/C,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,yEAAyE;IACzE,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,SAAS,EAAE,oBAAoB,EAAE,CAAC;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,iEAAiE;IACjE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,iDAAiD;AACjD,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,oFAAoF;AACpF,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,kBAAkB,EAAE,CAAC;IAChC,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC,CAAC;IAC3D;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,4BAA4B,EAAE,WAAW,EAAE,CAAC;CAC7D"}
|
package/dist/types/engine.js
CHANGED
|
@@ -6,5 +6,16 @@
|
|
|
6
6
|
* The channel-dispatch ports (`OutboundCallClient`, `SmsClient`, `NumberSelector`)
|
|
7
7
|
* are reused from `./dispatch.js` — channel emulators implement those interfaces.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Which billing meter a dispatch on each channel consumes — THE single mapping
|
|
11
|
+
* (used by the engine tick, manual outreach, and any future dispatch surface,
|
|
12
|
+
* so the same traffic can never be metered differently on different paths).
|
|
13
|
+
*/
|
|
14
|
+
export const BILLING_METER_OF_CHANNEL = {
|
|
15
|
+
VOICE_AI: "voiceAi",
|
|
16
|
+
VOICE_PRERECORDED: "voicePrerecorded",
|
|
17
|
+
SMS: "sms",
|
|
18
|
+
EMAIL: "email",
|
|
19
|
+
WHATSAPP: "whatsappMessage"
|
|
20
|
+
};
|
|
10
21
|
//# sourceMappingURL=engine.js.map
|
package/dist/types/engine.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.js","sourceRoot":"","sources":["../../src/types/engine.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"}
|
|
1
|
+
{"version":3,"file":"engine.js","sourceRoot":"","sources":["../../src/types/engine.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAUH;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAGjC;IACF,QAAQ,EAAE,SAAS;IACnB,iBAAiB,EAAE,kBAAkB;IACrC,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,iBAAiB;CAC5B,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
|
package/dist/types/index.js
CHANGED
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
|