@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.
- package/dist/src/enums/currency.enum.d.ts +2 -0
- package/dist/src/enums/currency.enum.d.ts.map +1 -0
- package/dist/src/enums/currency.enum.js +7 -0
- package/dist/src/enums/currency.enum.js.map +1 -0
- package/dist/src/enums/index.d.ts +3 -1
- package/dist/src/enums/index.d.ts.map +1 -1
- package/dist/src/enums/index.js +3 -1
- package/dist/src/enums/index.js.map +1 -1
- package/dist/src/enums/language.enum.d.ts +2 -0
- package/dist/src/enums/language.enum.d.ts.map +1 -0
- package/dist/src/enums/language.enum.js +7 -0
- package/dist/src/enums/language.enum.js.map +1 -0
- package/dist/src/enums/measurementSystem.enum.d.ts +1 -5
- package/dist/src/enums/measurementSystem.enum.d.ts.map +1 -1
- package/dist/src/enums/measurementSystem.enum.js +3 -6
- package/dist/src/enums/measurementSystem.enum.js.map +1 -1
- package/dist/src/enums/notificationMeansType.enum.d.ts +1 -5
- package/dist/src/enums/notificationMeansType.enum.d.ts.map +1 -1
- package/dist/src/enums/notificationMeansType.enum.js +3 -6
- package/dist/src/enums/notificationMeansType.enum.js.map +1 -1
- package/dist/src/enums/notificationType.enum.d.ts +1 -6
- package/dist/src/enums/notificationType.enum.d.ts.map +1 -1
- package/dist/src/enums/notificationType.enum.js +3 -7
- package/dist/src/enums/notificationType.enum.js.map +1 -1
- package/dist/src/interfaces/account.interface.d.ts +16 -0
- package/dist/src/interfaces/account.interface.d.ts.map +1 -0
- package/dist/src/interfaces/{account-settings.interface.js → account.interface.js} +1 -1
- package/dist/src/interfaces/account.interface.js.map +1 -0
- package/dist/src/interfaces/accountSettings.interface.d.ts +9 -0
- package/dist/src/interfaces/accountSettings.interface.d.ts.map +1 -0
- package/dist/src/interfaces/{wipperoz-notification.interface.js → accountSettings.interface.js} +1 -1
- package/dist/src/interfaces/accountSettings.interface.js.map +1 -0
- package/dist/src/interfaces/index.d.ts +8 -2
- package/dist/src/interfaces/index.d.ts.map +1 -1
- package/dist/src/interfaces/index.js +8 -2
- package/dist/src/interfaces/index.js.map +1 -1
- package/dist/src/interfaces/subscription.interface.d.ts +70 -0
- package/dist/src/interfaces/subscription.interface.d.ts.map +1 -0
- package/dist/src/interfaces/subscription.interface.js +23 -0
- package/dist/src/interfaces/subscription.interface.js.map +1 -0
- package/dist/src/interfaces/supplierSettings.interface.d.ts +11 -0
- package/dist/src/interfaces/supplierSettings.interface.d.ts.map +1 -0
- package/dist/src/interfaces/supplierSettings.interface.js +3 -0
- package/dist/src/interfaces/supplierSettings.interface.js.map +1 -0
- package/dist/src/interfaces/systemNotification.interface.d.ts +9 -0
- package/dist/src/interfaces/systemNotification.interface.d.ts.map +1 -0
- package/dist/src/interfaces/systemNotification.interface.js +3 -0
- package/dist/src/interfaces/systemNotification.interface.js.map +1 -0
- package/dist/src/interfaces/user.interface.d.ts +8 -0
- package/dist/src/interfaces/user.interface.d.ts.map +1 -0
- package/dist/src/interfaces/user.interface.js +3 -0
- package/dist/src/interfaces/user.interface.js.map +1 -0
- package/dist/src/interfaces/userAlert.interface.d.ts +6 -0
- package/dist/src/interfaces/userAlert.interface.d.ts.map +1 -0
- package/dist/src/interfaces/userAlert.interface.js +3 -0
- package/dist/src/interfaces/userAlert.interface.js.map +1 -0
- package/dist/src/interfaces/userPreferences.interface.d.ts +10 -0
- package/dist/src/interfaces/userPreferences.interface.d.ts.map +1 -0
- package/dist/src/interfaces/userPreferences.interface.js +3 -0
- package/dist/src/interfaces/userPreferences.interface.js.map +1 -0
- package/dist/src/models/account.model.d.ts +27 -0
- package/dist/src/models/account.model.d.ts.map +1 -0
- package/dist/src/models/account.model.js +26 -0
- package/dist/src/models/account.model.js.map +1 -0
- package/dist/src/models/accountDetails.model.d.ts +20 -0
- package/dist/src/models/accountDetails.model.d.ts.map +1 -0
- package/dist/src/models/accountDetails.model.js +15 -0
- package/dist/src/models/accountDetails.model.js.map +1 -0
- package/dist/src/models/accountSettings.model.d.ts +13 -0
- package/dist/src/models/accountSettings.model.d.ts.map +1 -0
- package/dist/src/models/accountSettings.model.js +12 -0
- package/dist/src/models/accountSettings.model.js.map +1 -0
- package/dist/src/models/subscription.model.d.ts +27 -0
- package/dist/src/models/subscription.model.d.ts.map +1 -0
- package/dist/src/models/subscription.model.js +28 -0
- package/dist/src/models/subscription.model.js.map +1 -0
- package/dist/src/models/supplierSettings.model.d.ts +22 -0
- package/dist/src/models/supplierSettings.model.d.ts.map +1 -0
- package/dist/src/models/supplierSettings.model.js +13 -0
- package/dist/src/models/supplierSettings.model.js.map +1 -0
- package/dist/src/models/systemNotification.model.d.ts +22 -0
- package/dist/src/models/systemNotification.model.d.ts.map +1 -0
- package/dist/src/models/systemNotification.model.js +16 -0
- package/dist/src/models/systemNotification.model.js.map +1 -0
- package/dist/src/models/user.model.d.ts +12 -0
- package/dist/src/models/user.model.d.ts.map +1 -0
- package/dist/src/models/user.model.js +12 -0
- package/dist/src/models/user.model.js.map +1 -0
- package/dist/src/models/userAlert.model.d.ts +18 -0
- package/dist/src/models/userAlert.model.d.ts.map +1 -0
- package/dist/src/models/userAlert.model.js +14 -0
- package/dist/src/models/userAlert.model.js.map +1 -0
- package/dist/src/models/userPreferences.model.d.ts +18 -0
- package/dist/src/models/userPreferences.model.d.ts.map +1 -0
- package/dist/src/models/userPreferences.model.js +14 -0
- package/dist/src/models/userPreferences.model.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
- package/dist/src/interfaces/account-settings.interface.d.ts +0 -12
- package/dist/src/interfaces/account-settings.interface.d.ts.map +0 -1
- package/dist/src/interfaces/account-settings.interface.js.map +0 -1
- package/dist/src/interfaces/wipperoz-notification.interface.d.ts +0 -7
- package/dist/src/interfaces/wipperoz-notification.interface.d.ts.map +0 -1
- package/dist/src/interfaces/wipperoz-notification.interface.js.map +0 -1
- package/dist/src/models/account-settings.model.d.ts +0 -22
- package/dist/src/models/account-settings.model.d.ts.map +0 -1
- package/dist/src/models/account-settings.model.js +0 -32
- package/dist/src/models/account-settings.model.js.map +0 -1
- package/dist/src/models/wipperoz-notification.model.d.ts +0 -9
- package/dist/src/models/wipperoz-notification.model.d.ts.map +0 -1
- package/dist/src/models/wipperoz-notification.model.js +0 -12
- package/dist/src/models/wipperoz-notification.model.js.map +0 -1
|
@@ -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"}
|