@telia-ace/knowledge-widget-bot-provider 0.0.1-alpha.46 → 0.0.1-alpha.49

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 (139) hide show
  1. package/LICENSE.txt +5 -5
  2. package/README.md +12 -12
  3. package/{lib-esm → dist}/client/chat.client.d.ts +16 -16
  4. package/{lib → dist}/client/contact-method.client.d.ts +34 -34
  5. package/{lib → dist}/client/http.client.d.ts +26 -26
  6. package/{lib → dist}/client/middleware.client.d.ts +14 -14
  7. package/dist/components/feedback-list.d.ts +8 -0
  8. package/dist/components/no-good-alternative.d.ts +6 -0
  9. package/dist/contact-method.js +102 -0
  10. package/dist/contact-method.js.map +1 -0
  11. package/{lib-esm → dist}/contract/custom-component/contact-method-item.d.ts +9 -9
  12. package/{lib-esm → dist}/contract/custom-component/contact-method-list.d.ts +7 -7
  13. package/{lib-esm → dist}/contract/custom-component/contact-method.d.ts +3 -3
  14. package/{lib-esm → dist}/contract/custom-component/entry-context.d.ts +5 -5
  15. package/{lib → dist}/contract/enum/server-entry-type.enum.d.ts +7 -7
  16. package/{lib → dist}/contract/model/conversation-api-model/list.model.d.ts +5 -5
  17. package/{lib-esm → dist}/contract/model/conversation-api-model/message.model.d.ts +7 -7
  18. package/{lib → dist}/contract/model/http/action.model.d.ts +3 -3
  19. package/{lib → dist}/contract/model/http/client-action.model.d.ts +4 -4
  20. package/{lib → dist}/contract/model/http/client-envelope.model.d.ts +9 -9
  21. package/{lib-esm → dist}/contract/model/http/connect-options.model.d.ts +5 -5
  22. package/{lib-esm → dist}/contract/model/http/global-state.model.d.ts +8 -8
  23. package/{lib-esm → dist}/contract/model/http/http-client-options.model.d.ts +5 -5
  24. package/{lib-esm → dist}/contract/model/http/server-entry.model.d.ts +11 -11
  25. package/{lib-esm → dist}/contract/model/http/server-envelope.model.d.ts +10 -10
  26. package/{lib-esm → dist}/contract/model/middleware/aggregator-state.model.d.ts +4 -4
  27. package/{lib → dist}/contract/model/shared/loose-object.model.d.ts +3 -3
  28. package/dist/feedback-list.js +104 -0
  29. package/dist/feedback-list.js.map +1 -0
  30. package/{lib-esm → dist}/helper/chat.helper.d.ts +8 -8
  31. package/{lib-esm → dist}/helper/http.helper.d.ts +13 -13
  32. package/{lib-esm → dist}/helper/middleware.helper.d.ts +12 -12
  33. package/{lib → dist}/helper/store.helper.d.ts +23 -23
  34. package/{lib-esm → dist}/index.d.ts +2 -2
  35. package/dist/index.js +1152 -0
  36. package/dist/index.js.map +1 -0
  37. package/{lib-esm → dist}/interface/entry.interface.d.ts +20 -20
  38. package/{lib-esm → dist}/interface/middleware/paging.interface.d.ts +4 -4
  39. package/{lib-esm → dist}/interface/middleware/processor.interface.d.ts +10 -10
  40. package/dist/no-good-alternative.js +33 -0
  41. package/dist/no-good-alternative.js.map +1 -0
  42. package/{lib-esm → dist}/plugin.d.ts +3 -3
  43. package/dist/ui/feedback-list.d.ts +8 -0
  44. package/dist/ui/no-good-alternative.d.ts +6 -0
  45. package/{lib-esm → dist}/utils.d.ts +2 -2
  46. package/package.json +14 -15
  47. package/lib/client/chat.client.d.ts +0 -16
  48. package/lib/client/chat.client.js +0 -145
  49. package/lib/client/contact-method.client.js +0 -337
  50. package/lib/client/http.client.js +0 -211
  51. package/lib/client/middleware.client.js +0 -125
  52. package/lib/contract/custom-component/contact-method-item.d.ts +0 -9
  53. package/lib/contract/custom-component/contact-method-item.js +0 -34
  54. package/lib/contract/custom-component/contact-method-list.d.ts +0 -7
  55. package/lib/contract/custom-component/contact-method-list.js +0 -13
  56. package/lib/contract/custom-component/contact-method.d.ts +0 -3
  57. package/lib/contract/custom-component/contact-method.js +0 -35
  58. package/lib/contract/custom-component/entry-context.d.ts +0 -5
  59. package/lib/contract/custom-component/entry-context.js +0 -4
  60. package/lib/contract/enum/server-entry-type.enum.js +0 -8
  61. package/lib/contract/model/conversation-api-model/list.model.js +0 -1
  62. package/lib/contract/model/conversation-api-model/message.model.d.ts +0 -7
  63. package/lib/contract/model/conversation-api-model/message.model.js +0 -1
  64. package/lib/contract/model/http/action.model.js +0 -1
  65. package/lib/contract/model/http/client-action.model.js +0 -2
  66. package/lib/contract/model/http/client-envelope.model.js +0 -1
  67. package/lib/contract/model/http/connect-options.model.d.ts +0 -5
  68. package/lib/contract/model/http/connect-options.model.js +0 -1
  69. package/lib/contract/model/http/global-state.model.d.ts +0 -8
  70. package/lib/contract/model/http/global-state.model.js +0 -1
  71. package/lib/contract/model/http/http-client-options.model.d.ts +0 -5
  72. package/lib/contract/model/http/http-client-options.model.js +0 -1
  73. package/lib/contract/model/http/server-entry.model.d.ts +0 -11
  74. package/lib/contract/model/http/server-entry.model.js +0 -1
  75. package/lib/contract/model/http/server-envelope.model.d.ts +0 -10
  76. package/lib/contract/model/http/server-envelope.model.js +0 -1
  77. package/lib/contract/model/middleware/aggregator-state.model.d.ts +0 -4
  78. package/lib/contract/model/middleware/aggregator-state.model.js +0 -2
  79. package/lib/contract/model/shared/loose-object.model.js +0 -1
  80. package/lib/helper/chat.helper.d.ts +0 -8
  81. package/lib/helper/chat.helper.js +0 -18
  82. package/lib/helper/http.helper.d.ts +0 -13
  83. package/lib/helper/http.helper.js +0 -28
  84. package/lib/helper/middleware.helper.d.ts +0 -12
  85. package/lib/helper/middleware.helper.js +0 -68
  86. package/lib/helper/store.helper.js +0 -169
  87. package/lib/index.d.ts +0 -2
  88. package/lib/index.js +0 -2
  89. package/lib/interface/entry.interface.d.ts +0 -20
  90. package/lib/interface/entry.interface.js +0 -306
  91. package/lib/interface/middleware/paging.interface.d.ts +0 -4
  92. package/lib/interface/middleware/paging.interface.js +0 -53
  93. package/lib/interface/middleware/processor.interface.d.ts +0 -10
  94. package/lib/interface/middleware/processor.interface.js +0 -118
  95. package/lib/plugin.d.ts +0 -3
  96. package/lib/plugin.js +0 -154
  97. package/lib/utils.d.ts +0 -2
  98. package/lib/utils.js +0 -79
  99. package/lib-esm/client/chat.client.js +0 -145
  100. package/lib-esm/client/contact-method.client.d.ts +0 -34
  101. package/lib-esm/client/contact-method.client.js +0 -337
  102. package/lib-esm/client/http.client.d.ts +0 -26
  103. package/lib-esm/client/http.client.js +0 -211
  104. package/lib-esm/client/middleware.client.d.ts +0 -14
  105. package/lib-esm/client/middleware.client.js +0 -125
  106. package/lib-esm/contract/custom-component/contact-method-item.js +0 -34
  107. package/lib-esm/contract/custom-component/contact-method-list.js +0 -13
  108. package/lib-esm/contract/custom-component/contact-method.js +0 -35
  109. package/lib-esm/contract/custom-component/entry-context.js +0 -4
  110. package/lib-esm/contract/enum/server-entry-type.enum.d.ts +0 -7
  111. package/lib-esm/contract/enum/server-entry-type.enum.js +0 -8
  112. package/lib-esm/contract/model/conversation-api-model/list.model.d.ts +0 -5
  113. package/lib-esm/contract/model/conversation-api-model/list.model.js +0 -1
  114. package/lib-esm/contract/model/conversation-api-model/message.model.js +0 -1
  115. package/lib-esm/contract/model/http/action.model.d.ts +0 -3
  116. package/lib-esm/contract/model/http/action.model.js +0 -1
  117. package/lib-esm/contract/model/http/client-action.model.d.ts +0 -4
  118. package/lib-esm/contract/model/http/client-action.model.js +0 -2
  119. package/lib-esm/contract/model/http/client-envelope.model.d.ts +0 -9
  120. package/lib-esm/contract/model/http/client-envelope.model.js +0 -1
  121. package/lib-esm/contract/model/http/connect-options.model.js +0 -1
  122. package/lib-esm/contract/model/http/global-state.model.js +0 -1
  123. package/lib-esm/contract/model/http/http-client-options.model.js +0 -1
  124. package/lib-esm/contract/model/http/server-entry.model.js +0 -1
  125. package/lib-esm/contract/model/http/server-envelope.model.js +0 -1
  126. package/lib-esm/contract/model/middleware/aggregator-state.model.js +0 -2
  127. package/lib-esm/contract/model/shared/loose-object.model.d.ts +0 -3
  128. package/lib-esm/contract/model/shared/loose-object.model.js +0 -1
  129. package/lib-esm/helper/chat.helper.js +0 -18
  130. package/lib-esm/helper/http.helper.js +0 -28
  131. package/lib-esm/helper/middleware.helper.js +0 -68
  132. package/lib-esm/helper/store.helper.d.ts +0 -23
  133. package/lib-esm/helper/store.helper.js +0 -169
  134. package/lib-esm/index.js +0 -2
  135. package/lib-esm/interface/entry.interface.js +0 -306
  136. package/lib-esm/interface/middleware/paging.interface.js +0 -53
  137. package/lib-esm/interface/middleware/processor.interface.js +0 -118
  138. package/lib-esm/plugin.js +0 -154
  139. package/lib-esm/utils.js +0 -79
