@silexpert/core 1.3.66-0 → 1.3.66-2

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 (110) hide show
  1. package/dist/cjs/api/resources/Refund.d.ts +2 -5
  2. package/dist/cjs/api/resources/Refund.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Refund.js.map +1 -1
  4. package/dist/cjs/types/Enum/FollowList.d.ts +6 -0
  5. package/dist/cjs/types/Enum/FollowList.d.ts.map +1 -1
  6. package/dist/cjs/types/Enum/FollowList.js +6 -0
  7. package/dist/cjs/types/Enum/FollowList.js.map +1 -1
  8. package/dist/cjs/types/Enum/PaymentAttempt.d.ts +6 -0
  9. package/dist/cjs/types/Enum/PaymentAttempt.d.ts.map +1 -0
  10. package/dist/cjs/types/Enum/PaymentAttempt.js +10 -0
  11. package/dist/cjs/types/Enum/PaymentAttempt.js.map +1 -0
  12. package/dist/cjs/types/Enum/PaymentMethod.d.ts +29 -10
  13. package/dist/cjs/types/Enum/PaymentMethod.d.ts.map +1 -1
  14. package/dist/cjs/types/Enum/PaymentMethod.js +31 -11
  15. package/dist/cjs/types/Enum/PaymentMethod.js.map +1 -1
  16. package/dist/cjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.d.ts +2 -1
  17. package/dist/cjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.d.ts.map +1 -1
  18. package/dist/cjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.js +6 -0
  19. package/dist/cjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.js.map +1 -1
  20. package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.d.ts +11 -0
  21. package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.d.ts.map +1 -0
  22. package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.js +50 -0
  23. package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.js.map +1 -0
  24. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +3 -0
  25. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  26. package/dist/cjs/types/Interface/api/stripe/Create.js +10 -1
  27. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  28. package/dist/cjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.d.ts +0 -1
  29. package/dist/cjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.d.ts.map +1 -1
  30. package/dist/cjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.js +0 -6
  31. package/dist/cjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.js.map +1 -1
  32. package/dist/cjs/types/Interface/models/IAppNotification.d.ts +3 -3
  33. package/dist/cjs/types/Interface/models/IAppNotification.d.ts.map +1 -1
  34. package/dist/cjs/types/Interface/models/IAppNotification.js.map +1 -1
  35. package/dist/cjs/types/Interface/models/IMobileNotificationLog.d.ts +4 -2
  36. package/dist/cjs/types/Interface/models/IMobileNotificationLog.d.ts.map +1 -1
  37. package/dist/cjs/types/Interface/models/IMobileNotificationLog.js.map +1 -1
  38. package/dist/cjs/types/Interface/models/IPayment.d.ts +2 -0
  39. package/dist/cjs/types/Interface/models/IPayment.d.ts.map +1 -1
  40. package/dist/cjs/types/Interface/models/IPayment.js.map +1 -1
  41. package/dist/cjs/types/Interface/models/IPaymentAttempt.d.ts +15 -0
  42. package/dist/cjs/types/Interface/models/IPaymentAttempt.d.ts.map +1 -0
  43. package/dist/cjs/types/Interface/models/IPaymentAttempt.js +3 -0
  44. package/dist/cjs/types/Interface/models/IPaymentAttempt.js.map +1 -0
  45. package/dist/cjs/types/index.d.ts +3 -0
  46. package/dist/cjs/types/index.d.ts.map +1 -1
  47. package/dist/cjs/types/index.js +3 -0
  48. package/dist/cjs/types/index.js.map +1 -1
  49. package/dist/mjs/api/resources/Refund.d.ts +2 -5
  50. package/dist/mjs/api/resources/Refund.d.ts.map +1 -1
  51. package/dist/mjs/api/resources/Refund.js.map +1 -1
  52. package/dist/mjs/types/Enum/FollowList.d.ts +6 -0
  53. package/dist/mjs/types/Enum/FollowList.d.ts.map +1 -1
  54. package/dist/mjs/types/Enum/FollowList.js +6 -0
  55. package/dist/mjs/types/Enum/FollowList.js.map +1 -1
  56. package/dist/mjs/types/Enum/PaymentAttempt.d.ts +6 -0
  57. package/dist/mjs/types/Enum/PaymentAttempt.d.ts.map +1 -0
  58. package/dist/mjs/types/Enum/PaymentAttempt.js +7 -0
  59. package/dist/mjs/types/Enum/PaymentAttempt.js.map +1 -0
  60. package/dist/mjs/types/Enum/PaymentMethod.d.ts +29 -10
  61. package/dist/mjs/types/Enum/PaymentMethod.d.ts.map +1 -1
  62. package/dist/mjs/types/Enum/PaymentMethod.js +30 -10
  63. package/dist/mjs/types/Enum/PaymentMethod.js.map +1 -1
  64. package/dist/mjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.d.ts +2 -1
  65. package/dist/mjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.d.ts.map +1 -1
  66. package/dist/mjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.js +8 -1
  67. package/dist/mjs/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.js.map +1 -1
  68. package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.d.ts +11 -0
  69. package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.d.ts.map +1 -0
  70. package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.js +52 -0
  71. package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.js.map +1 -0
  72. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +3 -0
  73. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  74. package/dist/mjs/types/Interface/api/stripe/Create.js +9 -0
  75. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  76. package/dist/mjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.d.ts +0 -1
  77. package/dist/mjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.d.ts.map +1 -1
  78. package/dist/mjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.js +0 -7
  79. package/dist/mjs/types/Interface/api/webmail/GetPaginatedWhereObjectParams.js.map +1 -1
  80. package/dist/mjs/types/Interface/models/IAppNotification.d.ts +3 -3
  81. package/dist/mjs/types/Interface/models/IAppNotification.d.ts.map +1 -1
  82. package/dist/mjs/types/Interface/models/IAppNotification.js.map +1 -1
  83. package/dist/mjs/types/Interface/models/IMobileNotificationLog.d.ts +4 -2
  84. package/dist/mjs/types/Interface/models/IMobileNotificationLog.d.ts.map +1 -1
  85. package/dist/mjs/types/Interface/models/IMobileNotificationLog.js.map +1 -1
  86. package/dist/mjs/types/Interface/models/IPayment.d.ts +2 -0
  87. package/dist/mjs/types/Interface/models/IPayment.d.ts.map +1 -1
  88. package/dist/mjs/types/Interface/models/IPayment.js.map +1 -1
  89. package/dist/mjs/types/Interface/models/IPaymentAttempt.d.ts +15 -0
  90. package/dist/mjs/types/Interface/models/IPaymentAttempt.d.ts.map +1 -0
  91. package/dist/mjs/types/Interface/models/IPaymentAttempt.js +2 -0
  92. package/dist/mjs/types/Interface/models/IPaymentAttempt.js.map +1 -0
  93. package/dist/mjs/types/index.d.ts +3 -0
  94. package/dist/mjs/types/index.d.ts.map +1 -1
  95. package/dist/mjs/types/index.js +3 -0
  96. package/dist/mjs/types/index.js.map +1 -1
  97. package/package.json +1 -1
  98. package/ts/api/resources/Refund.ts +2 -2
  99. package/ts/types/Enum/FollowList.ts +6 -0
  100. package/ts/types/Enum/PaymentAttempt.ts +5 -0
  101. package/ts/types/Enum/PaymentMethod.ts +30 -10
  102. package/ts/types/Interface/api/internalInvoicing/RegenerateInternalInvoicing.ts +7 -2
  103. package/ts/types/Interface/api/refund/QueryRefundPaginated.ts +31 -0
  104. package/ts/types/Interface/api/stripe/Create.ts +7 -0
  105. package/ts/types/Interface/api/webmail/GetPaginatedWhereObjectParams.ts +0 -5
  106. package/ts/types/Interface/models/IAppNotification.ts +3 -3
  107. package/ts/types/Interface/models/IMobileNotificationLog.ts +4 -2
  108. package/ts/types/Interface/models/IPayment.ts +3 -1
  109. package/ts/types/Interface/models/IPaymentAttempt.ts +16 -0
  110. package/ts/types/index.ts +3 -0
