@zuplo/runtime 5.1825.0 → 5.1828.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/index.d.ts +45 -1
- package/index.minified.js +24 -24
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -409,6 +409,22 @@ export declare class AWSLoggingPlugin extends LogPlugin {
|
|
|
409
409
|
getTransport(): LogTransport;
|
|
410
410
|
}
|
|
411
411
|
|
|
412
|
+
export declare class BackgroundDispatcher<TPayload> {
|
|
413
|
+
#private;
|
|
414
|
+
constructor(dispatcher: DispatchFunction<TPayload>, options: BatchDispatcherOptions);
|
|
415
|
+
enqueue: (payload: TPayload) => void;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
export declare class BackgroundLoader<T = unknown> {
|
|
419
|
+
#private;
|
|
420
|
+
constructor(loader: BackgroundLoaderFunction<T>, ttlSeconds: number);
|
|
421
|
+
get(key: string): Promise<T>;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
declare interface BackgroundLoaderFunction<T> {
|
|
425
|
+
(key: string): Promise<T>;
|
|
426
|
+
}
|
|
427
|
+
|
|
412
428
|
/**
|
|
413
429
|
* @beta
|
|
414
430
|
*/
|
|
@@ -485,6 +501,13 @@ export declare interface BasicAuthInboundPolicyOptions {
|
|
|
485
501
|
allowUnauthenticatedRequests?: boolean;
|
|
486
502
|
}
|
|
487
503
|
|
|
504
|
+
/* Excluded from this release type: BatchDispatch */
|
|
505
|
+
|
|
506
|
+
declare interface BatchDispatcherOptions {
|
|
507
|
+
msDelay: number;
|
|
508
|
+
name?: string;
|
|
509
|
+
}
|
|
510
|
+
|
|
488
511
|
/* Excluded from this release type: BuildEnvironment */
|
|
489
512
|
|
|
490
513
|
declare interface BuildRouteConfiguration {
|
|
@@ -925,6 +948,8 @@ export declare interface DevPortalRuntimeConfig {
|
|
|
925
948
|
sitePathname: string;
|
|
926
949
|
}
|
|
927
950
|
|
|
951
|
+
/* Excluded from this release type: DispatchFunction */
|
|
952
|
+
|
|
928
953
|
declare interface DynaTraceLoggingOptions {
|
|
929
954
|
url: string;
|
|
930
955
|
apiToken: string;
|
|
@@ -2551,7 +2576,26 @@ export declare interface MoesifInboundPolicyOptions {
|
|
|
2551
2576
|
logResponseBody?: boolean;
|
|
2552
2577
|
}
|
|
2553
2578
|
|
|
2554
|
-
|
|
2579
|
+
/**
|
|
2580
|
+
* The Monetization policy enables you to track & monetize by your API's usage
|
|
2581
|
+
*
|
|
2582
|
+
* @remarks
|
|
2583
|
+
* The Monetization policy allows you to track and monetize the usage of our API resources,
|
|
2584
|
+
* declaratively and programatically.
|
|
2585
|
+
*
|
|
2586
|
+
* @title Monetization
|
|
2587
|
+
* @beta
|
|
2588
|
+
* @param request - The ZuploRequest
|
|
2589
|
+
* @param context - The ZuploContext
|
|
2590
|
+
* @param options - The policy options set in policies.json
|
|
2591
|
+
* @param policyName - The name of the policy as set in policies.json
|
|
2592
|
+
* @returns A Request or a Response
|
|
2593
|
+
*/
|
|
2594
|
+
export declare class MonetizationInboundPolicy extends InboundPolicy<MonetizationInboundPolicyOptions> {
|
|
2595
|
+
static getSubscription(context: ZuploContext): MonetizationSubscription | undefined;
|
|
2596
|
+
static setMeters(context: ZuploContext, meters: MonetizationPolicyMeters): void;
|
|
2597
|
+
handler(request: ZuploRequest<RequestGeneric>, context: ZuploContext): Promise<ZuploRequest<RequestGeneric> | Response>;
|
|
2598
|
+
}
|
|
2555
2599
|
|
|
2556
2600
|
/**
|
|
2557
2601
|
* The options for this policy.
|