@silexpert/core 1.3.7 → 1.3.8

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 (73) hide show
  1. package/dist/cjs/api/resources/CompanyMarketingInformation.d.ts +25 -0
  2. package/dist/cjs/api/resources/CompanyMarketingInformation.d.ts.map +1 -0
  3. package/dist/cjs/api/resources/CompanyMarketingInformation.js +34 -0
  4. package/dist/cjs/api/resources/CompanyMarketingInformation.js.map +1 -0
  5. package/dist/cjs/api/resources.d.ts +2 -0
  6. package/dist/cjs/api/resources.d.ts.map +1 -1
  7. package/dist/cjs/api/resources.js +2 -0
  8. package/dist/cjs/api/resources.js.map +1 -1
  9. package/dist/cjs/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.d.ts +23 -0
  10. package/dist/cjs/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.d.ts.map +1 -0
  11. package/dist/cjs/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.js +3 -0
  12. package/dist/cjs/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.js.map +1 -0
  13. package/dist/cjs/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.d.ts +27 -0
  14. package/dist/cjs/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.d.ts.map +1 -0
  15. package/dist/cjs/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.js +146 -0
  16. package/dist/cjs/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.js.map +1 -0
  17. package/dist/cjs/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.d.ts +6 -0
  18. package/dist/cjs/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.d.ts.map +1 -0
  19. package/dist/cjs/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.js +24 -0
  20. package/dist/cjs/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.js.map +1 -0
  21. package/dist/cjs/types/Interface/api/regulation/Create.d.ts +1 -1
  22. package/dist/cjs/types/Interface/api/regulation/Create.d.ts.map +1 -1
  23. package/dist/cjs/types/Interface/api/regulation/Create.js +2 -1
  24. package/dist/cjs/types/Interface/api/regulation/Create.js.map +1 -1
  25. package/dist/cjs/types/Interface/models/ICompanyMarketingInformation.d.ts +11 -0
  26. package/dist/cjs/types/Interface/models/ICompanyMarketingInformation.d.ts.map +1 -0
  27. package/dist/cjs/types/Interface/models/ICompanyMarketingInformation.js +3 -0
  28. package/dist/cjs/types/Interface/models/ICompanyMarketingInformation.js.map +1 -0
  29. package/dist/cjs/types/index.d.ts +4 -0
  30. package/dist/cjs/types/index.d.ts.map +1 -1
  31. package/dist/cjs/types/index.js +4 -0
  32. package/dist/cjs/types/index.js.map +1 -1
  33. package/dist/mjs/api/resources/CompanyMarketingInformation.d.ts +25 -0
  34. package/dist/mjs/api/resources/CompanyMarketingInformation.d.ts.map +1 -0
  35. package/dist/mjs/api/resources/CompanyMarketingInformation.js +32 -0
  36. package/dist/mjs/api/resources/CompanyMarketingInformation.js.map +1 -0
  37. package/dist/mjs/api/resources.d.ts +2 -0
  38. package/dist/mjs/api/resources.d.ts.map +1 -1
  39. package/dist/mjs/api/resources.js +2 -0
  40. package/dist/mjs/api/resources.js.map +1 -1
  41. package/dist/mjs/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.d.ts +23 -0
  42. package/dist/mjs/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.d.ts.map +1 -0
  43. package/dist/mjs/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.js +2 -0
  44. package/dist/mjs/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.js.map +1 -0
  45. package/dist/mjs/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.d.ts +27 -0
  46. package/dist/mjs/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.d.ts.map +1 -0
  47. package/dist/mjs/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.js +172 -0
  48. package/dist/mjs/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.js.map +1 -0
  49. package/dist/mjs/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.d.ts +6 -0
  50. package/dist/mjs/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.d.ts.map +1 -0
  51. package/dist/mjs/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.js +21 -0
  52. package/dist/mjs/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.js.map +1 -0
  53. package/dist/mjs/types/Interface/api/regulation/Create.d.ts +1 -1
  54. package/dist/mjs/types/Interface/api/regulation/Create.d.ts.map +1 -1
  55. package/dist/mjs/types/Interface/api/regulation/Create.js +2 -1
  56. package/dist/mjs/types/Interface/api/regulation/Create.js.map +1 -1
  57. package/dist/mjs/types/Interface/models/ICompanyMarketingInformation.d.ts +11 -0
  58. package/dist/mjs/types/Interface/models/ICompanyMarketingInformation.d.ts.map +1 -0
  59. package/dist/mjs/types/Interface/models/ICompanyMarketingInformation.js +2 -0
  60. package/dist/mjs/types/Interface/models/ICompanyMarketingInformation.js.map +1 -0
  61. package/dist/mjs/types/index.d.ts +4 -0
  62. package/dist/mjs/types/index.d.ts.map +1 -1
  63. package/dist/mjs/types/index.js +4 -0
  64. package/dist/mjs/types/index.js.map +1 -1
  65. package/package.json +1 -1
  66. package/ts/api/resources/CompanyMarketingInformation.ts +40 -0
  67. package/ts/api/resources.ts +2 -0
  68. package/ts/types/Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload.ts +32 -0
  69. package/ts/types/Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation.ts +121 -0
  70. package/ts/types/Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation.ts +10 -0
  71. package/ts/types/Interface/api/regulation/Create.ts +3 -2
  72. package/ts/types/Interface/models/ICompanyMarketingInformation.ts +13 -0
  73. package/ts/types/index.ts +4 -0
