@silexpert/core 1.1.241 → 1.1.242

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 (132) hide show
  1. package/dist/cjs/api/resources/Echo.d.ts +8 -0
  2. package/dist/cjs/api/resources/Echo.d.ts.map +1 -0
  3. package/dist/cjs/api/resources/Echo.js +17 -0
  4. package/dist/cjs/api/resources/Echo.js.map +1 -0
  5. package/dist/cjs/api/resources/LegalNotice.d.ts +4 -2
  6. package/dist/cjs/api/resources/LegalNotice.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/LegalNotice.js +6 -0
  8. package/dist/cjs/api/resources/LegalNotice.js.map +1 -1
  9. package/dist/cjs/api/resources/Synchronisation.d.ts +6 -0
  10. package/dist/cjs/api/resources/Synchronisation.d.ts.map +1 -0
  11. package/dist/cjs/api/resources/Synchronisation.js +11 -0
  12. package/dist/cjs/api/resources/Synchronisation.js.map +1 -0
  13. package/dist/cjs/api/resources/UpToDate.d.ts +6 -0
  14. package/dist/cjs/api/resources/UpToDate.d.ts.map +1 -0
  15. package/dist/cjs/api/resources/UpToDate.js +11 -0
  16. package/dist/cjs/api/resources/UpToDate.js.map +1 -0
  17. package/dist/cjs/api/resources.d.ts +6 -0
  18. package/dist/cjs/api/resources.d.ts.map +1 -1
  19. package/dist/cjs/api/resources.js +6 -0
  20. package/dist/cjs/api/resources.js.map +1 -1
  21. package/dist/cjs/types/Enum/ZoneCode.d.ts +653 -0
  22. package/dist/cjs/types/Enum/ZoneCode.d.ts.map +1 -0
  23. package/dist/cjs/types/Enum/ZoneCode.js +765 -0
  24. package/dist/cjs/types/Enum/ZoneCode.js.map +1 -0
  25. package/dist/cjs/types/Interface/api/echo/CreateOrder.d.ts +22 -0
  26. package/dist/cjs/types/Interface/api/echo/CreateOrder.d.ts.map +1 -0
  27. package/dist/cjs/types/Interface/api/echo/CreateOrder.js +93 -0
  28. package/dist/cjs/types/Interface/api/echo/CreateOrder.js.map +1 -0
  29. package/dist/cjs/types/Interface/api/echo/Mission.d.ts +5 -0
  30. package/dist/cjs/types/Interface/api/echo/Mission.d.ts.map +1 -0
  31. package/dist/cjs/types/Interface/api/echo/Mission.js +3 -0
  32. package/dist/cjs/types/Interface/api/echo/Mission.js.map +1 -0
  33. package/dist/cjs/types/Interface/api/echo/NewsPaper.d.ts +18 -0
  34. package/dist/cjs/types/Interface/api/echo/NewsPaper.d.ts.map +1 -0
  35. package/dist/cjs/types/Interface/api/echo/NewsPaper.js +3 -0
  36. package/dist/cjs/types/Interface/api/echo/NewsPaper.js.map +1 -0
  37. package/dist/cjs/types/Interface/api/echo/Order.d.ts +9 -0
  38. package/dist/cjs/types/Interface/api/echo/Order.d.ts.map +1 -0
  39. package/dist/cjs/types/Interface/api/echo/Order.js +3 -0
  40. package/dist/cjs/types/Interface/api/echo/Order.js.map +1 -0
  41. package/dist/cjs/types/Interface/api/synchronisation/Query.d.ts +12 -0
  42. package/dist/cjs/types/Interface/api/synchronisation/Query.d.ts.map +1 -0
  43. package/dist/cjs/types/Interface/api/synchronisation/Query.js +70 -0
  44. package/dist/cjs/types/Interface/api/synchronisation/Query.js.map +1 -0
  45. package/dist/cjs/types/Interface/models/IBankAccount.d.ts +2 -0
  46. package/dist/cjs/types/Interface/models/IBankAccount.d.ts.map +1 -1
  47. package/dist/cjs/types/Interface/models/IBankAccount.js.map +1 -1
  48. package/dist/cjs/types/Interface/models/ILegalNotice.d.ts +3 -0
  49. package/dist/cjs/types/Interface/models/ILegalNotice.d.ts.map +1 -1
  50. package/dist/cjs/types/Interface/models/ILegalNotice.js.map +1 -1
  51. package/dist/cjs/types/Interface/models/IUpToDateBankAccount.d.ts +34 -0
  52. package/dist/cjs/types/Interface/models/IUpToDateBankAccount.d.ts.map +1 -0
  53. package/dist/cjs/types/Interface/models/IUpToDateBankAccount.js +3 -0
  54. package/dist/cjs/types/Interface/models/IUpToDateBankAccount.js.map +1 -0
  55. package/dist/cjs/types/index.d.ts +7 -0
  56. package/dist/cjs/types/index.d.ts.map +1 -1
  57. package/dist/cjs/types/index.js +7 -0
  58. package/dist/cjs/types/index.js.map +1 -1
  59. package/dist/mjs/api/resources/Echo.d.ts +8 -0
  60. package/dist/mjs/api/resources/Echo.d.ts.map +1 -0
  61. package/dist/mjs/api/resources/Echo.js +13 -0
  62. package/dist/mjs/api/resources/Echo.js.map +1 -0
  63. package/dist/mjs/api/resources/LegalNotice.d.ts +4 -2
  64. package/dist/mjs/api/resources/LegalNotice.d.ts.map +1 -1
  65. package/dist/mjs/api/resources/LegalNotice.js +6 -0
  66. package/dist/mjs/api/resources/LegalNotice.js.map +1 -1
  67. package/dist/mjs/api/resources/Synchronisation.d.ts +6 -0
  68. package/dist/mjs/api/resources/Synchronisation.d.ts.map +1 -0
  69. package/dist/mjs/api/resources/Synchronisation.js +10 -0
  70. package/dist/mjs/api/resources/Synchronisation.js.map +1 -0
  71. package/dist/mjs/api/resources/UpToDate.d.ts +6 -0
  72. package/dist/mjs/api/resources/UpToDate.d.ts.map +1 -0
  73. package/dist/mjs/api/resources/UpToDate.js +7 -0
  74. package/dist/mjs/api/resources/UpToDate.js.map +1 -0
  75. package/dist/mjs/api/resources.d.ts +6 -0
  76. package/dist/mjs/api/resources.d.ts.map +1 -1
  77. package/dist/mjs/api/resources.js +6 -0
  78. package/dist/mjs/api/resources.js.map +1 -1
  79. package/dist/mjs/types/Enum/ZoneCode.d.ts +653 -0
  80. package/dist/mjs/types/Enum/ZoneCode.d.ts.map +1 -0
  81. package/dist/mjs/types/Enum/ZoneCode.js +762 -0
  82. package/dist/mjs/types/Enum/ZoneCode.js.map +1 -0
  83. package/dist/mjs/types/Interface/api/echo/CreateOrder.d.ts +22 -0
  84. package/dist/mjs/types/Interface/api/echo/CreateOrder.d.ts.map +1 -0
  85. package/dist/mjs/types/Interface/api/echo/CreateOrder.js +101 -0
  86. package/dist/mjs/types/Interface/api/echo/CreateOrder.js.map +1 -0
  87. package/dist/mjs/types/Interface/api/echo/Mission.d.ts +5 -0
  88. package/dist/mjs/types/Interface/api/echo/Mission.d.ts.map +1 -0
  89. package/dist/mjs/types/Interface/api/echo/Mission.js +2 -0
  90. package/dist/mjs/types/Interface/api/echo/Mission.js.map +1 -0
  91. package/dist/mjs/types/Interface/api/echo/NewsPaper.d.ts +18 -0
  92. package/dist/mjs/types/Interface/api/echo/NewsPaper.d.ts.map +1 -0
  93. package/dist/mjs/types/Interface/api/echo/NewsPaper.js +2 -0
  94. package/dist/mjs/types/Interface/api/echo/NewsPaper.js.map +1 -0
  95. package/dist/mjs/types/Interface/api/echo/Order.d.ts +9 -0
  96. package/dist/mjs/types/Interface/api/echo/Order.d.ts.map +1 -0
  97. package/dist/mjs/types/Interface/api/echo/Order.js +2 -0
  98. package/dist/mjs/types/Interface/api/echo/Order.js.map +1 -0
  99. package/dist/mjs/types/Interface/api/synchronisation/Query.d.ts +12 -0
  100. package/dist/mjs/types/Interface/api/synchronisation/Query.d.ts.map +1 -0
  101. package/dist/mjs/types/Interface/api/synchronisation/Query.js +75 -0
  102. package/dist/mjs/types/Interface/api/synchronisation/Query.js.map +1 -0
  103. package/dist/mjs/types/Interface/models/IBankAccount.d.ts +2 -0
  104. package/dist/mjs/types/Interface/models/IBankAccount.d.ts.map +1 -1
  105. package/dist/mjs/types/Interface/models/IBankAccount.js.map +1 -1
  106. package/dist/mjs/types/Interface/models/ILegalNotice.d.ts +3 -0
  107. package/dist/mjs/types/Interface/models/ILegalNotice.d.ts.map +1 -1
  108. package/dist/mjs/types/Interface/models/ILegalNotice.js.map +1 -1
  109. package/dist/mjs/types/Interface/models/IUpToDateBankAccount.d.ts +34 -0
  110. package/dist/mjs/types/Interface/models/IUpToDateBankAccount.d.ts.map +1 -0
  111. package/dist/mjs/types/Interface/models/IUpToDateBankAccount.js +2 -0
  112. package/dist/mjs/types/Interface/models/IUpToDateBankAccount.js.map +1 -0
  113. package/dist/mjs/types/index.d.ts +7 -0
  114. package/dist/mjs/types/index.d.ts.map +1 -1
  115. package/dist/mjs/types/index.js +7 -0
  116. package/dist/mjs/types/index.js.map +1 -1
  117. package/package.json +1 -1
  118. package/ts/api/resources/Echo.ts +16 -0
  119. package/ts/api/resources/LegalNotice.ts +10 -2
  120. package/ts/api/resources/Synchronisation.ts +11 -0
  121. package/ts/api/resources/UpToDate.ts +8 -0
  122. package/ts/api/resources.ts +6 -0
  123. package/ts/types/Enum/ZoneCode.ts +764 -0
  124. package/ts/types/Interface/api/echo/CreateOrder.ts +64 -0
  125. package/ts/types/Interface/api/echo/Mission.ts +4 -0
  126. package/ts/types/Interface/api/echo/NewsPaper.ts +18 -0
  127. package/ts/types/Interface/api/echo/Order.ts +8 -0
  128. package/ts/types/Interface/api/synchronisation/Query.ts +47 -0
  129. package/ts/types/Interface/models/IBankAccount.ts +2 -0
  130. package/ts/types/Interface/models/ILegalNotice.ts +3 -0
  131. package/ts/types/Interface/models/IUpToDateBankAccount.ts +37 -0
  132. package/ts/types/index.ts +7 -0
