@glissandoo/lib 1.0.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.
Files changed (208) hide show
  1. package/functions/communication.d.ts +31 -0
  2. package/functions/communication.js +2 -0
  3. package/functions/event.d.ts +113 -0
  4. package/functions/event.js +18 -0
  5. package/functions/eventPlayer.d.ts +20 -0
  6. package/functions/eventPlayer.js +13 -0
  7. package/functions/eventRepertory.d.ts +9 -0
  8. package/functions/eventRepertory.js +2 -0
  9. package/functions/federation.d.ts +23 -0
  10. package/functions/federation.js +2 -0
  11. package/functions/federationPartnership.d.ts +34 -0
  12. package/functions/federationPartnership.js +2 -0
  13. package/functions/group.d.ts +32 -0
  14. package/functions/group.js +2 -0
  15. package/functions/groupPlayer.d.ts +37 -0
  16. package/functions/groupPlayer.js +2 -0
  17. package/functions/groupRepertory.d.ts +54 -0
  18. package/functions/groupRepertory.js +2 -0
  19. package/functions/index.d.ts +73 -0
  20. package/functions/index.js +77 -0
  21. package/functions/misc.d.ts +9 -0
  22. package/functions/misc.js +2 -0
  23. package/functions/notification.d.ts +4 -0
  24. package/functions/notification.js +2 -0
  25. package/functions/partner.d.ts +63 -0
  26. package/functions/partner.js +2 -0
  27. package/functions/partnership.d.ts +23 -0
  28. package/functions/partnership.js +2 -0
  29. package/functions/partnershipGroup.d.ts +12 -0
  30. package/functions/partnershipGroup.js +2 -0
  31. package/functions/partnershipPlan.d.ts +23 -0
  32. package/functions/partnershipPlan.js +2 -0
  33. package/functions/regions.d.ts +6 -0
  34. package/functions/regions.js +85 -0
  35. package/functions/subscription.d.ts +20 -0
  36. package/functions/subscription.js +2 -0
  37. package/functions/user.d.ts +19 -0
  38. package/functions/user.js +2 -0
  39. package/helpers/appScenes.d.ts +45 -0
  40. package/helpers/appScenes.js +49 -0
  41. package/helpers/badges.d.ts +21 -0
  42. package/helpers/badges.js +162 -0
  43. package/helpers/collections.d.ts +28 -0
  44. package/helpers/collections.js +32 -0
  45. package/helpers/instruments/index.d.ts +67 -0
  46. package/helpers/instruments/index.js +145 -0
  47. package/helpers/musicStyles/index.d.ts +9 -0
  48. package/helpers/musicStyles/index.js +16 -0
  49. package/helpers/musicStyles/orders.d.ts +4 -0
  50. package/helpers/musicStyles/orders.js +128 -0
  51. package/helpers/notifications.d.ts +40 -0
  52. package/helpers/notifications.js +120 -0
  53. package/helpers/payments.d.ts +2 -0
  54. package/helpers/payments.js +9 -0
  55. package/helpers/utils.d.ts +6 -0
  56. package/helpers/utils.js +99 -0
  57. package/index.d.ts +0 -0
  58. package/index.js +1 -0
  59. package/lang/ca.json +194 -0
  60. package/lang/de.json +194 -0
  61. package/lang/en.json +194 -0
  62. package/lang/es.json +194 -0
  63. package/lang/gl.json +194 -0
  64. package/lang/index.d.ts +1078 -0
  65. package/lang/index.js +101 -0
  66. package/models/Communication/index.d.ts +47 -0
  67. package/models/Communication/index.js +138 -0
  68. package/models/Communication/types.d.ts +53 -0
  69. package/models/Communication/types.js +13 -0
  70. package/models/Counters/index.d.ts +7 -0
  71. package/models/Counters/index.js +15 -0
  72. package/models/Counters/types.d.ts +3 -0
  73. package/models/Counters/types.js +2 -0
  74. package/models/Evento/Player/index.d.ts +17 -0
  75. package/models/Evento/Player/index.js +45 -0
  76. package/models/Evento/Player/types.d.ts +15 -0
  77. package/models/Evento/Player/types.js +8 -0
  78. package/models/Evento/Repertory/index.d.ts +9 -0
  79. package/models/Evento/Repertory/index.js +22 -0
  80. package/models/Evento/Repertory/types.d.ts +5 -0
  81. package/models/Evento/Repertory/types.js +2 -0
  82. package/models/Evento/basic.d.ts +22 -0
  83. package/models/Evento/basic.js +72 -0
  84. package/models/Evento/index.d.ts +66 -0
  85. package/models/Evento/index.js +178 -0
  86. package/models/Evento/promoter.d.ts +11 -0
  87. package/models/Evento/promoter.js +24 -0
  88. package/models/Evento/tiny.d.ts +13 -0
  89. package/models/Evento/tiny.js +32 -0
  90. package/models/Evento/types.d.ts +76 -0
  91. package/models/Evento/types.js +22 -0
  92. package/models/Federation/Partnership/index.d.ts +12 -0
  93. package/models/Federation/Partnership/index.js +31 -0
  94. package/models/Federation/Partnership/types.d.ts +8 -0
  95. package/models/Federation/Partnership/types.js +2 -0
  96. package/models/Federation/index.d.ts +20 -0
  97. package/models/Federation/index.js +54 -0
  98. package/models/Federation/types.d.ts +16 -0
  99. package/models/Federation/types.js +2 -0
  100. package/models/Group/Analytics/index.d.ts +11 -0
  101. package/models/Group/Analytics/index.js +29 -0
  102. package/models/Group/Analytics/types.d.ts +20 -0
  103. package/models/Group/Analytics/types.js +13 -0
  104. package/models/Group/Event/index.d.ts +15 -0
  105. package/models/Group/Event/index.js +38 -0
  106. package/models/Group/Event/types.d.ts +11 -0
  107. package/models/Group/Event/types.js +2 -0
  108. package/models/Group/Player/Event/index.d.ts +17 -0
  109. package/models/Group/Player/Event/index.js +42 -0
  110. package/models/Group/Player/Event/types.d.ts +8 -0
  111. package/models/Group/Player/Event/types.js +2 -0
  112. package/models/Group/Player/Log/index.d.ts +12 -0
  113. package/models/Group/Player/Log/index.js +24 -0
  114. package/models/Group/Player/Log/types.d.ts +11 -0
  115. package/models/Group/Player/Log/types.js +2 -0
  116. package/models/Group/Player/index.d.ts +55 -0
  117. package/models/Group/Player/index.js +221 -0
  118. package/models/Group/Player/types.d.ts +43 -0
  119. package/models/Group/Player/types.js +9 -0
  120. package/models/Group/Repertory/index.d.ts +67 -0
  121. package/models/Group/Repertory/index.js +149 -0
  122. package/models/Group/Repertory/types.d.ts +43 -0
  123. package/models/Group/Repertory/types.js +2 -0
  124. package/models/Group/basic.d.ts +17 -0
  125. package/models/Group/basic.js +51 -0
  126. package/models/Group/index.d.ts +43 -0
  127. package/models/Group/index.js +115 -0
  128. package/models/Group/types.d.ts +68 -0
  129. package/models/Group/types.js +21 -0
  130. package/models/Instrument/index.d.ts +9 -0
  131. package/models/Instrument/index.js +17 -0
  132. package/models/Metrics/index.d.ts +17 -0
  133. package/models/Metrics/index.js +47 -0
  134. package/models/Metrics/types.d.ts +12 -0
  135. package/models/Metrics/types.js +2 -0
  136. package/models/Model.d.ts +10 -0
  137. package/models/Model.js +21 -0
  138. package/models/MusicStyle/index.d.ts +8 -0
  139. package/models/MusicStyle/index.js +13 -0
  140. package/models/Notification/index.d.ts +12 -0
  141. package/models/Notification/index.js +26 -0
  142. package/models/Notification/types.d.ts +71 -0
  143. package/models/Notification/types.js +68 -0
  144. package/models/Partner/basic.d.ts +14 -0
  145. package/models/Partner/basic.js +43 -0
  146. package/models/Partner/index.d.ts +16 -0
  147. package/models/Partner/index.js +48 -0
  148. package/models/Partner/tiny.d.ts +9 -0
  149. package/models/Partner/tiny.js +24 -0
  150. package/models/Partner/types.d.ts +43 -0
  151. package/models/Partner/types.js +9 -0
  152. package/models/Partnership/Group/index.d.ts +8 -0
  153. package/models/Partnership/Group/index.js +17 -0
  154. package/models/Partnership/Group/types.d.ts +2 -0
  155. package/models/Partnership/Group/types.js +2 -0
  156. package/models/Partnership/Partner/Subscription/index.d.ts +19 -0
  157. package/models/Partnership/Partner/Subscription/index.js +56 -0
  158. package/models/Partnership/Partner/Subscription/types.d.ts +21 -0
  159. package/models/Partnership/Partner/Subscription/types.js +9 -0
  160. package/models/Partnership/Partner/index.d.ts +9 -0
  161. package/models/Partnership/Partner/index.js +22 -0
  162. package/models/Partnership/Partner/types.d.ts +5 -0
  163. package/models/Partnership/Partner/types.js +2 -0
  164. package/models/Partnership/Payment/index.d.ts +8 -0
  165. package/models/Partnership/Payment/index.js +18 -0
  166. package/models/Partnership/Payment/types.d.ts +6 -0
  167. package/models/Partnership/Payment/types.js +2 -0
  168. package/models/Partnership/Plan/basic.d.ts +19 -0
  169. package/models/Partnership/Plan/basic.js +65 -0
  170. package/models/Partnership/Plan/index.d.ts +12 -0
  171. package/models/Partnership/Plan/index.js +31 -0
  172. package/models/Partnership/Plan/types.d.ts +23 -0
  173. package/models/Partnership/Plan/types.js +10 -0
  174. package/models/Partnership/basic.d.ts +17 -0
  175. package/models/Partnership/basic.js +58 -0
  176. package/models/Partnership/index.d.ts +18 -0
  177. package/models/Partnership/index.js +55 -0
  178. package/models/Partnership/types.d.ts +37 -0
  179. package/models/Partnership/types.js +9 -0
  180. package/models/Payment/basic.d.ts +17 -0
  181. package/models/Payment/basic.js +53 -0
  182. package/models/Payment/index.d.ts +13 -0
  183. package/models/Payment/index.js +33 -0
  184. package/models/Payment/types.d.ts +32 -0
  185. package/models/Payment/types.js +17 -0
  186. package/models/Player/basic.d.ts +10 -0
  187. package/models/Player/basic.js +27 -0
  188. package/models/Player/types.d.ts +8 -0
  189. package/models/Player/types.js +2 -0
  190. package/models/Repertory/basic.d.ts +11 -0
  191. package/models/Repertory/basic.js +32 -0
  192. package/models/Repertory/types.d.ts +21 -0
  193. package/models/Repertory/types.js +2 -0
  194. package/models/User/Group/index.d.ts +15 -0
  195. package/models/User/Group/index.js +36 -0
  196. package/models/User/Group/types.d.ts +10 -0
  197. package/models/User/Group/types.js +2 -0
  198. package/models/User/Notification/index.d.ts +25 -0
  199. package/models/User/Notification/index.js +73 -0
  200. package/models/User/Notification/types.d.ts +25 -0
  201. package/models/User/Notification/types.js +2 -0
  202. package/models/User/basic.d.ts +13 -0
  203. package/models/User/basic.js +35 -0
  204. package/models/User/index.d.ts +46 -0
  205. package/models/User/index.js +119 -0
  206. package/models/User/types.d.ts +68 -0
  207. package/models/User/types.js +26 -0
  208. package/package.json +39 -0
