@managemint-solutions/sdk 0.16.0 → 0.17.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/dist/billing/index.d.ts +23 -13
- package/dist/billing/index.js +49 -36
- package/dist/billing/index.js.map +1 -1
- package/dist/client.d.ts +2 -0
- package/dist/client.js +3 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
package/dist/billing/index.d.ts
CHANGED
|
@@ -3,13 +3,30 @@ import { type AuditActor, type AuditResource, type AuditRow } from '../audit';
|
|
|
3
3
|
import type { TypedSupabaseClient } from '../client';
|
|
4
4
|
export * from './dto';
|
|
5
5
|
/**
|
|
6
|
-
* The
|
|
7
|
-
* READ,
|
|
8
|
-
*
|
|
6
|
+
* The readable half of the ledger. `billing_transactions` and `billing_events` are org-scoped
|
|
7
|
+
* for READ, and the catalog is readable by `anon`, so all of this runs perfectly well on the
|
|
8
|
+
* caller's own client — and should, so that RLS is what scopes it rather than a filter the api
|
|
9
|
+
* remembered to add.
|
|
9
10
|
*/
|
|
10
|
-
export declare class
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
export declare class BillingReadsResource {
|
|
12
|
+
protected readonly supabase: TypedSupabaseClient;
|
|
13
|
+
protected readonly actor: AuditActor;
|
|
14
|
+
constructor(supabase: TypedSupabaseClient, actor: AuditActor);
|
|
15
|
+
getTransaction(transactionId: string): Promise<BillingTransactionRow | null>;
|
|
16
|
+
/** The one open transaction, if the organization has one. */
|
|
17
|
+
openTransaction(openStatuses: string[]): Promise<BillingTransactionRow | null>;
|
|
18
|
+
/** The replay lookup: the same key must never raise a second charge. */
|
|
19
|
+
transactionByIdempotencyKey(idempotencyKey: string): Promise<BillingTransactionRow | null>;
|
|
20
|
+
/** Whether a catalog module is still on sale. The catalog is public, not tenant-scoped. */
|
|
21
|
+
isModuleActive(moduleId: string): Promise<boolean>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The ledger writes, on the service client only. Every write policy on `billing_transactions`
|
|
25
|
+
* and `billing_events` is `false` for `authenticated` — the ledger is written by the billing
|
|
26
|
+
* service and by webhooks, never by a caller — so these are deliberately not reachable from
|
|
27
|
+
* `SupabaseClient`.
|
|
28
|
+
*/
|
|
29
|
+
export declare class BillingResource extends BillingReadsResource {
|
|
13
30
|
private readonly transactions;
|
|
14
31
|
constructor(supabase: TypedSupabaseClient, actor: AuditActor, audit: AuditResource);
|
|
15
32
|
createTransaction(payload: AuditRow): Promise<BillingTransactionRow>;
|
|
@@ -20,16 +37,9 @@ export declare class BillingResource {
|
|
|
20
37
|
* the same row twice. Resolves to null when the guard finds it already settled.
|
|
21
38
|
*/
|
|
22
39
|
claimTransactionForProcessing(transactionId: string, patch: AuditRow): Promise<AuditRow | null>;
|
|
23
|
-
getTransaction(transactionId: string): Promise<BillingTransactionRow | null>;
|
|
24
|
-
/** The one open transaction, if the organization has one. */
|
|
25
|
-
openTransaction(openStatuses: string[]): Promise<BillingTransactionRow | null>;
|
|
26
|
-
/** The replay lookup: the same key must never raise a second charge. */
|
|
27
|
-
transactionByIdempotencyKey(idempotencyKey: string): Promise<BillingTransactionRow | null>;
|
|
28
40
|
/**
|
|
29
41
|
* Appends to `billing_events`. Deliberately unaudited: the table *is* an append-only
|
|
30
42
|
* narrative of the billing state machine, so an audit row per event would log the log.
|
|
31
43
|
*/
|
|
32
44
|
recordEvent(event: CreateBillingEventDto): Promise<void>;
|
|
33
|
-
/** Whether a catalog module is still on sale. */
|
|
34
|
-
isModuleActive(moduleId: string): Promise<boolean>;
|
|
35
45
|
}
|
package/dist/billing/index.js
CHANGED
|
@@ -14,7 +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
|
-
exports.BillingResource = void 0;
|
|
17
|
+
exports.BillingResource = exports.BillingReadsResource = void 0;
|
|
18
18
|
const enum_1 = require("@managemint-solutions/entities/audit-trail/enum");
|
|
19
19
|
const enum_2 = require("@managemint-solutions/entities/billing/enum");
|
|
20
20
|
const audit_1 = require("../audit");
|
|
@@ -25,36 +25,17 @@ const BILLING_TRANSACTIONS_TABLE = {
|
|
|
25
25
|
entityType: enum_1.AuditTrailEntityType.BILLING_TRANSACTIONS,
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
|
-
* The
|
|
29
|
-
* READ,
|
|
30
|
-
*
|
|
28
|
+
* The readable half of the ledger. `billing_transactions` and `billing_events` are org-scoped
|
|
29
|
+
* for READ, and the catalog is readable by `anon`, so all of this runs perfectly well on the
|
|
30
|
+
* caller's own client — and should, so that RLS is what scopes it rather than a filter the api
|
|
31
|
+
* remembered to add.
|
|
31
32
|
*/
|
|
32
|
-
class
|
|
33
|
+
class BillingReadsResource {
|
|
33
34
|
supabase;
|
|
34
35
|
actor;
|
|
35
|
-
|
|
36
|
-
constructor(supabase, actor, audit) {
|
|
36
|
+
constructor(supabase, actor) {
|
|
37
37
|
this.supabase = supabase;
|
|
38
38
|
this.actor = actor;
|
|
39
|
-
this.transactions = (0, audit_1.auditedTable)(supabase, actor, audit, BILLING_TRANSACTIONS_TABLE);
|
|
40
|
-
}
|
|
41
|
-
async createTransaction(payload) {
|
|
42
|
-
const row = await this.transactions.insert(payload);
|
|
43
|
-
return row;
|
|
44
|
-
}
|
|
45
|
-
async updateTransaction(transactionId, patch) {
|
|
46
|
-
return this.transactions.update(transactionId, {
|
|
47
|
-
...patch,
|
|
48
|
-
updated_at: new Date().toISOString(),
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Claims a transaction for processing, but only while it is not already paid. This is the
|
|
53
|
-
* send-exactly-once gate on the webhook path: a redelivered `charge.success` must not settle
|
|
54
|
-
* the same row twice. Resolves to null when the guard finds it already settled.
|
|
55
|
-
*/
|
|
56
|
-
async claimTransactionForProcessing(transactionId, patch) {
|
|
57
|
-
return this.transactions.updateWhere(transactionId, (query) => query.neq('transaction_status', enum_2.BillingTransactionStatus.PAID), { ...patch, updated_at: new Date().toISOString() });
|
|
58
39
|
}
|
|
59
40
|
async getTransaction(transactionId) {
|
|
60
41
|
const { data, error } = await this.supabase
|
|
@@ -90,16 +71,7 @@ class BillingResource {
|
|
|
90
71
|
throw (0, errors_1.mapPostgrestError)(error);
|
|
91
72
|
return (data ?? null);
|
|
92
73
|
}
|
|
93
|
-
/**
|
|
94
|
-
* Appends to `billing_events`. Deliberately unaudited: the table *is* an append-only
|
|
95
|
-
* narrative of the billing state machine, so an audit row per event would log the log.
|
|
96
|
-
*/
|
|
97
|
-
async recordEvent(event) {
|
|
98
|
-
const { error } = await this.supabase.from('billing_events').insert(event);
|
|
99
|
-
if (error)
|
|
100
|
-
throw (0, errors_1.mapPostgrestError)(error);
|
|
101
|
-
}
|
|
102
|
-
/** Whether a catalog module is still on sale. */
|
|
74
|
+
/** Whether a catalog module is still on sale. The catalog is public, not tenant-scoped. */
|
|
103
75
|
async isModuleActive(moduleId) {
|
|
104
76
|
const { data, error } = await this.supabase
|
|
105
77
|
.from('billing_modules')
|
|
@@ -111,5 +83,46 @@ class BillingResource {
|
|
|
111
83
|
return data?.active === true;
|
|
112
84
|
}
|
|
113
85
|
}
|
|
86
|
+
exports.BillingReadsResource = BillingReadsResource;
|
|
87
|
+
/**
|
|
88
|
+
* The ledger writes, on the service client only. Every write policy on `billing_transactions`
|
|
89
|
+
* and `billing_events` is `false` for `authenticated` — the ledger is written by the billing
|
|
90
|
+
* service and by webhooks, never by a caller — so these are deliberately not reachable from
|
|
91
|
+
* `SupabaseClient`.
|
|
92
|
+
*/
|
|
93
|
+
class BillingResource extends BillingReadsResource {
|
|
94
|
+
transactions;
|
|
95
|
+
constructor(supabase, actor, audit) {
|
|
96
|
+
super(supabase, actor);
|
|
97
|
+
this.transactions = (0, audit_1.auditedTable)(supabase, actor, audit, BILLING_TRANSACTIONS_TABLE);
|
|
98
|
+
}
|
|
99
|
+
async createTransaction(payload) {
|
|
100
|
+
const row = await this.transactions.insert(payload);
|
|
101
|
+
return row;
|
|
102
|
+
}
|
|
103
|
+
async updateTransaction(transactionId, patch) {
|
|
104
|
+
return this.transactions.update(transactionId, {
|
|
105
|
+
...patch,
|
|
106
|
+
updated_at: new Date().toISOString(),
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Claims a transaction for processing, but only while it is not already paid. This is the
|
|
111
|
+
* send-exactly-once gate on the webhook path: a redelivered `charge.success` must not settle
|
|
112
|
+
* the same row twice. Resolves to null when the guard finds it already settled.
|
|
113
|
+
*/
|
|
114
|
+
async claimTransactionForProcessing(transactionId, patch) {
|
|
115
|
+
return this.transactions.updateWhere(transactionId, (query) => query.neq('transaction_status', enum_2.BillingTransactionStatus.PAID), { ...patch, updated_at: new Date().toISOString() });
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Appends to `billing_events`. Deliberately unaudited: the table *is* an append-only
|
|
119
|
+
* narrative of the billing state machine, so an audit row per event would log the log.
|
|
120
|
+
*/
|
|
121
|
+
async recordEvent(event) {
|
|
122
|
+
const { error } = await this.supabase.from('billing_events').insert(event);
|
|
123
|
+
if (error)
|
|
124
|
+
throw (0, errors_1.mapPostgrestError)(error);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
114
127
|
exports.BillingResource = BillingResource;
|
|
115
128
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/billing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,0EAAuF;AAEvF,sEAAuF;AACvF,oCAMkB;AAElB,sCAA8C;AAE9C,wCAAsB;AAEtB,MAAM,0BAA0B,GAAG;IACjC,KAAK,EAAE,sBAAsB;IAC7B,UAAU,EAAE,2BAAoB,CAAC,oBAAoB;CAC7C,CAA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iB;QACvC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEpD,OAAO,GAAuC,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,aAAqB,EAAE,KAAe;QAC5D,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,aAAa,EAAE;YAC7C,GAAG,KAAK;YACR,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACrC,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,6BAA6B,CACjC,aAAqB,EACrB,KAAe;QAEf,OAAO,IAAI,CAAC,YAAY,CAAC,WAAW,CAClC,aAAa,EACb,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,oBAAoB,EAAE,+BAAwB,CAAC,IAAI,CAAC,EACzE,EAAE,GAAG,KAAK,EAAE,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,EAAE,CACnD,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,WAAW,CAAC,KAA4B;QAC5C,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3E,IAAI,KAAK;YAAE,MAAM,IAAA,0BAAiB,EAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;CACF;AA7CD,0CA6CC"}
|
package/dist/client.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { AdditionalDetailsResource } from './additional-details';
|
|
|
5
5
|
import { ClientsResource } from './clients';
|
|
6
6
|
import { NotesResource } from './notes';
|
|
7
7
|
import { NotificationsResource } from './notifications';
|
|
8
|
+
import { BillingReadsResource } from './billing';
|
|
8
9
|
import { OrganizationsResource } from './organizations';
|
|
9
10
|
import { PermissionsResource } from './permissions';
|
|
10
11
|
import { ProjectsResource } from './projects';
|
|
@@ -28,6 +29,7 @@ export declare class SupabaseClient {
|
|
|
28
29
|
readonly additionalDetails: AdditionalDetailsResource;
|
|
29
30
|
readonly notes: NotesResource;
|
|
30
31
|
readonly notifications: NotificationsResource;
|
|
32
|
+
readonly billing: BillingReadsResource;
|
|
31
33
|
readonly organizations: OrganizationsResource;
|
|
32
34
|
readonly permissions: PermissionsResource;
|
|
33
35
|
readonly users: UsersResource;
|
package/dist/client.js
CHANGED
|
@@ -8,6 +8,7 @@ const additional_details_1 = require("./additional-details");
|
|
|
8
8
|
const clients_1 = require("./clients");
|
|
9
9
|
const notes_1 = require("./notes");
|
|
10
10
|
const notifications_1 = require("./notifications");
|
|
11
|
+
const billing_1 = require("./billing");
|
|
11
12
|
const organizations_1 = require("./organizations");
|
|
12
13
|
const permissions_1 = require("./permissions");
|
|
13
14
|
const projects_1 = require("./projects");
|
|
@@ -23,6 +24,7 @@ class SupabaseClient {
|
|
|
23
24
|
additionalDetails;
|
|
24
25
|
notes;
|
|
25
26
|
notifications;
|
|
27
|
+
billing;
|
|
26
28
|
organizations;
|
|
27
29
|
permissions;
|
|
28
30
|
users;
|
|
@@ -42,6 +44,7 @@ class SupabaseClient {
|
|
|
42
44
|
this.additionalDetails = new additional_details_1.AdditionalDetailsResource(this.supabase, this.auth, this.audit);
|
|
43
45
|
this.notes = new notes_1.NotesResource(this.supabase, this.auth, this.audit);
|
|
44
46
|
this.notifications = new notifications_1.NotificationsResource(this.supabase, this.auth, this.audit);
|
|
47
|
+
this.billing = new billing_1.BillingReadsResource(this.supabase, this.auth);
|
|
45
48
|
this.organizations = new organizations_1.OrganizationsResource(this.supabase, this.auth, this.audit);
|
|
46
49
|
this.permissions = new permissions_1.PermissionsResource(this.supabase, this.auth, this.audit);
|
|
47
50
|
this.users = new users_1.UsersResource(this.supabase, this.auth, this.audit);
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":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