@silexpert/core 0.4.1 → 0.4.3

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 (180) hide show
  1. package/es/api/resources/Account.d.ts +2 -1
  2. package/es/api/resources/Account.d.ts.map +1 -1
  3. package/es/api/resources/Account.js +3 -0
  4. package/es/api/resources/Account.js.map +1 -1
  5. package/es/api/resources/Immobilization.d.ts +4 -1
  6. package/es/api/resources/Immobilization.d.ts.map +1 -1
  7. package/es/api/resources/Immobilization.js +3 -0
  8. package/es/api/resources/Immobilization.js.map +1 -1
  9. package/es/api/resources/Survey.d.ts +8 -0
  10. package/es/api/resources/Survey.d.ts.map +1 -0
  11. package/es/api/resources/Survey.js +28 -0
  12. package/es/api/resources/Survey.js.map +1 -0
  13. package/es/api/resources/User.d.ts +7 -0
  14. package/es/api/resources/User.d.ts.map +1 -0
  15. package/es/api/resources/User.js +10 -0
  16. package/es/api/resources/User.js.map +1 -0
  17. package/es/api/resources.d.ts +4 -0
  18. package/es/api/resources.d.ts.map +1 -1
  19. package/es/api/resources.js +4 -0
  20. package/es/api/resources.js.map +1 -1
  21. package/es/types/Enum/AccountingJournal.d.ts.map +1 -1
  22. package/es/types/Enum/AccountingJournal.js.map +1 -1
  23. package/es/types/Enum/ComptaType.d.ts.map +1 -1
  24. package/es/types/Enum/ComptaType.js.map +1 -1
  25. package/es/types/Enum/Country.d.ts.map +1 -1
  26. package/es/types/Enum/Country.js.map +1 -1
  27. package/es/types/Enum/Ged.d.ts.map +1 -1
  28. package/es/types/Enum/Ged.js.map +1 -1
  29. package/es/types/Enum/Role.d.ts.map +1 -1
  30. package/es/types/Enum/Role.js.map +1 -1
  31. package/es/types/Enum/Sector.d.ts.map +1 -1
  32. package/es/types/Enum/Sector.js.map +1 -1
  33. package/es/types/Enum/SubscriptionType.d.ts.map +1 -1
  34. package/es/types/Enum/SubscriptionType.js.map +1 -1
  35. package/es/types/Enum/SurveyType.d.ts +4 -0
  36. package/es/types/Enum/SurveyType.d.ts.map +1 -0
  37. package/es/types/Enum/SurveyType.js +5 -0
  38. package/es/types/Enum/SurveyType.js.map +1 -0
  39. package/es/types/Enum/SurveyTypeDatas.d.ts +9 -0
  40. package/es/types/Enum/SurveyTypeDatas.d.ts.map +1 -0
  41. package/es/types/Enum/SurveyTypeDatas.js +44 -0
  42. package/es/types/Enum/SurveyTypeDatas.js.map +1 -0
  43. package/es/types/Enum/TypeConnector.d.ts.map +1 -1
  44. package/es/types/Enum/TypeConnector.js.map +1 -1
  45. package/es/types/Enum/TypePartnerTransaction.d.ts +7 -0
  46. package/es/types/Enum/TypePartnerTransaction.d.ts.map +1 -0
  47. package/es/types/Enum/TypePartnerTransaction.js +8 -0
  48. package/es/types/Enum/TypePartnerTransaction.js.map +1 -0
  49. package/es/types/Enum/VatRegime.d.ts.map +1 -1
  50. package/es/types/Enum/VatRegime.js.map +1 -1
  51. package/es/types/Interface/api/immobilization/ReadFormattedImmobilization.d.ts +4 -0
  52. package/es/types/Interface/api/immobilization/ReadFormattedImmobilization.d.ts.map +1 -1
  53. package/es/types/Interface/api/immobilization/ReadFormattedImmobilization.js.map +1 -1
  54. package/es/types/Interface/api/survey/CreateSurvey.d.ts +11 -0
  55. package/es/types/Interface/api/survey/CreateSurvey.d.ts.map +1 -0
  56. package/es/types/Interface/api/survey/CreateSurvey.js +3 -0
  57. package/es/types/Interface/api/survey/CreateSurvey.js.map +1 -0
  58. package/es/types/Interface/api/survey/QuerySurvey.d.ts +6 -0
  59. package/es/types/Interface/api/survey/QuerySurvey.d.ts.map +1 -0
  60. package/es/types/Interface/api/survey/QuerySurvey.js +21 -0
  61. package/es/types/Interface/api/survey/QuerySurvey.js.map +1 -0
  62. package/es/types/Interface/api/survey/QuerySurveys.d.ts +6 -0
  63. package/es/types/Interface/api/survey/QuerySurveys.d.ts.map +1 -0
  64. package/es/types/Interface/api/survey/QuerySurveys.js +22 -0
  65. package/es/types/Interface/api/survey/QuerySurveys.js.map +1 -0
  66. package/es/types/Interface/api/survey/ReadSurvey.d.ts +3 -0
  67. package/es/types/Interface/api/survey/ReadSurvey.d.ts.map +1 -0
  68. package/es/types/Interface/api/survey/ReadSurvey.js +2 -0
  69. package/es/types/Interface/api/survey/ReadSurvey.js.map +1 -0
  70. package/es/types/Interface/api/survey/UpdateSurvey.d.ts +8 -0
  71. package/es/types/Interface/api/survey/UpdateSurvey.d.ts.map +1 -0
  72. package/es/types/Interface/api/survey/UpdateSurvey.js +25 -0
  73. package/es/types/Interface/api/survey/UpdateSurvey.js.map +1 -0
  74. package/es/types/Interface/api/user/QueryConfirm.d.ts +5 -0
  75. package/es/types/Interface/api/user/QueryConfirm.d.ts.map +1 -0
  76. package/es/types/Interface/api/user/QueryConfirm.js +21 -0
  77. package/es/types/Interface/api/user/QueryConfirm.js.map +1 -0
  78. package/es/types/Interface/api/user/QueryResendConfirmationLink.d.ts +4 -0
  79. package/es/types/Interface/api/user/QueryResendConfirmationLink.d.ts.map +1 -0
  80. package/es/types/Interface/api/user/QueryResendConfirmationLink.js +17 -0
  81. package/es/types/Interface/api/user/QueryResendConfirmationLink.js.map +1 -0
  82. package/es/types/Interface/models/IAccountingTransaction.d.ts +1 -1
  83. package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  84. package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
  85. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  86. package/es/types/Interface/models/IApiError.js.map +1 -1
  87. package/es/types/Interface/models/IPartnerTransaction.d.ts +2 -1
  88. package/es/types/Interface/models/IPartnerTransaction.d.ts.map +1 -1
  89. package/es/types/Interface/models/IPartnerTransaction.js.map +1 -1
  90. package/es/types/Interface/models/ISociety.d.ts +51 -49
  91. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  92. package/es/types/Interface/models/ISociety.js.map +1 -1
  93. package/es/types/Interface/models/ISurvey.d.ts +17 -0
  94. package/es/types/Interface/models/ISurvey.d.ts.map +1 -0
  95. package/es/types/Interface/models/ISurvey.js +2 -0
  96. package/es/types/Interface/models/ISurvey.js.map +1 -0
  97. package/es/types/Interface/models/IUser.d.ts +2 -0
  98. package/es/types/Interface/models/IUser.d.ts.map +1 -1
  99. package/es/types/Interface/models/IUser.js.map +1 -1
  100. package/es/types/index.d.ts +9 -0
  101. package/es/types/index.d.ts.map +1 -1
  102. package/es/types/index.js +10 -0
  103. package/es/types/index.js.map +1 -1
  104. package/js/api/resources/Account.js +4 -0
  105. package/js/api/resources/Account.js.map +1 -1
  106. package/js/api/resources/Immobilization.js +4 -0
  107. package/js/api/resources/Immobilization.js.map +1 -1
  108. package/js/api/resources/Survey.js +47 -0
  109. package/js/api/resources/Survey.js.map +1 -0
  110. package/js/api/resources/User.js +22 -0
  111. package/js/api/resources/User.js.map +1 -0
  112. package/js/api/resources.js +7 -1
  113. package/js/api/resources.js.map +1 -1
  114. package/js/types/Enum/AccountingJournal.js.map +1 -1
  115. package/js/types/Enum/ComptaType.js.map +1 -1
  116. package/js/types/Enum/Country.js.map +1 -1
  117. package/js/types/Enum/Ged.js.map +1 -1
  118. package/js/types/Enum/Role.js.map +1 -1
  119. package/js/types/Enum/Sector.js.map +1 -1
  120. package/js/types/Enum/SubscriptionType.js.map +1 -1
  121. package/js/types/Enum/SurveyType.js +11 -0
  122. package/js/types/Enum/SurveyType.js.map +1 -0
  123. package/js/types/Enum/SurveyTypeDatas.js +24 -0
  124. package/js/types/Enum/SurveyTypeDatas.js.map +1 -0
  125. package/js/types/Enum/TypeConnector.js.map +1 -1
  126. package/js/types/Enum/TypePartnerTransaction.js +14 -0
  127. package/js/types/Enum/TypePartnerTransaction.js.map +1 -0
  128. package/js/types/Enum/VatRegime.js.map +1 -1
  129. package/js/types/Interface/api/survey/CreateSurvey.js +10 -0
  130. package/js/types/Interface/api/survey/CreateSurvey.js.map +1 -0
  131. package/js/types/Interface/api/survey/QuerySurvey.js +29 -0
  132. package/js/types/Interface/api/survey/QuerySurvey.js.map +1 -0
  133. package/js/types/Interface/api/survey/QuerySurveys.js +31 -0
  134. package/js/types/Interface/api/survey/QuerySurveys.js.map +1 -0
  135. package/js/types/Interface/api/survey/ReadSurvey.js +6 -0
  136. package/js/types/Interface/api/survey/ReadSurvey.js.map +1 -0
  137. package/js/types/Interface/api/survey/UpdateSurvey.js +31 -0
  138. package/js/types/Interface/api/survey/UpdateSurvey.js.map +1 -0
  139. package/js/types/Interface/api/user/QueryConfirm.js +29 -0
  140. package/js/types/Interface/api/user/QueryConfirm.js.map +1 -0
  141. package/js/types/Interface/api/user/QueryResendConfirmationLink.js +27 -0
  142. package/js/types/Interface/api/user/QueryResendConfirmationLink.js.map +1 -0
  143. package/js/types/Interface/models/IApiError.js.map +1 -1
  144. package/js/types/Interface/models/ISurvey.js +6 -0
  145. package/js/types/Interface/models/ISurvey.js.map +1 -0
  146. package/js/types/index.js +108 -0
  147. package/js/types/index.js.map +1 -1
  148. package/package.json +11 -11
  149. package/ts/api/resources/Account.ts +5 -1
  150. package/ts/api/resources/Immobilization.ts +7 -3
  151. package/ts/api/resources/Survey.ts +23 -0
  152. package/ts/api/resources/User.ts +11 -0
  153. package/ts/api/resources.ts +4 -0
  154. package/ts/types/Enum/AccountingJournal.ts +8 -8
  155. package/ts/types/Enum/ComptaType.ts +6 -6
  156. package/ts/types/Enum/Country.ts +10 -10
  157. package/ts/types/Enum/Ged.ts +7 -7
  158. package/ts/types/Enum/Role.ts +1 -1
  159. package/ts/types/Enum/Sector.ts +4 -4
  160. package/ts/types/Enum/SubscriptionType.ts +3 -3
  161. package/ts/types/Enum/SurveyType.ts +3 -0
  162. package/ts/types/Enum/SurveyTypeDatas.ts +43 -0
  163. package/ts/types/Enum/TypeConnector.ts +11 -11
  164. package/ts/types/Enum/TypePartnerTransaction.ts +6 -0
  165. package/ts/types/Enum/VatRegime.ts +4 -4
  166. package/ts/types/Interface/api/immobilization/ReadFormattedImmobilization.ts +4 -0
  167. package/ts/types/Interface/api/survey/CreateSurvey.ts +8 -0
  168. package/ts/types/Interface/api/survey/QuerySurvey.ts +10 -0
  169. package/ts/types/Interface/api/survey/QuerySurveys.ts +10 -0
  170. package/ts/types/Interface/api/survey/ReadSurvey.ts +3 -0
  171. package/ts/types/Interface/api/survey/UpdateSurvey.ts +15 -0
  172. package/ts/types/Interface/api/user/QueryConfirm.ts +9 -0
  173. package/ts/types/Interface/api/user/QueryResendConfirmationLink.ts +6 -0
  174. package/ts/types/Interface/models/IAccountingTransaction.ts +1 -1
  175. package/ts/types/Interface/models/IApiError.ts +8 -8
  176. package/ts/types/Interface/models/IPartnerTransaction.ts +2 -1
  177. package/ts/types/Interface/models/ISociety.ts +51 -49
  178. package/ts/types/Interface/models/ISurvey.ts +19 -0
  179. package/ts/types/Interface/models/IUser.ts +2 -0
  180. package/ts/types/index.ts +10 -0
