@silexpert/core 1.3.79 → 1.3.80-1
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/BalanceSheetReport.d.ts +6 -0
- package/dist/cjs/api/resources/BalanceSheetReport.d.ts.map +1 -0
- package/dist/cjs/api/resources/BalanceSheetReport.js +11 -0
- package/dist/cjs/api/resources/BalanceSheetReport.js.map +1 -0
- package/dist/cjs/api/resources/PaymentExpectationCustomer.d.ts +4 -1
- package/dist/cjs/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
- package/dist/cjs/api/resources/PaymentExpectationCustomer.js +6 -0
- package/dist/cjs/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/dist/cjs/api/resources.d.ts +2 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +2 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheetReport/Query.d.ts +8 -0
- package/dist/cjs/types/Interface/api/balanceSheetReport/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/balanceSheetReport/Query.js +45 -0
- package/dist/cjs/types/Interface/api/balanceSheetReport/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts +6 -0
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js +21 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/cjs/types/Interface/models/IAccount.d.ts +3 -0
- package/dist/cjs/types/Interface/models/IAccount.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IAccount.js.map +1 -1
- package/dist/cjs/types/Interface/models/IAttestation.d.ts +9 -9
- package/dist/cjs/types/Interface/models/IAttestation.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IAttestation.js.map +1 -1
- package/dist/cjs/types/Interface/models/IFecFile.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IFecFile.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IFecFile.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/BalanceSheetReport.d.ts +6 -0
- package/dist/mjs/api/resources/BalanceSheetReport.d.ts.map +1 -0
- package/dist/mjs/api/resources/BalanceSheetReport.js +10 -0
- package/dist/mjs/api/resources/BalanceSheetReport.js.map +1 -0
- package/dist/mjs/api/resources/PaymentExpectationCustomer.d.ts +4 -1
- package/dist/mjs/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
- package/dist/mjs/api/resources/PaymentExpectationCustomer.js +6 -0
- package/dist/mjs/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +2 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +2 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheetReport/Query.d.ts +8 -0
- package/dist/mjs/types/Interface/api/balanceSheetReport/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/balanceSheetReport/Query.js +41 -0
- package/dist/mjs/types/Interface/api/balanceSheetReport/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts +6 -0
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js +21 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/mjs/types/Interface/models/IAccount.d.ts +3 -0
- package/dist/mjs/types/Interface/models/IAccount.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IAccount.js.map +1 -1
- package/dist/mjs/types/Interface/models/IAttestation.d.ts +9 -9
- package/dist/mjs/types/Interface/models/IAttestation.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IAttestation.js.map +1 -1
- package/dist/mjs/types/Interface/models/IFecFile.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IFecFile.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IFecFile.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/BalanceSheetReport.ts +14 -0
- package/ts/api/resources/PaymentExpectationCustomer.ts +11 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Interface/api/balanceSheetReport/Query.ts +27 -0
- package/ts/types/Interface/api/stripe/Create.ts +17 -1
- package/ts/types/Interface/models/IAccount.ts +3 -0
- package/ts/types/Interface/models/IAttestation.ts +9 -9
- package/ts/types/Interface/models/IFecFile.ts +2 -0
- package/ts/types/index.ts +1 -0
|
@@ -14,7 +14,10 @@ import {
|
|
|
14
14
|
QueryGetSocietyPaymentsExpectationsCustomersStats,
|
|
15
15
|
ReadPaymentIntent,
|
|
16
16
|
SendPaymentExpectationCustomer,
|
|
17
|
+
CreateTapToPayIntent,
|
|
18
|
+
CreateTapToPayConnectionToken,
|
|
17
19
|
} from '../../types';
|
|
20
|
+
import Stripe from 'stripe';
|
|
18
21
|
|
|
19
22
|
export class PaymentExpectationCustomer extends Resource {
|
|
20
23
|
get(params: QueryGetPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {
|
|
@@ -55,4 +58,12 @@ export class PaymentExpectationCustomer extends Resource {
|
|
|
55
58
|
send(id: number, payload: SendPaymentExpectationCustomer): Promise<true> {
|
|
56
59
|
return this.axios.$post(`/society/payment-expectation-customers/${id}/send`, payload);
|
|
57
60
|
}
|
|
61
|
+
|
|
62
|
+
createTapToPayConnectionToken(payload: CreateTapToPayConnectionToken): Promise<Stripe.Terminal.ConnectionToken> {
|
|
63
|
+
return this.axios.$post('/stripe/tap-to-pay/tokens', payload);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
createTapToPayIntent(payload: CreateTapToPayIntent): Promise<Stripe.Response<Stripe.PaymentIntent>> {
|
|
67
|
+
return this.axios.$post('/stripe/tap-to-pay/intents', payload);
|
|
68
|
+
}
|
|
58
69
|
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -179,6 +179,7 @@ import { StatisticLegal } from './resources/statistic/Legal';
|
|
|
179
179
|
import { AnalyticsUtm } from './resources/AnalyticsUtm';
|
|
180
180
|
import { Caarl } from './resources/Caarl';
|
|
181
181
|
import { Gdpr } from './resources/Gdpr';
|
|
182
|
+
import { BalanceSheetReport } from './resources/BalanceSheetReport';
|
|
182
183
|
|
|
183
184
|
export const resources = {
|
|
184
185
|
budgetInsight: BudgetInsight,
|
|
@@ -362,4 +363,5 @@ export const resources = {
|
|
|
362
363
|
analyticsUtm: AnalyticsUtm,
|
|
363
364
|
caarl: Caarl,
|
|
364
365
|
gdpr: Gdpr,
|
|
366
|
+
balanceSheetReport: BalanceSheetReport,
|
|
365
367
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IsBoolean, IsInt, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
|
+
import { RequiredQueryPaginate } from '../BasePaginate';
|
|
5
|
+
|
|
6
|
+
export class QueryBalanceSheetReportPaginated extends RequiredQueryPaginate {
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsString()
|
|
10
|
+
declare search?: string;
|
|
11
|
+
|
|
12
|
+
@ApiPropertyOptional()
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsBoolean()
|
|
15
|
+
@ToBoolean()
|
|
16
|
+
declare signed?: boolean;
|
|
17
|
+
|
|
18
|
+
@ApiPropertyOptional()
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@IsInt()
|
|
21
|
+
declare factured?: number;
|
|
22
|
+
|
|
23
|
+
@ApiPropertyOptional()
|
|
24
|
+
@IsOptional()
|
|
25
|
+
@IsInt()
|
|
26
|
+
declare idSupervisor?: number;
|
|
27
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsDate, IsDateString, IsInt, IsOptional, IsString } from 'class-validator';
|
|
1
|
+
import { IsDate, IsDateString, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import type Stripe from 'stripe';
|
|
4
4
|
export class CreateStripeConnection {
|
|
@@ -107,3 +107,19 @@ export class PostProcessPaymentAutomatically {
|
|
|
107
107
|
@IsOptional()
|
|
108
108
|
minDate?: string;
|
|
109
109
|
}
|
|
110
|
+
|
|
111
|
+
export class CreateTapToPayIntent {
|
|
112
|
+
@ApiProperty()
|
|
113
|
+
@IsNumber()
|
|
114
|
+
@Min(1, {
|
|
115
|
+
message: 'Le montant doit être supérieur à 1ct',
|
|
116
|
+
})
|
|
117
|
+
amountInCents: number;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export class CreateTapToPayConnectionToken {
|
|
121
|
+
@ApiProperty()
|
|
122
|
+
@IsString()
|
|
123
|
+
@IsOptional()
|
|
124
|
+
locationId?: string;
|
|
125
|
+
}
|
|
@@ -9,6 +9,7 @@ import { IAccountsSectors } from './IAccountsSectors';
|
|
|
9
9
|
import { IMachineLearningResult } from './IMachineLearningResult';
|
|
10
10
|
import { IAccountsSocieties } from './IAccountsSocieties';
|
|
11
11
|
import { ITag } from './ITag';
|
|
12
|
+
import { IFecFile } from './IFecFile';
|
|
12
13
|
|
|
13
14
|
// accounts
|
|
14
15
|
export interface IAccount {
|
|
@@ -37,6 +38,7 @@ export interface IAccount {
|
|
|
37
38
|
customization?: number;
|
|
38
39
|
idAccountType: number;
|
|
39
40
|
idVat?: number | null;
|
|
41
|
+
idFecFile?: number | null;
|
|
40
42
|
idRegisterCategorie?: number | null;
|
|
41
43
|
idSector?: number | null;
|
|
42
44
|
idParentAccount?: number | null;
|
|
@@ -56,4 +58,5 @@ export interface IAccount {
|
|
|
56
58
|
machineLearningResults?: IMachineLearningResult[];
|
|
57
59
|
parentAccount?: IAccount;
|
|
58
60
|
tags?: ITag[];
|
|
61
|
+
fecFile?: IFecFile | null;
|
|
59
62
|
}
|
|
@@ -28,13 +28,13 @@ export interface IAttestation {
|
|
|
28
28
|
updatedAt?: Date | null;
|
|
29
29
|
|
|
30
30
|
// Associations
|
|
31
|
-
attestationSupervisor
|
|
32
|
-
attestationUserDemand
|
|
33
|
-
prestationsList
|
|
34
|
-
attestationPaymentExpectation
|
|
35
|
-
attestationFiles
|
|
36
|
-
society
|
|
37
|
-
exercices
|
|
38
|
-
paymentMail
|
|
39
|
-
validationMail
|
|
31
|
+
attestationSupervisor?: IUser;
|
|
32
|
+
attestationUserDemand?: IUser;
|
|
33
|
+
prestationsList?: IPrestationList;
|
|
34
|
+
attestationPaymentExpectation?: IPaymentExpectation;
|
|
35
|
+
attestationFiles?: IFile;
|
|
36
|
+
society?: ISociety;
|
|
37
|
+
exercices?: IExercice;
|
|
38
|
+
paymentMail?: IMail;
|
|
39
|
+
validationMail?: IMail;
|
|
40
40
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ISociety } from './ISociety';
|
|
2
2
|
import { IFile } from './IFile';
|
|
3
|
+
import { IAccount } from './IAccount';
|
|
3
4
|
|
|
4
5
|
// files
|
|
5
6
|
export interface IFecFile {
|
|
@@ -16,4 +17,5 @@ export interface IFecFile {
|
|
|
16
17
|
// Associations
|
|
17
18
|
file?: IFile;
|
|
18
19
|
society?: ISociety;
|
|
20
|
+
accounts?: IAccount[];
|
|
19
21
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -826,6 +826,7 @@ export * from './Interface/api/pappers/CreatePappers';
|
|
|
826
826
|
export * from './Interface/api/bankAccount/Query';
|
|
827
827
|
export * from './Interface/api/bankAccount/Update';
|
|
828
828
|
export * from './Interface/api/stripe/QueryStripe';
|
|
829
|
+
export * from './Interface/api/balanceSheetReport/Query';
|
|
829
830
|
export * from './Interface/api/supervision/Query';
|
|
830
831
|
export * from './Interface/api/supervision/Read';
|
|
831
832
|
export * from './Interface/api/salariesFile/ReadSalariesFile';
|