commandbar 1.7.3 → 1.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/build/commandbar-js/src/index.js +1 -1
  2. package/package.json +2 -2
  3. package/src/snippet.ts +1 -0
  4. package/build/internal/src/client/AddContextOptions.d.ts +0 -123
  5. package/build/internal/src/client/AnalyticsEventTypes.d.ts +0 -1
  6. package/build/internal/src/client/CommandBarClientSDK.d.ts +0 -376
  7. package/build/internal/src/client/CommandBarProxySDK.d.ts +0 -49
  8. package/build/internal/src/client/CommandBarSDK.d.ts +0 -65
  9. package/build/internal/src/client/EventHandler.d.ts +0 -207
  10. package/build/internal/src/client/OrgConfig.d.ts +0 -5
  11. package/build/internal/src/client/SDKConfig.d.ts +0 -13
  12. package/build/internal/src/client/SentryReporter.d.ts +0 -62
  13. package/build/internal/src/client/globals.d.ts +0 -20
  14. package/build/internal/src/client/proxy.d.ts +0 -15
  15. package/build/internal/src/client/symbols.d.ts +0 -41
  16. package/build/internal/src/middleware/CommandFromClientV.d.ts +0 -290
  17. package/build/internal/src/middleware/ICommandFromClientType.d.ts +0 -5
  18. package/build/internal/src/middleware/IResourceSettings.d.ts +0 -3
  19. package/build/internal/src/middleware/OrganizationV.d.ts +0 -177
  20. package/build/internal/src/middleware/ResourceSettingsV.d.ts +0 -91
  21. package/build/internal/src/middleware/checklist.d.ts +0 -740
  22. package/build/internal/src/middleware/command.d.ts +0 -6678
  23. package/build/internal/src/middleware/commandCategory.d.ts +0 -192
  24. package/build/internal/src/middleware/confetti.d.ts +0 -16
  25. package/build/internal/src/middleware/context.d.ts +0 -40
  26. package/build/internal/src/middleware/dashboardFlags.d.ts +0 -9
  27. package/build/internal/src/middleware/detailPreview.d.ts +0 -24
  28. package/build/internal/src/middleware/environment.d.ts +0 -11
  29. package/build/internal/src/middleware/generics.d.ts +0 -40
  30. package/build/internal/src/middleware/guide.d.ts +0 -37
  31. package/build/internal/src/middleware/helpDocsIntegration.d.ts +0 -66
  32. package/build/internal/src/middleware/helpDocsSync.d.ts +0 -42
  33. package/build/internal/src/middleware/helpers/actions.d.ts +0 -84
  34. package/build/internal/src/middleware/helpers/argument.d.ts +0 -448
  35. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +0 -225
  36. package/build/internal/src/middleware/helpers/endUser.d.ts +0 -11
  37. package/build/internal/src/middleware/helpers/goals.d.ts +0 -26
  38. package/build/internal/src/middleware/helpers/optionGroup.d.ts +0 -2
  39. package/build/internal/src/middleware/helpers/rules.d.ts +0 -260
  40. package/build/internal/src/middleware/helpers/tags.d.ts +0 -7
  41. package/build/internal/src/middleware/historyEvent.d.ts +0 -21
  42. package/build/internal/src/middleware/network.d.ts +0 -4
  43. package/build/internal/src/middleware/nudge.d.ts +0 -1057
  44. package/build/internal/src/middleware/organization.d.ts +0 -978
  45. package/build/internal/src/middleware/placeholder.d.ts +0 -47
  46. package/build/internal/src/middleware/profile.d.ts +0 -11
  47. package/build/internal/src/middleware/releases.d.ts +0 -261
  48. package/build/internal/src/middleware/skin.d.ts +0 -94
  49. package/build/internal/src/middleware/tab.d.ts +0 -27
  50. package/build/internal/src/middleware/types.d.ts +0 -155
  51. package/build/internal/src/middleware/user.d.ts +0 -15
  52. package/build/internal/src/util/Disposable.d.ts +0 -17
  53. package/build/internal/src/util/LocalStorage.d.ts +0 -6
  54. package/build/internal/src/util/Logger.d.ts +0 -18
  55. package/build/internal/src/util/dispatchCustomEvent.d.ts +0 -2