@@ -0,0 +1,31 @@
1
+ import { Node } from 'slate';
2
+ import { CommunicationType } from '../models/Communication/types';
3
+ export declare namespace CommunicationFbFunctionsTypes {
4
+ interface PublishParams {
5
+ commId: string;
6
+ groupId: string;
7
+ title: string;
8
+ message: Node[];
9
+ recipients: string[];
10
+ type: CommunicationType;
11
+ imagesPath: string[];
12
+ attachmentsPath: string[];
13
+ }
14
+ type PublishResult = void;
15
+ interface EditParams {
16
+ commId: string;
17
+ groupId: string;
18
+ title: string;
19
+ message: Node[];
20
+ recipients: string[];
21
+ type: CommunicationType;
22
+ imagesPath: string[];
23
+ attachmentsPath: string[];
24
+ }
25
+ type EditResult = void;
26
+ interface RemoveParams {
27
+ commId: string;
28
+ groupId: string;
29
+ }
30
+ type RemoveResult = void;
31
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,113 @@
1
+ import { EventPlayerStatus } from '../models/Evento/Player/types';
2
+ import { EventRepeatPeriod, EventType } from '../models/Evento/types';
3
+ export declare namespace EventoFbFunctionsTypes {
4
+ export interface PublishParams {
5
+ type: EventType;
6
+ displayName: string | null;
7
+ online: boolean;
8
+ videoURL: string | null;
9
+ locality: string | null;
10
+ location: {
11
+ _latitude: number;
12
+ _longitude: number;
13
+ } | null;
14
+ groupId: string;
15
+ datetime: number;
16
+ datetimeEnd: number;
17
+ userIds: string[];
18
+ description: string | null;
19
+ period: EventRepeatPeriod | null;
20
+ until: number | null;
21
+ timezone: string;
22
+ repertory: string[];
23
+ maxAttendance: number | null;
24
+ templateId: string | null;
25
+ }
26
+ export type PublishResult = string[];
27
+ interface EditParamsBase {
28
+ eventId: string;
29
+ updateRelations: boolean;
30
+ notify: boolean;
31
+ }
32
+ export enum EditScope {
33
+ Title = "title",
34
+ Locality = "locality",
35
+ Comments = "comments",
36
+ Attendance = "attendance"
37
+ }
38
+ export interface EditTitleData {
39
+ scope: EditScope.Title;
40
+ value: {
41
+ displayName: string | null;
42
+ };
43
+ }
44
+ type EditTitleParams = EditTitleData & EditParamsBase;
45
+ export interface EditLocalityData {
46
+ scope: EditScope.Locality;
47
+ value: {
48
+ online: boolean;
49
+ videoURL: string | null;
50
+ locality: string | null;
51
+ location: {
52
+ _latitude: number;
53
+ _longitude: number;
54
+ } | null;
55
+ };
56
+ }
57
+ type EditLocalityParams = EditLocalityData & EditParamsBase;
58
+ export interface EditCommentsData {
59
+ scope: EditScope.Comments;
60
+ value: {
61
+ description: string | null;
62
+ };
63
+ }
64
+ type EditCommentsParams = EditCommentsData & EditParamsBase;
65
+ export interface EditAttendanceData {
66
+ scope: EditScope.Attendance;
67
+ value: {
68
+ maxAttendance: number | null;
69
+ };
70
+ }
71
+ type EditAttendanceParams = EditAttendanceData & EditParamsBase;
72
+ export type EditData = EditTitleData | EditLocalityData | EditCommentsData | EditAttendanceData;
73
+ export type EditParams = EditTitleParams | EditLocalityParams | EditCommentsParams | EditAttendanceParams;
74
+ export type EditResult = void;
75
+ export interface EditDatetimeParams {
76
+ eventId: string;
77
+ updateRelations: boolean;
78
+ notify: boolean;
79
+ datetime: number;
80
+ datetimeEnd: number;
81
+ timezone: string;
82
+ }
83
+ export type EditDatetimeResult = void;
84
+ export interface RemoveParams {
85
+ eventId: string;
86
+ removeRelations: boolean;
87
+ notify: boolean;
88
+ }
89
+ export type RemoveResult = void;
90
+ export interface NotifyPendingPlayersParams {
91
+ eventId: string;
92
+ force?: boolean;
93
+ }
94
+ export interface NotifyPendingPlayersResult {
95
+ sent: boolean;
96
+ message: string;
97
+ values?: {
98
+ num: number;
99
+ };
100
+ }
101
+ export enum UndoAction {
102
+ Undo = "undo"
103
+ }
104
+ export type RollcallAction = EventPlayerStatus | UndoAction;
105
+ export interface SetRollCallParams {
106
+ eventId: string;
107
+ list: {
108
+ [userId: string]: RollcallAction;
109
+ };
110
+ }
111
+ export type SetRollCallResult = void;
112
+ export {};
113
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventoFbFunctionsTypes = void 0;
4
+ var EventoFbFunctionsTypes;
5
+ (function (EventoFbFunctionsTypes) {
6
+ let EditScope;
7
+ (function (EditScope) {
8
+ EditScope["Title"] = "title";
9
+ EditScope["Locality"] = "locality";
10
+ EditScope["Comments"] = "comments";
11
+ EditScope["Attendance"] = "attendance";
12
+ })(EditScope = EventoFbFunctionsTypes.EditScope || (EventoFbFunctionsTypes.EditScope = {}));
13
+ // setRollCall
14
+ let UndoAction;
15
+ (function (UndoAction) {
16
+ UndoAction["Undo"] = "undo";
17
+ })(UndoAction = EventoFbFunctionsTypes.UndoAction || (EventoFbFunctionsTypes.UndoAction = {}));
18
+ })(EventoFbFunctionsTypes = exports.EventoFbFunctionsTypes || (exports.EventoFbFunctionsTypes = {}));
@@ -0,0 +1,20 @@
1
+ export declare namespace EventoPlayerFbFunctionsTypes {
2
+ enum SwitchAssistanceActions {
3
+ Confirm = "confirm",
4
+ Decline = "decline",
5
+ Undo = "undo"
6
+ }
7
+ interface SwitchAssistanceParams {
8
+ eventId: string;
9
+ action: SwitchAssistanceActions;
10
+ }
11
+ type SwitchAssistanceResult = void;
12
+ interface EditParams {
13
+ eventId: string;
14
+ userIds: string[];
15
+ templateId: string | null;
16
+ updateRelations: boolean;
17
+ notify: boolean;
18
+ }
19
+ type EditResult = void;
20
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventoPlayerFbFunctionsTypes = void 0;
4
+ var EventoPlayerFbFunctionsTypes;
5
+ (function (EventoPlayerFbFunctionsTypes) {
6
+ // eventPlayer-switchAssistance
7
+ let SwitchAssistanceActions;
8
+ (function (SwitchAssistanceActions) {
9
+ SwitchAssistanceActions["Confirm"] = "confirm";
10
+ SwitchAssistanceActions["Decline"] = "decline";
11
+ SwitchAssistanceActions["Undo"] = "undo";
12
+ })(SwitchAssistanceActions = EventoPlayerFbFunctionsTypes.SwitchAssistanceActions || (EventoPlayerFbFunctionsTypes.SwitchAssistanceActions = {}));
13
+ })(EventoPlayerFbFunctionsTypes = exports.EventoPlayerFbFunctionsTypes || (exports.EventoPlayerFbFunctionsTypes = {}));
@@ -0,0 +1,9 @@
1
+ export declare namespace EventoRepertoryFbFunctionsTypes {
2
+ interface EditParams {
3
+ eventId: string;
4
+ themeIds: string[];
5
+ updateRelations: boolean;
6
+ notify: boolean;
7
+ }
8
+ type EditResult = void;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ import { EventPromoterData } from '../models/Evento/types';
2
+ import { FederationData } from '../models/Federation/types';
3
+ export declare namespace FederationFbFunctionsTypes {
4
+ type CreateParams = Pick<FederationData, 'displayName' | 'photoURL' | 'email' | 'phone' | 'web' | 'address' | 'adminIds'> & {
5
+ federationId: string;
6
+ };
7
+ type CreateResult = void;
8
+ type EditParams = CreateParams;
9
+ type EditResult = void;
10
+ interface RemoveParams {
11
+ federationId: string;
12
+ }
13
+ type RemoveResult = void;
14
+ interface GetEventsParams {
15
+ federationId: string;
16
+ partnershipId: string | null;
17
+ years: number;
18
+ }
19
+ interface FederationEventData extends EventPromoterData {
20
+ id: string;
21
+ }
22
+ type GetEventsResult = FederationEventData[];
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,34 @@
1
+ export declare namespace FederationPartnershipFbFunctionsTypes {
2
+ interface AddParams {
3
+ partnershipId: string;
4
+ federationId: string;
5
+ forceConnect?: boolean;
6
+ }
7
+ type AddResult = void;
8
+ interface RemoveParams {
9
+ partnershipId: string;
10
+ federationId: string;
11
+ }
12
+ type RemoveResult = void;
13
+ interface GetByTokenParams {
14
+ token: string;
15
+ }
16
+ interface GetByTokenResult {
17
+ isConnected: boolean;
18
+ partnership: {
19
+ id: string;
20
+ displayName: string;
21
+ photoURL: string;
22
+ };
23
+ federation: {
24
+ id: string;
25
+ displayName: string;
26
+ photoURL: string;
27
+ };
28
+ }
29
+ interface ConnectParams {
30
+ partnershipId: string;
31
+ federationId: string;
32
+ }
33
+ type ConnectResult = void;
34
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ import { MusicStyleId } from '../helpers/musicStyles';
2
+ import { GroupData, GroupStatus } from '../models/Group/types';
3
+ export declare namespace GroupFbFunctionsTypes {
4
+ interface PublishParams {
5
+ displayName: string;
6
+ locality: string;
7
+ latitude: number;
8
+ longitude: number;
9
+ musicStyle: MusicStyleId;
10
+ photoURL: string;
11
+ }
12
+ interface PublishResult {
13
+ id: string;
14
+ username: string;
15
+ invitationLink: string | null;
16
+ }
17
+ type EditParams = Pick<GroupData, 'displayName' | 'locality' | 'musicStyle' | 'photoURL'> & {
18
+ groupId: string;
19
+ latitude: number;
20
+ longitude: number;
21
+ };
22
+ type EditResult = void;
23
+ interface RemoveParams {
24
+ groupId: string;
25
+ }
26
+ type RemoveResult = void;
27
+ interface ChangeStatusParams {
28
+ groupId: string;
29
+ status: GroupStatus;
30
+ }
31
+ type ChangeStatusResult = void;
32
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,37 @@
1
+ import { InstrumentId } from '../helpers/instruments';
2
+ export declare namespace GroupPlayerFbFunctionsTypes {
3
+ interface SwitchAdminParams {
4
+ userId: string;
5
+ groupId: string;
6
+ }
7
+ type SwitchAdminResult = void;
8
+ interface AddParams {
9
+ userId: string;
10
+ groupId: string;
11
+ mainInstrument: InstrumentId;
12
+ instruments: InstrumentId[];
13
+ notify: boolean;
14
+ }
15
+ type AddResult = void;
16
+ interface JoinGroupParams {
17
+ groupId: string;
18
+ mainInstrument: InstrumentId;
19
+ instruments: InstrumentId[];
20
+ }
21
+ type JoinGroupResult = void;
22
+ interface LeaveParams {
23
+ groupId: string;
24
+ }
25
+ type LeaveResult = void;
26
+ interface RemoveParams {
27
+ groupId: string;
28
+ userIds: string[];
29
+ }
30
+ type RemoveResult = void;
31
+ interface UpdateInstrumentsParams {
32
+ groupId: string;
33
+ mainInstrument: InstrumentId;
34
+ instruments: InstrumentId[];
35
+ }
36
+ type UpdateInstrumentsResult = void;
37
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,54 @@
1
+ import { InstrumentId } from '../helpers/instruments';
2
+ import { GroupRepertoryTagAlgoliaData } from '../models/Group/Repertory/types';
3
+ import { ThemeMediaType } from '../models/Repertory/types';
4
+ export declare namespace GroupRepertoryFbFunctionsTypes {
5
+ interface GroupRepertoryPublishEditParams {
6
+ themeId: string;
7
+ groupId: string;
8
+ title: string;
9
+ scoresByInstruments: boolean;
10
+ isFileIdentify: boolean;
11
+ mainFilePath: string | null;
12
+ compositor: string | null;
13
+ media: ThemeMediaType | null;
14
+ tags: string[] | null;
15
+ tagsAlgolia: GroupRepertoryTagAlgoliaData[] | null;
16
+ audios: string[] | null;
17
+ instruments: Array<{
18
+ id: InstrumentId;
19
+ pages: number[];
20
+ filesPath: string[];
21
+ }> | null;
22
+ }
23
+ export type PublishParams = GroupRepertoryPublishEditParams;
24
+ export type PublishResult = void;
25
+ export type EditParams = GroupRepertoryPublishEditParams;
26
+ export type EditResult = void;
27
+ export interface RemoveParams {
28
+ themeId: string;
29
+ groupId: string;
30
+ }
31
+ export type RemoveResult = void;
32
+ export interface ClaimMusicSheetParams {
33
+ themeId: string;
34
+ groupId: string;
35
+ instrumentId: string;
36
+ }
37
+ export type ClaimMusicSheetResult = void;
38
+ export interface DownloadThemeFilesParams {
39
+ groupId: string;
40
+ themeId: string;
41
+ }
42
+ export type DownloadThemeFilesResult = void;
43
+ export interface IdentifyInstrumentsParams {
44
+ groupId: string;
45
+ path: string;
46
+ fileName: string;
47
+ }
48
+ export interface IdentifyInstrumentItem {
49
+ page: number;
50
+ instrument?: InstrumentId;
51
+ }
52
+ export type IdentifyInstrumentsResult = IdentifyInstrumentItem[];
53
+ export {};
54
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,73 @@
1
+ export declare enum FbFunctionName {
2
+ UserRegister = "user-register",
3
+ UserOnCreate = "user-onCreate",
4
+ UserOnUpdate = "user-onUpdate",
5
+ UserGetToken = "user-getToken",
6
+ GroupPublish = "group-publish",
7
+ GroupEdit = "group-edit",
8
+ GroupRemove = "group-remove",
9
+ GroupChangeStatus = "group-changeStatus",
10
+ GroupOnCreate = "group-onCreate",
11
+ GroupOnUpdate = "group-onUpdate",
12
+ GroupPlayerUpdateInstruments = "groupPlayer-updateInstruments",
13
+ GroupPlayerAdd = "groupPlayer-add",
14
+ GroupPlayerJoin = "groupPlayer-joinGroup",
15
+ GroupPlayerRemove = "groupPlayer-remove",
16
+ GroupPlayerLeave = "groupPlayer-leave",
17
+ GroupPlayerSwitchAdmin = "groupPlayer-switchAdmin",
18
+ GroupPlayerOnUpdate = "groupPlayer-onUpdate",
19
+ GroupPlayerEventOnUpdate = "groupPlayerEvent-onUpdate",
20
+ GroupRepertoryPublish = "groupRepertory-publish",
21
+ GroupRepertoryEdit = "groupRepertory-edit",
22
+ GroupRepertoryRemove = "groupRepertory-remove",
23
+ GroupRepertoryDownloadThemeFiles = "groupRepertory-downloadThemeFiles",
24
+ GroupRepertoryIdentifyInstruments = "groupRepertory-identifyInstruments",
25
+ GroupRepertoryClaimMusicSheet = "groupRepertory-claimMusicSheet",
26
+ GroupRepertoryOnCreate = "groupRepertory-onCreate",
27
+ GroupRepertoryOnUpdate = "groupRepertory-onUpdate",
28
+ CommunicationPublish = "communication-publish",
29
+ CommunicationEdit = "communication-edit",
30
+ CommunicationRemove = "communication-remove",
31
+ EventPublish = "event-publish",
32
+ EventNotifyPendingPlayers = "event-notifyPendingPlayers",
33
+ EventSetRollcall = "event-setRollCall",
34
+ EventEdit = "event-edit",
35
+ EventEditDatetime = "event-editDatetime",
36
+ EventRemove = "event-remove",
37
+ EventOnCreate = "event-onCreate",
38
+ EventOnUpdate = "event-onUpdate",
39
+ EventPlayerSwitchAssistance = "eventPlayer-switchAssistance",
40
+ EventPlayerEdit = "eventPlayer-edit",
41
+ EventRepertoryEdit = "eventRepertory-edit",
42
+ FederationCreate = "federation-create",
43
+ FederationEdit = "federation-edit",
44
+ FederationRemove = "federation-remove",
45
+ FederationGetEvents = "federation-getEvents",
46
+ FederationPartnershipAdd = "federationPartnership-add",
47
+ FederationPartnershipRemove = "federationPartnership-remove",
48
+ FederationPartnershipGetByToken = "federationPartnership-getByToken",
49
+ FederationPartnershipConnect = "federationPartnership-connect",
50
+ MiscValidateUsername = "misc-validateUsername",
51
+ NotificationMarkAllAsReaded = "notification-markAllAsReaded",
52
+ PartnerAdd = "partner-add",
53
+ PartnerEdit = "partner-edit",
54
+ PartnerRemove = "partner-remove",
55
+ PartnerOnUpdate = "partner-onUpdate",
56
+ PartnerGetByToken = "partner-getByToken",
57
+ PartnerValidate = "partner-validate",
58
+ PartnerValidateIBAN = "partner-validateIBAN",
59
+ PartnerSendVerification = "partner-sendVerification",
60
+ SubscriptionAdd = "subscription-add",
61
+ SubscriptionCancel = "subscription-cancel",
62
+ SubscriptionResume = "subscription-resume",
63
+ PartnershipCreate = "partnership-create",
64
+ PartnershipEdit = "partnership-edit",
65
+ PartnershipGetBalance = "partnership-getBalance",
66
+ PartnershipOnUpdate = "partnership-onUpdate",
67
+ PartnershipPlanAdd = "partnershipPlan-add",
68
+ PartnershipPlanEdit = "partnershipPlan-edit",
69
+ PartnershipPlanRemove = "partnershipPlan-remove",
70
+ PartnershipPlanOnUpdate = "partnershipPlan-onUpdate",
71
+ PartnershipGroupAdd = "partnershipGroup-add",
72
+ PartnershipGroupRemove = "partnershipGroup-remove"
73
+ }
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FbFunctionName = void 0;
4
+ var FbFunctionName;
5
+ (function (FbFunctionName) {
6
+ FbFunctionName["UserRegister"] = "user-register";
7
+ FbFunctionName["UserOnCreate"] = "user-onCreate";
8
+ FbFunctionName["UserOnUpdate"] = "user-onUpdate";
9
+ FbFunctionName["UserGetToken"] = "user-getToken";
10
+ FbFunctionName["GroupPublish"] = "group-publish";
11
+ FbFunctionName["GroupEdit"] = "group-edit";
12
+ FbFunctionName["GroupRemove"] = "group-remove";
13
+ FbFunctionName["GroupChangeStatus"] = "group-changeStatus";
14
+ FbFunctionName["GroupOnCreate"] = "group-onCreate";
15
+ FbFunctionName["GroupOnUpdate"] = "group-onUpdate";
16
+ FbFunctionName["GroupPlayerUpdateInstruments"] = "groupPlayer-updateInstruments";
17
+ FbFunctionName["GroupPlayerAdd"] = "groupPlayer-add";
18
+ FbFunctionName["GroupPlayerJoin"] = "groupPlayer-joinGroup";
19
+ FbFunctionName["GroupPlayerRemove"] = "groupPlayer-remove";
20
+ FbFunctionName["GroupPlayerLeave"] = "groupPlayer-leave";
21
+ FbFunctionName["GroupPlayerSwitchAdmin"] = "groupPlayer-switchAdmin";
22
+ FbFunctionName["GroupPlayerOnUpdate"] = "groupPlayer-onUpdate";
23
+ FbFunctionName["GroupPlayerEventOnUpdate"] = "groupPlayerEvent-onUpdate";
24
+ FbFunctionName["GroupRepertoryPublish"] = "groupRepertory-publish";
25
+ FbFunctionName["GroupRepertoryEdit"] = "groupRepertory-edit";
26
+ FbFunctionName["GroupRepertoryRemove"] = "groupRepertory-remove";
27
+ FbFunctionName["GroupRepertoryDownloadThemeFiles"] = "groupRepertory-downloadThemeFiles";
28
+ FbFunctionName["GroupRepertoryIdentifyInstruments"] = "groupRepertory-identifyInstruments";
29
+ FbFunctionName["GroupRepertoryClaimMusicSheet"] = "groupRepertory-claimMusicSheet";
30
+ FbFunctionName["GroupRepertoryOnCreate"] = "groupRepertory-onCreate";
31
+ FbFunctionName["GroupRepertoryOnUpdate"] = "groupRepertory-onUpdate";
32
+ FbFunctionName["CommunicationPublish"] = "communication-publish";
33
+ FbFunctionName["CommunicationEdit"] = "communication-edit";
34
+ FbFunctionName["CommunicationRemove"] = "communication-remove";
35
+ FbFunctionName["EventPublish"] = "event-publish";
36
+ FbFunctionName["EventNotifyPendingPlayers"] = "event-notifyPendingPlayers";
37
+ FbFunctionName["EventSetRollcall"] = "event-setRollCall";
38
+ FbFunctionName["EventEdit"] = "event-edit";
39
+ FbFunctionName["EventEditDatetime"] = "event-editDatetime";
40
+ FbFunctionName["EventRemove"] = "event-remove";
41
+ FbFunctionName["EventOnCreate"] = "event-onCreate";
42
+ FbFunctionName["EventOnUpdate"] = "event-onUpdate";
43
+ FbFunctionName["EventPlayerSwitchAssistance"] = "eventPlayer-switchAssistance";
44
+ FbFunctionName["EventPlayerEdit"] = "eventPlayer-edit";
45
+ FbFunctionName["EventRepertoryEdit"] = "eventRepertory-edit";
46
+ FbFunctionName["FederationCreate"] = "federation-create";
47
+ FbFunctionName["FederationEdit"] = "federation-edit";
48
+ FbFunctionName["FederationRemove"] = "federation-remove";
49
+ FbFunctionName["FederationGetEvents"] = "federation-getEvents";
50
+ FbFunctionName["FederationPartnershipAdd"] = "federationPartnership-add";
51
+ FbFunctionName["FederationPartnershipRemove"] = "federationPartnership-remove";
52
+ FbFunctionName["FederationPartnershipGetByToken"] = "federationPartnership-getByToken";
53
+ FbFunctionName["FederationPartnershipConnect"] = "federationPartnership-connect";
54
+ FbFunctionName["MiscValidateUsername"] = "misc-validateUsername";
55
+ FbFunctionName["NotificationMarkAllAsReaded"] = "notification-markAllAsReaded";
56
+ FbFunctionName["PartnerAdd"] = "partner-add";
57
+ FbFunctionName["PartnerEdit"] = "partner-edit";
58
+ FbFunctionName["PartnerRemove"] = "partner-remove";
59
+ FbFunctionName["PartnerOnUpdate"] = "partner-onUpdate";
60
+ FbFunctionName["PartnerGetByToken"] = "partner-getByToken";
61
+ FbFunctionName["PartnerValidate"] = "partner-validate";
62
+ FbFunctionName["PartnerValidateIBAN"] = "partner-validateIBAN";
63
+ FbFunctionName["PartnerSendVerification"] = "partner-sendVerification";
64
+ FbFunctionName["SubscriptionAdd"] = "subscription-add";
65
+ FbFunctionName["SubscriptionCancel"] = "subscription-cancel";
66
+ FbFunctionName["SubscriptionResume"] = "subscription-resume";
67
+ FbFunctionName["PartnershipCreate"] = "partnership-create";
68
+ FbFunctionName["PartnershipEdit"] = "partnership-edit";
69
+ FbFunctionName["PartnershipGetBalance"] = "partnership-getBalance";
70
+ FbFunctionName["PartnershipOnUpdate"] = "partnership-onUpdate";
71
+ FbFunctionName["PartnershipPlanAdd"] = "partnershipPlan-add";
72
+ FbFunctionName["PartnershipPlanEdit"] = "partnershipPlan-edit";
73
+ FbFunctionName["PartnershipPlanRemove"] = "partnershipPlan-remove";
74
+ FbFunctionName["PartnershipPlanOnUpdate"] = "partnershipPlan-onUpdate";
75
+ FbFunctionName["PartnershipGroupAdd"] = "partnershipGroup-add";
76
+ FbFunctionName["PartnershipGroupRemove"] = "partnershipGroup-remove";
77
+ })(FbFunctionName = exports.FbFunctionName || (exports.FbFunctionName = {}));
@@ -0,0 +1,9 @@
1
+ export declare namespace MiscFbFunctionsTypes {
2
+ interface ValidateUsernameParams {
3
+ username: string;
4
+ }
5
+ interface ValidateUsernameResult {
6
+ valid: boolean;
7
+ message: string;
8
+ }
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export declare namespace NotificationFbFunctionsTypes {
2
+ type MarkAllAsReadedParams = Record<string, never>;
3
+ type MarkAllAsReadedResult = void;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,63 @@
1
+ import { BasicAddressData, PartnerData } from '../models/Partner/types';
2
+ import PartnerSubscription from '../models/Partnership/Partner/Subscription';
3
+ import { PartnershipData } from '../models/Partnership/types';
4
+ export declare namespace PartnerFbFunctionsTypes {
5
+ interface CreateParams {
6
+ partnershipId: string;
7
+ name: string;
8
+ lastname: string;
9
+ email: string;
10
+ phone: string | null;
11
+ birthdate: number | null;
12
+ address: BasicAddressData | null;
13
+ }
14
+ type CreateResult = void;
15
+ type EditParams = CreateParams & {
16
+ partnerId: string;
17
+ };
18
+ type EditResult = void;
19
+ interface RemoveParams {
20
+ partnerId: string;
21
+ partnershipId: string;
22
+ }
23
+ type RemoveResult = void;
24
+ interface ValidateParams {
25
+ partnershipId: string;
26
+ partnerId: string;
27
+ name: string;
28
+ lastname: string;
29
+ email: string;
30
+ iban: string;
31
+ phone: string | null;
32
+ birthdate: number | null;
33
+ address: Required<BasicAddressData> | null;
34
+ }
35
+ type ValidateResult = void;
36
+ interface GetByTokenParams {
37
+ token: string;
38
+ }
39
+ interface GetByTokenResult {
40
+ partner: Pick<PartnerData, 'name' | 'lastname' | 'email' | 'phone' | 'address'> & {
41
+ id: string;
42
+ birthdate: number | null;
43
+ };
44
+ partnership: Pick<PartnershipData, 'displayName' | 'photoURL' | 'email' | 'phone'> & {
45
+ id: string;
46
+ address: string;
47
+ };
48
+ subscriptions: Array<Pick<PartnerSubscription, 'name' | 'displayPrice' | 'schedule' | 'id'> & {
49
+ paymentDate: number;
50
+ }>;
51
+ }
52
+ interface ValidateIBANParams {
53
+ iban: string;
54
+ }
55
+ interface ValidateIBANResult {
56
+ valid: boolean;
57
+ }
58
+ interface SendVerificationParams {
59
+ partnerId: string;
60
+ partnershipId: string;
61
+ }
62
+ type SendVerificationResult = void;
63
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });