@zuplo/runtime 5.1813.0 → 5.1815.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 +69 -41
- package/index.minified.js +24 -21
- package/index.minified.js.LEGAL.txt +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2417,30 +2417,11 @@ export declare class MemoryZoneReadThroughCache<T = unknown> {
|
|
|
2417
2417
|
|
|
2418
2418
|
/* Excluded from this release type: MeteringPlugin */
|
|
2419
2419
|
|
|
2420
|
-
|
|
2420
|
+
/* Excluded from this release type: MeteringRegions */
|
|
2421
2421
|
|
|
2422
|
-
|
|
2423
|
-
status: MeteringSubscriptionStatus;
|
|
2424
|
-
type: "credits" | "periodic";
|
|
2425
|
-
region: MeteringRegions;
|
|
2426
|
-
renewalStrategy: "hourly" | "monthly" | "yearly";
|
|
2427
|
-
customerKey: string;
|
|
2428
|
-
/**
|
|
2429
|
-
* Array of Stripe product ids, they start with "prod_"
|
|
2430
|
-
*/
|
|
2431
|
-
planExternalIds: string[];
|
|
2432
|
-
/**
|
|
2433
|
-
* Stripe subscription id, starts with "sub_"
|
|
2434
|
-
*/
|
|
2435
|
-
subscriptionExternalId?: string;
|
|
2436
|
-
/**
|
|
2437
|
-
* Stripe customer id, starts with "cus_"
|
|
2438
|
-
*/
|
|
2439
|
-
customerExternalId?: string;
|
|
2440
|
-
metadata?: Record<string, string>;
|
|
2441
|
-
}
|
|
2422
|
+
/* Excluded from this release type: MeteringSubscription */
|
|
2442
2423
|
|
|
2443
|
-
|
|
2424
|
+
/* Excluded from this release type: MeteringSubscriptionStatus */
|
|
2444
2425
|
|
|
2445
2426
|
/* Excluded from this release type: MetricsData */
|
|
2446
2427
|
|
|
@@ -2584,6 +2565,8 @@ declare type MonetizationPolicyMeters = {
|
|
|
2584
2565
|
[Key in string]: number;
|
|
2585
2566
|
};
|
|
2586
2567
|
|
|
2568
|
+
/* Excluded from this release type: MonetizationSubscription */
|
|
2569
|
+
|
|
2587
2570
|
declare interface NotFoundOptions {
|
|
2588
2571
|
routesMatchedByPathOnly: RouteConfiguration[];
|
|
2589
2572
|
}
|
|
@@ -3676,22 +3659,6 @@ export declare interface SleepInboundPolicyOptions {
|
|
|
3676
3659
|
|
|
3677
3660
|
/* Excluded from this release type: StandardEnv */
|
|
3678
3661
|
|
|
3679
|
-
declare interface StoredMeteringSubscriptionWithQuotas extends MeteringSubscription {
|
|
3680
|
-
/**
|
|
3681
|
-
* Metering subscription id, starts with "sbsc_"
|
|
3682
|
-
*/
|
|
3683
|
-
id: string;
|
|
3684
|
-
createdOn: string;
|
|
3685
|
-
updatedOn: string;
|
|
3686
|
-
quotaResetAnchor?: Date;
|
|
3687
|
-
meters: {
|
|
3688
|
-
[Key in string]: {
|
|
3689
|
-
consumed: number;
|
|
3690
|
-
max: number;
|
|
3691
|
-
};
|
|
3692
|
-
};
|
|
3693
|
-
}
|
|
3694
|
-
|
|
3695
3662
|
/* Excluded from this release type: StripeMeteringPlugin */
|
|
3696
3663
|
|
|
3697
3664
|
/* Excluded from this release type: StripeMeteringPluginOptions */
|
|
@@ -4151,6 +4118,23 @@ export declare interface VersionData {
|
|
|
4151
4118
|
|
|
4152
4119
|
declare interface VMWareLogInsightLoggingOptions {
|
|
4153
4120
|
url: string;
|
|
4121
|
+
/**
|
|
4122
|
+
* An array of string tuples to replace within the text field of a log entry.
|
|
4123
|
+
* @example
|
|
4124
|
+
* ```
|
|
4125
|
+
* [
|
|
4126
|
+
* ["'", ""],
|
|
4127
|
+
* ['"', ""],
|
|
4128
|
+
* ["\\n", ""],
|
|
4129
|
+
* ["\\", ""],
|
|
4130
|
+
* ["*", ""],
|
|
4131
|
+
* ["&", ""],
|
|
4132
|
+
* [":", "="],
|
|
4133
|
+
* ]
|
|
4134
|
+
* ```
|
|
4135
|
+
*/
|
|
4136
|
+
textReplacements?: [string, string][];
|
|
4137
|
+
agentId?: string;
|
|
4154
4138
|
fields?: Record<string, string | number | boolean>;
|
|
4155
4139
|
onMessageSending?: (event: LogInsightLogEntry) => LogInsightLogEntry;
|
|
4156
4140
|
}
|
|
@@ -4184,9 +4168,12 @@ export declare function webSocketHandler(request: ZuploRequest, context: ZuploCo
|
|
|
4184
4168
|
export declare function webSocketPipelineHandler(request: ZuploRequest, context: ZuploContext): Promise<Response>;
|
|
4185
4169
|
|
|
4186
4170
|
/**
|
|
4187
|
-
* Parses XML and converts it to JSON
|
|
4171
|
+
* Parses XML and converts it to JSON. This policy is useful for converting
|
|
4172
|
+
* legacy XML or SOAP APIs into modern REST APIs. It can be useful to add a
|
|
4173
|
+
* custom outbound policy that runs after this policy to further transform the
|
|
4174
|
+
* raw converted content into something more user friendly.
|
|
4188
4175
|
*
|
|
4189
|
-
* @title
|
|
4176
|
+
* @title XML to JSON Outbound
|
|
4190
4177
|
* @public
|
|
4191
4178
|
* @param request - The ZuploRequest
|
|
4192
4179
|
* @param context - The ZuploContext
|
|
@@ -4194,12 +4181,53 @@ export declare function webSocketPipelineHandler(request: ZuploRequest, context:
|
|
|
4194
4181
|
* @param policyName - The name of the policy as set in policies.json
|
|
4195
4182
|
* @returns A Request or a Response
|
|
4196
4183
|
*/
|
|
4197
|
-
export declare
|
|
4184
|
+
export declare class XmlToJsonOutboundPolicy extends OutboundPolicy<XmlToJsonPolicyOptions> {
|
|
4185
|
+
private parser;
|
|
4186
|
+
private parseOnStatusCodes;
|
|
4187
|
+
constructor(options: XmlToJsonPolicyOptions, policyName: string);
|
|
4188
|
+
handler(response: Response, request: ZuploRequest, context: ZuploContext): Promise<Response>;
|
|
4189
|
+
}
|
|
4198
4190
|
|
|
4199
4191
|
/**
|
|
4200
4192
|
* The options for this policy.
|
|
4201
4193
|
*/
|
|
4202
4194
|
export declare interface XmlToJsonPolicyOptions {
|
|
4195
|
+
/**
|
|
4196
|
+
* Remove namespace string from tag and attribute names.
|
|
4197
|
+
*/
|
|
4198
|
+
removeNSPrefix?: boolean;
|
|
4199
|
+
/**
|
|
4200
|
+
* Ignore processing instruction tags. i.e. `<?elementnames <fred>, <bert>, <harry> ?>`.
|
|
4201
|
+
*/
|
|
4202
|
+
ignoreProcessingInstructions?: boolean;
|
|
4203
|
+
/**
|
|
4204
|
+
* Ignore declarations. i.e. `<?xml version="1.0"?>`.
|
|
4205
|
+
*/
|
|
4206
|
+
ignoreDeclarations?: boolean;
|
|
4207
|
+
/**
|
|
4208
|
+
* Ignore tag attributes.
|
|
4209
|
+
*/
|
|
4210
|
+
ignoreAttributes?: boolean;
|
|
4211
|
+
/**
|
|
4212
|
+
* At particular point, if you don't want to parse a tag and it's nested tags then you can set their path in stopNodes. You can also set tags which should not be processed irrespective of their path using * as the wildcard.
|
|
4213
|
+
*/
|
|
4214
|
+
stopNodes?: string[];
|
|
4215
|
+
/**
|
|
4216
|
+
* The prefix of attribute names in the resulting JS object.
|
|
4217
|
+
*/
|
|
4218
|
+
attributeNamePrefix?: string;
|
|
4219
|
+
/**
|
|
4220
|
+
* Text value of a tag is parsed to #text property by default.
|
|
4221
|
+
*/
|
|
4222
|
+
textNodeName?: string;
|
|
4223
|
+
/**
|
|
4224
|
+
* Remove surrounding whitespace from tag or attribute value.
|
|
4225
|
+
*/
|
|
4226
|
+
trimValues?: boolean;
|
|
4227
|
+
/**
|
|
4228
|
+
* A list of status codes and ranges "200-299, 304" that should the XML parser should run on. If not set, the parser will run on all status codes.
|
|
4229
|
+
*/
|
|
4230
|
+
parseOnStatusCodes?: string | number[];
|
|
4203
4231
|
}
|
|
4204
4232
|
|
|
4205
4233
|
/**
|