@glissandoo/lib 1.108.17 → 1.109.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.
@@ -37,6 +37,7 @@ export default class PartnershipPartner extends ModelWithLang<PartnershipPartner
37
37
  get status(): PartnerStatus;
38
38
  get userId(): string | null;
39
39
  get groupIds(): string[];
40
+ get tagIds(): string[];
40
41
  get subscriptionIds(): string[];
41
42
  get subscriptions(): Record<string, import("../Plan/types").PartnershipPlanBasicData>;
42
43
  }
@@ -98,6 +98,9 @@ class PartnershipPartner extends lang_1.default {
98
98
  get groupIds() {
99
99
  return this.data.groupIds || [];
100
100
  }
101
+ get tagIds() {
102
+ return this.data.tagIds || [];
103
+ }
101
104
  get subscriptionIds() {
102
105
  return this.data.subscriptionIds || [];
103
106
  }
@@ -29,6 +29,7 @@ export interface PartnershipPartnerData {
29
29
  sepaMandate: PartnershipPartnerSepaMandate | null;
30
30
  paymentMethod: PaymentMethod | null;
31
31
  groupIds: string[];
32
+ tagIds: string[];
32
33
  subscriptionIds: string[];
33
34
  subscriptions: Record<string, PartnershipPlanBasicData>;
34
35
  customFields: Record<string, GroupPlayerCustomFieldValue>;
@@ -1,6 +1,6 @@
1
1
  import { AdminItemStatus } from '../../helpers/types';
2
2
  import PartnershipBasic from './basic';
3
- import { APartnershipCustomField, PartnershipData, PartnershipPaymentMethodsConfig } from './types';
3
+ import { APartnershipCustomField, APartnershipTag, PartnershipData, PartnershipPaymentMethodsConfig } from './types';
4
4
  export default class Partnership extends PartnershipBasic<PartnershipData> {
5
5
  get description(): string | null;
6
6
  get admins(): string[];
@@ -28,4 +28,6 @@ export default class Partnership extends PartnershipBasic<PartnershipData> {
28
28
  get language(): import("../../lang").LanguagesTypes;
29
29
  get customFields(): Record<string, import("../Group/types").GroupCustomField>;
30
30
  get customFieldsList(): APartnershipCustomField[];
31
+ get tags(): Record<string, import("./types").PartnershipTag>;
32
+ get tagsList(): APartnershipTag[];
31
33
  }
@@ -96,5 +96,16 @@ class Partnership extends basic_1.default {
96
96
  }))
97
97
  .sort((a, b) => a.order - b.order);
98
98
  }
99
+ get tags() {
100
+ return this.data.tags || {};
101
+ }
102
+ get tagsList() {
103
+ return Object.entries(this.tags)
104
+ .map(([id, tag]) => ({
105
+ id,
106
+ ...tag,
107
+ }))
108
+ .sort((a, b) => a.order - b.order);
109
+ }
99
110
  }
100
111
  exports.default = Partnership;
@@ -4,6 +4,17 @@ import { LanguagesTypes } from '../../lang';
4
4
  import { AGroupCustomField, GroupCustomField } from '../Group/types';
5
5
  export type PartnershipCustomField = GroupCustomField;
6
6
  export type APartnershipCustomField = AGroupCustomField;
7
+ export interface PartnershipTag {
8
+ label: string;
9
+ order: number;
10
+ createdAt: Timestamp;
11
+ createdBy: string;
12
+ editedAt: Timestamp | null;
13
+ editedBy: string | null;
14
+ }
15
+ export interface APartnershipTag extends PartnershipTag {
16
+ id: string;
17
+ }
7
18
  export declare enum PartnershipRoles {
8
19
  Admin = "admin",
9
20
  Partner = "partner"
@@ -15,8 +26,6 @@ export interface PartnershipSepaCreditorInfo {
15
26
  creditorId: string;
16
27
  iban: string;
17
28
  swiftbic: string;
18
- accountName?: string;
19
- cif?: string;
20
29
  }
21
30
  export interface PartnershipTransferInfo {
22
31
  iban: string;
@@ -48,6 +57,7 @@ export interface PartnershipData extends PartnershipBasicData {
48
57
  administratorsList: AdminItem[];
49
58
  federationIds: string[];
50
59
  customFields: Record<string, PartnershipCustomField>;
60
+ tags: Record<string, PartnershipTag>;
51
61
  boardRoles: string[];
52
62
  boardMembers: BoardMemberItem[];
53
63
  boardDocuments: BoardDocumentItem[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.108.17",
3
+ "version": "1.109.0",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",