@silexpert/core 1.0.30 → 1.0.34

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 (66) hide show
  1. package/es/api/resources/Dashboard.d.ts +2 -1
  2. package/es/api/resources/Dashboard.d.ts.map +1 -1
  3. package/es/api/resources/Dashboard.js +3 -0
  4. package/es/api/resources/Dashboard.js.map +1 -1
  5. package/es/api/resources/Qonto.js +1 -1
  6. package/es/api/resources/Qonto.js.map +1 -1
  7. package/es/types/Enum/CommercialManagement.d.ts +1 -1
  8. package/es/types/Enum/CommercialManagement.d.ts.map +1 -1
  9. package/es/types/Enum/CommercialManagement.js +1 -1
  10. package/es/types/Enum/CommercialManagement.js.map +1 -1
  11. package/es/types/Enum/CustomerVat.d.ts +24 -0
  12. package/es/types/Enum/CustomerVat.d.ts.map +1 -0
  13. package/es/types/Enum/CustomerVat.js +26 -0
  14. package/es/types/Enum/CustomerVat.js.map +1 -0
  15. package/es/types/Interface/api/3cx/Query3cxSearch.d.ts +1 -0
  16. package/es/types/Interface/api/3cx/Query3cxSearch.d.ts.map +1 -1
  17. package/es/types/Interface/api/3cx/Query3cxSearch.js +6 -0
  18. package/es/types/Interface/api/3cx/Query3cxSearch.js.map +1 -1
  19. package/es/types/Interface/api/dashboard/QueryVatDisbursed.d.ts +5 -0
  20. package/es/types/Interface/api/dashboard/QueryVatDisbursed.d.ts.map +1 -0
  21. package/es/types/Interface/api/dashboard/QueryVatDisbursed.js +24 -0
  22. package/es/types/Interface/api/dashboard/QueryVatDisbursed.js.map +1 -0
  23. package/es/types/Interface/api/dashboard/ReadVatDisbursed.d.ts +13 -0
  24. package/es/types/Interface/api/dashboard/ReadVatDisbursed.d.ts.map +1 -0
  25. package/es/types/Interface/api/dashboard/ReadVatDisbursed.js +2 -0
  26. package/es/types/Interface/api/dashboard/ReadVatDisbursed.js.map +1 -0
  27. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts +1 -0
  28. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts.map +1 -1
  29. package/es/types/Interface/api/mail/QueryPaginatedMail.js +6 -0
  30. package/es/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  31. package/es/types/Interface/models/IEstimateInvoice.d.ts +1 -1
  32. package/es/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
  33. package/es/types/Interface/models/IEstimateInvoice.js.map +1 -1
  34. package/es/types/index.d.ts +3 -0
  35. package/es/types/index.d.ts.map +1 -1
  36. package/es/types/index.js +3 -0
  37. package/es/types/index.js.map +1 -1
  38. package/js/api/resources/Dashboard.js +6 -0
  39. package/js/api/resources/Dashboard.js.map +1 -1
  40. package/js/api/resources/Qonto.js +1 -1
  41. package/js/api/resources/Qonto.js.map +1 -1
  42. package/js/types/Enum/CommercialManagement.js +1 -1
  43. package/js/types/Enum/CommercialManagement.js.map +1 -1
  44. package/js/types/Enum/CustomerVat.js +34 -0
  45. package/js/types/Enum/CustomerVat.js.map +1 -0
  46. package/js/types/Interface/api/3cx/Query3cxSearch.js +2 -0
  47. package/js/types/Interface/api/3cx/Query3cxSearch.js.map +1 -1
  48. package/js/types/Interface/api/dashboard/QueryVatDisbursed.js +31 -0
  49. package/js/types/Interface/api/dashboard/QueryVatDisbursed.js.map +1 -0
  50. package/js/types/Interface/api/dashboard/ReadVatDisbursed.js +6 -0
  51. package/js/types/Interface/api/dashboard/ReadVatDisbursed.js.map +1 -0
  52. package/js/types/Interface/api/mail/QueryPaginatedMail.js +2 -0
  53. package/js/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  54. package/js/types/index.js +36 -0
  55. package/js/types/index.js.map +1 -1
  56. package/package.json +1 -1
  57. package/ts/api/resources/Dashboard.ts +6 -0
  58. package/ts/api/resources/Qonto.ts +1 -1
  59. package/ts/types/Enum/CommercialManagement.ts +1 -1
  60. package/ts/types/Enum/CustomerVat.ts +24 -0
  61. package/ts/types/Interface/api/3cx/Query3cxSearch.ts +5 -0
  62. package/ts/types/Interface/api/dashboard/QueryVatDisbursed.ts +12 -0
  63. package/ts/types/Interface/api/dashboard/ReadVatDisbursed.ts +14 -0
  64. package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +5 -0
  65. package/ts/types/Interface/models/IEstimateInvoice.ts +1 -1
  66. package/ts/types/index.ts +3 -0