@@ -1,64 +1,84 @@
1
+ export enum PaymentMethodIds {
2
+ DIRECT_DEBIT = 1,
3
+ BANK_TRANSFER = 2,
4
+ BANK_CARD = 3,
5
+ BANK_CHECK = 4,
6
+ DIRECT_DEBIT_REJECTION_1 = 5,
7
+ DIRECT_DEBIT_REJECTION_2 = 6,
8
+ VARIOUS_UNPAID = 7,
9
+ STRIPE_ECB = 8,
10
+ STRIPE = 9,
11
+ CASH = 10,
12
+ STRIPE_ECB_REJECTION = 11,
13
+ }
14
+
1
15
  export const PaymentMethod = {
2
16
  DIRECT_DEBIT: {
3
- id: 1,
17
+ id: PaymentMethodIds.DIRECT_DEBIT,
4
18
  name: 'Prélèvement',
5
19
  isSpecial: 0,
6
20
  isOverdue: 0,
7
21
  },
8
22
  BANK_TRANSFER: {
9
- id: 2,
23
+ id: PaymentMethodIds.BANK_TRANSFER,
10
24
  name: 'Virement',
11
25
  isSpecial: 0,
12
26
  isOverdue: 0,
13
27
  },
14
28
  BANK_CARD: {
15
- id: 3,
29
+ id: PaymentMethodIds.BANK_CARD,
16
30
  name: 'CB',
17
31
  isSpecial: 0,
18
32
  isOverdue: 0,
19
33
  },
20
34
  BANK_CHECK: {
21
- id: 4,
35
+ id: PaymentMethodIds.BANK_CHECK,
22
36
  name: 'Chèque',
23
37
  isSpecial: 0,
24
38
  isOverdue: 0,
25
39
  },
26
40
  DIRECT_DEBIT_REJECTION_1: {
27
- id: 5,
41
+ id: PaymentMethodIds.DIRECT_DEBIT_REJECTION_1,
28
42
  name: 'Rejet de prélèvement 1',
29
43
  isSpecial: 1,
30
44
  isOverdue: 1,
31
45
  },
32
46
  DIRECT_DEBIT_REJECTION_2: {
33
- id: 6,
47
+ id: PaymentMethodIds.DIRECT_DEBIT_REJECTION_2,
34
48
  name: 'Rejet de prélèvement 2',
35
49
  isSpecial: 1,
36
50
  isOverdue: 1,
37
51
  },
38
52
  VARIOUS_UNPAID: {
39
- id: 7,
53
+ id: PaymentMethodIds.VARIOUS_UNPAID,
40
54
  name: 'Impayés divers',
41
55
  isSpecial: 1,
42
56
  isOverdue: 1,
43
57
  },
44
58
  STRIPE_ECB: {
45
- id: 8,
59
+ id: PaymentMethodIds.STRIPE_ECB,
46
60
  name: 'Stripe (ECB)',
47
61
  isSpecial: 0,
48
62
  isOverdue: 0,
49
63
  },
50
64
  STRIPE: {
51
- id: 9,
65
+ id: PaymentMethodIds.STRIPE,
52
66
  name: 'Stripe',
53
67
  isSpecial: 0,
54
68
  isOverdue: 0,
55
69
  },
56
70
  CASH: {
57
- id: 10,
71
+ id: PaymentMethodIds.CASH,
58
72
  name: 'Espèces',
59
73
  isSpecial: 0,
60
74
  isOverdue: 0,
61
75
  },
76
+ STRIPE_ECB_REJECTION: {
77
+ id: PaymentMethodIds.STRIPE_ECB_REJECTION,
78
+ name: 'Rejet Stripe ECB',
79
+ isSpecial: 1,
80
+ isOverdue: 1,
81
+ },
62
82
  };
