@zeniai/client-epic-state 5.1.61 → 5.1.62

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 (88) hide show
  1. package/lib/coreEpics.js +3 -2
  2. package/lib/entity/chargeCard/chargeCard.d.ts +1 -1
  3. package/lib/entity/notificationRegistry/notificationRegistryPayload.d.ts +18 -0
  4. package/lib/entity/notificationRegistry/notificationRegistryPayload.js +28 -0
  5. package/lib/entity/notificationRegistry/notificationRegistryReducer.d.ts +10 -0
  6. package/lib/entity/notificationRegistry/notificationRegistryReducer.js +50 -0
  7. package/lib/entity/notificationRegistry/notificationRegistrySelector.d.ts +2 -0
  8. package/lib/entity/notificationRegistry/notificationRegistrySelector.js +10 -0
  9. package/lib/entity/notificationRegistry/notificationRegistryState.d.ts +32 -0
  10. package/lib/entity/notificationRegistry/notificationRegistryState.js +10 -0
  11. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  12. package/lib/entity/snackbar/snackbarTypes.js +3 -0
  13. package/lib/entity/tenant/clearAllEpic.d.ts +3 -1
  14. package/lib/entity/tenant/clearAllEpic.js +4 -0
  15. package/lib/entity/tenant/tenantReducer.d.ts +4 -1
  16. package/lib/entity/tenant/tenantReducer.js +8 -2
  17. package/lib/entity/tenant/tenantSelector.d.ts +1 -0
  18. package/lib/entity/tenant/tenantSelector.js +4 -0
  19. package/lib/epic.d.ts +5 -1
  20. package/lib/epic.js +5 -1
  21. package/lib/esm/coreEpics.js +3 -2
  22. package/lib/esm/entity/notificationRegistry/notificationRegistryPayload.js +24 -0
  23. package/lib/esm/entity/notificationRegistry/notificationRegistryReducer.js +46 -0
  24. package/lib/esm/entity/notificationRegistry/notificationRegistrySelector.js +6 -0
  25. package/lib/esm/entity/notificationRegistry/notificationRegistryState.js +5 -0
  26. package/lib/esm/entity/snackbar/snackbarTypes.js +3 -0
  27. package/lib/esm/entity/tenant/clearAllEpic.js +4 -0
  28. package/lib/esm/entity/tenant/tenantReducer.js +7 -1
  29. package/lib/esm/entity/tenant/tenantSelector.js +3 -0
  30. package/lib/esm/epic.js +5 -1
  31. package/lib/esm/index.js +7 -2
  32. package/lib/esm/reducer.js +6 -0
  33. package/lib/esm/view/companyView/companyViewReducer.js +68 -1
  34. package/lib/esm/view/companyView/epic/companyPassport/dismissCapitalizationOnboardingEpic.js +2 -1
  35. package/lib/esm/view/companyView/epic/companyPassport/projects/disableAccountingProjectsEpic.js +56 -0
  36. package/lib/esm/view/companyView/epic/companyPassport/projects/enableAccountingProjectsEpic.js +37 -0
  37. package/lib/esm/view/companyView/epic/companyPassport/projects/resumeEnableAccountingProjectsEpic.js +73 -0
  38. package/lib/esm/view/companyView/epic/companyPassport/updateAccountingClassesEnabledEpic.js +2 -1
  39. package/lib/esm/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.js +2 -1
  40. package/lib/esm/view/companyView/types/companyPassport/companyPassportViewState.js +5 -0
  41. package/lib/esm/view/notificationPreferencesView/epics/saveNotificationPreferencesEpic.js +116 -0
  42. package/lib/esm/view/notificationPreferencesView/notificationPreferencesEndpoint.js +5 -0
  43. package/lib/esm/view/notificationPreferencesView/notificationPreferencesViewPayload.js +36 -0
  44. package/lib/esm/view/notificationPreferencesView/notificationPreferencesViewReducer.js +222 -0
  45. package/lib/esm/view/notificationPreferencesView/notificationPreferencesViewSelector.js +25 -0
  46. package/lib/esm/view/notificationPreferencesView/notificationPreferencesViewState.js +4 -0
  47. package/lib/esm/view/settingsView/epic/fetchNotificationSettingsEpic.js +34 -2
  48. package/lib/esm/view/settingsView/epic/saveNotificationSettingsEpic.js +2 -1
  49. package/lib/esm/view/settingsView/settingsViewHelpers.js +3 -2
  50. package/lib/index.d.ts +8 -2
  51. package/lib/index.js +52 -32
  52. package/lib/reducer.d.ts +6 -0
  53. package/lib/reducer.js +6 -0
  54. package/lib/view/common/recurringViewHelper.d.ts +2 -2
  55. package/lib/view/companyView/companyViewReducer.d.ts +9 -1
  56. package/lib/view/companyView/companyViewReducer.js +70 -3
  57. package/lib/view/companyView/epic/companyPassport/dismissCapitalizationOnboardingEpic.js +2 -1
  58. package/lib/view/companyView/epic/companyPassport/projects/disableAccountingProjectsEpic.d.ts +10 -0
  59. package/lib/view/companyView/epic/companyPassport/projects/disableAccountingProjectsEpic.js +60 -0
  60. package/lib/view/companyView/epic/companyPassport/projects/enableAccountingProjectsEpic.d.ts +11 -0
  61. package/lib/view/companyView/epic/companyPassport/projects/enableAccountingProjectsEpic.js +41 -0
  62. package/lib/view/companyView/epic/companyPassport/projects/resumeEnableAccountingProjectsEpic.d.ts +13 -0
  63. package/lib/view/companyView/epic/companyPassport/projects/resumeEnableAccountingProjectsEpic.js +77 -0
  64. package/lib/view/companyView/epic/companyPassport/updateAccountingClassesEnabledEpic.js +2 -1
  65. package/lib/view/companyView/epic/companyPassport/updateCapitalizationAccountThresholdEpic.js +2 -1
  66. package/lib/view/companyView/types/companyPassport/companyPassportViewState.d.ts +2 -0
  67. package/lib/view/companyView/types/companyPassport/companyPassportViewState.js +5 -0
  68. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  69. package/lib/view/notificationPreferencesView/epics/saveNotificationPreferencesEpic.d.ts +40 -0
  70. package/lib/view/notificationPreferencesView/epics/saveNotificationPreferencesEpic.js +120 -0
  71. package/lib/view/notificationPreferencesView/notificationPreferencesEndpoint.d.ts +2 -0
  72. package/lib/view/notificationPreferencesView/notificationPreferencesEndpoint.js +9 -0
  73. package/lib/view/notificationPreferencesView/notificationPreferencesViewPayload.d.ts +7 -0
  74. package/lib/view/notificationPreferencesView/notificationPreferencesViewPayload.js +41 -0
  75. package/lib/view/notificationPreferencesView/notificationPreferencesViewReducer.d.ts +30 -0
  76. package/lib/view/notificationPreferencesView/notificationPreferencesViewReducer.js +226 -0
  77. package/lib/view/notificationPreferencesView/notificationPreferencesViewSelector.d.ts +7 -0
  78. package/lib/view/notificationPreferencesView/notificationPreferencesViewSelector.js +32 -0
  79. package/lib/view/notificationPreferencesView/notificationPreferencesViewState.d.ts +14 -0
  80. package/lib/view/notificationPreferencesView/notificationPreferencesViewState.js +8 -0
  81. package/lib/view/settingsView/epic/fetchNotificationSettingsEpic.d.ts +9 -1
  82. package/lib/view/settingsView/epic/fetchNotificationSettingsEpic.js +34 -2
  83. package/lib/view/settingsView/epic/saveNotificationSettingsEpic.js +2 -1
  84. package/lib/view/settingsView/settingsViewHelpers.d.ts +1 -1
  85. package/lib/view/settingsView/settingsViewHelpers.js +3 -2
  86. package/lib/view/settingsView/settingsViewPayload.d.ts +4 -0
  87. package/lib/view/settingsView/settingsViewState.d.ts +1 -1
  88. package/package.json +1 -1
