commandbar 1.7.1 → 1.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. package/build/commandbar-js/src/index.js +1 -1
  2. package/build/commandbar-js/src/init.d.ts +2 -8
  3. package/build/internal/src/client/AddContextOptions.d.ts +6 -7
  4. package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -1
  5. package/build/internal/src/client/CommandBarClientSDK.d.ts +33 -31
  6. package/build/internal/src/client/CommandBarSDK.d.ts +20 -4
  7. package/build/internal/src/client/EventHandler.d.ts +92 -3
  8. package/build/internal/src/client/globals.d.ts +2 -0
  9. package/build/internal/src/client/symbols.d.ts +7 -0
  10. package/build/internal/src/middleware/CommandFromClientV.d.ts +32 -47
  11. package/build/internal/src/middleware/OrganizationV.d.ts +15 -2
  12. package/build/internal/src/middleware/ResourceSettingsV.d.ts +6 -0
  13. package/build/internal/src/middleware/checklist.d.ts +740 -0
  14. package/build/internal/src/middleware/command.d.ts +718 -977
  15. package/build/internal/src/middleware/commandCategory.d.ts +32 -0
  16. package/build/internal/src/middleware/dashboardFlags.d.ts +9 -0
  17. package/build/internal/src/middleware/detailPreview.d.ts +4 -0
  18. package/build/internal/src/middleware/helpers/actions.d.ts +84 -0
  19. package/build/internal/src/middleware/helpers/argument.d.ts +0 -120
  20. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +60 -60
  21. package/build/internal/src/middleware/helpers/endUser.d.ts +1 -0
  22. package/build/internal/src/middleware/helpers/goals.d.ts +26 -0
  23. package/build/internal/src/middleware/helpers/rules.d.ts +48 -22
  24. package/build/internal/src/middleware/helpers/tags.d.ts +7 -0
  25. package/build/internal/src/middleware/historyEvent.d.ts +0 -19
  26. package/build/internal/src/middleware/nudge.d.ts +925 -81
  27. package/build/internal/src/middleware/organization.d.ts +110 -60
  28. package/build/internal/src/middleware/skin.d.ts +13 -2
  29. package/build/internal/src/middleware/types.d.ts +38 -6
  30. package/build/internal/src/middleware/user.d.ts +2 -1
  31. package/build/internal/src/util/LocalStorage.d.ts +1 -1
  32. package/package.json +3 -4
  33. package/src/init.ts +2 -9
  34. package/src/snippet.ts +2 -2
  35. package/webpack.config.js +5 -0
@@ -5,16 +5,17 @@ export declare const TemplateOptionsV: t.IntersectionC<[t.TypeC<{}>, t.PartialC<
5
5
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
6
6
  object: t.StringC;
7
7
  hoverTooltip: t.BooleanC;
8
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
8
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
9
9
  }>]>;
10
10
  export declare const AdminTemplateV: t.IntersectionC<[t.TypeC<{
11
11
  type: t.LiteralC<"admin">;
12
+ /*******************************************************************************/
12
13
  value: t.StringC;
13
14
  }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
14
15
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
15
16
  object: t.StringC;
16
17
  hoverTooltip: t.BooleanC;
17
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
18
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
18
19
  }>]>]>;
19
20
  export declare const CallbackTemplateV: t.IntersectionC<[t.TypeC<{
20
21
  type: t.LiteralC<"callback">;
@@ -23,16 +24,18 @@ export declare const CallbackTemplateV: t.IntersectionC<[t.TypeC<{
23
24
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
24
25
  object: t.StringC;
25
26
  hoverTooltip: t.BooleanC;
26
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
27
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
27
28
  }>]>]>;
28
- export declare const LinkTemplateV: t.IntersectionC<[t.TypeC<{
29
+ export declare const LinkTemplateV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
29
30
  type: t.LiteralC<"link">;
30
31
  value: t.StringC;
31
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
32
+ }>, t.PartialC<{
33
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
34
+ }>]>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
32
35
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
33
36
  object: t.StringC;
34
37
  hoverTooltip: t.BooleanC;
35
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
38
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
36
39
  }>]>]>;