@@ -0,0 +1,24 @@
1
+ export enum CustomerVatType {
2
+ VAT_REFUND = 1,
3
+ VAT_TO_PAY = 2,
4
+ VAT_REPORT = 3,
5
+ VAT_TO_NIL = 4,
6
+ }
7
+
8
+ export enum CustomerVatState {
9
+ WAITING = 0,
10
+ SIE_ACCEPTED = 1,
11
+ SIE_SENT = 2,
12
+ PROBLEM_CLIENT = 3,
13
+ DID_BY_CLIENT = 4,
14
+ NON_ATTRIBUTED = 5,
15
+ SENT_TO_CLIENT = 6,
16
+ REVIVE_CLIENT = 7,
17
+ BACK_IN_PROGESS = 8,
18
+ UNPAID = 9,
19
+ SIE_PROBLEM = 10,
20
+ ACCEPTED_BY_CLIENT = 11,
21
+ REJECTED_BY_CLIENT = 12,
22
+ TO_DO = 13,
23
+ WAITING_CLIENT = 14,
24
+ }
@@ -43,4 +43,9 @@ export class Query3cxLog {
43
43
  @IsNumber()
44
44
  @IsOptional()
45
45
  idSociety?: number;
46
+
47
+ @ApiPropertyOptional()
48
+ @IsString()
49
+ @IsOptional()
50
+ phoneNumber?: string;
46
51
  }
@@ -0,0 +1,12 @@
1
+ import { IsDateString } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class QueryVatDisbursed {
5
+ @ApiProperty()
6
+ @IsDateString()
7
+ startDate: string;
8
+
9
+ @ApiProperty()
10
+ @IsDateString()
11
+ endDate: string;
12
+ }
@@ -0,0 +1,14 @@
1
+ import { CustomerVatState, CustomerVatType } from '../../../Enum/CustomerVat';
2
+
3
+ export type VatDisbursedWithFutureDate = {
4
+ todo: boolean;
5
+ amount: number;
6
+ state: CustomerVatState;
7
+ type: CustomerVatType;
8
+ date: string
9
+ };
10
+
11
+ export type ReadVatDisbursed = {
12
+ data: VatDisbursedWithFutureDate[];
13
+ total: number;
14
+ };
@@ -105,6 +105,11 @@ export class QueryPaginatedMail {
105
105
  @IsInt()
106
106
  idUserWhoAnswered?: number;
107
107
 
108
+ @ApiPropertyOptional()
109
+ @IsOptional()
110
+ @IsInt()
111
+ idRole?: number;
112
+
108
113
  @ApiPropertyOptional({ default: 25 })
109
114
  @IsOptional()
110
115
  @IsNumber()
@@ -64,7 +64,7 @@ export interface IEstimateInvoice {
64
64
  assetRelatedToThisEstimateInvoice?: IEstimateInvoice;
65
65
  estimateInvoiceForThisAsset?: IEstimateInvoice;
66
66
  estimateInvoiceForThisRepeat?: IEstimateInvoice;
67
- invoiceReminder?: IInvoiceReminder;
67
+ reminder?: IInvoiceReminder;
68
68
  relatedInvoice?: IEstimateInvoice;
69
69
  recurrence?: IInvoiceRecurrence;
70
70
  file?: IFile;
package/ts/types/index.ts CHANGED
@@ -438,6 +438,7 @@ export * from './Enum/Call';
438
438
  export * from './Enum/ConnectionError';
439
439
  export * from './Enum/RecurrenceType';
440
440
  export * from './Enum/Rules';
441
+ export * from './Enum/CustomerVat';
441
442
 
442
443
  // Interfaces API
443
444
  export * from './Interface/api/partnerTransactionType/ReadPartnerTransactionType';
@@ -523,6 +524,8 @@ export * from './Interface/api/pdf/BillingDocumentData';
523
524
  export * from './Interface/api/dashboard/QueryBalanceBankAccount';
524
525
  export * from './Interface/api/dashboard/QueryTopBuys';
525
526
  export * from './Interface/api/dashboard/QueryTopProviders';
527
+ export * from './Interface/api/dashboard/QueryVatDisbursed';
528
+ export * from './Interface/api/dashboard/ReadVatDisbursed';
526
529
  export * from './Interface/api/dashboard/ReadBalanceBankAccount';
527
530
  export * from './Interface/api/dashboard/QueryDeadline';
528
531
  export * from './Interface/api/dashboard/ReadTopBuys';