@myclub_se/data-access 3.5.0 → 3.5.2

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.
Files changed (28) hide show
  1. package/esm2022/lib/api-models/api-booking-calendar-slot-session.mjs +1 -1
  2. package/esm2022/lib/api-models/api-invoice/api-payment-order-row.mjs +2 -0
  3. package/esm2022/lib/api-models/api-invoice/api-payment-order.mjs +1 -1
  4. package/esm2022/lib/api-models/api-invoice/index.mjs +2 -1
  5. package/esm2022/lib/models/booking-calendar-slot-session.mjs +4 -2
  6. package/esm2022/lib/models/invoice/index.mjs +2 -1
  7. package/esm2022/lib/models/invoice/payment-order-row.mjs +9 -0
  8. package/esm2022/lib/models/invoice/payment-order.mjs +6 -2
  9. package/esm2022/lib/services/factories/booking-calendar-slot-session-factory.mjs +2 -2
  10. package/esm2022/lib/services/factories/index.mjs +3 -1
  11. package/esm2022/lib/services/factories/payment-order-factory.mjs +3 -2
  12. package/esm2022/lib/services/factories/payment-order-row-factory.mjs +3 -0
  13. package/esm2022/lib/services/invoice/payment-order.service.mjs +2 -3
  14. package/esm2022/lib/store/operators/ensure-auths.mjs +3 -3
  15. package/esm2022/lib/store/operators/ensure-current-user.mjs +3 -3
  16. package/fesm2022/myclub_se-data-access.mjs +27 -10
  17. package/fesm2022/myclub_se-data-access.mjs.map +1 -1
  18. package/lib/api-models/api-booking-calendar-slot-session.d.ts +1 -0
  19. package/lib/api-models/api-invoice/api-payment-order-row.d.ts +4 -0
  20. package/lib/api-models/api-invoice/api-payment-order.d.ts +3 -0
  21. package/lib/api-models/api-invoice/index.d.ts +1 -0
  22. package/lib/models/booking-calendar-slot-session.d.ts +2 -1
  23. package/lib/models/invoice/index.d.ts +1 -0
  24. package/lib/models/invoice/payment-order-row.d.ts +5 -0
  25. package/lib/models/invoice/payment-order.d.ts +4 -1
  26. package/lib/services/factories/index.d.ts +2 -0
  27. package/lib/services/factories/payment-order-row-factory.d.ts +3 -0
  28. package/package.json +1 -1
@@ -33,4 +33,5 @@ export interface ApiBookingCalendarSlotSession {
33
33
  readonly pay_until: string | null;
34
34
  readonly is_paid: boolean | null;
35
35
  readonly group_id: string | null;
36
+ calendar_id: string | null;
36
37
  }
@@ -0,0 +1,4 @@
1
+ export interface ApiPaymentOrderRow {
2
+ description: string;
3
+ amount: number;
4
+ }
@@ -1,4 +1,5 @@
1
1
  import { ApiCreditCard, ApiSwish } from './api-invoice-payments';
