@happyvertical/smrt-commerce 0.34.0 → 0.34.2
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/collections/ContractCollection.d.ts +9 -2
- package/dist/collections/ContractCollection.d.ts.map +1 -1
- package/dist/collections/ContractLineItemCollection.d.ts +9 -2
- package/dist/collections/ContractLineItemCollection.d.ts.map +1 -1
- package/dist/collections/CustomerCollection.d.ts +9 -2
- package/dist/collections/CustomerCollection.d.ts.map +1 -1
- package/dist/collections/FulfillmentCollection.d.ts +9 -2
- package/dist/collections/FulfillmentCollection.d.ts.map +1 -1
- package/dist/collections/FulfillmentLineItemCollection.d.ts +9 -2
- package/dist/collections/FulfillmentLineItemCollection.d.ts.map +1 -1
- package/dist/collections/InvoiceCollection.d.ts +9 -2
- package/dist/collections/InvoiceCollection.d.ts.map +1 -1
- package/dist/collections/InvoiceLineItemCollection.d.ts +9 -2
- package/dist/collections/InvoiceLineItemCollection.d.ts.map +1 -1
- package/dist/collections/PaymentAllocationCollection.d.ts +9 -2
- package/dist/collections/PaymentAllocationCollection.d.ts.map +1 -1
- package/dist/collections/PaymentCollection.d.ts +9 -2
- package/dist/collections/PaymentCollection.d.ts.map +1 -1
- package/dist/collections/PaymentIntentCollection.d.ts +13 -0
- package/dist/collections/PaymentIntentCollection.d.ts.map +1 -1
- package/dist/collections/PayoutCollection.d.ts +13 -0
- package/dist/collections/PayoutCollection.d.ts.map +1 -1
- package/dist/collections/VendorCollection.d.ts +9 -2
- package/dist/collections/VendorCollection.d.ts.map +1 -1
- package/dist/index.js +165 -73
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +2 -2
- package/dist/smrt-knowledge.json +4 -4
- package/package.json +7 -7
|
@@ -71,13 +71,20 @@ export declare class ContractCollection extends SmrtCollection<Contract> {
|
|
|
71
71
|
*/
|
|
72
72
|
findByTenant(tenantId: string): Promise<Contract[]>;
|
|
73
73
|
/**
|
|
74
|
-
* Find all global contracts (not associated with any tenant)
|
|
74
|
+
* Find all global contracts (not associated with any tenant).
|
|
75
|
+
*
|
|
76
|
+
* Routes through the shared tenant-global helper so it does not throw under
|
|
77
|
+
* an active tenant context (an explicit `tenant_id IS NULL` filter would be
|
|
78
|
+
* flagged as an isolation violation). (#1600)
|
|
75
79
|
*
|
|
76
80
|
* @returns Array of global contracts
|
|
77
81
|
*/
|
|
78
82
|
findGlobal(): Promise<Contract[]>;
|
|
79
83
|
/**
|
|
80
|
-
* Find contracts for a tenant including global contracts
|
|
84
|
+
* Find contracts for a tenant including global contracts.
|
|
85
|
+
*
|
|
86
|
+
* Fails closed if an active tenant context requests a different tenant's
|
|
87
|
+
* rows; the admin/system path keeps the cross-tenant capability. (#1600)
|
|
81
88
|
*
|
|
82
89
|
* @param tenantId - Tenant ID
|
|
83
90
|
* @returns Array of tenant-specific and global contracts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContractCollection.d.ts","sourceRoot":"","sources":["../../src/collections/ContractCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ContractCollection.d.ts","sourceRoot":"","sources":["../../src/collections/ContractCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjE,qBAAa,kBAAmB,SAAQ,cAAc,CAAC,QAAQ,CAAC;IAC9D,MAAM,CAAC,QAAQ,CAAC,UAAU,kBAAY;IAEtC;;;;;OAKG;IACG,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAO7D;;;;;OAKG;IACG,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAOzD;;;;;OAKG;IACG,UAAU,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAOjE;;;;;OAKG;IACG,YAAY,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAO/D;;;;OAIG;IACG,UAAU,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAIvC;;;;OAIG;IACG,YAAY,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAIzC;;;;OAIG;IACG,WAAW,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAgBxC;;;;OAIG;IACG,WAAW,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAkBxC;;;;;;OAMG;IACG,eAAe,CAAC,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAc1E;;;;;OAKG;IACG,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAIzD;;;;;;;;OAQG;IACG,UAAU,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAIvC;;;;;;;;OAQG;IACG,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;CAO7D"}
|
|
@@ -17,13 +17,20 @@ export declare class ContractLineItemCollection extends SmrtCollection<ContractL
|
|
|
17
17
|
*/
|
|
18
18
|
findByTenant(tenantId: string): Promise<ContractLineItem[]>;
|
|
19
19
|
/**
|
|
20
|
-
* Find all global contract line items (not associated with any tenant)
|
|
20
|
+
* Find all global contract line items (not associated with any tenant).
|
|
21
|
+
*
|
|
22
|
+
* Routes through the shared tenant-global helper so it does not throw under
|
|
23
|
+
* an active tenant context (an explicit `tenant_id IS NULL` filter would be
|
|
24
|
+
* flagged as an isolation violation). (#1600)
|
|
21
25
|
*
|
|
22
26
|
* @returns Array of global contract line items
|
|
23
27
|
*/
|
|
24
28
|
findGlobal(): Promise<ContractLineItem[]>;
|
|
25
29
|
/**
|
|
26
|
-
* Find contract line items for a tenant including global line items
|
|
30
|
+
* Find contract line items for a tenant including global line items.
|
|
31
|
+
*
|
|
32
|
+
* Fails closed if an active tenant context requests a different tenant's
|
|
33
|
+
* rows; the admin/system path keeps the cross-tenant capability. (#1600)
|
|
27
34
|
*
|
|
28
35
|
* @param tenantId - Tenant ID
|
|
29
36
|
* @returns Array of tenant-specific and global contract line items
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContractLineItemCollection.d.ts","sourceRoot":"","sources":["../../src/collections/ContractLineItemCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ContractLineItemCollection.d.ts","sourceRoot":"","sources":["../../src/collections/ContractLineItemCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,qBAAa,0BAA2B,SAAQ,cAAc,CAAC,gBAAgB,CAAC;IAC9E,MAAM,CAAC,QAAQ,CAAC,UAAU,0BAAoB;IAE9C;;;;;OAKG;IACG,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAWrE;;;;;OAKG;IACG,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAIjE;;;;;;;;OAQG;IACG,UAAU,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAI/C;;;;;;;;OAQG;IACG,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;CAOrE"}
|
|
@@ -42,13 +42,20 @@ export declare class CustomerCollection extends SmrtCollection<Customer> {
|
|
|
42
42
|
*/
|
|
43
43
|
findByTenant(tenantId: string): Promise<Customer[]>;
|
|
44
44
|
/**
|
|
45
|
-
* Find all global customers (not associated with any tenant)
|
|
45
|
+
* Find all global customers (not associated with any tenant).
|
|
46
|
+
*
|
|
47
|
+
* Routes through the shared tenant-global helper so it does not throw under
|
|
48
|
+
* an active tenant context (an explicit `tenant_id IS NULL` filter would be
|
|
49
|
+
* flagged as an isolation violation). (#1600)
|
|
46
50
|
*
|
|
47
51
|
* @returns Array of global customers
|
|
48
52
|
*/
|
|
49
53
|
findGlobal(): Promise<Customer[]>;
|
|
50
54
|
/**
|
|
51
|
-
* Find customers for a tenant including global customers
|
|
55
|
+
* Find customers for a tenant including global customers.
|
|
56
|
+
*
|
|
57
|
+
* Fails closed if an active tenant context requests a different tenant's
|
|
58
|
+
* rows; the admin/system path keeps the cross-tenant capability. (#1600)
|
|
52
59
|
*
|
|
53
60
|
* @param tenantId - Tenant ID
|
|
54
61
|
* @returns Array of tenant-specific and global customers
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomerCollection.d.ts","sourceRoot":"","sources":["../../src/collections/CustomerCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"CustomerCollection.d.ts","sourceRoot":"","sources":["../../src/collections/CustomerCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAAa,kBAAmB,SAAQ,cAAc,CAAC,QAAQ,CAAC;IAC9D,MAAM,CAAC,QAAQ,CAAC,UAAU,kBAAY;IAEtC;;;;;OAKG;IACG,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAO3D;;;;OAIG;IACG,UAAU,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAOvC;;;;;OAKG;IACG,YAAY,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAO/D;;;;;;OAMG;IACG,qBAAqB,CACzB,SAAS,EAAE,MAAM,EACjB,QAAQ,GAAE,OAAO,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAM,GACN,OAAO,CAAC,QAAQ,CAAC;IAoBpB;;;;;OAKG;IACG,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAIzD;;;;;;;;OAQG;IACG,UAAU,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAIvC;;;;;;;;OAQG;IACG,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;CAO7D"}
|
|
@@ -59,13 +59,20 @@ export declare class FulfillmentCollection extends SmrtCollection<Fulfillment> {
|
|
|
59
59
|
*/
|
|
60
60
|
findByTenant(tenantId: string): Promise<Fulfillment[]>;
|
|
61
61
|
/**
|
|
62
|
-
* Find all global fulfillments (not associated with any tenant)
|
|
62
|
+
* Find all global fulfillments (not associated with any tenant).
|
|
63
|
+
*
|
|
64
|
+
* Routes through the shared tenant-global helper so it does not throw under
|
|
65
|
+
* an active tenant context (an explicit `tenant_id IS NULL` filter would be
|
|
66
|
+
* flagged as an isolation violation). (#1600)
|
|
63
67
|
*
|
|
64
68
|
* @returns Array of global fulfillments
|
|
65
69
|
*/
|
|
66
70
|
findGlobal(): Promise<Fulfillment[]>;
|
|
67
71
|
/**
|
|
68
|
-
* Find fulfillments for a tenant including global fulfillments
|
|
72
|
+
* Find fulfillments for a tenant including global fulfillments.
|
|
73
|
+
*
|
|
74
|
+
* Fails closed if an active tenant context requests a different tenant's
|
|
75
|
+
* rows; the admin/system path keeps the cross-tenant capability. (#1600)
|
|
69
76
|
*
|
|
70
77
|
* @param tenantId - Tenant ID
|
|
71
78
|
* @returns Array of tenant-specific and global fulfillments
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FulfillmentCollection.d.ts","sourceRoot":"","sources":["../../src/collections/FulfillmentCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"FulfillmentCollection.d.ts","sourceRoot":"","sources":["../../src/collections/FulfillmentCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE5E,qBAAa,qBAAsB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACpE,MAAM,CAAC,QAAQ,CAAC,UAAU,qBAAe;IAEzC;;;;;OAKG;IACG,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAOhE;;;;;OAKG;IACG,YAAY,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAOrE;;;;;OAKG;IACG,UAAU,CAAC,eAAe,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAO1E;;;;OAIG;IACG,WAAW,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAI3C;;;;OAIG;IACG,aAAa,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAI7C;;;;;OAKG;IACG,cAAc,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IAQzE;;;;;;OAMG;IACG,kBAAkB,CACtB,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,IAAI,GACZ,OAAO,CAAC,WAAW,EAAE,CAAC;IAczB;;;;;OAKG;IACG,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAI5D;;;;;;;;OAQG;IACG,UAAU,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAI1C;;;;;;;;OAQG;IACG,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;CAOhE"}
|
|
@@ -34,13 +34,20 @@ export declare class FulfillmentLineItemCollection extends SmrtCollection<Fulfil
|
|
|
34
34
|
*/
|
|
35
35
|
findByTenant(tenantId: string): Promise<FulfillmentLineItem[]>;
|
|
36
36
|
/**
|
|
37
|
-
* Find all global fulfillment line items (not associated with any tenant)
|
|
37
|
+
* Find all global fulfillment line items (not associated with any tenant).
|
|
38
|
+
*
|
|
39
|
+
* Routes through the shared tenant-global helper so it does not throw under
|
|
40
|
+
* an active tenant context (an explicit `tenant_id IS NULL` filter would be
|
|
41
|
+
* flagged as an isolation violation). (#1600)
|
|
38
42
|
*
|
|
39
43
|
* @returns Array of global fulfillment line items
|
|
40
44
|
*/
|
|
41
45
|
findGlobal(): Promise<FulfillmentLineItem[]>;
|
|
42
46
|
/**
|
|
43
|
-
* Find fulfillment line items for a tenant including global line items
|
|
47
|
+
* Find fulfillment line items for a tenant including global line items.
|
|
48
|
+
*
|
|
49
|
+
* Fails closed if an active tenant context requests a different tenant's
|
|
50
|
+
* rows; the admin/system path keeps the cross-tenant capability. (#1600)
|
|
44
51
|
*
|
|
45
52
|
* @param tenantId - Tenant ID
|
|
46
53
|
* @returns Array of tenant-specific and global fulfillment line items
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FulfillmentLineItemCollection.d.ts","sourceRoot":"","sources":["../../src/collections/FulfillmentLineItemCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"FulfillmentLineItemCollection.d.ts","sourceRoot":"","sources":["../../src/collections/FulfillmentLineItemCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEvE,qBAAa,6BAA8B,SAAQ,cAAc,CAAC,mBAAmB,CAAC;IACpF,MAAM,CAAC,QAAQ,CAAC,UAAU,6BAAuB;IAEjD;;;;;OAKG;IACG,iBAAiB,CACrB,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAOjC;;;;;;;OAOG;IACG,sBAAsB,CAC1B,kBAAkB,EAAE,MAAM,GACzB,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAOjC;;;;;;OAMG;IACG,gCAAgC,CACpC,kBAAkB,EAAE,MAAM,GACzB,OAAO,CAAC,MAAM,CAAC;IASlB;;;;;OAKG;IACG,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAIpE;;;;;;;;OAQG;IACG,UAAU,IAAI,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAIlD;;;;;;;;OAQG;IACG,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;CAOxE"}
|
|
@@ -146,13 +146,20 @@ export declare class InvoiceCollection extends SmrtCollection<Invoice> {
|
|
|
146
146
|
*/
|
|
147
147
|
findByTenant(tenantId: string): Promise<Invoice[]>;
|
|
148
148
|
/**
|
|
149
|
-
* Find all global invoices (not associated with any tenant)
|
|
149
|
+
* Find all global invoices (not associated with any tenant).
|
|
150
|
+
*
|
|
151
|
+
* Routes through the shared tenant-global helper so it does not throw under
|
|
152
|
+
* an active tenant context (an explicit `tenant_id IS NULL` filter would be
|
|
153
|
+
* flagged as an isolation violation). (#1600)
|
|
150
154
|
*
|
|
151
155
|
* @returns Array of global invoices
|
|
152
156
|
*/
|
|
153
157
|
findGlobal(): Promise<Invoice[]>;
|
|
154
158
|
/**
|
|
155
|
-
* Find invoices for a tenant including global invoices
|
|
159
|
+
* Find invoices for a tenant including global invoices.
|
|
160
|
+
*
|
|
161
|
+
* Fails closed if an active tenant context requests a different tenant's
|
|
162
|
+
* rows; the admin/system path keeps the cross-tenant capability. (#1600)
|
|
156
163
|
*
|
|
157
164
|
* @param tenantId - Tenant ID
|
|
158
165
|
* @returns Array of tenant-specific and global invoices
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvoiceCollection.d.ts","sourceRoot":"","sources":["../../src/collections/InvoiceCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"InvoiceCollection.d.ts","sourceRoot":"","sources":["../../src/collections/InvoiceCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,eAAe,mGAKlB,CAAC;AAEX;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,kDAAkD;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6EAA6E;IAC7E,MAAM,CAAC,EAAE,iBAAiB,GAAG,YAAY,CAAC;CAC3C;AAED,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,OAAO,CAAC;IAC5D,MAAM,CAAC,QAAQ,CAAC,UAAU,iBAAW;IAErC;;;;;OAKG;IACG,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAA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AO,EAAE,CAAC;IAIxD;;;;;;;;OAQG;IACG,UAAU,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAItC;;;;;;;;OAQG;IACG,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAG5D"}
|
|
@@ -74,13 +74,20 @@ export declare class InvoiceLineItemCollection extends SmrtCollection<InvoiceLin
|
|
|
74
74
|
*/
|
|
75
75
|
findByTenant(tenantId: string): Promise<InvoiceLineItem[]>;
|
|
76
76
|
/**
|
|
77
|
-
* Find all global invoice line items (not associated with any tenant)
|
|
77
|
+
* Find all global invoice line items (not associated with any tenant).
|
|
78
|
+
*
|
|
79
|
+
* Routes through the shared tenant-global helper so it does not throw under
|
|
80
|
+
* an active tenant context (an explicit `tenant_id IS NULL` filter would be
|
|
81
|
+
* flagged as an isolation violation). (#1600)
|
|
78
82
|
*
|
|
79
83
|
* @returns Array of global invoice line items
|
|
80
84
|
*/
|
|
81
85
|
findGlobal(): Promise<InvoiceLineItem[]>;
|
|
82
86
|
/**
|
|
83
|
-
* Find invoice line items for a tenant including global line items
|
|
87
|
+
* Find invoice line items for a tenant including global line items.
|
|
88
|
+
*
|
|
89
|
+
* Fails closed if an active tenant context requests a different tenant's
|
|
90
|
+
* rows; the admin/system path keeps the cross-tenant capability. (#1600)
|
|
84
91
|
*
|
|
85
92
|
* @param tenantId - Tenant ID
|
|
86
93
|
* @returns Array of tenant-specific and global invoice line items
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvoiceLineItemCollection.d.ts","sourceRoot":"","sources":["../../src/collections/InvoiceLineItemCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"InvoiceLineItemCollection.d.ts","sourceRoot":"","sources":["../../src/collections/InvoiceLineItemCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,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G,OAAO,CAAC,eAAe,EAAE,CAAC;CAOpE"}
|
|
@@ -70,13 +70,20 @@ export declare class PaymentAllocationCollection extends SmrtCollection<PaymentA
|
|
|
70
70
|
*/
|
|
71
71
|
findByTenant(tenantId: string): Promise<PaymentAllocation[]>;
|
|
72
72
|
/**
|
|
73
|
-
* Find all global payment allocations (not associated with any tenant)
|
|
73
|
+
* Find all global payment allocations (not associated with any tenant).
|
|
74
|
+
*
|
|
75
|
+
* Routes through the shared tenant-global helper so it does not throw under
|
|
76
|
+
* an active tenant context (an explicit `tenant_id IS NULL` filter would be
|
|
77
|
+
* flagged as an isolation violation). (#1600)
|
|
74
78
|
*
|
|
75
79
|
* @returns Array of global payment allocations
|
|
76
80
|
*/
|
|
77
81
|
findGlobal(): Promise<PaymentAllocation[]>;
|
|
78
82
|
/**
|
|
79
|
-
* Find payment allocations for a tenant including global allocations
|
|
83
|
+
* Find payment allocations for a tenant including global allocations.
|
|
84
|
+
*
|
|
85
|
+
* Fails closed if an active tenant context requests a different tenant's
|
|
86
|
+
* rows; the admin/system path keeps the cross-tenant capability. (#1600)
|
|
80
87
|
*
|
|
81
88
|
* @param tenantId - Tenant ID
|
|
82
89
|
* @returns Array of tenant-specific and global payment allocations
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentAllocationCollection.d.ts","sourceRoot":"","sources":["../../src/collections/PaymentAllocationCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"PaymentAllocationCollection.d.ts","sourceRoot":"","sources":["../../src/collections/PaymentAllocationCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,qBAAa,2BAA4B,SAAQ,cAAc,CAAC,iBAAiB,CAAC;IACh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82
82
|
/**
|
|
83
|
-
* Find all global payments (not associated with any tenant)
|
|
83
|
+
* Find all global payments (not associated with any tenant).
|
|
84
|
+
*
|
|
85
|
+
* Routes through the shared tenant-global helper so it does not throw under
|
|
86
|
+
* an active tenant context (an explicit `tenant_id IS NULL` filter would be
|
|
87
|
+
* flagged as an isolation violation). (#1600)
|
|
84
88
|
*
|
|
85
89
|
* @returns Array of global payments
|
|
86
90
|
*/
|
|
87
91
|
findGlobal(): Promise<Payment[]>;
|
|
88
92
|
/**
|
|
89
|
-
* Find payments for a tenant including global payments
|
|
93
|
+
* Find payments for a tenant including global payments.
|
|
94
|
+
*
|
|
95
|
+
* Fails closed if an active tenant context requests a different tenant's
|
|
96
|
+
* rows; the admin/system path keeps the cross-tenant capability. (#1600)
|
|
90
97
|
*
|
|
91
98
|
* @param tenantId - Tenant ID
|
|
92
99
|
* @returns Array of tenant-specific and global payments
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentCollection.d.ts","sourceRoot":"","sources":["../../src/collections/PaymentCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"PaymentCollection.d.ts","sourceRoot":"","sources":["../../src/collections/PaymentCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,KAAK,aAAa,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEtE,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,OAAO,CAAC;IAC5D,MAAM,CAAC,QAAQ,CAAC,UAAU,iBAAW;IAErC;;;;;OAKG;IACG,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAO5D;;;;;OAKG;IACG,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAO5D;;;;;OAKG;IACG,YAAY,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAO7D;;;;;OAKG;IACG,YAAY,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAO7D;;;;OAIG;IACG,WAAW,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAIvC;;;;OAIG;IACG,aAAa,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAIzC;;;;;OAKG;IACG,mBAAmB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAQzE;;;;;;OAMG;IACG,eAAe,CAAC,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAUzE;;;;;OAKG;IACG,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAW9D;;;;;OAKG;IACG,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAY/D;;;;;OAKG;IACG,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAIxD;;;;;;;;OAQG;IACG,UAAU,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAItC;;;;;;;;OAQG;IACG,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAG5D"}
|
|
@@ -60,7 +60,20 @@ export declare class PaymentIntentCollection extends SmrtCollection<PaymentInten
|
|
|
60
60
|
findByOfferingRef(offeringRef: string): Promise<PaymentIntent[]>;
|
|
61
61
|
findByStatus(status: PaymentIntentStatus): Promise<PaymentIntent[]>;
|
|
62
62
|
findByTenant(tenantId: string): Promise<PaymentIntent[]>;
|
|
63
|
+
/**
|
|
64
|
+
* Find all global payment intents (not associated with any tenant).
|
|
65
|
+
*
|
|
66
|
+
* Routes through the shared tenant-global helper so it does not throw under
|
|
67
|
+
* an active tenant context (an explicit `tenant_id IS NULL` filter would be
|
|
68
|
+
* flagged as an isolation violation). (#1600)
|
|
69
|
+
*/
|
|
63
70
|
findGlobal(): Promise<PaymentIntent[]>;
|
|
71
|
+
/**
|
|
72
|
+
* Find payment intents for a tenant including global intents.
|
|
73
|
+
*
|
|
74
|
+
* Fails closed if an active tenant context requests a different tenant's
|
|
75
|
+
* rows; the admin/system path keeps the cross-tenant capability. (#1600)
|
|
76
|
+
*/
|
|
64
77
|
findWithGlobals(tenantId: string): Promise<PaymentIntent[]>;
|
|
65
78
|
}
|
|
66
79
|
//# sourceMappingURL=PaymentIntentCollection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentIntentCollection.d.ts","sourceRoot":"","sources":["../../src/collections/PaymentIntentCollection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"PaymentIntentCollection.d.ts","sourceRoot":"","sources":["../../src/collections/PaymentIntentCollection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE5E,MAAM,WAAW,4BAA4B;IAC3C,sDAAsD;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,qDAAqD;IACrD,aAAa,EAAE,MAAM,CAAC;IACtB,sCAAsC;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI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MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;CAOlE"}
|
|
@@ -41,7 +41,20 @@ export declare class PayoutCollection extends SmrtCollection<Payout> {
|
|
|
41
41
|
*/
|
|
42
42
|
getConfirmedTotalForVendor(vendorId: string): Promise<number>;
|
|
43
43
|
findByTenant(tenantId: string): Promise<Payout[]>;
|
|
44
|
+
/**
|
|
45
|
+
* Find all global payouts (not associated with any tenant).
|
|
46
|
+
*
|
|
47
|
+
* Routes through the shared tenant-global helper so it does not throw under
|
|
48
|
+
* an active tenant context (an explicit `tenant_id IS NULL` filter would be
|
|
49
|
+
* flagged as an isolation violation). (#1600)
|
|
50
|
+
*/
|
|
44
51
|
findGlobal(): Promise<Payout[]>;
|
|
52
|
+
/**
|
|
53
|
+
* Find payouts for a tenant including global payouts.
|
|
54
|
+
*
|
|
55
|
+
* Fails closed if an active tenant context requests a different tenant's
|
|
56
|
+
* rows; the admin/system path keeps the cross-tenant capability. (#1600)
|
|
57
|
+
*/
|
|
45
58
|
findWithGlobals(tenantId: string): Promise<Payout[]>;
|
|
46
59
|
}
|
|
47
60
|
//# sourceMappingURL=PayoutCollection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PayoutCollection.d.ts","sourceRoot":"","sources":["../../src/collections/PayoutCollection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"PayoutCollection.d.ts","sourceRoot":"","sources":["../../src/collections/PayoutCollection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;A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rtCollection<Vendor> {
|
|
|
43
43
|
*/
|
|
44
44
|
findByTenant(tenantId: string): Promise<Vendor[]>;
|
|
45
45
|
/**
|
|
46
|
-
* Find all global vendors (not associated with any tenant)
|
|
46
|
+
* Find all global vendors (not associated with any tenant).
|
|
47
|
+
*
|
|
48
|
+
* Routes through the shared tenant-global helper so it does not throw under
|
|
49
|
+
* an active tenant context (an explicit `tenant_id IS NULL` filter would be
|
|
50
|
+
* flagged as an isolation violation). (#1600)
|
|
47
51
|
*
|
|
48
52
|
* @returns Array of global vendors
|
|
49
53
|
*/
|
|
50
54
|
findGlobal(): Promise<Vendor[]>;
|
|
51
55
|
/**
|
|
52
|
-
* Find vendors for a tenant including global vendors
|
|
56
|
+
* Find vendors for a tenant including global vendors.
|
|
57
|
+
*
|
|
58
|
+
* Fails closed if an active tenant context requests a different tenant's
|
|
59
|
+
* rows; the admin/system path keeps the cross-tenant capability. (#1600)
|
|
53
60
|
*
|
|
54
61
|
* @param tenantId - Tenant ID
|
|
55
62
|
* @returns Array of tenant-specific and global vendors
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VendorCollection.d.ts","sourceRoot":"","sources":["../../src/collections/VendorCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"VendorCollection.d.ts","sourceRoot":"","sources":["../../src/collections/VendorCollection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,qBAAa,gBAAiB,SAAQ,cAAc,CAAC,MAAM,CAAC;IAC1D,MAAM,CAAC,QAAQ,CAAC,UAAU,gBAAU;IAEpC;;;;;OAKG;IACG,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAOzD;;;;OAIG;IACG,UAAU,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAOrC;;;;;OAKG;IACG,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAO3D;;;;;;OAMG;IACG,qBAAqB,CACzB,SAAS,EAAE,MAAM,EACjB,QAAQ,GAAE,OAAO,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;QACrB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,YAAY,EAAE,MAAM,CAAC;KACtB,CAAM,GACN,OAAO,CAAC,MAAM,CAAC;IAqBlB;;;;;OAKG;IACG,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAIvD;;;;;;;;OAQG;IACG,UAAU,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAIrC;;;;;;;;OAQG;IACG,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAG3D"}
|