@maxzima/wa-communicator 0.0.17 → 1.0.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 (73) hide show
  1. package/README.md +92 -43
  2. package/dist/engine/AccountTracker/Enums/AccountTrackerEnum.d.ts +15 -0
  3. package/dist/engine/AccountTracker/Enums/AccountTrackerEnum.js +1 -0
  4. package/dist/engine/AccountTracker/Public/AccountTracker.d.ts +9 -0
  5. package/dist/engine/AccountTracker/Public/AccountTracker.js +35 -0
  6. package/dist/engine/AccountTracker/Types/TAccountTracker.d.ts +15 -0
  7. package/dist/engine/AccountTracker/Types/TAccountTracker.js +1 -0
  8. package/dist/engine/AccountTracker/index.d.ts +1 -0
  9. package/dist/engine/AccountTracker/index.js +1 -0
  10. package/dist/engine/Communicator/Constants/Communicator.d.ts +2 -0
  11. package/dist/engine/Communicator/Constants/Communicator.js +10 -0
  12. package/dist/engine/Communicator/Enums/CommunicatorEnum.d.ts +12 -0
  13. package/dist/engine/Communicator/Enums/CommunicatorEnum.js +1 -0
  14. package/dist/engine/Communicator/Public/Communicator.d.ts +16 -0
  15. package/dist/engine/Communicator/Public/Communicator.js +158 -0
  16. package/dist/engine/Communicator/Types/TCommunicator.d.ts +10 -0
  17. package/dist/engine/Communicator/Types/TCommunicator.js +1 -0
  18. package/dist/engine/Communicator/index.d.ts +1 -0
  19. package/dist/engine/Communicator/index.js +1 -0
  20. package/dist/engine/index.d.ts +2 -0
  21. package/dist/engine/index.js +2 -0
  22. package/dist/enums/CommunicatorErrorEnum.d.ts +15 -0
  23. package/dist/enums/CommunicatorErrorEnum.js +1 -0
  24. package/dist/enums/index.d.ts +1 -0
  25. package/dist/enums/index.js +1 -0
  26. package/dist/index.d.ts +3 -6
  27. package/dist/index.js +1 -6
  28. package/dist/types/TCommunicator.d.ts +110 -0
  29. package/dist/types/TCommunicator.js +1 -0
  30. package/dist/types/index.d.ts +1 -60
  31. package/dist/types/index.js +1 -1
  32. package/package.json +19 -26
  33. package/src/engine/AccountTracker/Enums/AccountTrackerEnum.ts +18 -0
  34. package/src/engine/AccountTracker/Public/AccountTracker.ts +45 -0
  35. package/src/engine/AccountTracker/Types/TAccountTracker.ts +16 -0
  36. package/src/engine/AccountTracker/index.ts +1 -0
  37. package/src/engine/Communicator/Constants/Communicator.ts +14 -0
  38. package/src/engine/Communicator/Enums/CommunicatorEnum.ts +13 -0
  39. package/src/engine/Communicator/Public/Communicator.ts +195 -0
  40. package/src/engine/Communicator/Types/TCommunicator.ts +11 -0
  41. package/src/engine/Communicator/index.ts +1 -0
  42. package/src/engine/index.ts +2 -0
  43. package/src/enums/CommunicatorErrorEnum.ts +22 -0
  44. package/src/enums/index.ts +1 -0
  45. package/src/index.ts +18 -11
  46. package/src/types/TCommunicator.ts +179 -0
  47. package/src/types/index.ts +1 -73
  48. package/test/utiles.spec.ts +2 -66
  49. package/tsconfig.json +5 -0
  50. package/dist/engine/CommunicatorReceiver.d.ts +0 -14
  51. package/dist/engine/CommunicatorReceiver.js +0 -114
  52. package/dist/engine/CommunicatorSender.d.ts +0 -7
  53. package/dist/engine/CommunicatorSender.js +0 -20
  54. package/dist/engine/utils.d.ts +0 -5
  55. package/dist/engine/utils.js +0 -41
  56. package/dist/enums/CommunicatorActionEnum.d.ts +0 -11
  57. package/dist/enums/CommunicatorActionEnum.js +0 -16
  58. package/dist/enums/CommunicatorTargetEnum.d.ts +0 -5
  59. package/dist/enums/CommunicatorTargetEnum.js +0 -8
  60. package/dist/receiver.d.ts +0 -6
  61. package/dist/receiver.js +0 -6
  62. package/dist/sender.d.ts +0 -5
  63. package/dist/sender.js +0 -5
  64. package/src/engine/CommunicatorReceiver.ts +0 -182
  65. package/src/engine/CommunicatorSender.ts +0 -34
  66. package/src/engine/utils.ts +0 -53
  67. package/src/enums/CommunicatorActionEnum.ts +0 -17
  68. package/src/enums/CommunicatorTargetEnum.ts +0 -8
  69. package/src/receiver.ts +0 -13
  70. package/src/sender.ts +0 -11
  71. package/test/testUnits/message.ts +0 -44
  72. package/test/testUnits/queue.ts +0 -165
  73. package/test/testUnits/scenario.ts +0 -31
