@zuplo/runtime 6.67.18 → 6.67.20
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/out/esm/index.js +1 -1
- package/out/esm/index.js.map +1 -1
- package/out/types/index.d.ts +19 -0
- package/package.json +1 -1
package/out/types/index.d.ts
CHANGED
|
@@ -5924,12 +5924,29 @@ export declare type MonetizationInboundPolicyOptions = {
|
|
|
5924
5924
|
*/
|
|
5925
5925
|
module: string;
|
|
5926
5926
|
};
|
|
5927
|
+
/**
|
|
5928
|
+
* The function that runs after a backend response is available and returns meter usage values for final metering.
|
|
5929
|
+
*/
|
|
5930
|
+
finalFunction?: {
|
|
5931
|
+
/**
|
|
5932
|
+
* Specifies the export to load your custom final function, e.g. `default`, `resolveFinalMeters`.
|
|
5933
|
+
*/
|
|
5934
|
+
export: string;
|
|
5935
|
+
/**
|
|
5936
|
+
* Specifies the module to load your custom final function, in the format `$import(./modules/my-module)`.
|
|
5937
|
+
*/
|
|
5938
|
+
module: string;
|
|
5939
|
+
};
|
|
5927
5940
|
/**
|
|
5928
5941
|
* A list of successful status codes and ranges "200-299, 304" that should trigger a metering call.
|
|
5929
5942
|
*/
|
|
5930
5943
|
meterOnStatusCodes?: string | number[];
|
|
5931
5944
|
};
|
|
5932
5945
|
|
|
5946
|
+
/**
|
|
5947
|
+
* Subscription details returned by Zuplo monetization services.
|
|
5948
|
+
* @public
|
|
5949
|
+
*/
|
|
5933
5950
|
export declare interface MonetizationSubscription {
|
|
5934
5951
|
paymentStatus?: {
|
|
5935
5952
|
isFirstPayment: boolean;
|
|
@@ -5948,6 +5965,8 @@ export declare interface MonetizationSubscription {
|
|
|
5948
5965
|
plan: {
|
|
5949
5966
|
id: string;
|
|
5950
5967
|
name: string;
|
|
5968
|
+
key: string;
|
|
5969
|
+
version: number;
|
|
5951
5970
|
description?: string;
|
|
5952
5971
|
};
|
|
5953
5972
|
entitlements: Record<
|