@myclub_se/data-access 3.1.5 → 3.1.7

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 (98) hide show
  1. package/esm2022/lib/api-models/api-bookable-item.mjs +1 -1
  2. package/esm2022/lib/api-models/api-booking-calendar-application-time.mjs +1 -1
  3. package/esm2022/lib/api-models/api-booking-calendar-slot-session.mjs +1 -1
  4. package/esm2022/lib/api-models/api-booking-calendar-slot.mjs +1 -1
  5. package/esm2022/lib/api-models/api-booking-calendar.mjs +1 -1
  6. package/esm2022/lib/api-models/api-card/api-member-card.mjs +1 -1
  7. package/esm2022/lib/api-models/api-card/api-selected-field.mjs +2 -0
  8. package/esm2022/lib/api-models/api-card/index.mjs +2 -1
  9. package/esm2022/lib/api-models/api-invoice/api-payment-order.mjs +2 -0
  10. package/esm2022/lib/api-models/api-invoice/index.mjs +2 -1
  11. package/esm2022/lib/models/activity-type.mjs +3 -3
  12. package/esm2022/lib/models/bookable-item.mjs +4 -2
  13. package/esm2022/lib/models/booking-calendar-application-time.mjs +6 -2
  14. package/esm2022/lib/models/booking-calendar-slot-session.mjs +8 -2
  15. package/esm2022/lib/models/booking-calendar-slot.mjs +5 -2
  16. package/esm2022/lib/models/booking-calendar.mjs +8 -2
  17. package/esm2022/lib/models/booking-slot-filter.mjs +4 -1
  18. package/esm2022/lib/models/card/index.mjs +2 -1
  19. package/esm2022/lib/models/card/member-card.mjs +4 -2
  20. package/esm2022/lib/models/card/selected-field.mjs +9 -0
  21. package/esm2022/lib/models/invoice/index.mjs +2 -1
  22. package/esm2022/lib/models/invoice/payment-order.mjs +21 -0
  23. package/esm2022/lib/services/activity.service.mjs +17 -6
  24. package/esm2022/lib/services/bookable.service.mjs +46 -14
  25. package/esm2022/lib/services/booking-calendar.service.mjs +94 -26
  26. package/esm2022/lib/services/constant.service.mjs +9 -1
  27. package/esm2022/lib/services/constants.mjs +2 -0
  28. package/esm2022/lib/services/factories/bookable-item-factory.mjs +2 -2
  29. package/esm2022/lib/services/factories/booking-calendar-application-time-factory.mjs +2 -2
  30. package/esm2022/lib/services/factories/booking-calendar-factory.mjs +2 -2
  31. package/esm2022/lib/services/factories/booking-calendar-slot-factory.mjs +2 -2
  32. package/esm2022/lib/services/factories/booking-calendar-slot-session-factory.mjs +2 -2
  33. package/esm2022/lib/services/factories/member-card-factory.mjs +3 -3
  34. package/esm2022/lib/services/factories/payment-order-factory.mjs +5 -0
  35. package/esm2022/lib/services/feature-flags.service.mjs +5 -2
  36. package/esm2022/lib/services/invoice/index.mjs +2 -1
  37. package/esm2022/lib/services/invoice/payment-order.service.mjs +34 -0
  38. package/esm2022/lib/services/member.service.mjs +5 -2
  39. package/esm2022/lib/services/team.service.mjs +5 -2
  40. package/esm2022/lib/store/actions/booking.actions.mjs +19 -1
  41. package/esm2022/lib/store/actions/constant.actions.mjs +13 -1
  42. package/esm2022/lib/store/actions/invoice.actions.mjs +15 -1
  43. package/esm2022/lib/store/effects/auth.effects.mjs +2 -2
  44. package/esm2022/lib/store/effects/booking.effects.mjs +49 -3
  45. package/esm2022/lib/store/effects/constant.effects.mjs +8 -2
  46. package/esm2022/lib/store/effects/invoice.effects.mjs +22 -3
  47. package/esm2022/lib/store/reducers/booking.reducers.mjs +63 -12
  48. package/esm2022/lib/store/reducers/constant.reducer.mjs +14 -2
  49. package/esm2022/lib/store/reducers/invoice.reducer.mjs +4 -4
  50. package/esm2022/lib/store/selectors/booking.selectors.mjs +4 -1
  51. package/esm2022/lib/store/selectors/constant.selectors.mjs +3 -1
  52. package/esm2022/lib/store/selectors/invoice.selectors.mjs +3 -1
  53. package/esm2022/lib/store/state/booking.state.mjs +4 -1
  54. package/esm2022/lib/store/state/constant.state.mjs +3 -1
  55. package/esm2022/lib/store/state/invoice.state.mjs +3 -1
  56. package/fesm2022/myclub_se-data-access.mjs +475 -73
  57. package/fesm2022/myclub_se-data-access.mjs.map +1 -1
  58. package/lib/api-models/api-bookable-item.d.ts +1 -0
  59. package/lib/api-models/api-booking-calendar-application-time.d.ts +2 -0
  60. package/lib/api-models/api-booking-calendar-slot-session.d.ts +3 -0
  61. package/lib/api-models/api-booking-calendar-slot.d.ts +1 -0
  62. package/lib/api-models/api-booking-calendar.d.ts +2 -0
  63. package/lib/api-models/api-card/api-member-card.d.ts +2 -0
  64. package/lib/api-models/api-card/api-selected-field.d.ts +4 -0
  65. package/lib/api-models/api-card/index.d.ts +1 -0
  66. package/lib/api-models/api-invoice/api-payment-order.d.ts +11 -0
  67. package/lib/api-models/api-invoice/index.d.ts +1 -0
  68. package/lib/models/bookable-item.d.ts +2 -1
  69. package/lib/models/booking-calendar-application-time.d.ts +3 -1
  70. package/lib/models/booking-calendar-slot-session.d.ts +4 -1
  71. package/lib/models/booking-calendar-slot.d.ts +3 -1
  72. package/lib/models/booking-calendar.d.ts +5 -1
  73. package/lib/models/booking-slot-filter.d.ts +1 -0
  74. package/lib/models/card/index.d.ts +1 -0
  75. package/lib/models/card/member-card.d.ts +3 -1
  76. package/lib/models/card/selected-field.d.ts +5 -0
  77. package/lib/models/invoice/index.d.ts +1 -0
  78. package/lib/models/invoice/payment-order.d.ts +12 -0
  79. package/lib/services/bookable.service.d.ts +2 -1
  80. package/lib/services/booking-calendar.service.d.ts +2 -0
  81. package/lib/services/constant.service.d.ts +2 -0
  82. package/lib/services/constants.d.ts +1 -0
  83. package/lib/services/factories/payment-order-factory.d.ts +3 -0
  84. package/lib/services/invoice/index.d.ts +1 -0
  85. package/lib/services/invoice/payment-order.service.d.ts +15 -0
  86. package/lib/store/actions/booking.actions.d.ts +60 -0
  87. package/lib/store/actions/constant.actions.d.ts +28 -0
  88. package/lib/store/actions/invoice.actions.d.ts +46 -2
  89. package/lib/store/effects/booking.effects.d.ts +15 -0
  90. package/lib/store/effects/constant.effects.d.ts +10 -0
  91. package/lib/store/effects/invoice.effects.d.ts +12 -1
  92. package/lib/store/selectors/booking.selectors.d.ts +3 -0
  93. package/lib/store/selectors/constant.selectors.d.ts +2 -0
  94. package/lib/store/selectors/invoice.selectors.d.ts +2 -0
  95. package/lib/store/state/booking.state.d.ts +4 -1
  96. package/lib/store/state/constant.state.d.ts +2 -0
  97. package/lib/store/state/invoice.state.d.ts +3 -1
  98. package/package.json +1 -1
