@silexpert/core 1.1.373 → 1.1.374

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 (131) hide show
  1. package/dist/cjs/api/resources/Rating.d.ts +5 -2
  2. package/dist/cjs/api/resources/Rating.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Rating.js +10 -1
  4. package/dist/cjs/api/resources/Rating.js.map +1 -1
  5. package/dist/cjs/api/resources/Transaction.d.ts +2 -1
  6. package/dist/cjs/api/resources/Transaction.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Transaction.js +15 -4
  8. package/dist/cjs/api/resources/Transaction.js.map +1 -1
  9. package/dist/cjs/types/Enum/Notification.d.ts +2 -1
  10. package/dist/cjs/types/Enum/Notification.d.ts.map +1 -1
  11. package/dist/cjs/types/Enum/Notification.js +13 -0
  12. package/dist/cjs/types/Enum/Notification.js.map +1 -1
  13. package/dist/cjs/types/Enum/StatusRating.d.ts +5 -0
  14. package/dist/cjs/types/Enum/StatusRating.d.ts.map +1 -0
  15. package/dist/cjs/types/Enum/StatusRating.js +11 -0
  16. package/dist/cjs/types/Enum/StatusRating.js.map +1 -0
  17. package/dist/cjs/types/Enum/ToRecallRating.d.ts +5 -0
  18. package/dist/cjs/types/Enum/ToRecallRating.d.ts.map +1 -0
  19. package/dist/cjs/types/Enum/ToRecallRating.js +9 -0
  20. package/dist/cjs/types/Enum/ToRecallRating.js.map +1 -0
  21. package/dist/cjs/types/Enum/TypeSupportForNotation.d.ts +5 -0
  22. package/dist/cjs/types/Enum/TypeSupportForNotation.d.ts.map +1 -0
  23. package/dist/cjs/types/Enum/TypeSupportForNotation.js +8 -0
  24. package/dist/cjs/types/Enum/TypeSupportForNotation.js.map +1 -0
  25. package/dist/cjs/types/Interface/api/rating/CreateRating.d.ts +12 -0
  26. package/dist/cjs/types/Interface/api/rating/CreateRating.d.ts.map +1 -0
  27. package/dist/cjs/types/Interface/api/rating/CreateRating.js +71 -0
  28. package/dist/cjs/types/Interface/api/rating/CreateRating.js.map +1 -0
  29. package/dist/cjs/types/Interface/api/rating/QueryRatingPaginated.d.ts +7 -0
  30. package/dist/cjs/types/Interface/api/rating/QueryRatingPaginated.d.ts.map +1 -1
  31. package/dist/cjs/types/Interface/api/rating/QueryRatingPaginated.js +43 -0
  32. package/dist/cjs/types/Interface/api/rating/QueryRatingPaginated.js.map +1 -1
  33. package/dist/cjs/types/Interface/api/rating/UpdateRating.d.ts +6 -0
  34. package/dist/cjs/types/Interface/api/rating/UpdateRating.d.ts.map +1 -0
  35. package/dist/cjs/types/Interface/api/rating/UpdateRating.js +39 -0
  36. package/dist/cjs/types/Interface/api/rating/UpdateRating.js.map +1 -0
  37. package/dist/cjs/types/Interface/api/ratingHistory/CreateRatingHistory.d.ts +7 -0
  38. package/dist/cjs/types/Interface/api/ratingHistory/CreateRatingHistory.d.ts.map +1 -0
  39. package/dist/cjs/types/Interface/api/ratingHistory/CreateRatingHistory.js +38 -0
  40. package/dist/cjs/types/Interface/api/ratingHistory/CreateRatingHistory.js.map +1 -0
  41. package/dist/cjs/types/Interface/models/IAnnotation.d.ts +2 -0
  42. package/dist/cjs/types/Interface/models/IAnnotation.d.ts.map +1 -1
  43. package/dist/cjs/types/Interface/models/IAnnotation.js.map +1 -1
  44. package/dist/cjs/types/Interface/models/IRating.d.ts +13 -3
  45. package/dist/cjs/types/Interface/models/IRating.d.ts.map +1 -1
  46. package/dist/cjs/types/Interface/models/IRating.js.map +1 -1
  47. package/dist/cjs/types/Interface/models/IRatingHistory.d.ts +14 -0
  48. package/dist/cjs/types/Interface/models/IRatingHistory.d.ts.map +1 -0
  49. package/dist/cjs/types/Interface/models/{IReasonTermination.js → IRatingHistory.js} +1 -1
  50. package/dist/cjs/types/Interface/models/IRatingHistory.js.map +1 -0
  51. package/dist/cjs/types/index.d.ts +7 -1
  52. package/dist/cjs/types/index.d.ts.map +1 -1
  53. package/dist/cjs/types/index.js +7 -1
  54. package/dist/cjs/types/index.js.map +1 -1
  55. package/dist/mjs/api/resources/Rating.d.ts +5 -2
  56. package/dist/mjs/api/resources/Rating.d.ts.map +1 -1
  57. package/dist/mjs/api/resources/Rating.js +10 -1
  58. package/dist/mjs/api/resources/Rating.js.map +1 -1
  59. package/dist/mjs/api/resources/Transaction.d.ts +2 -1
  60. package/dist/mjs/api/resources/Transaction.d.ts.map +1 -1
  61. package/dist/mjs/api/resources/Transaction.js +17 -4
  62. package/dist/mjs/api/resources/Transaction.js.map +1 -1
  63. package/dist/mjs/types/Enum/Notification.d.ts +2 -1
  64. package/dist/mjs/types/Enum/Notification.d.ts.map +1 -1
  65. package/dist/mjs/types/Enum/Notification.js +13 -0
  66. package/dist/mjs/types/Enum/Notification.js.map +1 -1
  67. package/dist/mjs/types/Enum/StatusRating.d.ts +5 -0
  68. package/dist/mjs/types/Enum/StatusRating.d.ts.map +1 -0
  69. package/dist/mjs/types/Enum/StatusRating.js +8 -0
  70. package/dist/mjs/types/Enum/StatusRating.js.map +1 -0
  71. package/dist/mjs/types/Enum/ToRecallRating.d.ts +5 -0
  72. package/dist/mjs/types/Enum/ToRecallRating.d.ts.map +1 -0
  73. package/dist/mjs/types/Enum/ToRecallRating.js +6 -0
  74. package/dist/mjs/types/Enum/ToRecallRating.js.map +1 -0
  75. package/dist/mjs/types/Enum/TypeSupportForNotation.d.ts +5 -0
  76. package/dist/mjs/types/Enum/TypeSupportForNotation.d.ts.map +1 -0
  77. package/dist/mjs/types/Enum/TypeSupportForNotation.js +5 -0
  78. package/dist/mjs/types/Enum/TypeSupportForNotation.js.map +1 -0
  79. package/dist/mjs/types/Interface/api/rating/CreateRating.d.ts +12 -0
  80. package/dist/mjs/types/Interface/api/rating/CreateRating.d.ts.map +1 -0
  81. package/dist/mjs/types/Interface/api/rating/CreateRating.js +76 -0
  82. package/dist/mjs/types/Interface/api/rating/CreateRating.js.map +1 -0
  83. package/dist/mjs/types/Interface/api/rating/QueryRatingPaginated.d.ts +7 -0
  84. package/dist/mjs/types/Interface/api/rating/QueryRatingPaginated.d.ts.map +1 -1
  85. package/dist/mjs/types/Interface/api/rating/QueryRatingPaginated.js +50 -0
  86. package/dist/mjs/types/Interface/api/rating/QueryRatingPaginated.js.map +1 -1
  87. package/dist/mjs/types/Interface/api/rating/UpdateRating.d.ts +6 -0
  88. package/dist/mjs/types/Interface/api/rating/UpdateRating.d.ts.map +1 -0
  89. package/dist/mjs/types/Interface/api/rating/UpdateRating.js +38 -0
  90. package/dist/mjs/types/Interface/api/rating/UpdateRating.js.map +1 -0
  91. package/dist/mjs/types/Interface/api/ratingHistory/CreateRatingHistory.d.ts +7 -0
  92. package/dist/mjs/types/Interface/api/ratingHistory/CreateRatingHistory.d.ts.map +1 -0
  93. package/dist/mjs/types/Interface/api/ratingHistory/CreateRatingHistory.js +38 -0
  94. package/dist/mjs/types/Interface/api/ratingHistory/CreateRatingHistory.js.map +1 -0
  95. package/dist/mjs/types/Interface/models/IAnnotation.d.ts +2 -0
  96. package/dist/mjs/types/Interface/models/IAnnotation.d.ts.map +1 -1
  97. package/dist/mjs/types/Interface/models/IAnnotation.js.map +1 -1
  98. package/dist/mjs/types/Interface/models/IRating.d.ts +13 -3
  99. package/dist/mjs/types/Interface/models/IRating.d.ts.map +1 -1
  100. package/dist/mjs/types/Interface/models/IRating.js.map +1 -1
  101. package/dist/mjs/types/Interface/models/IRatingHistory.d.ts +14 -0
  102. package/dist/mjs/types/Interface/models/IRatingHistory.d.ts.map +1 -0
  103. package/dist/mjs/types/Interface/models/IRatingHistory.js +2 -0
  104. package/dist/mjs/types/Interface/models/IRatingHistory.js.map +1 -0
  105. package/dist/mjs/types/index.d.ts +7 -1
  106. package/dist/mjs/types/index.d.ts.map +1 -1
  107. package/dist/mjs/types/index.js +7 -1
  108. package/dist/mjs/types/index.js.map +1 -1
  109. package/package.json +1 -1
  110. package/ts/api/resources/Rating.ts +16 -3
  111. package/ts/api/resources/Transaction.ts +88 -19
  112. package/ts/types/Enum/Notification.ts +13 -0
  113. package/ts/types/Enum/StatusRating.ts +7 -0
  114. package/ts/types/Enum/ToRecallRating.ts +5 -0
  115. package/ts/types/Enum/TypeSupportForNotation.ts +4 -0
  116. package/ts/types/Interface/api/rating/CreateRating.ts +50 -0
  117. package/ts/types/Interface/api/rating/QueryRatingPaginated.ts +36 -0
  118. package/ts/types/Interface/api/rating/UpdateRating.ts +22 -0
  119. package/ts/types/Interface/api/ratingHistory/CreateRatingHistory.ts +22 -0
  120. package/ts/types/Interface/models/IAnnotation.ts +3 -0
  121. package/ts/types/Interface/models/IRating.ts +13 -3
  122. package/ts/types/Interface/models/IRatingHistory.ts +17 -0
  123. package/ts/types/index.ts +7 -1
  124. package/dist/cjs/types/Interface/models/IReasonTermination.d.ts +0 -7
  125. package/dist/cjs/types/Interface/models/IReasonTermination.d.ts.map +0 -1
  126. package/dist/cjs/types/Interface/models/IReasonTermination.js.map +0 -1
  127. package/dist/mjs/types/Interface/models/IReasonTermination.d.ts +0 -7
  128. package/dist/mjs/types/Interface/models/IReasonTermination.d.ts.map +0 -1
  129. package/dist/mjs/types/Interface/models/IReasonTermination.js +0 -2
  130. package/dist/mjs/types/Interface/models/IReasonTermination.js.map +0 -1
  131. package/ts/types/Interface/models/IReasonTermination.ts +0 -7
