@glissandoo/lib 1.103.2 → 1.103.4

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.
@@ -13,6 +13,18 @@ export declare namespace CommunicationFbFunctionsTypes {
13
13
  attachmentsPath: string[];
14
14
  }
15
15
  type PublishResult = void;
16
+ interface PublishByMarkdownParams {
17
+ commId: string;
18
+ groupId: string;
19
+ title: string;
20
+ message: string;
21
+ recipients: string[];
22
+ templateId: string | null;
23
+ type: CommunicationType;
24
+ imagesPath: string[];
25
+ attachmentsPath: string[];
26
+ }
27
+ type PublishByMarkdownResult = void;
16
28
  interface EditParams {
17
29
  commId: string;
18
30
  groupId: string;
@@ -93,10 +93,10 @@ export declare namespace GroupRepertoryFbFunctionsTypes {
93
93
  publisher: string | null;
94
94
  others: Record<string, string>;
95
95
  };
96
- pages: {
97
- instrument: string;
98
- label: string;
99
- }[];
96
+ pages: Record<string, {
97
+ instrument: string | undefined;
98
+ label: string | null | undefined;
99
+ }>;
100
100
  };
101
101
  export interface IdentifyInstrumentsParams {
102
102
  groupId: string;
@@ -3,6 +3,7 @@ export declare enum FbFunctionName {
3
3
  CommunicationCommentPublish = "communicationComment-publish",
4
4
  CommunicationEdit = "communication-edit",
5
5
  CommunicationPublish = "communication-publish",
6
+ CommunicationPublishByMarkdown = "communication-publishByMarkdown",
6
7
  CommunicationRemove = "communication-remove",
7
8
  CustomerAddConfirmedAdmin = "customer-addConfirmedAdmin",
8
9
  CustomerCreate = "customer-create",
@@ -7,6 +7,7 @@ var FbFunctionName;
7
7
  FbFunctionName["CommunicationCommentPublish"] = "communicationComment-publish";
8
8
  FbFunctionName["CommunicationEdit"] = "communication-edit";
9
9
  FbFunctionName["CommunicationPublish"] = "communication-publish";
10
+ FbFunctionName["CommunicationPublishByMarkdown"] = "communication-publishByMarkdown";
10
11
  FbFunctionName["CommunicationRemove"] = "communication-remove";
11
12
  FbFunctionName["CustomerAddConfirmedAdmin"] = "customer-addConfirmedAdmin";
12
13
  FbFunctionName["CustomerCreate"] = "customer-create";
@@ -14,6 +14,7 @@ const regionByFunctions = {
14
14
  [index_1.FbFunctionName.CommunicationCommentPublish]: GCloudRegions.EuropeWest6,
15
15
  [index_1.FbFunctionName.CommunicationEdit]: GCloudRegions.UsCentral1,
16
16
  [index_1.FbFunctionName.CommunicationPublish]: GCloudRegions.UsCentral1,
17
+ [index_1.FbFunctionName.CommunicationPublishByMarkdown]: GCloudRegions.EuropeWest6,
17
18
  [index_1.FbFunctionName.CommunicationRemove]: GCloudRegions.UsCentral1,
18
19
  [index_1.FbFunctionName.CustomerAddConfirmedAdmin]: GCloudRegions.EuropeWest6,
19
20
  [index_1.FbFunctionName.CustomerCreate]: GCloudRegions.EuropeWest6,
@@ -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";
@@ -7,6 +7,7 @@ export default class Communication extends ModelWithLang<CommunicationData> {
7
7
  constructor(doc: DocumentModel, lang?: LanguagesTypes);
8
8
  get title(): string;
9
9
  get message(): import("../../helpers/slate").Descendant[];
10
+ get messageMd(): string;
10
11
  get promoter(): DocumentReference;
11
12
  get promoterInfo(): import("../Group/types").GroupTinyData;
12
13
  get owner(): DocumentReference;
@@ -21,6 +21,9 @@ class Communication extends lang_2.default {
21
21
  get message() {
22
22
  return this.data.message || [];
23
23
  }
24
+ get messageMd() {
25
+ return this.data.messageMd || '';
26
+ }
24
27
  get promoter() {
25
28
  return this.data.promoter;
26
29
  }
@@ -46,6 +46,7 @@ export interface CommunicationRecipientData {
46
46
  export interface CommunicationData {
47
47
  title: string;
48
48
  message: Descendant[];
49
+ messageMd: string;
49
50
  type: CommunicationType;
50
51
  readonly promoter: DocumentReference;
51
52
  promoterInfo: GroupTinyData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.103.2",
3
+ "version": "1.103.4",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",