@os-team/profile 1.2.4 → 1.2.5
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/package.json +16 -18
- package/src/AppRouter.tsx +1 -1
- package/src/schema.graphql +61 -56
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@os-team/profile",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"repository": "git@gitlab.com:os-team/libs/profile.git",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"registry": "https://registry.npmjs.org"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@os-design/core": "^1.0.
|
|
39
|
-
"@os-design/form": "^1.0.
|
|
40
|
-
"@os-design/icons": "^1.0.
|
|
41
|
-
"@os-design/media": "^1.0.
|
|
42
|
-
"@os-design/styles": "^1.0.
|
|
43
|
-
"@os-design/theming": "^1.0.
|
|
44
|
-
"@os-design/utils": "^1.0.
|
|
45
|
-
"@os-team/plural-forms": "^1.0.
|
|
38
|
+
"@os-design/core": "^1.0.264",
|
|
39
|
+
"@os-design/form": "^1.0.99",
|
|
40
|
+
"@os-design/icons": "^1.0.67",
|
|
41
|
+
"@os-design/media": "^1.0.31",
|
|
42
|
+
"@os-design/styles": "^1.0.64",
|
|
43
|
+
"@os-design/theming": "^1.0.60",
|
|
44
|
+
"@os-design/utils": "^1.0.84",
|
|
45
|
+
"@os-team/plural-forms": "^1.0.16"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@babel/cli": "^7.25.9",
|
|
@@ -54,19 +54,17 @@
|
|
|
54
54
|
"@emotion/react": "^11.13.5",
|
|
55
55
|
"@emotion/serialize": "^1.3.3",
|
|
56
56
|
"@emotion/styled": "^11.13.5",
|
|
57
|
-
"@os-team/prettier-config": "1.2.
|
|
58
|
-
"@os-team/relay-network-creator": "^1.3.
|
|
59
|
-
"@os-team/relay-network-mw-upload": "^1.2.
|
|
60
|
-
"@types/node": "^22.10.
|
|
57
|
+
"@os-team/prettier-config": "1.2.8",
|
|
58
|
+
"@os-team/relay-network-creator": "^1.3.2",
|
|
59
|
+
"@os-team/relay-network-mw-upload": "^1.2.26",
|
|
60
|
+
"@types/node": "^22.10.1",
|
|
61
61
|
"@types/react": "^18.3.12",
|
|
62
62
|
"@types/react-dom": "^18.3.1",
|
|
63
63
|
"@types/react-relay": "^16.0.6",
|
|
64
|
-
"@typescript-eslint/eslint-plugin": "^8.16.0",
|
|
65
|
-
"@typescript-eslint/parser": "^8.16.0",
|
|
66
64
|
"babel-plugin-relay": "^18.2.0",
|
|
67
65
|
"cross-env": "^7.0.3",
|
|
68
|
-
"eslint": "^9.
|
|
69
|
-
"eslint-config-os-team-react": "1.2.
|
|
66
|
+
"eslint": "^9.16.0",
|
|
67
|
+
"eslint-config-os-team-react": "1.2.27",
|
|
70
68
|
"get-graphql-schema": "^2.1.2",
|
|
71
69
|
"graphql": "^16.9.0",
|
|
72
70
|
"husky": "^9.1.7",
|
|
@@ -81,7 +79,7 @@
|
|
|
81
79
|
"react": "^18.3.1",
|
|
82
80
|
"react-app-rewired": "^2.2.1",
|
|
83
81
|
"react-dom": "^18.3.1",
|
|
84
|
-
"react-i18next": "^15.1.
|
|
82
|
+
"react-i18next": "^15.1.3",
|
|
85
83
|
"react-relay": "^18.2.0",
|
|
86
84
|
"react-router": "^7.0.1",
|
|
87
85
|
"react-scripts": "^5.0.1",
|
package/src/AppRouter.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import HomePage from './pages/HomePage';
|
|
|
5
5
|
const AppRouter: React.FC = () => (
|
|
6
6
|
<Routes>
|
|
7
7
|
<Route path='home' element={<HomePage />} />
|
|
8
|
-
<Route path='*' element={<Navigate replace to='home' />} />
|
|
8
|
+
<Route path='*' element={<Navigate replace to='/home' />} />
|
|
9
9
|
</Routes>
|
|
10
10
|
);
|
|
11
11
|
|
package/src/schema.graphql
CHANGED
|
@@ -4,6 +4,11 @@ directive @specifiedBy(
|
|
|
4
4
|
url: String!
|
|
5
5
|
) on SCALAR
|
|
6
6
|
|
|
7
|
+
"""
|
|
8
|
+
Indicates exactly one field must be supplied and this field must not be `null`.
|
|
9
|
+
"""
|
|
10
|
+
directive @oneOf on INPUT_OBJECT
|
|
11
|
+
|
|
7
12
|
input AddToVocabularyInput {
|
|
8
13
|
collectionUrlSlug: ID!
|
|
9
14
|
}
|
|
@@ -33,7 +38,7 @@ type Answer implements Node {
|
|
|
33
38
|
}
|
|
34
39
|
|
|
35
40
|
type AuthPayload {
|
|
36
|
-
userId:
|
|
41
|
+
userId: Int!
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
type BlogLanguage implements Node {
|
|
@@ -620,7 +625,7 @@ input ForgotPasswordInput {
|
|
|
620
625
|
|
|
621
626
|
type ForgotPasswordPayload {
|
|
622
627
|
recoveryLinkIsSent: Boolean!
|
|
623
|
-
limitExpiresAt:
|
|
628
|
+
limitExpiresAt: Long!
|
|
624
629
|
}
|
|
625
630
|
|
|
626
631
|
"""
|
|
@@ -821,9 +826,6 @@ type Mutation {
|
|
|
821
826
|
createEnglishLevel(input: CreateEnglishLevelInput!): EnglishLevel!
|
|
822
827
|
updateEnglishLevel(input: UpdateEnglishLevelInput!): EnglishLevel!
|
|
823
828
|
deleteEnglishLevel(input: DeleteInput!): StatusPayload!
|
|
824
|
-
createEntry(input: CreateEntryInput!): UserEntry!
|
|
825
|
-
updateEntry(input: UpdateEntryInput!): Entry!
|
|
826
|
-
deleteEntry(input: DeleteInput!): StatusPayload!
|
|
827
829
|
createLanguage(input: CreateLanguageInput!): Language!
|
|
828
830
|
updateLanguage(input: UpdateLanguageInput!): Language!
|
|
829
831
|
deleteLanguage(input: DeleteInput!): StatusPayload!
|
|
@@ -842,8 +844,11 @@ type Mutation {
|
|
|
842
844
|
updateUserVideoTime(input: UpdateUserVideoTimeInput!): StatusPayload!
|
|
843
845
|
completeUserVideoStep(input: CompleteUserVideoStepInput!): UserVideo!
|
|
844
846
|
createCollectionByVideo(input: CreateCollectionByVideoInput!): UserVideo!
|
|
845
|
-
createUserVideoEntry(input: CreateUserVideoEntryInput!): UserVideoEntry!
|
|
846
847
|
addVideo(input: AddVideoInput!): UserVideo!
|
|
848
|
+
createEntry(input: CreateEntryInput!): UserEntry!
|
|
849
|
+
updateEntry(input: UpdateEntryInput!): Entry!
|
|
850
|
+
deleteEntry(input: DeleteInput!): StatusPayload!
|
|
851
|
+
createUserVideoEntry(input: CreateUserVideoEntryInput!): UserVideoEntry!
|
|
847
852
|
}
|
|
848
853
|
|
|
849
854
|
type NativeLanguage {
|
|
@@ -1262,41 +1267,6 @@ type Query {
|
|
|
1262
1267
|
"""
|
|
1263
1268
|
before: String
|
|
1264
1269
|
): EnglishLevelConnection!
|
|
1265
|
-
translate(text: String!): TranslatePayload!
|
|
1266
|
-
textToSpeech(text: String!): TextToSpeechPayload!
|
|
1267
|
-
sharedEntry(id: ID!): Entry!
|
|
1268
|
-
sharedEntries(
|
|
1269
|
-
"""
|
|
1270
|
-
{"en":"The number of items on the page. Used for forward
|
|
1271
|
-
pagination.","ru":"Количество элементов на странице. Используется для
|
|
1272
|
-
навигации вперед."}
|
|
1273
|
-
"""
|
|
1274
|
-
first: Int
|
|
1275
|
-
|
|
1276
|
-
"""
|
|
1277
|
-
{"en":"The cursor of the item relative to which the next items should be
|
|
1278
|
-
returned. Used for forward pagination.","ru":"Курсор элемента, относительно
|
|
1279
|
-
которого должны быть возвращены следующие элементы. Используется для
|
|
1280
|
-
навигации вперед."}
|
|
1281
|
-
"""
|
|
1282
|
-
after: String
|
|
1283
|
-
|
|
1284
|
-
"""
|
|
1285
|
-
{"en":"The number of items on the page. Used for backward
|
|
1286
|
-
pagination.","ru":"Количество элементов на странице. Используется для
|
|
1287
|
-
навигации назад."}
|
|
1288
|
-
"""
|
|
1289
|
-
last: Int
|
|
1290
|
-
|
|
1291
|
-
"""
|
|
1292
|
-
{"en":"The cursor of the item relative to which the previous items should be
|
|
1293
|
-
returned. Used for backward pagination.","ru":"Курсор элемента, относительно
|
|
1294
|
-
которого должны быть возвращены предыдущие элементы. Используется для
|
|
1295
|
-
навигации назад."}
|
|
1296
|
-
"""
|
|
1297
|
-
before: String
|
|
1298
|
-
collectionUrlSlug: String!
|
|
1299
|
-
): EntryConnection!
|
|
1300
1270
|
language(code: String!): Language!
|
|
1301
1271
|
languages(
|
|
1302
1272
|
"""
|
|
@@ -1569,7 +1539,7 @@ type Query {
|
|
|
1569
1539
|
before: String
|
|
1570
1540
|
know: Boolean!
|
|
1571
1541
|
): UserVideoConnection!
|
|
1572
|
-
|
|
1542
|
+
videos(
|
|
1573
1543
|
"""
|
|
1574
1544
|
{"en":"The number of items on the page. Used for forward
|
|
1575
1545
|
pagination.","ru":"Количество элементов на странице. Используется для
|
|
@@ -1599,9 +1569,9 @@ type Query {
|
|
|
1599
1569
|
навигации назад."}
|
|
1600
1570
|
"""
|
|
1601
1571
|
before: String
|
|
1602
|
-
|
|
1603
|
-
):
|
|
1604
|
-
|
|
1572
|
+
duration: String
|
|
1573
|
+
): VideoConnection!
|
|
1574
|
+
searchVideos(
|
|
1605
1575
|
"""
|
|
1606
1576
|
{"en":"The number of items on the page. Used for forward
|
|
1607
1577
|
pagination.","ru":"Количество элементов на странице. Используется для
|
|
@@ -1631,9 +1601,13 @@ type Query {
|
|
|
1631
1601
|
навигации назад."}
|
|
1632
1602
|
"""
|
|
1633
1603
|
before: String
|
|
1604
|
+
searchTerm: String!
|
|
1634
1605
|
duration: String
|
|
1635
|
-
):
|
|
1636
|
-
|
|
1606
|
+
): SearchVideoListItemConnection!
|
|
1607
|
+
translate(text: String!): TranslatePayload!
|
|
1608
|
+
textToSpeech(text: String!): TextToSpeechPayload!
|
|
1609
|
+
sharedEntry(id: ID!): Entry!
|
|
1610
|
+
sharedEntries(
|
|
1637
1611
|
"""
|
|
1638
1612
|
{"en":"The number of items on the page. Used for forward
|
|
1639
1613
|
pagination.","ru":"Количество элементов на странице. Используется для
|
|
@@ -1663,9 +1637,40 @@ type Query {
|
|
|
1663
1637
|
навигации назад."}
|
|
1664
1638
|
"""
|
|
1665
1639
|
before: String
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1640
|
+
collectionUrlSlug: String!
|
|
1641
|
+
): EntryConnection!
|
|
1642
|
+
userVideoEntries(
|
|
1643
|
+
"""
|
|
1644
|
+
{"en":"The number of items on the page. Used for forward
|
|
1645
|
+
pagination.","ru":"Количество элементов на странице. Используется для
|
|
1646
|
+
навигации вперед."}
|
|
1647
|
+
"""
|
|
1648
|
+
first: Int
|
|
1649
|
+
|
|
1650
|
+
"""
|
|
1651
|
+
{"en":"The cursor of the item relative to which the next items should be
|
|
1652
|
+
returned. Used for forward pagination.","ru":"Курсор элемента, относительно
|
|
1653
|
+
которого должны быть возвращены следующие элементы. Используется для
|
|
1654
|
+
навигации вперед."}
|
|
1655
|
+
"""
|
|
1656
|
+
after: String
|
|
1657
|
+
|
|
1658
|
+
"""
|
|
1659
|
+
{"en":"The number of items on the page. Used for backward
|
|
1660
|
+
pagination.","ru":"Количество элементов на странице. Используется для
|
|
1661
|
+
навигации назад."}
|
|
1662
|
+
"""
|
|
1663
|
+
last: Int
|
|
1664
|
+
|
|
1665
|
+
"""
|
|
1666
|
+
{"en":"The cursor of the item relative to which the previous items should be
|
|
1667
|
+
returned. Used for backward pagination.","ru":"Курсор элемента, относительно
|
|
1668
|
+
которого должны быть возвращены предыдущие элементы. Используется для
|
|
1669
|
+
навигации назад."}
|
|
1670
|
+
"""
|
|
1671
|
+
before: String
|
|
1672
|
+
userVideoId: ID!
|
|
1673
|
+
): UserVideoEntryConnection!
|
|
1669
1674
|
}
|
|
1670
1675
|
|
|
1671
1676
|
type Quiz implements Node {
|
|
@@ -1697,7 +1702,7 @@ input RegisterInput {
|
|
|
1697
1702
|
|
|
1698
1703
|
type RegisterPayload {
|
|
1699
1704
|
confirmationLinkIsSent: Boolean!
|
|
1700
|
-
limitExpiresAt:
|
|
1705
|
+
limitExpiresAt: Long!
|
|
1701
1706
|
}
|
|
1702
1707
|
|
|
1703
1708
|
type RequiredSettingsPayload {
|
|
@@ -1714,7 +1719,7 @@ type ResendLinkPayload {
|
|
|
1714
1719
|
{"en":"Whether the operation was completed successfully.","ru":"Была ли операция завершена успешно."}
|
|
1715
1720
|
"""
|
|
1716
1721
|
ok: Boolean!
|
|
1717
|
-
limitExpiresAt:
|
|
1722
|
+
limitExpiresAt: Long!
|
|
1718
1723
|
}
|
|
1719
1724
|
|
|
1720
1725
|
type SearchVideoListItem {
|
|
@@ -1839,7 +1844,7 @@ type Test implements Node {
|
|
|
1839
1844
|
title: String!
|
|
1840
1845
|
description: JSON!
|
|
1841
1846
|
task: String!
|
|
1842
|
-
position:
|
|
1847
|
+
position: Int!
|
|
1843
1848
|
published: Boolean!
|
|
1844
1849
|
urlSlug: String!
|
|
1845
1850
|
metaTitle: String!
|
|
@@ -2394,7 +2399,7 @@ type Video implements Node {
|
|
|
2394
2399
|
publishedAt: Long!
|
|
2395
2400
|
title: String!
|
|
2396
2401
|
description: String!
|
|
2397
|
-
duration:
|
|
2402
|
+
duration: Int!
|
|
2398
2403
|
channel: VideoChannel!
|
|
2399
2404
|
thumbnails: [VideoThumbnail!]!
|
|
2400
2405
|
subtitles: [VideoSubtitle!]!
|
|
@@ -2488,7 +2493,7 @@ type VideoThumbnail implements Node {
|
|
|
2488
2493
|
"""
|
|
2489
2494
|
updatedAt: Long!
|
|
2490
2495
|
url: String!
|
|
2491
|
-
width:
|
|
2492
|
-
height:
|
|
2496
|
+
width: Int!
|
|
2497
|
+
height: Int!
|
|
2493
2498
|
}
|
|
2494
2499
|
|