37
40
  export declare const ClickTemplateV: t.IntersectionC<[t.TypeC<{
38
41
  type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
@@ -41,7 +44,7 @@ export declare const ClickTemplateV: t.IntersectionC<[t.TypeC<{
41
44
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
42
45
  object: t.StringC;
43
46
  hoverTooltip: t.BooleanC;
44
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
47
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
45
48
  }>]>]>;
46
49
  export declare const BuiltInTemplateV: t.IntersectionC<[t.TypeC<{
47
50
  type: t.LiteralC<"builtin">;
@@ -50,7 +53,7 @@ export declare const BuiltInTemplateV: t.IntersectionC<[t.TypeC<{
50
53
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
51
54
  object: t.StringC;
52
55
  hoverTooltip: t.BooleanC;
53
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
56
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
54
57
  }>]>]>;
55
58
  export declare const WebhookTemplateV: t.IntersectionC<[t.TypeC<{
56
59
  type: t.LiteralC<"webhook">;
@@ -59,80 +62,73 @@ export declare const WebhookTemplateV: t.IntersectionC<[t.TypeC<{
59
62
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
60
63
  object: t.StringC;
61
64
  hoverTooltip: t.BooleanC;
62
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
65
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
63
66
  }>]>]>;
64
- export declare const AppCuesTemplateV: t.IntersectionC<[t.TypeC<{
65
- type: t.LiteralC<"appcues">;
67
+ export declare const ScriptTemplateV: t.IntersectionC<[t.TypeC<{
68
+ type: t.LiteralC<"script">;
66
69
  value: t.StringC;
67
70
  }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
68
71
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
69
72
  object: t.StringC;
70
73
  hoverTooltip: t.BooleanC;
71
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
74
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
72
75
  }>]>]>;
73
- export declare const ScriptTemplateV: t.IntersectionC<[t.TypeC<{
74
- type: t.LiteralC<"script">;
75
- value: t.StringC;
76
+ export declare const RequestTemplateV: t.IntersectionC<[t.TypeC<{
77
+ type: t.LiteralC<"request">;
78
+ value: t.IntersectionC<[t.TypeC<{
79
+ method: t.UnionC<[t.LiteralC<"get">, t.LiteralC<"delete">, t.LiteralC<"head">, t.LiteralC<"options">, t.LiteralC<"post">, t.LiteralC<"put">, t.LiteralC<"patch">]>;
80
+ url: t.StringC;
81
+ }>, t.PartialC<{
82
+ headers: t.UnknownRecordC;
83
+ body: t.UnknownRecordC;
84
+ onSend: t.StringC;
85
+ onSuccess: t.StringC;
86
+ onError: t.StringC;
87
+ }>]>;
76
88
  }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
77
89
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
78
90
  object: t.StringC;
79
91
  hoverTooltip: t.BooleanC;
80
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
92
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
81
93
  }>]>]>;
82
- export declare const VideoTemplateV: t.IntersectionC<[t.TypeC<{
83
- type: t.LiteralC<"video">;
94
+ export declare const AppcuesTemplateV: t.IntersectionC<[t.TypeC<{
95
+ type: t.LiteralC<"appcues">;
84
96
  value: t.StringC;
85
97
  }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
86
98
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
87
99
  object: t.StringC;
88
100
  hoverTooltip: t.BooleanC;
89
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
101
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
90
102
  }>]>]>;
91
- export declare const HelpDocTemplateV: t.IntersectionC<[t.TypeC<{
92
- type: t.LiteralC<"helpdoc">;
103
+ export declare const VideoTemplateV: t.IntersectionC<[t.TypeC<{
104
+ type: t.LiteralC<"video">;
93
105
  value: t.StringC;
94
106
  }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
95
107
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
96
108
  object: t.StringC;
97
109
  hoverTooltip: t.BooleanC;
98
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
110
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
99
111
  }>]>]>;
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;
112
+ export declare const HelpDocTemplateV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
113
+ type: t.LiteralC<"helpdoc">;
114
+ value: t.StringC;
103
115
  }>, 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<{
116
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.LiteralC<"help_explorer">, t.UndefinedC]>;
117
+ }>]>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
123
118
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
124
119
  object: t.StringC;
125
120
  hoverTooltip: t.BooleanC;