@@ -6,6 +6,9 @@ export declare const selectBookableItems: import("@ngrx/store").MemoizedSelector
6
6
  export declare const selectBookableGroups: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").BookableGroup> | null, (s1: BookingState) => import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").BookableGroup> | null>;
7
7
  export declare const selectBookableTags: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").BookableTag> | null, (s1: BookingState) => import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").BookableTag> | null>;
8
8
  export declare const selectCalendars: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").BookingCalendar> | null, (s1: BookingState) => import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").BookingCalendar> | null>;
9
+ export declare const selectMemberCalendars: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").RetrieveResultInterface<Map<string, import("@myclub_se/data-access").BookingCalendar[]>> | undefined, (s1: BookingState) => import("@myclub_se/data-access").RetrieveResultInterface<Map<string, import("@myclub_se/data-access").BookingCalendar[]>> | undefined>;
10
+ export declare const selectMemberSlots: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").RetrieveResultInterface<Map<string, import("@myclub_se/data-access").BookingCalendarSlot[]>> | undefined, (s1: BookingState) => import("@myclub_se/data-access").RetrieveResultInterface<Map<string, import("@myclub_se/data-access").BookingCalendarSlot[]>> | undefined>;
11
+ export declare const selectMemberSessions: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").RetrieveResultInterface<Map<string, import("@myclub_se/data-access").BookingCalendarSlotSession[]>> | undefined, (s1: BookingState) => import("@myclub_se/data-access").RetrieveResultInterface<Map<string, import("@myclub_se/data-access").BookingCalendarSlotSession[]>> | undefined>;
9
12
  export declare const selectBookingSettings: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").RetrieveResultInterface<import("@myclub_se/data-access").BookingSettings> | null, (s1: BookingState) => import("@myclub_se/data-access").RetrieveResultInterface<import("@myclub_se/data-access").BookingSettings> | null>;
