@glissandoo/lib 1.103.1 → 1.103.3
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/groupRepertory.d.ts +26 -0
- package/functions/index.d.ts +1 -0
- package/functions/index.js +1 -0
- package/functions/regions.js +1 -0
- package/helpers/errors.d.ts +3 -0
- package/helpers/errors.js +3 -0
- package/package.json +1 -1
|
@@ -72,6 +72,32 @@ export declare namespace GroupRepertoryFbFunctionsTypes {
|
|
|
72
72
|
path: string;
|
|
73
73
|
filename: string;
|
|
74
74
|
}
|
|
75
|
+
export interface IdentifyMetadataParams {
|
|
76
|
+
groupId: string;
|
|
77
|
+
filePath: string;
|
|
78
|
+
}
|
|
79
|
+
export interface IdentifyInstrumentItem {
|
|
80
|
+
page: number;
|
|
81
|
+
instrument?: InstrumentId;
|
|
82
|
+
predictedInstrument?: InstrumentId;
|
|
83
|
+
score?: number;
|
|
84
|
+
}
|
|
85
|
+
export type IdentifyMetadataResult = {
|
|
86
|
+
general: {
|
|
87
|
+
title: string;
|
|
88
|
+
subtitle: string | null;
|
|
89
|
+
genre: string | null;
|
|
90
|
+
composer: string | null;
|
|
91
|
+
arranger: string | null;
|
|
92
|
+
year: string | null;
|
|
93
|
+
publisher: string | null;
|
|
94
|
+
others: Record<string, string>;
|
|
95
|
+
};
|
|
96
|
+
pages: Record<string, {
|
|
97
|
+
instrument: string | undefined;
|
|
98
|
+
label: string | null | undefined;
|
|
99
|
+
}>;
|
|
100
|
+
};
|
|
75
101
|
export interface IdentifyInstrumentsParams {
|
|
76
102
|
groupId: string;
|
|
77
103
|
path: string;
|
package/functions/index.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ export declare enum FbFunctionName {
|
|
|
88
88
|
GroupRepertoryDownloadThemeFiles = "groupRepertory-downloadThemeFiles",
|
|
89
89
|
GroupRepertoryDownloadThemeBySections = "groupRepertory-downloadFilesBySections",
|
|
90
90
|
GroupRepertoryEdit = "groupRepertory-edit",
|
|
91
|
+
GroupRepertoryIdentifyMetadata = "groupRepertory-identifyMetadata",
|
|
91
92
|
GroupRepertoryIdentifyInstruments = "groupRepertory-identifyInstruments",
|
|
92
93
|
GroupRepertoryIdentifyInstrumentsFromFileNames = "groupRepertory-identifyInstrumentsFromFileNames",
|
|
93
94
|
GroupRepertoryOnCreate = "groupRepertory-onCreate",
|
package/functions/index.js
CHANGED
|
@@ -92,6 +92,7 @@ var FbFunctionName;
|
|
|
92
92
|
FbFunctionName["GroupRepertoryDownloadThemeFiles"] = "groupRepertory-downloadThemeFiles";
|
|
93
93
|
FbFunctionName["GroupRepertoryDownloadThemeBySections"] = "groupRepertory-downloadFilesBySections";
|
|
94
94
|
FbFunctionName["GroupRepertoryEdit"] = "groupRepertory-edit";
|
|
95
|
+
FbFunctionName["GroupRepertoryIdentifyMetadata"] = "groupRepertory-identifyMetadata";
|
|
95
96
|
FbFunctionName["GroupRepertoryIdentifyInstruments"] = "groupRepertory-identifyInstruments";
|
|
96
97
|
FbFunctionName["GroupRepertoryIdentifyInstrumentsFromFileNames"] = "groupRepertory-identifyInstrumentsFromFileNames";
|
|
97
98
|
FbFunctionName["GroupRepertoryOnCreate"] = "groupRepertory-onCreate";
|
package/functions/regions.js
CHANGED
|
@@ -99,6 +99,7 @@ const regionByFunctions = {
|
|
|
99
99
|
[index_1.FbFunctionName.GroupRepertoryDownloadThemeBySections]: GCloudRegions.EuropeWest6,
|
|
100
100
|
[index_1.FbFunctionName.GroupRepertoryDownloadThemeFiles]: GCloudRegions.UsCentral1,
|
|
101
101
|
[index_1.FbFunctionName.GroupRepertoryEdit]: GCloudRegions.UsCentral1,
|
|
102
|
+
[index_1.FbFunctionName.GroupRepertoryIdentifyMetadata]: GCloudRegions.EuropeWest6,
|
|
102
103
|
[index_1.FbFunctionName.GroupRepertoryIdentifyInstruments]: GCloudRegions.UsCentral1,
|
|
103
104
|
[index_1.FbFunctionName.GroupRepertoryIdentifyInstrumentsFromFileNames]: GCloudRegions.UsCentral1,
|
|
104
105
|
[index_1.FbFunctionName.GroupRepertoryOnCreate]: GCloudRegions.UsCentral1,
|
package/helpers/errors.d.ts
CHANGED
|
@@ -11,6 +11,9 @@ export declare enum HttpsErrorMessages {
|
|
|
11
11
|
InvalidLinkInvitation = "groupPlayer.join.linkNoValid",
|
|
12
12
|
InvalidJoinPlayer = "groupPlayer.join.isPlayer",
|
|
13
13
|
InvalidGroupRepertory = "error.groupRepertory.noValid",
|
|
14
|
+
GroupRepertoryNoTextRecognized = "error.groupRepertory.noTextRecognized",
|
|
15
|
+
GroupRepertoryMetadataIdentificationFailed = "error.groupRepertory.metadataIdentificationFailed",
|
|
16
|
+
InvalidGroupRepertoryMetadata = "error.groupRepertory.metadataNotValid",
|
|
14
17
|
GroupNotCurrentWithPaymentPlans = "error.group.notCurrentWithPaymentPlans",
|
|
15
18
|
InvalidEvent = "error.event.noValid",
|
|
16
19
|
InvalidEventPlayer = "error.event.noPlayer",
|
package/helpers/errors.js
CHANGED
|
@@ -12,6 +12,9 @@ var HttpsErrorMessages;
|
|
|
12
12
|
HttpsErrorMessages["InvalidLinkInvitation"] = "groupPlayer.join.linkNoValid";
|
|
13
13
|
HttpsErrorMessages["InvalidJoinPlayer"] = "groupPlayer.join.isPlayer";
|
|
14
14
|
HttpsErrorMessages["InvalidGroupRepertory"] = "error.groupRepertory.noValid";
|
|
15
|
+
HttpsErrorMessages["GroupRepertoryNoTextRecognized"] = "error.groupRepertory.noTextRecognized";
|
|
16
|
+
HttpsErrorMessages["GroupRepertoryMetadataIdentificationFailed"] = "error.groupRepertory.metadataIdentificationFailed";
|
|
17
|
+
HttpsErrorMessages["InvalidGroupRepertoryMetadata"] = "error.groupRepertory.metadataNotValid";
|
|
15
18
|
HttpsErrorMessages["GroupNotCurrentWithPaymentPlans"] = "error.group.notCurrentWithPaymentPlans";
|
|
16
19
|
HttpsErrorMessages["InvalidEvent"] = "error.event.noValid";
|
|
17
20
|
HttpsErrorMessages["InvalidEventPlayer"] = "error.event.noPlayer";
|