@lessly/sdk-app 54.0.0 → 54.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lessly/sdk-app",
3
- "version": "54.0.0",
3
+ "version": "54.1.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "engines": {
@@ -176,5 +176,5 @@
176
176
  }
177
177
  }
178
178
  },
179
- "sdkContentHash": "sha256:4391188750d7d623e9a49580b185fa3c3571a143a3deb196d40121ffd5a38baf"
179
+ "sdkContentHash": "sha256:9b67124df44dfc3db5b3f4ddd7a6a19ca69ff65566725c42a9987ab41c051b75"
180
180
  }
@@ -1,3 +1,3 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
2
  export * from './queryOptions.gen';
3
- export type { AnalyticsQueryRunInput, AnalyticsQueryRunOutput } from '../types.gen';
3
+ export type { AnalyticsCatalogGetInput, AnalyticsCatalogGetOutput, AnalyticsDashboardCreateInput, AnalyticsDashboardCreateOutput, AnalyticsDashboardDeleteInput, AnalyticsDashboardDeleteOutput, AnalyticsDashboardGetInput, AnalyticsDashboardGetOutput, AnalyticsDashboardListInput, AnalyticsDashboardListOutput, AnalyticsDashboardRunInput, AnalyticsDashboardRunOutput, AnalyticsDashboardUpdateInput, AnalyticsDashboardUpdateOutput, AnalyticsFunnelRunInput, AnalyticsFunnelRunOutput, AnalyticsInsightCreateInput, AnalyticsInsightCreateOutput, AnalyticsInsightDeleteInput, AnalyticsInsightDeleteOutput, AnalyticsInsightGetInput, AnalyticsInsightGetOutput, AnalyticsInsightListInput, AnalyticsInsightListOutput, AnalyticsInsightRunInput, AnalyticsInsightRunOutput, AnalyticsInsightUpdateInput, AnalyticsInsightUpdateOutput, AnalyticsMetricQueryInput, AnalyticsMetricQueryOutput, AnalyticsPersonTimelineInput, AnalyticsPersonTimelineOutput, AnalyticsQueryRunInput, AnalyticsQueryRunOutput } from '../types.gen';
@@ -1,10 +1,116 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
2
  import type { GeneratedClient } from '../client.gen';
3
3
  import type {
4
+ AnalyticsCatalogGetInput,
5
+ AnalyticsCatalogGetOutput,
6
+ AnalyticsDashboardCreateInput,
7
+ AnalyticsDashboardDeleteInput,
8
+ AnalyticsDashboardGetInput,
9
+ AnalyticsDashboardGetOutput,
10
+ AnalyticsDashboardListInput,
11
+ AnalyticsDashboardListOutput,
12
+ AnalyticsDashboardRunInput,
13
+ AnalyticsDashboardRunOutput,
14
+ AnalyticsDashboardUpdateInput,
15
+ AnalyticsFunnelRunInput,
16
+ AnalyticsFunnelRunOutput,
17
+ AnalyticsInsightCreateInput,
18
+ AnalyticsInsightDeleteInput,
19
+ AnalyticsInsightGetInput,
20
+ AnalyticsInsightGetOutput,
21
+ AnalyticsInsightListInput,
22
+ AnalyticsInsightListOutput,
23
+ AnalyticsInsightRunInput,
24
+ AnalyticsInsightRunOutput,
25
+ AnalyticsInsightUpdateInput,
26
+ AnalyticsMetricQueryInput,
27
+ AnalyticsMetricQueryOutput,
28
+ AnalyticsPersonTimelineInput,
29
+ AnalyticsPersonTimelineOutput,
4
30
  AnalyticsQueryRunInput,
5
31
  AnalyticsQueryRunOutput,
6
32
  } from '../types.gen';
7
33
 
