@zuplo/runtime 6.67.16 → 6.67.17
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 +57 -57
- package/out/esm/index.js.map +1 -1
- package/out/types/index.d.ts +18 -3
- package/package.json +1 -1
package/out/types/index.d.ts
CHANGED
|
@@ -5885,7 +5885,9 @@ export declare class MonetizationInboundPolicy extends InboundPolicy<Monetizatio
|
|
|
5885
5885
|
* The options for this policy.
|
|
5886
5886
|
* @public
|
|
5887
5887
|
*/
|
|
5888
|
-
export declare
|
|
5888
|
+
export declare type MonetizationInboundPolicyOptions = {
|
|
5889
|
+
[k: string]: unknown;
|
|
5890
|
+
} & {
|
|
5889
5891
|
/**
|
|
5890
5892
|
* The name of the header with the key.
|
|
5891
5893
|
*/
|
|
@@ -5901,18 +5903,31 @@ export declare interface MonetizationInboundPolicyOptions {
|
|
|
5901
5903
|
/**
|
|
5902
5904
|
* The meters to be used by the policy against the subscription quota.
|
|
5903
5905
|
*/
|
|
5904
|
-
meters
|
|
5906
|
+
meters?: {
|
|
5905
5907
|
/**
|
|
5906
5908
|
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
5907
5909
|
* via the `patternProperty` "^.*$".
|
|
5908
5910
|
*/
|
|
5909
5911
|
[k: string]: number;
|
|
5910
5912
|
};
|
|
5913
|
+
/**
|
|
5914
|
+
* The function that returns dynamic meter usage values for the request.
|
|
5915
|
+
*/
|
|
5916
|
+
metersFunction?: {
|
|
5917
|
+
/**
|
|
5918
|
+
* Specifies the export to load your custom meters function, e.g. `default`, `resolveMeters`.
|
|
5919
|
+
*/
|
|
5920
|
+
export: string;
|
|
5921
|
+
/**
|
|
5922
|
+
* Specifies the module to load your custom meters function, in the format `$import(./modules/my-module)`.
|
|
5923
|
+
*/
|
|
5924
|
+
module: string;
|
|
5925
|
+
};
|
|
5911
5926
|
/**
|
|
5912
5927
|
* A list of successful status codes and ranges "200-299, 304" that should trigger a metering call.
|
|
5913
5928
|
*/
|
|
5914
5929
|
meterOnStatusCodes?: string | number[];
|
|
5915
|
-
}
|
|
5930
|
+
};
|
|
5916
5931
|
|
|
5917
5932
|
export declare interface MonetizationSubscription {
|
|
5918
5933
|
paymentStatus?: {
|