126
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
121
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
127
122
  }>]>]>;
128
123
  export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
129
124
  type: t.LiteralC<"admin">;
125
+ /*******************************************************************************/
130
126
  value: t.StringC;
131
127
  }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
132
128
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
133
129
  object: t.StringC;
134
130
  hoverTooltip: t.BooleanC;
135
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
131
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
136
132
  }>]>]>, t.IntersectionC<[t.TypeC<{
137
133
  type: t.LiteralC<"callback">;
138
134
  value: t.StringC;
@@ -140,15 +136,17 @@ export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
140
136
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
141
137
  object: t.StringC;
142
138
  hoverTooltip: t.BooleanC;
143
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
144
- }>]>]>, t.IntersectionC<[t.TypeC<{
139
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
140
+ }>]>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
145
141
  type: t.LiteralC<"link">;
146
142
  value: t.StringC;
147
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
143
+ }>, t.PartialC<{
144
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
145
+ }>]>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
148
146
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
149
147
  object: t.StringC;
150
148
  hoverTooltip: t.BooleanC;
151
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
149
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
152
150
  }>]>]>, t.IntersectionC<[t.TypeC<{
153
151
  type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
154
152
  value: t.ArrayC<t.StringC>;
@@ -156,7 +154,7 @@ export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
156
154
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
157
155
  object: t.StringC;
158
156
  hoverTooltip: t.BooleanC;
159
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
157
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
160
158
  }>]>]>, t.IntersectionC<[t.TypeC<{
161
159
  type: t.LiteralC<"builtin">;
162
160
  value: t.StringC;
@@ -164,7 +162,7 @@ export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
164
162
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
165
163
  object: t.StringC;
166
164
  hoverTooltip: t.BooleanC;
167
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
165
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
168
166
  }>]>]>, t.IntersectionC<[t.TypeC<{
169
167
  type: t.LiteralC<"webhook">;
170
168
  value: t.StringC;
@@ -172,7 +170,7 @@ export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
172
170
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
173
171
  object: t.StringC;
174
172
  hoverTooltip: t.BooleanC;
175
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
173
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
176
174
  }>]>]>, t.IntersectionC<[t.TypeC<{
177
175
  type: t.LiteralC<"script">;
178
176
  value: t.StringC;
@@ -180,7 +178,7 @@ export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
180
178
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
181
179
  object: t.StringC;
182
180
  hoverTooltip: t.BooleanC;
183
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
181
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
184
182
  }>]>]>, t.IntersectionC<[t.TypeC<{
185
183
  type: t.LiteralC<"request">;
186
184
  value: t.IntersectionC<[t.TypeC<{
@@ -197,7 +195,7 @@ export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
197
195
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
198
196
  object: t.StringC;
199
197
  hoverTooltip: t.BooleanC;
200
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
198
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
201
199
  }>]>]>, t.IntersectionC<[t.TypeC<{
202
200
  type: t.LiteralC<"appcues">;
203
201
  value: t.StringC;
@@ -205,7 +203,7 @@ export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
205
203
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
206
204
  object: t.StringC;
207
205
  hoverTooltip: t.BooleanC;
208
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
206
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
209
207
  }>]>]>, t.IntersectionC<[t.TypeC<{
210
208
  type: t.LiteralC<"video">;
211
209
  value: t.StringC;
@@ -213,13 +211,15 @@ export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
213
211
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
214
212
  object: t.StringC;
215
213
  hoverTooltip: t.BooleanC;
216
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
217
- }>]>]>, t.IntersectionC<[t.TypeC<{
214
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
215
+ }>]>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
218
216
  type: t.LiteralC<"helpdoc">;
219
217
  value: t.StringC;
220
- }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
218
+ }>, t.PartialC<{
219
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.LiteralC<"help_explorer">, t.UndefinedC]>;
220
+ }>]>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
221
221
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
222
222
  object: t.StringC;
223
223
  hoverTooltip: t.BooleanC;
224
- operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
224
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"help_explorer">, t.LiteralC<"blank">, t.UndefinedC]>;
225
225
  }>]>]>]>;
