@silexpert/core 1.2.91 → 1.2.93

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 (118) hide show
  1. package/dist/cjs/api/resources/Mail.d.ts +2 -1
  2. package/dist/cjs/api/resources/Mail.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Mail.js +3 -0
  4. package/dist/cjs/api/resources/Mail.js.map +1 -1
  5. package/dist/cjs/api/resources/statistic/Marketing.d.ts +11 -0
  6. package/dist/cjs/api/resources/statistic/Marketing.d.ts.map +1 -0
  7. package/dist/cjs/api/resources/statistic/Marketing.js +16 -0
  8. package/dist/cjs/api/resources/statistic/Marketing.js.map +1 -0
  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/Enum/Brevo.d.ts +3 -0
  14. package/dist/cjs/types/Enum/Brevo.d.ts.map +1 -1
  15. package/dist/cjs/types/Enum/Brevo.js +3 -0
  16. package/dist/cjs/types/Enum/Brevo.js.map +1 -1
  17. package/dist/cjs/types/Enum/Role.d.ts +2 -1
  18. package/dist/cjs/types/Enum/Role.d.ts.map +1 -1
  19. package/dist/cjs/types/Enum/Role.js +1 -0
  20. package/dist/cjs/types/Enum/Role.js.map +1 -1
  21. package/dist/cjs/types/Enum/RoleDetail.d.ts +12 -0
  22. package/dist/cjs/types/Enum/RoleDetail.d.ts.map +1 -1
  23. package/dist/cjs/types/Enum/RoleDetail.js +12 -0
  24. package/dist/cjs/types/Enum/RoleDetail.js.map +1 -1
  25. package/dist/cjs/types/Enum/StatisticType.d.ts +2 -1
  26. package/dist/cjs/types/Enum/StatisticType.d.ts.map +1 -1
  27. package/dist/cjs/types/Enum/StatisticType.js +1 -0
  28. package/dist/cjs/types/Enum/StatisticType.js.map +1 -1
  29. package/dist/cjs/types/Interface/api/accountingTransaction/QueryBankAccountSum.d.ts +1 -1
  30. package/dist/cjs/types/Interface/api/accountingTransaction/QueryBankAccountSum.d.ts.map +1 -1
  31. package/dist/cjs/types/Interface/api/accountingTransaction/QueryBankAccountSum.js +1 -1
  32. package/dist/cjs/types/Interface/api/accountingTransaction/QueryBankAccountSum.js.map +1 -1
  33. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts +1 -1
  34. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts.map +1 -1
  35. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.js +1 -1
  36. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
  37. package/dist/cjs/types/Interface/api/statistic/QueryInternal.d.ts +3 -0
  38. package/dist/cjs/types/Interface/api/statistic/QueryInternal.d.ts.map +1 -1
  39. package/dist/cjs/types/Interface/api/statistic/QueryInternal.js +10 -1
  40. package/dist/cjs/types/Interface/api/statistic/QueryInternal.js.map +1 -1
  41. package/dist/cjs/types/Interface/api/statistic/QueryMarketing.d.ts +6 -0
  42. package/dist/cjs/types/Interface/api/statistic/QueryMarketing.d.ts.map +1 -0
  43. package/dist/cjs/types/Interface/api/statistic/QueryMarketing.js +33 -0
  44. package/dist/cjs/types/Interface/api/statistic/QueryMarketing.js.map +1 -0
  45. package/dist/cjs/types/Interface/api/toDoExpress/Query.d.ts +1 -2
  46. package/dist/cjs/types/Interface/api/toDoExpress/Query.d.ts.map +1 -1
  47. package/dist/cjs/types/Interface/api/toDoExpress/Query.js +1 -7
  48. package/dist/cjs/types/Interface/api/toDoExpress/Query.js.map +1 -1
  49. package/dist/cjs/types/index.d.ts +1 -0
  50. package/dist/cjs/types/index.d.ts.map +1 -1
  51. package/dist/cjs/types/index.js +1 -0
  52. package/dist/cjs/types/index.js.map +1 -1
  53. package/dist/mjs/api/resources/Mail.d.ts +2 -1
  54. package/dist/mjs/api/resources/Mail.d.ts.map +1 -1
  55. package/dist/mjs/api/resources/Mail.js +3 -0
  56. package/dist/mjs/api/resources/Mail.js.map +1 -1
  57. package/dist/mjs/api/resources/statistic/Marketing.d.ts +11 -0
  58. package/dist/mjs/api/resources/statistic/Marketing.d.ts.map +1 -0
  59. package/dist/mjs/api/resources/statistic/Marketing.js +15 -0
  60. package/dist/mjs/api/resources/statistic/Marketing.js.map +1 -0
  61. package/dist/mjs/api/resources.d.ts +2 -0
  62. package/dist/mjs/api/resources.d.ts.map +1 -1
  63. package/dist/mjs/api/resources.js +2 -0
  64. package/dist/mjs/api/resources.js.map +1 -1
  65. package/dist/mjs/types/Enum/Brevo.d.ts +3 -0
  66. package/dist/mjs/types/Enum/Brevo.d.ts.map +1 -1
  67. package/dist/mjs/types/Enum/Brevo.js +3 -0
  68. package/dist/mjs/types/Enum/Brevo.js.map +1 -1
  69. package/dist/mjs/types/Enum/Role.d.ts +2 -1
  70. package/dist/mjs/types/Enum/Role.d.ts.map +1 -1
  71. package/dist/mjs/types/Enum/Role.js +1 -0
  72. package/dist/mjs/types/Enum/Role.js.map +1 -1
  73. package/dist/mjs/types/Enum/RoleDetail.d.ts +12 -0
  74. package/dist/mjs/types/Enum/RoleDetail.d.ts.map +1 -1
  75. package/dist/mjs/types/Enum/RoleDetail.js +12 -0
  76. package/dist/mjs/types/Enum/RoleDetail.js.map +1 -1
  77. package/dist/mjs/types/Enum/StatisticType.d.ts +2 -1
  78. package/dist/mjs/types/Enum/StatisticType.d.ts.map +1 -1
  79. package/dist/mjs/types/Enum/StatisticType.js +1 -0
  80. package/dist/mjs/types/Enum/StatisticType.js.map +1 -1
  81. package/dist/mjs/types/Interface/api/accountingTransaction/QueryBankAccountSum.d.ts +1 -1
  82. package/dist/mjs/types/Interface/api/accountingTransaction/QueryBankAccountSum.d.ts.map +1 -1
  83. package/dist/mjs/types/Interface/api/accountingTransaction/QueryBankAccountSum.js +2 -2
  84. package/dist/mjs/types/Interface/api/accountingTransaction/QueryBankAccountSum.js.map +1 -1
  85. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts +1 -1
  86. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts.map +1 -1
  87. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.js +2 -2
  88. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
  89. package/dist/mjs/types/Interface/api/statistic/QueryInternal.d.ts +3 -0
  90. package/dist/mjs/types/Interface/api/statistic/QueryInternal.d.ts.map +1 -1
  91. package/dist/mjs/types/Interface/api/statistic/QueryInternal.js +9 -0
  92. package/dist/mjs/types/Interface/api/statistic/QueryInternal.js.map +1 -1
  93. package/dist/mjs/types/Interface/api/statistic/QueryMarketing.d.ts +6 -0
  94. package/dist/mjs/types/Interface/api/statistic/QueryMarketing.d.ts.map +1 -0
  95. package/dist/mjs/types/Interface/api/statistic/QueryMarketing.js +32 -0
  96. package/dist/mjs/types/Interface/api/statistic/QueryMarketing.js.map +1 -0
  97. package/dist/mjs/types/Interface/api/toDoExpress/Query.d.ts +1 -2
  98. package/dist/mjs/types/Interface/api/toDoExpress/Query.d.ts.map +1 -1
  99. package/dist/mjs/types/Interface/api/toDoExpress/Query.js +2 -9
  100. package/dist/mjs/types/Interface/api/toDoExpress/Query.js.map +1 -1
  101. package/dist/mjs/types/index.d.ts +1 -0
  102. package/dist/mjs/types/index.d.ts.map +1 -1
  103. package/dist/mjs/types/index.js +1 -0
  104. package/dist/mjs/types/index.js.map +1 -1
  105. package/package.json +1 -1
  106. package/ts/api/resources/Mail.ts +5 -1
  107. package/ts/api/resources/statistic/Marketing.ts +16 -0
  108. package/ts/api/resources.ts +2 -0
  109. package/ts/types/Enum/Brevo.ts +3 -0
  110. package/ts/types/Enum/Role.ts +1 -0
  111. package/ts/types/Enum/RoleDetail.ts +12 -0
  112. package/ts/types/Enum/StatisticType.ts +1 -0
  113. package/ts/types/Interface/api/accountingTransaction/QueryBankAccountSum.ts +1 -1
  114. package/ts/types/Interface/api/accountingTransaction/QueryTransaction.ts +1 -1
  115. package/ts/types/Interface/api/statistic/QueryInternal.ts +7 -0
  116. package/ts/types/Interface/api/statistic/QueryMarketing.ts +16 -0
  117. package/ts/types/Interface/api/toDoExpress/Query.ts +1 -6
  118. package/ts/types/index.ts +1 -0