34
+ export const analyticsCatalogGetQueryOptions = (sdk: GeneratedClient, input: AnalyticsCatalogGetInput) => ({
35
+ queryKey: ['analytics', 'catalog', 'get', input] as const,
36
+ queryFn: () => sdk['analytics']['catalog']['get'](input),
37
+ });
38
+
39
+ export const analyticsDashboardCreateMutationOptions = (sdk: GeneratedClient) => ({
40
+ mutationKey: ['analytics', 'dashboard', 'create'],
41
+ mutationFn: (input: AnalyticsDashboardCreateInput) => sdk['analytics']['dashboard']['create'](input),
42
+ });
43
+
44
+ export const analyticsDashboardDeleteMutationOptions = (sdk: GeneratedClient) => ({
45
+ mutationKey: ['analytics', 'dashboard', 'delete'],
46
+ mutationFn: (input: AnalyticsDashboardDeleteInput) => sdk['analytics']['dashboard']['delete'](input),
47
+ });
48
+
49
+ export const analyticsDashboardGetQueryOptions = (sdk: GeneratedClient, input: AnalyticsDashboardGetInput) => ({
50
+ queryKey: ['analytics', 'dashboard', 'get', input] as const,
51
+ queryFn: () => sdk['analytics']['dashboard']['get'](input),
52
+ });
53
+
54
+ export const analyticsDashboardListQueryOptions = (sdk: GeneratedClient, input: AnalyticsDashboardListInput) => ({
55
+ queryKey: ['analytics', 'dashboard', 'list', input] as const,
56
+ queryFn: () => sdk['analytics']['dashboard']['list'](input),
57
+ });
58
+
59
+ export const analyticsDashboardRunQueryOptions = (sdk: GeneratedClient, input: AnalyticsDashboardRunInput) => ({
60
+ queryKey: ['analytics', 'dashboard', 'run', input] as const,
61
+ queryFn: () => sdk['analytics']['dashboard']['run'](input),
62
+ });
63
+
64
+ export const analyticsDashboardUpdateMutationOptions = (sdk: GeneratedClient) => ({
65
+ mutationKey: ['analytics', 'dashboard', 'update'],
66
+ mutationFn: (input: AnalyticsDashboardUpdateInput) => sdk['analytics']['dashboard']['update'](input),
67
+ });
68
+
69
+ export const analyticsFunnelRunQueryOptions = (sdk: GeneratedClient, input: AnalyticsFunnelRunInput) => ({
70
+ queryKey: ['analytics', 'funnel', 'run', input] as const,
71
+ queryFn: () => sdk['analytics']['funnel']['run'](input),
72
+ });
73
+
74
+ export const analyticsInsightCreateMutationOptions = (sdk: GeneratedClient) => ({
75
+ mutationKey: ['analytics', 'insight', 'create'],
76
+ mutationFn: (input: AnalyticsInsightCreateInput) => sdk['analytics']['insight']['create'](input),
77
+ });
78
+
79
+ export const analyticsInsightDeleteMutationOptions = (sdk: GeneratedClient) => ({
80
+ mutationKey: ['analytics', 'insight', 'delete'],
81
+ mutationFn: (input: AnalyticsInsightDeleteInput) => sdk['analytics']['insight']['delete'](input),
82
+ });
83
+
84
+ export const analyticsInsightGetQueryOptions = (sdk: GeneratedClient, input: AnalyticsInsightGetInput) => ({
85
+ queryKey: ['analytics', 'insight', 'get', input] as const,
86
+ queryFn: () => sdk['analytics']['insight']['get'](input),
87
+ });
88
+
89
+ export const analyticsInsightListQueryOptions = (sdk: GeneratedClient, input: AnalyticsInsightListInput) => ({
90
+ queryKey: ['analytics', 'insight', 'list', input] as const,
91
+ queryFn: () => sdk['analytics']['insight']['list'](input),
92
+ });
93
+
94
+ export const analyticsInsightRunQueryOptions = (sdk: GeneratedClient, input: AnalyticsInsightRunInput) => ({
95
+ queryKey: ['analytics', 'insight', 'run', input] as const,
96
+ queryFn: () => sdk['analytics']['insight']['run'](input),
97
+ });
98
+
99
+ export const analyticsInsightUpdateMutationOptions = (sdk: GeneratedClient) => ({
100
+ mutationKey: ['analytics', 'insight', 'update'],
101
+ mutationFn: (input: AnalyticsInsightUpdateInput) => sdk['analytics']['insight']['update'](input),
102
+ });
103
+
104
+ export const analyticsMetricQueryQueryOptions = (sdk: GeneratedClient, input: AnalyticsMetricQueryInput) => ({
105
+ queryKey: ['analytics', 'metric', 'query', input] as const,
106
+ queryFn: () => sdk['analytics']['metric']['query'](input),
107
+ });
108
+
109
+ export const analyticsPersonTimelineQueryOptions = (sdk: GeneratedClient, input: AnalyticsPersonTimelineInput) => ({
110
+ queryKey: ['analytics', 'person', 'timeline', input] as const,
111
+ queryFn: () => sdk['analytics']['person']['timeline'](input),
112
+ });
113
+
8
114
  export const analyticsQueryRunQueryOptions = (sdk: GeneratedClient, input: AnalyticsQueryRunInput) => ({
9
115
  queryKey: ['analytics', 'query', 'run', input] as const,
10
116
  queryFn: () => sdk['analytics']['query']['run'](input),
@@ -3,6 +3,372 @@ import type { BindingsMap, WsBindingsMap } from '../runtime/types';
3
3
 
4
4
  export const bindings: BindingsMap = {
5
5
  "analytics": {
6
+ "catalog": {
7
+ "get": {
8
+ "method": "GET",
9
+ "path": "/analytics/catalog",
10
+ "readOnly": true
11
+ }
12
+ },
13
+ "dashboard": {
14
+ "create": {
15
+ "method": "POST",
16
+ "params": [
17
+ {
18
+ "in": "body",
19
+ "name": "slug"
20
+ },
21
+ {
22
+ "in": "body",
23
+ "name": "name"
24
+ },
25
+ {
26
+ "in": "body",
27
+ "name": "tiles"
28
+ },
29
+ {
30
+ "in": "body",
31
+ "name": "tags"
32
+ }
33
+ ],
34
+ "path": "/analytics/dashboards",
35
+ "readOnly": false
36
+ },
37
+ "delete": {
38
+ "method": "DELETE",
39
+ "params": [
40
+ {
41
+ "in": "path",
42
+ "name": "id"
43
+ }
44
+ ],
45
+ "path": "/analytics/dashboards/:id",
46
+ "readOnly": false
47
+ },
48
+ "get": {
49
+ "method": "GET",
50
+ "params": [
51
+ {
52
+ "in": "path",
53
+ "name": "idOrSlug"
54
+ }
55
+ ],
56
+ "path": "/analytics/dashboards/:idOrSlug",
57
+ "readOnly": true
58
+ },
59
+ "list": {
60
+ "method": "GET",
61
+ "params": [
62
+ {
63
+ "in": "query",
64
+ "name": "tag"
65
+ },
66
+ {
67
+ "in": "query",
68
+ "name": "q"
69
+ }
70
+ ],
71
+ "path": "/analytics/dashboards",
72
+ "readOnly": true
73
+ },
74
+ "run": {
75
+ "method": "POST",
76
+ "params": [
77
+ {
78
+ "in": "body",
79
+ "name": "from"
80
+ },
81
+ {
82
+ "in": "body",
83
+ "name": "to"
84
+ },
85
+ {
86
+ "in": "path",
87
+ "name": "idOrSlug"
88
+ }
89
+ ],
90
+ "path": "/analytics/dashboards/:idOrSlug/run",
91
+ "readOnly": true
92
+ },
93
+ "update": {
94
+ "method": "PATCH",
95
+ "params": [
96
+ {
97
+ "in": "body",
98
+ "name": "name"
99
+ },
100
+ {
101
+ "in": "body",
102
+ "name": "tiles"
103
+ },
104
+ {
105
+ "in": "body",
106
+ "name": "tags"
107
+ },
108
+ {
109
+ "in": "path",
110
+ "name": "id"
111
+ }
112
+ ],
113
+ "path": "/analytics/dashboards/:id",
114
+ "readOnly": false
115
+ }
116
+ },
117
+ "funnel": {
118
+ "run": {
119
+ "method": "POST",
120
+ "params": [
121
+ {
122
+ "in": "body",
123
+ "name": "steps"
124
+ },
125
+ {
126
+ "in": "body",
127
+ "name": "from"
128
+ },
129
+ {
130
+ "in": "body",
131
+ "name": "to"
132
+ },
133
+ {
134
+ "in": "body",
135
+ "name": "window_days"
136
+ },
137
+ {
138
+ "in": "body",
139
+ "name": "grain"
140
+ }
141
+ ],
142
+ "path": "/analytics/funnels/run",
143
+ "readOnly": true
144
+ }
145
+ },
146
+ "insight": {
147
+ "create": {
148
+ "method": "POST",
149
+ "params": [
150
+ {
151
+ "in": "body",
152
+ "name": "slug"
153
+ },
154
+ {
155
+ "in": "body",
156
+ "name": "name"
157
+ },
158
+ {
159
+ "in": "body",
160
+ "name": "description"
161
+ },
162
+ {
163
+ "in": "body",
164
+ "name": "kind"
165
+ },
166
+ {
167
+ "in": "body",
168
+ "name": "series"
169
+ },
170
+ {
171
+ "in": "body",
172
+ "name": "formula"
173
+ },
174
+ {
175
+ "in": "body",
176
+ "name": "window"
177
+ },
178
+ {
179
+ "in": "body",
180
+ "name": "grain"
181
+ },
182
+ {
183
+ "in": "body",
184
+ "name": "display"
185
+ },
186
+ {
187
+ "in": "body",
188
+ "name": "tags"
189
+ },
190
+ {
191
+ "in": "body",
192
+ "name": "target"
193
+ }
194
+ ],
195
+ "path": "/analytics/insights",
196
+ "readOnly": false
197
+ },
198
+ "delete": {
199
+ "method": "DELETE",
200
+ "params": [
201
+ {
202
+ "in": "path",
203
+ "name": "id"
204
+ }
205
+ ],
206
+ "path": "/analytics/insights/:id",
207
+ "readOnly": false
208
+ },
209
+ "get": {
210
+ "method": "GET",
211
+ "params": [
212
+ {
213
+ "in": "path",
214
+ "name": "idOrSlug"
215
+ }
216
+ ],
217
+ "path": "/analytics/insights/:idOrSlug",
218
+ "readOnly": true
219
+ },
220
+ "list": {
221
+ "method": "GET",
222
+ "params": [
223
+ {
224
+ "in": "query",
225
+ "name": "tag"
226
+ },
227
+ {
228
+ "in": "query",
229
+ "name": "q"
230
+ }
231
+ ],
232
+ "path": "/analytics/insights",
233
+ "readOnly": true
234
+ },
235
+ "run": {
236
+ "method": "POST",
237
+ "params": [
238
+ {
239
+ "in": "body",
240
+ "name": "from"
241
+ },
242
+ {
243
+ "in": "body",
244
+ "name": "to"
245
+ },
246
+ {
247
+ "in": "path",
248
+ "name": "idOrSlug"
249
+ }
250
+ ],
251
+ "path": "/analytics/insights/:idOrSlug/run",
252
+ "readOnly": true
253
+ },
254
+ "update": {
255
+ "method": "PATCH",
256
+ "params": [
257
+ {
258
+ "in": "body",
259
+ "name": "name"
260
+ },
261
+ {
262
+ "in": "body",
263
+ "name": "description"
264
+ },
265
+ {
266
+ "in": "body",
267
+ "name": "kind"
268
+ },
269
+ {
270
+ "in": "body",
271
+ "name": "series"
272
+ },
273
+ {
274
+ "in": "body",
275
+ "name": "formula"
276
+ },
277
+ {
278
+ "in": "body",
279
+ "name": "window"
280
+ },
281
+ {
282
+ "in": "body",
283
+ "name": "grain"
284
+ },
285
+ {
286
+ "in": "body",
287
+ "name": "display"
288
+ },
289
+ {
290
+ "in": "body",
291
+ "name": "tags"
292
+ },
293
+ {
294
+ "in": "body",
295
+ "name": "target"
296
+ },
297
+ {
298
+ "in": "path",
299
+ "name": "id"
300
+ }
301
+ ],
302
+ "path": "/analytics/insights/:id",
303
+ "readOnly": false
304
+ }
305
+ },
306
+ "metric": {
307
+ "query": {
308
+ "method": "POST",
309
+ "params": [
310
+ {
311
+ "in": "body",
312
+ "name": "entity"
313
+ },
314
+ {
315
+ "in": "body",
316
+ "name": "metrics"
317
+ },
318
+ {
319
+ "in": "body",
320
+ "name": "grain"
321
+ },
322
+ {
323
+ "in": "body",
324
+ "name": "from"
325
+ },
326
+ {
327
+ "in": "body",
328
+ "name": "to"
329
+ },
330
+ {
331
+ "in": "body",
332
+ "name": "group_by"
333
+ },
334
+ {
335
+ "in": "body",
336
+ "name": "filters"
337
+ }
338
+ ],
339
+ "path": "/analytics/metrics/query",
340
+ "readOnly": true
341
+ }
342
+ },
343
+ "person": {
344
+ "timeline": {
345
+ "method": "POST",
346
+ "params": [
347
+ {
348
+ "in": "body",
349
+ "name": "person_id"
350
+ },
351
+ {
352
+ "in": "body",
353
+ "name": "identifier"
354
+ },
355
+ {
356
+ "in": "body",
357
+ "name": "from"
358
+ },
359
+ {
360
+ "in": "body",
361
+ "name": "to"
362
+ },
363
+ {
364
+ "in": "body",
365
+ "name": "limit"
366
+ }
367
+ ],
368
+ "path": "/analytics/persons/timeline",
369
+ "readOnly": true
370
+ }
371
+ },
6
372
  "query": {
7
373
  "run": {
8
374
  "method": "POST",
@@ -1,5 +1,37 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
2
  import type {
3
+ AnalyticsCatalogGetInput,
4
+ AnalyticsCatalogGetOutput,
5
+ AnalyticsDashboardCreateInput,
6
+ AnalyticsDashboardCreateOutput,
7
+ AnalyticsDashboardDeleteInput,
8
+ AnalyticsDashboardDeleteOutput,
9
+ AnalyticsDashboardGetInput,
10
+ AnalyticsDashboardGetOutput,
11
+ AnalyticsDashboardListInput,
12
+ AnalyticsDashboardListOutput,
13
+ AnalyticsDashboardRunInput,
14
+ AnalyticsDashboardRunOutput,
15
+ AnalyticsDashboardUpdateInput,
16
+ AnalyticsDashboardUpdateOutput,
17
+ AnalyticsFunnelRunInput,
18
+ AnalyticsFunnelRunOutput,
19
+ AnalyticsInsightCreateInput,
20
+ AnalyticsInsightCreateOutput,
21
+ AnalyticsInsightDeleteInput,
22
+ AnalyticsInsightDeleteOutput,
23
+ AnalyticsInsightGetInput,
24
+ AnalyticsInsightGetOutput,
25
+ AnalyticsInsightListInput,
26
+ AnalyticsInsightListOutput,
27
+ AnalyticsInsightRunInput,
28
+ AnalyticsInsightRunOutput,
29
+ AnalyticsInsightUpdateInput,
30
+ AnalyticsInsightUpdateOutput,
31
+ AnalyticsMetricQueryInput,
32
+ AnalyticsMetricQueryOutput,
33
+ AnalyticsPersonTimelineInput,
34
+ AnalyticsPersonTimelineOutput,
3
35
  AnalyticsQueryRunInput,
4
36
  AnalyticsQueryRunOutput,
5
37
  BrainBackupCreateInput,
@@ -1026,6 +1058,34 @@ import type {
1026
1058
 
1027
1059
  export interface GeneratedClient {
1028
1060
  analytics: {
1061
+ catalog: {
1062
+ get(input: AnalyticsCatalogGetInput): Promise<AnalyticsCatalogGetOutput>;
1063
+ };
1064
+ dashboard: {
1065
+ create(input: AnalyticsDashboardCreateInput): Promise<AnalyticsDashboardCreateOutput>;
1066
+ delete(input: AnalyticsDashboardDeleteInput): Promise<AnalyticsDashboardDeleteOutput>;
1067
+ get(input: AnalyticsDashboardGetInput): Promise<AnalyticsDashboardGetOutput>;
1068
+ list(input: AnalyticsDashboardListInput): Promise<AnalyticsDashboardListOutput>;
1069
+ run(input: AnalyticsDashboardRunInput): Promise<AnalyticsDashboardRunOutput>;
1070
+ update(input: AnalyticsDashboardUpdateInput): Promise<AnalyticsDashboardUpdateOutput>;
1071
+ };
1072
+ funnel: {
1073
+ run(input: AnalyticsFunnelRunInput): Promise<AnalyticsFunnelRunOutput>;
1074
+ };
1075
+ insight: {
1076
+ create(input: AnalyticsInsightCreateInput): Promise<AnalyticsInsightCreateOutput>;
1077
+ delete(input: AnalyticsInsightDeleteInput): Promise<AnalyticsInsightDeleteOutput>;
1078
+ get(input: AnalyticsInsightGetInput): Promise<AnalyticsInsightGetOutput>;
1079
+ list(input: AnalyticsInsightListInput): Promise<AnalyticsInsightListOutput>;
1080
+ run(input: AnalyticsInsightRunInput): Promise<AnalyticsInsightRunOutput>;
1081
+ update(input: AnalyticsInsightUpdateInput): Promise<AnalyticsInsightUpdateOutput>;
1082
+ };
1083
+ metric: {
1084
+ query(input: AnalyticsMetricQueryInput): Promise<AnalyticsMetricQueryOutput>;
1085
+ };
1086
+ person: {
1087
+ timeline(input: AnalyticsPersonTimelineInput): Promise<AnalyticsPersonTimelineOutput>;
1088
+ };
1029
1089
  query: {
1030
1090
  run(input: AnalyticsQueryRunInput): Promise<AnalyticsQueryRunOutput>;
1031
1091
  };