10
13
  export declare const selectBookingActivitySettings: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").RetrieveResultInterface<import("@myclub_se/data-access").ActivitySettings> | null, (s1: BookingState) => import("@myclub_se/data-access").RetrieveResultInterface<import("@myclub_se/data-access").ActivitySettings> | null>;
11
14
  export declare const selectActivityTypes: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").ActivityType> | null, (s1: BookingState) => import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").ActivityType> | null>;
@@ -12,6 +12,8 @@ export declare const selectActivityRepeatTypeOptions: import("@ngrx/store").Memo
12
12
  export declare const selectCountries: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").OptionInterface>, (s1: ConstantState) => import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").OptionInterface>>;
13
13
  export declare const selectMemberContactTypes: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").OptionInterface>, (s1: ConstantState) => import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").OptionInterface>>;
14
14
  export declare const selectBookingSlotTypes: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").OptionInterface>, (s1: ConstantState) => import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").OptionInterface>>;
15
+ export declare const selectTeamBookingSlotTypes: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").OptionInterface>, (s1: ConstantState) => import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").OptionInterface>>;
16
+ export declare const selectMemberBookingSlotTypes: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").OptionInterface>, (s1: ConstantState) => import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").OptionInterface>>;
15
17
  export declare const selectBookingSlotReservedTimePositions: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").OptionInterface>, (s1: ConstantState) => import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").OptionInterface>>;
16
18
  export declare const selectBookingSlotSessionTypes: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").OptionInterface>, (s1: ConstantState) => import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").OptionInterface>>;
17
19
  export declare const selectBookingCalendarStatuses: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").OptionInterface>, (s1: ConstantState) => import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").OptionInterface>>;
@@ -2,3 +2,5 @@ import { DataAccessState, InvoiceState } from '../state';
2
2
  export declare const invoiceState: import("@ngrx/store").MemoizedSelector<object, InvoiceState, (s1: DataAccessState) => InvoiceState>;
3
3
  export declare const selectInvoice: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").RetrieveResultInterface<import("@myclub_se/data-access").MemberInvoice> | undefined, (s1: InvoiceState) => import("@myclub_se/data-access").RetrieveResultInterface<import("@myclub_se/data-access").MemberInvoice> | undefined>;
4
4
  export declare const selectInvoiceList: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").RetrieveResultInterface<Map<string, import("@myclub_se/data-access").SearchMemberInvoice[]>> | undefined, (s1: InvoiceState) => import("@myclub_se/data-access").RetrieveResultInterface<Map<string, import("@myclub_se/data-access").SearchMemberInvoice[]>> | undefined>;