@@ -0,0 +1,104 @@
1
+ import { useDispatch, Icon, List, invertedHoverButton } from "@telia-ace/knowledge-widget-ui";
2
+ import React from "react";
3
+ import styled, { css } from "styled-components";
4
+ const FeedbackList = ({ actions }) => {
5
+ const dispatch = useDispatch();
6
+ return /* @__PURE__ */ React.createElement(StyledButtonList, {
7
+ items: Object.keys(actions).map((i) => {
8
+ return {
9
+ label: actions[i],
10
+ actionKey: i
11
+ };
12
+ }),
13
+ renderItem: (item) => {
14
+ return /* @__PURE__ */ React.createElement(FeedbackItem, {
15
+ key: item.actionKey
16
+ }, /* @__PURE__ */ React.createElement(FeedbackButton, {
17
+ className: "humany-feedback-button",
18
+ disabled: false,
19
+ "aria-pressed": true,
20
+ "data-selected": true,
21
+ "data-direction": "vertical",
22
+ onClick: () => {
23
+ dispatch("action", item.actionKey);
24
+ }
25
+ }, /* @__PURE__ */ React.createElement(Icon, {
26
+ faIcon: item.actionKey == "yes" ? "smile-o" : "frown-o"
27
+ }), /* @__PURE__ */ React.createElement("span", null, item.label)));
28
+ }
29
+ });
30
+ };
31
+ const StyledButtonList = styled(List)`
32
+ padding: 0;
33
+ list-style: none;
34
+ > li {
35
+ margin: ${(p) => {
36
+ var _a;
37
+ return (_a = p.theme.sizes) == null ? void 0 : _a.small;
38
+ }} ${(p) => {
39
+ var _a;
40
+ return (_a = p.theme.sizes) == null ? void 0 : _a.normal;
41
+ }};
42
+ margin-left: 0;
43
+ display: inline-block;
44
+ }
45
+ `;
46
+ const FeedbackItem = styled.li`
47
+ @media (min-width: 768px) {
48
+ display: list-item !important;
49
+ margin-right: 0 !important;
50
+ margin-top: ${(p) => {
51
+ var _a;
52
+ return (_a = p.theme.sizes) == null ? void 0 : _a.normal;
53
+ }} !important;
54
+ }
55
+ `;
56
+ const FeedbackButton = styled.button`
57
+ @media (min-width: 768px) {
58
+ min-width: 100%;
59
+ margin-right: 0;
60
+ }
61
+ display: inline-block;
62
+ font-size: ${(p) => {
63
+ var _a;
64
+ return (_a = p.theme.fonts) == null ? void 0 : _a.normal;
65
+ }};
66
+ border-color: ${(p) => {
67
+ var _a;
68
+ return (_a = p.theme.colors) == null ? void 0 : _a.primary;
69
+ }} !important;
70
+ font-weight: 300;
71
+ && {
72
+ margin-right: ${(p) => {
73
+ var _a;
74
+ return (_a = p.theme.sizes) == null ? void 0 : _a.small;
75
+ }};
76
+ }
77
+ ${(p) => {
78
+ var _a, _b;
79
+ return p["data-direction"] === "horizontal" && css`
80
+ width: 225px;
81
+ max-width: calc(50% - ${(_a = p.theme.sizes) == null ? void 0 : _a.large} - ${(_b = p.theme.sizes) == null ? void 0 : _b.small});
82
+ `;
83
+ }}
84
+ ${(p) => p["data-direction"] === "vertical" && css`
85
+ min-width: 150px;
86
+ `}
87
+ ${(p) => {
88
+ var _a;
89
+ return invertedHoverButton({
90
+ primaryColor: `${(_a = p.theme.colors) == null ? void 0 : _a.primary}`,
91
+ secondaryColor: "#FFFFFF"
92
+ });
93
+ }}
94
+ i {
95
+ margin: 0 ${(p) => {
96
+ var _a;
97
+ return (_a = p.theme.sizes) == null ? void 0 : _a.small;
98
+ }} 0 0;
99
+ }
100
+ span {
101
+ }
102
+ `;
103
+ export { FeedbackList as default };
104
+ //# sourceMappingURL=feedback-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feedback-list.js","sources":["../src/ui/feedback-list.tsx"],"sourcesContent":["import { Icon, invertedHoverButton, List, useDispatch } from '@telia-ace/knowledge-widget-ui';\nimport React from 'react';\nimport styled, { css } from 'styled-components';\n\ntype Props = {\n actions: { [key: string]: string };\n};\nconst FeedbackList: React.FC<Props> = ({ actions }) => {\n const dispatch = useDispatch();\n return (\n <StyledButtonList\n items={Object.keys(actions).map((i: any) => {\n return {\n label: actions[i],\n actionKey: i,\n };\n })}\n renderItem={(item: any) => {\n return (\n <FeedbackItem key={item.actionKey}>\n <FeedbackButton\n className=\"humany-feedback-button\"\n disabled={false}\n aria-pressed={true}\n data-selected={true}\n data-direction={'vertical'}\n onClick={() => {\n dispatch('action', item.actionKey);\n }}\n >\n <Icon faIcon={item.actionKey == 'yes' ? 'smile-o' : 'frown-o'} />\n <span>{item.label}</span>\n </FeedbackButton>\n </FeedbackItem>\n );\n }}\n />\n );\n};\n\nexport default FeedbackList;\n\nconst StyledButtonList = styled(List as any)`\n padding: 0;\n list-style: none;\n > li {\n margin: ${(p) => p.theme.sizes?.small} ${(p) => p.theme.sizes?.normal};\n margin-left: 0;\n display: inline-block;\n }\n`;\n\nconst FeedbackItem = styled.li`\n @media (min-width: 768px) {\n display: list-item !important;\n margin-right: 0 !important;\n margin-top: ${(p) => p.theme.sizes?.normal} !important;\n }\n`;\n\nconst FeedbackButton = styled.button<{\n 'data-selected': boolean;\n 'data-direction': 'horizontal' | 'vertical';\n}>`\n @media (min-width: 768px) {\n min-width: 100%;\n margin-right: 0;\n }\n display: inline-block;\n font-size: ${(p) => p.theme.fonts?.normal};\n border-color: ${(p) => p.theme.colors?.primary} !important;\n font-weight: 300;\n && {\n margin-right: ${(p) => p.theme.sizes?.small};\n }\n ${(p) =>\n p['data-direction'] === 'horizontal' &&\n css`\n width: 225px;\n max-width: calc(50% - ${p.theme.sizes?.large} - ${p.theme.sizes?.small});\n `}\n ${(p) =>\n p['data-direction'] === 'vertical' &&\n css`\n min-width: 150px;\n `}\n ${(p) =>\n invertedHoverButton({\n primaryColor: `${p.theme.colors?.primary}`,\n secondaryColor: '#FFFFFF',\n })}\n i {\n margin: 0 ${(p) => p.theme.sizes?.small} 0 0;\n }\n span {\n }\n`;\n"],"names":[],"mappings":";;;AAOM,MAAA,eAAgC,CAAC,EAAE,cAAc;AACnD,QAAM,WAAW;AACjB,SACK,sBAAA,cAAA,kBAAA;AAAA,IACG,OAAO,OAAO,KAAK,OAAO,EAAE,IAAI,CAAC,MAAW;AACjC,aAAA;AAAA,QACH,OAAO,QAAQ;AAAA,QACf,WAAW;AAAA,MAAA;AAAA,IACf,CACH;AAAA,IACD,YAAY,CAAC,SAAc;AACvB,aACK,sBAAA,cAAA,cAAA;AAAA,QAAa,KAAK,KAAK;AAAA,MAAA,GACnB,sBAAA,cAAA,gBAAA;AAAA,QACG,WAAU;AAAA,QACV,UAAU;AAAA,QACV,gBAAc;AAAA,QACd,iBAAe;AAAA,QACf,kBAAgB;AAAA,QAChB,SAAS,MAAM;AACF,mBAAA,UAAU,KAAK,SAAS;AAAA,QACrC;AAAA,MAAA,GAEC,sBAAA,cAAA,MAAA;AAAA,QAAK,QAAQ,KAAK,aAAa,QAAQ,YAAY;AAAA,MAAA,CAAW,GAC9D,sBAAA,cAAA,QAAA,MAAM,KAAK,KAAM,CACtB,CACJ;AAAA,IAER;AAAA,EAAA,CACJ;AAER;AAIA,MAAM,mBAAmB,OAAO,IAAW;AAAA;AAAA;AAAA;AAAA,kBAIzB,CAAC,MAAM;;AAAA,iBAAE,MAAM,UAAR,mBAAe;AAAA,KAAS,CAAC,MAAA;;AAAM,iBAAE,MAAM,UAAR,mBAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAMvE,MAAM,eAAe,OAAO;AAAA;AAAA;AAAA;AAAA,sBAIN,CAAC,MAAM;;AAAA,iBAAE,MAAM,UAAR,mBAAe;AAAA;AAAA;AAAA;AAI5C,MAAM,iBAAiB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBASb,CAAC,MAAM;;AAAA,iBAAE,MAAM,UAAR,mBAAe;AAAA;AAAA,oBACnB,CAAC,MAAM;;AAAA,iBAAE,MAAM,WAAR,mBAAgB;AAAA;AAAA;AAAA;AAAA,wBAGnB,CAAC,MAAM;;AAAA,iBAAE,MAAM,UAAR,mBAAe;AAAA;AAAA;AAAA,MAExC,CAAC,MAAA;;AACC,WAAE,sBAAsB,gBACxB;AAAA;AAAA,oCAE4B,QAAE,MAAM,UAAR,mBAAe,WAAW,QAAE,MAAM,UAAR,mBAAe;AAAA;AAAA;AAAA,MAEvE,CAAC,MACC,EAAE,sBAAsB,cACxB;AAAA;AAAA;AAAA,IAGJ,CAAC;;AACG,6BAAoB;AAAA,IAChB,cAAc,GAAG,QAAE,MAAM,WAAR,mBAAgB;AAAA,IACjC,gBAAgB;AAAA,EACpB,CAAC;AAAA;AAAA;AAAA,oBAEW,CAAC,MAAM;;AAAA,iBAAE,MAAM,UAAR,mBAAe;AAAA;AAAA;AAAA;AAAA;AAAA;;"}
@@ -1,8 +1,8 @@
1
- export declare class ChatHelper {
2
- private static user;
3
- private static agent;
4
- static setUser(user: any): void;
5
- static setAgent(agent: any): void;
6
- static getUser(): any;
7
- static getAgent(): any;
8
- }
1
+ export declare class ChatHelper {
2
+ private static user;
3
+ private static agent;
4
+ static setUser(user: any): void;
5
+ static setAgent(agent: any): void;
6
+ static getUser(): any;
7
+ static getAgent(): any;
8
+ }
@@ -1,13 +1,13 @@
1
- export declare class HttpHelper {
2
- static fetchOptions: {
3
- method: string;
4
- headers: {
5
- Accept: string;
6
- 'Content-Type': string;
7
- };
8
- };
9
- static combineUrl(basePath: string, path: string): string;
10
- static managedSubdomainSuffixes: string[];
11
- static parseSubdomain: (input: string) => string;
12
- static getCredentials(): string | undefined;
13
- }
1
+ export declare class HttpHelper {
2
+ static fetchOptions: {
3
+ method: string;
4
+ headers: {
5
+ Accept: string;
6
+ 'Content-Type': string;
7
+ };
8
+ };
9
+ static combineUrl(basePath: string, path: string): string;
10
+ static managedSubdomainSuffixes: string[];
11
+ static parseSubdomain: (input: string) => string;
12
+ static getCredentials(): string | undefined;
13
+ }
@@ -1,12 +1,12 @@
1
- import { Message } from '../contract/model/conversation-api-model/message.model';
2
- export declare class MiddlewareHelper {
3
- private static sessionMessageStorageVariable;
4
- private static container;
5
- private static widget;
6
- static setContainer(container: any): void;
7
- static setWidget(widget: any): void;
8
- static getContainer(): any;
9
- static getWidget(): any;
10
- static setEntrySessionStorage: (messages: Message[]) => Promise<void>;
11
- static getEntrySessionStorage(): Promise<any>;
12
- }
1
+ import { Message } from '../contract/model/conversation-api-model/message.model';
2
+ export declare class MiddlewareHelper {
3
+ private static sessionMessageStorageVariable;
4
+ private static container;
5
+ private static widget;
6
+ static setContainer(container: any): void;
7
+ static setWidget(widget: any): void;
8
+ static getContainer(): any;
9
+ static getWidget(): any;
10
+ static setEntrySessionStorage: (messages: Message[]) => Promise<void>;
11
+ static getEntrySessionStorage(): Promise<any>;
12
+ }
@@ -1,23 +1,23 @@
1
- import { Message } from '../contract/model/conversation-api-model/message.model';
2
- import { ClientAction } from '../contract/model/http/client-action.model';
3
- import { GlobalState } from '../contract/model/http/global-state.model';
4
- import { ServerEntry } from '../contract/model/http/server-entry.model';
5
- import { LooseObject } from '../contract/model/shared/loose-object.model';
6
- export declare class StoreHelper {
7
- private static messageStore;
8
- private static globalState;
9
- constructor();
10
- static insertOrUpdateMessageArrayStore(messageArray: Message[], entry?: any): Promise<void>;
11
- static insertMessageToStore(message: Message): void;
12
- private static updateMessageInStore;
13
- static checkIdInMessageStore(id: string): boolean;
14
- static getLocalState(action: string): LooseObject | undefined;
15
- static getGlobalState(): GlobalState;
16
- static setGlobalState(state: GlobalState): Promise<void>;
17
- static getAction(action: string): ClientAction;
18
- static getCommand(text: string): LooseObject;
19
- static getEntry(action: string): ServerEntry | undefined;
20
- static getMessage(id: string): Message | undefined;
21
- static getEntryStore(): ServerEntry[];
22
- static rehydrateState(): Promise<void>;
23
- }
1
+ import { Message } from '../contract/model/conversation-api-model/message.model';
2
+ import { ClientAction } from '../contract/model/http/client-action.model';
3
+ import { GlobalState } from '../contract/model/http/global-state.model';
4
+ import { ServerEntry } from '../contract/model/http/server-entry.model';
5
+ import { LooseObject } from '../contract/model/shared/loose-object.model';
6
+ export declare class StoreHelper {
7
+ private static messageStore;
8
+ private static globalState;
9
+ constructor();
10
+ static insertOrUpdateMessageArrayStore(messageArray: Message[], entry?: any): Promise<void>;
11
+ static insertMessageToStore(message: Message): void;
12
+ private static updateMessageInStore;
13
+ static checkIdInMessageStore(id: string): boolean;
14
+ static getLocalState(action: string): LooseObject | undefined;
15
+ static getGlobalState(): GlobalState;
16
+ static setGlobalState(state: GlobalState): Promise<void>;
17
+ static getAction(action: string): ClientAction;
18
+ static getCommand(text: string): LooseObject;
19
+ static getEntry(action: string): ServerEntry | undefined;
20
+ static getMessage(id: string): Message | undefined;
21
+ static getEntryStore(): ServerEntry[];
22
+ static rehydrateState(): Promise<void>;
23
+ }
@@ -1,2 +1,2 @@
1
- import ConversationPlugin from './plugin';
2
- export { ConversationPlugin };
1
+ import ConversationPlugin from './plugin';
2
+ export { ConversationPlugin };