@silexpert/core 1.0.182 → 1.0.184
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/es/api/resources/Notification.d.ts +3 -0
- package/es/api/resources/Notification.d.ts.map +1 -1
- package/es/api/resources/Notification.js +7 -1
- package/es/api/resources/Notification.js.map +1 -1
- package/es/types/Enum/BrandPourcentage.js +7 -7
- package/es/types/Enum/BrandPourcentage.js.map +1 -1
- package/es/types/Enum/CommercialImportHeader.d.ts.map +1 -1
- package/es/types/Enum/CommercialImportHeader.js +23 -16
- package/es/types/Enum/CommercialImportHeader.js.map +1 -1
- package/es/types/Enum/NotificationType.d.ts +14 -2
- package/es/types/Enum/NotificationType.d.ts.map +1 -1
- package/es/types/Enum/NotificationType.js +35 -5
- package/es/types/Enum/NotificationType.js.map +1 -1
- package/es/types/Interface/api/appNotification/Update.d.ts +5 -0
- package/es/types/Interface/api/appNotification/Update.d.ts.map +1 -0
- package/es/types/Interface/api/appNotification/Update.js +25 -0
- package/es/types/Interface/api/appNotification/Update.js.map +1 -0
- package/es/types/Interface/api/aspone/ReadInterchange.d.ts +1 -1
- package/es/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
- package/es/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
- package/es/types/Interface/api/commercialImport/Query.d.ts +1 -1
- package/es/types/Interface/api/commercialImport/Query.d.ts.map +1 -1
- package/es/types/Interface/api/commercialImport/Query.js.map +1 -1
- package/es/types/Interface/api/commercialImport/Read.d.ts +2 -1
- package/es/types/Interface/api/commercialImport/Read.d.ts.map +1 -1
- package/es/types/Interface/api/commercialImport/Read.js.map +1 -1
- package/es/types/Interface/api/notification/CreateNotification.d.ts +2 -2
- package/es/types/Interface/api/notification/CreateNotification.d.ts.map +1 -1
- package/es/types/Interface/api/notification/CreateNotification.js +2 -2
- package/es/types/Interface/api/notification/CreateNotification.js.map +1 -1
- package/es/types/Interface/api/notificationSetting/CreateNotificationSetting.d.ts +2 -2
- package/es/types/Interface/api/notificationSetting/CreateNotificationSetting.d.ts.map +1 -1
- package/es/types/Interface/api/notificationSetting/CreateNotificationSetting.js +2 -2
- package/es/types/Interface/api/notificationSetting/CreateNotificationSetting.js.map +1 -1
- package/es/types/Interface/api/notificationSetting/UpdateNotificationSetting.d.ts +2 -2
- package/es/types/Interface/api/notificationSetting/UpdateNotificationSetting.d.ts.map +1 -1
- package/es/types/Interface/api/notificationSetting/UpdateNotificationSetting.js +2 -2
- package/es/types/Interface/api/notificationSetting/UpdateNotificationSetting.js.map +1 -1
- package/es/types/Interface/models/IAppNotification.d.ts +20 -0
- package/es/types/Interface/models/IAppNotification.d.ts.map +1 -0
- package/es/types/Interface/models/IAppNotification.js +2 -0
- package/es/types/Interface/models/IAppNotification.js.map +1 -0
- package/es/types/Interface/models/IMobileNotificationLog.d.ts +2 -2
- package/es/types/Interface/models/IMobileNotificationLog.d.ts.map +1 -1
- package/es/types/Interface/models/IMobileNotificationLog.js.map +1 -1
- package/es/types/Interface/models/IMobileNotificationSetting.d.ts +2 -2
- package/es/types/Interface/models/IMobileNotificationSetting.d.ts.map +1 -1
- package/es/types/Interface/models/IMobileNotificationSetting.js.map +1 -1
- package/es/types/index.d.ts +2 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +2 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/Notification.js +7 -1
- package/js/api/resources/Notification.js.map +1 -1
- package/js/types/Enum/BrandPourcentage.js +7 -7
- package/js/types/Enum/BrandPourcentage.js.map +1 -1
- package/js/types/Enum/CommercialImportHeader.js +23 -16
- package/js/types/Enum/CommercialImportHeader.js.map +1 -1
- package/js/types/Enum/NotificationType.js +35 -5
- package/js/types/Enum/NotificationType.js.map +1 -1
- package/js/types/Interface/api/appNotification/Update.js +24 -0
- package/js/types/Interface/api/appNotification/Update.js.map +1 -0
- package/js/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
- package/js/types/Interface/api/commercialImport/Query.js.map +1 -1
- package/js/types/Interface/api/commercialImport/Read.js.map +1 -1
- package/js/types/Interface/api/notification/CreateNotification.js +1 -1
- package/js/types/Interface/api/notification/CreateNotification.js.map +1 -1
- package/js/types/Interface/api/notificationSetting/CreateNotificationSetting.js +1 -1
- package/js/types/Interface/api/notificationSetting/CreateNotificationSetting.js.map +1 -1
- package/js/types/Interface/api/notificationSetting/UpdateNotificationSetting.js +1 -1
- package/js/types/Interface/api/notificationSetting/UpdateNotificationSetting.js.map +1 -1
- package/js/types/Interface/models/IAppNotification.js +6 -0
- package/js/types/Interface/models/IAppNotification.js.map +1 -0
- package/js/types/Interface/models/IMobileNotificationLog.js.map +1 -1
- package/js/types/Interface/models/IMobileNotificationSetting.js.map +1 -1
- package/js/types/index.js +20 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Notification.ts +10 -1
- package/ts/types/Enum/BrandPourcentage.ts +7 -7
- package/ts/types/Enum/CommercialImportHeader.ts +23 -16
- package/ts/types/Enum/NotificationType.ts +43 -2
- package/ts/types/Interface/api/appNotification/Update.ts +13 -0
- package/ts/types/Interface/api/aspone/ReadInterchange.ts +1 -1
- package/ts/types/Interface/api/commercialImport/Query.ts +2 -1
- package/ts/types/Interface/api/commercialImport/Read.ts +2 -1
- package/ts/types/Interface/api/notification/CreateNotification.ts +3 -3
- package/ts/types/Interface/api/notificationSetting/CreateNotificationSetting.ts +3 -3
- package/ts/types/Interface/api/notificationSetting/UpdateNotificationSetting.ts +3 -3
- package/ts/types/Interface/models/IAppNotification.ts +22 -0
- package/ts/types/Interface/models/IMobileNotificationLog.ts +2 -2
- package/ts/types/Interface/models/IMobileNotificationSetting.ts +2 -2
- package/ts/types/index.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.184",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "js/index.js",
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
+
import { IAppNotification, UpdateAppNotificationStatus } from '../../types';
|
|
1
2
|
import { Resource } from '../Resource';
|
|
2
3
|
|
|
3
4
|
export class Notification extends Resource {
|
|
4
5
|
createTestNotification(idUser: number): Promise<string> {
|
|
5
|
-
return this.axios.$post(`/notifications/${idUser}`);
|
|
6
|
+
return this.axios.$post(`/mobile/notifications/${idUser}`);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
getAllBySociety(id: number): Promise<IAppNotification[]> {
|
|
10
|
+
return this.axios.$get(`societies/${id}/notifications`);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
updateStatus(params: UpdateAppNotificationStatus): Promise<number> {
|
|
14
|
+
return this.axios.$put('/notifications/status', params);
|
|
6
15
|
}
|
|
7
16
|
}
|
|
@@ -3,7 +3,7 @@ export const BrandPourcentage = [
|
|
|
3
3
|
idTypeBrand: 1,
|
|
4
4
|
urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-pourcentage/',
|
|
5
5
|
logoS3: 'config/pourcentage-logo.png',
|
|
6
|
-
name: 'Pourcentage
|
|
6
|
+
name: 'Pourcentage Online',
|
|
7
7
|
colors: {
|
|
8
8
|
primary: '#1e6f5c',
|
|
9
9
|
primary50: '#DFF9F1',
|
|
@@ -90,7 +90,7 @@ export const BrandPourcentage = [
|
|
|
90
90
|
idTypeBrand: 2,
|
|
91
91
|
urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-pourcentage/',
|
|
92
92
|
logoS3: 'config/pourcentage-logo.png',
|
|
93
|
-
name: 'Paris', // Sofrageco
|
|
93
|
+
name: 'Pourcentage Paris', // Sofrageco
|
|
94
94
|
colors: {
|
|
95
95
|
primary: '#1e6f5c',
|
|
96
96
|
primary50: '#DFF9F1',
|
|
@@ -177,7 +177,7 @@ export const BrandPourcentage = [
|
|
|
177
177
|
idTypeBrand: 3,
|
|
178
178
|
urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-pourcentage/',
|
|
179
179
|
logoS3: 'config/pourcentage-logo.png',
|
|
180
|
-
name: 'Nancy', // AEC54
|
|
180
|
+
name: 'Pourcentage Nancy', // AEC54
|
|
181
181
|
colors: {
|
|
182
182
|
primary: '#1e6f5c',
|
|
183
183
|
primary50: '#DFF9F1',
|
|
@@ -264,7 +264,7 @@ export const BrandPourcentage = [
|
|
|
264
264
|
idTypeBrand: 4,
|
|
265
265
|
urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-pourcentage/',
|
|
266
266
|
logoS3: 'config/pourcentage-logo.png',
|
|
267
|
-
name: '
|
|
267
|
+
name: 'Pourcentage Epinal', // Pourcentage EPINAL
|
|
268
268
|
colors: {
|
|
269
269
|
primary: '#1e6f5c',
|
|
270
270
|
primary50: '#DFF9F1',
|
|
@@ -351,7 +351,7 @@ export const BrandPourcentage = [
|
|
|
351
351
|
idTypeBrand: 5,
|
|
352
352
|
urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-pourcentage/',
|
|
353
353
|
logoS3: 'config/pourcentage-logo.png',
|
|
354
|
-
name: '
|
|
354
|
+
name: 'Pourcentage Nice', // AMEX
|
|
355
355
|
colors: {
|
|
356
356
|
primary: '#1e6f5c',
|
|
357
357
|
primary50: '#DFF9F1',
|
|
@@ -435,10 +435,10 @@ export const BrandPourcentage = [
|
|
|
435
435
|
},
|
|
436
436
|
},
|
|
437
437
|
{
|
|
438
|
-
idTypeBrand:
|
|
438
|
+
idTypeBrand: 6,
|
|
439
439
|
urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-pourcentage/',
|
|
440
440
|
logoS3: 'config/pourcentage-logo.png',
|
|
441
|
-
name: 'Marseille', // Pourcentage Marseille
|
|
441
|
+
name: 'Pourcentage Marseille', // Pourcentage Marseille
|
|
442
442
|
colors: {
|
|
443
443
|
primary: '#1e6f5c',
|
|
444
444
|
primary50: '#DFF9F1',
|
|
@@ -16,77 +16,84 @@ export const commercialImportHeader: CommercialImportHeader = {
|
|
|
16
16
|
required: true,
|
|
17
17
|
description: 'Montant total toutes taxes comprises',
|
|
18
18
|
},
|
|
19
|
+
TAX_EXCLUDED: {
|
|
20
|
+
originalName: 'taxExcludedAmount_0',
|
|
21
|
+
name: 'Montant sans TVA',
|
|
22
|
+
required: false,
|
|
23
|
+
description: 'Total hors taxes des prestations ou marchandises facturées sans TVA',
|
|
24
|
+
},
|
|
25
|
+
AMOUNT_VAT_0: {
|
|
26
|
+
originalName: 'amountVat_0',
|
|
27
|
+
name: 'Montant TVA sans TVA',
|
|
28
|
+
required: false,
|
|
29
|
+
description: 'Montant en euros de la TVA à 0',
|
|
30
|
+
relatedField: 'taxExcludedAmount_0',
|
|
31
|
+
},
|
|
19
32
|
TAX_EXCLUDED_AMOUNT_20: {
|
|
20
33
|
originalName: 'taxExcludedAmount_20',
|
|
21
34
|
name: 'Montant HT TVA 20%',
|
|
22
|
-
required:
|
|
35
|
+
required: false,
|
|
23
36
|
description: 'Total hors taxes des prestations ou marchandises facturées avec la TVA 20%',
|
|
24
37
|
},
|
|
25
38
|
AMOUNT_VAT_20: {
|
|
26
39
|
originalName: 'amountVat_20',
|
|
27
40
|
name: 'Montant TVA 20%',
|
|
28
|
-
required:
|
|
41
|
+
required: false,
|
|
29
42
|
description: 'Montant en euros de la TVA 20%',
|
|
30
43
|
relatedField: 'taxExcludedAmount_20',
|
|
31
44
|
},
|
|
32
45
|
TAX_EXCLUDED_10: {
|
|
33
46
|
originalName: 'taxExcludedAmount_10',
|
|
34
47
|
name: 'Montant HT TVA 10%',
|
|
35
|
-
required:
|
|
48
|
+
required: false,
|
|
36
49
|
description: 'Total hors taxes des prestations ou marchandises facturées avec la TVA 10%',
|
|
37
50
|
},
|
|
38
51
|
AMOUNT_VAT_10: {
|
|
39
52
|
originalName: 'amountVat_10',
|
|
40
53
|
name: 'Montant TVA 10%',
|
|
41
|
-
required:
|
|
54
|
+
required: false,
|
|
42
55
|
description: 'Montant en euros de la TVA 10%',
|
|
43
56
|
relatedField: 'taxExcludedAmount_10',
|
|
44
57
|
},
|
|
45
58
|
TAX_EXCLUDED_8_5: {
|
|
46
59
|
originalName: 'taxExcludedAmount_8_5',
|
|
47
60
|
name: 'Montant HT TVA 8,5%',
|
|
48
|
-
required:
|
|
61
|
+
required: false,
|
|
49
62
|
description: 'Total hors taxes des prestations ou marchandises facturées avec la TVA 8,5%',
|
|
50
63
|
},
|
|
51
64
|
AMOUNT_VAT_8_5: {
|
|
52
65
|
originalName: 'amountVat_8_5',
|
|
53
66
|
name: 'Montant TVA 8,5%',
|
|
54
|
-
required:
|
|
67
|
+
required: false,
|
|
55
68
|
description: 'Montant en euros de la TVA 8,5%',
|
|
56
69
|
relatedField: 'taxExcludedAmount_8_5',
|
|
57
70
|
},
|
|
58
71
|
TAX_EXCLUDED_5_5: {
|
|
59
72
|
originalName: 'taxExcludedAmount_5_5',
|
|
60
73
|
name: 'Montant HT TVA 5,5%',
|
|
61
|
-
required:
|
|
74
|
+
required: false,
|
|
62
75
|
description: 'Total hors taxes des prestations ou marchandises facturées avec la TVA 5,5%',
|
|
63
76
|
},
|
|
64
77
|
AMOUNT_VAT_5_5: {
|
|
65
78
|
originalName: 'amountVat_5_5',
|
|
66
79
|
name: 'Montant TVA 5,5%',
|
|
67
|
-
required:
|
|
80
|
+
required: false,
|
|
68
81
|
description: 'Montant en euros de la TVA 5,5%',
|
|
69
82
|
relatedField: 'taxExcludedAmount_5_5',
|
|
70
83
|
},
|
|
71
84
|
TAX_EXCLUDED_2_1: {
|
|
72
85
|
originalName: 'taxExcludedAmount_2_1',
|
|
73
86
|
name: 'Montant HT TVA 2,1%',
|
|
74
|
-
required:
|
|
87
|
+
required: false,
|
|
75
88
|
description: 'Total hors taxes des prestations ou marchandises facturées avec la TVA 2,1%',
|
|
76
89
|
},
|
|
77
90
|
AMOUNT_VAT_2_1: {
|
|
78
91
|
originalName: 'amountVat_2_1',
|
|
79
92
|
name: 'Montant TVA 2,1%',
|
|
80
|
-
required:
|
|
93
|
+
required: false,
|
|
81
94
|
description: 'Montant en euros de la TVA 2,1%',
|
|
82
95
|
relatedField: 'taxExcludedAmount_2_1',
|
|
83
96
|
},
|
|
84
|
-
TAX_EXCLUDED: {
|
|
85
|
-
originalName: 'taxExcludedAmount',
|
|
86
|
-
name: 'Montant sans TVA',
|
|
87
|
-
required: true,
|
|
88
|
-
description: 'Total hors taxes des prestations ou marchandises facturées sans TVA',
|
|
89
|
-
},
|
|
90
97
|
CUSTOMER_NAME: {
|
|
91
98
|
originalName: 'customerName',
|
|
92
99
|
name: 'Nom de client',
|
|
@@ -1,4 +1,45 @@
|
|
|
1
|
-
export enum
|
|
1
|
+
export enum NotificationTypeEnum {
|
|
2
2
|
ANNOTATE_COUNT = 1,
|
|
3
3
|
BANK_ACCOUNT_SYNCHRONISATION = 2,
|
|
4
|
-
|
|
4
|
+
INVOICE_HAS_BEEN_PAID = 3,
|
|
5
|
+
ESTIMATE_ALMOST_EXPIRED = 4,
|
|
6
|
+
INVOICE_ALMOST_EXPIRED = 5,
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type NotificationTypeType = {
|
|
10
|
+
id: number;
|
|
11
|
+
title: string;
|
|
12
|
+
linkTitle: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type NotificationTypeTypeEnum = {
|
|
16
|
+
[key: string]: NotificationTypeType
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const NotificationType: NotificationTypeTypeEnum = {
|
|
20
|
+
ANNOTATE_COUNT: {
|
|
21
|
+
id: NotificationTypeEnum.ANNOTATE_COUNT,
|
|
22
|
+
title: 'Vous avez des lignes non annotées',
|
|
23
|
+
linkTitle: 'Annoter',
|
|
24
|
+
},
|
|
25
|
+
BANK_ACCOUNT_SYNCHRONISATION: {
|
|
26
|
+
id: NotificationTypeEnum.BANK_ACCOUNT_SYNCHRONISATION,
|
|
27
|
+
title: 'Un de vos comptes bancaires est désynchronisé',
|
|
28
|
+
linkTitle: 'Synchroniser mon compte',
|
|
29
|
+
},
|
|
30
|
+
INVOICE_HAS_BEEN_PAID: {
|
|
31
|
+
id: NotificationTypeEnum.INVOICE_HAS_BEEN_PAID,
|
|
32
|
+
title: 'Vous avez été payé !',
|
|
33
|
+
linkTitle: 'Consulter la facture',
|
|
34
|
+
},
|
|
35
|
+
ESTIMATE_ALMOST_EXPIRED: {
|
|
36
|
+
id: NotificationTypeEnum.ESTIMATE_ALMOST_EXPIRED,
|
|
37
|
+
title: 'Un devis est bientôt expiré',
|
|
38
|
+
linkTitle: 'Consulter le devis',
|
|
39
|
+
},
|
|
40
|
+
INVOICE_ALMOST_EXPIRED: {
|
|
41
|
+
id: NotificationTypeEnum.INVOICE_ALMOST_EXPIRED,
|
|
42
|
+
title: 'Une facture arrive à échéance',
|
|
43
|
+
linkTitle: 'Consulter la facture',
|
|
44
|
+
},
|
|
45
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IsBoolean } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional, ApiProperty } from '../../../../utils';
|
|
3
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
|
+
|
|
5
|
+
export class UpdateAppNotificationStatus {
|
|
6
|
+
@ApiPropertyOptional()
|
|
7
|
+
idNotifications?: number[] | null;
|
|
8
|
+
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsBoolean()
|
|
11
|
+
@ToBoolean()
|
|
12
|
+
markAsRead: boolean;
|
|
13
|
+
}
|
|
@@ -21,7 +21,8 @@ export interface ImportRow {
|
|
|
21
21
|
|
|
22
22
|
export interface ImportRawRow {
|
|
23
23
|
taxIncludedAmount: number;
|
|
24
|
-
|
|
24
|
+
taxExcludedAmount_0: number;
|
|
25
|
+
amountVat_0: number;
|
|
25
26
|
taxExcludedAmount_20: number;
|
|
26
27
|
amountVat_20: number;
|
|
27
28
|
taxExcludedAmount_10: number;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { IsEnum, IsInt } from 'class-validator';
|
|
2
2
|
import { ApiProperty } from '../../../../utils';
|
|
3
|
-
import {
|
|
3
|
+
import { NotificationTypeEnum } from '../../../Enum/NotificationType';
|
|
4
4
|
|
|
5
5
|
export class CreateNotification {
|
|
6
6
|
@ApiProperty()
|
|
7
7
|
@IsInt()
|
|
8
|
-
@IsEnum(
|
|
9
|
-
notificationType:
|
|
8
|
+
@IsEnum(NotificationTypeEnum)
|
|
9
|
+
notificationType: NotificationTypeEnum;
|
|
10
10
|
|
|
11
11
|
@ApiProperty()
|
|
12
12
|
token: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { IsBoolean, IsEnum, IsInt } from 'class-validator';
|
|
2
2
|
import { ApiProperty } from '../../../../utils';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
|
-
import {
|
|
4
|
+
import { NotificationTypeEnum } from '../../../Enum/NotificationType';
|
|
5
5
|
|
|
6
6
|
export class CreateNotificationSetting {
|
|
7
7
|
@ApiProperty()
|
|
8
8
|
@IsInt()
|
|
9
|
-
@IsEnum(
|
|
10
|
-
notificationType:
|
|
9
|
+
@IsEnum(NotificationTypeEnum)
|
|
10
|
+
notificationType: NotificationTypeEnum;
|
|
11
11
|
|
|
12
12
|
@ApiProperty()
|
|
13
13
|
@IsBoolean()
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { IsBoolean, IsEnum, IsInt } from 'class-validator';
|
|
2
2
|
import { ApiProperty } from '../../../../utils';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
|
-
import {
|
|
4
|
+
import { NotificationTypeEnum } from '../../../Enum/NotificationType';
|
|
5
5
|
|
|
6
6
|
export class UpdateNotificationSetting {
|
|
7
7
|
@ApiProperty()
|
|
8
8
|
@IsInt()
|
|
9
|
-
@IsEnum(
|
|
10
|
-
notificationType:
|
|
9
|
+
@IsEnum(NotificationTypeEnum)
|
|
10
|
+
notificationType: NotificationTypeEnum;
|
|
11
11
|
|
|
12
12
|
@ApiProperty()
|
|
13
13
|
@IsBoolean()
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { NotificationTypeEnum } from '../../Enum/NotificationType';
|
|
2
|
+
import { ISociety } from './ISociety';
|
|
3
|
+
import { IUser } from './IUser';
|
|
4
|
+
|
|
5
|
+
export interface IAppNotification {
|
|
6
|
+
id: number;
|
|
7
|
+
title: string;
|
|
8
|
+
message: string;
|
|
9
|
+
link?: string;
|
|
10
|
+
documentId?: number;
|
|
11
|
+
read: boolean;
|
|
12
|
+
idNotificationtype: NotificationTypeEnum;
|
|
13
|
+
idSociety: number;
|
|
14
|
+
idUser: number;
|
|
15
|
+
idBankAccount?: number;
|
|
16
|
+
createdAt?: Date | null;
|
|
17
|
+
updatedAt?: Date | null;
|
|
18
|
+
|
|
19
|
+
// associations
|
|
20
|
+
society: ISociety;
|
|
21
|
+
user: IUser;
|
|
22
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NotificationTypeEnum } from '../../Enum/NotificationType';
|
|
2
2
|
|
|
3
3
|
export interface IMobileNotificationLog {
|
|
4
4
|
id: number;
|
|
5
|
-
idType:
|
|
5
|
+
idType: NotificationTypeEnum;
|
|
6
6
|
lastSent: Date | null;
|
|
7
7
|
nextSend: Date | null;
|
|
8
8
|
success: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NotificationTypeEnum } from '../../Enum/NotificationType';
|
|
2
2
|
|
|
3
3
|
export interface IMobileNotificationSetting {
|
|
4
4
|
id: number;
|
|
5
|
-
idType:
|
|
5
|
+
idType: NotificationTypeEnum;
|
|
6
6
|
active: boolean;
|
|
7
7
|
idUser: number;
|
|
8
8
|
createdAt?: Date | null;
|
package/ts/types/index.ts
CHANGED
|
@@ -322,6 +322,7 @@ export * from './Interface/models/IRegistration';
|
|
|
322
322
|
export * from './Interface/models/IVatRegimeHistory';
|
|
323
323
|
export * from './Interface/models/ICustomerAcceptance';
|
|
324
324
|
export * from './Interface/models/IUnpaidCallHistory';
|
|
325
|
+
export * from './Interface/models/IAppNotification';
|
|
325
326
|
// Forms
|
|
326
327
|
export * from './Form/FormAuthenticate';
|
|
327
328
|
export * from './Form/FormConnector';
|
|
@@ -915,4 +916,5 @@ export * from './Interface/api/affectedPatrimony/CreateInKindAffectedPatrimony';
|
|
|
915
916
|
export * from './Interface/api/affectedPatrimony/ResultCreateAffectedPatrimony';
|
|
916
917
|
export * from './Interface/api/affectedPatrimony/ReadAffectedPatrimony';
|
|
917
918
|
export * from './Interface/api/notificationSetting/CreateNotificationSetting';
|
|
918
|
-
export * from './Interface/api/notificationSetting/UpdateNotificationSetting';
|
|
919
|
+
export * from './Interface/api/notificationSetting/UpdateNotificationSetting';
|
|
920
|
+
export * from './Interface/api/appNotification/Update';
|