@lacneu/wix-openclaw 0.5.0 → 0.6.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.
@@ -0,0 +1,124 @@
1
+ import { type WixClient } from "../wix-client.js";
2
+ export declare function buildAnalyticsTools(client: WixClient): ({
3
+ name: string;
4
+ description: string;
5
+ label: string;
6
+ parameters: import("@sinclair/typebox").TObject<{
7
+ siteId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
8
+ }>;
9
+ execute: (toolCallId: string, params: {
10
+ siteId?: string | undefined;
11
+ }, signal?: AbortSignal) => Promise<import("./_factory.js").WixToolResult<{
12
+ status: "ok" | "failed";
13
+ data?: unknown;
14
+ error
15
+ /** An abort is not a failed read. Swallowed by a general `catch`, a cancelled
16
+ * call carried on and answered `ok` with a generic explanation — the caller
17
+ * had already given up, and got an answer that looked like a result. */
18
+ ?: string;
19
+ }>>;
20
+ } | {
21
+ name: string;
22
+ description: string;
23
+ label: string;
24
+ parameters: import("@sinclair/typebox").TObject<{
25
+ siteId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
26
+ semanticModelId: import("@sinclair/typebox").TString;
27
+ }>;
28
+ execute: (toolCallId: string, params: {
29
+ siteId?: string | undefined;
30
+ semanticModelId: string;
31
+ }, signal?: AbortSignal) => Promise<import("./_factory.js").WixToolResult<{
32
+ status: "ok" | "failed";
33
+ data?: unknown;
34
+ error
35
+ /** An abort is not a failed read. Swallowed by a general `catch`, a cancelled
36
+ * call carried on and answered `ok` with a generic explanation — the caller
37
+ * had already given up, and got an answer that looked like a result. */
38
+ ?: string;
39
+ }>>;
40
+ } | {
41
+ name: string;
42
+ description: string;
43
+ label: string;
44
+ parameters: import("@sinclair/typebox").TObject<{
45
+ siteId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
46
+ semanticModelId: import("@sinclair/typebox").TString;
47
+ fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
48
+ start: import("@sinclair/typebox").TString;
49
+ end: import("@sinclair/typebox").TString;
50
+ timezone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
51
+ limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
52
+ offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
53
+ totalsIncluded: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
54
+ sort: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
55
+ fieldName: import("@sinclair/typebox").TString;
56
+ order: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ASC">, import("@sinclair/typebox").TLiteral<"DESC">]>>;
57
+ nullsLast: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
58
+ }>>;
59
+ filters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
60
+ field: import("@sinclair/typebox").TString;
61
+ values: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
62
+ condition: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"EQUAL">, import("@sinclair/typebox").TLiteral<"GREATER_THAN">, import("@sinclair/typebox").TLiteral<"GREATER_THAN_OR_EQUAL">, import("@sinclair/typebox").TLiteral<"LESS_THAN">, import("@sinclair/typebox").TLiteral<"LESS_THAN_OR_EQUAL">, import("@sinclair/typebox").TLiteral<"NULL">, import("@sinclair/typebox").TLiteral<"EMPTY">, import("@sinclair/typebox").TLiteral<"START_WITH">, import("@sinclair/typebox").TLiteral<"END_WITH">, import("@sinclair/typebox").TLiteral<"CONTAINS_ANY">, import("@sinclair/typebox").TLiteral<"CONTAINS_ALL">, import("@sinclair/typebox").TLiteral<"RANGE_II">, import("@sinclair/typebox").TLiteral<"RANGE_IE">, import("@sinclair/typebox").TLiteral<"RANGE_EI">, import("@sinclair/typebox").TLiteral<"RANGE_EE">]>>;
63
+ prefix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"IS">, import("@sinclair/typebox").TLiteral<"NOT">]>>;
64
+ }>>>;
65
+ formattingEnabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
66
+ }>;
67
+ execute: (toolCallId: string, params: {
68
+ sort?: {
69
+ order?: "ASC" | "DESC" | undefined;
70
+ nullsLast?: boolean | undefined;
71
+ fieldName: string;
72
+ } | undefined;
73
+ siteId?: string | undefined;
74
+ limit?: number | undefined;
75
+ offset?: number | undefined;
76
+ timezone?: string | undefined;
77
+ totalsIncluded?: boolean | undefined;
78
+ filters?: {
79
+ condition?: "EQUAL" | "GREATER_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN" | "LESS_THAN_OR_EQUAL" | "NULL" | "EMPTY" | "START_WITH" | "END_WITH" | "CONTAINS_ANY" | "CONTAINS_ALL" | "RANGE_II" | "RANGE_IE" | "RANGE_EI" | "RANGE_EE" | undefined;
80
+ prefix?: "IS" | "NOT" | undefined;
81
+ values: string[];
82
+ field: string;
83
+ }[] | undefined;
84
+ formattingEnabled?: boolean | undefined;
85
+ fields: string[];
86
+ semanticModelId: string;
87
+ start: string;
88
+ end: string;
89
+ }, signal?: AbortSignal) => Promise<import("./_factory.js").WixToolResult<{
90
+ status: "ok" | "failed";
91
+ data?: unknown;
92
+ error
93
+ /** An abort is not a failed read. Swallowed by a general `catch`, a cancelled
94
+ * call carried on and answered `ok` with a generic explanation — the caller
95
+ * had already given up, and got an answer that looked like a result. */
96
+ ?: string;
97
+ }>>;
98
+ } | {
99
+ name: string;
100
+ description: string;
101
+ label: string;
102
+ parameters: import("@sinclair/typebox").TObject<{
103
+ siteId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
104
+ startDate: import("@sinclair/typebox").TString;
105
+ endDate: import("@sinclair/typebox").TString;
106
+ measurementTypes: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
107
+ timeZone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
108
+ }>;
109
+ execute: (toolCallId: string, params: {
110
+ siteId?: string | undefined;
111
+ timeZone?: string | undefined;
112
+ startDate: string;
113
+ endDate: string;
114
+ measurementTypes: string[];
115
+ }, signal?: AbortSignal) => Promise<import("./_factory.js").WixToolResult<{
116
+ status: "ok" | "failed";
117
+ data?: unknown;
118
+ error
119
+ /** An abort is not a failed read. Swallowed by a general `catch`, a cancelled
120
+ * call carried on and answered `ok` with a generic explanation — the caller
121
+ * had already given up, and got an answer that looked like a result. */
122
+ ?: string;
123
+ }>>;
124
+ })[];