@@ -0,0 +1,64 @@
1
+ import { IsIn, IsInt, IsOptional, IsString } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { DepartmentCode } from '../../../Enum/ZoneCode';
4
+
5
+ export class PublicationContent {
6
+ @ApiProperty()
7
+ @IsString()
8
+ text_html: string;
9
+ }
10
+
11
+ export class Publication {
12
+ @ApiProperty()
13
+ @IsString()
14
+ ad_type_id: string;
15
+
16
+ @ApiProperty()
17
+ content: PublicationContent;
18
+
19
+ @ApiProperty()
20
+ @IsString()
21
+ header: string;
22
+
23
+ @ApiProperty()
24
+ @IsString()
25
+ legal_name: string;
26
+
27
+ @ApiPropertyOptional()
28
+ @IsString()
29
+ @IsOptional()
30
+ logo_base_64?: string | null;
31
+ }
32
+ export class CreateEchoOrder {
33
+ @ApiProperty()
34
+ departement: DepartmentCode;
35
+
36
+ @ApiProperty()
37
+ @IsString()
38
+ newspaper_id: string;
39
+
40
+ @ApiProperty()
41
+ @IsInt()
42
+ paper_proof_qty: number;
43
+
44
+ @ApiProperty()
45
+ publication: Publication;
46
+
47
+ @ApiProperty()
48
+ @IsString()
49
+ publishing_date_from: string;
50
+
51
+ @ApiProperty()
52
+ @IsString()
53
+ publishing_date_to: string;
54
+
55
+ @ApiProperty()
56
+ @IsString()
57
+ selection_mode: string;
58
+
59
+ @ApiProperty()
60
+ @IsString()
61
+ @IsIn(['simulation', 'order'])
62
+ type: string;
63
+ }
64
+
@@ -0,0 +1,4 @@
1
+ export type Mission = {
2
+ id: number;
3
+ name: string;
4
+ };
@@ -0,0 +1,18 @@
1
+ export type NewsPaper = {
2
+ newspaper_accept_logo_header: boolean,
3
+ newspaper_id: string,
4
+ newspaper_name: string,
5
+ newspaper_publication_info: {
6
+ next_publication_closing_datetime: string,
7
+ next_publication_date: string,
8
+ publishing_date_frequency: PublishingDateFrequency[]
9
+ },
10
+ newspaper_publishing_medium: string
11
+ };
12
+
13
+ export type PublishingDateFrequency = {
14
+ closing_day: number,
15
+ closing_time: string,
16
+ plus_7: boolean,
17
+ publishing_day: number
18
+ };
@@ -0,0 +1,8 @@
1
+ export type EchoOrder = {
2
+ id: string;
3
+ newspaper_name: string;
4
+ price_total_excl_tax: string;
5
+ publication_closing_datetime: string;
6
+ publication_date: string;
7
+ specimen_url: string;
8
+ };
@@ -0,0 +1,47 @@
1
+ import { IsArray, IsNumber, IsOptional, IsString } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class QuerySynchronisationPaginated {
5
+ @ApiProperty()
6
+ @IsNumber()
7
+ limit: number;
8
+
9
+ @ApiProperty()
10
+ @IsNumber()
11
+ page: number;
12
+
13
+ @ApiPropertyOptional()
14
+ @IsString()
15
+ @IsOptional()
16
+ search?: string;
17
+
18
+ @ApiPropertyOptional()
19
+ @IsOptional()
20
+ @IsArray()
21
+ accountants?: number[];
22
+
23
+ @ApiPropertyOptional()
24
+ @IsOptional()
25
+ @IsNumber()
26
+ customerSuccess?: number;
27
+
28
+ @ApiPropertyOptional()
29
+ @IsOptional()
30
+ @IsArray()
31
+ synchroStates?: number[];
32
+
33
+ @ApiPropertyOptional()
34
+ @IsOptional()
35
+ @IsArray()
36
+ banks?: number[];
37
+
38
+ @ApiPropertyOptional()
39
+ @IsOptional()
40
+ @IsNumber()
41
+ jeDeclareState?: number;
42
+
43
+ @ApiPropertyOptional()
44
+ @IsOptional()
45
+ @IsNumber()
46
+ connector?: number;
47
+ }
@@ -5,6 +5,7 @@ import { IAccount } from './IAccount';
5
5
  import { IBankList } from './IBankList';