@@ -7,4 +7,5 @@ export declare const EndUserV: t.TypeC<{
7
7
  has_opened: t.BooleanC;
8
8
  hotkeys_debug: t.BooleanC;
9
9
  hmac: t.UnionC<[t.StringC, t.UndefinedC]>;
10
+ identifier: t.StringC;
10
11
  }>;
@@ -0,0 +1,26 @@
1
+ import * as t from 'io-ts';
2
+ export declare const CommandGoal: t.TypeC<{
3
+ type: t.LiteralC<"command_executed">;
4
+ meta: t.TypeC<{
5
+ command: t.StringC;
6
+ }>;
7
+ }>;
8
+ export declare const PageVisitedGoal: t.TypeC<{
9
+ type: t.LiteralC<"page_visited">;
10
+ value: t.StringC;
11
+ }>;
12
+ export declare const ElementClickedGoal: t.TypeC<{
13
+ type: t.LiteralC<"element_clicked">;
14
+ value: t.StringC;
15
+ }>;
16
+ export declare const ConditionsMetGoal: t.TypeC<{
17
+ type: t.LiteralC<"conditions_met">;
18
+ expression: t.Type<import("./rules").RuleExpression, import("./rules").RuleExpression, unknown>;
19
+ }>;
20
+ export declare const CTAClickedGoal: t.TypeC<{
21
+ type: t.LiteralC<"cta_clicked">;
22
+ }>;
23
+ export declare const EventTrackedGoal: t.TypeC<{
24
+ type: t.LiteralC<"event_tracked">;
25
+ event: t.StringC;
26
+ }>;
@@ -1,49 +1,56 @@
1
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"];
2
+ export declare const operators: readonly ["is", "isNot", "isTrue", "isFalse", "isTruthy", "isFalsy", "startsWith", "endsWith", "includes", "doesNotInclude", "matchesRegex", "isGreaterThan", "isLessThan", "isBefore", "isAfter", "isDefined", "isNotDefined", "classnameOnPage", "idOnPage", "selectorOnPage"];
3
3
  declare const OperatorV: t.KeyofC<{
4
4
  includes: null;
5
5
  endsWith: null;
6
6
  startsWith: null;
7
7
  is: null;
8
- isTruthy: null;
9
- isFalsy: null;
10
8
  isNot: null;
11
9
  isTrue: null;
12
10
  isFalse: null;
11
+ isTruthy: null;
12
+ isFalsy: null;
13
13
  doesNotInclude: null;
14
14
  matchesRegex: null;
15
15
  isGreaterThan: null;
16
16
  isLessThan: null;
17
+ isBefore: null;
18
+ isAfter: null;
17
19
  isDefined: null;
18
20
  isNotDefined: null;
19
21
  classnameOnPage: null;
20
22
  idOnPage: null;
23
+ selectorOnPage: null;
21
24
  }>;
22
25
  export declare const ConditionV: t.IntersectionC<[t.TypeC<{
23
- type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
26
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
24
27
  operator: t.KeyofC<{
25
28
  includes: null;
26
29
  endsWith: null;
27
30
  startsWith: null;
28
31
  is: null;
29
- isTruthy: null;
30
- isFalsy: null;
31
32
  isNot: null;
32
33
  isTrue: null;
33
34
  isFalse: null;
35
+ isTruthy: null;
36
+ isFalsy: null;
34
37
  doesNotInclude: null;
35
38
  matchesRegex: null;
36
39
  isGreaterThan: null;
37
40
  isLessThan: null;
41
+ isBefore: null;
42
+ isAfter: null;
38
43
  isDefined: null;
39
44
  isNotDefined: null;
40
45
  classnameOnPage: null;
41
46
  idOnPage: null;
47
+ selectorOnPage: null;
42
48
  }>;
43
49
  }>, t.PartialC<{
44
50
  field: t.StringC;
45
51
  value: t.StringC;
46
52
  reason: t.StringC;
53
+ rule_id: t.UnionC<[t.NumberC, t.StringC]>;
47
54
  }>]>;
48
55
  export declare const getConditions: (expr: RuleExpression) => ExpressionCondition[];
49
56
  export declare const canonicalize: (expr: RuleExpression) => RuleExpression;
