@glissandoo/lib 1.110.0 → 1.112.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.
@@ -9,6 +9,7 @@ export declare namespace GroupEventStageFbFunctionsTypes {
9
9
  eventTitle?: string;
10
10
  layoutMode?: AutoPlaceLayoutMode;
11
11
  performanceMode?: AutoPlacePerformanceMode;
12
+ paradeColumns?: number;
12
13
  }
13
14
  interface AutoPlaceResult {
14
15
  boardMap: Record<string, BoardCoordinates>;
@@ -133,6 +133,7 @@ export declare namespace PartnershipFbFunctionsTypes {
133
133
  }>;
134
134
  customFields: Record<string, string | number | boolean | null>;
135
135
  status: string;
136
+ acceptsCommunications: boolean;
136
137
  }
137
138
  interface PortalCommunication {
138
139
  id: string;
@@ -13,6 +13,8 @@ export declare namespace PartnershipPartnerFbFunctionsTypes {
13
13
  address: BasicAddressData | null;
14
14
  userId: string | null;
15
15
  paymentMethod: PaymentMethod | null;
16
+ partnerNumber: number | null;
17
+ acceptsCommunications: boolean;
16
18
  }
17
19
  export interface CreateData extends BaseCreateData {
18
20
  sepaMandate: SetOptional<PartnershipPartnerSepaMandate, 'mandateId'> | null;
@@ -59,6 +61,7 @@ export declare namespace PartnershipPartnerFbFunctionsTypes {
59
61
  paymentMethod?: PaymentMethod | null;
60
62
  sepaMandate?: PartnershipPartnerSepaMandate | null;
61
63
  customFieldValues?: Record<string, string | number | null>;
64
+ acceptsCommunications?: boolean;
62
65
  }
63
66
  export type PortalEditResult = void;
64
67
  export {};
@@ -33,6 +33,7 @@ export declare enum HttpsErrorMessages {
33
33
  InvalidPartnershipPartner = "error.partnershipPartner.noValid",
34
34
  PartnershipPartnerNotSelf = "error.partnershipPartner.notSelf",
35
35
  PartnershipPartnerSepaMandateMissing = "error.partnershipPartner.sepaMandateMissing",
36
+ PartnershipPartnerNumberAlreadyExists = "error.partnershipPartner.numberAlreadyExists",
36
37
  InvalidPartnershipPlan = "error.partnershipPlan.noValid",
37
38
  PartnershipPlanFirstPaymentDateAfterEndDate = "error.partnershipPlan.firstPaymentDateAfterEndDate",
38
39
  PartnershipPlanWithSubscriptions = "error.partnershipPlan.withSubscriptions",
package/helpers/errors.js CHANGED
@@ -34,6 +34,7 @@ var HttpsErrorMessages;
34
34
  HttpsErrorMessages["InvalidPartnershipPartner"] = "error.partnershipPartner.noValid";
35
35
  HttpsErrorMessages["PartnershipPartnerNotSelf"] = "error.partnershipPartner.notSelf";
36
36
  HttpsErrorMessages["PartnershipPartnerSepaMandateMissing"] = "error.partnershipPartner.sepaMandateMissing";
37
+ HttpsErrorMessages["PartnershipPartnerNumberAlreadyExists"] = "error.partnershipPartner.numberAlreadyExists";
37
38
  HttpsErrorMessages["InvalidPartnershipPlan"] = "error.partnershipPlan.noValid";
38
39
  HttpsErrorMessages["PartnershipPlanFirstPaymentDateAfterEndDate"] = "error.partnershipPlan.firstPaymentDateAfterEndDate";
39
40
  HttpsErrorMessages["PartnershipPlanWithSubscriptions"] = "error.partnershipPlan.withSubscriptions";
@@ -6,6 +6,7 @@ export default class PartnershipPartner extends ModelWithLang<PartnershipPartner
6
6
  photoURL: string;
7
7
  };
8
8
  get partnershipId(): string;
9
+ get partnerNumber(): number;
9
10
  get name(): string;
10
11
  get lastname(): string;
11
12
  get photoURL(): string;
@@ -40,4 +41,5 @@ export default class PartnershipPartner extends ModelWithLang<PartnershipPartner
40
41
  get tagIds(): string[];
41
42
  get subscriptionIds(): string[];
42
43
  get subscriptions(): Record<string, import("../Plan/types").PartnershipPlanBasicData>;
44
+ get acceptsCommunications(): boolean;
43
45
  }
@@ -17,6 +17,9 @@ class PartnershipPartner extends lang_1.default {
17
17
  get partnershipId() {
18
18
  return (0, utils_1.at)(this.ref.path.split('/'), 1) || '';
19
19
  }
20
+ get partnerNumber() {
21
+ return this.data.partnerNumber || 0;
22
+ }
20
23
  get name() {
21
24
  return this.data.name;
22
25
  }
@@ -107,5 +110,8 @@ class PartnershipPartner extends lang_1.default {
107
110
  get subscriptions() {
108
111
  return this.data.subscriptions || {};
109
112
  }
113
+ get acceptsCommunications() {
114
+ return this.data.acceptsCommunications !== false;
115
+ }
110
116
  }
111
117
  exports.default = PartnershipPartner;
@@ -18,6 +18,7 @@ export interface PartnershipPartnerSepaMandate {
18
18
  }
19
19
  export interface PartnershipPartnerData {
20
20
  userId: string | null;
21
+ partnerNumber: number;
21
22
  email: string | null;
22
23
  name: string;
23
24
  lastname: string;
@@ -33,6 +34,7 @@ export interface PartnershipPartnerData {
33
34
  subscriptionIds: string[];
34
35
  subscriptions: Record<string, PartnershipPlanBasicData>;
35
36
  customFields: Record<string, GroupPlayerCustomFieldValue>;
37
+ acceptsCommunications: boolean;
36
38
  createdAt: Timestamp;
37
39
  createdBy: DocumentReference;
38
40
  editedAt: Timestamp | null;
@@ -14,4 +14,5 @@ export default class PartnershipBasic<D> extends Model<D & PartnershipBasicData>
14
14
  get CIF(): string | null;
15
15
  get partnerCount(): number;
16
16
  get memberCount(): number;
17
+ get lastPartnerNumber(): number;
17
18
  }
@@ -19,6 +19,7 @@ class PartnershipBasic extends Model_1.default {
19
19
  memberCount: this.memberCount,
20
20
  website: this.website,
21
21
  username: this.username,
22
+ lastPartnerNumber: this.lastPartnerNumber,
22
23
  };
23
24
  }
24
25
  get displayName() {
@@ -57,5 +58,8 @@ class PartnershipBasic extends Model_1.default {
57
58
  get memberCount() {
58
59
  return this.data.memberCount || 0;
59
60
  }
61
+ get lastPartnerNumber() {
62
+ return this.data.lastPartnerNumber || 0;
63
+ }
60
64
  }
61
65
  exports.default = PartnershipBasic;
@@ -48,6 +48,7 @@ export interface PartnershipBasicData {
48
48
  memberCount: number;
49
49
  website: string | null;
50
50
  username: string;
51
+ lastPartnerNumber: number;
51
52
  }
52
53
  export interface PartnershipData extends PartnershipBasicData {
53
54
  sepaCreditorInfo: PartnershipSepaCreditorInfo | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.110.0",
3
+ "version": "1.112.0",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",