@@ -1,47 +0,0 @@
1
- import * as t from 'io-ts';
2
- export declare const PlaceholderV: t.IntersectionC<[t.TypeC<{
3
- id: t.NumberC;
4
- organization: t.StringC;
5
- slug: t.StringC;
6
- text: t.StringC;
7
- }>, t.PartialC<{}>]>;
8
- export declare class Placeholder {
9
- static create: (object: {
10
- id: number;
11
- organization: string;
12
- slug: string;
13
- text: string;
14
- } & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
15
- id: number;
16
- organization: string;
17
- slug: string;
18
- text: string;
19
- } & {}>;
20
- static update: (object: {
21
- id: number;
22
- organization: string;
23
- slug: string;
24
- text: string;
25
- } & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
26
- id: number;
27
- organization: string;
28
- slug: string;
29
- text: string;
30
- } & {}>;
31
- static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
32
- static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
33
- id: number;
34
- organization: string;
35
- slug: string;
36
- text: string;
37
- } & {})[]>;
38
- static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
39
- onSuccess?: (() => void) | undefined;
40
- onError?: ((err: string) => void) | undefined;
41
- } | undefined) => Promise<{
42
- id: number;
43
- organization: string;
44
- slug: string;
45
- text: string;
46
- } & {}>;
47
- }
@@ -1,11 +0,0 @@
1
- import * as t from 'io-ts';
2
- export declare const ProfileV: t.TypeC<{
3
- user: t.StringC;
4
- organization: t.StringC;
5
- }>;
6
- export declare class Profile {
7
- static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
8
- user: string;
9
- organization: string;
10
- }[]>;
11
- }
@@ -1,261 +0,0 @@
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<unknown>;
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
- }
@@ -1,94 +0,0 @@
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
- frozen: t.BooleanC;
12
- }>]>;
13
- export declare const SkinPatchV: t.PartialC<{
14
- id: t.StringC;
15
- slug: t.StringC;
16
- name: t.StringC;
17
- default: t.BooleanC;
18
- skin: t.AnyC;
19
- organization: t.StringC;
20
- logo: t.UnionC<[t.StringC, t.NullC]>;
21
- }>;
22
- export declare const SkinPatchMetadataV: t.PartialC<{
23
- name: t.StringC;
24
- slug: t.StringC;
25
- }>;
26
- export declare class Skin {
27
- static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
28
- id: string;
29
- slug: string;
30
- name: string;
31
- default: boolean;
32
- skin: any;
33
- organization: string;
34
- } & {
35
- logo?: string | null | undefined;
36
- frozen?: boolean | undefined;
37
- })[]>;
38
- static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
39
- onSuccess?: (() => void) | undefined;
40
- onError?: ((err: string) => void) | undefined;
41
- } | undefined) => Promise<{
42
- id: string;
43
- slug: string;
44
- name: string;
45
- default: boolean;
46
- skin: any;
47
- organization: string;
48
- } & {
49
- logo?: string | null | undefined;
50
- frozen?: boolean | undefined;
51
- }>;
52
- static update: (skin: t.TypeOf<typeof SkinPatchV>) => Promise<{
53
- id: string;
54
- slug: string;
55
- name: string;
56
- default: boolean;
57
- skin: any;
58
- organization: string;
59
- } & {
60
- logo?: string | null | undefined;
61
- frozen?: boolean | undefined;
62
- }>;
63
- static updateMetadata: (slug: string, metadata: t.TypeOf<typeof SkinPatchMetadataV>) => Promise<{
64
- id: string;
65
- slug: string;
66
- name: string;
67
- default: boolean;
68
- skin: any;
69
- organization: string;
70
- } & {
71
- logo?: string | null | undefined;
72
- frozen?: boolean | undefined;
73
- }>;
74
- static create: (object: {
75
- id?: string | undefined;
76
- slug?: string | undefined;
77
- name?: string | undefined;
78
- default?: boolean | undefined;
79
- skin?: any;
80
- organization?: string | undefined;
81
- logo?: string | null | undefined;
82
- }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
83
- id: string;
84
- slug: string;
85
- name: string;
86
- default: boolean;
87
- skin: any;
88
- organization: string;
89
- } & {
90
- logo?: string | null | undefined;
91
- frozen?: boolean | undefined;
92
- }>;
93
- static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
94
- }
@@ -1,27 +0,0 @@
1
- import * as t from 'io-ts';
2
- export declare const TabV: t.TypeC<{
3
- id: t.NumberC;
4
- organization: t.UnionC<[t.NumberC, t.StringC]>;
5
- category_ids: t.ArrayC<t.NumberC>;
6
- sort_key: t.NumberC;
7
- icon: t.UnionC<[t.StringC, t.NullC]>;
8
- label: t.StringC;
9
- header: t.UnionC<[t.StringC, t.NullC]>;
10
- description: t.StringC;
11
- placeholder: t.UnionC<[t.StringC, t.NullC]>;
12
- render_as: t.UnionC<[t.LiteralC<"list">, t.LiteralC<"grid">]>;
13
- }>;
14
- export declare class Tab {
15
- static decode: (data: any) => {
16
- id: number;
17
- organization: string | number;
18
- category_ids: number[];
19
- sort_key: number;
20
- icon: string | null;
21
- label: string;
22
- header: string | null;
23
- description: string;
24
- placeholder: string | null;
25
- render_as: "grid" | "list";
26
- };
27
- }
@@ -1,155 +0,0 @@
1
- /*******************************************************************************/
2
- import * as t from 'io-ts';
3
- import { BatchEditorCommandResponseV, BatchOperationV, CommandV, HelpSyncCommandV, EditorCommandV } from './command';
4
- import { ArgumentMapV, ArgumentTypeV, ConditionV, ConditionOperatorV, StepArgumentTypeV, ContextArgumentV, SetArgumentV, DynamicArgumentV, DependentArgumentV, FunctionArgumentV } from './helpers/argument';
5
- import { GenericBatchRequest } from './generics';
6
- import { OptionGroupRenderAsV } from './helpers/optionGroup';
7
- import { TemplateV, TemplateOptionsV, RequestTemplateV } from './helpers/commandTemplate';
8
- import { RequestV } from './helpers/actions';
9
- import { CommandCategoryV } from './commandCategory';
10
- import { OrganizationStatusV, KeyEventV, ResourceSettingsByContextKeyV, InternalSettingsV, OrganizationSettingsV } from './organization';
11
- import { UserV } from './user';
12
- import { ContextV } from './context';
13
- import { GuideV } from './guide';
14
- import { HistoryEventV } from './historyEvent';
15
- import { HelpDocsSyncV } from './helpDocsSync';
16
- import { HelpDocsIntegrationV } from './helpDocsIntegration';
17
- import { EndUserV } from './helpers/endUser';
18
- import { SkinV } from './skin';
19
- import { ProfileV } from './profile';
20
- import { PlaceholderV } from './placeholder';
21
- import { EnvReleaseInfoV, ReleaseStepV, ReleaseV } from './releases';
22
- import { EnvironmentV } from './environment';
23
- import { NudgeContentBlockV, NudgeContentButtonBlockV, NudgeContentHelpDocBlockV, NudgeContentImageBlockV, NudgeContentMarkdownBlockV, NudgeContentVideoBlockV, NudgeStepV, NudgeV, OldNudgeV } from './nudge';
24
- import { TabV } from './tab';
25
- import { RuleExpressionAndV, RuleExpressionOrV, RuleExpressionV } from './helpers/rules';
26
- import { ChecklistItemV, ChecklistV } from './checklist';
27
- import { DashboardFlagsV } from './dashboardFlags';
28
- /*******************************************************************************/
29
- export declare type IInitOptions = {
30
- debug?: boolean;
31
- environment?: string;
32
- version?: string;
33
- config?: IConfigEndpointResponse;
34
- };
35
- /*******************************************************************************/
36
- export declare type IContextType = t.TypeOf<typeof ContextV> & unknown;
37
- export declare type IUserType = t.TypeOf<typeof UserV> & unknown;
38
- export declare type ICommandType = t.TypeOf<typeof CommandV> & unknown;
39
- export declare type IEditorCommandType = t.TypeOf<typeof EditorCommandV> & unknown;
40
- export declare type IHelpSyncCommandType = t.TypeOf<typeof HelpSyncCommandV> & unknown;
41
- export type { ICommandFromClientType } from './ICommandFromClientType';
42
- export declare type ICommandCategoryType = t.TypeOf<typeof CommandCategoryV> & unknown;
43
- export declare type IGuideType = t.TypeOf<typeof GuideV> & {
44
- preview?: boolean;
45
- } & unknown;
46
- export declare type IHistoryEventType = t.TypeOf<typeof HistoryEventV> & unknown;
47
- export declare type IHelpDocsSyncType = t.TypeOf<typeof HelpDocsSyncV> & unknown;
48
- export declare type IHelpDocsIntegrationType = t.TypeOf<typeof HelpDocsIntegrationV> & unknown;
49
- export type { IOrganizationType } from './OrganizationV';
50
- export declare type IOrganizationStatusType = t.TypeOf<typeof OrganizationStatusV> & unknown;
51
- export declare type IInternalSettingsType = t.TypeOf<typeof InternalSettingsV> & unknown;
52
- export declare type IDashboardFlagsType = t.TypeOf<typeof DashboardFlagsV> & unknown;
53
- export declare type ISkinType = t.TypeOf<typeof SkinV> & unknown;
54
- export declare type IProfileType = t.TypeOf<typeof ProfileV> & unknown;
55
- export declare type IOrganizationSettingsType = t.TypeOf<typeof OrganizationSettingsV> & unknown;
56
- export declare type IPlaceholderType = t.TypeOf<typeof PlaceholderV> & unknown;
57
- export declare type ITabType = t.TypeOf<typeof TabV> & unknown;
58
- export declare type IEnvironmentType = t.TypeOf<typeof EnvironmentV> & unknown;
59
- export declare type IReleaseStep = t.TypeOf<typeof ReleaseStepV> & unknown;
60
- export declare type IRelease = t.TypeOf<typeof ReleaseV> & unknown;
61
- export declare type IEnvReleaseInfo = t.TypeOf<typeof EnvReleaseInfoV> & unknown;
62
- /*******************************************************************************/
63
- export declare type IBatchOperation = t.TypeOf<typeof BatchOperationV> & unknown;
64
- export declare type IBatchEditorCommandRequst = t.TypeOf<typeof GenericBatchRequest> & unknown;
65
- export declare type IBatchEditorCommandResponse = t.TypeOf<typeof BatchEditorCommandResponseV> & unknown;
66
- /*******************************************************************************/
67
- export declare type IKeyEventCategory = t.TypeOf<typeof KeyEventV> & unknown;
68
- export declare type IArgumentMap = t.TypeOf<typeof ArgumentMapV> & unknown;
69
- export declare type IArgumentType = t.TypeOf<typeof ArgumentTypeV> & unknown;
70
- export declare type IStepArgumentType = t.TypeOf<typeof StepArgumentTypeV> & unknown;
71
- export declare type ITemplate = t.TypeOf<typeof TemplateV> & unknown;
72
- export declare type RequestTemplateType = t.TypeOf<typeof RequestTemplateV> & unknown;
73
- export declare type RequestType = t.TypeOf<typeof RequestV> & unknown;
74
- export declare type ITemplateOptions = t.TypeOf<typeof TemplateOptionsV> & unknown;
75
- export declare type IEndUserType = t.TypeOf<typeof EndUserV> & unknown;
76
- export declare type IRuleExpression = t.TypeOf<typeof RuleExpressionV> & unknown;
77
- export declare type IRuleExpressionAnd = t.TypeOf<typeof RuleExpressionAndV> & unknown;
78
- export declare type IRuleExpressionOr = t.TypeOf<typeof RuleExpressionOrV> & unknown;
79
- export declare type IConditionType = t.TypeOf<typeof ConditionV> & unknown;
80
- export declare type IConditionOperatorType = t.TypeOf<typeof ConditionOperatorV> & unknown;
81
- export declare type IContextArgumentType = t.TypeOf<typeof ContextArgumentV> & unknown;
82
- export declare type ISetArgumentType = t.TypeOf<typeof SetArgumentV> & unknown;
83
- export declare type IDynamicArgumentType = t.TypeOf<typeof DynamicArgumentV> & unknown;
84
- export declare type IDependentArgumentType = t.TypeOf<typeof DependentArgumentV> & unknown;
85
- export declare type IFunctionArgumentType = t.TypeOf<typeof FunctionArgumentV> & unknown;
86
- export declare type OptionGroupRenderAsType = t.TypeOf<typeof OptionGroupRenderAsV> & unknown;
87
- export declare type IOldNudgeType = t.TypeOf<typeof OldNudgeV> & unknown;
88
- export declare type INudgeType = t.TypeOf<typeof NudgeV> & unknown;
89
- export declare type INudgeStepType = t.TypeOf<typeof NudgeStepV> & unknown;
90
- export declare type INudgeStepContentBlockType = t.TypeOf<typeof NudgeContentBlockV> & unknown;
91
- export declare type INudgeStepContentMarkdownBlockType = t.TypeOf<typeof NudgeContentMarkdownBlockV> & unknown;
92
- export declare type INudgeStepContentImageBlockType = t.TypeOf<typeof NudgeContentImageBlockV> & unknown;
93
- export declare type INudgeStepContentVideoBlockType = t.TypeOf<typeof NudgeContentVideoBlockV> & unknown;
94
- export declare type INudgeStepContentHelpDocBlockType = t.TypeOf<typeof NudgeContentHelpDocBlockV> & unknown;
95
- export declare type INudgeStepContentButtonBlockType = t.TypeOf<typeof NudgeContentButtonBlockV> & unknown;
96
- export declare type INudgeClientType = {
97
- nudge: INudgeType;
98
- passedConditionsInLastEvaluation: boolean;
99
- lastTriggeredTs?: number;
100
- };
101
- export declare type IChecklist = t.TypeOf<typeof ChecklistV> & unknown;
102
- export declare type IChecklistItem = t.TypeOf<typeof ChecklistItemV> & unknown;
103
- export interface ICommandInput {
104
- text: string;
105
- command: ICommandType;
106
- context: IUserContext;
107
- }
108
- export interface IArgValues {
109
- [arg: string]: string | number | undefined;
110
- }
111
- export declare type IHistoryType = Array<{
112
- activeCommand: ICommandType;
113
- options: ICommandType[];
114
- }>;
115
- export interface IUserContext {
116
- [variable: string]: any;
117
- }
118
- export interface IEndUserAnalytics {
119
- num_command_executions: number;
120
- num_shortcut_command_executions: number;
121
- num_sessions: number;
122
- num_opens: number;
123
- num_deadends: number;
124
- first_seen_at: string;
125
- last_seen_at: string;
126
- }
127
- export interface ICallbackMap {
128
- [variable: string]: (...args: any[]) => unknown;
129
- }
130
- export interface IResourceType extends IUserContext {
131
- _cbLinkedCommmands: Array<{
132
- command: number;
133
- arg: string;
134
- }>;
135
- }
136
- export declare type IConfigEndpointResponse = {
137
- commands: any[];
138
- categories: any[];
139
- organization: any;
140
- environments_with_versions?: any[];
141
- placeholders?: any[];
142
- nudges?: IOldNudgeType[];
143
- nudges_v2?: INudgeType[];
144
- tabs?: ITabType[];
145
- checklists?: IChecklist[];
146
- };
147
- export type { IResourceSettings } from './IResourceSettings';
148
- export declare type IResourceSettingsByContextKey = t.TypeOf<typeof ResourceSettingsByContextKeyV> & unknown;
149
- export type { DetailPreviewObjectType, DetailPreviewType, DataRowMetadata } from './detailPreview';
150
- /*******************************************************************************/
151
- export declare const isCommand: (command?: ICommandType | any) => command is ICommandType;
152
- export declare const isResource: (option: any) => option is IResourceType;
153
- export declare const isContextArgument: (argument: IArgumentType) => argument is IContextArgumentType;
154
- export declare const isTimeArgument: (argument: IArgumentType) => argument is IDynamicArgumentType;
155
- export declare const isFunctionArgument: (argument: IArgumentType) => argument is IFunctionArgumentType;
@@ -1,15 +0,0 @@
1
- import * as t from 'io-ts';
2
- export declare const UserV: t.IntersectionC<[t.TypeC<{
3
- id: t.UnionC<[t.NumberC, t.StringC]>;
4
- }>, t.TypeC<{
5
- token: t.StringC;
6
- email: t.StringC;
7
- organization: t.StringC;
8
- organization_name: t.StringC;
9
- api_token: t.UnionC<[t.StringC, t.NullC]>;
10
- profile: t.NumberC;
11
- has_updated_password: t.BooleanC;
12
- is_active: t.BooleanC;
13
- }>, t.PartialC<{
14
- intercom_hash: t.StringC;
15
- }>]>;
@@ -1,17 +0,0 @@
1
- import { _dispose, _disposed } from '../client/symbols';
2
- export declare type PublicDisposable = {
3
- dispose: VoidFunction;
4
- _disposed?: boolean;
5
- };
6
- export declare type PrivateDisposable = {
7
- [_dispose]: VoidFunction;
8
- [_disposed]?: boolean;
9
- };
10
- export declare type Disposable = undefined | PublicDisposable | PrivateDisposable;
11
- export declare const isDisposable: (x: unknown) => x is Disposable;
12
- /**
13
- * Determines if the provided value is "disposed". A value is considered "disposed" if it is an object with the
14
- * _disposed property or symbol symbol set to true, or if the actual value is undefined.
15
- */
16
- export declare const isDisposed: (x: unknown) => boolean;
17
- export declare function dispose(x: Disposable): void;
@@ -1,6 +0,0 @@
1
- declare const LocalStorage: {
2
- set: (label: string, value: string | boolean | number) => string | number | boolean;
3
- get: (label: string, defaultValue: string | boolean | number, prefixOverride?: string | undefined) => string | number | boolean;
4
- remove: (label: string) => void;
5
- };
6
- export default LocalStorage;
@@ -1,18 +0,0 @@
1
- import Debug from 'debug';
2
- declare const Logger: {
3
- debug: Debug.Debugger;
4
- log: Debug.Debugger;
5
- info: Debug.Debugger;
6
- warn: Debug.Debugger;
7
- error: Debug.Debugger;
8
- red: (...args: any[]) => void;
9
- green: (...args: any[]) => void;
10
- blue: (...args: any[]) => void;
11
- orange: (...args: any[]) => void;
12
- yellow: (...args: any[]) => void;
13
- purple: (...args: any[]) => void;
14
- black: (...args: any[]) => void;
15
- portalsend: (...args: any[]) => void;
16
- portalreceive: (...args: any[]) => void;
17
- };
18
- export default Logger;
@@ -1,2 +0,0 @@
1
- export declare function dispatchCustomEvent<T>(eventType: string, detail: T, canBubble?: boolean, cancelable?: boolean): CustomEvent<T>;
2
- export default dispatchCustomEvent;