@xentom/integration-framework 0.0.9 → 0.0.10
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/controls/select.d.ts +23 -1
- package/package.json +2 -2
|
@@ -27,17 +27,39 @@ export interface SelectControl<S = never, Multiple extends boolean = boolean> ex
|
|
|
27
27
|
placeholder?: string;
|
|
28
28
|
}
|
|
29
29
|
export type SelectControlOptions<S = never> = SelectControlOption<S>[];
|
|
30
|
-
export type SelectControlOptionsCallback<S = never> = (opts: SelectControlOptionsCallbackOptions) => Promise<
|
|
30
|
+
export type SelectControlOptionsCallback<S = never> = (opts: SelectControlOptionsCallbackOptions) => Promise<SelectControlOptionsWithMetadata<S>> | SelectControlOptionsWithMetadata<S>;
|
|
31
31
|
export interface SelectControlOptionsCallbackOptions extends IntegrationOptions<Auth> {
|
|
32
32
|
node: {
|
|
33
33
|
inputs: Record<string, unknown>;
|
|
34
34
|
outputs: Record<string, unknown>;
|
|
35
35
|
};
|
|
36
|
+
pagination: {
|
|
37
|
+
/**
|
|
38
|
+
* The limit of options to return.
|
|
39
|
+
*/
|
|
40
|
+
limit: number;
|
|
41
|
+
/**
|
|
42
|
+
* The cursor to use to get the next page of options.
|
|
43
|
+
*/
|
|
44
|
+
after?: string | number;
|
|
45
|
+
/**
|
|
46
|
+
* The cursor to use to get the previous page of options.
|
|
47
|
+
*/
|
|
48
|
+
before?: string | number;
|
|
49
|
+
/**
|
|
50
|
+
* The page number to use to get the next page of options.
|
|
51
|
+
*/
|
|
52
|
+
page: number;
|
|
53
|
+
};
|
|
36
54
|
/**
|
|
37
55
|
* The search query used to filter the options.
|
|
38
56
|
*/
|
|
39
57
|
search?: string;
|
|
40
58
|
}
|
|
59
|
+
export interface SelectControlOptionsWithMetadata<S = never> {
|
|
60
|
+
items: SelectControlOption<S>[];
|
|
61
|
+
hasMore: boolean;
|
|
62
|
+
}
|
|
41
63
|
export interface SelectControlOption<S = never> {
|
|
42
64
|
/**
|
|
43
65
|
* The value associated with the option, which will be used as the pin's value.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xentom/integration-framework",
|
|
3
3
|
"description": "A type-safe, declarative framework for building composable workflow integrations using nodes, pins, and rich controls.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.10",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://xentom.com",
|
|
7
7
|
"author": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
|
-
"xentom": ">=0.0.
|
|
50
|
+
"xentom": ">=0.0.6"
|
|
51
51
|
},
|
|
52
52
|
"imports": {
|
|
53
53
|
"#src/*": "./src/*.ts"
|