6
6
  import { IBalanceBankAccount } from './IBalanceBankAccount';
7
7
  import { ISimulation } from './ISimulation';
8
+ import { IUpToDateBankAccount } from './IUpToDateBankAccount';
8
9
 
9
10
  // bankAccounts
10
11
  export interface IBankAccount {
@@ -45,4 +46,5 @@ export interface IBankAccount {
45
46
  bankList?: IBankList;
46
47
  balanceBankAccounts?: IBalanceBankAccount[];
47
48
  simulations?: ISimulation[];
49
+ upToDateBankAccount?: IUpToDateBankAccount;
48
50
  }
@@ -7,6 +7,7 @@ export interface ILegalNotice {
7
7
  ref: string | null;
8
8
  folderCode: string | null;
9
9
  nameOfNewspaper: string | null;
10
+ department: string | null;
10
11
  amountPurchaseHt: number | null;
11
12
  amountSaleHt: number | null;
12
13
  status: number;
@@ -17,6 +18,8 @@ export interface ILegalNotice {
17
18
  isPaid: boolean;
18
19
  processed: boolean;
19
20
  societyWithoutRegister: string | null;
21
+ idMission?: string | null;
22
+ idNewsPaper?: string | null;
20
23
  idSociety: number | null;
21
24
  idOperationLegalNotice: number;
22
25
  idPrestation: number | null;
@@ -0,0 +1,37 @@
1
+ import { ISociety } from './ISociety';
2
+ import { IBankAccount } from './IBankAccount';
3
+ import { IMonth } from './IMonth';
4
+ import { IWebMail } from './IWebMail';
5
+ import { IMail } from './IMail';
6
+
7
+ // bankAccounts
8
+ export interface IUpToDateBankAccount {
9
+ id?: number;
10
+ idBankAccount: number;
11
+ idSociety: number;
12
+ year?: number | null;
13
+ idMonth?: number | null;
14
+ upToDateBankAccount?: Date | null;
15
+ upToDateBalance?: Date | null;
16
+ currentMandate?: Date | null;
17
+ signedMandate?: Date | null;
18
+ idMailRelanceAnnotation?: number | null;
19
+ idMailAskCsv?: number | null;
20
+ idMailRelanceDesyncho?: number | null;
21
+ idNewMailRelanceAnnotation?: number | null;
22
+ idNewMailAskCsv?: number | null;
23
+ idNewMailRelanceDesyncho?: number | null;
24
+ createdAt?: Date | null;
25
+ updatedAt?: Date | null;
26
+
27
+ // Associations
28
+ bankAccount?: IBankAccount;
29
+ society?: ISociety;
30
+ month?: IMonth;
31
+ mailAskCsv?: IWebMail;
32
+ mailRelanceAnnotation?: IWebMail;
33
+ mailRelanceDesynchro?: IWebMail;
34
+ newMailAskCsv?: IMail;
35
+ newMailRelanceAnnotation?: IMail;
36
+ newMailRelanceDesynchro?: IMail;
37
+ }
package/ts/types/index.ts CHANGED
@@ -252,6 +252,7 @@ export * from './Interface/models/IStripeEventType';
252
252
  export * from './Interface/models/ISubscriptionType';
253
253
  export * from './Interface/models/IThirdPartyType';
254
254
  export * from './Interface/models/IVehicleType';
255
+ export * from './Interface/models/IUpToDateBankAccount';
255
256
  export * from './Interface/models/IUser';
256
257
  export * from './Interface/models/IUserBrand';
257
258
  export * from './Interface/models/IUserNotification';
@@ -527,6 +528,7 @@ export * from './Enum/EquipmentAvailability';
527
528
  export * from './Enum/SpecialDayType';
528
529
  export * from './Enum/Degree';
529
530
  export * from './Enum/Brevo';
531
+ export * from './Enum/ZoneCode';
530
532
 
531
533
  // Interfaces API
532
534
  export * from './Interface/api/kilometricAllowance/ReadKilometricAllowance';
@@ -924,6 +926,7 @@ export * from './Interface/api/mobile/UpdateMobile';
924
926
  export * from './Interface/api/mobile/QueryMobileMigration';
925
927
  export * from './Interface/api/societyEvent/QuerySocietyEvent';
926
928
  export * from './Interface/api/societyEvent/CreateSocietyEvent';
929
+ export * from './Interface/api/synchronisation/Query';
927
930
  export * from './Interface/api/task/QueryGetAllTask';
928
931
  export * from './Interface/api/regulate/QueryGetAll';
929
932
  export * from './Interface/api/regulate/RegulateWithStats';
@@ -1036,6 +1039,10 @@ export * from './Interface/api/paymentExpectation/CreatePaymentExpecation';
1036
1039
  export * from './Interface/api/expertAnnuary/Query';
1037
1040
  export * from './Interface/api/brevo/BrevoElement';
1038
1041
  export * from './Interface/api/bankAccount/Create';
1042
+ export * from './Interface/api/echo/Mission';
1043
+ export * from './Interface/api/echo/CreateOrder';
1044
+ export * from './Interface/api/echo/NewsPaper';
1045
+ export * from './Interface/api/echo/Order';
1039
1046
 
1040
1047
  // Enums types
1041
1048
  export * from './Interface/enum/Util';