@glissandoo/lib 1.0.22 → 1.0.23

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,5 +1,5 @@
1
1
  import { MusicStyleId } from '../helpers/musicStyles';
2
- import { GroupData, GroupStatus } from '../models/Group/types';
2
+ import { GroupBasicData, GroupData, GroupStatus } from '../models/Group/types';
3
3
  export declare namespace GroupFbFunctionsTypes {
4
4
  interface PublishParams {
5
5
  displayName: string;
@@ -29,4 +29,10 @@ export declare namespace GroupFbFunctionsTypes {
29
29
  status: GroupStatus;
30
30
  }
31
31
  type ChangeStatusResult = void;
32
+ interface GetByIdParams {
33
+ groupId: string;
34
+ }
35
+ interface GetByIdResult extends GroupBasicData {
36
+ id: string;
37
+ }
32
38
  }
@@ -9,6 +9,7 @@ export declare enum FbFunctionName {
9
9
  GroupChangeStatus = "group-changeStatus",
10
10
  GroupOnCreate = "group-onCreate",
11
11
  GroupOnUpdate = "group-onUpdate",
12
+ GroupGetById = "group-getById",
12
13
  GroupPlayerUpdateInstruments = "groupPlayer-updateInstruments",
13
14
  GroupPlayerAdd = "groupPlayer-add",
14
15
  GroupPlayerJoin = "groupPlayer-joinGroup",
@@ -13,6 +13,7 @@ var FbFunctionName;
13
13
  FbFunctionName["GroupChangeStatus"] = "group-changeStatus";
14
14
  FbFunctionName["GroupOnCreate"] = "group-onCreate";
15
15
  FbFunctionName["GroupOnUpdate"] = "group-onUpdate";
16
+ FbFunctionName["GroupGetById"] = "group-getById";
16
17
  FbFunctionName["GroupPlayerUpdateInstruments"] = "groupPlayer-updateInstruments";
17
18
  FbFunctionName["GroupPlayerAdd"] = "groupPlayer-add";
18
19
  FbFunctionName["GroupPlayerJoin"] = "groupPlayer-joinGroup";
@@ -19,6 +19,7 @@ const regionByFunctions = {
19
19
  [index_1.FbFunctionName.GroupChangeStatus]: GCloudRegions.EuropeWest6,
20
20
  [index_1.FbFunctionName.GroupOnCreate]: GCloudRegions.UsCentral1,
21
21
  [index_1.FbFunctionName.GroupOnUpdate]: GCloudRegions.UsCentral1,
22
+ [index_1.FbFunctionName.GroupGetById]: GCloudRegions.EuropeWest6,
22
23
  [index_1.FbFunctionName.GroupPlayerUpdateInstruments]: GCloudRegions.UsCentral1,
23
24
  [index_1.FbFunctionName.GroupPlayerAdd]: GCloudRegions.UsCentral1,
24
25
  [index_1.FbFunctionName.GroupPlayerJoin]: GCloudRegions.UsCentral1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",