@@ -1,60 +1 @@
1
- import { CommunicatorActionEnum } from "../enums/CommunicatorActionEnum";
2
- import { CommunicatorTargetEnum } from "../enums/CommunicatorTargetEnum";
3
- export declare type TSenderProps = {
4
- receiverOrigin: string;
5
- otherWindow: Window;
6
- };
7
- export declare type TReceiverProps = {
8
- senderOrigin: string;
9
- };
10
- export declare type TReceiverCallback = (message: TCommunicatorMessage) => void;
11
- export declare type TCommunicatorActionTokenParams = {
12
- name: string;
13
- value: string;
14
- domain: string;
15
- expires?: number;
16
- };
17
- export declare type TCommunicatorActionResizeParams = {
18
- width?: number;
19
- height?: number;
20
- };
21
- export declare type TCommunicatorActionGotoParams = {
22
- url: string;
23
- isTargetBlank?: boolean;
24
- };
25
- export declare type TCommunicatorSenderActionMap = {
26
- [CommunicatorActionEnum.LOADED]?: true;
27
- [CommunicatorActionEnum.BLUR]?: true;
28
- [CommunicatorActionEnum.TOKEN]?: TCommunicatorActionTokenParams;
29
- [CommunicatorActionEnum.RESIZE]?: TCommunicatorActionResizeParams;
30
- [CommunicatorActionEnum.GOTO]?: TCommunicatorActionGotoParams;
31
- [CommunicatorActionEnum.CLOSE]?: true;
32
- [CommunicatorActionEnum.OPEN]?: CommunicatorTargetEnum;
33
- };
34
- export declare type TCommunicatorMessage = {
35
- target: CommunicatorTargetEnum;
36
- action: TCommunicatorSenderActionMap;
37
- };
38
- export declare type TReceiverSubscribeParams = {
39
- code?: string;
40
- target: CommunicatorTargetEnum;
41
- action: CommunicatorActionEnum;
42
- callback: TReceiverCallback;
43
- };
44
- export declare type TReceiverMessageQueue = TReceiverMessageQueueItem[];
45
- export declare type TReceiverMessageQueueItem = {
46
- code?: string;
47
- target: CommunicatorTargetEnum;
48
- action: CommunicatorActionEnum;
49
- params?: {
50
- callback: TReceiverCallback;
51
- };
52
- };
53
- export declare type TReceiverUnsubscribeMessageParams = {
54
- code?: string;
55
- target?: CommunicatorTargetEnum;
56
- action?: CommunicatorActionEnum;
57
- };
58
- export declare type TReceiverTargetScenario = {
59
- [key in CommunicatorTargetEnum]?: CommunicatorActionEnum[];
60
- };
1
+ export * from "./TCommunicator";
@@ -1 +1 @@
1
- import { CommunicatorActionEnum } from "../enums/CommunicatorActionEnum";
1
+ export * from "./TCommunicator";
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
- "version": "0.0.17",
2
+ "version": "1.0.2",
3
3
  "name": "@maxzima/wa-communicator",
4
4
  "description": "",
5
5
  "author": "Noname",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
- "types": "dist/index.d.js",
8
+ "types": "dist/index.d.ts",
9
9
  "engines": {
10
10
  "node": ">=14"
11
11
  },
@@ -20,14 +20,6 @@
20
20
  {
21
21
  "path": "dist/index.js",
22
22
  "limit": "10 KB"
23
- },
24
- {
25
- "path": "dist/sender.js",
26
- "limit": "10 KB"
27
- },
28
- {
29
- "path": "dist/receiver.js",
30
- "limit": "10 KB"
31
23
  }
32
24
  ],