63
83
 
64
84
  export const PaymentParams = {
@@ -1,11 +1,16 @@
1
- import { IsArray, IsNumber, IsOptional } from 'class-validator';
1
+ import { IsArray, IsInt, IsNumber, IsOptional } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
 
4
4
  export class RegenerateInternalInvoicing {
5
5
  @ApiPropertyOptional()
6
6
  @IsOptional()
7
7
  @IsArray()
8
- idSociety: Array<number>;
8
+ idSociety?: Array<number>;
9
+
10
+ @ApiPropertyOptional()
11
+ @IsOptional()
12
+ @IsInt()
13
+ idFile?: number | null;
9
14
 
10
15
  @ApiProperty()
11
16
  @IsNumber()
@@ -0,0 +1,31 @@
1
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
+ import { RequiredQueryPaginate } from '../BasePaginate';
3
+ import { Order } from '../BaseRequest';
4
+ import { IsBoolean, IsInt, IsOptional } from 'class-validator';
5
+
6
+ export class QueryRefundPaginated extends RequiredQueryPaginate implements Order {
7
+ @ApiPropertyOptional()
8
+ search?: string;
9
+
10
+ @ApiProperty()
11
+ @IsInt()
12
+ year: number;
13
+
14
+ @ApiPropertyOptional()
15
+ @IsInt()
16
+ @IsOptional()
17
+ month?: number;
18
+
19
+ @ApiPropertyOptional()
20
+ @IsInt()
21
+ @IsOptional()
22
+ motif?: number;
23
+
24
+ @ApiPropertyOptional()
25
+ orderBy?: string;
26
+
27
+ @ApiPropertyOptional()
28
+ @IsBoolean()
29
+ @IsOptional()
30
+ descending?: boolean;
31
+ }
@@ -95,3 +95,10 @@ export class CreatePaymentIntent {
95
95
  @ApiPropertyOptional()
96
96
  metadata?: Stripe.MetadataParam;
97
97
  }
98
+
99
+ export class PostProcessPaymentAutomatically {
100
+ @ApiPropertyOptional()
101
+ @IsInt()
102
+ @IsOptional()
103
+ idSociety?: number;
104
+ }
@@ -88,9 +88,4 @@ export class GetPaginatedWhereObjectParams {
88
88
  @IsOptional()
89
89
  @IsInt()
90
90
  idRole?: number;
91
-
92
- @ApiPropertyOptional()
93
- @IsOptional()
94
- @IsInt({ each: true })
95
- idBrandType?: number[];
96
91
  }
@@ -3,7 +3,7 @@ import { ISociety } from './ISociety';
3
3
  import { IUser } from './IUser';
4
4
 
5
5
  export interface IAppNotification {
6
- id: number;
6
+ id?: number;
7
7
  title: string;
8
8
  message: string;
9
9
  link?: string;
@@ -17,6 +17,6 @@ export interface IAppNotification {
17
17
  updatedAt?: Date | null;
18
18
 
19
19
  // associations
20
- society: ISociety;
21
- user: IUser;
20
+ society?: ISociety;
21
+ user?: IUser;
22
22
  }
@@ -3,8 +3,10 @@ import { NotificationTypeEnum } from '../../Enum/NotificationType';
3
3
  export interface IMobileNotificationLog {
4
4
  id: number;
5
5
  idType: NotificationTypeEnum;
6
- lastSent: Date | null;
7
- nextSend: Date | null;
6
+ /** @deprecated useless */
7
+ lastSent?: Date | null;
8
+ /** @deprecated useless */
9
+ nextSend?: Date | null;
8
10
  success: boolean;
9
11
  error: string | null;
10
12
  count: number;
@@ -4,6 +4,7 @@ import { IUser } from './IUser';
4
4
  import { IExercice } from './IExercice';
5
5
  import { IFile } from './IFile';
6
6
  import { IPaymentExpectation } from './IPaymentExpectation';
7
+ import { IPaymentAttempt } from './IPaymentAttempt';
7
8
 
8
9
  // payments
9
10
  export interface IPayment {
@@ -15,7 +16,7 @@ export interface IPayment {
15
16
  isOverpaid?: boolean;
16
17
  isFirst?: boolean;
17
18
  // @deprecated Use isCollectable instead
18
- toCollect?: boolean;
19
+ toCollect?: boolean;
19
20
  countRejects?: number;
20
21
  isCollectable?: boolean;
21
22
  isAsset?: boolean;
@@ -44,4 +45,5 @@ export interface IPayment {
44
45
  user?: IUser;
45
46
  exercice?: IExercice;
46
47
  files?: IFile;
48
+ paymentAttempts?: IPaymentAttempt[];
47
49
  }
@@ -0,0 +1,16 @@
1
+ import { PaymentAttemptStatus } from '../../Enum/PaymentAttempt';
2
+ import { PaymentMethodIds } from '../../Enum/PaymentMethod';
3
+ import { IPayment } from './IPayment';
4
+
5
+ export interface IPaymentAttempt {
6
+ id?: number;
7
+ reference: string | null;
8
+ comment: string | null;
9
+ status: PaymentAttemptStatus;
10
+ idPaymentMethod: PaymentMethodIds;
11
+ idPayment: number;
12
+ createdAt?: string;
13
+ updatedAt?: string;
14
+
15
+ payment?: IPayment;
16
+ }
package/ts/types/index.ts CHANGED
@@ -323,6 +323,7 @@ export * from './Interface/models/IReminderAttachment';
323
323
  export * from './Interface/models/IStateBankAccount';
324
324
  export * from './Interface/models/IAIQuestion';
325
325
  export * from './Interface/models/IAIConversation';
326
+ export * from './Interface/models/IPaymentAttempt';
326
327
 
327
328
  // Schemas
328
329
  export * from './Interface/schemas/IRegistrationDetail';
@@ -553,6 +554,7 @@ export * from './Enum/SocietyTypeExportCsv';
553
554
  export * from './Enum/TeamType';
554
555
  export * from './Enum/PartneredAccountantServiceType';
555
556
  export * from './Enum/PartneredAccountantServiceTypeId';
557
+ export * from './Enum/PaymentAttempt';
556
558
 
557
559
  // Interfaces API
558
560
  export * from './Interface/api/exercice/ReadExercice';
@@ -1161,3 +1163,4 @@ export * from './Interface/api/regulation/Read';
1161
1163
  export * from './Interface/api/regulation/Create';
1162
1164
  export * from './Interface/api/marketing/NewLeadSheet';
1163
1165
  export * from './Interface/api/ai/AskQuestionCollaborator';
1166
+ export * from './Interface/api/refund/QueryRefundPaginated';