@@ -1,9 +1,11 @@
1
1
  import { AddressPayload } from '../../entity/address/addressPayload';
2
2
  import { CompanyPayload } from '../../entity/company/companyPayload';
3
+ import { NotificationRegistryPayload } from '../../entity/notificationRegistry/notificationRegistryPayload';
3
4
  import { UserPayload } from '../../entity/user/userPayload';
4
5
  import { UserRolePayload } from '../../entity/userRole/userRolePayload';
5
6
  import { ZeniAPIResponse } from '../../responsePayload';
6
7
  import { AddressUpdatableInfoPayload } from '../addressView/addressViewPayload';
8
+ import { NotificationPreferencesPayload } from '../notificationPreferencesView/notificationPreferencesViewPayload';
7
9
  interface MyProfilePeoplePayload {
8
10
  user_roles: UserRolePayload[];
9
11
  users: UserPayload[];
@@ -36,6 +38,8 @@ export interface NotificationSettingsPayload {
36
38
  pending_reimbursement_approval_notification: RemindersPayload | null;
37
39
  uncategorized_transaction_notification: RemindersPayload | null;
38
40
  month_end_email_recipient_email_ids?: string[];
41
+ task_checklist_preferences?: NotificationPreferencesPayload;
42
+ task_checklist_registry?: NotificationRegistryPayload;
39
43
  }
40
44
  export type NotificationSettingsResponse = ZeniAPIResponse<NotificationSettingsPayload>;
41
45
  interface RefreshQBOPayload {
@@ -12,7 +12,7 @@ export interface IntegrationsSettings {
12
12
  export declare const REMINDER_NOTIFICATION_TYPES: readonly ["missingReceiptNotification", "uncategorizedTransactionNotification", "pendingBillApprovalNotification", "pendingReimbursementApprovalNotification"];
13
13
  declare const toReminderTypeKey: (v: string) => "missingReceiptNotification" | "uncategorizedTransactionNotification" | "pendingBillApprovalNotification" | "pendingReimbursementApprovalNotification";
14
14
  export type ReminderTypeKey = ReturnType<typeof toReminderTypeKey>;
15
- export declare const toRemindersFrequencyType: (v: string) => "weekly" | "monthly" | "daily" | "bi-weekly";
15
+ export declare const toRemindersFrequencyType: (v: string) => "daily" | "weekly" | "monthly" | "bi-weekly";
16
16
  export type FrequencyTypeKey = ReturnType<typeof toRemindersFrequencyType>;
17
17
  export declare const NOTIFICATION_MODES: readonly ["email", "dashboard"];
18
18
  export declare const toNotificationMode: (v: string) => "dashboard" | "email";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.1.61",
3
+ "version": "5.1.62",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/esm/index.js",