@silexpert/core 1.3.74 → 1.3.78

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 (56) hide show
  1. package/dist/cjs/api/resources/Refund.d.ts +6 -1
  2. package/dist/cjs/api/resources/Refund.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Refund.js +12 -0
  4. package/dist/cjs/api/resources/Refund.js.map +1 -1
  5. package/dist/cjs/api/resources/Society.d.ts.map +1 -1
  6. package/dist/cjs/api/resources/Society.js.map +1 -1
  7. package/dist/cjs/types/Interface/api/cerfa/3517.d.ts +1 -0
  8. package/dist/cjs/types/Interface/api/cerfa/3517.d.ts.map +1 -1
  9. package/dist/cjs/types/Interface/api/cerfa/3517.js.map +1 -1
  10. package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.d.ts +11 -0
  11. package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.d.ts.map +1 -0
  12. package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.js +51 -0
  13. package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.js.map +1 -0
  14. package/dist/cjs/types/Interface/api/refund/RefundPaginatedResponse.d.ts +8 -0
  15. package/dist/cjs/types/Interface/api/refund/RefundPaginatedResponse.d.ts.map +1 -0
  16. package/dist/cjs/types/Interface/api/refund/RefundPaginatedResponse.js +3 -0
  17. package/dist/cjs/types/Interface/api/refund/RefundPaginatedResponse.js.map +1 -0
  18. package/dist/cjs/types/Interface/models/IRefund.d.ts +8 -0
  19. package/dist/cjs/types/Interface/models/IRefund.d.ts.map +1 -1
  20. package/dist/cjs/types/Interface/models/IRefund.js.map +1 -1
  21. package/dist/cjs/types/index.d.ts +1 -0
  22. package/dist/cjs/types/index.d.ts.map +1 -1
  23. package/dist/cjs/types/index.js +1 -0
  24. package/dist/cjs/types/index.js.map +1 -1
  25. package/dist/mjs/api/resources/Refund.d.ts +6 -1
  26. package/dist/mjs/api/resources/Refund.d.ts.map +1 -1
  27. package/dist/mjs/api/resources/Refund.js +12 -0
  28. package/dist/mjs/api/resources/Refund.js.map +1 -1
  29. package/dist/mjs/api/resources/Society.d.ts.map +1 -1
  30. package/dist/mjs/api/resources/Society.js.map +1 -1
  31. package/dist/mjs/types/Interface/api/cerfa/3517.d.ts +1 -0
  32. package/dist/mjs/types/Interface/api/cerfa/3517.d.ts.map +1 -1
  33. package/dist/mjs/types/Interface/api/cerfa/3517.js.map +1 -1
  34. package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.d.ts +11 -0
  35. package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.d.ts.map +1 -0
  36. package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.js +53 -0
  37. package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.js.map +1 -0
  38. package/dist/mjs/types/Interface/api/refund/RefundPaginatedResponse.d.ts +8 -0
  39. package/dist/mjs/types/Interface/api/refund/RefundPaginatedResponse.d.ts.map +1 -0
  40. package/dist/mjs/types/Interface/api/refund/RefundPaginatedResponse.js +2 -0
  41. package/dist/mjs/types/Interface/api/refund/RefundPaginatedResponse.js.map +1 -0
  42. package/dist/mjs/types/Interface/models/IRefund.d.ts +8 -0
  43. package/dist/mjs/types/Interface/models/IRefund.d.ts.map +1 -1
  44. package/dist/mjs/types/Interface/models/IRefund.js.map +1 -1
  45. package/dist/mjs/types/index.d.ts +1 -0
  46. package/dist/mjs/types/index.d.ts.map +1 -1
  47. package/dist/mjs/types/index.js +1 -0
  48. package/dist/mjs/types/index.js.map +1 -1
  49. package/package.json +1 -1
  50. package/ts/api/resources/Refund.ts +18 -1
  51. package/ts/api/resources/Society.ts +3 -0
  52. package/ts/types/Interface/api/cerfa/3517.ts +1 -0
  53. package/ts/types/Interface/api/refund/QueryRefundPaginated.ts +32 -0
  54. package/ts/types/Interface/api/refund/RefundPaginatedResponse.ts +8 -0
  55. package/ts/types/Interface/models/IRefund.ts +8 -2
  56. package/ts/types/index.ts +1 -0