@@ -1,13 +1,35 @@
1
1
  import { Resource } from '../Resource';
2
2
  import {
3
3
  BasePaginate,
4
- ReadFormattedAccountingTransaction, UpdateAccountingTransaction, DeleteTransactions, QueryUnexport, QueryGetAllTransactions, IAccountingTransaction, ReadAccountantBalance, CreateManualEntry, IAccountingEntry, QueryDeleteInvoices, ReadDeletedInvoices, QuerySocietyTransactionCount, ReadSocietyTransactionCount, ReadBankAccountSum, QueryBankAccountSum, QueryTransaction, ReadPartnerTransactionType, DuplicateAccountingTransaction, CreateWithMasterEntry,
4
+ ReadFormattedAccountingTransaction,
5
+ UpdateAccountingTransaction,
6
+ DeleteTransactions,
7
+ QueryUnexport,
8
+ QueryGetAllTransactions,
9
+ IAccountingTransaction,
10
+ ReadAccountantBalance,
11
+ CreateManualEntry,
12
+ IAccountingEntry,
13
+ QueryDeleteInvoices,
14
+ ReadDeletedInvoices,
15
+ QuerySocietyTransactionCount,
16
+ ReadSocietyTransactionCount,
17
+ ReadBankAccountSum,
18
+ QueryBankAccountSum,
19
+ QueryTransaction,
20
+ ReadPartnerTransactionType,
21
+ DuplicateAccountingTransaction,
22
+ CreateWithMasterEntry,
5
23
  QueryExport,
6
24
  QueryAutomaticAnnotation,
25
+ IAnnotation,
7
26
  } from '../../types';