@@ -0,0 +1,16 @@
1
+ import { Resource } from '../../Resource';
2
+ import { QueryMarketing } from '../../../types';
3
+
4
+ export class StatisticMarketing extends Resource {
5
+ /**
6
+ * Retourne les statistiques d'application pour un comptable
7
+ * @param { QueryMarketing } payload
8
+ * @returns {JSON}
9
+ */
10
+ public getStatistics(params: QueryMarketing, signal?: AbortSignal): Promise<JSON> {
11
+ return this.axios.$get('/statistic-marketing', {
12
+ ...(signal ? { signal } : {}),
13
+ params,
14
+ });
15
+ }
16
+ }
@@ -175,6 +175,7 @@ import { RegistrationForm } from './resources/RegistrationForm';
175
175
  import { CommercialEmail } from './resources/CommercialEmail';
176
176
  import { CommercialDocumentTemplate } from './resources/CommercialDocumentTemplate';
177
177
  import { CommercialConditionOfSale } from './resources/CommercialConditionOfSale';
178
+ import { StatisticMarketing } from './resources/statistic/Marketing';
178
179
 
179
180
  export const resources = {
180
181
  simulation: Simulation,
@@ -354,4 +355,5 @@ export const resources = {
354
355
  commercialEmail: CommercialEmail,
355
356
  commercialDocumentTemplate: CommercialDocumentTemplate,
356
357
  commercialConditionOfSale: CommercialConditionOfSale,
358
+ statisticMarketing: StatisticMarketing,
357
359
  };
@@ -7,6 +7,9 @@ export enum BrevoList {
7
7
  NEWSLETTER = 218,
8
8
  COMPTALIB_NEWSLETTER = 38,
9
9
  ALL_CUSTOMERS_COMPTALIB = 18,
10
+ CLEMENTINE_PROSPECT = 44,
11
+ QUOTE_RECEIVED = 300,
12
+ INITIAL_EXCHANGE = 301,
10
13
  DOWNLOAD_WHITEPAPER = 302,
11
14
  CALENDLY_PROSPECT = 303,
12
15
  }
@@ -51,6 +51,7 @@ export enum Role {
51
51
  TECHNICAL_ADVISOR = 55,
52
52
  RATING = 56,
53
53
  INTERNAL_ACCOUNTANT = 57,
54
+ MARKETING = 58,
54
55
  }
55
56
 
56
57
  export const RoleAllowedToLogInAsClient = [
@@ -515,4 +515,16 @@ export const RoleDetail = {
515
515
  cnVpn: 'COMPTABLE',
516
516
  isGrade: false,
517
517
  },
518
+ MARKETING: {
519
+ id: Role.MARKETING,
520
+ name: 'Marketing',
521
+ colorPrimary: '#8765D0',
522
+ colorSecondary: '#DED7F6',
523
+ handledInUserSocietyPermissionTable: false,
524
+ isService: false,
525
+ subRole: false,
526
+ isInWebmail: false,
527
+ cnVpn: 'COMPTABLE',
528
+ isGrade: false,
529
+ },
518
530
  };
@@ -15,4 +15,5 @@ export enum StatisticType {
15
15
  CUSTOMER_SUCCESS_WALL = 14,
16
16
  DATA_OFFICER = 15,
17
17
  SALESMAN = 16,
18
+ MARKETING = 17,
18
19
  }
@@ -30,7 +30,7 @@ export class QueryBankAccountSum {
30
30
  onlyDebit?: boolean;
31
31
 
32
32
  @ApiPropertyOptional()
33
- withoutReceipt?: boolean;
33
+ withMissingReceipt?: boolean;
34
34
 
35
35
  @ApiPropertyOptional()
36
36
  invoiceRequested?: boolean;
@@ -46,7 +46,7 @@ export class QueryTransaction {
46
46
  endDate?: string;
47
47
 
48
48
  @ApiPropertyOptional()
49
- withoutReceipt?: boolean;
49
+ withMissingReceipt?: boolean;
50
50
 
51
51
  @ApiPropertyOptional()
52
52
  invoiceRequested?: boolean;
@@ -26,3 +26,10 @@ export class QueryInternalDataOfficer {
26
26
  @IsArray()
27
27
  idUsers?: number[];
28
28
  }
29
+
30
+ export class QueryInternalMarketing {
31
+ @ApiPropertyOptional()
32
+ @IsOptional()
33
+ @IsArray()
34
+ idUsers?: number[];
35
+ }
@@ -0,0 +1,16 @@
1
+ import { IsNumber, IsDate } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class QueryMarketing {
5
+ @ApiProperty()
6
+ @IsNumber()
7
+ idUser: number;
8
+
9
+ @ApiProperty()
10
+ @IsDate()
11
+ startDate: Date;
12
+
13
+ @ApiProperty()
14
+ @IsDate()
15
+ endDate: Date;
16
+ }
@@ -41,7 +41,7 @@ export class QueryToDoBalanceSheetPaginated extends RequiredQueryPaginate {
41
41
  @ApiPropertyOptional()
42
42
  @IsOptional()
43
43
  @IsInt()
44
- onboardingState?: number;
44
+ idVatRegime?: number;
45
45
 
46
46
  @ApiPropertyOptional()
47
47
  @IsOptional()
@@ -142,11 +142,6 @@ export class QueryToDoBalanceSheetStats {
142
142
  @IsArray()
143
143
  turnoverMax?: number[];
144
144
 
145
- @ApiPropertyOptional()
146
- @IsOptional()
147
- @IsInt()
148
- onboardingState?: number;
149
-
150
145
  @ApiPropertyOptional()
151
146
  @IsOptional()
152
147
  @IsInt()
package/ts/types/index.ts CHANGED
@@ -842,6 +842,7 @@ export * from './Interface/api/statistic/QueryInternal';
842
842
  export * from './Interface/api/statistic/QueryGetDirection';
843
843
  export * from './Interface/api/statistic/QueryCustomerSuccess';
844
844
  export * from './Interface/api/statistic/QueryDataOfficer';
845
+ export * from './Interface/api/statistic/QueryMarketing';
845
846
  export * from './Interface/api/pappers/CreatePappers';
846
847
  export * from './Interface/api/bankAccount/Query';
847
848
  export * from './Interface/api/bankAccount/Update';