commandbar 1.7.2 → 1.8.2

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.
Files changed (52) hide show
  1. package/build/commandbar-js/src/index.js +1 -1
  2. package/build/commandbar-js/src/init.d.ts +1 -1
  3. package/package.json +3 -4
  4. package/src/init.ts +1 -1
  5. package/src/snippet.ts +1 -0
  6. package/build/internal/src/client/AddContextOptions.d.ts +0 -124
  7. package/build/internal/src/client/AnalyticsEventTypes.d.ts +0 -1
  8. package/build/internal/src/client/CommandBarClientSDK.d.ts +0 -387
  9. package/build/internal/src/client/CommandBarProxySDK.d.ts +0 -49
  10. package/build/internal/src/client/CommandBarSDK.d.ts +0 -51
  11. package/build/internal/src/client/EventHandler.d.ts +0 -142
  12. package/build/internal/src/client/OrgConfig.d.ts +0 -5
  13. package/build/internal/src/client/SDKConfig.d.ts +0 -13
  14. package/build/internal/src/client/SentryReporter.d.ts +0 -62
  15. package/build/internal/src/client/globals.d.ts +0 -19
  16. package/build/internal/src/client/proxy.d.ts +0 -15
  17. package/build/internal/src/client/symbols.d.ts +0 -35
  18. package/build/internal/src/middleware/CommandFromClientV.d.ts +0 -307
  19. package/build/internal/src/middleware/ICommandFromClientType.d.ts +0 -5
  20. package/build/internal/src/middleware/IResourceSettings.d.ts +0 -3
  21. package/build/internal/src/middleware/OrganizationV.d.ts +0 -170
  22. package/build/internal/src/middleware/ResourceSettingsV.d.ts +0 -89
  23. package/build/internal/src/middleware/command.d.ts +0 -6975
  24. package/build/internal/src/middleware/commandCategory.d.ts +0 -192
  25. package/build/internal/src/middleware/confetti.d.ts +0 -16
  26. package/build/internal/src/middleware/context.d.ts +0 -40
  27. package/build/internal/src/middleware/detailPreview.d.ts +0 -21
  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/argument.d.ts +0 -568
  34. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +0 -225
  35. package/build/internal/src/middleware/helpers/endUser.d.ts +0 -10
  36. package/build/internal/src/middleware/helpers/optionGroup.d.ts +0 -2
  37. package/build/internal/src/middleware/helpers/rules.d.ts +0 -234
  38. package/build/internal/src/middleware/historyEvent.d.ts +0 -40
  39. package/build/internal/src/middleware/network.d.ts +0 -4
  40. package/build/internal/src/middleware/nudge.d.ts +0 -261
  41. package/build/internal/src/middleware/organization.d.ts +0 -946
  42. package/build/internal/src/middleware/placeholder.d.ts +0 -47
  43. package/build/internal/src/middleware/profile.d.ts +0 -11
  44. package/build/internal/src/middleware/releases.d.ts +0 -261
  45. package/build/internal/src/middleware/skin.d.ts +0 -83
  46. package/build/internal/src/middleware/tab.d.ts +0 -27
  47. package/build/internal/src/middleware/types.d.ts +0 -137
  48. package/build/internal/src/middleware/user.d.ts +0 -14
  49. package/build/internal/src/util/Disposable.d.ts +0 -17
  50. package/build/internal/src/util/LocalStorage.d.ts +0 -6
  51. package/build/internal/src/util/Logger.d.ts +0 -18
  52. package/build/internal/src/util/dispatchCustomEvent.d.ts +0 -2