2
+ import { ApiPaymentOrderRow } from './api-payment-order-row';
2
3
  export interface ApiPaymentOrder {
3
4
  allow_ping_credit_card: boolean;
4
5
  allow_ping_swish: boolean;
@@ -9,7 +10,9 @@ export interface ApiPaymentOrder {
9
10
  is_paid: boolean;
10
11
  member_id: string;
11
12
  organisation_name: string;
13
+ rows: Array<ApiPaymentOrderRow>;
12
14
  swish: ApiSwish | null;
13
15
  full_title: string;
16
+ title: string;
14
17
  pay_until: string;
15
18
  }
@@ -8,6 +8,7 @@ export * from './api-search-member-invoice';
8
8
  export * from './api-payment-attempt';
9
9
  export * from './api-payment-attempt-create';
10
10
  export * from './api-payment-order';
11
+ export * from './api-payment-order-row';
11
12
  export * from './api-payment-order-payment-post-data';
12
13
  export * from './api-swish-qr-code';
13
14
  export * from './api-unpaid-member-invoice';
@@ -35,6 +35,7 @@ export declare class BookingCalendarSlotSession {
35
35
  readonly pay_until: string | null;
36
36
  readonly is_paid: boolean | null;
37
37
  readonly group_id: string | null;
38
+ calendar_id: string | null;
38
39
  static asFormGroup(session?: BookingCalendarSlotSession): FormGroup<{
39
40
  id: FormControl<string | null>;
40
41
  section_id: FormControl<string | null>;
@@ -57,5 +58,5 @@ export declare class BookingCalendarSlotSession {
57
58
  bookable_part_id: FormControl<string | null>;
58
59
  member_id: FormControl<string | null>;
59
60
  }>;
60
- constructor(id: string, section_id: string | null, slot_id: string, team_id: string | null, title: string, end_time: string, section_name: string | null, start_time: string, team_name: string | null, is_overbooked: boolean, last_repeating_date: string | null, type: string, slot_index: number, comment: string | null, day: string, repeat: boolean, activity_type_id: string | null, color: string | null, update_repeating: boolean, update_until_date: string | null, bookable_zones_taken: number, bookable_zones_taken_display: string, bookable_part_id: string | null, bookable_part_name: string | null, bookable_name: string | null, bookable_id: string, member_id: string | null, member_name: string | null, member_email: string | null, price: number, payment_order_id: string | null, pay_until: string | null, is_paid: boolean | null, group_id: string | null);
61
+ constructor(id: string, section_id: string | null, slot_id: string, team_id: string | null, title: string, end_time: string, section_name: string | null, start_time: string, team_name: string | null, is_overbooked: boolean, last_repeating_date: string | null, type: string, slot_index: number, comment: string | null, day: string, repeat: boolean, activity_type_id: string | null, color: string | null, update_repeating: boolean, update_until_date: string | null, bookable_zones_taken: number, bookable_zones_taken_display: string, bookable_part_id: string | null, bookable_part_name: string | null, bookable_name: string | null, bookable_id: string, member_id: string | null, member_name: string | null, member_email: string | null, price: number, payment_order_id: string | null, pay_until: string | null, is_paid: boolean | null, group_id: string | null, calendar_id: string | null);
61
62
  }
@@ -4,6 +4,7 @@ export * from './member-invoice-row';
4
4
  export * from './payment-attempt';
5
5
  export * from './payment-attempt-data-types';
6
6
  export * from './payment-order';
7
+ export * from './payment-order-row';
7
8
  export * from './payment-types/index';
8
9
  export * from './search-member-invoice';
9
10
  export * from './swish-qr-code';
@@ -0,0 +1,5 @@
1
+ export declare class PaymentOrderRow {
2
+ amount: number;
3
+ description: string;
4
+ constructor(amount: number, description: string);
5
+ }
@@ -1,4 +1,5 @@
1
1
  import { CreditCard, Swish } from './payment-types';
2
+ import { PaymentOrderRow } from './payment-order-row';
2
3
  export declare class PaymentOrder {
3
4
  id: string;
4
5
  allowPingCreditCard: boolean;
@@ -9,8 +10,10 @@ export declare class PaymentOrder {
9
10
  isPaid: boolean;
10
11
  memberId: string;
11
12
  organisationName: string;
13
+ rows: Array<PaymentOrderRow>;
12
14
  swish: Swish | null;
13
15
  full_title: string;
16
+ title: string;
14
17
  pay_until: string;
15
- constructor(id: string, allowPingCreditCard: boolean, allowPingSwish: boolean, amount: number, creditCard: CreditCard | null, clubName: string, isPaid: boolean, memberId: string, organisationName: string, swish: Swish | null, full_title: string, pay_until: string);
18
+ constructor(id: string, allowPingCreditCard: boolean, allowPingSwish: boolean, amount: number, creditCard: CreditCard | null, clubName: string, isPaid: boolean, memberId: string, organisationName: string, rows: Array<PaymentOrderRow>, swish: Swish | null, full_title: string, title: string, pay_until: string);
16
19
  }
@@ -73,6 +73,8 @@ export * from './other-member-factory';
73
73
  export * from './other-member-field-factory';
74
74
  export * from './partner-factory';
75
75
  export * from './payment-attempt-factory';
76
+ export * from './payment-order-factory';
77
+ export * from './payment-order-row-factory';
76
78
  export * from './public-authentication-factory';
77
79
  export * from './registration-qr-code-factory';
78
80
  export * from './retrieve-2fa-factory';
@@ -0,0 +1,3 @@
1
+ import { ApiPaymentOrderRow } from '../../api-models';
2
+ import { PaymentOrderRow } from '../../models';
3
+ export declare const paymentOrderRowFactory: (apiPaymentOrderRow: ApiPaymentOrderRow) => PaymentOrderRow;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@myclub_se/data-access",
3
3
  "description": "This is the package required to access the api for the MyClub Member API V3 from angular",
4
- "version": "3.5.0",
4
+ "version": "3.5.2",
5
5
  "license": "MIT",
6
6
  "main": "src/index.ts",
7
7
  "peerDependencies": {