@glissandoo/lib 1.19.0 → 1.20.1
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InstrumentId } from '../helpers/instruments';
|
|
2
|
+
import { FileSectionId } from '../models/Group/Repertory/File/Section/types';
|
|
2
3
|
import { GroupRepertoireFile, GroupRepertoireVisibility, GroupRepertoryTagAlgoliaData } from '../models/Group/Repertory/types';
|
|
3
4
|
import { ThemeMediaType } from '../models/Repertory/types';
|
|
4
5
|
export declare namespace GroupRepertoryFbFunctionsTypes {
|
|
@@ -33,10 +34,29 @@ export declare namespace GroupRepertoryFbFunctionsTypes {
|
|
|
33
34
|
themeId: string;
|
|
34
35
|
}
|
|
35
36
|
export type DownloadThemeFilesResult = void;
|
|
37
|
+
export interface DownloadFileType {
|
|
38
|
+
id: string;
|
|
39
|
+
tagId: string | null;
|
|
40
|
+
filetype: string;
|
|
41
|
+
isEncrypted: boolean;
|
|
42
|
+
pages: number[] | null;
|
|
43
|
+
path: string;
|
|
44
|
+
}
|
|
45
|
+
export interface DownloadFilesBySectionParams {
|
|
46
|
+
groupId: string;
|
|
47
|
+
themeId: string;
|
|
48
|
+
sectionId: FileSectionId;
|
|
49
|
+
files: DownloadFileType[];
|
|
50
|
+
}
|
|
51
|
+
export interface DownloadFilesBySectionResult {
|
|
52
|
+
path: string;
|
|
53
|
+
filename: string;
|
|
54
|
+
}
|
|
36
55
|
export interface IdentifyInstrumentsParams {
|
|
37
56
|
groupId: string;
|
|
38
57
|
path: string;
|
|
39
58
|
fileName: string;
|
|
59
|
+
fileId: string;
|
|
40
60
|
}
|
|
41
61
|
export interface IdentifyInstrumentItem {
|
|
42
62
|
page: number;
|
package/functions/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ export declare enum FbFunctionName {
|
|
|
55
55
|
GroupRemove = "group-remove",
|
|
56
56
|
GroupRepertoryClaimMusicSheet = "groupRepertory-claimMusicSheet",
|
|
57
57
|
GroupRepertoryDownloadThemeFiles = "groupRepertory-downloadThemeFiles",
|
|
58
|
+
GroupRepertoryDownloadFilesBySection = "groupRepertory-downloadFilesBySection",
|
|
58
59
|
GroupRepertoryEdit = "groupRepertory-edit",
|
|
59
60
|
GroupRepertoryIdentifyInstruments = "groupRepertory-identifyInstruments",
|
|
60
61
|
GroupRepertoryIdentifyInstrumentsFromFileNames = "groupRepertory-identifyInstrumentsFromFileNames",
|
package/functions/index.js
CHANGED
|
@@ -59,6 +59,7 @@ var FbFunctionName;
|
|
|
59
59
|
FbFunctionName["GroupRemove"] = "group-remove";
|
|
60
60
|
FbFunctionName["GroupRepertoryClaimMusicSheet"] = "groupRepertory-claimMusicSheet";
|
|
61
61
|
FbFunctionName["GroupRepertoryDownloadThemeFiles"] = "groupRepertory-downloadThemeFiles";
|
|
62
|
+
FbFunctionName["GroupRepertoryDownloadFilesBySection"] = "groupRepertory-downloadFilesBySection";
|
|
62
63
|
FbFunctionName["GroupRepertoryEdit"] = "groupRepertory-edit";
|
|
63
64
|
FbFunctionName["GroupRepertoryIdentifyInstruments"] = "groupRepertory-identifyInstruments";
|
|
64
65
|
FbFunctionName["GroupRepertoryIdentifyInstrumentsFromFileNames"] = "groupRepertory-identifyInstrumentsFromFileNames";
|
package/functions/regions.js
CHANGED
|
@@ -37,6 +37,7 @@ const regionByFunctions = {
|
|
|
37
37
|
[index_1.FbFunctionName.GroupRepertoryRemove]: GCloudRegions.UsCentral1,
|
|
38
38
|
[index_1.FbFunctionName.GroupRepertoryRate]: GCloudRegions.EuropeWest6,
|
|
39
39
|
[index_1.FbFunctionName.GroupRepertoryDownloadThemeFiles]: GCloudRegions.UsCentral1,
|
|
40
|
+
[index_1.FbFunctionName.GroupRepertoryDownloadFilesBySection]: GCloudRegions.EuropeWest6,
|
|
40
41
|
[index_1.FbFunctionName.GroupRepertoryIdentifyInstruments]: GCloudRegions.UsCentral1,
|
|
41
42
|
[index_1.FbFunctionName.GroupRepertoryIdentifyInstrumentsFromFileNames]: GCloudRegions.UsCentral1,
|
|
42
43
|
[index_1.FbFunctionName.GroupRepertoryClaimMusicSheet]: GCloudRegions.UsCentral1,
|
|
@@ -6,7 +6,7 @@ import Theme from '../../Repertory/basic';
|
|
|
6
6
|
import { FileSectionId } from './File/Section/types';
|
|
7
7
|
import { GroupRepertoireVisibility, GroupRepertoryData } from './types';
|
|
8
8
|
export default class GroupRepertory extends Theme<GroupRepertoryData> {
|
|
9
|
-
|
|
9
|
+
lang: LanguagesTypes;
|
|
10
10
|
constructor(doc: firestore.DocumentSnapshot, lang?: LanguagesTypes);
|
|
11
11
|
get groupId(): string;
|
|
12
12
|
get tagsAlgolia(): import("./types").GroupRepertoryTagAlgoliaData[];
|