commandbar 1.6.7 → 1.6.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/build/commandbar-js/src/index.d.ts +10 -0
  2. package/build/commandbar-js/src/index.js +1 -0
  3. package/build/commandbar-js/src/init.d.ts +21 -0
  4. package/build/commandbar-js/src/snippet.d.ts +1 -0
  5. package/build/internal/src/client/AddContextOptions.d.ts +94 -0
  6. package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -0
  7. package/build/internal/src/client/CommandBarClientSDK.d.ts +293 -0
  8. package/build/internal/src/client/CommandBarProxySDK.d.ts +48 -0
  9. package/build/internal/src/client/CommandBarSDK.d.ts +50 -0
  10. package/build/internal/src/client/EventHandler.d.ts +89 -0
  11. package/build/internal/src/client/SDKConfig.d.ts +13 -0
  12. package/build/internal/src/client/SentryReporter.d.ts +41 -0
  13. package/build/internal/src/client/globals.d.ts +18 -0
  14. package/build/internal/src/client/proxy.d.ts +15 -0
  15. package/build/internal/src/client/symbols.d.ts +32 -0
  16. package/build/internal/src/middleware/CommandFromClientV.d.ts +220 -0
  17. package/build/internal/src/middleware/ICommandFromClientType.d.ts +3 -0
  18. package/build/internal/src/middleware/IResourceSettings.d.ts +3 -0
  19. package/build/internal/src/middleware/OrganizationV.d.ts +102 -0
  20. package/build/internal/src/middleware/ResourceSettingsV.d.ts +43 -0
  21. package/build/internal/src/middleware/command.d.ts +3608 -0
  22. package/build/internal/src/middleware/commandCategory.d.ts +87 -0
  23. package/build/internal/src/middleware/confetti.d.ts +16 -0
  24. package/build/internal/src/middleware/context.d.ts +40 -0
  25. package/build/internal/src/middleware/environment.d.ts +11 -0
  26. package/build/internal/src/middleware/generics.d.ts +32 -0
  27. package/build/internal/src/middleware/guide.d.ts +37 -0
  28. package/build/internal/src/middleware/helpers/argument.d.ts +412 -0
  29. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +129 -0
  30. package/build/internal/src/middleware/helpers/endUser.d.ts +10 -0
  31. package/build/internal/src/middleware/helpers/rules.d.ts +231 -0
  32. package/build/internal/src/middleware/historyEvent.d.ts +40 -0
  33. package/build/internal/src/middleware/network.d.ts +4 -0
  34. package/build/internal/src/middleware/organization.d.ts +604 -0
  35. package/build/internal/src/middleware/placeholder.d.ts +47 -0
  36. package/build/internal/src/middleware/profile.d.ts +11 -0
  37. package/build/internal/src/middleware/releases.d.ts +261 -0
  38. package/build/internal/src/middleware/skin.d.ts +66 -0
  39. package/build/internal/src/middleware/types.d.ts +378 -0
  40. package/build/internal/src/middleware/user.d.ts +12 -0
  41. package/build/internal/src/util/Disposable.d.ts +17 -0
  42. package/build/internal/src/util/LocalStorage.d.ts +6 -0
  43. package/build/internal/src/util/Logger.d.ts +18 -0
  44. package/build/internal/src/util/dispatchCustomEvent.d.ts +2 -0
  45. package/package.json +1 -1
@@ -0,0 +1,261 @@
1
+ import * as t from 'io-ts';
2
+ export { ResourceSettingsV, ResourceSettingsByContextKeyV } from './ResourceSettingsV';
3
+ export { OrganizationV } from './OrganizationV';
4
+ export declare const ReleaseV: t.TypeC<{
5
+ created_by: t.StringC;
6
+ created: t.StringC;
7
+ history_event: t.IntersectionC<[t.TypeC<{
8
+ id: t.NumberC;
9
+ organization: t.StringC;
10
+ changed_by: t.StringC;
11
+ description: t.StringC;
12
+ created: t.StringC;
13
+ sha1: t.StringC;
14
+ version_num: t.NumberC;
15
+ }>, t.PartialC<{}>]>;
16
+ id: t.NumberC;
17
+ notes: t.StringC;
18
+ tags: t.ArrayC<t.StringC>;
19
+ }>;
20
+ export declare const ReleaseStepV: t.TypeC<{
21
+ created: t.StringC;
22
+ created_by: t.StringC;
23
+ current: t.UnionC<[t.BooleanC, t.NullC]>;
24
+ env: t.StringC;
25
+ id: t.NumberC;
26
+ next_env: t.UnionC<[t.NullC, t.StringC]>;
27
+ release: t.TypeC<{
28
+ created_by: t.StringC;
29
+ created: t.StringC;
30
+ history_event: t.IntersectionC<[t.TypeC<{
31
+ id: t.NumberC;
32
+ organization: t.StringC;
33
+ changed_by: t.StringC;
34
+ description: t.StringC;
35
+ created: t.StringC;
36
+ sha1: t.StringC;
37
+ version_num: t.NumberC;
38
+ }>, t.PartialC<{}>]>;
39
+ id: t.NumberC;
40
+ notes: t.StringC;
41
+ tags: t.ArrayC<t.StringC>;
42
+ }>;
43
+ }>;
44
+ export declare const EnvReleaseInfoV: t.IntersectionC<[t.TypeC<{
45
+ environment: t.StringC;
46
+ }>, t.PartialC<{
47
+ release_step: t.TypeC<{
48
+ created: t.StringC;
49
+ created_by: t.StringC;
50
+ current: t.UnionC<[t.BooleanC, t.NullC]>;
51
+ env: t.StringC;
52
+ id: t.NumberC;
53
+ next_env: t.UnionC<[t.NullC, t.StringC]>;
54
+ release: t.TypeC<{
55
+ created_by: t.StringC;
56
+ created: t.StringC;
57
+ history_event: t.IntersectionC<[t.TypeC<{
58
+ id: t.NumberC;
59
+ organization: t.StringC;
60
+ changed_by: t.StringC;
61
+ description: t.StringC;
62
+ created: t.StringC;
63
+ sha1: t.StringC;
64
+ version_num: t.NumberC;
65
+ }>, t.PartialC<{}>]>;
66
+ id: t.NumberC;
67
+ notes: t.StringC;
68
+ tags: t.ArrayC<t.StringC>;
69
+ }>;
70
+ }>;
71
+ release: t.TypeC<{
72
+ created_by: t.StringC;
73
+ created: t.StringC;
74
+ history_event: t.IntersectionC<[t.TypeC<{
75
+ id: t.NumberC;
76
+ organization: t.StringC;
77
+ changed_by: t.StringC;
78
+ description: t.StringC;
79
+ created: t.StringC;
80
+ sha1: t.StringC;
81
+ version_num: t.NumberC;
82
+ }>, t.PartialC<{}>]>;
83
+ id: t.NumberC;
84
+ notes: t.StringC;
85
+ tags: t.ArrayC<t.StringC>;
86
+ }>;
87
+ }>]>;
88
+ export declare class Releases {
89
+ static readView: (params?: Record<string, string> | undefined, callbacks?: {
90
+ onSuccess?: (() => void) | undefined;
91
+ onError?: ((err: string) => void) | undefined;
92
+ } | undefined) => Promise<{
93
+ environments: ({
94
+ environment: string;
95
+ } & {
96
+ release_step?: {
97
+ created: string;
98
+ created_by: string;
99
+ current: boolean | null;
100
+ env: string;
101
+ id: number;
102
+ next_env: string | null;
103
+ release: {
104
+ created_by: string;
105
+ created: string;
106
+ history_event: {
107
+ id: number;
108
+ organization: string;
109
+ changed_by: string;
110
+ description: string;
111
+ created: string;
112
+ sha1: string;
113
+ version_num: number;
114
+ } & {};
115
+ id: number;
116
+ notes: string;
117
+ tags: string[];
118
+ };
119
+ } | undefined;
120
+ release?: {
121
+ created_by: string;
122
+ created: string;
123
+ history_event: {
124
+ id: number;
125
+ organization: string;
126
+ changed_by: string;
127
+ description: string;
128
+ created: string;
129
+ sha1: string;
130
+ version_num: number;
131
+ } & {};
132
+ id: number;
133
+ notes: string;
134
+ tags: string[];
135
+ } | undefined;
136
+ })[];
137
+ latest_history_event: ({
138
+ id: number;
139
+ organization: string;
140
+ changed_by: string;
141
+ description: string;
142
+ created: string;
143
+ sha1: string;
144
+ version_num: number;
145
+ } & {}) | null;
146
+ latest_release: {
147
+ created_by: string;
148
+ created: string;
149
+ history_event: {
150
+ id: number;
151
+ organization: string;
152
+ changed_by: string;
153
+ description: string;
154
+ created: string;
155
+ sha1: string;
156
+ version_num: number;
157
+ } & {};
158
+ id: number;
159
+ notes: string;
160
+ tags: string[];
161
+ } | null;
162
+ }>;
163
+ static createRelease: (historyEventId: number, notes: string, tags: string[]) => Promise<{
164
+ created_by: string;
165
+ created: string;
166
+ history_event: {
167
+ id: number;
168
+ organization: string;
169
+ changed_by: string;
170
+ description: string;
171
+ created: string;
172
+ sha1: string;
173
+ version_num: number;
174
+ } & {};
175
+ id: number;
176
+ notes: string;
177
+ tags: string[];
178
+ }>;
179
+ static readReleaseStepsForEnv: (env: string) => Promise<{
180
+ created: string;
181
+ created_by: string;
182
+ current: boolean | null;
183
+ env: string;
184
+ id: number;
185
+ next_env: string | null;
186
+ release: {
187
+ created_by: string;
188
+ created: string;
189
+ history_event: {
190
+ id: number;
191
+ organization: string;
192
+ changed_by: string;
193
+ description: string;
194
+ created: string;
195
+ sha1: string;
196
+ version_num: number;
197
+ } & {};
198
+ id: number;
199
+ notes: string;
200
+ tags: string[];
201
+ };
202
+ }[]>;
203
+ static rollback: (releaseStepId: number) => Promise<{
204
+ created: string;
205
+ created_by: string;
206
+ current: boolean | null;
207
+ env: string;
208
+ id: number;
209
+ next_env: string | null;
210
+ release: {
211
+ created_by: string;
212
+ created: string;
213
+ history_event: {
214
+ id: number;
215
+ organization: string;
216
+ changed_by: string;
217
+ description: string;
218
+ created: string;
219
+ sha1: string;
220
+ version_num: number;
221
+ } & {};
222
+ id: number;
223
+ notes: string;
224
+ tags: string[];
225
+ };
226
+ }>;
227
+ static readDiff: (fromId: string, toId: string) => Promise<any>;
228
+ static promoteReleaseStep: (releaseStepId: number) => Promise<any>;
229
+ static promoteReleaseToFirstEnv: (releaseId: number) => Promise<{
230
+ created_by: string;
231
+ created: string;
232
+ history_event: {
233
+ id: number;
234
+ organization: string;
235
+ changed_by: string;
236
+ description: string;
237
+ created: string;
238
+ sha1: string;
239
+ version_num: number;
240
+ } & {};
241
+ id: number;
242
+ notes: string;
243
+ tags: string[];
244
+ }>;
245
+ static listReleases: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
246
+ created_by: string;
247
+ created: string;
248
+ history_event: {
249
+ id: number;
250
+ organization: string;
251
+ changed_by: string;
252
+ description: string;
253
+ created: string;
254
+ sha1: string;
255
+ version_num: number;
256
+ } & {};
257
+ id: number;
258
+ notes: string;
259
+ tags: string[];
260
+ }[]>;
261
+ }
@@ -0,0 +1,66 @@
1
+ import * as t from 'io-ts';
2
+ export declare const SkinV: t.IntersectionC<[t.TypeC<{
3
+ id: t.StringC;
4
+ slug: t.StringC;
5
+ name: t.StringC;
6
+ default: t.BooleanC;
7
+ skin: t.AnyC;
8
+ organization: t.StringC;
9
+ }>, t.PartialC<{
10
+ logo: t.UnionC<[t.StringC, t.NullC]>;
11
+ }>]>;
12
+ export declare class Skin {
13
+ static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
14
+ id: string;
15
+ slug: string;
16
+ name: string;
17
+ default: boolean;
18
+ skin: any;
19
+ organization: string;
20
+ } & {
21
+ logo?: string | null | undefined;
22
+ })[]>;
23
+ static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
24
+ onSuccess?: (() => void) | undefined;
25
+ onError?: ((err: string) => void) | undefined;
26
+ } | undefined) => Promise<{
27
+ id: string;
28
+ slug: string;
29
+ name: string;
30
+ default: boolean;
31
+ skin: any;
32
+ organization: string;
33
+ } & {
34
+ logo?: string | null | undefined;
35
+ }>;
36
+ static update: (object: {
37
+ id: string;
38
+ slug: string;
39
+ name: string;
40
+ default: boolean;
41
+ skin: any;
42
+ organization: string;
43
+ } & {
44
+ logo?: string | null | undefined;
45
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
46
+ id: string;
47
+ slug: string;
48
+ name: string;
49
+ default: boolean;
50
+ skin: any;
51
+ organization: string;
52
+ } & {
53
+ logo?: string | null | undefined;
54
+ }>;
55
+ static create: (object: {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
56
+ id: string;
57
+ slug: string;
58
+ name: string;
59
+ default: boolean;
60
+ skin: any;
61
+ organization: string;
62
+ } & {
63
+ logo?: string | null | undefined;
64
+ }>;
65
+ static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
66
+ }
@@ -0,0 +1,378 @@
1
+ /*******************************************************************************/
2
+ import * as t from 'io-ts';
3
+ import { BatchEditorCommandRequestV, BatchEditorCommandResponseV, BatchOperationV, CommandV, EditorCommandV } from './command';
4
+ import { ArgumentMapV, ArgumentTypeV, ConditionV, ConditionOperatorV, StepArgumentTypeV, ContextArgumentV, SetArgumentV, DynamicArgumentV, DependentArgumentV, FunctionArgumentV } from './helpers/argument';
5
+ import { TemplateV, TemplateOptionsV } from './helpers/commandTemplate';
6
+ import { CommandCategoryV } from './commandCategory';
7
+ import { OrganizationStatusV, KeyEventV, ResourceSettingsByContextKeyV, InternalSettingsV, OrganizationSettingsV } from './organization';
8
+ import { UserV } from './user';
9
+ import { ContextV } from './context';
10
+ import { GuideV } from './guide';
11
+ import { HistoryEventV } from './historyEvent';
12
+ import { EndUserV } from './helpers/endUser';
13
+ import { SkinV } from './skin';
14
+ import { ProfileV } from './profile';
15
+ import { PlaceholderV } from './placeholder';
16
+ import { EnvReleaseInfoV, ReleaseStepV, ReleaseV } from './releases';
17
+ import { EnvironmentV } from './environment';
18
+ /*******************************************************************************/
19
+ export declare type IContextType = t.TypeOf<typeof ContextV>;
20
+ export declare type IUserType = t.TypeOf<typeof UserV>;
21
+ export declare type ICommandType = t.TypeOf<typeof CommandV>;
22
+ export declare type IEditorCommandType = t.TypeOf<typeof EditorCommandV>;
23
+ export type { ICommandFromClientType } from './ICommandFromClientType';
24
+ export declare type ICommandCategoryType = t.TypeOf<typeof CommandCategoryV>;
25
+ export declare type IGuideType = t.TypeOf<typeof GuideV> & {
26
+ preview?: boolean;
27
+ };
28
+ export declare type IHistoryEventType = t.TypeOf<typeof HistoryEventV>;
29
+ export type { IOrganizationType } from './OrganizationV';
30
+ export declare type IOrganizationStatusType = t.TypeOf<typeof OrganizationStatusV>;
31
+ export declare type IInternalSettingsType = t.TypeOf<typeof InternalSettingsV>;
32
+ export declare type ISkinType = t.TypeOf<typeof SkinV>;
33
+ export declare type IProfileType = t.TypeOf<typeof ProfileV>;
34
+ export declare type IOrganizationSettingsType = t.TypeOf<typeof OrganizationSettingsV>;
35
+ export declare type IPlaceholderType = t.TypeOf<typeof PlaceholderV>;
36
+ export declare type IEnvironmentType = t.TypeOf<typeof EnvironmentV>;
37
+ export declare type IReleaseStep = t.TypeOf<typeof ReleaseStepV>;
38
+ export declare type IRelease = t.TypeOf<typeof ReleaseV>;
39
+ export declare type IEnvReleaseInfo = t.TypeOf<typeof EnvReleaseInfoV>;
40
+ /*******************************************************************************/
41
+ export declare type IBatchOperation = t.TypeOf<typeof BatchOperationV>;
42
+ export declare type IBatchEditorCommandRequst = t.TypeOf<typeof BatchEditorCommandRequestV>;
43
+ export declare type IBatchEditorCommandResponse = t.TypeOf<typeof BatchEditorCommandResponseV>;
44
+ /*******************************************************************************/
45
+ export declare type IKeyEventCategory = t.TypeOf<typeof KeyEventV>;
46
+ export declare type IArgumentMap = t.TypeOf<typeof ArgumentMapV>;
47
+ export declare type IArgumentType = t.TypeOf<typeof ArgumentTypeV>;
48
+ export declare type IStepArgumentType = t.TypeOf<typeof StepArgumentTypeV>;
49
+ export declare type ITemplate = t.TypeOf<typeof TemplateV>;
50
+ export declare type ITemplateOptions = t.TypeOf<typeof TemplateOptionsV>;
51
+ export declare type IEndUserType = t.TypeOf<typeof EndUserV>;
52
+ export declare type IConditionType = t.TypeOf<typeof ConditionV>;
53
+ export declare type IConditionOperatorType = t.TypeOf<typeof ConditionOperatorV>;
54
+ export declare type IContextArgumentType = t.TypeOf<typeof ContextArgumentV>;
55
+ export declare type ISetArgumentType = t.TypeOf<typeof SetArgumentV>;
56
+ export declare type IDynamicArgumentType = t.TypeOf<typeof DynamicArgumentV>;
57
+ export declare type IDependentArgumentType = t.TypeOf<typeof DependentArgumentV>;
58
+ export declare type IFunctionArgumentType = t.TypeOf<typeof FunctionArgumentV>;
59
+ export interface ICommandInput {
60
+ text: string;
61
+ command: ICommandType;
62
+ context: IUserContext;
63
+ }
64
+ export interface IArgValues {
65
+ [arg: string]: string | number | undefined;
66
+ }
67
+ export declare type IHistoryType = Array<{
68
+ activeCommand: ICommandType;
69
+ options: ICommandType[];
70
+ }>;
71
+ export interface IUserContext {
72
+ [variable: string]: any;
73
+ }
74
+ export interface ICallbackMap {
75
+ [variable: string]: (...args: any[]) => any;
76
+ }
77
+ export interface IResourceType extends IUserContext {
78
+ _cbLinkedCommmands: Array<{
79
+ command: number;
80
+ arg: string;
81
+ }>;
82
+ }
83
+ export declare type IConfigEndpointResponse = {
84
+ commands: any[];
85
+ categories: any[];
86
+ organization: any;
87
+ environments_with_versions?: any[];
88
+ placeholders?: any[];
89
+ };
90
+ export type { IResourceSettings } from './IResourceSettings';
91
+ export declare type IResourceSettingsByContextKey = t.TypeOf<typeof ResourceSettingsByContextKeyV>;
92
+ /*******************************************************************************/
93
+ export declare const isCommand: (command?: ICommandType | any) => command is {
94
+ id: number;
95
+ organization: string | number;
96
+ text: string;
97
+ template: ({
98
+ type: "admin";
99
+ value: string;
100
+ } & {} & {
101
+ commandType?: "object" | "independent" | "help" | undefined;
102
+ object?: string | undefined;
103
+ hoverTooltip?: boolean | undefined;
104
+ operation?: "self" | "router" | "blank" | undefined;
105
+ }) | ({
106
+ type: "callback";
107
+ value: string;
108
+ } & {} & {
109
+ commandType?: "object" | "independent" | "help" | undefined;
110
+ object?: string | undefined;
111
+ hoverTooltip?: boolean | undefined;
112
+ operation?: "self" | "router" | "blank" | undefined;
113
+ }) | ({
114
+ type: "link";
115
+ value: string;
116
+ } & {} & {
117
+ commandType?: "object" | "independent" | "help" | undefined;
118
+ object?: string | undefined;
119
+ hoverTooltip?: boolean | undefined;
120
+ operation?: "self" | "router" | "blank" | undefined;
121
+ }) | ({
122
+ type: "click" | "clickBySelector" | "clickByXpath";
123
+ value: string[];
124
+ } & {} & {
125
+ commandType?: "object" | "independent" | "help" | undefined;
126
+ object?: string | undefined;
127
+ hoverTooltip?: boolean | undefined;
128
+ operation?: "self" | "router" | "blank" | undefined;
129
+ }) | ({
130
+ type: "builtin";
131
+ value: string;
132
+ } & {} & {
133
+ commandType?: "object" | "independent" | "help" | undefined;
134
+ object?: string | undefined;
135
+ hoverTooltip?: boolean | undefined;
136
+ operation?: "self" | "router" | "blank" | undefined;
137
+ }) | ({
138
+ type: "webhook";
139
+ value: string;
140
+ } & {} & {
141
+ commandType?: "object" | "independent" | "help" | undefined;
142
+ object?: string | undefined;
143
+ hoverTooltip?: boolean | undefined;
144
+ operation?: "self" | "router" | "blank" | undefined;
145
+ }) | ({
146
+ type: "script";
147
+ value: string;
148
+ } & {} & {
149
+ commandType?: "object" | "independent" | "help" | undefined;
150
+ object?: string | undefined;
151
+ hoverTooltip?: boolean | undefined;
152
+ operation?: "self" | "router" | "blank" | undefined;
153
+ });
154
+ } & {
155
+ disabledReason?: string | undefined;
156
+ source?: string | undefined;
157
+ name?: string | undefined;
158
+ last_available?: string | null | undefined;
159
+ modified?: string | undefined;
160
+ } & {
161
+ arguments: {
162
+ [x: string]: ({
163
+ type: "context";
164
+ value: string;
165
+ order_key: number;
166
+ } & {
167
+ label?: string | undefined;
168
+ chosen?: string | number | undefined;
169
+ selected?: any[] | undefined;
170
+ input_type?: string | undefined;
171
+ preselected_key?: string | undefined;
172
+ label_field?: string | undefined;
173
+ availability_condition?: {
174
+ field: string;
175
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
176
+ value: string | undefined;
177
+ }[] | undefined;
178
+ loaded?: any[] | undefined;
179
+ allow_create?: boolean | undefined;
180
+ allow_create_label?: string | undefined;
181
+ show_in_record_action_list?: boolean | undefined;
182
+ show_in_default_list?: boolean | undefined;
183
+ }) | ({
184
+ type: "set";
185
+ value: string[] | number[] | {
186
+ [key: string]: unknown;
187
+ }[];
188
+ order_key: number;
189
+ } & {
190
+ label?: string | undefined;
191
+ chosen?: string | number | undefined;
192
+ selected?: any[] | undefined;
193
+ input_type?: string | undefined;
194
+ preselected_key?: string | undefined;
195
+ label_field?: string | undefined;
196
+ availability_condition?: {
197
+ field: string;
198
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
199
+ value: string | undefined;
200
+ }[] | undefined;
201
+ loaded?: any[] | undefined;
202
+ allow_create?: boolean | undefined;
203
+ allow_create_label?: string | undefined;
204
+ }) | ({
205
+ type: "provided";
206
+ value: "time" | "text";
207
+ order_key: number;
208
+ } & {
209
+ label?: string | undefined;
210
+ chosen?: string | number | undefined;
211
+ selected?: any[] | undefined;
212
+ input_type?: string | undefined;
213
+ preselected_key?: string | undefined;
214
+ label_field?: string | undefined;
215
+ availability_condition?: {
216
+ field: string;
217
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
218
+ value: string | undefined;
219
+ }[] | undefined;
220
+ loaded?: any[] | undefined;
221
+ dateTimeArgumentTypeId?: number | undefined;
222
+ allow_create?: boolean | undefined;
223
+ allow_create_label?: string | undefined;
224
+ }) | ({
225
+ type: "dependent";
226
+ value: string;
227
+ order_key: number;
228
+ } & {
229
+ label?: string | undefined;
230
+ chosen?: string | number | undefined;
231
+ selected?: any[] | undefined;
232
+ input_type?: string | undefined;
233
+ preselected_key?: string | undefined;
234
+ label_field?: string | undefined;
235
+ availability_condition?: {
236
+ field: string;
237
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
238
+ value: string | undefined;
239
+ }[] | undefined;
240
+ loaded?: any[] | undefined;
241
+ allow_create?: boolean | undefined;
242
+ allow_create_label?: string | undefined;
243
+ }) | ({
244
+ type: "function";
245
+ value: string;
246
+ order_key: number;
247
+ } & {
248
+ label?: string | undefined;
249
+ chosen?: string | number | undefined;
250
+ selected?: any[] | undefined;
251
+ input_type?: string | undefined;
252
+ preselected_key?: string | undefined;
253
+ label_field?: string | undefined;
254
+ availability_condition?: {
255
+ field: string;
256
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
257
+ value: string | undefined;
258
+ }[] | undefined;
259
+ loaded?: any[] | undefined;
260
+ allow_create?: boolean | undefined;
261
+ allow_create_label?: string | undefined;
262
+ });
263
+ };
264
+ tags: string[];
265
+ availability_rules: ({
266
+ type: "url" | "context" | "element";
267
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
268
+ } & {
269
+ field?: string | undefined;
270
+ value?: string | undefined;
271
+ reason?: string | undefined;
272
+ })[];
273
+ recommend_rules: (({
274
+ type: "always";
275
+ } & {
276
+ operator?: null | undefined;
277
+ field?: null | undefined;
278
+ value?: null | undefined;
279
+ reason?: null | undefined;
280
+ }) | ({
281
+ type: "url" | "context" | "element";
282
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
283
+ } & {
284
+ field?: string | undefined;
285
+ value?: string | undefined;
286
+ reason?: string | undefined;
287
+ }))[];
288
+ confirm: string;
289
+ shortcut: string[];
290
+ explanation: string;
291
+ is_live: boolean;
292
+ category: number | null;
293
+ sort_key: number | null;
294
+ icon: string | null;
295
+ celebrate: boolean | {
296
+ angle?: number | undefined;
297
+ spread?: number | undefined;
298
+ width?: string | undefined;
299
+ height?: string | undefined;
300
+ duration?: number | undefined;
301
+ dragFriction?: number | undefined;
302
+ stagger?: number | undefined;
303
+ startVelocity?: number | undefined;
304
+ elementCount?: number | undefined;
305
+ decay?: number | undefined;
306
+ colors?: string[] | undefined;
307
+ random?: any;
308
+ } | null;
309
+ recommend_sort_key: number | null;
310
+ shortcut_mac: string[];
311
+ shortcut_win: string[];
312
+ hotkey_mac: string;
313
+ hotkey_win: string;
314
+ };
315
+ export declare const isResource: (option: any) => option is IResourceType;
316
+ export declare const isContextArgument: (argument: IArgumentType) => argument is {
317
+ type: "context";
318
+ value: string;
319
+ order_key: number;
320
+ } & {
321
+ label?: string | undefined;
322
+ chosen?: string | number | undefined;
323
+ selected?: any[] | undefined;
324
+ input_type?: string | undefined;
325
+ preselected_key?: string | undefined;
326
+ label_field?: string | undefined;
327
+ availability_condition?: {
328
+ field: string;
329
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
330
+ value: string | undefined;
331
+ }[] | undefined;
332
+ loaded?: any[] | undefined;
333
+ allow_create?: boolean | undefined;
334
+ allow_create_label?: string | undefined;
335
+ show_in_record_action_list?: boolean | undefined;
336
+ show_in_default_list?: boolean | undefined;
337
+ };
338
+ export declare const isTimeArgument: (argument: IArgumentType) => argument is {
339
+ type: "provided";
340
+ value: "time" | "text";
341
+ order_key: number;
342
+ } & {
343
+ label?: string | undefined;
344
+ chosen?: string | number | undefined;
345
+ selected?: any[] | undefined;
346
+ input_type?: string | undefined;
347
+ preselected_key?: string | undefined;
348
+ label_field?: string | undefined;
349
+ availability_condition?: {
350
+ field: string;
351
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
352
+ value: string | undefined;
353
+ }[] | undefined;
354
+ loaded?: any[] | undefined;
355
+ dateTimeArgumentTypeId?: number | undefined;
356
+ allow_create?: boolean | undefined;
357
+ allow_create_label?: string | undefined;
358
+ };
359
+ export declare const isFunctionArgument: (argument: IArgumentType) => argument is {
360
+ type: "function";
361
+ value: string;
362
+ order_key: number;
363
+ } & {
364
+ label?: string | undefined;
365
+ chosen?: string | number | undefined;
366
+ selected?: any[] | undefined;
367
+ input_type?: string | undefined;
368
+ preselected_key?: string | undefined;
369
+ label_field?: string | undefined;
370
+ availability_condition?: {
371
+ field: string;
372
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
373
+ value: string | undefined;
374
+ }[] | undefined;
375
+ loaded?: any[] | undefined;
376
+ allow_create?: boolean | undefined;
377
+ allow_create_label?: string | undefined;
378
+ };