commandbar 1.11.0 → 1.13.0
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.
- package/build/commandbar/src/shared/services/analytics/EventHandler.d.ts +2 -2
- package/build/commandbar/src/shared/services/analytics/types.d.ts +2 -2
- package/build/commandbar/src/shared/services/analytics/v2/client.d.ts +2 -3
- package/build/commandbar/src/shared/services/analytics/v2/schema.d.ts +1 -1
- package/build/commandbar-js/src/index.d.ts +2 -2
- package/build/commandbar-js/src/index.js +1 -1
- package/build/commandbar-js/src/snippet.d.ts +1 -2
- package/build/internal/src/client/CommandBarClientSDK.d.ts +2 -1
- package/build/internal/src/client/CommandBarSDK.d.ts +3 -3
- package/build/internal/src/middleware/CommandFromClientV.d.ts +3 -0
- package/build/internal/src/middleware/OrganizationV.d.ts +58 -4
- package/build/internal/src/middleware/additionalResource.d.ts +36 -9
- package/build/internal/src/middleware/api.d.ts +8 -0
- package/build/internal/src/middleware/chat.d.ts +439 -76
- package/build/internal/src/middleware/checklist.d.ts +48 -10
- package/build/internal/src/middleware/command.d.ts +259 -46
- package/build/internal/src/middleware/endUser.d.ts +1 -1
- package/build/internal/src/middleware/experienceTemplate.d.ts +72 -16
- package/build/internal/src/middleware/experiencesSearch.d.ts +77 -14
- package/build/internal/src/middleware/flags.d.ts +4 -5
- package/build/internal/src/middleware/helpDocsSearch.d.ts +55 -10
- package/build/internal/src/middleware/helpHub.d.ts +1 -0
- package/build/internal/src/middleware/helpers/actions.d.ts +21 -6
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +14 -2
- package/build/internal/src/middleware/helpers/rules.d.ts +2 -0
- package/build/internal/src/middleware/keyword.d.ts +82 -0
- package/build/internal/src/middleware/network.d.ts +2 -2
- package/build/internal/src/middleware/nudge.d.ts +104 -24
- package/build/internal/src/middleware/organization.d.ts +161 -16
- package/build/internal/src/middleware/organizationSettings.d.ts +100 -8
- package/build/internal/src/middleware/recommendationSet.d.ts +36 -9
- package/build/internal/src/middleware/theme.d.ts +74 -0
- package/build/internal/src/middleware/types.d.ts +10 -2
- package/build/internal/src/middleware/workflow.d.ts +16 -0
- package/build/internal/src/util/sentry.d.ts +2 -2
- package/package.json +4 -2
- package/src/index.ts +2 -2
- package/src/init.ts +5 -1
- package/src/snippet.ts +2 -10
@@ -36,6 +36,9 @@ export declare const HelpDocHitV: t.TypeC<{
|
|
36
36
|
value: string;
|
37
37
|
} & {
|
38
38
|
operation?: "self" | "router" | "blank" | undefined;
|
39
|
+
meta?: {
|
40
|
+
command: string;
|
41
|
+
} | undefined;
|
39
42
|
} & {} & {
|
40
43
|
commandType?: "object" | "help" | "independent" | undefined;
|
41
44
|
object?: string | undefined;
|
@@ -184,10 +187,13 @@ export declare const HelpDocHitV: t.TypeC<{
|
|
184
187
|
value: string;
|
185
188
|
} & {
|
186
189
|
operation?: "self" | "router" | "blank" | undefined;
|
190
|
+
meta?: {
|
191
|
+
command: string;
|
192
|
+
} | undefined;
|
187
193
|
}) | {
|
188
194
|
type: "open_chat";
|
189
195
|
meta: {
|
190
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
196
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
191
197
|
};
|
192
198
|
} | {
|
193
199
|
type: "dismiss";
|
@@ -468,10 +474,13 @@ export declare const HelpDocHitV: t.TypeC<{
|
|
468
474
|
value: string;
|
469
475
|
} & {
|
470
476
|
operation?: "self" | "router" | "blank" | undefined;
|
477
|
+
meta?: {
|
478
|
+
command: string;
|
479
|
+
} | undefined;
|
471
480
|
}) | {
|
472
481
|
type: "open_chat";
|
473
482
|
meta: {
|
474
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
483
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
475
484
|
};
|
476
485
|
} | {
|
477
486
|
type: "dismiss";
|
@@ -565,6 +574,9 @@ export declare const HelpDocHitV: t.TypeC<{
|
|
565
574
|
value: string;
|
566
575
|
} & {
|
567
576
|
operation?: "self" | "router" | "blank" | undefined;
|
577
|
+
meta?: {
|
578
|
+
command: string;
|
579
|
+
} | undefined;
|
568
580
|
} & {} & {
|
569
581
|
commandType?: "object" | "help" | "independent" | undefined;
|
570
582
|
object?: string | undefined;
|
@@ -713,10 +725,13 @@ export declare const HelpDocHitV: t.TypeC<{
|
|
713
725
|
value: string;
|
714
726
|
} & {
|
715
727
|
operation?: "self" | "router" | "blank" | undefined;
|
728
|
+
meta?: {
|
729
|
+
command: string;
|
730
|
+
} | undefined;
|
716
731
|
}) | {
|
717
732
|
type: "open_chat";
|
718
733
|
meta: {
|
719
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
734
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
720
735
|
};
|
721
736
|
} | {
|
722
737
|
type: "dismiss";
|
@@ -997,10 +1012,13 @@ export declare const HelpDocHitV: t.TypeC<{
|
|
997
1012
|
value: string;
|
998
1013
|
} & {
|
999
1014
|
operation?: "self" | "router" | "blank" | undefined;
|
1015
|
+
meta?: {
|
1016
|
+
command: string;
|
1017
|
+
} | undefined;
|
1000
1018
|
}) | {
|
1001
1019
|
type: "open_chat";
|
1002
1020
|
meta: {
|
1003
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
1021
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
1004
1022
|
};
|
1005
1023
|
} | {
|
1006
1024
|
type: "dismiss";
|
@@ -1101,6 +1119,9 @@ export declare const SearchHelpDocsResponseV: t.TypeC<{
|
|
1101
1119
|
value: string;
|
1102
1120
|
} & {
|
1103
1121
|
operation?: "self" | "router" | "blank" | undefined;
|
1122
|
+
meta?: {
|
1123
|
+
command: string;
|
1124
|
+
} | undefined;
|
1104
1125
|
} & {} & {
|
1105
1126
|
commandType?: "object" | "help" | "independent" | undefined;
|
1106
1127
|
object?: string | undefined;
|
@@ -1249,10 +1270,13 @@ export declare const SearchHelpDocsResponseV: t.TypeC<{
|
|
1249
1270
|
value: string;
|
1250
1271
|
} & {
|
1251
1272
|
operation?: "self" | "router" | "blank" | undefined;
|
1273
|
+
meta?: {
|
1274
|
+
command: string;
|
1275
|
+
} | undefined;
|
1252
1276
|
}) | {
|
1253
1277
|
type: "open_chat";
|
1254
1278
|
meta: {
|
1255
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
1279
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
1256
1280
|
};
|
1257
1281
|
} | {
|
1258
1282
|
type: "dismiss";
|
@@ -1533,10 +1557,13 @@ export declare const SearchHelpDocsResponseV: t.TypeC<{
|
|
1533
1557
|
value: string;
|
1534
1558
|
} & {
|
1535
1559
|
operation?: "self" | "router" | "blank" | undefined;
|
1560
|
+
meta?: {
|
1561
|
+
command: string;
|
1562
|
+
} | undefined;
|
1536
1563
|
}) | {
|
1537
1564
|
type: "open_chat";
|
1538
1565
|
meta: {
|
1539
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
1566
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
1540
1567
|
};
|
1541
1568
|
} | {
|
1542
1569
|
type: "dismiss";
|
@@ -1630,6 +1657,9 @@ export declare const SearchHelpDocsResponseV: t.TypeC<{
|
|
1630
1657
|
value: string;
|
1631
1658
|
} & {
|
1632
1659
|
operation?: "self" | "router" | "blank" | undefined;
|
1660
|
+
meta?: {
|
1661
|
+
command: string;
|
1662
|
+
} | undefined;
|
1633
1663
|
} & {} & {
|
1634
1664
|
commandType?: "object" | "help" | "independent" | undefined;
|
1635
1665
|
object?: string | undefined;
|
@@ -1778,10 +1808,13 @@ export declare const SearchHelpDocsResponseV: t.TypeC<{
|
|
1778
1808
|
value: string;
|
1779
1809
|
} & {
|
1780
1810
|
operation?: "self" | "router" | "blank" | undefined;
|
1811
|
+
meta?: {
|
1812
|
+
command: string;
|
1813
|
+
} | undefined;
|
1781
1814
|
}) | {
|
1782
1815
|
type: "open_chat";
|
1783
1816
|
meta: {
|
1784
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
1817
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
1785
1818
|
};
|
1786
1819
|
} | {
|
1787
1820
|
type: "dismiss";
|
@@ -2062,10 +2095,13 @@ export declare const SearchHelpDocsResponseV: t.TypeC<{
|
|
2062
2095
|
value: string;
|
2063
2096
|
} & {
|
2064
2097
|
operation?: "self" | "router" | "blank" | undefined;
|
2098
|
+
meta?: {
|
2099
|
+
command: string;
|
2100
|
+
} | undefined;
|
2065
2101
|
}) | {
|
2066
2102
|
type: "open_chat";
|
2067
2103
|
meta: {
|
2068
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
2104
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
2069
2105
|
};
|
2070
2106
|
} | {
|
2071
2107
|
type: "dismiss";
|
@@ -2178,6 +2214,9 @@ export declare class HelpDocsSearch {
|
|
2178
2214
|
value: string;
|
2179
2215
|
} & {
|
2180
2216
|
operation?: "self" | "router" | "blank" | undefined;
|
2217
|
+
meta?: {
|
2218
|
+
command: string;
|
2219
|
+
} | undefined;
|
2181
2220
|
} & {} & {
|
2182
2221
|
commandType?: "object" | "help" | "independent" | undefined;
|
2183
2222
|
object?: string | undefined;
|
@@ -2326,10 +2365,13 @@ export declare class HelpDocsSearch {
|
|
2326
2365
|
value: string;
|
2327
2366
|
} & {
|
2328
2367
|
operation?: "self" | "router" | "blank" | undefined;
|
2368
|
+
meta?: {
|
2369
|
+
command: string;
|
2370
|
+
} | undefined;
|
2329
2371
|
}) | {
|
2330
2372
|
type: "open_chat";
|
2331
2373
|
meta: {
|
2332
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
2374
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
2333
2375
|
};
|
2334
2376
|
} | {
|
2335
2377
|
type: "dismiss";
|
@@ -2610,10 +2652,13 @@ export declare class HelpDocsSearch {
|
|
2610
2652
|
value: string;
|
2611
2653
|
} & {
|
2612
2654
|
operation?: "self" | "router" | "blank" | undefined;
|
2655
|
+
meta?: {
|
2656
|
+
command: string;
|
2657
|
+
} | undefined;
|
2613
2658
|
}) | {
|
2614
2659
|
type: "open_chat";
|
2615
2660
|
meta: {
|
2616
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
2661
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
2617
2662
|
};
|
2618
2663
|
} | {
|
2619
2664
|
type: "dismiss";
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { DeviceType } from '../util/operatingSystem';
|
2
2
|
import * as t from 'io-ts';
|
3
3
|
import { IHelpHubLauncherSettingsType, IOrganizationType } from './types';
|
4
|
+
export declare const HelpHubSearchActionsV: t.UnionC<[t.LiteralC<"search">, t.LiteralC<"ask">]>;
|
4
5
|
export declare const HelpHubLauncherPositionsV: t.UnionC<[t.LiteralC<"topRight">, t.LiteralC<"topLeft">, t.LiteralC<"bottomRight">, t.LiteralC<"bottomLeft">]>;
|
5
6
|
export declare const HelpHubLauncherTypesV: t.UnionC<[t.LiteralC<"bookOpen">, t.LiteralC<"graduationHat">, t.LiteralC<"bookClosed">, t.LiteralC<"bookmark">, t.LiteralC<"chatCircle">, t.LiteralC<"askAI">, t.LiteralC<"custom">, t.LiteralC<"none">]>;
|
6
7
|
export declare const HelpHubLauncherSettingsV: t.TypeC<{
|
@@ -25,12 +25,15 @@ export declare const LinkAction: t.IntersectionC<[t.TypeC<{
|
|
25
25
|
value: t.StringC;
|
26
26
|
}>, t.PartialC<{
|
27
27
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
28
|
+
meta: t.TypeC<{
|
29
|
+
command: t.StringC;
|
30
|
+
}>;
|
28
31
|
}>]>;
|
29
|
-
export declare const OpenChatActionTypeV: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
|
32
|
+
export declare const OpenChatActionTypeV: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"pylon">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
|
30
33
|
export declare const OpenChatActionV: t.TypeC<{
|
31
34
|
type: t.LiteralC<"open_chat">;
|
32
35
|
meta: t.TypeC<{
|
33
|
-
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
|
36
|
+
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"pylon">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
|
34
37
|
}>;
|
35
38
|
}>;
|
36
39
|
export declare const DismissAction: t.TypeC<{
|
@@ -128,10 +131,13 @@ export declare const ActionV: t.UnionC<[t.TypeC<{
|
|
128
131
|
value: t.StringC;
|
129
132
|
}>, t.PartialC<{
|
130
133
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
134
|
+
meta: t.TypeC<{
|
135
|
+
command: t.StringC;
|
136
|
+
}>;
|
131
137
|
}>]>, t.TypeC<{
|
132
138
|
type: t.LiteralC<"open_chat">;
|
133
139
|
meta: t.TypeC<{
|
134
|
-
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
|
140
|
+
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"pylon">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
|
135
141
|
}>;
|
136
142
|
}>, t.TypeC<{
|
137
143
|
type: t.LiteralC<"dismiss">;
|
@@ -180,10 +186,13 @@ export declare const LabeledActionV: t.TypeC<{
|
|
180
186
|
value: t.StringC;
|
181
187
|
}>, t.PartialC<{
|
182
188
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
189
|
+
meta: t.TypeC<{
|
190
|
+
command: t.StringC;
|
191
|
+
}>;
|
183
192
|
}>]>, t.TypeC<{
|
184
193
|
type: t.LiteralC<"open_chat">;
|
185
194
|
meta: t.TypeC<{
|
186
|
-
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
|
195
|
+
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"pylon">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
|
187
196
|
}>;
|
188
197
|
}>, t.TypeC<{
|
189
198
|
type: t.LiteralC<"dismiss">;
|
@@ -231,10 +240,13 @@ export declare const isAction: (o: string | number | LabeledAction) => o is {
|
|
231
240
|
value: string;
|
232
241
|
} & {
|
233
242
|
operation?: "self" | "router" | "blank" | undefined;
|
243
|
+
meta?: {
|
244
|
+
command: string;
|
245
|
+
} | undefined;
|
234
246
|
}) | {
|
235
247
|
type: "open_chat";
|
236
248
|
meta: {
|
237
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
249
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
238
250
|
};
|
239
251
|
} | {
|
240
252
|
type: "dismiss";
|
@@ -309,10 +321,13 @@ export declare const TriggerAction: t.TypeC<{
|
|
309
321
|
value: t.StringC;
|
310
322
|
}>, t.PartialC<{
|
311
323
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
324
|
+
meta: t.TypeC<{
|
325
|
+
command: t.StringC;
|
326
|
+
}>;
|
312
327
|
}>]>, t.TypeC<{
|
313
328
|
type: t.LiteralC<"open_chat">;
|
314
329
|
meta: t.TypeC<{
|
315
|
-
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
|
330
|
+
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"pylon">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
|
316
331
|
}>;
|
317
332
|
}>, t.TypeC<{
|
318
333
|
type: t.LiteralC<"dismiss">;
|
@@ -33,6 +33,9 @@ export declare const LinkTemplateV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
33
33
|
value: t.StringC;
|
34
34
|
}>, t.PartialC<{
|
35
35
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
36
|
+
meta: t.TypeC<{
|
37
|
+
command: t.StringC;
|
38
|
+
}>;
|
36
39
|
}>]>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
|
37
40
|
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
|
38
41
|
object: t.StringC;
|
@@ -169,10 +172,13 @@ export declare const TriggerTemplateV: t.IntersectionC<[t.TypeC<{
|
|
169
172
|
value: t.StringC;
|
170
173
|
}>, t.PartialC<{
|
171
174
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
175
|
+
meta: t.TypeC<{
|
176
|
+
command: t.StringC;
|
177
|
+
}>;
|
172
178
|
}>]>, t.TypeC<{
|
173
179
|
type: t.LiteralC<"open_chat">;
|
174
180
|
meta: t.TypeC<{
|
175
|
-
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
|
181
|
+
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"pylon">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
|
176
182
|
}>;
|
177
183
|
}>, t.TypeC<{
|
178
184
|
type: t.LiteralC<"dismiss">;
|
@@ -229,6 +235,9 @@ export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
|
229
235
|
value: t.StringC;
|
230
236
|
}>, t.PartialC<{
|
231
237
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
238
|
+
meta: t.TypeC<{
|
239
|
+
command: t.StringC;
|
240
|
+
}>;
|
232
241
|
}>]>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
|
233
242
|
commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
|
234
243
|
object: t.StringC;
|
@@ -355,10 +364,13 @@ export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
|
|
355
364
|
value: t.StringC;
|
356
365
|
}>, t.PartialC<{
|
357
366
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
367
|
+
meta: t.TypeC<{
|
368
|
+
command: t.StringC;
|
369
|
+
}>;
|
358
370
|
}>]>, t.TypeC<{
|
359
371
|
type: t.LiteralC<"open_chat">;
|
360
372
|
meta: t.TypeC<{
|
361
|
-
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
|
373
|
+
type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"pylon">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
|
362
374
|
}>;
|
363
375
|
}>, t.TypeC<{
|
364
376
|
type: t.LiteralC<"dismiss">;
|
@@ -504,6 +504,7 @@ export declare const NamedRuleBaseV: t.TypeC<{
|
|
504
504
|
id: t.UnionC<[t.NumberC, t.StringC]>;
|
505
505
|
name: t.StringC;
|
506
506
|
expression: t.Type<RuleExpression, RuleExpression, unknown>;
|
507
|
+
created: t.UnionC<[t.StringC, t.UndefinedC]>;
|
507
508
|
}>;
|
508
509
|
declare const NamedRuleAdditionalV: t.TypeC<{
|
509
510
|
is_audience: t.BooleanC;
|
@@ -513,6 +514,7 @@ export declare const NamedRuleV: t.IntersectionC<[t.TypeC<{
|
|
513
514
|
id: t.UnionC<[t.NumberC, t.StringC]>;
|
514
515
|
name: t.StringC;
|
515
516
|
expression: t.Type<RuleExpression, RuleExpression, unknown>;
|
517
|
+
created: t.UnionC<[t.StringC, t.UndefinedC]>;
|
516
518
|
}>, t.TypeC<{
|
517
519
|
is_audience: t.BooleanC;
|
518
520
|
}>]>;
|
@@ -0,0 +1,82 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
import { GenericBatchRequest } from './generics';
|
3
|
+
export declare const KeywordV: t.IntersectionC<[t.TypeC<{
|
4
|
+
id: t.NumberC;
|
5
|
+
keyword: t.StringC;
|
6
|
+
definition: t.StringC;
|
7
|
+
is_live: t.BooleanC;
|
8
|
+
}>, t.PartialC<{
|
9
|
+
modified: t.StringC;
|
10
|
+
}>]>;
|
11
|
+
export declare const BatchEditorKeywordResponseV: t.TypeC<{
|
12
|
+
batch: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
13
|
+
id: t.NumberC;
|
14
|
+
keyword: t.StringC;
|
15
|
+
definition: t.StringC;
|
16
|
+
is_live: t.BooleanC;
|
17
|
+
}>, t.PartialC<{
|
18
|
+
modified: t.StringC;
|
19
|
+
}>]>>;
|
20
|
+
}>;
|
21
|
+
export declare class Keyword {
|
22
|
+
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
|
23
|
+
id: number;
|
24
|
+
keyword: string;
|
25
|
+
definition: string;
|
26
|
+
is_live: boolean;
|
27
|
+
} & {
|
28
|
+
modified?: string | undefined;
|
29
|
+
})[]>;
|
30
|
+
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
31
|
+
onSuccess?: (() => void) | undefined;
|
32
|
+
onError?: ((err: string) => void) | undefined;
|
33
|
+
} | undefined) => Promise<{
|
34
|
+
id: number;
|
35
|
+
keyword: string;
|
36
|
+
definition: string;
|
37
|
+
is_live: boolean;
|
38
|
+
} & {
|
39
|
+
modified?: string | undefined;
|
40
|
+
}>;
|
41
|
+
static update: (object: {
|
42
|
+
id: number;
|
43
|
+
keyword: string;
|
44
|
+
definition: string;
|
45
|
+
is_live: boolean;
|
46
|
+
} & {
|
47
|
+
modified?: string | undefined;
|
48
|
+
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
49
|
+
id: number;
|
50
|
+
keyword: string;
|
51
|
+
definition: string;
|
52
|
+
is_live: boolean;
|
53
|
+
} & {
|
54
|
+
modified?: string | undefined;
|
55
|
+
}>;
|
56
|
+
static create: (object: {
|
57
|
+
id: number;
|
58
|
+
keyword: string;
|
59
|
+
definition: string;
|
60
|
+
is_live: boolean;
|
61
|
+
} & {
|
62
|
+
modified?: string | undefined;
|
63
|
+
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
64
|
+
id: number;
|
65
|
+
keyword: string;
|
66
|
+
definition: string;
|
67
|
+
is_live: boolean;
|
68
|
+
} & {
|
69
|
+
modified?: string | undefined;
|
70
|
+
}>;
|
71
|
+
static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
72
|
+
static batch: (request: t.TypeOf<typeof GenericBatchRequest>) => Promise<{
|
73
|
+
batch: ({
|
74
|
+
id: number;
|
75
|
+
keyword: string;
|
76
|
+
definition: string;
|
77
|
+
is_live: boolean;
|
78
|
+
} & {
|
79
|
+
modified?: string | undefined;
|
80
|
+
})[];
|
81
|
+
}>;
|
82
|
+
}
|
@@ -12,8 +12,8 @@ export type Response<T> = {
|
|
12
12
|
statusText: string;
|
13
13
|
headers: Record<string, string>;
|
14
14
|
};
|
15
|
-
export declare const put: <T = any>(url: string, data?: string | object | undefined, options?: FetchOptions) => Promise<Response<T>>;
|
16
|
-
export declare const post: <T = any>(url: string, data?: string | object | undefined, options?: FetchOptions) => Promise<Response<T>>;
|
15
|
+
export declare const put: <T = any>(url: string, data?: string | object | Blob | undefined, options?: FetchOptions) => Promise<Response<T>>;
|
16
|
+
export declare const post: <T = any>(url: string, data?: string | object | Blob | undefined, options?: FetchOptions) => Promise<Response<T>>;
|
17
17
|
export declare const get: <T = any>(url: string, options?: FetchOptions) => Promise<Response<T>>;
|
18
18
|
export declare const patch: <T = any>(url: string, data?: string | object | undefined, options?: FetchOptions) => Promise<Response<T>>;
|
19
19
|
export declare const del: <T = any>(url: string, data?: string | object | undefined, options?: FetchOptions) => Promise<Response<T>>;
|