33
25
  "scripts": {
@@ -43,21 +35,22 @@
43
35
  "size": "size-limit"
44
36
  },
45
37
  "devDependencies": {
46
- "@size-limit/preset-small-lib": "^8.1.0",
47
- "@types/jest": "^28.1.8",
48
- "@typescript-eslint/eslint-plugin": "^5.35.1",
49
- "@typescript-eslint/parser": "^5.35.1",
50
- "eslint": "^8.22.0",
51
- "eslint-config-prettier": "^8.5.0",
52
- "eslint-plugin-editorconfig": "^4.0.2",
53
- "eslint-plugin-eslint-comments": "^3.2.0",
54
- "eslint-plugin-import": "^2.26.0",
55
- "eslint-plugin-prettier": "^4.2.1",
56
- "jest": "^28.1.3",
57
- "npm-run-all": "^4.1.5",
58
- "prettier": "^2.7.1",
59
- "size-limit": "^8.1.0",
60
- "ts-jest": "^28.0.8",
61
- "typescript": "^4.7.4"
38
+ "@size-limit/preset-small-lib": "8.2.4",
39
+ "@types/jest": "28.1.8",
40
+ "@typescript-eslint/eslint-plugin": "5.59.5",
41
+ "@typescript-eslint/parser": "5.59.5",
42
+ "@types/gtag.js": "0.0.10",
43
+ "eslint": "8.40.0",
44
+ "eslint-config-prettier": "8.8.0",
45
+ "eslint-plugin-editorconfig": "4.0.3",
46
+ "eslint-plugin-eslint-comments": "3.2.0",
47
+ "eslint-plugin-import": "2.27.5",
48
+ "eslint-plugin-prettier": "4.2.1",
49
+ "jest": "28.1.3",
50
+ "npm-run-all": "4.1.5",
51
+ "prettier": "2.8.8",
52
+ "size-limit": "8.2.4",
53
+ "ts-jest": "28.0.8",
54
+ "typescript": "4.7.4"
62
55
  }
63
56
  }
