scordi-extension 1.15.7 → 1.15.8
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/dist/blocks/AiParseDataBlock.d.ts +4 -0
- package/dist/blocks/AiParseDataBlock.d.ts.map +1 -1
- package/dist/blocks/index.d.ts +3 -0
- package/dist/blocks/index.d.ts.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/sdk/index.cjs +1 -1
- package/dist/sdk/index.js +12 -9
- package/dist/src/blocks/AiParseDataBlock.ts.js +16 -6
- package/dist/src/blocks/ClearValueFormBlock.ts.js +1 -1
- package/dist/src/blocks/DataExtractBlock.ts.js +6 -6
- package/dist/src/blocks/ElementExistsBlock.ts.js +1 -1
- package/dist/src/blocks/EventClickBlock.ts.js +1 -1
- package/dist/src/blocks/FetchApiBlock.ts.js +1 -1
- package/dist/src/blocks/GetAttributeValueBlock.ts.js +1 -1
- package/dist/src/blocks/GetElementDataBlock.ts.js +1 -1
- package/dist/src/blocks/GetTextBlock.ts.js +1 -1
- package/dist/src/blocks/GetValueFormBlock.ts.js +1 -1
- package/dist/src/blocks/KeypressBlock.ts.js +1 -1
- package/dist/src/blocks/NavigateBlock.ts.js +1 -1
- package/dist/src/blocks/SaveAssetsBlock.ts.js +1 -1
- package/dist/src/blocks/ScrollBlock.ts.js +1 -1
- package/dist/src/blocks/SetValueFormBlock.ts.js +1 -1
- package/dist/src/blocks/WaitBlock.ts.js +1 -1
- package/dist/src/blocks/WaitForConditionBlock.ts.js +1 -1
- package/dist/src/blocks/types.ts.js +1 -1
- package/dist/src/content/components/ConfirmationUI.tsx.js +3 -3
- package/dist/src/content/main.tsx.js +2 -2
- package/dist/src/sdk/types.ts.js +149 -0
- package/dist/vendor/.vite-deps-chunk-2TUXWMP5.js__v--7cce5f32.js +45 -0
- package/dist/vendor/.vite-deps-chunk-2TUXWMP5.js__v--8598b0e0.js +45 -0
- package/dist/vendor/.vite-deps-chunk-2TUXWMP5.js__v--a79cb78d.js +45 -0
- package/dist/vendor/.vite-deps-chunk-2TUXWMP5.js__v--e1405dc4.js +45 -0
- package/dist/vendor/.vite-deps-chunk-EL3BNLGW.js__v--7cce5f32.js +975 -0
- package/dist/vendor/.vite-deps-chunk-EL3BNLGW.js__v--8598b0e0.js +975 -0
- package/dist/vendor/.vite-deps-chunk-EL3BNLGW.js__v--a79cb78d.js +975 -0
- package/dist/vendor/.vite-deps-chunk-EL3BNLGW.js__v--e1405dc4.js +975 -0
- package/dist/vendor/.vite-deps-chunk-QIBDMRD4.js__v--8598b0e0.js +4158 -0
- package/dist/vendor/.vite-deps-chunk-QIBDMRD4.js__v--a79cb78d.js +4158 -0
- package/dist/vendor/.vite-deps-chunk-UW5CEYRC.js__v--7cce5f32.js +4154 -0
- package/dist/vendor/.vite-deps-chunk-UW5CEYRC.js__v--e1405dc4.js +4154 -0
- package/dist/vendor/.vite-deps-chunk-XHY3JSIG.js__v--7cce5f32.js +280 -0
- package/dist/vendor/.vite-deps-chunk-XHY3JSIG.js__v--8598b0e0.js +280 -0
- package/dist/vendor/.vite-deps-chunk-XHY3JSIG.js__v--a79cb78d.js +280 -0
- package/dist/vendor/.vite-deps-chunk-XHY3JSIG.js__v--e1405dc4.js +280 -0
- package/dist/vendor/.vite-deps-jsonata.js__v--1f855851.js +5761 -0
- package/dist/vendor/.vite-deps-jsonata.js__v--7cce5f32.js +5761 -0
- package/dist/vendor/.vite-deps-jsonata.js__v--8598b0e0.js +5761 -0
- package/dist/vendor/.vite-deps-jsonata.js__v--aa4cf553.js +5761 -0
- package/dist/vendor/.vite-deps-react-dom.js__v--7cce5f32.js +6 -0
- package/dist/vendor/.vite-deps-react-dom.js__v--8598b0e0.js +6 -0
- package/dist/vendor/.vite-deps-react-dom.js__v--87af57af.js +6 -0
- package/dist/vendor/.vite-deps-react-dom.js__v--9967e564.js +6 -0
- package/dist/vendor/.vite-deps-react-dom_client.js__v--05e7db8c.js +18108 -0
- package/dist/vendor/.vite-deps-react-dom_client.js__v--7cce5f32.js +18108 -0
- package/dist/vendor/.vite-deps-react-dom_client.js__v--8598b0e0.js +18108 -0
- package/dist/vendor/.vite-deps-react-dom_client.js__v--f80719e9.js +18108 -0
- package/dist/vendor/.vite-deps-react.js__v--7cce5f32.js +5 -0
- package/dist/vendor/.vite-deps-react.js__v--8598b0e0.js +5 -0
- package/dist/vendor/.vite-deps-react.js__v--87af57af.js +5 -0
- package/dist/vendor/.vite-deps-react.js__v--9967e564.js +5 -0
- package/dist/vendor/.vite-deps-react_jsx-dev-runtime.js__v--7cce5f32.js +281 -0
- package/dist/vendor/.vite-deps-react_jsx-dev-runtime.js__v--8598b0e0.js +281 -0
- package/dist/vendor/.vite-deps-react_jsx-dev-runtime.js__v--87af57af.js +281 -0
- package/dist/vendor/.vite-deps-react_jsx-dev-runtime.js__v--9967e564.js +281 -0
- package/dist/vendor/.vite-deps-zod.js__v--6548a37a.js +222 -0
- package/dist/vendor/.vite-deps-zod.js__v--706a718e.js +219 -0
- package/dist/vendor/.vite-deps-zod.js__v--7cce5f32.js +222 -0
- package/dist/vendor/.vite-deps-zod.js__v--8598b0e0.js +219 -0
- package/dist/vendor/vite-client.js +1 -1
- package/package.json +5 -4
package/dist/sdk/index.js
CHANGED
|
@@ -2968,7 +2968,9 @@ const ra = (r, e = {
|
|
|
2968
2968
|
schemaDefinition: ja,
|
|
2969
2969
|
prompt: O.string().optional(),
|
|
2970
2970
|
model: O.string().optional(),
|
|
2971
|
-
apiKey: O.string().min(1, "
|
|
2971
|
+
apiKey: O.string().min(1, "AI API key is required"),
|
|
2972
|
+
// 필수
|
|
2973
|
+
provider: O.enum(["openai", "anthropic"])
|
|
2972
2974
|
// 필수
|
|
2973
2975
|
});
|
|
2974
2976
|
function Fa(r) {
|
|
@@ -2980,28 +2982,29 @@ async function Ua(r) {
|
|
|
2980
2982
|
sourceData: e,
|
|
2981
2983
|
schemaDefinition: t,
|
|
2982
2984
|
prompt: a,
|
|
2983
|
-
model: s
|
|
2984
|
-
apiKey: i
|
|
2985
|
+
model: s,
|
|
2986
|
+
apiKey: i,
|
|
2987
|
+
provider: c
|
|
2985
2988
|
} = r;
|
|
2986
2989
|
if (e == null)
|
|
2987
2990
|
throw new Error("sourceData is required for ai-parse-data block");
|
|
2988
2991
|
if (!i || i.trim() === "")
|
|
2989
2992
|
throw new Error("apiKey is required for ai-parse-data block");
|
|
2990
|
-
const
|
|
2993
|
+
const f = await chrome.runtime.sendMessage({
|
|
2991
2994
|
type: "AI_PARSE_DATA",
|
|
2992
2995
|
data: {
|
|
2993
2996
|
sourceData: e,
|
|
2994
2997
|
schemaDefinition: t,
|
|
2995
2998
|
prompt: a,
|
|
2996
2999
|
model: s,
|
|
2997
|
-
apiKey: i
|
|
2998
|
-
|
|
3000
|
+
apiKey: i,
|
|
3001
|
+
provider: c
|
|
2999
3002
|
}
|
|
3000
3003
|
});
|
|
3001
|
-
if (
|
|
3002
|
-
throw new Error(
|
|
3004
|
+
if (f.$isError)
|
|
3005
|
+
throw new Error(f.message || "AI parsing failed");
|
|
3003
3006
|
return {
|
|
3004
|
-
data:
|
|
3007
|
+
data: f.data
|
|
3005
3008
|
};
|
|
3006
3009
|
} catch (e) {
|
|
3007
3010
|
return {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
1
|
+
import z from "/vendor/.vite-deps-zod.js__v--7cce5f32.js";
|
|
2
|
+
import { CurrencyInfoSchema } from "/src/sdk/types.ts.js";
|
|
2
3
|
const ObjectSchemaDefinitionSchema = z.object({
|
|
3
4
|
type: z.literal("object"),
|
|
4
5
|
shape: z.record(z.string(), z.any())
|
|
@@ -17,7 +18,9 @@ export const AiParseDataBlockSchema = z.object({
|
|
|
17
18
|
schemaDefinition: SchemaDefinitionSchema,
|
|
18
19
|
prompt: z.string().optional(),
|
|
19
20
|
model: z.string().optional(),
|
|
20
|
-
apiKey: z.string().min(1, "
|
|
21
|
+
apiKey: z.string().min(1, "AI API key is required"),
|
|
22
|
+
// 필수
|
|
23
|
+
provider: z.enum(["openai", "anthropic"])
|
|
21
24
|
// 필수
|
|
22
25
|
});
|
|
23
26
|
export function validateAiParseDataBlock(data) {
|
|
@@ -29,8 +32,9 @@ export async function handlerAiParseData(data) {
|
|
|
29
32
|
sourceData,
|
|
30
33
|
schemaDefinition,
|
|
31
34
|
prompt,
|
|
32
|
-
model
|
|
33
|
-
apiKey
|
|
35
|
+
model,
|
|
36
|
+
apiKey,
|
|
37
|
+
provider
|
|
34
38
|
} = data;
|
|
35
39
|
if (sourceData === void 0 || sourceData === null) {
|
|
36
40
|
throw new Error("sourceData is required for ai-parse-data block");
|
|
@@ -45,8 +49,8 @@ export async function handlerAiParseData(data) {
|
|
|
45
49
|
schemaDefinition,
|
|
46
50
|
prompt,
|
|
47
51
|
model,
|
|
48
|
-
apiKey
|
|
49
|
-
|
|
52
|
+
apiKey,
|
|
53
|
+
provider
|
|
50
54
|
}
|
|
51
55
|
});
|
|
52
56
|
if (response.$isError) {
|
|
@@ -97,5 +101,11 @@ export const Schema = {
|
|
|
97
101
|
type: "object",
|
|
98
102
|
shape,
|
|
99
103
|
...options
|
|
104
|
+
}),
|
|
105
|
+
currency: (options) => ({
|
|
106
|
+
type: "currency",
|
|
107
|
+
shape: CurrencyInfoSchema,
|
|
108
|
+
description: options?.description || "Currency information with code, symbol, format, amount, and text",
|
|
109
|
+
optional: options?.optional
|
|
100
110
|
})
|
|
101
111
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
3
|
+
import z from "/vendor/.vite-deps-zod.js__v--7cce5f32.js";
|
|
4
4
|
export const ClearValueFormsBlockSchema = BaseBlockSchema.extend({
|
|
5
5
|
name: z.literal("clear-value-form"),
|
|
6
6
|
type: z.enum(["text-field", "select", "checkbox"]).optional()
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
2
|
-
import __vite__cjsImport1_jsonata from "/vendor/.vite-deps-jsonata.js__v--
|
|
1
|
+
import z from "/vendor/.vite-deps-zod.js__v--7cce5f32.js";
|
|
2
|
+
import __vite__cjsImport1_jsonata from "/vendor/.vite-deps-jsonata.js__v--7cce5f32.js"; const jsonata = __vite__cjsImport1_jsonata.__esModule ? __vite__cjsImport1_jsonata.default : __vite__cjsImport1_jsonata;
|
|
3
3
|
export const DataExtractBlockSchema = z.object({
|
|
4
4
|
name: z.literal("data-extract"),
|
|
5
|
-
code: z.string()
|
|
5
|
+
code: z.string(),
|
|
6
|
+
inputData: z.any().optional()
|
|
6
7
|
});
|
|
7
8
|
export function validateDataExtractBlock(data) {
|
|
8
9
|
return DataExtractBlockSchema.parse(data);
|
|
9
10
|
}
|
|
10
|
-
export async function handlerDataExtract(data
|
|
11
|
+
export async function handlerDataExtract(data) {
|
|
11
12
|
try {
|
|
12
13
|
console.log("[DataExtractBlock] Executing JSONata query:", data.code);
|
|
13
|
-
console.log("[DataExtractBlock] Context:", context);
|
|
14
14
|
const expression = jsonata(data.code);
|
|
15
|
-
const result = await expression.evaluate(
|
|
15
|
+
const result = await expression.evaluate(data.inputData);
|
|
16
16
|
console.log("[DataExtractBlock] Data extraction successful");
|
|
17
17
|
return {
|
|
18
18
|
data: result
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
3
|
+
import z from "/vendor/.vite-deps-zod.js__v--7cce5f32.js";
|
|
4
4
|
export const ElementExistsBlockSchema = BaseBlockSchema.extend({
|
|
5
5
|
name: z.literal("element-exists")
|
|
6
6
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
1
|
+
import z from "/vendor/.vite-deps-zod.js__v--7cce5f32.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
3
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
4
4
|
export const EventClickBlockSchema = BaseBlockSchema.extend({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
1
|
+
import z from "/vendor/.vite-deps-zod.js__v--7cce5f32.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
3
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
4
4
|
export const GetAttributeValueBlockSchema = BaseBlockSchema.extend({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
1
|
+
import z from "/vendor/.vite-deps-zod.js__v--7cce5f32.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
3
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
4
4
|
import { CSSSelectorGenerator } from "/src/content/elements/utils/CSSSelectorGenerator.ts.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
1
|
+
import z from "/vendor/.vite-deps-zod.js__v--7cce5f32.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
3
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
4
4
|
export const GetTextBlockSchema = BaseBlockSchema.extend({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
3
|
+
import z from "/vendor/.vite-deps-zod.js__v--7cce5f32.js";
|
|
4
4
|
export const GetValueFormsBlockSchema = BaseBlockSchema.extend({
|
|
5
5
|
name: z.literal("get-value-form"),
|
|
6
6
|
type: z.enum(["text-field", "select", "checkbox"]).optional()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
3
|
+
import z from "/vendor/.vite-deps-zod.js__v--7cce5f32.js";
|
|
4
4
|
export const SaveAssetsBlockSchema = BaseBlockSchema.extend({
|
|
5
5
|
name: z.literal("save-assets")
|
|
6
6
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
1
|
+
import z from "/vendor/.vite-deps-zod.js__v--7cce5f32.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
3
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
4
4
|
export const ScrollBlockSchema = BaseBlockSchema.extend({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { findElement } from "/src/content/elements/index.ts.js";
|
|
2
2
|
import { BaseBlockSchema } from "/src/blocks/types.ts.js";
|
|
3
|
-
import z from "/vendor/.vite-deps-zod.js__v--
|
|
3
|
+
import z from "/vendor/.vite-deps-zod.js__v--7cce5f32.js";
|
|
4
4
|
export const SetValueFormsBlockSchema = BaseBlockSchema.extend({
|
|
5
5
|
name: z.literal("set-value-form"),
|
|
6
6
|
setValue: z.string(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createHotContext as __vite__createHotContext } from "/vendor/vite-client.js";import.meta.hot = __vite__createHotContext("/src/content/components/ConfirmationUI.tsx.js");import __vite__cjsImport0_react_jsxDevRuntime from "/vendor/.vite-deps-react_jsx-dev-runtime.js__v--
|
|
1
|
+
import { createHotContext as __vite__createHotContext } from "/vendor/vite-client.js";import.meta.hot = __vite__createHotContext("/src/content/components/ConfirmationUI.tsx.js");import __vite__cjsImport0_react_jsxDevRuntime from "/vendor/.vite-deps-react_jsx-dev-runtime.js__v--7cce5f32.js"; const jsxDEV = __vite__cjsImport0_react_jsxDevRuntime["jsxDEV"];
|
|
2
2
|
import * as RefreshRuntime from "/vendor/react-refresh.js";
|
|
3
3
|
const inWebWorker = typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope;
|
|
4
4
|
let prevRefreshReg;
|
|
@@ -15,8 +15,8 @@ if (import.meta.hot && !inWebWorker) {
|
|
|
15
15
|
window.$RefreshSig$ = RefreshRuntime.createSignatureFunctionForTransform;
|
|
16
16
|
}
|
|
17
17
|
var _s = $RefreshSig$(), _s2 = $RefreshSig$();
|
|
18
|
-
import __vite__cjsImport3_react from "/vendor/.vite-deps-react.js__v--
|
|
19
|
-
import __vite__cjsImport4_reactDom from "/vendor/.vite-deps-react-dom.js__v--
|
|
18
|
+
import __vite__cjsImport3_react from "/vendor/.vite-deps-react.js__v--7cce5f32.js"; const useEffect = __vite__cjsImport3_react["useEffect"]; const useState = __vite__cjsImport3_react["useState"];
|
|
19
|
+
import __vite__cjsImport4_reactDom from "/vendor/.vite-deps-react-dom.js__v--7cce5f32.js"; const createPortal = __vite__cjsImport4_reactDom["createPortal"];
|
|
20
20
|
const positionStyles = {
|
|
21
21
|
"top-left": {
|
|
22
22
|
top: "20px",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import __vite__cjsImport0_react_jsxDevRuntime from "/vendor/.vite-deps-react_jsx-dev-runtime.js__v--
|
|
2
|
-
import __vite__cjsImport1_reactDom_client from "/vendor/.vite-deps-react-dom_client.js__v--
|
|
1
|
+
import __vite__cjsImport0_react_jsxDevRuntime from "/vendor/.vite-deps-react_jsx-dev-runtime.js__v--7cce5f32.js"; const jsxDEV = __vite__cjsImport0_react_jsxDevRuntime["jsxDEV"];
|
|
2
|
+
import __vite__cjsImport1_reactDom_client from "/vendor/.vite-deps-react-dom_client.js__v--7cce5f32.js"; const createRoot = __vite__cjsImport1_reactDom_client["createRoot"];
|
|
3
3
|
import { MessageKernel } from "/src/content/kernel/MessageKernel.ts.js";
|
|
4
4
|
import { InternalMessageHandler } from "/src/content/handler/InternalMessageHandler.ts.js";
|
|
5
5
|
import { ExternalMessageHandler } from "/src/content/handler/ExternalMessageHandler.ts.js";
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
export * from "/src/blocks/index.ts.js";
|
|
2
|
+
export class Condition {
|
|
3
|
+
expr;
|
|
4
|
+
json;
|
|
5
|
+
}
|
|
6
|
+
export class Binding {
|
|
7
|
+
template;
|
|
8
|
+
valueFrom;
|
|
9
|
+
default;
|
|
10
|
+
}
|
|
11
|
+
export class WorkflowStep {
|
|
12
|
+
id;
|
|
13
|
+
title;
|
|
14
|
+
when;
|
|
15
|
+
block;
|
|
16
|
+
// BlockBase 호환. 바인딩은 런타임에서 해석
|
|
17
|
+
repeat;
|
|
18
|
+
// 반복 설정 (forEach 또는 count)`
|
|
19
|
+
next;
|
|
20
|
+
onSuccess;
|
|
21
|
+
onFailure;
|
|
22
|
+
switch;
|
|
23
|
+
timeoutMs;
|
|
24
|
+
retry;
|
|
25
|
+
delayAfterMs;
|
|
26
|
+
}
|
|
27
|
+
export class Workflow {
|
|
28
|
+
version;
|
|
29
|
+
id;
|
|
30
|
+
title;
|
|
31
|
+
description;
|
|
32
|
+
start;
|
|
33
|
+
steps;
|
|
34
|
+
vars;
|
|
35
|
+
// 워크플로우 초기 변수
|
|
36
|
+
defaultDelayMs;
|
|
37
|
+
}
|
|
38
|
+
export class WorkflowStepRunResult {
|
|
39
|
+
stepId;
|
|
40
|
+
skipped;
|
|
41
|
+
success;
|
|
42
|
+
message;
|
|
43
|
+
result;
|
|
44
|
+
startedAt;
|
|
45
|
+
finishedAt;
|
|
46
|
+
attempts;
|
|
47
|
+
}
|
|
48
|
+
export class CollectWorkflowResult {
|
|
49
|
+
success;
|
|
50
|
+
steps;
|
|
51
|
+
targetUrl;
|
|
52
|
+
timestamp;
|
|
53
|
+
error;
|
|
54
|
+
}
|
|
55
|
+
export var CurrencyCode = /* @__PURE__ */ ((CurrencyCode2) => {
|
|
56
|
+
CurrencyCode2["USD"] = "USD";
|
|
57
|
+
CurrencyCode2["KRW"] = "KRW";
|
|
58
|
+
CurrencyCode2["EUR"] = "EUR";
|
|
59
|
+
CurrencyCode2["GBP"] = "GBP";
|
|
60
|
+
CurrencyCode2["CAD"] = "CAD";
|
|
61
|
+
CurrencyCode2["CNY"] = "CNY";
|
|
62
|
+
CurrencyCode2["JPY"] = "JPY";
|
|
63
|
+
CurrencyCode2["VND"] = "VND";
|
|
64
|
+
CurrencyCode2["ARS"] = "ARS";
|
|
65
|
+
CurrencyCode2["INR"] = "INR";
|
|
66
|
+
CurrencyCode2["TWD"] = "TWD";
|
|
67
|
+
CurrencyCode2["AUD"] = "AUD";
|
|
68
|
+
CurrencyCode2["HKD"] = "HKD";
|
|
69
|
+
CurrencyCode2["IDR"] = "IDR";
|
|
70
|
+
CurrencyCode2["MXN"] = "MXN";
|
|
71
|
+
CurrencyCode2["NZD"] = "NZD";
|
|
72
|
+
CurrencyCode2["SGD"] = "SGD";
|
|
73
|
+
CurrencyCode2["CHF"] = "CHF";
|
|
74
|
+
CurrencyCode2["THB"] = "THB";
|
|
75
|
+
CurrencyCode2["BRL"] = "BRL";
|
|
76
|
+
CurrencyCode2["TRY"] = "TRY";
|
|
77
|
+
CurrencyCode2["RUB"] = "RUB";
|
|
78
|
+
CurrencyCode2["NOK"] = "NOK";
|
|
79
|
+
CurrencyCode2["DKK"] = "DKK";
|
|
80
|
+
CurrencyCode2["SEK"] = "SEK";
|
|
81
|
+
CurrencyCode2["ILS"] = "ILS";
|
|
82
|
+
CurrencyCode2["ZAR"] = "ZAR";
|
|
83
|
+
CurrencyCode2["PLN"] = "PLN";
|
|
84
|
+
CurrencyCode2["PHP"] = "PHP";
|
|
85
|
+
CurrencyCode2["CZK"] = "CZK";
|
|
86
|
+
CurrencyCode2["CLP"] = "CLP";
|
|
87
|
+
CurrencyCode2["COP"] = "COP";
|
|
88
|
+
CurrencyCode2["EGP"] = "EGP";
|
|
89
|
+
CurrencyCode2["MYR"] = "MYR";
|
|
90
|
+
CurrencyCode2["HUF"] = "HUF";
|
|
91
|
+
CurrencyCode2["AED"] = "AED";
|
|
92
|
+
CurrencyCode2["SAR"] = "SAR";
|
|
93
|
+
CurrencyCode2["RON"] = "RON";
|
|
94
|
+
CurrencyCode2["BGN"] = "BGN";
|
|
95
|
+
return CurrencyCode2;
|
|
96
|
+
})(CurrencyCode || {});
|
|
97
|
+
export const CurrencyInfoSchema = {
|
|
98
|
+
code: {
|
|
99
|
+
type: "string",
|
|
100
|
+
enum: Object.values(CurrencyCode),
|
|
101
|
+
description: "Currency code"
|
|
102
|
+
},
|
|
103
|
+
symbol: {
|
|
104
|
+
type: "string",
|
|
105
|
+
enum: [
|
|
106
|
+
"$",
|
|
107
|
+
"₩",
|
|
108
|
+
"€",
|
|
109
|
+
"£",
|
|
110
|
+
"¥",
|
|
111
|
+
"₫",
|
|
112
|
+
"₹",
|
|
113
|
+
"NT$",
|
|
114
|
+
"Rp",
|
|
115
|
+
"₣",
|
|
116
|
+
"฿",
|
|
117
|
+
"R$",
|
|
118
|
+
"₺",
|
|
119
|
+
"₽",
|
|
120
|
+
"kr",
|
|
121
|
+
"₪",
|
|
122
|
+
"R",
|
|
123
|
+
"zł",
|
|
124
|
+
"₱",
|
|
125
|
+
"Kč",
|
|
126
|
+
"E£",
|
|
127
|
+
"RM",
|
|
128
|
+
"Ft",
|
|
129
|
+
"د.إ",
|
|
130
|
+
"﷼",
|
|
131
|
+
"L",
|
|
132
|
+
"лв"
|
|
133
|
+
],
|
|
134
|
+
description: "Currency symbol"
|
|
135
|
+
},
|
|
136
|
+
format: {
|
|
137
|
+
type: "string",
|
|
138
|
+
enum: ["%s%u", "%s%n", "%u%s", "%n%s", "%s %u", "%s %n", "%u %s", "%n %s"],
|
|
139
|
+
description: "Display format (%s: symbol, %u/%n: amount)"
|
|
140
|
+
},
|
|
141
|
+
amount: {
|
|
142
|
+
type: "number",
|
|
143
|
+
description: "Actual amount value"
|
|
144
|
+
},
|
|
145
|
+
text: {
|
|
146
|
+
type: "string",
|
|
147
|
+
description: "Formatted display text (e.g., US$57.75)"
|
|
148
|
+
}
|
|
149
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
15
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
|
+
};
|
|
17
|
+
var __export = (target, all) => {
|
|
18
|
+
for (var name in all)
|
|
19
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
20
|
+
};
|
|
21
|
+
var __copyProps = (to, from, except, desc) => {
|
|
22
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
+
for (let key of __getOwnPropNames(from))
|
|
24
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
25
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
26
|
+
}
|
|
27
|
+
return to;
|
|
28
|
+
};
|
|
29
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
32
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
33
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
34
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
35
|
+
mod
|
|
36
|
+
));
|
|
37
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
__require,
|
|
41
|
+
__commonJS,
|
|
42
|
+
__export,
|
|
43
|
+
__toESM,
|
|
44
|
+
__publicField
|
|
45
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
15
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
|
+
};
|
|
17
|
+
var __export = (target, all) => {
|
|
18
|
+
for (var name in all)
|
|
19
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
20
|
+
};
|
|
21
|
+
var __copyProps = (to, from, except, desc) => {
|
|
22
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
+
for (let key of __getOwnPropNames(from))
|
|
24
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
25
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
26
|
+
}
|
|
27
|
+
return to;
|
|
28
|
+
};
|
|
29
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
32
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
33
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
34
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
35
|
+
mod
|
|
36
|
+
));
|
|
37
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
__require,
|
|
41
|
+
__commonJS,
|
|
42
|
+
__export,
|
|
43
|
+
__toESM,
|
|
44
|
+
__publicField
|
|
45
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
15
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
|
+
};
|
|
17
|
+
var __export = (target, all) => {
|
|
18
|
+
for (var name in all)
|
|
19
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
20
|
+
};
|
|
21
|
+
var __copyProps = (to, from, except, desc) => {
|
|
22
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
+
for (let key of __getOwnPropNames(from))
|
|
24
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
25
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
26
|
+
}
|
|
27
|
+
return to;
|
|
28
|
+
};
|
|
29
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
32
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
33
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
34
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
35
|
+
mod
|
|
36
|
+
));
|
|
37
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
__require,
|
|
41
|
+
__commonJS,
|
|
42
|
+
__export,
|
|
43
|
+
__toESM,
|
|
44
|
+
__publicField
|
|
45
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
15
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
|
+
};
|
|
17
|
+
var __export = (target, all) => {
|
|
18
|
+
for (var name in all)
|
|
19
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
20
|
+
};
|
|
21
|
+
var __copyProps = (to, from, except, desc) => {
|
|
22
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
23
|
+
for (let key of __getOwnPropNames(from))
|
|
24
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
25
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
26
|
+
}
|
|
27
|
+
return to;
|
|
28
|
+
};
|
|
29
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
30
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
31
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
32
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
33
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
34
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
35
|
+
mod
|
|
36
|
+
));
|
|
37
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
__require,
|
|
41
|
+
__commonJS,
|
|
42
|
+
__export,
|
|
43
|
+
__toESM,
|
|
44
|
+
__publicField
|
|
45
|
+
};
|