@silexpert/core 2.0.42-0 → 2.0.42

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 (41) hide show
  1. package/dist/api/resources/Authenticate.d.ts +8 -1
  2. package/dist/api/resources/Authenticate.d.ts.map +1 -1
  3. package/dist/api/resources/Authenticate.js +9 -0
  4. package/dist/api/resources/Authenticate.js.map +1 -1
  5. package/dist/types/Enum/ConnectorType.d.ts +3 -1
  6. package/dist/types/Enum/ConnectorType.d.ts.map +1 -1
  7. package/dist/types/Enum/ConnectorType.js +2 -0
  8. package/dist/types/Enum/ConnectorType.js.map +1 -1
  9. package/dist/types/Enum/Feature.d.ts +2 -1
  10. package/dist/types/Enum/Feature.d.ts.map +1 -1
  11. package/dist/types/Enum/Feature.js +1 -0
  12. package/dist/types/Enum/Feature.js.map +1 -1
  13. package/dist/types/Enum/StatsCaStateDetail.d.ts +1 -1
  14. package/dist/types/Enum/StatsCaStateDetail.d.ts.map +1 -1
  15. package/dist/types/Enum/StatsCaStateDetail.js +9 -4
  16. package/dist/types/Enum/StatsCaStateDetail.js.map +1 -1
  17. package/dist/types/Interface/api/authentification/ProviderAuthDto.d.ts +8 -0
  18. package/dist/types/Interface/api/authentification/ProviderAuthDto.d.ts.map +1 -0
  19. package/dist/types/Interface/api/authentification/ProviderAuthDto.js +44 -0
  20. package/dist/types/Interface/api/authentification/ProviderAuthDto.js.map +1 -0
  21. package/dist/types/Interface/api/mailSociety/QueryMailSociety.d.ts +5 -0
  22. package/dist/types/Interface/api/mailSociety/QueryMailSociety.d.ts.map +1 -0
  23. package/dist/types/Interface/api/mailSociety/QueryMailSociety.js +28 -0
  24. package/dist/types/Interface/api/mailSociety/QueryMailSociety.js.map +1 -0
  25. package/dist/types/Interface/api/society/ImportInvoice.d.ts +5 -0
  26. package/dist/types/Interface/api/society/ImportInvoice.d.ts.map +1 -0
  27. package/dist/types/Interface/api/society/ImportInvoice.js +30 -0
  28. package/dist/types/Interface/api/society/ImportInvoice.js.map +1 -0
  29. package/dist/types/index.d.ts +3 -0
  30. package/dist/types/index.d.ts.map +1 -1
  31. package/dist/types/index.js +3 -0
  32. package/dist/types/index.js.map +1 -1
  33. package/package.json +1 -2
  34. package/ts/api/resources/Authenticate.ts +13 -0
  35. package/ts/types/Enum/ConnectorType.ts +2 -0
  36. package/ts/types/Enum/Feature.ts +1 -0
  37. package/ts/types/Enum/StatsCaStateDetail.ts +9 -4
  38. package/ts/types/Interface/api/authentification/ProviderAuthDto.ts +24 -0
  39. package/ts/types/Interface/api/mailSociety/QueryMailSociety.ts +14 -0
  40. package/ts/types/Interface/api/society/ImportInvoice.ts +16 -0
  41. package/ts/types/index.ts +3 -0
@@ -6,6 +6,7 @@ import {
6
6
  ReadAuthenticateCollaborater,
7
7
  ReadByExternalId,
8
8
  ReadConnectAs,
9
+ ProviderAuthDto,
9
10
  } from '../../types/index.js';
10
11
  import { Resource } from '../Resource.js';
11
12
 
@@ -37,6 +38,10 @@ export class Authenticate extends Resource {
37
38
  return this.axios.$post('/authenticate/forgot-password', payload);
38
39
  }
39
40
 
41
+ async forgotPasswordCoworker(payload: PostForgotPassword): Promise<void> {
42
+ return this.axios.$post('/authenticate/coworker/forgot-password', payload);
43
+ }
44
+
40
45
  async resetPassword(payload: PutResetPassword): Promise<void> {
41
46
  return this.axios.$put('/authenticate/reset-password', payload);
42
47
  }
@@ -44,4 +49,12 @@ export class Authenticate extends Resource {
44
49
  async byExternalId(uuid: string, query: ConnectFromUUID): Promise<ReadByExternalId> {
45
50
  return this.axios.$get(`/authenticate/external/${uuid}`, { params: query });
46
51
  }
52
+
53
+ async providerLogin(payload: ProviderAuthDto): Promise<{ token: string }> {
54
+ return this.axios.$post('/authenticate/providers/login', payload);
55
+ }
56
+
57
+ async providerRegister(payload: ProviderAuthDto): Promise<{ token: string }> {
58
+ return this.axios.$post('/authenticate/providers/register', payload);
59
+ }
47
60
  }
