@foxford/sdk 5.1.0-beta-11f249f-20260505 → 6.1.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/index.cjs +1 -13
- package/index.d.cts +0 -6
- package/index.d.ts +0 -6
- package/index.js +1 -13
- package/index.js.flow +0 -7
- package/package.json +3 -3
- package/plugins/autocomplete-email.d.cts +1 -1
- package/plugins/confirm-phone.d.cts +1 -1
package/index.cjs
CHANGED
|
@@ -98,7 +98,7 @@ if (window.antibotInitialized === void 0) window.antibotInitialized = false;
|
|
|
98
98
|
var _FoxfordAntibot = class _FoxfordAntibot {
|
|
99
99
|
constructor(config = _FoxfordAntibot.DEFAULT_CONFIG) {
|
|
100
100
|
this.createAntibotFrame = (params) => {
|
|
101
|
-
if (window.location.hostname.endsWith("foxford.ru") || window.location.hostname.endsWith("netology-group.services") || this.config.debug) {
|
|
101
|
+
if (window.location.hostname.endsWith("foxford.ru") || window.location.hostname.endsWith("netology-group.services") || window.location.hostname.endsWith("foxford-school.com") || window.location.hostname.endsWith("foxford-home-school.ru") || window.location.hostname.endsWith("smartlearning.ru") || this.config.debug) {
|
|
102
102
|
const frame = _FoxfordAntibot.createFrame(params.src, params == null ? void 0 : params.onload, params == null ? void 0 : params.onerror);
|
|
103
103
|
document.body.appendChild(frame);
|
|
104
104
|
window.antibotInitialized = true;
|
|
@@ -918,7 +918,6 @@ var DEFAULT_USER = {
|
|
|
918
918
|
room: null,
|
|
919
919
|
street: null
|
|
920
920
|
},
|
|
921
|
-
algoritmika: false,
|
|
922
921
|
avatarUrl: "",
|
|
923
922
|
bonus: {
|
|
924
923
|
giftAmount: 0,
|
|
@@ -1192,9 +1191,6 @@ var _User = class _User {
|
|
|
1192
1191
|
get purchaseAnyExternshipContracts() {
|
|
1193
1192
|
return this.props.purchaseAnyExternshipContracts;
|
|
1194
1193
|
}
|
|
1195
|
-
get algoritmika() {
|
|
1196
|
-
return this.props.algoritmika;
|
|
1197
|
-
}
|
|
1198
1194
|
/**
|
|
1199
1195
|
* Глубокое клонирование объекта с защитой от циклических ссылок
|
|
1200
1196
|
* @private
|
|
@@ -1536,14 +1532,6 @@ var UserService = class {
|
|
|
1536
1532
|
yield this.api.put("/api/user/user_interest", { user_interests: data.map((i) => decamelize(i)) });
|
|
1537
1533
|
});
|
|
1538
1534
|
}
|
|
1539
|
-
/**
|
|
1540
|
-
* Пуш события посещения любой точки входа алгоритмики для установки флага кобрендинга у пользователя
|
|
1541
|
-
*/
|
|
1542
|
-
pushAlgoritmikaVisits() {
|
|
1543
|
-
return __async(this, null, function* () {
|
|
1544
|
-
yield this.api.post("/api/algoritmika_visits");
|
|
1545
|
-
});
|
|
1546
|
-
}
|
|
1547
1535
|
};
|
|
1548
1536
|
|
|
1549
1537
|
// src/utils/merge.ts
|
package/index.d.cts
CHANGED
|
@@ -171,7 +171,6 @@ interface UserDTO {
|
|
|
171
171
|
} | null;
|
|
172
172
|
freeAccessFinishesAt: null | string;
|
|
173
173
|
purchaseAnyExternshipContracts: boolean;
|
|
174
|
-
algoritmika: boolean;
|
|
175
174
|
}
|
|
176
175
|
|
|
177
176
|
declare class User {
|
|
@@ -236,7 +235,6 @@ declare class User {
|
|
|
236
235
|
get freeAccessFinishesAt(): UserDTO['freeAccessFinishesAt'];
|
|
237
236
|
get hasUnseenRoomFeatures(): UserDTO['hasUnseenRoomFeatures'];
|
|
238
237
|
get purchaseAnyExternshipContracts(): UserDTO['purchaseAnyExternshipContracts'];
|
|
239
|
-
get algoritmika(): UserDTO['algoritmika'];
|
|
240
238
|
/**
|
|
241
239
|
* Глубокое клонирование объекта с защитой от циклических ссылок
|
|
242
240
|
* @private
|
|
@@ -734,10 +732,6 @@ declare class UserService {
|
|
|
734
732
|
* @param {Partial<UserInterests>} data интересы пользователя
|
|
735
733
|
*/
|
|
736
734
|
updateMultipleUserInterests(data: Partial<UserInterests>[]): Promise<void>;
|
|
737
|
-
/**
|
|
738
|
-
* Пуш события посещения любой точки входа алгоритмики для установки флага кобрендинга у пользователя
|
|
739
|
-
*/
|
|
740
|
-
pushAlgoritmikaVisits(): Promise<void>;
|
|
741
735
|
}
|
|
742
736
|
|
|
743
737
|
interface SdkPlugin {
|
package/index.d.ts
CHANGED
|
@@ -171,7 +171,6 @@ interface UserDTO {
|
|
|
171
171
|
} | null;
|
|
172
172
|
freeAccessFinishesAt: null | string;
|
|
173
173
|
purchaseAnyExternshipContracts: boolean;
|
|
174
|
-
algoritmika: boolean;
|
|
175
174
|
}
|
|
176
175
|
|
|
177
176
|
declare class User {
|
|
@@ -236,7 +235,6 @@ declare class User {
|
|
|
236
235
|
get freeAccessFinishesAt(): UserDTO['freeAccessFinishesAt'];
|
|
237
236
|
get hasUnseenRoomFeatures(): UserDTO['hasUnseenRoomFeatures'];
|
|
238
237
|
get purchaseAnyExternshipContracts(): UserDTO['purchaseAnyExternshipContracts'];
|
|
239
|
-
get algoritmika(): UserDTO['algoritmika'];
|
|
240
238
|
/**
|
|
241
239
|
* Глубокое клонирование объекта с защитой от циклических ссылок
|
|
242
240
|
* @private
|
|
@@ -734,10 +732,6 @@ declare class UserService {
|
|
|
734
732
|
* @param {Partial<UserInterests>} data интересы пользователя
|
|
735
733
|
*/
|
|
736
734
|
updateMultipleUserInterests(data: Partial<UserInterests>[]): Promise<void>;
|
|
737
|
-
/**
|
|
738
|
-
* Пуш события посещения любой точки входа алгоритмики для установки флага кобрендинга у пользователя
|
|
739
|
-
*/
|
|
740
|
-
pushAlgoritmikaVisits(): Promise<void>;
|
|
741
735
|
}
|
|
742
736
|
|
|
743
737
|
interface SdkPlugin {
|
package/index.js
CHANGED
|
@@ -46,7 +46,7 @@ if (window.antibotInitialized === void 0) window.antibotInitialized = false;
|
|
|
46
46
|
var _FoxfordAntibot = class _FoxfordAntibot {
|
|
47
47
|
constructor(config = _FoxfordAntibot.DEFAULT_CONFIG) {
|
|
48
48
|
this.createAntibotFrame = (params) => {
|
|
49
|
-
if (window.location.hostname.endsWith("foxford.ru") || window.location.hostname.endsWith("netology-group.services") || this.config.debug) {
|
|
49
|
+
if (window.location.hostname.endsWith("foxford.ru") || window.location.hostname.endsWith("netology-group.services") || window.location.hostname.endsWith("foxford-school.com") || window.location.hostname.endsWith("foxford-home-school.ru") || window.location.hostname.endsWith("smartlearning.ru") || this.config.debug) {
|
|
50
50
|
const frame = _FoxfordAntibot.createFrame(params.src, params == null ? void 0 : params.onload, params == null ? void 0 : params.onerror);
|
|
51
51
|
document.body.appendChild(frame);
|
|
52
52
|
window.antibotInitialized = true;
|
|
@@ -866,7 +866,6 @@ var DEFAULT_USER = {
|
|
|
866
866
|
room: null,
|
|
867
867
|
street: null
|
|
868
868
|
},
|
|
869
|
-
algoritmika: false,
|
|
870
869
|
avatarUrl: "",
|
|
871
870
|
bonus: {
|
|
872
871
|
giftAmount: 0,
|
|
@@ -1140,9 +1139,6 @@ var _User = class _User {
|
|
|
1140
1139
|
get purchaseAnyExternshipContracts() {
|
|
1141
1140
|
return this.props.purchaseAnyExternshipContracts;
|
|
1142
1141
|
}
|
|
1143
|
-
get algoritmika() {
|
|
1144
|
-
return this.props.algoritmika;
|
|
1145
|
-
}
|
|
1146
1142
|
/**
|
|
1147
1143
|
* Глубокое клонирование объекта с защитой от циклических ссылок
|
|
1148
1144
|
* @private
|
|
@@ -1484,14 +1480,6 @@ var UserService = class {
|
|
|
1484
1480
|
yield this.api.put("/api/user/user_interest", { user_interests: data.map((i) => decamelize(i)) });
|
|
1485
1481
|
});
|
|
1486
1482
|
}
|
|
1487
|
-
/**
|
|
1488
|
-
* Пуш события посещения любой точки входа алгоритмики для установки флага кобрендинга у пользователя
|
|
1489
|
-
*/
|
|
1490
|
-
pushAlgoritmikaVisits() {
|
|
1491
|
-
return __async(this, null, function* () {
|
|
1492
|
-
yield this.api.post("/api/algoritmika_visits");
|
|
1493
|
-
});
|
|
1494
|
-
}
|
|
1495
1483
|
};
|
|
1496
1484
|
|
|
1497
1485
|
// src/utils/merge.ts
|
package/index.js.flow
CHANGED
|
@@ -252,7 +252,6 @@ declare interface UserDTO {
|
|
|
252
252
|
} | null;
|
|
253
253
|
freeAccessFinishesAt: null | string;
|
|
254
254
|
purchaseAnyExternshipContracts: boolean;
|
|
255
|
-
algoritmika: boolean;
|
|
256
255
|
}
|
|
257
256
|
declare class User {
|
|
258
257
|
constructor(): this;
|
|
@@ -335,7 +334,6 @@ declare class User {
|
|
|
335
334
|
UserDTO,
|
|
336
335
|
"purchaseAnyExternshipContracts"
|
|
337
336
|
>;
|
|
338
|
-
algoritmika: $PropertyType<UserDTO, "algoritmika">;
|
|
339
337
|
static createDefault(): User;
|
|
340
338
|
static fromApi(input: mixed): User;
|
|
341
339
|
isDefaultUser(): boolean;
|
|
@@ -927,11 +925,6 @@ result: LoginOrRegistrationResponse,...
|
|
|
927
925
|
updateMultipleUserInterests(
|
|
928
926
|
data: $Rest<UserInterests, { ... }>[]
|
|
929
927
|
): Promise<void>;
|
|
930
|
-
|
|
931
|
-
/**
|
|
932
|
-
* Пуш события посещения любой точки входа алгоритмики для установки флага кобрендинга у пользователя
|
|
933
|
-
*/
|
|
934
|
-
pushAlgoritmikaVisits(): Promise<void>;
|
|
935
928
|
}
|
|
936
929
|
declare interface SdkPlugin {
|
|
937
930
|
apply(sdk: Foxford): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foxford/sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Foxford sdk for external projects",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"decamelize-keys-deep": "^0.1.1",
|
|
26
26
|
"js-levenshtein": "^1.1.6",
|
|
27
27
|
"lodash": "^4.18.1",
|
|
28
|
-
"@foxford/services": "
|
|
28
|
+
"@foxford/services": "2.0.0",
|
|
29
29
|
"@foxford/types": "1.2.0"
|
|
30
30
|
},
|
|
31
31
|
"main": "./index.cjs",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
"package.json",
|
|
61
61
|
"plugins"
|
|
62
62
|
],
|
|
63
|
-
"sha": "
|
|
63
|
+
"sha": "ad5d9c8",
|
|
64
64
|
"scripts": {}
|
|
65
65
|
}
|