@glissandoo/lib 1.105.4 → 1.106.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/functions/groupPlayer.d.ts +22 -3
- package/functions/index.d.ts +6 -4
- package/functions/index.js +6 -4
- package/functions/regions.js +2 -0
- package/models/Group/types.d.ts +3 -1
- package/models/Group/types.js +2 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InstrumentId } from '../helpers/instruments';
|
|
2
2
|
import { LanguagesTypes } from '../lang';
|
|
3
3
|
import { AdminPermissions } from '../models/Group/types';
|
|
4
|
-
import { UserRegisterVia } from '../models/User/types';
|
|
4
|
+
import { UserBasicData, UserRegisterVia } from '../models/User/types';
|
|
5
5
|
export declare namespace GroupPlayerFbFunctionsTypes {
|
|
6
6
|
interface SetPermissionsParams {
|
|
7
7
|
userId: string;
|
|
@@ -26,10 +26,11 @@ export declare namespace GroupPlayerFbFunctionsTypes {
|
|
|
26
26
|
instruments: InstrumentId[];
|
|
27
27
|
lang: LanguagesTypes;
|
|
28
28
|
via: UserRegisterVia;
|
|
29
|
+
addExistingUser: boolean;
|
|
29
30
|
}
|
|
30
31
|
type AddPlayerResult = {
|
|
31
|
-
status: 'invitation-sent' | '
|
|
32
|
-
|
|
32
|
+
status: 'invitation-sent' | 'existing-user' | 'user-added' | 'add-fake-user';
|
|
33
|
+
user: UserBasicData;
|
|
33
34
|
};
|
|
34
35
|
interface JoinGroupParams {
|
|
35
36
|
groupId: string;
|
|
@@ -53,4 +54,22 @@ export declare namespace GroupPlayerFbFunctionsTypes {
|
|
|
53
54
|
instruments: InstrumentId[];
|
|
54
55
|
}
|
|
55
56
|
type UpdateInstrumentsResult = void;
|
|
57
|
+
interface LinkFakeAccountParams {
|
|
58
|
+
playerId: string;
|
|
59
|
+
groupId: string;
|
|
60
|
+
email: string;
|
|
61
|
+
addExistingUser: boolean;
|
|
62
|
+
}
|
|
63
|
+
type LinkFakeAccountResult = {
|
|
64
|
+
status: 'invitation-sent' | 'existing-user' | 'user-added';
|
|
65
|
+
user: UserBasicData;
|
|
66
|
+
};
|
|
67
|
+
interface EditFakeInfoParams {
|
|
68
|
+
playerId: string;
|
|
69
|
+
groupId: string;
|
|
70
|
+
name: string;
|
|
71
|
+
lastname: string;
|
|
72
|
+
photoURL: string;
|
|
73
|
+
}
|
|
74
|
+
type EditFakeInfoResult = void;
|
|
56
75
|
}
|
package/functions/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare enum FbFunctionName {
|
|
2
|
-
AuthGetToken = "
|
|
3
|
-
AuthLogin = "
|
|
4
|
-
AuthLogout = "
|
|
5
|
-
AuthStatus = "
|
|
2
|
+
AuthGetToken = "authGetToken",
|
|
3
|
+
AuthLogin = "authLogin",
|
|
4
|
+
AuthLogout = "authLogout",
|
|
5
|
+
AuthStatus = "authStatuss",
|
|
6
6
|
CommunicationCommentPublish = "communicationComment-publish",
|
|
7
7
|
CommunicationEdit = "communication-edit",
|
|
8
8
|
CommunicationPublish = "communication-publish",
|
|
@@ -81,8 +81,10 @@ export declare enum FbFunctionName {
|
|
|
81
81
|
GroupPlayerEventOnUpdate = "groupPlayerEvent-onUpdate",
|
|
82
82
|
GroupPlayerJoin = "groupPlayer-joinGroup",
|
|
83
83
|
GroupPlayerLeave = "groupPlayer-leave",
|
|
84
|
+
GroupPlayerLinkFakeAccount = "groupPlayer-linkFakeAccount",
|
|
84
85
|
GroupPlayerOnUpdate = "groupPlayer-onUpdate",
|
|
85
86
|
GroupPlayerRemove = "groupPlayer-remove",
|
|
87
|
+
GroupPlayerEditFakeInfo = "groupPlayer-editFakeInfo",
|
|
86
88
|
GroupPlayerSetPermissions = "groupPlayer-updatePermis",
|
|
87
89
|
GroupPlayerUpdateInstruments = "groupPlayer-updateInstruments",
|
|
88
90
|
GroupPublish = "group-publish",
|
package/functions/index.js
CHANGED
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FbFunctionName = void 0;
|
|
4
4
|
var FbFunctionName;
|
|
5
5
|
(function (FbFunctionName) {
|
|
6
|
-
FbFunctionName["AuthGetToken"] = "
|
|
7
|
-
FbFunctionName["AuthLogin"] = "
|
|
8
|
-
FbFunctionName["AuthLogout"] = "
|
|
9
|
-
FbFunctionName["AuthStatus"] = "
|
|
6
|
+
FbFunctionName["AuthGetToken"] = "authGetToken";
|
|
7
|
+
FbFunctionName["AuthLogin"] = "authLogin";
|
|
8
|
+
FbFunctionName["AuthLogout"] = "authLogout";
|
|
9
|
+
FbFunctionName["AuthStatus"] = "authStatuss";
|
|
10
10
|
FbFunctionName["CommunicationCommentPublish"] = "communicationComment-publish";
|
|
11
11
|
FbFunctionName["CommunicationEdit"] = "communication-edit";
|
|
12
12
|
FbFunctionName["CommunicationPublish"] = "communication-publish";
|
|
@@ -85,8 +85,10 @@ var FbFunctionName;
|
|
|
85
85
|
FbFunctionName["GroupPlayerEventOnUpdate"] = "groupPlayerEvent-onUpdate";
|
|
86
86
|
FbFunctionName["GroupPlayerJoin"] = "groupPlayer-joinGroup";
|
|
87
87
|
FbFunctionName["GroupPlayerLeave"] = "groupPlayer-leave";
|
|
88
|
+
FbFunctionName["GroupPlayerLinkFakeAccount"] = "groupPlayer-linkFakeAccount";
|
|
88
89
|
FbFunctionName["GroupPlayerOnUpdate"] = "groupPlayer-onUpdate";
|
|
89
90
|
FbFunctionName["GroupPlayerRemove"] = "groupPlayer-remove";
|
|
91
|
+
FbFunctionName["GroupPlayerEditFakeInfo"] = "groupPlayer-editFakeInfo";
|
|
90
92
|
FbFunctionName["GroupPlayerSetPermissions"] = "groupPlayer-updatePermis";
|
|
91
93
|
FbFunctionName["GroupPlayerUpdateInstruments"] = "groupPlayer-updateInstruments";
|
|
92
94
|
FbFunctionName["GroupPublish"] = "group-publish";
|
package/functions/regions.js
CHANGED
|
@@ -90,6 +90,8 @@ const regionByFunctions = {
|
|
|
90
90
|
[index_1.FbFunctionName.GroupPlayerAdd]: GCloudRegions.UsCentral1,
|
|
91
91
|
[index_1.FbFunctionName.GroupPlayerAddPlayer]: GCloudRegions.EuropeWest6,
|
|
92
92
|
[index_1.FbFunctionName.GroupPlayerEventOnUpdate]: GCloudRegions.UsCentral1,
|
|
93
|
+
[index_1.FbFunctionName.GroupPlayerEditFakeInfo]: GCloudRegions.EuropeWest6,
|
|
94
|
+
[index_1.FbFunctionName.GroupPlayerLinkFakeAccount]: GCloudRegions.EuropeWest6,
|
|
93
95
|
[index_1.FbFunctionName.GroupPlayerJoin]: GCloudRegions.UsCentral1,
|
|
94
96
|
[index_1.FbFunctionName.GroupPlayerLeave]: GCloudRegions.UsCentral1,
|
|
95
97
|
[index_1.FbFunctionName.GroupPlayerOnUpdate]: GCloudRegions.UsCentral1,
|
package/models/Group/types.d.ts
CHANGED
|
@@ -23,7 +23,9 @@ export declare enum GroupHistoryAction {
|
|
|
23
23
|
EditLocation = "edit_location",
|
|
24
24
|
EditMusicStyle = "edit_music_style",
|
|
25
25
|
EditUsername = "edit_username",
|
|
26
|
-
EditPhoto = "edit_photo"
|
|
26
|
+
EditPhoto = "edit_photo",
|
|
27
|
+
LinkFakeAccount = "link_fake_account",
|
|
28
|
+
EditFakeAccountInfo = "edit_fake_account_info"
|
|
27
29
|
}
|
|
28
30
|
export declare enum GroupCustomFieldType {
|
|
29
31
|
TEXT = "text",
|
package/models/Group/types.js
CHANGED
|
@@ -20,6 +20,8 @@ var GroupHistoryAction;
|
|
|
20
20
|
GroupHistoryAction["EditMusicStyle"] = "edit_music_style";
|
|
21
21
|
GroupHistoryAction["EditUsername"] = "edit_username";
|
|
22
22
|
GroupHistoryAction["EditPhoto"] = "edit_photo";
|
|
23
|
+
GroupHistoryAction["LinkFakeAccount"] = "link_fake_account";
|
|
24
|
+
GroupHistoryAction["EditFakeAccountInfo"] = "edit_fake_account_info";
|
|
23
25
|
})(GroupHistoryAction = exports.GroupHistoryAction || (exports.GroupHistoryAction = {}));
|
|
24
26
|
// types/CustomFields.ts
|
|
25
27
|
var GroupCustomFieldType;
|