@@ -1,12 +1,12 @@
1
1
  export enum GedCategory {
2
2
  COMPANY = 1,
3
- ACCOUNTING_AND_TAX= 2,
4
- SOCIAL= 3,
5
- JURIDIC= 4,
6
- GENERALITY= 5,
7
- BILLING= 6,
8
- MAIL= 7,
9
- BANK_STATEMENT= 8,
3
+ ACCOUNTING_AND_TAX = 2,
4
+ SOCIAL = 3,
5
+ JURIDIC = 4,
6
+ GENERALITY = 5,
7
+ BILLING = 6,
8
+ MAIL = 7,
9
+ BANK_STATEMENT = 8,
10
10
  }
11
11
 
12
12
  export enum GedFolder {
@@ -20,5 +20,5 @@ export enum Role {
20
20
  DEVELOPER = 25,
21
21
  API = 26,
22
22
  BACK_OFFICE = 27,
23
- BACK_OFFICE_EXPRESS=28,
23
+ BACK_OFFICE_EXPRESS = 28,
24
24
  }
@@ -1,6 +1,6 @@
1
1
  export enum Sector {
2
- DEFAULT=1,
3
- AUTO_ENTREPRENEUR_SERVICE=2,
4
- AUTO_ENTREPRENEUR_MERCHANDISE=3,
5
- AUTO_ENTREPRENEUR_SERVICE_MERCHANDISE=4,
2
+ DEFAULT = 1,
3
+ AUTO_ENTREPRENEUR_SERVICE = 2,
4
+ AUTO_ENTREPRENEUR_MERCHANDISE = 3,
5
+ AUTO_ENTREPRENEUR_SERVICE_MERCHANDISE = 4,
6
6
  }
@@ -1,5 +1,5 @@
1
1
  export enum SubscriptionType {
2
- FREEMIUM=1,
3
- FREEMIUM_PRO=2,
4
- PREMIUM=3,
2
+ FREEMIUM = 1,
3
+ FREEMIUM_PRO = 2,
4
+ PREMIUM = 3,
5
5
  }
@@ -0,0 +1,3 @@
1
+ export enum SurveyType {
2
+ ONBOARDING = 1,
3
+ }
@@ -0,0 +1,43 @@
1
+ export const SurveyTypeDatas = {
2
+ 1: [
3
+ {
4
+ id: 1,
5
+ question: 'interestingFeatures',
6
+ type: 'checkbox',
7
+ answers: [
8
+ 'syncBanc',
9
+ 'expensesAndRevenuesCategorization',
10
+ 'cashFlowSimulation',
11
+ 'expenseReportsAndKilometricAllowances',
12
+ 'trackingToolAndDashboards',
13
+ 'billingTool',
14
+ 'vatDeclarationAutomated',
15
+ 'balanceSheetAndTaxReturnGenerationAutomated',
16
+ ],
17
+ },
18
+ {
19
+ id: 2,
20
+ question: 'societySize',
21
+ type: 'select',
22
+ answers: [
23
+ '1to5',
24
+ '6to10',
25
+ '11to25',
26
+ '26to50',
27
+ '51andMore',
28
+ ],
29
+ },
30
+ {
31
+ id: 3,
32
+ question: 'userRoleInSociety',
33
+ type: 'select',
34
+ answers: [
35
+ 'director',
36
+ 'accountant',
37
+ 'accountantExpert',
38
+ 'managementAssistant',
39
+ 'other',
40
+ ],
41
+ },
42
+ ],
43
+ };
@@ -1,13 +1,13 @@
1
1
  export enum TypeConnector {
2
- SEELSY=1,
3
- PRESTASHOP=2,
4
- ZOHO=3,
5
- DOLIBARR=4,
6
- STRIPE_CONNECT=5,
7
- STRIPE=6,
8
- JS=7,
9
- AUTOLOGIN=8,
10
- SHOPIFY=9,
11
- WOOCOMMERCE=10,
12
- ACTIVATION=11,
2
+ SEELSY = 1,
3
+ PRESTASHOP = 2,
4
+ ZOHO = 3,
5
+ DOLIBARR = 4,
6
+ STRIPE_CONNECT = 5,
7
+ STRIPE = 6,
8
+ JS = 7,
9
+ AUTOLOGIN = 8,
10
+ SHOPIFY = 9,
11
+ WOOCOMMERCE = 10,
12
+ ACTIVATION = 11,
13
13
  }
@@ -0,0 +1,6 @@
1
+ export enum TypePartnerTransaction {
2
+ OTHER = 1,
3
+ BUDGET_INSIGHT = 2,
4
+ QONTO = 3,
5
+ SHINE = 4,
6
+ }
@@ -1,6 +1,6 @@
1
1
  export enum VatRegime {
2
- MONTHLY=1,
3
- QUARTERLY=2,
4
- SIMPLIFIED=3,
5
- NOT_ATTRIBUTED=4,
2
+ MONTHLY = 1,
3
+ QUARTERLY = 2,
4
+ SIMPLIFIED = 3,
5
+ NOT_ATTRIBUTED = 4,
6
6
  }
@@ -1,5 +1,9 @@
1
1
  import { IImmobilization } from '../../..';
2
+ import { IAccount } from '../../models/IAccount';
2
3
 
4
+ export interface ReadHydratedImmobilization extends IImmobilization {
5
+ account: Partial<IAccount>
6
+ }
3
7
  export interface FormattedImmobilization extends IImmobilization {
4
8
  inputValue: number
5
9
  startAmortization: number,
@@ -0,0 +1,8 @@
1
+ import { BaseEntity } from '../../../../utils';
2
+ import { SurveyType } from '../../../Enum/SurveyType';
3
+ import { ISurvey } from '../../models/ISurvey';
4
+
5
+ export class CreateSurvey implements Omit<BaseEntity<ISurvey>, 'finishedAt' | 'cancelledAt' | 'idSociety'> {
6
+ data: { name: string, data: (string |number)[] }[];
7
+ idSurveyType: SurveyType;
8
+ }
@@ -0,0 +1,10 @@
1
+ import { WhereOptions, WhereValue } from 'sequelize';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class QuerySurvey {
5
+ @ApiPropertyOptional()()
6
+ where?: WhereOptions | WhereValue;
7
+
8
+ @ApiPropertyOptional()
9
+ attributes?: string[];
10
+ }
@@ -0,0 +1,10 @@
1
+ import { ApiPropertyOptional } from '../../../../utils';
2
+ import { SurveyType } from '../../../Enum/SurveyType';
3
+
4
+ export class QuerySurveys {
5
+ @ApiPropertyOptional()
6
+ idSurveyType?: SurveyType;
7
+
8
+ @ApiPropertyOptional()
9
+ attributes?: string[];
10
+ }
@@ -0,0 +1,3 @@
1
+ import { ISurvey } from '../../models/ISurvey';
2
+
3
+ export type ReadSurvey = ISurvey;
@@ -0,0 +1,15 @@
1
+ import { ISurvey } from '../../models/ISurvey';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class UpdateSurvey {
5
+ id: number;
6
+
7
+ @ApiProperty()
8
+ data: ISurvey['data'];
9
+
10
+ @ApiPropertyOptional()
11
+ finishedAt?: Date | null;
12
+
13
+ @ApiPropertyOptional()
14
+ cancelledAt?: Date | null;
15
+ }
@@ -0,0 +1,9 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class QueryConfirm {
4
+ @ApiProperty()
5
+ tokenConfirmedAt: string;
6
+
7
+ @ApiProperty()
8
+ email: string;
9
+ }
@@ -0,0 +1,6 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class QueryResendConfirmationLink {
4
+ @ApiProperty()
5
+ id: number;
6
+ }
@@ -62,5 +62,5 @@ export interface IAccountingTransaction {
62
62
  file?: IFile;
63
63
  typeComptum?: IComptaType;
64
64
  lettering?: ILettering;
65
- partnersTransaction?: IPartnerTransaction;
65
+ partnersTransaction: IPartnerTransaction | null;
66
66
  }
@@ -29,16 +29,16 @@ export enum Code {
29
29
  transactionIsAlreadyExported = 'transaction_is_already_exported',
30
30
  thirdPartyIsNotFound = 'third_party_is_not_found',
31
31
  accountIsNotFound = 'account_is_not_found',
32
- immobilizationNotSetWithAccountStartTwo= 'immobilization_not_set_with_account_start_two',
33
- immobilizationCanOnlyBeSetForDebit= 'immobilization_can_only_be_set_for_debit',
34
- immobilizationCanNotBeSetWithoutAccount= 'immobilization_can_not_be_set_without_account',
35
- noExerciceFoundForImmobilization='no_exercice_found_for_immobilization',
36
- amountImmobilizationLessThanAmountTransaction='amount_immobilization_less_than_amount_transaction',
37
- amountImmobilizationLessThanAmountAllTaxIncluded='amount_immobilization_less_than_amount_all_tax_included',
38
- amountImmobilizationIsGreaterThanTotalAmountTransactions='amount_immobilization_is_greater_than_total_amount_transactions',
32
+ immobilizationNotSetWithAccountStartTwo = 'immobilization_not_set_with_account_start_two',
33
+ immobilizationCanOnlyBeSetForDebit = 'immobilization_can_only_be_set_for_debit',
34
+ immobilizationCanNotBeSetWithoutAccount = 'immobilization_can_not_be_set_without_account',
35
+ noExerciceFoundForImmobilization = 'no_exercice_found_for_immobilization',
36
+ amountImmobilizationLessThanAmountTransaction = 'amount_immobilization_less_than_amount_transaction',
37
+ amountImmobilizationLessThanAmountAllTaxIncluded = 'amount_immobilization_less_than_amount_all_tax_included',
38
+ amountImmobilizationIsGreaterThanTotalAmountTransactions = 'amount_immobilization_is_greater_than_total_amount_transactions',
39
39
 
40
40
  // PDF error
41
- mergeFailed='merge_failed',
41
+ mergeFailed = 'merge_failed',
42
42
 
43
43
  }
44
44
 
@@ -1,3 +1,4 @@
1
+ import { TypePartnerTransaction } from '../../Enum/TypePartnerTransaction';
1
2
  import { IPartnerTransactionType } from './IPartnerTransactionType';
2
3
 
3
4
  // partnersTransactions
@@ -5,7 +6,7 @@ export interface IPartnerTransaction {
5
6
  id?: number;
6
7
  tokenString: string | null;
7
8
  tokenInteger: number | null;
8
- idTypePartnerTransaction: number;
9
+ idTypePartnerTransaction: TypePartnerTransaction;
9
10
  idAccountingTransaction: number | null;
10
11
  createdAt?: Date | null;
11
12
  updatedAt?: Date | null;
@@ -44,6 +44,7 @@ import { IWebMail } from './IWebMail';
44
44
  import { ISocietyProceeding } from './ISocietyProceeding';
45
45
  import { ISocietyAction } from './ISocietyAction';
46
46
  import { ISocietyStat } from './ISocietyStat';
47
+ import { ISurvey } from './ISurvey';
47
48
  import { ILog } from './ILog';
48
49
  import { ISms } from './ISms';
49
50
  import { IUser } from './IUser';
@@ -132,53 +133,54 @@ export interface ISociety {
132
133
  idSoftware: number | null;
133
134
 
134
135
  // Associations
135
- accounts: IAccount[];
136
- comments: IComment[];
137
- thirdParty: IThirdParty[];
138
- reports: IReport[];
139
- connectors: IConnector[];
140
- bankConnections: IBankConnection[];
141
- societiesFollowedQualityMail: IFollowedQualityMail[];
142
- societyFollow: IFollow[];
143
- paymentsExpectations: IPaymentExpectation[];
144
- legalForm: ILegalForm;
145
- oldExpertInfo: IOldExpertInfo;
146
- prestationsSocieties: IPrestation[];
147
- sector: ISector;
148
- refunds: IRefund[];
149
- bankAccounts: IBankAccount[];
150
- bankPayment: ISocietyBank;
151
- compta: IComptaType;
152
- typeSubscription: ISubscriptionType;
153
- config: ISocietyConfig;
154
- gescom: ISocietyGescom;
155
- societyCgv: ISocietyCgv;
156
- processRegister: ISocietyProcessRegister;
157
- formalism: IFormalism;
158
- notes: ISocietyNote;
159
- taxSystem: ITaxSystem;
160
- tvaRegime: IVatRegime;
161
- fiscalRegime: IFiscalRegime;
162
- source: ISource;
163
- analyticsUtm: IAnalyticsUtm;
164
- activity: IActivity;
165
- softwareCompta: ISoftwareCompta;
166
- accessToken: IAccessToken;
167
- cotations: ICotation[];
168
- societyVehicles: ISocietyVehicle[];
169
- societyCountry: ICountry;
170
- terminationsList: ITerminationList;
171
- societyFiles: ISocietyFile[];
172
- societyDetail: ISocietyDetail;
173
- societySocials: ISocietySocial[];
174
- societyJuridical: ISocietyJuridical;
175
- paymentWaitings: IPaymentWaiting[];
176
- societyExercices: IExercice[];
177
- webmailMails: IWebMail[];
178
- societyProceedings: ISocietyProceeding[];
179
- societyActions: ISocietyAction[];
180
- societyStats: ISocietyStat[];
181
- logs: ILog[];
182
- sms: ISms[];
183
- users: IUser[];
136
+ accounts?: IAccount[];
137
+ comments?: IComment[];
138
+ thirdParty?: IThirdParty[];
139
+ reports?: IReport[];
140
+ connectors?: IConnector[];
141
+ bankConnections?: IBankConnection[];
142
+ societiesFollowedQualityMail?: IFollowedQualityMail[];
143
+ societyFollow?: IFollow[];
144
+ paymentsExpectations?: IPaymentExpectation[];
145
+ legalForm?: ILegalForm;
146
+ oldExpertInfo?: IOldExpertInfo;
147
+ prestationsSocieties?: IPrestation[];
148
+ sector?: ISector;
149
+ refunds?: IRefund[];
150
+ bankAccounts?: IBankAccount[];
151
+ bankPayment?: ISocietyBank;
152
+ compta?: IComptaType;
153
+ typeSubscription?: ISubscriptionType;
154
+ config?: ISocietyConfig;
155
+ gescom?: ISocietyGescom;
156
+ societyCgv?: ISocietyCgv;
157
+ processRegister?: ISocietyProcessRegister;
158
+ formalism?: IFormalism;
159
+ notes?: ISocietyNote;
160
+ taxSystem?: ITaxSystem;
161
+ tvaRegime?: IVatRegime;
162
+ fiscalRegime?: IFiscalRegime;
163
+ source?: ISource;
164
+ analyticsUtm?: IAnalyticsUtm;
165
+ activity?: IActivity;
166
+ softwareCompta?: ISoftwareCompta;
167
+ accessToken?: IAccessToken;
168
+ cotations?: ICotation[];
169
+ societyVehicles?: ISocietyVehicle[];
170
+ societyCountry?: ICountry;
171
+ terminationsList?: ITerminationList;
172
+ societyFiles?: ISocietyFile[];
173
+ societyDetail?: ISocietyDetail;
174
+ societySocials?: ISocietySocial[];
175
+ societyJuridical?: ISocietyJuridical;
176
+ paymentWaitings?: IPaymentWaiting[];
177
+ societyExercices?: IExercice[];
178
+ webmailMails?: IWebMail[];
179
+ societyProceedings?: ISocietyProceeding[];
180
+ societyActions?: ISocietyAction[];
181
+ societyStats?: ISocietyStat[];
182
+ survey?: ISurvey[];
183
+ logs?: ILog[];
184
+ sms?: ISms[];
185
+ users?: IUser[];
184
186
  }
@@ -0,0 +1,19 @@
1
+ import { SurveyType } from '../../Enum/SurveyType';
2
+ import { ISociety } from './ISociety';
3
+
4
+ // survey
5
+ export interface ISurvey {
6
+ id?: number;
7
+ data: { name: string, data: (string |number)[] }[];
8
+ idSurveyType: SurveyType;
9
+ idSociety: number;
10
+
11
+ finishedAt?: Date | null;
12
+ cancelledAt?: Date | null;
13
+
14
+ createdAt?: Date | null;
15
+ updatedAt?: Date | null;
16
+
17
+ // Associations
18
+ society?: ISociety;
19
+ }
@@ -67,6 +67,8 @@ export interface IUser {
67
67
  internationalPhone: string | null;
68
68
  createdAt?: Date | null;
69
69
  updatedAt?: Date | null;
70
+ confirmedAt?: Date | null;
71
+ tokenConfirmedAt?: string | null;
70
72
  idPoleLeader: number | null;
71
73
 
72
74
  // Associations
package/ts/types/index.ts CHANGED
@@ -200,6 +200,7 @@ export * from './Interface/models/IStripeEvent';
200
200
  export * from './Interface/models/ISupervision';
201
201
  export * from './Interface/models/ISupervisionJob';
202
202
  export * from './Interface/models/ISupervisionPendingPoint';
203
+ export * from './Interface/models/ISurvey';
203
204
  export * from './Interface/models/ITag';
204
205
  export * from './Interface/models/ITask';
205
206
  export * from './Interface/models/ITaxSystem';
@@ -288,6 +289,8 @@ export * from './Enum/Vat';
288
289
  export * from './Enum/AccountingJournal';
289
290
  export * from './Enum/ImmobilizationType';
290
291
  export * from './Enum/Nature';
292
+ export * from './Enum/SurveyType';
293
+ export * from './Enum/SurveyTypeDatas';
291
294
 
292
295
  // Interfaces API
293
296
  export * from './Interface/api/businessPartner/ReadBusinessPartner';
@@ -300,5 +303,12 @@ export * from './Interface/api/paymentExpectationCustomer/UpdatePaymentExpectati
300
303
  export * from './Interface/api/paymentExpectationCustomer/CreatePaymentExpectationCustomer';
301
304
  export * from './Interface/api/accountType/ReadAccountType';
302
305
  export * from './Interface/api/account/QueryAccounts';
306
+ export * from './Interface/api/user/QueryConfirm';
307
+ export * from './Interface/api/user/QueryResendConfirmationLink';
303
308
  export * from './Interface/api/account/ReadAccounts';
304
309
  export * from './Interface/api/simulationColors/ReadSimulationColors';
310
+ export * from './Interface/api/survey/QuerySurveys';
311
+ // export * from './Interface/api/survey/QuerySurvey';
312
+ export * from './Interface/api/survey/ReadSurvey';
313
+ export * from './Interface/api/survey/UpdateSurvey';
314
+ export * from './Interface/api/survey/CreateSurvey';