8
27
 
9
28
  export class Transaction extends Resource {
10
- getFormattedPaginate(idSociety: number, params: QueryTransaction): Promise<BasePaginate<ReadFormattedAccountingTransaction>> {
29
+ getFormattedPaginate(
30
+ idSociety: number,
31
+ params: QueryTransaction,
32
+ ): Promise<BasePaginate<ReadFormattedAccountingTransaction>> {
11
33
  return this.axios.$get(`/society/${idSociety}/transactions`, {
12
34
  params,
13
35
  });
@@ -23,59 +45,98 @@ export class Transaction extends Resource {
23
45
  });
24
46
  }
25
47
 
26
- update(id: number, params: Partial<IAccountingTransaction>): Promise<IAccountingTransaction> {
48
+ update(
49
+ id: number,
50
+ params: Partial<IAccountingTransaction>,
51
+ ): Promise<IAccountingTransaction> {
27
52
  return this.axios.$patch(`/transactions/${id}`, params);
28
53
  }
29
54
 
30
- getAll(idSociety: number, query: QueryGetAllTransactions): Promise<IAccountingTransaction[]> {
31
- return this.axios.$get(`/society/${idSociety}/transactions/list`, { params: query });
55
+ getAll(
56
+ idSociety: number,
57
+ query: QueryGetAllTransactions,
58
+ ): Promise<IAccountingTransaction[]> {
59
+ return this.axios.$get(`/society/${idSociety}/transactions/list`, {
60
+ params: query,
61
+ });
32
62
  }
33
63
  unexport(idSociety: number, params: QueryUnexport): Promise<number> {
34
- return this.axios.$put(`/society/${idSociety}/transactions/unexport`, params);
64
+ return this.axios.$put(
65
+ `/society/${idSociety}/transactions/unexport`,
66
+ params,
67
+ );
35
68
  }
36
69
 
37
70
  export(idSociety: number, params: QueryExport): Promise<number> {
38
71
  return this.axios.$put(`/society/${idSociety}/transactions/export`, params);
39
72
  }
40
- annotate(id: number, data: UpdateAccountingTransaction): Promise<ReadFormattedAccountingTransaction> {
73
+ annotate(
74
+ id: number,
75
+ data: UpdateAccountingTransaction,
76
+ ): Promise<ReadFormattedAccountingTransaction> {
41
77
  return this.axios.$put(`/transactions/${id}`, data);
42
78
  }
43
79
  delete(idSociety: number, id: number): Promise<number> {
44
80
  return this.axios.$delete(`/society/${idSociety}/transaction/${id}`);
45
81
  }
46
82
  deleteTransactions(id: number, data: DeleteTransactions): Promise<number> {
47
- return this.axios.$delete(`/bankAccount/${id}/transactions`, { params: data });
83
+ return this.axios.$delete(`/bankAccount/${id}/transactions`, {
84
+ params: data,
85
+ });
48
86
  }
49
87
 
50
- getBalanceQuotaShare(idExercice: number): Promise<Array<ReadAccountantBalance>> {
88
+ getBalanceQuotaShare(
89
+ idExercice: number,
90
+ ): Promise<Array<ReadAccountantBalance>> {
51
91
  return this.axios.$get(`/society/balance/${idExercice}`);
52
92
  }
53
93
 
54
- createManual(idSociety: number, data: Array<CreateManualEntry>): Promise<IAccountingTransaction> {
94
+ createManual(
95
+ idSociety: number,
96
+ data: Array<CreateManualEntry>,
97
+ ): Promise<IAccountingTransaction> {
55
98
  return this.axios.$post(`/society/${idSociety}/manual-transactions`, data);
56
99
  }
57
100
 
58
- createWithMasterEntry(idSociety: number, data: Array<CreateWithMasterEntry>): Promise<IAccountingTransaction> {
101
+ createWithMasterEntry(
102
+ idSociety: number,
103
+ data: Array<CreateWithMasterEntry>,
104
+ ): Promise<IAccountingTransaction> {
59
105
  return this.axios.$post(`/society/${idSociety}/transactions`, data);
60
106
  }
61
107
 
62
- getAllManual(idSociety: number, idExercice: number): Promise<Array<Array<IAccountingEntry>>> {
63
- return this.axios.$get(`/society/${idSociety}/exercices/${idExercice}/manual-transactions`);
108
+ getAllManual(
109
+ idSociety: number,
110
+ idExercice: number,
111
+ ): Promise<Array<Array<IAccountingEntry>>> {
112
+ return this.axios.$get(
113
+ `/society/${idSociety}/exercices/${idExercice}/manual-transactions`,
114
+ );
64
115
  }
65
116
 
66
- deleteMultipleInvoices(idSociety: number, query: QueryDeleteInvoices): Promise<ReadDeletedInvoices> {
67
- return this.axios.$delete(`/society/${idSociety}/invoice-transactions`, { params: query });
117
+ deleteMultipleInvoices(
118
+ idSociety: number,
119
+ query: QueryDeleteInvoices,
120
+ ): Promise<ReadDeletedInvoices> {
121
+ return this.axios.$delete(`/society/${idSociety}/invoice-transactions`, {
122
+ params: query,
123
+ });
68
124
  }
69
125
 
70
126
  toAnnotateCount(
71
127
  idSociety: number,
72
128
  params: QuerySocietyTransactionCount,
73
129
  ): Promise<ReadSocietyTransactionCount> {
74
- return this.axios.$get(`/society/${idSociety}/transactions/to-annotate/count`, { params });
130
+ return this.axios.$get(
131
+ `/society/${idSociety}/transactions/to-annotate/count`,
132
+ { params },
133
+ );
75
134
  }
76
135
 
77
136
  getBankAccountSum(query: QueryBankAccountSum): Promise<ReadBankAccountSum> {
78
- return this.axios.$get('/society/transactions/bank-account-sum', { params: query });
137
+ return this.axios.$get('/society/transactions/bank-account-sum', {
138
+ params: query,
139
+ });
79
140
  }
80
141
 
81
142
  get(id: number): Promise<ReadFormattedAccountingTransaction> {
@@ -90,7 +151,6 @@ export class Transaction extends Resource {
90
151
  return this.axios.$get('/transactions/partners-types');
91
152
  }
92
153
 
93
-
94
154
  annotateAutomatically(payload: QueryAutomaticAnnotation): Promise<number> {
95
155
  return this.axios.$post('/transactions/annotate-automatically', payload);
96
156
  }
@@ -98,4 +158,13 @@ export class Transaction extends Resource {
98
158
  duplicate(data: DuplicateAccountingTransaction): Promise<number> {
99
159
  return this.axios.$post('/transactions/duplicate', data);
100
160
  }
101
- }
161
+
162
+ getAllAnnotationsHistory(
163
+ id: number,
164
+ signal?: AbortSignal,
165
+ ): Promise<IAnnotation[]> {
166
+ return this.axios.$get(`/transactions/${id}/history`, {
167
+ ...(signal ? { signal } : {}),
168
+ });
169
+ }
170
+ }
@@ -39,6 +39,7 @@ export enum NotificationCode {
39
39
  CONSTITUTION_ABANDONED = 39,
40
40
  INTERNAL_CONTROL = 40,
41
41
  COLLABORATER_DETAILS_CHANGED = 41,
42
+ REMOVE_RDV_CLIENT = 42,
42
43
  }
43
44
 
44
45
  export enum TypeNotificationType {
@@ -291,4 +292,16 @@ export const NotificationCodeDetail: NotificationCodeType = {
291
292
  slug: 'internal-control',
292
293
  icon: 'supervisor_account',
293
294
  },
295
+ COLLABORATER_DETAILS_CHANGED: {
296
+ id: NotificationCode.COLLABORATER_DETAILS_CHANGED,
297
+ name: 'Modification informations collaborateur',
298
+ slug: 'collaborater-details-changed',
299
+ icon: 'edit',
300
+ },
301
+ REMOVE_RDV_CLIENT: {
302
+ id: NotificationCode.REMOVE_RDV_CLIENT,
303
+ name: 'Suppression d\'un rdv client',
304
+ slug: 'remove-rdv-client',
305
+ icon: 'event_busy',
306
+ },
294
307
  };
@@ -0,0 +1,7 @@
1
+ export const StatusRating = [
2
+ { value: 0, text: 'Non' },
3
+ { value: 1, text: 'Modifié' },
4
+ { value: 2, text: 'Supprimé' },
5
+ { value: 3, text: 'Refus de supprimer' },
6
+ { value: 4, text: 'Non concerné' },
7
+ ];
@@ -0,0 +1,5 @@
1
+ export const ToRecallRating = [
2
+ { text: 'Annonce de rappel', value: 1 },
3
+ { text: 'Informations demandées', value: 2 },
4
+ { text: 'Pas d\'action nécéssaire', value: 3 },
5
+ ];
@@ -0,0 +1,4 @@
1
+ export const TypeSupportForNotation = [
2
+ { value: 1, text: 'Google' },
3
+ { value: 2, text: 'Trustpilot' },
4
+ ];
@@ -0,0 +1,50 @@
1
+ import { IsDateString, IsInt, IsOptional, IsString } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class CreateRating {
5
+ @ApiPropertyOptional({
6
+ description: 'idSociety',
7
+ required: false,
8
+ type: Number,
9
+ example: 1,
10
+ })
11
+ idSociety: number;
12
+
13
+ @ApiPropertyOptional()
14
+ @IsOptional()
15
+ @IsString()
16
+ pseudo?: string;
17
+
18
+ @ApiProperty()
19
+ @IsDateString()
20
+ noticeDate?: string;
21
+
22
+ @ApiProperty()
23
+ @IsInt()
24
+ supportType?: number;
25
+
26
+ @ApiProperty()
27
+ @IsInt()
28
+ average?: number;
29
+
30
+ @ApiPropertyOptional()
31
+ @IsOptional()
32
+ @IsString()
33
+ link?: string;
34
+
35
+ @ApiProperty()
36
+ @IsString()
37
+ comment?: string;
38
+
39
+ @ApiPropertyOptional()
40
+ @IsInt()
41
+ @IsOptional()
42
+ toRecall?: number;
43
+
44
+ @ApiPropertyOptional()
45
+ @IsOptional()
46
+ @IsDateString()
47
+ responseDate?: string;
48
+
49
+
50
+ }
@@ -1,3 +1,4 @@
1
+ import { IsDateString, IsInt, IsOptional, IsString } from 'class-validator';
1
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
3
 
3
4
  export class QueryRatingPaginated {
@@ -26,4 +27,39 @@ export class QueryRatingPaginated {
26
27
  example: 1,
27
28
  })
28
29
  idSociety: number;
30
+
31
+ @ApiPropertyOptional()
32
+ @IsOptional()
33
+ @IsString()
34
+ search?: string;
35
+
36
+ @ApiPropertyOptional()
37
+ @IsInt()
38
+ @IsOptional()
39
+ supportType?: number;
40
+
41
+ @ApiPropertyOptional()
42
+ @IsInt()
43
+ @IsOptional()
44
+ average?: number;
45
+
46
+ @ApiPropertyOptional()
47
+ @IsInt()
48
+ @IsOptional()
49
+ idUserWhoCalledFirst?: number;
50
+
51
+ @ApiPropertyOptional()
52
+ @IsInt()
53
+ @IsOptional()
54
+ status?: number;
55
+
56
+ @ApiPropertyOptional()
57
+ @IsInt()
58
+ @IsOptional()
59
+ toRecall?: number;
60
+
61
+ @ApiPropertyOptional()
62
+ @IsOptional()
63
+ @IsDateString()
64
+ noticeDate?: string;
29
65
  }
@@ -0,0 +1,22 @@
1
+ import { IsInt, IsOptional, IsString } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class UpdateRating {
5
+ @ApiPropertyOptional({
6
+ description: 'idSociety',
7
+ required: false,
8
+ type: Number,
9
+ example: 1,
10
+ })
11
+ idSociety: number;
12
+
13
+ @ApiPropertyOptional()
14
+ @IsOptional()
15
+ @IsString()
16
+ pseudo?: string;
17
+
18
+ @ApiPropertyOptional()
19
+ @IsInt()
20
+ @IsOptional()
21
+ status?: number;
22
+ }
@@ -0,0 +1,22 @@
1
+ import { IsDateString, IsInt, IsString } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class CreateRatingHistory {
5
+ @ApiProperty()
6
+ @IsDateString()
7
+ callingDate?: string;
8
+
9
+ @ApiProperty()
10
+ @IsString()
11
+ commentResponse?: string;
12
+
13
+ @ApiProperty()
14
+ @IsInt()
15
+ idUserWhoCalled?: number;
16
+
17
+ @ApiProperty()
18
+ @IsInt()
19
+ idRating?: number;
20
+
21
+
22
+ }
@@ -1,5 +1,6 @@
1
1
  import { AnnotationType } from '../../Enum/Annotation';
2
2
  import { AnnotateAccountingTransaction } from '../api/accountingEntry/AnnotateAccountingTransaction';
3
+ import { IUser } from './IUser';
3
4
 
4
5
  export interface IAnnotation {
5
6
  id?: number;
@@ -9,4 +10,6 @@ export interface IAnnotation {
9
10
  idAccountingTransaction: number;
10
11
  createdAt?: Date;
11
12
  updatedAt?: Date;
13
+
14
+ user?: IUser | null;
12
15
  }
@@ -1,3 +1,4 @@
1
+ import { IUser } from './IUser';
1
2
  import { ISociety } from './ISociety';
2
3
 
3
4
  // ratings
@@ -5,16 +6,25 @@ export interface IRating {
5
6
  id?: number;
6
7
  notes?: string;
7
8
  comment?: string;
9
+ commentResponseFirst?: string;
8
10
  average?: number;
9
11
  dateNotShowPopUp?: Date | null;
10
12
  link?: string | null;
11
- idUserWhoInsert: number | null;
13
+ pseudo?: string | null;
14
+ idUserWhoInsert: number
15
+ idUserWhoCalledFirst?: number | null;
12
16
  noticeDate?: Date | null;
17
+ responseDate?: Date | null;
13
18
  isMugSent?: boolean | null;
14
- idSociety: number;
19
+ idSociety?: number;
20
+ toRecall?: number;
21
+ supportType?: number;
22
+ status?: number;
15
23
  createdAt?: Date | null;
16
24
  updatedAt?: Date | null;
17
25
 
18
26
  // Associations
19
- society?: ISociety;
27
+ society?: ISociety | null;
28
+ userWhoInsert?: IUser;
29
+ userWhoCalledFirst?: IUser;
20
30
  }
@@ -0,0 +1,17 @@
1
+ import { IRating } from './IRating';
2
+ import { IUser } from './IUser';
3
+
4
+ // ratingHistory
5
+ export interface IRatingHistory {
6
+ id?: number;
7
+ idRating: number;
8
+ idUserWhoCalled: number;
9
+ commentResponse: string;
10
+ callingDate: Date;
11
+ createdAt?: Date | null;
12
+ updatedAt?: Date | null;
13
+
14
+ // Associations
15
+ rating: IRating;
16
+ user: IUser;
17
+ }
package/ts/types/index.ts CHANGED
@@ -142,7 +142,7 @@ export * from './Interface/models/IProduct';
142
142
  export * from './Interface/models/IQuality';
143
143
  export * from './Interface/models/IQuotaLead';
144
144
  export * from './Interface/models/IRating';
145
- export * from './Interface/models/IReasonTermination';
145
+ export * from './Interface/models/IRatingHistory';
146
146
  export * from './Interface/models/IReason';
147
147
  export * from './Interface/models/IRecontactHistory';
148
148
  export * from './Interface/models/IRefund';
@@ -545,6 +545,9 @@ export * from './Enum/StateSynchro';
545
545
  export * from './Enum/RefundReason';
546
546
  export * from './Enum/Contest';
547
547
  export * from './Enum/LetterResponseType';
548
+ export * from './Enum/StatusRating';
549
+ export * from './Enum/TypeSupportForNotation';
550
+ export * from './Enum/ToRecallRating';
548
551
 
549
552
  // Interfaces API
550
553
  export * from './Interface/api/exercice/ReadExercice';
@@ -739,6 +742,9 @@ export * from './Interface/api/timeRecorder/UpdateRecorder';
739
742
  export * from './Interface/api/inpiBalance/QueryInpiBalanceStatistic';
740
743
  export * from './Interface/api/inpiBalance/QueryInpiBalancePaginated';
741
744
  export * from './Interface/api/rating/QueryRatingPaginated';
745
+ export * from './Interface/api/rating/CreateRating';
746
+ export * from './Interface/api/rating/UpdateRating';
747
+ export * from './Interface/api/ratingHistory/CreateRatingHistory';
742
748
  export * from './Interface/api/inpiBalance/inpiBalanceStatistic';
743
749
  export * from './Interface/api/inpiPayment/QueryInpiPaymentStatistic';
744
750
  export * from './Interface/api/inpiPayment/QueryInpiPaymentPaginated';
@@ -1,7 +0,0 @@
1
- export interface IReasonTermination {
2
- id?: number;
3
- name: string;
4
- createdAt?: Date | null;
5
- updatedAt?: Date | null;
6
- }
7
- //# sourceMappingURL=IReasonTermination.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IReasonTermination.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IReasonTermination.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,kBAAkB;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACzB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IReasonTermination.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IReasonTermination.ts"],"names":[],"mappings":"","sourcesContent":["// reasonTermination\nexport interface IReasonTermination {\n id?: number;\n name: string;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n}\n"]}
@@ -1,7 +0,0 @@
1
- export interface IReasonTermination {
2
- id?: number;
3
- name: string;
4
- createdAt?: Date | null;
5
- updatedAt?: Date | null;
6
- }
7
- //# sourceMappingURL=IReasonTermination.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IReasonTermination.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IReasonTermination.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,kBAAkB;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACzB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IReasonTermination.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IReasonTermination.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IReasonTermination.ts"],"names":[],"mappings":"","sourcesContent":["// reasonTermination\nexport interface IReasonTermination {\n id?: number;\n name: string;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n}\n"]}
@@ -1,7 +0,0 @@
1
- // reasonTermination
2
- export interface IReasonTermination {
3
- id?: number;
4
- name: string;
5
- createdAt?: Date | null;
6
- updatedAt?: Date | null;
7
- }