@@ -75,7 +82,7 @@ export declare const RuleExpressionTrue: t.TypeOf<typeof RuleExpressionLiteralV>
75
82
  export declare const RuleExpressionFalse: t.TypeOf<typeof RuleExpressionLiteralV>;
76
83
  export declare const NamedRuleReferenceV: t.IntersectionC<[t.TypeC<{
77
84
  type: t.LiteralC<"named_rule">;
78
- rule_id: t.NumberC;
85
+ rule_id: t.UnionC<[t.NumberC, t.StringC]>;
79
86
  }>, t.PartialC<{
80
87
  reason: t.StringC;
81
88
  }>]>;
@@ -86,32 +93,37 @@ export declare const RecommendationRuleAlwaysV: t.IntersectionC<[t.TypeC<{
86
93
  field: t.UnionC<[t.UndefinedC, t.NullC]>;
87
94
  value: t.UnionC<[t.UndefinedC, t.NullC]>;
88
95
  reason: t.UnionC<[t.UndefinedC, t.NullC]>;
96
+ rule_id: t.UnionC<[t.NumberC, t.StringC]>;
89
97
  }>]>;
90
98
  export declare const AvailabilityRuleV: t.IntersectionC<[t.TypeC<{
91
- type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
99
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
92
100
  operator: t.KeyofC<{
93
101
  includes: null;
94
102
  endsWith: null;
95
103
  startsWith: null;
96
104
  is: null;
97
- isTruthy: null;
98
- isFalsy: null;
99
105
  isNot: null;
100
106
  isTrue: null;
101
107
  isFalse: null;
108
+ isTruthy: null;
109
+ isFalsy: null;
102
110
  doesNotInclude: null;
103
111
  matchesRegex: null;
104
112
  isGreaterThan: null;
105
113
  isLessThan: null;
114
+ isBefore: null;
115
+ isAfter: null;
106
116
  isDefined: null;
107
117
  isNotDefined: null;
108
118
  classnameOnPage: null;
109
119
  idOnPage: null;
120
+ selectorOnPage: null;
110
121
  }>;
111
122
  }>, t.PartialC<{
112
123
  field: t.StringC;
113
124
  value: t.StringC;
114
125
  reason: t.StringC;
126
+ rule_id: t.UnionC<[t.NumberC, t.StringC]>;
115
127
  }>]>;
116
128
  export declare const RecommendationRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
117
129
  type: t.LiteralC<"always">;
@@ -120,60 +132,69 @@ export declare const RecommendationRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
120
132
  field: t.UnionC<[t.UndefinedC, t.NullC]>;
121
133
  value: t.UnionC<[t.UndefinedC, t.NullC]>;
122
134
  reason: t.UnionC<[t.UndefinedC, t.NullC]>;
135
+ rule_id: t.UnionC<[t.NumberC, t.StringC]>;
123
136
  }>]>, t.IntersectionC<[t.TypeC<{
124
- type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
137
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
125
138
  operator: t.KeyofC<{
126
139
  includes: null;
127
140
  endsWith: null;
128
141
  startsWith: null;
129
142
  is: null;
130
- isTruthy: null;
131
- isFalsy: null;
132
143
  isNot: null;
133
144
  isTrue: null;
134
145
  isFalse: null;
146
+ isTruthy: null;
147
+ isFalsy: null;
135
148
  doesNotInclude: null;
136
149
  matchesRegex: null;
137
150
  isGreaterThan: null;
138
151
  isLessThan: null;
152
+ isBefore: null;
153
+ isAfter: null;
139
154
  isDefined: null;
140
155
  isNotDefined: null;
141
156
  classnameOnPage: null;
142
157
  idOnPage: null;
158
+ selectorOnPage: null;
143
159
  }>;
144
160
  }>, t.PartialC<{
145
161
  field: t.StringC;
146
162
  value: t.StringC;
147
163
  reason: t.StringC;
164
+ rule_id: t.UnionC<[t.NumberC, t.StringC]>;
148
165
  }>]>]>;
149
166
  export declare const EditorAvailabilityRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