@@ -0,0 +1,18 @@
1
+ const enum GA4EventActionEnum {
2
+ VERIFY_CONTACT = 'verify_contact',
3
+ }
4
+
5
+ const enum GA4EventContactEnum {
6
+ PHONE = 'phone',
7
+ EMAIL = 'email',
8
+ }
9
+
10
+ const enum LintrkActionTypeEnum {
11
+ TRACK= 'track',
12
+ }
13
+
14
+ const enum LintrkEventIdEnum {
15
+ PHONE = 8612332,
16
+ EMAIL = 8612340,
17
+ REGISTRATION = 8612308,
18
+ }
@@ -0,0 +1,45 @@
1
+ export class AccountTracker {
2
+ private props: TAccountTrackerProps;
3
+
4
+ constructor(props: TAccountTrackerProps) {
5
+ this.props = props;
6
+ }
7
+
8
+ public sendPhoneVerifyEvent () {
9
+ this.sendGA4Event(GA4EventActionEnum.VERIFY_CONTACT, GA4EventContactEnum.PHONE);
10
+ this.sendLinkedInEvent(LintrkEventIdEnum.PHONE);
11
+ }
12
+
13
+ public sendEmailVerifyEvent () {
14
+ this.sendGA4Event(GA4EventActionEnum.VERIFY_CONTACT, GA4EventContactEnum.EMAIL);
15
+ this.sendLinkedInEvent(LintrkEventIdEnum.EMAIL);
16
+ }
17
+
18
+ public sendRegistrationSuccessEvent () {
19
+ this.sendLinkedInEvent(LintrkEventIdEnum.REGISTRATION);
20
+ }
21
+
22
+ private sendGA4Event = (action: GA4EventActionEnum, contact: GA4EventContactEnum) => {
23
+ if (typeof this.props.gtag === 'undefined' || !this.props.ga4Id) {
24
+ return;
25
+ }
26
+
27
+ const params: TGA4Event = {
28
+ contact: contact,
29
+ origin: this.props.origin || null,
30
+ send_to: this.props.ga4Id,
31
+ };
32
+
33
+ this.props.gtag('event', action, params);
34
+ };
35
+
36
+ private sendLinkedInEvent = (id: LintrkEventIdEnum) => {
37
+ if (typeof this.props.lintrk === 'undefined') {
38
+ return;
39
+ }
40
+
41
+ this.props.lintrk(LintrkActionTypeEnum.TRACK, {
42
+ conversation_id: id,
43
+ });
44
+ };
45
+ }
@@ -0,0 +1,16 @@
1
+ type TLintrkOptions = {
2
+ conversation_id: LintrkEventIdEnum;
3
+ }
4
+
5
+ type TGA4Event = {
6
+ contact: GA4EventContactEnum;
7
+ send_to: TAccountTrackerProps['ga4Id'];
8
+ origin?: TAccountTrackerProps['origin'];
9
+ }
10
+
11
+ type TAccountTrackerProps = {
12
+ origin?: string;
13
+ gtag?: Gtag.Gtag;
14
+ lintrk?: (action: LintrkActionTypeEnum, options: TLintrkOptions) => void;
15
+ ga4Id?: string;
16
+ }
@@ -0,0 +1 @@
1
+ export * from './Public/AccountTracker';
@@ -0,0 +1,14 @@
1
+ /* Immutable default values, which backend awaits */
2
+ const CommunicatorDefaultRequestData: TDefaultRequestData = {
3
+ IP: '127.0.0.1',
4
+ LANG: 'ENG',
5
+ AUDIT_SOURCE_TYPE: 'Backend',
6
+ FETCH_HEADERS_INIT: {
7
+ 'Content-Type': 'application/json',
8
+ 'Accept': 'application/json, text/plain, */*',
9
+ },
10
+ }
11
+
12
+ export {
13
+ CommunicatorDefaultRequestData,
14
+ }
@@ -0,0 +1,13 @@
1
+ const enum CommunicatorFAPIEndpointEnum {
2
+ GEO_BY_IP = 'geo-by-ip',
3
+ USER = 'user',
4
+ REGISTRATION = 'clients/registration',
5
+ }
6
+
7
+ const enum CommunicatorAuthAPIEndpointEnum {
8
+ SIGN_IN = 'sign-in',
9
+ CHALLENGE = 'sign-in/challenge',
10
+ EMAIL = 'sign-in/email',
11
+ SIGN_UP = 'sign-up',
12
+ SESSION = 'sign-in/session',
13
+ }
@@ -0,0 +1,195 @@
1
+ import {
2
+ TAccountMeta,
3
+ TCreateSessionRequestData,
4
+ TEmailUpdateRequestData,
5
+ TRegistrationRequestData,
6
+ TRequestProps,
7
+ TRequestQueryParams,
8
+ TResponse,
9
+ TSetupChallengeRequestData,
10
+ TSignInByMobileRequestData,
11
+ TSignInStartRequestBody,
12
+ TSignUpByMobileRequestData,
13
+ TSignUpStartRequestBody,
14
+ TVerifyChallengeRequestBody,
15
+ TVerifyChallengeRequestData
16
+ } from "@root/types";
17
+ import {CommunicatorDefaultRequestData} from "./../Constants/Communicator";
18
+
19
+ export class Communicator {
20
+ private props: TCommunicatorProps;
21
+
22
+ constructor(props: TCommunicatorProps) {
23
+ this.props = props;
24
+ }
25
+
26
+ public async signIn(data: TSignInByMobileRequestData) {
27
+ const meta = this.getMeta();
28
+ const body = JSON.stringify({
29
+ captcha_response: '_',
30
+ meta,
31
+ mobile: data.phoneNumber,
32
+ } as TSignInStartRequestBody);
33
+
34
+ return await this.send({
35
+ method: 'POST',
36
+ url: `${this.props.clientAuthApiBaseUrl}${CommunicatorAuthAPIEndpointEnum.SIGN_IN}`,
37
+ body,
38
+ headers: CommunicatorDefaultRequestData.FETCH_HEADERS_INIT,
39
+ });
40
+ }
41
+
42
+ public async signUp(data: TSignUpByMobileRequestData) {
43
+ const body = JSON.stringify({
44
+ locale: data.locale,
45
+ mobile: data.phoneNumber,
46
+ timezone_name: data.timezoneName,
47
+ } as TSignUpStartRequestBody);
48
+
49
+ return await this.send({
50
+ method: 'POST',
51
+ url: `${this.props.clientAuthApiBaseUrl}${CommunicatorAuthAPIEndpointEnum.SIGN_UP}`,
52
+ body,
53
+ headers: CommunicatorDefaultRequestData.FETCH_HEADERS_INIT,
54
+ });
55
+ }
56
+
57
+ public async setupChallenge(data: TSetupChallengeRequestData) {
58
+ return await this.send({
59
+ method: 'GET',
60
+ url: `${this.props.clientAuthApiBaseUrl}${CommunicatorAuthAPIEndpointEnum.CHALLENGE}`,
61
+ headers: {
62
+ 'Authorization': `Bearer ${data.authToken}`,
63
+ ...CommunicatorDefaultRequestData.FETCH_HEADERS_INIT,
64
+ },
65
+ queryParams: {
66
+ type: data.type,
67
+ },
68
+ });
69
+ }
70
+
71
+ public async verifyChallenge(data: TVerifyChallengeRequestData) {
72
+ const body = JSON.stringify({
73
+ type: data.type,
74
+ value: data.code,
75
+ } as TVerifyChallengeRequestBody);
76
+
77
+ return await this.send({
78
+ method: 'POST',
79
+ url: `${this.props.clientAuthApiBaseUrl}${CommunicatorAuthAPIEndpointEnum.CHALLENGE}`,
80
+ headers: {
81
+ 'Authorization': `Bearer ${data.authToken}`,
82
+ ...CommunicatorDefaultRequestData.FETCH_HEADERS_INIT,
83
+ },
84
+ body,
85
+ });
86
+ }
87
+
88
+ public async emailUpdate(data: TEmailUpdateRequestData) {
89
+ const body = JSON.stringify({
90
+ email: data.email,
91
+ });
92
+
93
+ return await this.send({
94
+ method: 'PATCH',
95
+ url: `${this.props.clientAuthApiBaseUrl}${CommunicatorAuthAPIEndpointEnum.EMAIL}`,
96
+ headers: {
97
+ 'Authorization': `Bearer ${data.authToken}`,
98
+ ...CommunicatorDefaultRequestData.FETCH_HEADERS_INIT,
99
+ },
100
+ body,
101
+ });
102
+ }
103
+
104
+ public async createSession(data: TCreateSessionRequestData) {
105
+ return await this.send({
106
+ method: 'POST',
107
+ url: `${this.props.clientAuthApiBaseUrl}${CommunicatorAuthAPIEndpointEnum.SESSION}`,
108
+ headers: {
109
+ 'Authorization': `Bearer ${data.authToken}`,
110
+ ...CommunicatorDefaultRequestData.FETCH_HEADERS_INIT,
111
+ },
112
+ });
113
+ }
114
+
115
+ public async getCurrentUserProfile() {
116
+ return await this.send({
117
+ method: 'GET',
118
+ url: `${this.props.clientFAPIBaseUrl}${CommunicatorFAPIEndpointEnum.USER}`,
119
+ headers: CommunicatorDefaultRequestData.FETCH_HEADERS_INIT,
120
+ });
121
+ }
122
+
123
+ public async registration(data: TRegistrationRequestData) {
124
+ const body = JSON.stringify({
125
+ name: data.name,
126
+ source: {
127
+ hash: data.hash,
128
+ device_type: data.deviceType,
129
+ ga_id: data.gaId,
130
+ origin: data.origin,
131
+ }
132
+ });
133
+
134
+ return await this.send({
135
+ method: 'POST',
136
+ url: `${this.props.clientAuthApiBaseUrl}${CommunicatorFAPIEndpointEnum.REGISTRATION}`,
137
+ headers: {
138
+ 'Authorization': `Bearer ${data.authToken}`,
139
+ ...CommunicatorDefaultRequestData.FETCH_HEADERS_INIT,
140
+ },
141
+ body,
142
+ });
143
+ }
144
+
145
+ private async send(requestInitProps: TRequestProps): Promise<TResponse> {
146
+ let url = requestInitProps.url;
147
+
148
+ if (requestInitProps.queryParams) {
149
+ url = `${url}?${this.processingQueryParams(requestInitProps.queryParams)}`;
150
+ }
151
+
152
+ return await fetch(new URL(url), {
153
+ method: requestInitProps.method,
154
+ body: requestInitProps.body,
155
+ headers: requestInitProps.headers,
156
+ })
157
+ .then((response) => {
158
+ return new Promise((resolve) => response.json()
159
+ .then((json) => resolve({
160
+ status: response.status,
161
+ ok: response.ok,
162
+ json,
163
+ })));
164
+ });
165
+ }
166
+
167
+ private getMeta = (): TAccountMeta => {
168
+ return {
169
+ audit_source_type: CommunicatorDefaultRequestData.AUDIT_SOURCE_TYPE,
170
+ browser_page_resolution: `${window.innerWidth}x${window.innerHeight}`,
171
+ cookies_enabled: window.navigator.cookieEnabled,
172
+ ip: CommunicatorDefaultRequestData.IP,
173
+ js_enabled: true,
174
+ language: CommunicatorDefaultRequestData.LANG,
175
+ user_agent: window.navigator.userAgent,
176
+ };
177
+ };
178
+
179
+ private processingQueryParams = (queryParams: TRequestQueryParams):string => {
180
+ let queryParamsString = '';
181
+ const queryParamsList = Object.entries(queryParams);
182
+
183
+ queryParamsList.forEach((queryParam, index) => {
184
+ let separator = '';
185
+
186
+ if (index > 0) {
187
+ separator = '&';
188
+ }
189
+
190
+ queryParamsString = `${queryParamsString}${separator}${queryParam[0]}=${queryParam[1]}`;
191
+ });
192
+
193
+ return queryParamsString;
194
+ };
195
+ }
@@ -0,0 +1,11 @@
1
+ type TDefaultRequestData = {
2
+ IP: string,
3
+ LANG: string,
4
+ FETCH_HEADERS_INIT: HeadersInit,
5
+ AUDIT_SOURCE_TYPE: import('@root/types').TAuditSource,
6
+ }
7
+
8
+ type TCommunicatorProps = {
9
+ clientAuthApiBaseUrl: string;
10
+ clientFAPIBaseUrl: string;
11
+ }
@@ -0,0 +1 @@
1
+ export * from './Public/Communicator';
@@ -0,0 +1,2 @@
1
+ export * from "./AccountTracker";
2
+ export * from "./Communicator";
@@ -0,0 +1,22 @@
1
+ const enum CommunicatorUpdateChallengeCustomErrorCodeEnum {
2
+ INVALID_AUTH_HEADER = 90793,
3
+ FREQUENT_REQUESTS = 90449,
4
+ REQUESTS_EXCEEDED = 90696,
5
+ MISSING_EMAIL = 90174,
6
+ UNEXPECTED_CHALLENGE_TYPE = 90767,
7
+ }
8
+
9
+ const enum CommunicatorVerifyChallengeCustomErrorCodeEnum {
10
+ SESSION_EXPIRED = 90302,
11
+ }
12
+
13
+ const enum CommunicatorEmailCustomErrorCodeEnum {
14
+ UNKNOWN_ERROR = 91044,
15
+ UNPROCESSABLE_ENTITY = 90768,
16
+ }
17
+
18
+ export {
19
+ CommunicatorUpdateChallengeCustomErrorCodeEnum,
20
+ CommunicatorVerifyChallengeCustomErrorCodeEnum,
21
+ CommunicatorEmailCustomErrorCodeEnum,
22
+ };
@@ -0,0 +1 @@
1
+ export * from "./CommunicatorErrorEnum";
package/src/index.ts CHANGED
@@ -1,13 +1,20 @@
1
- import {CommunicatorReceiver} from "./engine/CommunicatorReceiver";
2
- import {CommunicatorSender} from "./engine/CommunicatorSender";
3
- import {CommunicatorTargetEnum} from "./enums/CommunicatorTargetEnum";
4
- import {CommunicatorActionEnum} from "./enums/CommunicatorActionEnum";
5
- import * as types from "./types";
1
+ export {
2
+ Communicator,
3
+ AccountTracker
4
+ } from "./engine";
5
+
6
+ export {
7
+ CommunicatorUpdateChallengeCustomErrorCodeEnum,
8
+ CommunicatorVerifyChallengeCustomErrorCodeEnum,
9
+ CommunicatorEmailCustomErrorCodeEnum,
10
+ } from "./enums";
6
11
 
7
12
  export {
8
- CommunicatorReceiver,
9
- CommunicatorSender,
10
- CommunicatorTargetEnum,
11
- CommunicatorActionEnum,
12
- types,
13
- };
13
+ TChallenge,
14
+ TResponse,
15
+ TSignInByMobileResponse,
16
+ TSetupChallengeResponse,
17
+ TVerifyChallengeResponse,
18
+ TCreateSessionResponse,
19
+ TGetCurrentUserProfileResponseUser,
20
+ } from "./types";