@maxzima/wa-communicator 1.0.15 → 1.0.17
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/dist/engine/AccountTracker/Enums/AccountTrackerEnum.d.ts +1 -4
- package/dist/engine/AccountTracker/Public/AccountTracker.d.ts +1 -1
- package/dist/engine/AccountTracker/Public/AccountTracker.js +7 -9
- package/dist/engine/AccountTracker/Types/TAccountTracker.d.ts +2 -8
- package/dist/engine/Communicator/Enums/CommunicatorEnum.d.ts +2 -1
- package/dist/engine/Communicator/Public/Communicator.d.ts +2 -1
- package/dist/engine/Communicator/Public/Communicator.js +6 -0
- package/dist/enums/CommunicatorCountriesTypes.d.ts +10 -0
- package/dist/enums/CommunicatorCountriesTypes.js +11 -0
- package/dist/enums/index.d.ts +1 -0
- package/dist/enums/index.js +1 -0
- package/dist/types/TCommunicator.d.ts +4 -1
- package/package.json +1 -1
- package/src/engine/AccountTracker/Enums/AccountTrackerEnum.ts +1 -5
- package/src/engine/AccountTracker/Public/AccountTracker.ts +7 -10
- package/src/engine/AccountTracker/Types/TAccountTracker.ts +2 -8
- package/src/engine/Communicator/Enums/CommunicatorEnum.ts +1 -0
- package/src/engine/Communicator/Public/Communicator.ts +14 -2
- package/src/enums/CommunicatorCountriesTypes.ts +11 -0
- package/src/enums/index.ts +1 -0
- package/src/types/TCommunicator.ts +7 -0
- package/test/__snapshots__/communicator.spec.ts.snap +14 -0
- package/test/accountTracker.spec.ts +7 -9
- package/test/communicator.spec.ts +6 -0
- package/test/testunits/accountTracker/events.ts +6 -14
- package/test/testunits/accountTracker/general.ts +1 -1
- package/test/testunits/communicator/requests.ts +12 -3
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
export class AccountTracker {
|
|
2
2
|
constructor(props) {
|
|
3
|
-
this.
|
|
4
|
-
if (typeof this.props.
|
|
3
|
+
this.sendGtmEvent = (event) => {
|
|
4
|
+
if (typeof this.props.gtmDataLayer === 'undefined' || !this.props.gtmId) {
|
|
5
5
|
return;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
this.props.gtmDataLayer.push({
|
|
8
|
+
event,
|
|
9
9
|
origin: this.props.origin || null,
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
this.props.gtag('event', action, params);
|
|
10
|
+
});
|
|
13
11
|
};
|
|
14
12
|
this.sendLinkedInEvent = (id) => {
|
|
15
13
|
if (typeof this.props.lintrk === 'undefined') {
|
|
@@ -22,11 +20,11 @@ export class AccountTracker {
|
|
|
22
20
|
this.props = props;
|
|
23
21
|
}
|
|
24
22
|
sendPhoneVerifyEvent() {
|
|
25
|
-
this.
|
|
23
|
+
this.sendGtmEvent("phone");
|
|
26
24
|
this.sendLinkedInEvent(8612332);
|
|
27
25
|
}
|
|
28
26
|
sendEmailVerifyEvent() {
|
|
29
|
-
this.
|
|
27
|
+
this.sendGtmEvent("email");
|
|
30
28
|
this.sendLinkedInEvent(8612340);
|
|
31
29
|
}
|
|
32
30
|
sendRegistrationSuccessEvent() {
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
/// <reference types="gtag.js" />
|
|
2
1
|
declare type TLintrkOptions = {
|
|
3
2
|
conversation_id: LintrkEventIdEnum;
|
|
4
3
|
};
|
|
5
|
-
declare type TGA4Event = {
|
|
6
|
-
contact: GA4EventContactEnum;
|
|
7
|
-
send_to: TAccountTrackerProps['ga4Id'];
|
|
8
|
-
origin?: TAccountTrackerProps['origin'];
|
|
9
|
-
};
|
|
10
4
|
declare type TAccountTrackerProps = {
|
|
11
5
|
origin?: string;
|
|
12
|
-
|
|
6
|
+
gtmDataLayer?: object[];
|
|
13
7
|
lintrk?: (action: LintrkActionTypeEnum, options: TLintrkOptions) => void;
|
|
14
|
-
|
|
8
|
+
gtmId?: string;
|
|
15
9
|
};
|
|
@@ -2,7 +2,8 @@ declare const enum CommunicatorFAPIEndpointEnum {
|
|
|
2
2
|
GEO_BY_IP = "geo-by-ip",
|
|
3
3
|
USER = "user",
|
|
4
4
|
REGISTRATION = "clients/registration",
|
|
5
|
-
STORAGE = "storage"
|
|
5
|
+
STORAGE = "storage",
|
|
6
|
+
RESTRICTED_COUNTRIES = "access-control/restricted-countries"
|
|
6
7
|
}
|
|
7
8
|
declare const enum CommunicatorAuthAPIEndpointEnum {
|
|
8
9
|
SIGN_IN = "sign-in",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TCreateSessionRequestData, TEmailUpdateRequestData, TGetCurrentUserProfileRequestData, TRegistrationRequestData, TResponse, TSetupChallengeRequestData, TSignInByMobileRequestData, TSignUpByMobileRequestData, TVerifyChallengeRequestData, TStorageRequestData } from "@root/types";
|
|
1
|
+
import type { TCreateSessionRequestData, TEmailUpdateRequestData, TGetCurrentUserProfileRequestData, TRegistrationRequestData, TResponse, TSetupChallengeRequestData, TSignInByMobileRequestData, TSignUpByMobileRequestData, TVerifyChallengeRequestData, TStorageRequestData, TGetRestrictedCountriesData } from "@root/types";
|
|
2
2
|
export declare class Communicator {
|
|
3
3
|
private props;
|
|
4
4
|
constructor(props: TCommunicatorProps);
|
|
@@ -11,6 +11,7 @@ export declare class Communicator {
|
|
|
11
11
|
getCurrentUserProfile(data: TGetCurrentUserProfileRequestData): Promise<TResponse>;
|
|
12
12
|
registration(data: TRegistrationRequestData): Promise<TResponse>;
|
|
13
13
|
setStorageValues(data: TStorageRequestData): Promise<TResponse>;
|
|
14
|
+
getRestrictedCountries(data?: TGetRestrictedCountriesData): Promise<TResponse>;
|
|
14
15
|
private send;
|
|
15
16
|
private getHeaders;
|
|
16
17
|
private getMeta;
|
|
@@ -163,6 +163,12 @@ export class Communicator {
|
|
|
163
163
|
});
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
+
getRestrictedCountries(data) {
|
|
167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
+
const headers = this.getHeaders();
|
|
169
|
+
return yield this.send(Object.assign({ method: 'GET', url: `${this.props.clientFAPIBaseUrl}${"access-control/restricted-countries"}`, headers }, ((data === null || data === void 0 ? void 0 : data.entityType) && { queryParams: { entity_type: data.entityType } })));
|
|
170
|
+
});
|
|
171
|
+
}
|
|
166
172
|
send(requestInitProps) {
|
|
167
173
|
return __awaiter(this, void 0, void 0, function* () {
|
|
168
174
|
let url = requestInitProps.url;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum CountryTypeEnum {
|
|
2
|
+
COUNTRIES = "countries",
|
|
3
|
+
EMPLOYEE = "employee",
|
|
4
|
+
CARD_USER = "carduser",
|
|
5
|
+
CLIENT_INFORMATION = "client_information",
|
|
6
|
+
CLIENT_PERSON = "client_person",
|
|
7
|
+
CLIENT_COMPANY = "client_company",
|
|
8
|
+
USER = "user",
|
|
9
|
+
GLOBAL = "global"
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export var CountryTypeEnum;
|
|
2
|
+
(function (CountryTypeEnum) {
|
|
3
|
+
CountryTypeEnum["COUNTRIES"] = "countries";
|
|
4
|
+
CountryTypeEnum["EMPLOYEE"] = "employee";
|
|
5
|
+
CountryTypeEnum["CARD_USER"] = "carduser";
|
|
6
|
+
CountryTypeEnum["CLIENT_INFORMATION"] = "client_information";
|
|
7
|
+
CountryTypeEnum["CLIENT_PERSON"] = "client_person";
|
|
8
|
+
CountryTypeEnum["CLIENT_COMPANY"] = "client_company";
|
|
9
|
+
CountryTypeEnum["USER"] = "user";
|
|
10
|
+
CountryTypeEnum["GLOBAL"] = "global";
|
|
11
|
+
})(CountryTypeEnum || (CountryTypeEnum = {}));
|
package/dist/enums/index.d.ts
CHANGED
package/dist/enums/index.js
CHANGED
|
@@ -123,4 +123,7 @@ declare type TStorageRequestData = {
|
|
|
123
123
|
accessToken: string;
|
|
124
124
|
origin: string;
|
|
125
125
|
};
|
|
126
|
-
|
|
126
|
+
declare type TGetRestrictedCountriesData = {
|
|
127
|
+
entityType?: import('@root/enums').CountryTypeEnum;
|
|
128
|
+
};
|
|
129
|
+
export { TRegistrationRequestBodySourceDeviceType, TChallenge, TAuditSource, TRequestProps, TRequestQueryParams, TResponse, TSignInStartRequestBody, TAccountMeta, TAccountBrowserData, TSignInByMobileRequestData, TSignInByMobileResponse, TSignUpStartRequestBody, TSignUpByMobileRequestData, TSetupChallengeRequestData, TSetupChallengeResponse, TVerifyChallengeRequestBody, TVerifyChallengeRequestData, TVerifyChallengeResponse, TEmailUpdateRequestData, TCreateSessionRequestData, TCreateSessionResponse, TGetCurrentUserProfileResponseUser, TGetCurrentUserProfileRequestData, TRegistrationRequestData, TStorageRequestData, TGetRestrictedCountriesData, };
|
package/package.json
CHANGED
|
@@ -6,12 +6,12 @@ export class AccountTracker {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
public sendPhoneVerifyEvent () {
|
|
9
|
-
this.
|
|
9
|
+
this.sendGtmEvent(GTMEventEnum.PHONE);
|
|
10
10
|
this.sendLinkedInEvent(LintrkEventIdEnum.PHONE);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
public sendEmailVerifyEvent () {
|
|
14
|
-
this.
|
|
14
|
+
this.sendGtmEvent(GTMEventEnum.EMAIL);
|
|
15
15
|
this.sendLinkedInEvent(LintrkEventIdEnum.EMAIL);
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -19,18 +19,15 @@ export class AccountTracker {
|
|
|
19
19
|
this.sendLinkedInEvent(LintrkEventIdEnum.REGISTRATION);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
private
|
|
23
|
-
if (typeof this.props.
|
|
22
|
+
private sendGtmEvent = (event: GTMEventEnum) => {
|
|
23
|
+
if (typeof this.props.gtmDataLayer === 'undefined' || !this.props.gtmId) {
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
this.props.gtmDataLayer.push({
|
|
28
|
+
event,
|
|
29
29
|
origin: this.props.origin || null,
|
|
30
|
-
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
this.props.gtag('event', action, params);
|
|
30
|
+
});
|
|
34
31
|
};
|
|
35
32
|
|
|
36
33
|
private sendLinkedInEvent = (id: LintrkEventIdEnum) => {
|
|
@@ -2,15 +2,9 @@ type TLintrkOptions = {
|
|
|
2
2
|
conversation_id: LintrkEventIdEnum;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
type TGA4Event = {
|
|
6
|
-
contact: GA4EventContactEnum;
|
|
7
|
-
send_to: TAccountTrackerProps['ga4Id'];
|
|
8
|
-
origin?: TAccountTrackerProps['origin'];
|
|
9
|
-
}
|
|
10
|
-
|
|
11
5
|
type TAccountTrackerProps = {
|
|
12
6
|
origin?: string;
|
|
13
|
-
|
|
7
|
+
gtmDataLayer?: object[];
|
|
14
8
|
lintrk?: (action: LintrkActionTypeEnum, options: TLintrkOptions) => void;
|
|
15
|
-
|
|
9
|
+
gtmId?: string;
|
|
16
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
TAccountBrowserData,
|
|
3
3
|
TAccountMeta,
|
|
4
4
|
TCreateSessionRequestData,
|
|
@@ -15,7 +15,8 @@ import {
|
|
|
15
15
|
TSignUpStartRequestBody,
|
|
16
16
|
TVerifyChallengeRequestBody,
|
|
17
17
|
TVerifyChallengeRequestData,
|
|
18
|
-
TStorageRequestData
|
|
18
|
+
TStorageRequestData,
|
|
19
|
+
TGetRestrictedCountriesData
|
|
19
20
|
} from "@root/types";
|
|
20
21
|
import {CommunicatorDefaultRequestData} from "./../Constants/Communicator";
|
|
21
22
|
|
|
@@ -160,6 +161,17 @@ export class Communicator {
|
|
|
160
161
|
});
|
|
161
162
|
}
|
|
162
163
|
|
|
164
|
+
public async getRestrictedCountries(data?: TGetRestrictedCountriesData) {
|
|
165
|
+
const headers = this.getHeaders();
|
|
166
|
+
|
|
167
|
+
return await this.send({
|
|
168
|
+
method: 'GET',
|
|
169
|
+
url: `${this.props.clientFAPIBaseUrl}${CommunicatorFAPIEndpointEnum.RESTRICTED_COUNTRIES}`,
|
|
170
|
+
headers,
|
|
171
|
+
...(data?.entityType && {queryParams: {entity_type: data.entityType}}),
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
|
|
163
175
|
private async send(requestInitProps: TRequestProps): Promise<TResponse> {
|
|
164
176
|
let url = requestInitProps.url;
|
|
165
177
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* Categories can change during some times, check FAPI for validating this list. */
|
|
2
|
+
export enum CountryTypeEnum {
|
|
3
|
+
COUNTRIES = 'countries',
|
|
4
|
+
EMPLOYEE = 'employee',
|
|
5
|
+
CARD_USER = 'carduser',
|
|
6
|
+
CLIENT_INFORMATION = 'client_information',
|
|
7
|
+
CLIENT_PERSON = 'client_person',
|
|
8
|
+
CLIENT_COMPANY = 'client_company',
|
|
9
|
+
USER = 'user',
|
|
10
|
+
GLOBAL = 'global',
|
|
11
|
+
}
|
package/src/enums/index.ts
CHANGED
|
@@ -175,6 +175,12 @@ type TStorageRequestData = {
|
|
|
175
175
|
}
|
|
176
176
|
/* endregion registration */
|
|
177
177
|
|
|
178
|
+
/* region getRestrictedCountries */
|
|
179
|
+
type TGetRestrictedCountriesData = {
|
|
180
|
+
entityType?: import('@root/enums').CountryTypeEnum;
|
|
181
|
+
}
|
|
182
|
+
/* endregion getRestrictedCountries */
|
|
183
|
+
|
|
178
184
|
export {
|
|
179
185
|
TRegistrationRequestBodySourceDeviceType,
|
|
180
186
|
TChallenge,
|
|
@@ -201,4 +207,5 @@ export {
|
|
|
201
207
|
TGetCurrentUserProfileRequestData,
|
|
202
208
|
TRegistrationRequestData,
|
|
203
209
|
TStorageRequestData,
|
|
210
|
+
TGetRestrictedCountriesData,
|
|
204
211
|
};
|
|
@@ -68,6 +68,20 @@ Object {
|
|
|
68
68
|
}
|
|
69
69
|
`;
|
|
70
70
|
|
|
71
|
+
exports[`Communicator requests getRestrictedCountries 1`] = `
|
|
72
|
+
Object {
|
|
73
|
+
"headers": Object {
|
|
74
|
+
"Accept": "application/json, text/plain, */*",
|
|
75
|
+
"Content-Type": "application/json",
|
|
76
|
+
},
|
|
77
|
+
"method": "GET",
|
|
78
|
+
"queryParams": Object {
|
|
79
|
+
"entity_type": "global",
|
|
80
|
+
},
|
|
81
|
+
"url": "https://google.com/access-control/restricted-countries",
|
|
82
|
+
}
|
|
83
|
+
`;
|
|
84
|
+
|
|
71
85
|
exports[`Communicator requests registration 1`] = `
|
|
72
86
|
Object {
|
|
73
87
|
"body": "{\\"name\\":\\"_companyName_\\",\\"country_code\\":\\"CAN\\",\\"source\\":{\\"hash\\":\\"_hash_\\",\\"device_type\\":\\"mobile\\",\\"ga_id\\":\\"_gaId_\\",\\"origin\\":\\"_origin_\\"}}",
|
|
@@ -2,13 +2,15 @@ import {AccountTracker} from "../src";
|
|
|
2
2
|
import {accountTrackerInitPropsNormal} from "./testunits/accountTracker/general";
|
|
3
3
|
import {emailVerifyEvents, phoneVerifyEvents, registrationSuccessEvents} from "./testunits/accountTracker/events";
|
|
4
4
|
|
|
5
|
-
const mockGtag = jest.fn().mockImplementation();
|
|
6
5
|
const mockLintrk = jest.fn().mockImplementation();
|
|
6
|
+
const mockGtmDataLayer = [];
|
|
7
|
+
|
|
7
8
|
const accountTrackerInitProps = {
|
|
8
9
|
...accountTrackerInitPropsNormal,
|
|
9
|
-
|
|
10
|
+
gtmDataLayer: mockGtmDataLayer,
|
|
10
11
|
lintrk: mockLintrk,
|
|
11
12
|
};
|
|
13
|
+
|
|
12
14
|
const accountTracker = new AccountTracker(accountTrackerInitProps);
|
|
13
15
|
|
|
14
16
|
describe('AccountTracker', () => {
|
|
@@ -19,9 +21,7 @@ describe('AccountTracker', () => {
|
|
|
19
21
|
test('sendPhoneVerifyEvent', () => {
|
|
20
22
|
accountTracker.sendPhoneVerifyEvent();
|
|
21
23
|
|
|
22
|
-
expect(
|
|
23
|
-
expect(mockGtag.mock.calls[0][2]).toEqual(phoneVerifyEvents.ga4.event);
|
|
24
|
-
expect(mockGtag).toHaveBeenCalled();
|
|
24
|
+
expect(mockGtmDataLayer[0]).toEqual({...phoneVerifyEvents.gtm});
|
|
25
25
|
|
|
26
26
|
expect(mockLintrk.mock.calls[0][0]).toBe(phoneVerifyEvents.linkedIn.action);
|
|
27
27
|
expect(mockLintrk.mock.calls[0][1]).toEqual(phoneVerifyEvents.linkedIn.event);
|
|
@@ -31,9 +31,7 @@ describe('AccountTracker', () => {
|
|
|
31
31
|
test('sendEmailVerifyEvent', () => {
|
|
32
32
|
accountTracker.sendEmailVerifyEvent();
|
|
33
33
|
|
|
34
|
-
expect(
|
|
35
|
-
expect(mockGtag.mock.calls[0][2]).toEqual(emailVerifyEvents.ga4.event);
|
|
36
|
-
expect(mockGtag).toHaveBeenCalled();
|
|
34
|
+
expect(mockGtmDataLayer[1]).toEqual({...emailVerifyEvents.gtm});
|
|
37
35
|
|
|
38
36
|
expect(mockLintrk.mock.calls[0][0]).toBe(emailVerifyEvents.linkedIn.action);
|
|
39
37
|
expect(mockLintrk.mock.calls[0][1]).toEqual(emailVerifyEvents.linkedIn.event);
|
|
@@ -43,7 +41,7 @@ describe('AccountTracker', () => {
|
|
|
43
41
|
test('sendRegistrationSuccessEvent', () => {
|
|
44
42
|
accountTracker.sendRegistrationSuccessEvent();
|
|
45
43
|
|
|
46
|
-
expect(
|
|
44
|
+
expect(mockGtmDataLayer).toHaveLength(2);
|
|
47
45
|
|
|
48
46
|
expect(mockLintrk.mock.calls[0][0]).toBe(registrationSuccessEvents.linkedIn.action);
|
|
49
47
|
expect(mockLintrk.mock.calls[0][1]).toEqual(registrationSuccessEvents.linkedIn.event);
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
signUpData,
|
|
15
15
|
verifyChallengeData,
|
|
16
16
|
setStorageValuesData,
|
|
17
|
+
getRestrictedCountriesData,
|
|
17
18
|
} from "./testunits/communicator/requests";
|
|
18
19
|
import {communicatorTestData} from "./testunits/communicator/general";
|
|
19
20
|
|
|
@@ -102,4 +103,9 @@ describe('Communicator requests', () => {
|
|
|
102
103
|
const setStorageValuesRequestData = await communicator.setStorageValues(setStorageValuesData);
|
|
103
104
|
expect(setStorageValuesRequestData).toMatchSnapshot();
|
|
104
105
|
});
|
|
106
|
+
|
|
107
|
+
test('getRestrictedCountries', async () => {
|
|
108
|
+
const getRestrictedCountriesRequestData = await communicator.getRestrictedCountries(getRestrictedCountriesData);
|
|
109
|
+
expect(getRestrictedCountriesRequestData).toMatchSnapshot();
|
|
110
|
+
});
|
|
105
111
|
});
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import {accountTrackerInitPropsNormal} from "./general";
|
|
2
2
|
|
|
3
3
|
const phoneVerifyEvents = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
contact: 'phone',
|
|
8
|
-
origin: accountTrackerInitPropsNormal.origin,
|
|
9
|
-
send_to: accountTrackerInitPropsNormal.ga4Id,
|
|
10
|
-
},
|
|
4
|
+
gtm: {
|
|
5
|
+
event: 'phone',
|
|
6
|
+
origin: accountTrackerInitPropsNormal.origin,
|
|
11
7
|
},
|
|
12
8
|
linkedIn: {
|
|
13
9
|
action: 'track',
|
|
@@ -18,13 +14,9 @@ const phoneVerifyEvents = {
|
|
|
18
14
|
};
|
|
19
15
|
|
|
20
16
|
const emailVerifyEvents = {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
contact: 'email',
|
|
25
|
-
origin: accountTrackerInitPropsNormal.origin,
|
|
26
|
-
send_to: accountTrackerInitPropsNormal.ga4Id,
|
|
27
|
-
},
|
|
17
|
+
gtm: {
|
|
18
|
+
event: 'email',
|
|
19
|
+
origin: accountTrackerInitPropsNormal.origin,
|
|
28
20
|
},
|
|
29
21
|
linkedIn: {
|
|
30
22
|
action: 'track',
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
TCreateSessionRequestData,
|
|
3
|
-
TEmailUpdateRequestData,
|
|
3
|
+
TEmailUpdateRequestData,
|
|
4
|
+
TGetCurrentUserProfileRequestData,
|
|
5
|
+
TGetRestrictedCountriesData,
|
|
6
|
+
TRegistrationRequestData,
|
|
4
7
|
TSetupChallengeRequestData,
|
|
5
8
|
TSignInByMobileRequestData,
|
|
6
9
|
TSignUpByMobileRequestData,
|
|
7
|
-
TVerifyChallengeRequestData,
|
|
8
10
|
TStorageRequestData,
|
|
11
|
+
TVerifyChallengeRequestData,
|
|
9
12
|
} from "../../../src/types";
|
|
10
13
|
import {communicatorTestData} from "./general";
|
|
14
|
+
import {CountryTypeEnum} from "../../../src/enums";
|
|
11
15
|
|
|
12
16
|
const signInData: TSignInByMobileRequestData = {
|
|
13
17
|
phoneNumber: communicatorTestData.phoneNumber,
|
|
@@ -59,6 +63,10 @@ const setStorageValuesData: TStorageRequestData = {
|
|
|
59
63
|
origin: communicatorTestData.origin,
|
|
60
64
|
};
|
|
61
65
|
|
|
66
|
+
const getRestrictedCountriesData: TGetRestrictedCountriesData = {
|
|
67
|
+
entityType: CountryTypeEnum.GLOBAL
|
|
68
|
+
};
|
|
69
|
+
|
|
62
70
|
export {
|
|
63
71
|
signInData,
|
|
64
72
|
signUpData,
|
|
@@ -69,4 +77,5 @@ export {
|
|
|
69
77
|
getCurrentUserProfileData,
|
|
70
78
|
registrationData,
|
|
71
79
|
setStorageValuesData,
|
|
80
|
+
getRestrictedCountriesData,
|
|
72
81
|
};
|