5
+ export declare const selectPaymentOrder: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").RetrieveResultInterface<import("@myclub_se/data-access").PaymentOrder> | undefined, (s1: InvoiceState) => import("@myclub_se/data-access").RetrieveResultInterface<import("@myclub_se/data-access").PaymentOrder> | undefined>;
6
+ export declare const selectPaymentOrderList: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").RetrieveResultInterface<Map<string, import("@myclub_se/data-access").PaymentOrder[]>> | undefined, (s1: InvoiceState) => import("@myclub_se/data-access").RetrieveResultInterface<Map<string, import("@myclub_se/data-access").PaymentOrder[]>> | undefined>;
@@ -1,7 +1,8 @@
1
- import { ActivityLocation, ActivitySettings, ActivityType, AuthTeam, BookableGroup, BookableItem, BookableTag, BookingCalendar, BookingSettings, BookingSlotFilter, SearchTeam } from '../../models';
1
+ import { ActivityLocation, ActivitySettings, ActivityType, AuthTeam, BookableGroup, BookableItem, BookableTag, BookingCalendar, BookingCalendarSlot, BookingCalendarSlotSession, BookingSettings, BookingSlotFilter, SearchTeam } from '../../models';
2
2
  import { ListResultInterface, RetrieveResultInterface } from '../interfaces';
3
3
  export interface BookingState {
4
4
  calendars: ListResultInterface<BookingCalendar> | null;
5
+ memberCalendars: RetrieveResultInterface<Map<string, Array<BookingCalendar>>> | undefined;
5
6
  locations: ListResultInterface<ActivityLocation> | null;
6
7
  bookableItems: ListResultInterface<BookableItem> | null;
7
8
  bookableGroups: ListResultInterface<BookableGroup> | null;
@@ -11,6 +12,8 @@ export interface BookingState {
11
12
  bookingSettings: RetrieveResultInterface<BookingSettings> | null;
12
13
  activityTypes: ListResultInterface<ActivityType> | null;
13
14
  currentCalendar: BookingCalendar | null;
15
+ memberSessions: RetrieveResultInterface<Map<string, Array<BookingCalendarSlotSession>>> | undefined;
16
+ memberSlots: RetrieveResultInterface<Map<string, Array<BookingCalendarSlot>>> | undefined;
14
17
  bookingSlotFilter: BookingSlotFilter;
15
18
  }
16
19
  export declare const initialBookingState: BookingState;
@@ -14,6 +14,8 @@ export interface ConstantState {
14
14
  countries: ListResultInterface<OptionInterface>;
15
15
  memberContactTypes: ListResultInterface<OptionInterface>;
16
16
  bookingSlotTypes: ListResultInterface<OptionInterface>;
17
+ teamBookingSlotTypes: ListResultInterface<OptionInterface>;
18
+ memberBookingSlotTypes: ListResultInterface<OptionInterface>;
17
19
  bookingSlotReservedTimePositions: ListResultInterface<OptionInterface>;
18
20
  bookingSlotSessionTypes: ListResultInterface<OptionInterface>;
19
21
  bookingCalendarStatuses: ListResultInterface<OptionInterface>;
@@ -1,7 +1,9 @@
1
- import { MemberInvoice, SearchMemberInvoice } from '../../models';
1
+ import { MemberInvoice, PaymentOrder, SearchMemberInvoice } from '../../models';
2
2
  import { RetrieveResultInterface } from '../interfaces';
3
3
  export interface InvoiceState {
4
4
  invoice: RetrieveResultInterface<MemberInvoice> | undefined;
5
5
  invoiceList: RetrieveResultInterface<Map<string, Array<SearchMemberInvoice>>> | undefined;
6
+ paymentOrder: RetrieveResultInterface<PaymentOrder> | undefined;
7
+ paymentOrderList: RetrieveResultInterface<Map<string, Array<PaymentOrder>>> | undefined;
6
8
  }
7
9
  export declare const initialInvoiceState: InvoiceState;
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.1.5",
4
+ "version": "3.1.7",
5
5
  "license": "MIT",
6
6
  "main": "src/index.ts",
7
7
  "peerDependencies": {