@silexpert/core 1.3.75 → 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.
- package/dist/cjs/api/resources/Refund.d.ts +6 -1
- package/dist/cjs/api/resources/Refund.d.ts.map +1 -1
- package/dist/cjs/api/resources/Refund.js +12 -0
- package/dist/cjs/api/resources/Refund.js.map +1 -1
- package/dist/cjs/api/resources/Society.d.ts.map +1 -1
- package/dist/cjs/api/resources/Society.js.map +1 -1
- package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.d.ts +11 -0
- package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.js +51 -0
- package/dist/cjs/types/Interface/api/refund/QueryRefundPaginated.js.map +1 -0
- package/dist/cjs/types/Interface/api/refund/RefundPaginatedResponse.d.ts +8 -0
- package/dist/cjs/types/Interface/api/refund/RefundPaginatedResponse.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/refund/RefundPaginatedResponse.js +3 -0
- package/dist/cjs/types/Interface/api/refund/RefundPaginatedResponse.js.map +1 -0
- package/dist/cjs/types/Interface/models/IRefund.d.ts +8 -0
- package/dist/cjs/types/Interface/models/IRefund.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IRefund.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/Refund.d.ts +6 -1
- package/dist/mjs/api/resources/Refund.d.ts.map +1 -1
- package/dist/mjs/api/resources/Refund.js +12 -0
- package/dist/mjs/api/resources/Refund.js.map +1 -1
- package/dist/mjs/api/resources/Society.d.ts.map +1 -1
- package/dist/mjs/api/resources/Society.js.map +1 -1
- package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.d.ts +11 -0
- package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.js +53 -0
- package/dist/mjs/types/Interface/api/refund/QueryRefundPaginated.js.map +1 -0
- package/dist/mjs/types/Interface/api/refund/RefundPaginatedResponse.d.ts +8 -0
- package/dist/mjs/types/Interface/api/refund/RefundPaginatedResponse.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/refund/RefundPaginatedResponse.js +2 -0
- package/dist/mjs/types/Interface/api/refund/RefundPaginatedResponse.js.map +1 -0
- package/dist/mjs/types/Interface/models/IRefund.d.ts +8 -0
- package/dist/mjs/types/Interface/models/IRefund.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IRefund.js.map +1 -1
- package/dist/mjs/types/index.d.ts +1 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +1 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Refund.ts +18 -1
- package/ts/api/resources/Society.ts +3 -0
- package/ts/types/Interface/api/refund/QueryRefundPaginated.ts +32 -0
- package/ts/types/Interface/api/refund/RefundPaginatedResponse.ts +8 -0
- package/ts/types/Interface/models/IRefund.ts +8 -2
- 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
|
}
|
|
@@ -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
|
+
}
|
|
@@ -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';
|