@pax2pay/model-banking 0.1.435 → 0.1.436
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/Account/Creatable.ts
CHANGED
|
@@ -9,9 +9,9 @@ export interface Creatable {
|
|
|
9
9
|
export namespace Creatable {
|
|
10
10
|
export type Location = typeof Location.values[number]
|
|
11
11
|
export namespace Location {
|
|
12
|
-
export const values = ["east-
|
|
12
|
+
export const values = ["north-east-america", "west-europe"] as const
|
|
13
13
|
export function toCloudflare(value: Location): DurableObjectLocationHint {
|
|
14
|
-
return value == "east-
|
|
14
|
+
return value == "north-east-america" ? "enam" : "weur"
|
|
15
15
|
}
|
|
16
16
|
// All location hints: ["wnam", "enam", "sam", "weur", "eeur", "apac", "oc", "afr", "me"]
|
|
17
17
|
export const type = isly.string(values)
|
|
@@ -7,9 +7,9 @@ export interface Creatable {
|
|
|
7
7
|
export declare namespace Creatable {
|
|
8
8
|
type Location = typeof Location.values[number];
|
|
9
9
|
namespace Location {
|
|
10
|
-
const values: readonly ["east-
|
|
10
|
+
const values: readonly ["north-east-america", "west-europe"];
|
|
11
11
|
function toCloudflare(value: Location): DurableObjectLocationHint;
|
|
12
|
-
const type: isly.Type<"east-
|
|
12
|
+
const type: isly.Type<"north-east-america" | "west-europe">;
|
|
13
13
|
}
|
|
14
14
|
const type: import("isly/dist/cjs/object").IslyObject<Creatable, object>;
|
|
15
15
|
}
|
|
@@ -3,9 +3,9 @@ export var Creatable;
|
|
|
3
3
|
(function (Creatable) {
|
|
4
4
|
let Location;
|
|
5
5
|
(function (Location) {
|
|
6
|
-
Location.values = ["east-
|
|
6
|
+
Location.values = ["north-east-america", "west-europe"];
|
|
7
7
|
function toCloudflare(value) {
|
|
8
|
-
return value == "east-
|
|
8
|
+
return value == "north-east-america" ? "enam" : "weur";
|
|
9
9
|
}
|
|
10
10
|
Location.toCloudflare = toCloudflare;
|
|
11
11
|
Location.type = isly.string(Location.values);
|