150
- type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
167
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
151
168
  operator: t.KeyofC<{
152
169
  includes: null;
153
170
  endsWith: null;
154
171
  startsWith: null;
155
172
  is: null;
156
- isTruthy: null;
157
- isFalsy: null;
158
173
  isNot: null;
159
174
  isTrue: null;
160
175
  isFalse: null;
176
+ isTruthy: null;
177
+ isFalsy: null;
161
178
  doesNotInclude: null;
162
179
  matchesRegex: null;
163
180
  isGreaterThan: null;
164
181
  isLessThan: null;
182
+ isBefore: null;
183
+ isAfter: null;
165
184
  isDefined: null;
166
185
  isNotDefined: null;
167
186
  classnameOnPage: null;
168
187
  idOnPage: null;
188
+ selectorOnPage: null;
169
189
  }>;
170
190
  }>, t.PartialC<{
171
191
  field: t.StringC;
172
192
  value: t.StringC;
173
193
  reason: t.StringC;
194
+ rule_id: t.UnionC<[t.NumberC, t.StringC]>;
174
195
  }>]>, t.IntersectionC<[t.TypeC<{
175
196
  type: t.LiteralC<"named_rule">;
176
- rule_id: t.NumberC;
197
+ rule_id: t.UnionC<[t.NumberC, t.StringC]>;
177
198
  }>, t.PartialC<{
178
199
  reason: t.StringC;
179
200
  }>]>]>;
@@ -184,39 +205,44 @@ export declare const EditorRecommendationRuleV: t.UnionC<[t.UnionC<[t.Intersecti
184
205
  field: t.UnionC<[t.UndefinedC, t.NullC]>;
185
206
  value: t.UnionC<[t.UndefinedC, t.NullC]>;
186
207
  reason: t.UnionC<[t.UndefinedC, t.NullC]>;
208
+ rule_id: t.UnionC<[t.NumberC, t.StringC]>;
187
209
  }>]>, t.IntersectionC<[t.TypeC<{
188
- type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
210
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">]>;
189
211
  operator: t.KeyofC<{
190
212
  includes: null;
191
213
  endsWith: null;
192
214
  startsWith: null;
193
215
  is: null;
194
- isTruthy: null;
195
- isFalsy: null;
196
216
  isNot: null;
197
217
  isTrue: null;
198
218
  isFalse: null;
219
+ isTruthy: null;
220
+ isFalsy: null;
199
221
  doesNotInclude: null;
200
222
  matchesRegex: null;
201
223
  isGreaterThan: null;
202
224
  isLessThan: null;
225
+ isBefore: null;
226
+ isAfter: null;
203
227
  isDefined: null;
204
228
  isNotDefined: null;
205
229
  classnameOnPage: null;
206
230
  idOnPage: null;
231
+ selectorOnPage: null;
207
232
  }>;
208
233
  }>, t.PartialC<{
209
234
  field: t.StringC;
210
235
  value: t.StringC;
211
236
  reason: t.StringC;
237
+ rule_id: t.UnionC<[t.NumberC, t.StringC]>;
212
238
  }>]>]>, t.IntersectionC<[t.TypeC<{
213
239
  type: t.LiteralC<"named_rule">;
214
- rule_id: t.NumberC;
240
+ rule_id: t.UnionC<[t.NumberC, t.StringC]>;
215
241
  }>, t.PartialC<{
216
242
  reason: t.StringC;
217
243
  }>]>]>;
218
244
  export declare const NamedRuleV: t.TypeC<{
219
- id: t.NumberC;
245
+ id: t.UnionC<[t.NumberC, t.StringC]>;
220
246
  name: t.StringC;
221
247
  expression: t.Type<RuleExpression, RuleExpression, unknown>;
222
248
  }>;
@@ -0,0 +1,7 @@
1
+ import * as t from 'io-ts';
2
+ export declare const GeneratedTagsV: t.PartialC<{
3
+ automated: t.UnionC<[t.ArrayC<t.StringC>, t.NullC]>;
4
+ manual: t.UnionC<[t.ArrayC<t.StringC>, t.NullC]>;
5
+ deny: t.UnionC<[t.ArrayC<t.StringC>, t.NullC]>;
6
+ }>;
7
+ export declare type IGeneratedTags = t.TypeOf<typeof GeneratedTagsV>;
@@ -18,23 +18,4 @@ export declare class HistoryEvent {
18
18
  sha1: string;
19
19
  version_num: number;
20
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
21
  }