@@ -0,0 +1,40 @@
1
+ import {
2
+ CreateCompanyMarketingInformation,
3
+ ICompanyCreationForm,
4
+ ICompanyMarketingInformation,
5
+ UpdateCompanyMarketingInformation,
6
+ } from '../../types';
7
+ import { Resource } from '../Resource';
8
+
9
+ export class CompanyMarketingInformation extends Resource {
10
+ /**
11
+ * Create an element in companyMarketingInformation table
12
+ * @param { number } idSociety
13
+ * @param { CreateCompanyMarketingInformation } body
14
+ * @returns { Promise<ICompanyMarketingInformation> }
15
+ */
16
+ create(idSociety: number, body: CreateCompanyMarketingInformation): Promise<ICompanyMarketingInformation> {
17
+ return this.axios.$post(`/societies/${idSociety}/marketing-informations`, body);
18
+ }
19
+
20
+ /**
21
+ * Update an element in companyMarketingInformation table
22
+ * @param { number } idSociety
23
+ * @param { UpdateCompanyMarketingInformation } body
24
+ * @returns { Promise<ICompanyCreationForm> }
25
+ */
26
+ update(idSociety: number, body: UpdateCompanyMarketingInformation): Promise<ICompanyCreationForm> {
27
+ return this.axios.$put(`/societies/${idSociety}/marketing-informations`, body);
28
+ }
29
+
30
+ /**
31
+ * Get an element by idSociety in companyMarketingInformation table
32
+ * @param { number } idSociety
33
+ * @returns { Promise<ICompanyMarketingInformation> }
34
+ */
35
+ get(idSociety: number, signal?: AbortSignal): Promise<ICompanyMarketingInformation> {
36
+ return this.axios.$get(`/societies/${idSociety}/marketing-informations`, {
37
+ ...(signal ? { signal } : {}),
38
+ });
39
+ }
40
+ }
@@ -178,6 +178,7 @@ import { CommercialConditionOfSale } from './resources/CommercialConditionOfSale
178
178
  import { StatisticMarketing } from './resources/statistic/Marketing';
179
179
  import { Follow } from './resources/Follow';
180
180
  import { AbsenceRequest } from './resources/AbsenceRequest';
181
+ import { CompanyMarketingInformation } from './resources/CompanyMarketingInformation';
181
182
 