@@ -1,225 +0,0 @@
1
- /*******************************************************************************/
2
- import * as t from 'io-ts';
3
- /*******************************************************************************/
4
- export declare const TemplateOptionsV: t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
5
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
6
- object: t.StringC;
7
- hoverTooltip: t.BooleanC;
8
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
9
- }>]>;
10
- export declare const AdminTemplateV: t.IntersectionC<[t.TypeC<{
11
- type: t.LiteralC<"admin">;
12
- value: t.StringC;
13
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
14
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
15
- object: t.StringC;
16
- hoverTooltip: t.BooleanC;
17
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
18
- }>]>]>;
19
- export declare const CallbackTemplateV: t.IntersectionC<[t.TypeC<{
20
- type: t.LiteralC<"callback">;
21
- value: t.StringC;
22
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
23
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
24
- object: t.StringC;
25
- hoverTooltip: t.BooleanC;
26
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
27
- }>]>]>;
28
- export declare const LinkTemplateV: t.IntersectionC<[t.TypeC<{
29
- type: t.LiteralC<"link">;
30
- value: t.StringC;
31
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
32
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
33
- object: t.StringC;
34
- hoverTooltip: t.BooleanC;
35
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
36
- }>]>]>;
37
- export declare const ClickTemplateV: t.IntersectionC<[t.TypeC<{
38
- type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
39
- value: t.ArrayC<t.StringC>;
40
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
41
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
42
- object: t.StringC;
43
- hoverTooltip: t.BooleanC;
44
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
45
- }>]>]>;
46
- export declare const BuiltInTemplateV: t.IntersectionC<[t.TypeC<{
47
- type: t.LiteralC<"builtin">;
48
- value: t.StringC;
49
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
50
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
51
- object: t.StringC;
52
- hoverTooltip: t.BooleanC;
53
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
54
- }>]>]>;
55
- export declare const WebhookTemplateV: t.IntersectionC<[t.TypeC<{
56
- type: t.LiteralC<"webhook">;
57
- value: t.StringC;
58
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
59
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
60
- object: t.StringC;
61
- hoverTooltip: t.BooleanC;
62
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
63
- }>]>]>;
64
- export declare const AppCuesTemplateV: t.IntersectionC<[t.TypeC<{
65
- type: t.LiteralC<"appcues">;
66
- value: t.StringC;
67
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
68
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
69
- object: t.StringC;
70
- hoverTooltip: t.BooleanC;
71
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
72
- }>]>]>;
73
- export declare const ScriptTemplateV: t.IntersectionC<[t.TypeC<{
74
- type: t.LiteralC<"script">;
75
- value: t.StringC;
76
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
77
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
78
- object: t.StringC;
79
- hoverTooltip: t.BooleanC;
80
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
81
- }>]>]>;
82
- export declare const VideoTemplateV: t.IntersectionC<[t.TypeC<{
83
- type: t.LiteralC<"video">;
84
- value: t.StringC;
85
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
86
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
87
- object: t.StringC;
88
- hoverTooltip: t.BooleanC;
89
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
90
- }>]>]>;
91
- export declare const HelpDocTemplateV: t.IntersectionC<[t.TypeC<{
92
- type: t.LiteralC<"helpdoc">;
93
- value: t.StringC;
94
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
95
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
96
- object: t.StringC;
97
- hoverTooltip: t.BooleanC;
98
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
99
- }>]>]>;
100
- export declare const RequestV: t.IntersectionC<[t.TypeC<{
101
- method: t.UnionC<[t.LiteralC<"get">, t.LiteralC<"delete">, t.LiteralC<"head">, t.LiteralC<"options">, t.LiteralC<"post">, t.LiteralC<"put">, t.LiteralC<"patch">]>;
102
- url: t.StringC;
103
- }>, t.PartialC<{
104
- headers: t.UnknownRecordC;
105
- body: t.UnknownRecordC;
106
- onSend: t.StringC;
107
- onSuccess: t.StringC;
108
- onError: t.StringC;
109
- }>]>;
110
- export declare const RequestTemplateV: t.IntersectionC<[t.TypeC<{
111
- type: t.LiteralC<"request">;
112
- value: t.IntersectionC<[t.TypeC<{
113
- method: t.UnionC<[t.LiteralC<"get">, t.LiteralC<"delete">, t.LiteralC<"head">, t.LiteralC<"options">, t.LiteralC<"post">, t.LiteralC<"put">, t.LiteralC<"patch">]>;
114
- url: t.StringC;
115
- }>, t.PartialC<{
116
- headers: t.UnknownRecordC;
117
- body: t.UnknownRecordC;
118
- onSend: t.StringC;
119
- onSuccess: t.StringC;
120
- onError: t.StringC;
121
- }>]>;
122
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
123
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
124
- object: t.StringC;
125
- hoverTooltip: t.BooleanC;
126
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
127
- }>]>]>;
128
- export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
129
- type: t.LiteralC<"admin">;
130
- value: t.StringC;
131
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
132
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
133
- object: t.StringC;
134
- hoverTooltip: t.BooleanC;
135
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
136
- }>]>]>, t.IntersectionC<[t.TypeC<{
137
- type: t.LiteralC<"callback">;
138
- value: t.StringC;
139
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
140
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
141
- object: t.StringC;
142
- hoverTooltip: t.BooleanC;
143
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
144
- }>]>]>, t.IntersectionC<[t.TypeC<{
145
- type: t.LiteralC<"link">;
146
- value: t.StringC;
147
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
148
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
149
- object: t.StringC;
150
- hoverTooltip: t.BooleanC;
151
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
152
- }>]>]>, t.IntersectionC<[t.TypeC<{
153
- type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
154
- value: t.ArrayC<t.StringC>;
155
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
156
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
157
- object: t.StringC;
158
- hoverTooltip: t.BooleanC;
159
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
160
- }>]>]>, t.IntersectionC<[t.TypeC<{
161
- type: t.LiteralC<"builtin">;
162
- value: t.StringC;
163
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
164
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
165
- object: t.StringC;
166
- hoverTooltip: t.BooleanC;
167
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
168
- }>]>]>, t.IntersectionC<[t.TypeC<{
169
- type: t.LiteralC<"webhook">;
170
- value: t.StringC;
171
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
172
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
173
- object: t.StringC;
174
- hoverTooltip: t.BooleanC;
175
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
176
- }>]>]>, t.IntersectionC<[t.TypeC<{
177
- type: t.LiteralC<"script">;
178
- value: t.StringC;
179
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
180
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
181
- object: t.StringC;
182
- hoverTooltip: t.BooleanC;
183
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
184
- }>]>]>, t.IntersectionC<[t.TypeC<{
185
- type: t.LiteralC<"request">;
186
- value: t.IntersectionC<[t.TypeC<{
187
- method: t.UnionC<[t.LiteralC<"get">, t.LiteralC<"delete">, t.LiteralC<"head">, t.LiteralC<"options">, t.LiteralC<"post">, t.LiteralC<"put">, t.LiteralC<"patch">]>;
188
- url: t.StringC;
189
- }>, t.PartialC<{
190
- headers: t.UnknownRecordC;
191
- body: t.UnknownRecordC;
192
- onSend: t.StringC;
193
- onSuccess: t.StringC;
194
- onError: t.StringC;
195
- }>]>;
196
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
197
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
198
- object: t.StringC;
199
- hoverTooltip: t.BooleanC;
200
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
201
- }>]>]>, t.IntersectionC<[t.TypeC<{
202
- type: t.LiteralC<"appcues">;
203
- value: t.StringC;
204
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
205
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
206
- object: t.StringC;
207
- hoverTooltip: t.BooleanC;
208
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
209
- }>]>]>, t.IntersectionC<[t.TypeC<{
210
- type: t.LiteralC<"video">;
211
- value: t.StringC;
212
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
213
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
214
- object: t.StringC;
215
- hoverTooltip: t.BooleanC;
216
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
217
- }>]>]>, t.IntersectionC<[t.TypeC<{
218
- type: t.LiteralC<"helpdoc">;
219
- value: t.StringC;
220
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
221
- commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
222
- object: t.StringC;
223
- hoverTooltip: t.BooleanC;
224
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
225
- }>]>]>]>;
@@ -1,10 +0,0 @@
1
- import * as t from 'io-ts';
2
- export declare const EndUserV: t.TypeC<{
3
- username: t.StringC;
4
- slug: t.StringC;
5
- organization: t.StringC;
6
- has_access: t.BooleanC;
7
- has_opened: t.BooleanC;
8
- hotkeys_debug: t.BooleanC;
9
- hmac: t.UnionC<[t.StringC, t.UndefinedC]>;
10
- }>;
@@ -1,2 +0,0 @@
1
- import * as t from 'io-ts';
2
- export declare const OptionGroupRenderAsV: t.UnionC<[t.LiteralC<"list">, t.LiteralC<"grid">]>;
@@ -1,234 +0,0 @@
1
- import * as t from 'io-ts';
2
- export declare const operators: readonly ["is", "isNot", "isTrue", "isFalse", "isTruthy", "isFalsy", "startsWith", "endsWith", "includes", "doesNotInclude", "matchesRegex", "isGreaterThan", "isLessThan", "isDefined", "isNotDefined", "classnameOnPage", "idOnPage"];
3
- declare const OperatorV: t.KeyofC<{
4
- includes: null;
5
- endsWith: null;
6
- startsWith: null;
7
- is: null;
8
- isTruthy: null;
9
- isFalsy: null;
10
- isNot: null;
11
- isTrue: null;
12
- isFalse: null;
13
- doesNotInclude: null;
14
- matchesRegex: null;
15
- isGreaterThan: null;
16
- isLessThan: null;
17
- isDefined: null;
18
- isNotDefined: null;
19
- classnameOnPage: null;
20
- idOnPage: null;
21
- }>;
22
- export declare const ConditionV: t.IntersectionC<[t.TypeC<{
23
- type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"event_count">]>;
24
- operator: t.KeyofC<{
25
- includes: null;
26
- endsWith: null;
27
- startsWith: null;
28
- is: null;
29
- isTruthy: null;
30
- isFalsy: null;
31
- isNot: null;
32
- isTrue: null;
33
- isFalse: null;
34
- doesNotInclude: null;
35
- matchesRegex: null;
36
- isGreaterThan: null;
37
- isLessThan: null;
38
- isDefined: null;
39
- isNotDefined: null;
40
- classnameOnPage: null;
41
- idOnPage: null;
42
- }>;
43
- }>, t.PartialC<{
44
- field: t.StringC;
45
- value: t.StringC;
46
- reason: t.StringC;
47
- }>]>;
48
- export declare const getConditions: (expr: RuleExpression) => ExpressionCondition[];
49
- export declare const canonicalize: (expr: RuleExpression) => RuleExpression;
50
- export declare function isCompoundExpression(expr: RuleExpression): expr is RuleExpressionAnd | RuleExpressionOr;
51
- export declare type ExpressionCondition = t.TypeOf<typeof ConditionV> | t.TypeOf<typeof NamedRuleReferenceV>;
52
- export declare type RuleExpression = RuleExpressionAnd | RuleExpressionOr | RuleExpressionLiteral | RuleExpressionCondition;
53
- export declare type RuleExpressionAnd = {
54
- type: 'AND';
55
- exprs: RuleExpression[];
56
- };
57
- export declare type RuleExpressionOr = {
58
- type: 'OR';
59
- exprs: RuleExpression[];
60
- };
61
- export declare type RuleExpressionLiteral = {
62
- type: 'LITERAL';
63
- value: boolean;
64
- };
65
- export declare type RuleExpressionCondition = {
66
- type: 'CONDITION';
67
- condition: ExpressionCondition;
68
- };
69
- export declare const RuleExpressionAndV: t.Type<RuleExpressionAnd>;
70
- export declare const RuleExpressionOrV: t.Type<RuleExpressionOr>;
71
- export declare const RuleExpressionLiteralV: t.Type<RuleExpressionLiteral>;
72
- export declare const RuleExpressionConditionV: t.Type<RuleExpressionCondition>;
73
- export declare const RuleExpressionV: t.Type<RuleExpression>;
74
- export declare const RuleExpressionTrue: t.TypeOf<typeof RuleExpressionLiteralV>;
75
- export declare const RuleExpressionFalse: t.TypeOf<typeof RuleExpressionLiteralV>;
76
- export declare const NamedRuleReferenceV: t.IntersectionC<[t.TypeC<{
77
- type: t.LiteralC<"named_rule">;
78
- rule_id: t.NumberC;
79
- }>, t.PartialC<{
80
- reason: t.StringC;
81
- }>]>;
82
- export declare const RecommendationRuleAlwaysV: t.IntersectionC<[t.TypeC<{
83
- type: t.LiteralC<"always">;
84
- }>, t.PartialC<{
85
- operator: t.UnionC<[t.UndefinedC, t.NullC]>;
86
- field: t.UnionC<[t.UndefinedC, t.NullC]>;
87
- value: t.UnionC<[t.UndefinedC, t.NullC]>;
88
- reason: t.UnionC<[t.UndefinedC, t.NullC]>;
89
- }>]>;
90
- export declare const AvailabilityRuleV: t.IntersectionC<[t.TypeC<{
91
- type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"event_count">]>;
92
- operator: t.KeyofC<{
93
- includes: null;
94
- endsWith: null;
95
- startsWith: null;
96
- is: null;
97
- isTruthy: null;
98
- isFalsy: null;
99
- isNot: null;
100
- isTrue: null;
101
- isFalse: null;
102
- doesNotInclude: null;
103
- matchesRegex: null;
104
- isGreaterThan: null;
105
- isLessThan: null;
106
- isDefined: null;
107
- isNotDefined: null;
108
- classnameOnPage: null;
109
- idOnPage: null;
110
- }>;
111
- }>, t.PartialC<{
112
- field: t.StringC;
113
- value: t.StringC;
114
- reason: t.StringC;
115
- }>]>;
116
- export declare const RecommendationRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
117
- type: t.LiteralC<"always">;
118
- }>, t.PartialC<{
119
- operator: t.UnionC<[t.UndefinedC, t.NullC]>;
120
- field: t.UnionC<[t.UndefinedC, t.NullC]>;
121
- value: t.UnionC<[t.UndefinedC, t.NullC]>;
122
- reason: t.UnionC<[t.UndefinedC, t.NullC]>;
123
- }>]>, t.IntersectionC<[t.TypeC<{
124
- type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"event_count">]>;
125
- operator: t.KeyofC<{
126
- includes: null;
127
- endsWith: null;
128
- startsWith: null;
129
- is: null;
130
- isTruthy: null;
131
- isFalsy: null;
132
- isNot: null;
133
- isTrue: null;
134
- isFalse: null;
135
- doesNotInclude: null;
136
- matchesRegex: null;
137
- isGreaterThan: null;
138
- isLessThan: null;
139
- isDefined: null;
140
- isNotDefined: null;
141
- classnameOnPage: null;
142
- idOnPage: null;
143
- }>;
144
- }>, t.PartialC<{
145
- field: t.StringC;
146
- value: t.StringC;
147
- reason: t.StringC;
148
- }>]>]>;
149
- export declare const EditorAvailabilityRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
150
- type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"event_count">]>;
151
- operator: t.KeyofC<{
152
- includes: null;
153
- endsWith: null;
154
- startsWith: null;
155
- is: null;
156
- isTruthy: null;
157
- isFalsy: null;
158
- isNot: null;
159
- isTrue: null;
160
- isFalse: null;
161
- doesNotInclude: null;
162
- matchesRegex: null;
163
- isGreaterThan: null;
164
- isLessThan: null;
165
- isDefined: null;
166
- isNotDefined: null;
167
- classnameOnPage: null;
168
- idOnPage: null;
169
- }>;
170
- }>, t.PartialC<{
171
- field: t.StringC;
172
- value: t.StringC;
173
- reason: t.StringC;
174
- }>]>, t.IntersectionC<[t.TypeC<{
175
- type: t.LiteralC<"named_rule">;
176
- rule_id: t.NumberC;
177
- }>, t.PartialC<{
178
- reason: t.StringC;
179
- }>]>]>;
180
- export declare const EditorRecommendationRuleV: t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
181
- type: t.LiteralC<"always">;
182
- }>, t.PartialC<{
183
- operator: t.UnionC<[t.UndefinedC, t.NullC]>;
184
- field: t.UnionC<[t.UndefinedC, t.NullC]>;
185
- value: t.UnionC<[t.UndefinedC, t.NullC]>;
186
- reason: t.UnionC<[t.UndefinedC, t.NullC]>;
187
- }>]>, t.IntersectionC<[t.TypeC<{
188
- type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"event_count">]>;
189
- operator: t.KeyofC<{
190
- includes: null;
191
- endsWith: null;
192
- startsWith: null;
193
- is: null;
194
- isTruthy: null;
195
- isFalsy: null;
196
- isNot: null;
197
- isTrue: null;
198
- isFalse: null;
199
- doesNotInclude: null;
200
- matchesRegex: null;
201
- isGreaterThan: null;
202
- isLessThan: null;
203
- isDefined: null;
204
- isNotDefined: null;
205
- classnameOnPage: null;
206
- idOnPage: null;
207
- }>;
208
- }>, t.PartialC<{
209
- field: t.StringC;
210
- value: t.StringC;
211
- reason: t.StringC;
212
- }>]>]>, t.IntersectionC<[t.TypeC<{
213
- type: t.LiteralC<"named_rule">;
214
- rule_id: t.NumberC;
215
- }>, t.PartialC<{
216
- reason: t.StringC;
217
- }>]>]>;
218
- export declare const NamedRuleV: t.TypeC<{
219
- id: t.NumberC;
220
- name: t.StringC;
221
- expression: t.Type<RuleExpression, RuleExpression, unknown>;
222
- }>;
223
- export declare type IRuleOperator = t.TypeOf<typeof OperatorV>;
224
- export declare type IAvailabilityRule = t.TypeOf<typeof AvailabilityRuleV>;
225
- export declare type IEditorAvailabilityRule = t.TypeOf<typeof EditorAvailabilityRuleV>;
226
- export declare type IRecommendationRule = t.TypeOf<typeof RecommendationRuleV>;
227
- export declare type IEditorRecommendationRule = t.TypeOf<typeof EditorRecommendationRuleV>;
228
- export declare type ICondition = t.TypeOf<typeof ConditionV>;
229
- export declare type IAvailabilityRuleType = IAvailabilityRule['type'];
230
- export declare type IRecommendationRuleType = IRecommendationRule['type'];
231
- export declare type IRule = IAvailabilityRule | IRecommendationRule;
232
- export declare type IEditorRule = IEditorAvailabilityRule | IEditorRecommendationRule;
233
- export declare type INamedRule = t.TypeOf<typeof NamedRuleV>;
234
- export {};
@@ -1,40 +0,0 @@
1
- import * as t from 'io-ts';
2
- export declare const HistoryEventV: t.IntersectionC<[t.TypeC<{
3
- id: t.NumberC;
4
- organization: t.StringC;
5
- changed_by: t.StringC;
6
- description: t.StringC;
7
- created: t.StringC;
8
- sha1: t.StringC;
9
- version_num: t.NumberC;
10
- }>, t.PartialC<{}>]>;
11
- export declare class HistoryEvent {
12
- static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
13
- id: number;
14
- organization: string;
15
- changed_by: string;
16
- description: string;
17
- created: string;
18
- sha1: string;
19
- version_num: number;
20
- } & {})[]>;
21
- static revert: (object: {
22
- id: number;
23
- organization: string;
24
- changed_by: string;
25
- description: string;
26
- created: string;
27
- sha1: string;
28
- version_num: number;
29
- } & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined, urlArgs?: {
30
- [arg: string]: string;
31
- } | undefined) => Promise<{
32
- id: number;
33
- organization: string;
34
- changed_by: string;
35
- description: string;
36
- created: string;
37
- sha1: string;
38
- version_num: number;
39
- } & {}>;
40
- }
@@ -1,4 +0,0 @@
1
- export declare const baseURL: string;
2
- export declare const authorizationHeader: string | null;
3
- declare const axiosInstance: import("axios").AxiosInstance;
4
- export default axiosInstance;