@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.
Files changed (76) hide show
  1. package/dist/cjs/api/resources/BalanceSheetReport.d.ts +6 -0
  2. package/dist/cjs/api/resources/BalanceSheetReport.d.ts.map +1 -0
  3. package/dist/cjs/api/resources/BalanceSheetReport.js +11 -0
  4. package/dist/cjs/api/resources/BalanceSheetReport.js.map +1 -0
  5. package/dist/cjs/api/resources/PaymentExpectationCustomer.d.ts +4 -1
  6. package/dist/cjs/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/PaymentExpectationCustomer.js +6 -0
  8. package/dist/cjs/api/resources/PaymentExpectationCustomer.js.map +1 -1
  9. package/dist/cjs/api/resources.d.ts +2 -0
  10. package/dist/cjs/api/resources.d.ts.map +1 -1
  11. package/dist/cjs/api/resources.js +2 -0
  12. package/dist/cjs/api/resources.js.map +1 -1
  13. package/dist/cjs/types/Interface/api/balanceSheetReport/Query.d.ts +8 -0
  14. package/dist/cjs/types/Interface/api/balanceSheetReport/Query.d.ts.map +1 -0
  15. package/dist/cjs/types/Interface/api/balanceSheetReport/Query.js +45 -0
  16. package/dist/cjs/types/Interface/api/balanceSheetReport/Query.js.map +1 -0
  17. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +6 -0
  18. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  19. package/dist/cjs/types/Interface/api/stripe/Create.js +21 -1
  20. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  21. package/dist/cjs/types/Interface/models/IAccount.d.ts +3 -0
  22. package/dist/cjs/types/Interface/models/IAccount.d.ts.map +1 -1
  23. package/dist/cjs/types/Interface/models/IAccount.js.map +1 -1
  24. package/dist/cjs/types/Interface/models/IAttestation.d.ts +9 -9
  25. package/dist/cjs/types/Interface/models/IAttestation.d.ts.map +1 -1
  26. package/dist/cjs/types/Interface/models/IAttestation.js.map +1 -1
  27. package/dist/cjs/types/Interface/models/IFecFile.d.ts +2 -0
  28. package/dist/cjs/types/Interface/models/IFecFile.d.ts.map +1 -1
  29. package/dist/cjs/types/Interface/models/IFecFile.js.map +1 -1
  30. package/dist/cjs/types/index.d.ts +1 -0
  31. package/dist/cjs/types/index.d.ts.map +1 -1
  32. package/dist/cjs/types/index.js +1 -0
  33. package/dist/cjs/types/index.js.map +1 -1
  34. package/dist/mjs/api/resources/BalanceSheetReport.d.ts +6 -0
  35. package/dist/mjs/api/resources/BalanceSheetReport.d.ts.map +1 -0
  36. package/dist/mjs/api/resources/BalanceSheetReport.js +10 -0
  37. package/dist/mjs/api/resources/BalanceSheetReport.js.map +1 -0
  38. package/dist/mjs/api/resources/PaymentExpectationCustomer.d.ts +4 -1
  39. package/dist/mjs/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
  40. package/dist/mjs/api/resources/PaymentExpectationCustomer.js +6 -0
  41. package/dist/mjs/api/resources/PaymentExpectationCustomer.js.map +1 -1
  42. package/dist/mjs/api/resources.d.ts +2 -0
  43. package/dist/mjs/api/resources.d.ts.map +1 -1
  44. package/dist/mjs/api/resources.js +2 -0
  45. package/dist/mjs/api/resources.js.map +1 -1
  46. package/dist/mjs/types/Interface/api/balanceSheetReport/Query.d.ts +8 -0
  47. package/dist/mjs/types/Interface/api/balanceSheetReport/Query.d.ts.map +1 -0
  48. package/dist/mjs/types/Interface/api/balanceSheetReport/Query.js +41 -0
  49. package/dist/mjs/types/Interface/api/balanceSheetReport/Query.js.map +1 -0
  50. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +6 -0
  51. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  52. package/dist/mjs/types/Interface/api/stripe/Create.js +21 -1
  53. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  54. package/dist/mjs/types/Interface/models/IAccount.d.ts +3 -0
  55. package/dist/mjs/types/Interface/models/IAccount.d.ts.map +1 -1
  56. package/dist/mjs/types/Interface/models/IAccount.js.map +1 -1
  57. package/dist/mjs/types/Interface/models/IAttestation.d.ts +9 -9
  58. package/dist/mjs/types/Interface/models/IAttestation.d.ts.map +1 -1
  59. package/dist/mjs/types/Interface/models/IAttestation.js.map +1 -1
  60. package/dist/mjs/types/Interface/models/IFecFile.d.ts +2 -0
  61. package/dist/mjs/types/Interface/models/IFecFile.d.ts.map +1 -1
  62. package/dist/mjs/types/Interface/models/IFecFile.js.map +1 -1
  63. package/dist/mjs/types/index.d.ts +1 -0
  64. package/dist/mjs/types/index.d.ts.map +1 -1
  65. package/dist/mjs/types/index.js +1 -0
  66. package/dist/mjs/types/index.js.map +1 -1
  67. package/package.json +1 -1
  68. package/ts/api/resources/BalanceSheetReport.ts +14 -0
  69. package/ts/api/resources/PaymentExpectationCustomer.ts +11 -0
  70. package/ts/api/resources.ts +2 -0
  71. package/ts/types/Interface/api/balanceSheetReport/Query.ts +27 -0
  72. package/ts/types/Interface/api/stripe/Create.ts +17 -1
  73. package/ts/types/Interface/models/IAccount.ts +3 -0
  74. package/ts/types/Interface/models/IAttestation.ts +9 -9
  75. package/ts/types/Interface/models/IFecFile.ts +2 -0
  76. 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
  }
@@ -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: 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;
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';