commandbar 1.8.4 → 1.8.6
Sign up to get free protection for your applications and to get access to all the features.
- package/build/commandbar-js/src/index.js +1 -1
- package/build/internal/src/client/AddContextOptions.d.ts +141 -0
- package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -0
- package/build/internal/src/client/CommandBarClientSDK.d.ts +403 -0
- package/build/internal/src/client/CommandBarProxySDK.d.ts +49 -0
- package/build/internal/src/client/CommandBarSDK.d.ts +79 -0
- package/build/internal/src/client/EventHandler.d.ts +282 -0
- package/build/internal/src/client/OrgConfig.d.ts +5 -0
- package/build/internal/src/client/SDKConfig.d.ts +13 -0
- package/build/internal/src/client/SentryReporter.d.ts +63 -0
- package/build/internal/src/client/globals.d.ts +20 -0
- package/build/internal/src/client/proxy.d.ts +15 -0
- package/build/internal/src/client/symbols.d.ts +50 -0
- package/build/internal/src/middleware/CommandFromClientV.d.ts +283 -0
- package/build/internal/src/middleware/ICommandFromClientType.d.ts +5 -0
- package/build/internal/src/middleware/IResourceSettings.d.ts +3 -0
- package/build/internal/src/middleware/OrganizationV.d.ts +329 -0
- package/build/internal/src/middleware/ResourceSettingsV.d.ts +119 -0
- package/build/internal/src/middleware/additionalResource.d.ts +302 -0
- package/build/internal/src/middleware/billing.d.ts +41 -0
- package/build/internal/src/middleware/chatAnalytics.d.ts +2601 -0
- package/build/internal/src/middleware/checklist.d.ts +1014 -0
- package/build/internal/src/middleware/command.d.ts +8908 -0
- package/build/internal/src/middleware/commandCategory.d.ts +192 -0
- package/build/internal/src/middleware/confetti.d.ts +16 -0
- package/build/internal/src/middleware/context.d.ts +40 -0
- package/build/internal/src/middleware/dashboardFlags.d.ts +9 -0
- package/build/internal/src/middleware/detailPreview.d.ts +24 -0
- package/build/internal/src/middleware/environment.d.ts +11 -0
- package/build/internal/src/middleware/generics.d.ts +42 -0
- package/build/internal/src/middleware/guide.d.ts +37 -0
- package/build/internal/src/middleware/helpDocsIntegration.d.ts +72 -0
- package/build/internal/src/middleware/helpDocsSync.d.ts +63 -0
- package/build/internal/src/middleware/helpers/actions.d.ts +184 -0
- package/build/internal/src/middleware/helpers/argument.d.ts +318 -0
- package/build/internal/src/middleware/helpers/audience.d.ts +15 -0
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +252 -0
- package/build/internal/src/middleware/helpers/endUser.d.ts +11 -0
- package/build/internal/src/middleware/helpers/frequencyLimit.d.ts +2 -0
- package/build/internal/src/middleware/helpers/goals.d.ts +26 -0
- package/build/internal/src/middleware/helpers/optionGroup.d.ts +2 -0
- package/build/internal/src/middleware/helpers/pushTrigger.d.ts +26 -0
- package/build/internal/src/middleware/helpers/rules.d.ts +289 -0
- package/build/internal/src/middleware/helpers/tags.d.ts +7 -0
- package/build/internal/src/middleware/historyEvent.d.ts +21 -0
- package/build/internal/src/middleware/network.d.ts +3 -0
- package/build/internal/src/middleware/nudge.d.ts +1669 -0
- package/build/internal/src/middleware/organization.d.ts +1540 -0
- package/build/internal/src/middleware/organizationSettings.d.ts +330 -0
- package/build/internal/src/middleware/placeholder.d.ts +47 -0
- package/build/internal/src/middleware/profile.d.ts +11 -0
- package/build/internal/src/middleware/qaPair.d.ts +676 -0
- package/build/internal/src/middleware/recommendationSet.d.ts +1199 -0
- package/build/internal/src/middleware/releases.d.ts +261 -0
- package/build/internal/src/middleware/skin.d.ts +102 -0
- package/build/internal/src/middleware/tab.d.ts +27 -0
- package/build/internal/src/middleware/types.d.ts +218 -0
- package/build/internal/src/middleware/user.d.ts +15 -0
- package/build/internal/src/middleware/utils.d.ts +11 -0
- package/build/internal/src/util/Disposable.d.ts +17 -0
- package/build/internal/src/util/LocalStorage.d.ts +6 -0
- package/build/internal/src/util/Logger.d.ts +18 -0
- package/build/internal/src/util/dispatchCustomEvent.d.ts +12 -0
- package/build/internal/src/util/integrations.d.ts +1 -0
- package/package.json +2 -2
- package/jest.config.js +0 -4
- package/scripts/minify-snippet.ts +0 -36
- package/scripts/watch.ts +0 -5
- package/test/init.test.ts +0 -3
- package/tsconfig.json +0 -24
- package/webpack.config.js +0 -35
@@ -0,0 +1,119 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
export declare const SearchFieldConfigV: t.TypeC<{
|
3
|
+
key: t.StringC;
|
4
|
+
label: t.StringC;
|
5
|
+
}>;
|
6
|
+
export declare const ResourceSettingsV: t.PartialC<{
|
7
|
+
name: t.StringC;
|
8
|
+
search: t.BooleanC;
|
9
|
+
label_field: t.StringC;
|
10
|
+
useCategory: t.BooleanC;
|
11
|
+
search_fields: t.ArrayC<t.UnionC<[t.StringC, t.TypeC<{
|
12
|
+
key: t.StringC;
|
13
|
+
label: t.StringC;
|
14
|
+
}>]>>;
|
15
|
+
auto_execute: t.BooleanC;
|
16
|
+
unfurl: t.BooleanC;
|
17
|
+
description_field: t.StringC;
|
18
|
+
icon: t.StringC;
|
19
|
+
icon_color: t.StringC;
|
20
|
+
image_color: t.StringC;
|
21
|
+
image: t.StringC;
|
22
|
+
sort_key: t.NumberC;
|
23
|
+
max_options_count: t.UnionC<[t.NumberC, t.NullC]>;
|
24
|
+
sortFunction: t.AnyC;
|
25
|
+
onInputChangeOptions: t.PartialC<{
|
26
|
+
applySort: t.BooleanC;
|
27
|
+
}>;
|
28
|
+
default_command_id: t.UnionC<[t.NumberC, t.StringC, t.UndefinedC]>;
|
29
|
+
render_as: t.UnionC<[t.LiteralC<"list">, t.LiteralC<"grid">]>;
|
30
|
+
showResources: t.BooleanC;
|
31
|
+
show_with_no_results: t.BooleanC;
|
32
|
+
search_tab_enabled: t.BooleanC;
|
33
|
+
search_tab_name: t.UnionC<[t.StringC, t.NullC]>;
|
34
|
+
slash_filter_enabled: t.BooleanC;
|
35
|
+
slash_filter_keyword: t.UnionC<[t.StringC, t.NullC]>;
|
36
|
+
search_tab_instruction: t.UnionC<[t.StringC, t.NullC]>;
|
37
|
+
setting_pin_to_bottom: t.BooleanC;
|
38
|
+
track_recents: t.BooleanC;
|
39
|
+
detail: t.UnionC<[t.NullC, t.StringC, t.IntersectionC<[t.TypeC<{
|
40
|
+
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.LiteralC<"component">]>;
|
41
|
+
value: t.StringC;
|
42
|
+
}>, t.PartialC<{
|
43
|
+
position: t.UnionC<[t.LiteralC<"inline">, t.LiteralC<"popover">]>;
|
44
|
+
}>]>, t.ArrayC<t.UnionC<[t.StringC, t.IntersectionC<[t.TypeC<{
|
45
|
+
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.LiteralC<"component">]>;
|
46
|
+
value: t.StringC;
|
47
|
+
}>, t.PartialC<{
|
48
|
+
position: t.UnionC<[t.LiteralC<"inline">, t.LiteralC<"popover">]>;
|
49
|
+
}>]>]>>]>;
|
50
|
+
content: t.UnionC<[t.NullC, t.StringC, t.IntersectionC<[t.TypeC<{
|
51
|
+
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.LiteralC<"component">]>;
|
52
|
+
value: t.StringC;
|
53
|
+
}>, t.PartialC<{
|
54
|
+
position: t.UnionC<[t.LiteralC<"inline">, t.LiteralC<"popover">]>;
|
55
|
+
}>]>, t.ArrayC<t.UnionC<[t.StringC, t.IntersectionC<[t.TypeC<{
|
56
|
+
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.LiteralC<"component">]>;
|
57
|
+
value: t.StringC;
|
58
|
+
}>, t.PartialC<{
|
59
|
+
position: t.UnionC<[t.LiteralC<"inline">, t.LiteralC<"popover">]>;
|
60
|
+
}>]>]>>]>;
|
61
|
+
show_preview: t.BooleanC;
|
62
|
+
}>;
|
63
|
+
export declare const ResourceSettingsByContextKeyV: t.RecordC<t.StringC, t.PartialC<{
|
64
|
+
name: t.StringC;
|
65
|
+
search: t.BooleanC;
|
66
|
+
label_field: t.StringC;
|
67
|
+
useCategory: t.BooleanC;
|
68
|
+
search_fields: t.ArrayC<t.UnionC<[t.StringC, t.TypeC<{
|
69
|
+
key: t.StringC;
|
70
|
+
label: t.StringC;
|
71
|
+
}>]>>;
|
72
|
+
auto_execute: t.BooleanC;
|
73
|
+
unfurl: t.BooleanC;
|
74
|
+
description_field: t.StringC;
|
75
|
+
icon: t.StringC;
|
76
|
+
icon_color: t.StringC;
|
77
|
+
image_color: t.StringC;
|
78
|
+
image: t.StringC;
|
79
|
+
sort_key: t.NumberC;
|
80
|
+
max_options_count: t.UnionC<[t.NumberC, t.NullC]>;
|
81
|
+
sortFunction: t.AnyC;
|
82
|
+
onInputChangeOptions: t.PartialC<{
|
83
|
+
applySort: t.BooleanC;
|
84
|
+
}>;
|
85
|
+
default_command_id: t.UnionC<[t.NumberC, t.StringC, t.UndefinedC]>;
|
86
|
+
render_as: t.UnionC<[t.LiteralC<"list">, t.LiteralC<"grid">]>;
|
87
|
+
showResources: t.BooleanC;
|
88
|
+
show_with_no_results: t.BooleanC;
|
89
|
+
search_tab_enabled: t.BooleanC;
|
90
|
+
search_tab_name: t.UnionC<[t.StringC, t.NullC]>;
|
91
|
+
slash_filter_enabled: t.BooleanC;
|
92
|
+
slash_filter_keyword: t.UnionC<[t.StringC, t.NullC]>;
|
93
|
+
search_tab_instruction: t.UnionC<[t.StringC, t.NullC]>;
|
94
|
+
setting_pin_to_bottom: t.BooleanC;
|
95
|
+
track_recents: t.BooleanC;
|
96
|
+
detail: t.UnionC<[t.NullC, t.StringC, t.IntersectionC<[t.TypeC<{
|
97
|
+
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.LiteralC<"component">]>;
|
98
|
+
value: t.StringC;
|
99
|
+
}>, t.PartialC<{
|
100
|
+
position: t.UnionC<[t.LiteralC<"inline">, t.LiteralC<"popover">]>;
|
101
|
+
}>]>, t.ArrayC<t.UnionC<[t.StringC, t.IntersectionC<[t.TypeC<{
|
102
|
+
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.LiteralC<"component">]>;
|
103
|
+
value: t.StringC;
|
104
|
+
}>, t.PartialC<{
|
105
|
+
position: t.UnionC<[t.LiteralC<"inline">, t.LiteralC<"popover">]>;
|
106
|
+
}>]>]>>]>;
|
107
|
+
content: t.UnionC<[t.NullC, t.StringC, t.IntersectionC<[t.TypeC<{
|
108
|
+
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.LiteralC<"component">]>;
|
109
|
+
value: t.StringC;
|
110
|
+
}>, t.PartialC<{
|
111
|
+
position: t.UnionC<[t.LiteralC<"inline">, t.LiteralC<"popover">]>;
|
112
|
+
}>]>, t.ArrayC<t.UnionC<[t.StringC, t.IntersectionC<[t.TypeC<{
|
113
|
+
type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.LiteralC<"component">]>;
|
114
|
+
value: t.StringC;
|
115
|
+
}>, t.PartialC<{
|
116
|
+
position: t.UnionC<[t.LiteralC<"inline">, t.LiteralC<"popover">]>;
|
117
|
+
}>]>]>>]>;
|
118
|
+
show_preview: t.BooleanC;
|
119
|
+
}>>;
|
@@ -0,0 +1,302 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
import { GenericBatchRequest } from './generics';
|
3
|
+
export declare const AdditionalResourceV: t.IntersectionC<[t.TypeC<{}>, t.IntersectionC<[t.TypeC<{
|
4
|
+
id: t.NumberC;
|
5
|
+
organization: t.StringC;
|
6
|
+
widget: t.StringC;
|
7
|
+
sort_key: t.NumberC;
|
8
|
+
icon: t.UnionC<[t.StringC, t.NullC]>;
|
9
|
+
icon_color: t.UnionC<[t.StringC, t.NullC]>;
|
10
|
+
label: t.StringC;
|
11
|
+
action: t.UnionC<[t.TypeC<{
|
12
|
+
type: t.LiteralC<"execute_command">;
|
13
|
+
meta: t.TypeC<{
|
14
|
+
command: t.StringC;
|
15
|
+
}>;
|
16
|
+
}>, t.TypeC<{
|
17
|
+
type: t.LiteralC<"no_action">;
|
18
|
+
}>, t.TypeC<{
|
19
|
+
type: t.LiteralC<"click">;
|
20
|
+
value: t.StringC;
|
21
|
+
}>, t.IntersectionC<[t.TypeC<{
|
22
|
+
type: t.LiteralC<"link">;
|
23
|
+
value: t.StringC;
|
24
|
+
}>, t.PartialC<{
|
25
|
+
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
26
|
+
}>]>, t.TypeC<{
|
27
|
+
type: t.LiteralC<"open_chat">;
|
28
|
+
meta: t.TypeC<{
|
29
|
+
type: t.StringC;
|
30
|
+
}>;
|
31
|
+
}>, t.TypeC<{
|
32
|
+
type: t.LiteralC<"dismiss">;
|
33
|
+
}>]>;
|
34
|
+
show_as_primary_cta: t.BooleanC;
|
35
|
+
}>, t.PartialC<{}>]>]>;
|
36
|
+
export declare const BatchAdditionalResourceResponseV: t.TypeC<{
|
37
|
+
batch: t.ArrayC<t.IntersectionC<[t.TypeC<{}>, t.IntersectionC<[t.TypeC<{
|
38
|
+
id: t.NumberC;
|
39
|
+
organization: t.StringC;
|
40
|
+
widget: t.StringC;
|
41
|
+
sort_key: t.NumberC;
|
42
|
+
icon: t.UnionC<[t.StringC, t.NullC]>;
|
43
|
+
icon_color: t.UnionC<[t.StringC, t.NullC]>;
|
44
|
+
label: t.StringC;
|
45
|
+
action: t.UnionC<[t.TypeC<{
|
46
|
+
type: t.LiteralC<"execute_command">;
|
47
|
+
meta: t.TypeC<{
|
48
|
+
command: t.StringC;
|
49
|
+
}>;
|
50
|
+
}>, t.TypeC<{
|
51
|
+
type: t.LiteralC<"no_action">;
|
52
|
+
}>, t.TypeC<{
|
53
|
+
type: t.LiteralC<"click">;
|
54
|
+
value: t.StringC;
|
55
|
+
}>, t.IntersectionC<[t.TypeC<{
|
56
|
+
type: t.LiteralC<"link">;
|
57
|
+
value: t.StringC;
|
58
|
+
}>, t.PartialC<{
|
59
|
+
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
60
|
+
}>]>, t.TypeC<{
|
61
|
+
type: t.LiteralC<"open_chat">;
|
62
|
+
meta: t.TypeC<{
|
63
|
+
type: t.StringC;
|
64
|
+
}>;
|
65
|
+
}>, t.TypeC<{
|
66
|
+
type: t.LiteralC<"dismiss">;
|
67
|
+
}>]>;
|
68
|
+
show_as_primary_cta: t.BooleanC;
|
69
|
+
}>, t.PartialC<{}>]>]>>;
|
70
|
+
}>;
|
71
|
+
export declare const decode: (data: any) => {} & {
|
72
|
+
id: number;
|
73
|
+
organization: string;
|
74
|
+
widget: string;
|
75
|
+
sort_key: number;
|
76
|
+
icon: string | null;
|
77
|
+
icon_color: string | null;
|
78
|
+
label: string;
|
79
|
+
action: {
|
80
|
+
type: "execute_command";
|
81
|
+
meta: {
|
82
|
+
command: string;
|
83
|
+
};
|
84
|
+
} | {
|
85
|
+
type: "no_action";
|
86
|
+
} | {
|
87
|
+
type: "click";
|
88
|
+
value: string;
|
89
|
+
} | ({
|
90
|
+
type: "link";
|
91
|
+
value: string;
|
92
|
+
} & {
|
93
|
+
operation?: "self" | "router" | "blank" | undefined;
|
94
|
+
}) | {
|
95
|
+
type: "open_chat";
|
96
|
+
meta: {
|
97
|
+
type: string;
|
98
|
+
};
|
99
|
+
} | {
|
100
|
+
type: "dismiss";
|
101
|
+
};
|
102
|
+
show_as_primary_cta: boolean;
|
103
|
+
} & {};
|
104
|
+
export declare const list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({} & {
|
105
|
+
id: number;
|
106
|
+
organization: string;
|
107
|
+
widget: string;
|
108
|
+
sort_key: number;
|
109
|
+
icon: string | null;
|
110
|
+
icon_color: string | null;
|
111
|
+
label: string;
|
112
|
+
action: {
|
113
|
+
type: "execute_command";
|
114
|
+
meta: {
|
115
|
+
command: string;
|
116
|
+
};
|
117
|
+
} | {
|
118
|
+
type: "no_action";
|
119
|
+
} | {
|
120
|
+
type: "click";
|
121
|
+
value: string;
|
122
|
+
} | ({
|
123
|
+
type: "link";
|
124
|
+
value: string;
|
125
|
+
} & {
|
126
|
+
operation?: "self" | "router" | "blank" | undefined;
|
127
|
+
}) | {
|
128
|
+
type: "open_chat";
|
129
|
+
meta: {
|
130
|
+
type: string;
|
131
|
+
};
|
132
|
+
} | {
|
133
|
+
type: "dismiss";
|
134
|
+
};
|
135
|
+
show_as_primary_cta: boolean;
|
136
|
+
} & {})[]>;
|
137
|
+
export declare const create: (object: {} & {
|
138
|
+
id: number;
|
139
|
+
organization: string;
|
140
|
+
widget: string;
|
141
|
+
sort_key: number;
|
142
|
+
icon: string | null;
|
143
|
+
icon_color: string | null;
|
144
|
+
label: string;
|
145
|
+
action: {
|
146
|
+
type: "execute_command";
|
147
|
+
meta: {
|
148
|
+
command: string;
|
149
|
+
};
|
150
|
+
} | {
|
151
|
+
type: "no_action";
|
152
|
+
} | {
|
153
|
+
type: "click";
|
154
|
+
value: string;
|
155
|
+
} | ({
|
156
|
+
type: "link";
|
157
|
+
value: string;
|
158
|
+
} & {
|
159
|
+
operation?: "self" | "router" | "blank" | undefined;
|
160
|
+
}) | {
|
161
|
+
type: "open_chat";
|
162
|
+
meta: {
|
163
|
+
type: string;
|
164
|
+
};
|
165
|
+
} | {
|
166
|
+
type: "dismiss";
|
167
|
+
};
|
168
|
+
show_as_primary_cta: boolean;
|
169
|
+
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{} & {
|
170
|
+
id: number;
|
171
|
+
organization: string;
|
172
|
+
widget: string;
|
173
|
+
sort_key: number;
|
174
|
+
icon: string | null;
|
175
|
+
icon_color: string | null;
|
176
|
+
label: string;
|
177
|
+
action: {
|
178
|
+
type: "execute_command";
|
179
|
+
meta: {
|
180
|
+
command: string;
|
181
|
+
};
|
182
|
+
} | {
|
183
|
+
type: "no_action";
|
184
|
+
} | {
|
185
|
+
type: "click";
|
186
|
+
value: string;
|
187
|
+
} | ({
|
188
|
+
type: "link";
|
189
|
+
value: string;
|
190
|
+
} & {
|
191
|
+
operation?: "self" | "router" | "blank" | undefined;
|
192
|
+
}) | {
|
193
|
+
type: "open_chat";
|
194
|
+
meta: {
|
195
|
+
type: string;
|
196
|
+
};
|
197
|
+
} | {
|
198
|
+
type: "dismiss";
|
199
|
+
};
|
200
|
+
show_as_primary_cta: boolean;
|
201
|
+
} & {}>;
|
202
|
+
export declare const del: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
203
|
+
export declare const update: (object: {} & {
|
204
|
+
id: number;
|
205
|
+
organization: string;
|
206
|
+
widget: string;
|
207
|
+
sort_key: number;
|
208
|
+
icon: string | null;
|
209
|
+
icon_color: string | null;
|
210
|
+
label: string;
|
211
|
+
action: {
|
212
|
+
type: "execute_command";
|
213
|
+
meta: {
|
214
|
+
command: string;
|
215
|
+
};
|
216
|
+
} | {
|
217
|
+
type: "no_action";
|
218
|
+
} | {
|
219
|
+
type: "click";
|
220
|
+
value: string;
|
221
|
+
} | ({
|
222
|
+
type: "link";
|
223
|
+
value: string;
|
224
|
+
} & {
|
225
|
+
operation?: "self" | "router" | "blank" | undefined;
|
226
|
+
}) | {
|
227
|
+
type: "open_chat";
|
228
|
+
meta: {
|
229
|
+
type: string;
|
230
|
+
};
|
231
|
+
} | {
|
232
|
+
type: "dismiss";
|
233
|
+
};
|
234
|
+
show_as_primary_cta: boolean;
|
235
|
+
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{} & {
|
236
|
+
id: number;
|
237
|
+
organization: string;
|
238
|
+
widget: string;
|
239
|
+
sort_key: number;
|
240
|
+
icon: string | null;
|
241
|
+
icon_color: string | null;
|
242
|
+
label: string;
|
243
|
+
action: {
|
244
|
+
type: "execute_command";
|
245
|
+
meta: {
|
246
|
+
command: string;
|
247
|
+
};
|
248
|
+
} | {
|
249
|
+
type: "no_action";
|
250
|
+
} | {
|
251
|
+
type: "click";
|
252
|
+
value: string;
|
253
|
+
} | ({
|
254
|
+
type: "link";
|
255
|
+
value: string;
|
256
|
+
} & {
|
257
|
+
operation?: "self" | "router" | "blank" | undefined;
|
258
|
+
}) | {
|
259
|
+
type: "open_chat";
|
260
|
+
meta: {
|
261
|
+
type: string;
|
262
|
+
};
|
263
|
+
} | {
|
264
|
+
type: "dismiss";
|
265
|
+
};
|
266
|
+
show_as_primary_cta: boolean;
|
267
|
+
} & {}>;
|
268
|
+
export declare const batch: (request: t.TypeOf<typeof GenericBatchRequest>) => Promise<{
|
269
|
+
batch: ({} & {
|
270
|
+
id: number;
|
271
|
+
organization: string;
|
272
|
+
widget: string;
|
273
|
+
sort_key: number;
|
274
|
+
icon: string | null;
|
275
|
+
icon_color: string | null;
|
276
|
+
label: string;
|
277
|
+
action: {
|
278
|
+
type: "execute_command";
|
279
|
+
meta: {
|
280
|
+
command: string;
|
281
|
+
};
|
282
|
+
} | {
|
283
|
+
type: "no_action";
|
284
|
+
} | {
|
285
|
+
type: "click";
|
286
|
+
value: string;
|
287
|
+
} | ({
|
288
|
+
type: "link";
|
289
|
+
value: string;
|
290
|
+
} & {
|
291
|
+
operation?: "self" | "router" | "blank" | undefined;
|
292
|
+
}) | {
|
293
|
+
type: "open_chat";
|
294
|
+
meta: {
|
295
|
+
type: string;
|
296
|
+
};
|
297
|
+
} | {
|
298
|
+
type: "dismiss";
|
299
|
+
};
|
300
|
+
show_as_primary_cta: boolean;
|
301
|
+
} & {})[];
|
302
|
+
}>;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
export declare const StripInfoV: t.IntersectionC<[t.TypeC<{
|
3
|
+
invoice_date_start: t.UnionC<[t.StringC, t.NullC]>;
|
4
|
+
invoice_date_end: t.UnionC<[t.StringC, t.NullC]>;
|
5
|
+
}>, t.PartialC<{}>]>;
|
6
|
+
export declare const UsageV: t.IntersectionC<[t.TypeC<{
|
7
|
+
helphub_docs_limit: t.NumberC;
|
8
|
+
helphub_docs_usage: t.NumberC;
|
9
|
+
helphub_message_limit: t.NumberC;
|
10
|
+
helphub_message_usage: t.NumberC;
|
11
|
+
commands_live_limit: t.NumberC;
|
12
|
+
commands_live_usage: t.NumberC;
|
13
|
+
nudges_live_limit: t.NumberC;
|
14
|
+
nudges_live_usage: t.NumberC;
|
15
|
+
questlists_live_limit: t.NumberC;
|
16
|
+
questlists_live_usage: t.NumberC;
|
17
|
+
}>, t.PartialC<{}>]>;
|
18
|
+
export declare class Billing {
|
19
|
+
static readStripeInfo: (params?: Record<string, string> | undefined, callbacks?: {
|
20
|
+
onSuccess?: (() => void) | undefined;
|
21
|
+
onError?: ((err: string) => void) | undefined;
|
22
|
+
} | undefined) => Promise<{
|
23
|
+
invoice_date_start: string | null;
|
24
|
+
invoice_date_end: string | null;
|
25
|
+
} & {}>;
|
26
|
+
static readUsage: (params?: Record<string, string> | undefined, callbacks?: {
|
27
|
+
onSuccess?: (() => void) | undefined;
|
28
|
+
onError?: ((err: string) => void) | undefined;
|
29
|
+
} | undefined) => Promise<{
|
30
|
+
helphub_docs_limit: number;
|
31
|
+
helphub_docs_usage: number;
|
32
|
+
helphub_message_limit: number;
|
33
|
+
helphub_message_usage: number;
|
34
|
+
commands_live_limit: number;
|
35
|
+
commands_live_usage: number;
|
36
|
+
nudges_live_limit: number;
|
37
|
+
nudges_live_usage: number;
|
38
|
+
questlists_live_limit: number;
|
39
|
+
questlists_live_usage: number;
|
40
|
+
} & {}>;
|
41
|
+
}
|