@wipperoz/common-entities-account 1.0.4 → 1.1.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.
Files changed (112) hide show
  1. package/dist/src/enums/currency.enum.d.ts +2 -0
  2. package/dist/src/enums/currency.enum.d.ts.map +1 -0
  3. package/dist/src/enums/currency.enum.js +7 -0
  4. package/dist/src/enums/currency.enum.js.map +1 -0
  5. package/dist/src/enums/index.d.ts +3 -1
  6. package/dist/src/enums/index.d.ts.map +1 -1
  7. package/dist/src/enums/index.js +3 -1
  8. package/dist/src/enums/index.js.map +1 -1
  9. package/dist/src/enums/language.enum.d.ts +2 -0
  10. package/dist/src/enums/language.enum.d.ts.map +1 -0
  11. package/dist/src/enums/language.enum.js +7 -0
  12. package/dist/src/enums/language.enum.js.map +1 -0
  13. package/dist/src/enums/measurementSystem.enum.d.ts +1 -5
  14. package/dist/src/enums/measurementSystem.enum.d.ts.map +1 -1
  15. package/dist/src/enums/measurementSystem.enum.js +3 -6
  16. package/dist/src/enums/measurementSystem.enum.js.map +1 -1
  17. package/dist/src/enums/notificationMeansType.enum.d.ts +1 -5
  18. package/dist/src/enums/notificationMeansType.enum.d.ts.map +1 -1
  19. package/dist/src/enums/notificationMeansType.enum.js +3 -6
  20. package/dist/src/enums/notificationMeansType.enum.js.map +1 -1
  21. package/dist/src/enums/notificationType.enum.d.ts +1 -6
  22. package/dist/src/enums/notificationType.enum.d.ts.map +1 -1
  23. package/dist/src/enums/notificationType.enum.js +3 -7
  24. package/dist/src/enums/notificationType.enum.js.map +1 -1
  25. package/dist/src/interfaces/account.interface.d.ts +16 -0
  26. package/dist/src/interfaces/account.interface.d.ts.map +1 -0
  27. package/dist/src/interfaces/{account-settings.interface.js → account.interface.js} +1 -1
  28. package/dist/src/interfaces/account.interface.js.map +1 -0
  29. package/dist/src/interfaces/accountSettings.interface.d.ts +9 -0
  30. package/dist/src/interfaces/accountSettings.interface.d.ts.map +1 -0
  31. package/dist/src/interfaces/{wipperoz-notification.interface.js → accountSettings.interface.js} +1 -1
  32. package/dist/src/interfaces/accountSettings.interface.js.map +1 -0
  33. package/dist/src/interfaces/index.d.ts +8 -2
  34. package/dist/src/interfaces/index.d.ts.map +1 -1
  35. package/dist/src/interfaces/index.js +8 -2
  36. package/dist/src/interfaces/index.js.map +1 -1
  37. package/dist/src/interfaces/subscription.interface.d.ts +70 -0
  38. package/dist/src/interfaces/subscription.interface.d.ts.map +1 -0
  39. package/dist/src/interfaces/subscription.interface.js +23 -0
  40. package/dist/src/interfaces/subscription.interface.js.map +1 -0
  41. package/dist/src/interfaces/supplierSettings.interface.d.ts +11 -0
  42. package/dist/src/interfaces/supplierSettings.interface.d.ts.map +1 -0
  43. package/dist/src/interfaces/supplierSettings.interface.js +3 -0
  44. package/dist/src/interfaces/supplierSettings.interface.js.map +1 -0
  45. package/dist/src/interfaces/systemNotification.interface.d.ts +9 -0
  46. package/dist/src/interfaces/systemNotification.interface.d.ts.map +1 -0
  47. package/dist/src/interfaces/systemNotification.interface.js +3 -0
  48. package/dist/src/interfaces/systemNotification.interface.js.map +1 -0
  49. package/dist/src/interfaces/user.interface.d.ts +8 -0
  50. package/dist/src/interfaces/user.interface.d.ts.map +1 -0
  51. package/dist/src/interfaces/user.interface.js +3 -0
  52. package/dist/src/interfaces/user.interface.js.map +1 -0
  53. package/dist/src/interfaces/userAlert.interface.d.ts +6 -0
  54. package/dist/src/interfaces/userAlert.interface.d.ts.map +1 -0
  55. package/dist/src/interfaces/userAlert.interface.js +3 -0
  56. package/dist/src/interfaces/userAlert.interface.js.map +1 -0
  57. package/dist/src/interfaces/userPreferences.interface.d.ts +10 -0
  58. package/dist/src/interfaces/userPreferences.interface.d.ts.map +1 -0
  59. package/dist/src/interfaces/userPreferences.interface.js +3 -0
  60. package/dist/src/interfaces/userPreferences.interface.js.map +1 -0
  61. package/dist/src/models/account.model.d.ts +27 -0
  62. package/dist/src/models/account.model.d.ts.map +1 -0
  63. package/dist/src/models/account.model.js +26 -0
  64. package/dist/src/models/account.model.js.map +1 -0
  65. package/dist/src/models/accountDetails.model.d.ts +20 -0
  66. package/dist/src/models/accountDetails.model.d.ts.map +1 -0
  67. package/dist/src/models/accountDetails.model.js +15 -0
  68. package/dist/src/models/accountDetails.model.js.map +1 -0
  69. package/dist/src/models/accountSettings.model.d.ts +13 -0
  70. package/dist/src/models/accountSettings.model.d.ts.map +1 -0
  71. package/dist/src/models/accountSettings.model.js +12 -0
  72. package/dist/src/models/accountSettings.model.js.map +1 -0
  73. package/dist/src/models/subscription.model.d.ts +27 -0
  74. package/dist/src/models/subscription.model.d.ts.map +1 -0
  75. package/dist/src/models/subscription.model.js +28 -0
  76. package/dist/src/models/subscription.model.js.map +1 -0
  77. package/dist/src/models/supplierSettings.model.d.ts +22 -0
  78. package/dist/src/models/supplierSettings.model.d.ts.map +1 -0
  79. package/dist/src/models/supplierSettings.model.js +13 -0
  80. package/dist/src/models/supplierSettings.model.js.map +1 -0
  81. package/dist/src/models/systemNotification.model.d.ts +22 -0
  82. package/dist/src/models/systemNotification.model.d.ts.map +1 -0
  83. package/dist/src/models/systemNotification.model.js +16 -0
  84. package/dist/src/models/systemNotification.model.js.map +1 -0
  85. package/dist/src/models/user.model.d.ts +12 -0
  86. package/dist/src/models/user.model.d.ts.map +1 -0
  87. package/dist/src/models/user.model.js +12 -0
  88. package/dist/src/models/user.model.js.map +1 -0
  89. package/dist/src/models/userAlert.model.d.ts +18 -0
  90. package/dist/src/models/userAlert.model.d.ts.map +1 -0
  91. package/dist/src/models/userAlert.model.js +14 -0
  92. package/dist/src/models/userAlert.model.js.map +1 -0
  93. package/dist/src/models/userPreferences.model.d.ts +18 -0
  94. package/dist/src/models/userPreferences.model.d.ts.map +1 -0
  95. package/dist/src/models/userPreferences.model.js +14 -0
  96. package/dist/src/models/userPreferences.model.js.map +1 -0
  97. package/dist/tsconfig.tsbuildinfo +1 -1
  98. package/package.json +4 -3
  99. package/dist/src/interfaces/account-settings.interface.d.ts +0 -12
  100. package/dist/src/interfaces/account-settings.interface.d.ts.map +0 -1
  101. package/dist/src/interfaces/account-settings.interface.js.map +0 -1
  102. package/dist/src/interfaces/wipperoz-notification.interface.d.ts +0 -7
  103. package/dist/src/interfaces/wipperoz-notification.interface.d.ts.map +0 -1
  104. package/dist/src/interfaces/wipperoz-notification.interface.js.map +0 -1
  105. package/dist/src/models/account-settings.model.d.ts +0 -22
  106. package/dist/src/models/account-settings.model.d.ts.map +0 -1
  107. package/dist/src/models/account-settings.model.js +0 -32
  108. package/dist/src/models/account-settings.model.js.map +0 -1
  109. package/dist/src/models/wipperoz-notification.model.d.ts +0 -9
  110. package/dist/src/models/wipperoz-notification.model.d.ts.map +0 -1
  111. package/dist/src/models/wipperoz-notification.model.js +0 -12
  112. package/dist/src/models/wipperoz-notification.model.js.map +0 -1