@@ -29,8 +29,10 @@ import {
29
29
  ReadSocietyUnpaidStats,
30
30
  DataCustomersCsv,
31
31
  ReadCurrentPrestations,
32
+ IComment,
32
33
  } from '../../types';
33
34
  import { CancelToken } from 'axios';
35
+ import { User } from './User';
34
36
 
35
37
  export class Society extends Resource {
36
38
  public get(params: QuerySociety): Promise<ISociety> {
@@ -103,6 +105,7 @@ export class Society extends Resource {
103
105
  getAccountant(): Promise<IUser | null> {
104
106
  return this.axios.$get('/society/accountant');
105
107
  }
108
+
106
109
  deleteUser(idSociety: number, idUser: number): Promise<true> {
107
110
  return this.axios.$delete(`/society/${idSociety}/user/${idUser}`);
108
111
  }
@@ -22,6 +22,7 @@ type ReduceNormalBaseAndTax = {
22
22
  };
23
23
 
24
24
  export type AnyCerfa3517Century = Cerfa3517_2023 | Cerfa3517_2025;
25
+ export type AnyPayloadCerfa3517Century = PayloadCerfa3517_2023 | PayloadCerfa3517_2025;
25
26
 
26
27
  export interface Cerfa3517_2023 {
27
28
  isNil: boolean;
@@ -0,0 +1,32 @@
1
+ import { ApiPropertyOptional } from '../../../../utils';
2
+ import { RequiredQueryPaginate } from '../BasePaginate';
3
+ import { Order } from '../BaseRequest';
4
+ import { IsBoolean, IsInt, IsOptional, IsString } from 'class-validator';
5
+
6
+ export class QueryRefundPaginated extends RequiredQueryPaginate implements Order {
7
+ @ApiPropertyOptional()
8
+ @IsString()
9
+ @IsOptional()
10
+ search?: string;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsInt()
14
+ @IsOptional()
15
+ motif?: number;
16
+
17
+ @ApiPropertyOptional()
18
+ @IsOptional()
19
+ startDate?: Date;
20
+
21
+ @ApiPropertyOptional()
22
+ @IsOptional()
23
+ endDate?: Date;
24
+
25
+ @ApiPropertyOptional()
26
+ orderBy?: string;
27
+
28
+ @ApiPropertyOptional()
29
+ @IsBoolean()
30
+ @IsOptional()
31
+ descending?: boolean;
32
+ }
@@ -0,0 +1,8 @@
1
+ import { IRefund } from '../../models/IRefund';
2
+
3
+ export interface RefundPaginatedResponse {
4
+ maxPages: number;
5
+ currentPage: number;
6
+ totalItems: number;
7
+ data: IRefund[];
8
+ }
@@ -8,17 +8,23 @@ export interface IRefund {
8
8
  amount: number | null;
9
9
  comment: string | null;
10
10
  refundDate: Date | null;
11
+ refundAt?: Date | null;
11
12
  processed: boolean;
12
13
  isAmountChecked?: boolean;
13
14
  idRefundMotif: number;
14
15
  idSociety: number;
15
16
  idUserDemand: number;
17
+ refundBy?: number | null;
16
18
  idFile?: number | null; //non obligatoire désormais, utilisé avant pour rattacher le RIB
19
+ idUserAgreement?: number | null;
20
+ dateAgreement?: Date | null;
21
+ exceptionalAgreement?: boolean | null;
22
+ agreement?: number | null;
17
23
  createdAt?: Date | null;
18
24
  updatedAt?: Date | null;
19
-
20
- // Associations
21
25
  society?: ISociety;
22
26
  file?: IFile;
23
27
  userDemand?: IUser;
28
+ refundByUser?: IUser | null;
29
+ agreementUser?: IUser | null;
24
30
  }
package/ts/types/index.ts CHANGED
@@ -1167,3 +1167,4 @@ export * from './Interface/api/regulation/Read';
1167
1167
  export * from './Interface/api/regulation/Create';
1168
1168
  export * from './Interface/api/marketing/NewLeadSheet';
1169
1169
  export * from './Interface/api/ai/AskQuestionCollaborator';
1170
+ export * from './Interface/api/refund/QueryRefundPaginated';