182
183
  export const resources = {
183
184
  simulation: Simulation,
@@ -360,4 +361,5 @@ export const resources = {
360
361
  statisticMarketing: StatisticMarketing,
361
362
  follow: Follow,
362
363
  absenceRequest: AbsenceRequest,
364
+ companyMarketingInformation: CompanyMarketingInformation,
363
365
  };
@@ -0,0 +1,32 @@
1
+ export interface CompanyMarketingInformationPayload {
2
+ /* Comment nous a-t-il connu ? */
3
+ findUs?: number | null; // 0 = Autre | 1 = Pub internet | 2 = Bouche à oreille | 3 = Presse | 4 = a cherché "expert comptable" ou un terme similaire sur un moteur de recherche et a trouvé notre site | 5 = Réseaux sociaux
4
+ findUsDetails?: string | null;
5
+ /* Que recherche votre prospect ? */
6
+ lookingFor?: number[] | null; // 0 = Autre | 1 = Création de société | 2 = Suivi comptable | 3 = Gestion Juridique | 4 = Social | 5 = Logiciel | 6 = Conseil
7
+ lookingForDetails?: string | null;
8
+ /* Solution de paiement en ligne */
9
+ onlinePaymentSolution?: number | null; // 0 = Autre | 1 = Non
10
+ onlinePaymentSolutionDetails?: string | null;
11
+ /* Etablissement de bilan et des déclarations */
12
+ drawingUp?: number | null; // 0 = Autre | 1 = Non
13
+ drawingUpDetails?: string | null;
14
+ /* Des conseils comptables et en gestion */
15
+ accountingManagementAdvice?: number | null; // 0 = Autre | 1 = Non
16
+ accountingManagementAdviceDetails?: string | null;
17
+ /* CRM */
18
+ CRM?: number | null; // 0 = Autre | 1 = Non
19
+ CRMDetails?: string | null;
20
+ /* Le recouvrement */
21
+ collection?: number | null; // 0 = Autre | 1 = Non
22
+ collectionDetails?: string | null;
23
+ /* Etablir ses devis et facture */
24
+ drawingUpEstimate?: number | null; // 0 = Autre | 1 = Non
25
+ drawingUpEstimateDetails?: string | null;
26
+ /* Le pilotage de sa trésorerie et tenue comptable */
27
+ bookKeeping?: number | null; // 0 = Autre | 1 = Non
28
+ bookKeepingDetails?: string | null;
29
+ /* Le prospect éprouve de l'intérêt pour... */
30
+ interestedBy?: number[] | null; // 0 = Autre | 1 = Création d'entreprise | 2 = Le pilotage de sa trésorerie et tenue comptable | 3 = Le module de devis/facturation | 4 = Recouvrement | 5 = CRM | 6 = Accompagnement | 7 = L'établissement du bilan et des déclarations | 8 = Solution de paiement en ligne
31
+ interestedByDetails?: string | null;
32
+ }
@@ -0,0 +1,121 @@
1
+ import { IsArray, IsNumber, IsOptional, IsString, ValidateNested } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { CompanyMarketingInformationPayload } from './CompanyMarketingInformationPayload';
4
+
5
+ export class CreateCompanyMarketingInformationData implements CompanyMarketingInformationPayload {
6
+ /* Comment nous a-t-il connu ? */
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ @IsNumber()
10
+ findUs?: number | null;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsOptional()
14
+ @IsString()
15
+ findUsDetails?: string | null;
16
+
17
+ /* Que recherche votre prospect ? */
18
+ @ApiPropertyOptional()
19
+ @IsOptional()
20
+ @IsArray()
21
+ lookingFor?: number[] | null;
22
+
23
+ @ApiPropertyOptional()
24
+ @IsOptional()
25
+ @IsString()
26
+ lookingForDetails?: string | null;
27
+
28
+ /* Solution de paiement en ligne */
29
+ @ApiPropertyOptional()
30
+ @IsOptional()
31
+ @IsNumber()
32
+ onlinePaymentSolution?: number | null;
33
+
34
+ @ApiPropertyOptional()
35
+ @IsOptional()
36
+ @IsString()
37
+ onlinePaymentSolutionDetails?: string | null;
38
+
39
+ /* Etablissement de bilan et des déclarations */
40
+ @ApiPropertyOptional()
41
+ @IsOptional()
42
+ @IsNumber()
43
+ drawingUp?: number | null;
44
+
45
+ @ApiPropertyOptional()
46
+ @IsOptional()
47
+ @IsString()
48
+ drawingUpDetails?: string | null;
49
+
50
+ /* Des conseils comptables et en gestion */
51
+ @ApiPropertyOptional()
52
+ @IsOptional()
53
+ @IsNumber()
54
+ accountingManagementAdvice?: number | null;
55
+
56
+ @ApiPropertyOptional()
57
+ @IsOptional()
58
+ @IsString()
59
+ accountingManagementAdviceDetails?: string | null;
60
+
61
+ /* CRM */
62
+ @ApiPropertyOptional()
63
+ @IsOptional()
64
+ @IsNumber()
65
+ CRM?: number | null;
66
+
67
+ @ApiPropertyOptional()
68
+ @IsOptional()
69
+ @IsString()
70
+ CRMDetails?: string | null;
71
+
72
+ /* Le recouvrement */
73
+ @ApiPropertyOptional()
74
+ @IsOptional()
75
+ @IsNumber()
76
+ collection?: number | null;
77
+
78
+ @ApiPropertyOptional()
79
+ @IsOptional()
80
+ @IsString()
81
+ collectionDetails?: string | null;
82
+
83
+ /* Etablir ses devis et facture */
84
+ @ApiPropertyOptional()
85
+ @IsOptional()
86
+ @IsNumber()
87
+ drawingUpEstimate?: number | null;
88
+
89
+ @ApiPropertyOptional()
90
+ @IsOptional()
91
+ @IsString()
92
+ drawingUpEstimateDetails?: string | null;
93
+
94
+ /* Le pilotage de sa trésorerie et tenue comptable */
95
+ @ApiPropertyOptional()
96
+ @IsOptional()
97
+ @IsNumber()
98
+ bookKeeping?: number | null;
99
+
100
+ @ApiPropertyOptional()
101
+ @IsOptional()
102
+ @IsString()
103
+ bookKeepingDetails?: string | null;
104
+
105
+ /* Le prospect éprouve de l'intérêt pour... */
106
+ @ApiPropertyOptional()
107
+ @IsOptional()
108
+ @IsArray()
109
+ interestedBy?: number[] | null;
110
+
111
+ @ApiPropertyOptional()
112
+ @IsOptional()
113
+ @IsString()
114
+ interestedByDetails?: string | null;
115
+ }
116
+
117
+ export class CreateCompanyMarketingInformation {
118
+ @ApiProperty()
119
+ @ValidateNested()
120
+ payload: CreateCompanyMarketingInformationData;
121
+ }
@@ -0,0 +1,10 @@
1
+ import { ICompanyMarketingInformation } from '../../models/ICompanyMarketingInformation';
2
+ import { CreateCompanyMarketingInformationData } from './CreateCompanyMarketingInformation';
3
+ import { ApiPropertyOptional } from '../../../../utils';
4
+ import { IsOptional } from 'class-validator';
5
+
6
+ export class UpdateCompanyMarketingInformation implements Partial<ICompanyMarketingInformation> {
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ payload: CreateCompanyMarketingInformationData;
10
+ }
@@ -32,9 +32,10 @@ export class CreateRegulation {
32
32
  @ToBoolean()
33
33
  sendMail?: boolean;
34
34
 
35
- @ApiProperty()
35
+ @ApiPropertyOptional()
36
+ @IsOptional()
36
37
  @IsString()
37
- comment: string;
38
+ comment?: string;
38
39
 
39
40
  @ApiPropertyOptional()
40
41
  @IsOptional()
@@ -0,0 +1,13 @@
1
+ import { CompanyMarketingInformationPayload } from '../api/companyMarketingInformation/CompanyMarketingInformationPayload';
2
+ import { ISociety } from './ISociety';
3
+
4
+ export interface ICompanyMarketingInformation {
5
+ id?: number;
6
+ idSociety: number;
7
+ payload: CompanyMarketingInformationPayload;
8
+ createdAt?: Date;
9
+ updatedAt?: Date;
10
+
11
+ /* Associations */
12
+ society?: ISociety;
13
+ }
package/ts/types/index.ts CHANGED
@@ -333,6 +333,7 @@ export * from './Interface/models/ICollaboraterDetail';
333
333
  export * from './Interface/models/IExpertAnnuary';
334
334
  export * from './Interface/models/IUserTimeSlot';
335
335
  export * from './Interface/models/ICompanyCreationForm';
336
+ export * from './Interface/models/ICompanyMarketingInformation';
336
337
  export * from './Interface/models/IAnnotation';
337
338
  export * from './Interface/models/ILoanEarlyRepayment';
338
339
  export * from './Interface/models/IPrevisionalForm';
@@ -1147,6 +1148,9 @@ export * from './Interface/api/userSocietyPermission/QueryDeleteSocietyPermissio
1147
1148
  export * from './Interface/api/companyCreationForm/CreateCompanyCreationForm';
1148
1149
  export * from './Interface/api/companyCreationForm/UpdateCompanyCreationForm';
1149
1150
  export * from './Interface/api/companyCreationForm/CompanyCreationFormPayload';
1151
+ export * from './Interface/api/companyMarketingInformation/CompanyMarketingInformationPayload';
1152
+ export * from './Interface/api/companyMarketingInformation/CreateCompanyMarketingInformation';
1153
+ export * from './Interface/api/companyMarketingInformation/UpdateCompanyMarketingInformation';
1150
1154
  export * from './Interface/api/sellsy/CreateInvoicesSellsy';
1151
1155
  export * from './Interface/api/PaymentRecovery/Create';
1152
1156
  export * from './Interface/api/yousign/index';