@@ -14,4 +14,6 @@ export enum ConnectorType {
14
14
  STRIPE_BANK = 13,
15
15
  CAARL = 14,
16
16
  ACD = 15,
17
+ GOOGLE_OAUTH = 16,
18
+ APPLE_OAUTH = 17,
17
19
  }
@@ -76,4 +76,5 @@ export enum Feature {
76
76
  EXPORT_ACCOUNTANCY_DATA = 'export_accountancy_data',
77
77
  LOG_TO_MOBILE_APP = 'log_to_mobile_app',
78
78
  DECLARE_REGISTRATION = 'declare_registration',
79
+ ACD_PREMIUM = 'acd_premium',
79
80
  }
@@ -19,10 +19,15 @@ export const StatsCaStateDetail = {
19
19
  name: 'Docs OK',
20
20
  alias: 'checkFilesSuivi',
21
21
  },
22
- LAB_OK: {
23
- id: 5,
24
- name: 'Lab OK',
25
- alias: 'checkLab',
22
+ // LAB_OK: {
23
+ // id: 5,
24
+ // name: 'Lab OK',
25
+ // alias: 'checkLab',
26
+ // },
27
+ BILLING_OB_OK: {
28
+ id: 6,
29
+ name: 'Factu & OB OK',
30
+ alias: 'isBillingAndObOk',
26
31
  },
27
32
  };
28
33
 
@@ -0,0 +1,24 @@
1
+ import { IsIn, IsNotEmpty, IsOptional, IsString } from 'class-validator';
2
+
3
+ export class ProviderAuthDto {
4
+ @IsString()
5
+ @IsNotEmpty()
6
+ @IsIn(['google', 'apple'])
7
+ provider: string;
8
+
9
+ @IsString()
10
+ @IsNotEmpty()
11
+ idToken: string;
12
+
13
+ @IsString()
14
+ @IsOptional()
15
+ email?: string;
16
+
17
+ @IsString()
18
+ @IsOptional()
19
+ firstname?: string;
20
+
21
+ @IsString()
22
+ @IsOptional()
23
+ lastname?: string;
24
+ }
@@ -0,0 +1,14 @@
1
+ import { IsOptional, IsString, IsInt } from 'class-validator';
2
+ import { ApiPropertyOptional } from '@nestjs/swagger';
3
+
4
+ export class QueryMailSociety {
5
+ @ApiPropertyOptional({ description: 'Adresse mail de facturation de la société' })
6
+ @IsOptional()
7
+ @IsString()
8
+ public mailInvoice?: string;
9
+
10
+ @ApiPropertyOptional({ description: 'Identifiant de la société' })
11
+ @IsInt()
12
+ @IsOptional()
13
+ public idSociety?: number;
14
+ }
@@ -0,0 +1,16 @@
1
+ import { ApiProperty } from '@nestjs/swagger';
2
+ import { IsBoolean, IsInt } from 'class-validator';
3
+ import { Type } from 'class-transformer';
4
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform.js';
5
+
6
+ export class ImportInvoice {
7
+ @ApiProperty({ description: 'Diviser le fichier en plusieurs parties' })
8
+ @IsBoolean()
9
+ @ToBoolean()
10
+ split: boolean;
11
+
12
+ @ApiProperty({ description: 'Identifiant du type de fichier comptable' })
13
+ @IsInt()
14
+ @Type(() => Number)
15
+ idTypeAccountingFile: number;
16
+ }
package/ts/types/index.ts CHANGED
@@ -642,6 +642,7 @@ export * from './Interface/api/society/UpdateUserToSocietyWithPermission.js';
642
642
  export * from './Interface/api/society/ReadSocietyUsers.js';
643
643
  export * from './Interface/api/society/ReadSocietyUnpaidStats.js';
644
644
  export * from './Interface/api/society/DataCustomersCsv.js';
645
+ export * from './Interface/api/society/ImportInvoice.js';
645
646
  export * from './Interface/api/BasePaginate.js';
646
647
  export * from './Interface/api/BaseRequest.js';
647
648
  export * from './Interface/api/generalLedger/IGeneralLedgerAccount.js';
@@ -1121,6 +1122,7 @@ export * from './Interface/api/informationRequest/Update.js';
1121
1122
  export * from './Interface/api/automaticRegistration/Query.js';
1122
1123
  export * from './Interface/api/automaticRegistration/Read.js';
1123
1124
  export * from './Interface/api/mail/EmailStatus.js';
1125
+ export * from './Interface/api/mailSociety/QueryMailSociety.js';
1124
1126
 
1125
1127
  // Enums types
1126
1128
  export * from './Interface/enum/Util.js';
@@ -1171,3 +1173,4 @@ export * from './Interface/api/docoon/Query.js';
1171
1173
  export * from './Interface/api/docoon/Read.js';
1172
1174
  export * from './Interface/api/authentification/FinalizeMobileApprovalDto.js';
1173
1175
  export * from './Interface/api/formalism/Create.js';
1176
+ export * from './Interface/api/authentification/ProviderAuthDto.js';