@@ -1,7 +0,0 @@
1
- import { NotificationTypeEnum } from '../enums/index.js';
2
- export interface IWipperozNotification {
3
- notificationType: NotificationTypeEnum;
4
- allowChange: boolean;
5
- notificationActive: boolean;
6
- }
7
- //# sourceMappingURL=wipperoz-notification.interface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wipperoz-notification.interface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/wipperoz-notification.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAEvD,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,EAAE,oBAAoB,CAAC;IACvC,WAAW,EAAE,OAAO,CAAC;IACrB,kBAAkB,EAAE,OAAO,CAAC;CAC7B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"wipperoz-notification.interface.js","sourceRoot":"","sources":["../../../src/interfaces/wipperoz-notification.interface.ts"],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- import { IAccountSettings, IDetails } from '../interfaces/account-settings.interface';
2
- export declare class AccountSettings implements IAccountSettings {
3
- Items: {
4
- Pkey: string;
5
- Skey: string;
6
- Details: IDetails;
7
- }[];
8
- constructor(data: IAccountSettings);
9
- addItem(item: {
10
- Pkey: string;
11
- Skey: string;
12
- Details: IDetails;
13
- }): void;
14
- removeItem(pkey: string, skey: string): void;
15
- getItem(pkey: string, skey: string): {
16
- Pkey: string;
17
- Skey: string;
18
- Details: IDetails;
19
- } | undefined;
20
- updateItem(pkey: string, skey: string, details: IDetails): void;
21
- }
22
- //# sourceMappingURL=account-settings.model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"account-settings.model.d.ts","sourceRoot":"","sources":["../../../src/models/account-settings.model.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACT,MAAM,0CAA0C,CAAC;AAElD,qBAAa,eAAgB,YAAW,gBAAgB;IACtD,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,QAAQ,CAAC;KACnB,EAAE,CAAM;gBAEG,IAAI,EAAE,gBAAgB;IAUlC,OAAO,CAAC,IAAI,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,QAAQ,CAAA;KAAC,GAAG,IAAI;IAIpE,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;IAM5C,OAAO,CACL,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,QAAQ,CAAA;KAAC,GAAG,SAAS;IAI9D,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,GAAG,IAAI;CAMhE"}
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AccountSettings = void 0;
4
- class AccountSettings {
5
- constructor(data) {
6
- this.Items = [];
7
- if (data) {
8
- this.Items = data.Items?.map(item => ({
9
- Pkey: item.Pkey,
10
- Skey: item.Skey,
11
- Details: item.Details ?? {},
12
- }));
13
- }
14
- }
15
- addItem(item) {
16
- this.Items.push(item);
17
- }
18
- removeItem(pkey, skey) {
19
- this.Items = this.Items.filter(item => item.Pkey !== pkey || item.Skey !== skey);
20
- }
21
- getItem(pkey, skey) {
22
- return this.Items.find(item => item.Pkey === pkey && item.Skey === skey);
23
- }
24
- updateItem(pkey, skey, details) {
25
- const item = this.getItem(pkey, skey);
26
- if (item) {
27
- item.Details = details;
28
- }
29
- }
30
- }
31
- exports.AccountSettings = AccountSettings;
32
- //# sourceMappingURL=account-settings.model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"account-settings.model.js","sourceRoot":"","sources":["../../../src/models/account-settings.model.ts"],"names":[],"mappings":";;;AAKA,MAAa,eAAe;IAO1B,YAAY,IAAsB;QANlC,UAAK,GAIC,EAAE,CAAC;QAGP,IAAI,IAAI,EAAE,CAAC;YACT,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACpC,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,OAAO,EAAE,IAAI,CAAC,OAAO,IAAK,EAAe;aAC1C,CAAC,CAAC,CAAC;QACN,CAAC;IACH,CAAC;IAED,OAAO,CAAC,IAAqD;QAC3D,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED,UAAU,CAAC,IAAY,EAAE,IAAY;QACnC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAC5B,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,CACjD,CAAC;IACJ,CAAC;IAED,OAAO,CACL,IAAY,EACZ,IAAY;QAEZ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;IAC3E,CAAC;IAED,UAAU,CAAC,IAAY,EAAE,IAAY,EAAE,OAAiB;QACtD,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtC,IAAI,IAAI,EAAE,CAAC;YACT,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACzB,CAAC;IACH,CAAC;CACF;AAxCD,0CAwCC"}
@@ -1,9 +0,0 @@
1
- import { IWipperozNotification } from '../interfaces/wipperoz-notification.interface';
2
- import { NotificationTypeEnum } from '../enums/notificationType.enum';
3
- export declare class WipperozNotification implements IWipperozNotification {
4
- notificationType: NotificationTypeEnum;
5
- allowChange: boolean;
6
- notificationActive: boolean;
7
- constructor(data: IWipperozNotification);
8
- }
9
- //# sourceMappingURL=wipperoz-notification.model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wipperoz-notification.model.d.ts","sourceRoot":"","sources":["../../../src/models/wipperoz-notification.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,qBAAqB,EAAC,MAAM,+CAA+C,CAAC;AACpF,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,qBAAa,oBAAqB,YAAW,qBAAqB;IAChE,gBAAgB,EAAE,oBAAoB,CAAC;IACvC,WAAW,EAAE,OAAO,CAAC;IACrB,kBAAkB,EAAE,OAAO,CAAC;gBAEhB,IAAI,EAAE,qBAAqB;CAKxC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WipperozNotification = void 0;
4
- class WipperozNotification {
5
- constructor(data) {
6
- this.notificationType = data.notificationType;
7
- this.allowChange = data.allowChange;
8
- this.notificationActive = data.notificationActive;
9
- }
10
- }
11
- exports.WipperozNotification = WipperozNotification;
12
- //# sourceMappingURL=wipperoz-notification.model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wipperoz-notification.model.js","sourceRoot":"","sources":["../../../src/models/wipperoz-notification.model.ts"],"names":[],"mappings":";;;AAGA,MAAa,oBAAoB;IAK/B,YAAY,IAA2B;QACrC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAC9C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAC;IACpD,CAAC;CACF;AAVD,oDAUC"}