@silexpert/core 1.1.250 → 1.1.252
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.
- package/dist/cjs/api/resources/User.d.ts +2 -2
- package/dist/cjs/api/resources/User.d.ts.map +1 -1
- package/dist/cjs/api/resources/User.js.map +1 -1
- package/dist/cjs/types/Enum/Aspone.d.ts +4 -1
- package/dist/cjs/types/Enum/Aspone.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Aspone.js +3 -0
- package/dist/cjs/types/Enum/Aspone.js.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.js +3 -3
- package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/cjs/types/Interface/api/society/CreateUserToSocietyWithPermission.d.ts +2 -1
- package/dist/cjs/types/Interface/api/society/CreateUserToSocietyWithPermission.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/society/CreateUserToSocietyWithPermission.js +22 -2
- package/dist/cjs/types/Interface/api/society/CreateUserToSocietyWithPermission.js.map +1 -1
- package/dist/cjs/types/Interface/api/society/UpdateSociety.d.ts +1 -0
- package/dist/cjs/types/Interface/api/society/UpdateSociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/society/UpdateSociety.js +4 -0
- package/dist/cjs/types/Interface/api/society/UpdateSociety.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICollaboraterDetail.d.ts +1 -0
- package/dist/cjs/types/Interface/models/ICollaboraterDetail.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICollaboraterDetail.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.d.ts +1 -0
- package/dist/cjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/cjs/types/Interface/models/IVatDeclarationSocietyDetail.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IVatDeclarationSocietyDetail.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IVatDeclarationSocietyDetail.js.map +1 -1
- package/dist/cjs/utils/bankAccount.d.ts.map +1 -1
- package/dist/cjs/utils/bankAccount.js +9 -3
- package/dist/cjs/utils/bankAccount.js.map +1 -1
- package/dist/cjs/utils/cerfa.d.ts +12 -1
- package/dist/cjs/utils/cerfa.d.ts.map +1 -1
- package/dist/cjs/utils/cerfa.js +29 -4
- package/dist/cjs/utils/cerfa.js.map +1 -1
- package/dist/cjs/utils/email/templates/signature.js +2 -2
- package/dist/cjs/utils/email/templates/signature.js.map +1 -1
- package/dist/mjs/api/resources/User.d.ts +2 -2
- package/dist/mjs/api/resources/User.d.ts.map +1 -1
- package/dist/mjs/api/resources/User.js.map +1 -1
- package/dist/mjs/types/Enum/Aspone.d.ts +4 -1
- package/dist/mjs/types/Enum/Aspone.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Aspone.js +3 -0
- package/dist/mjs/types/Enum/Aspone.js.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.js +3 -3
- package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/mjs/types/Interface/api/society/CreateUserToSocietyWithPermission.d.ts +2 -1
- package/dist/mjs/types/Interface/api/society/CreateUserToSocietyWithPermission.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/society/CreateUserToSocietyWithPermission.js +23 -2
- package/dist/mjs/types/Interface/api/society/CreateUserToSocietyWithPermission.js.map +1 -1
- package/dist/mjs/types/Interface/api/society/UpdateSociety.d.ts +1 -0
- package/dist/mjs/types/Interface/api/society/UpdateSociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/society/UpdateSociety.js +5 -0
- package/dist/mjs/types/Interface/api/society/UpdateSociety.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICollaboraterDetail.d.ts +1 -0
- package/dist/mjs/types/Interface/models/ICollaboraterDetail.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICollaboraterDetail.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.d.ts +1 -0
- package/dist/mjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/mjs/types/Interface/models/IVatDeclarationSocietyDetail.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IVatDeclarationSocietyDetail.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IVatDeclarationSocietyDetail.js.map +1 -1
- package/dist/mjs/utils/bankAccount.d.ts.map +1 -1
- package/dist/mjs/utils/bankAccount.js +9 -3
- package/dist/mjs/utils/bankAccount.js.map +1 -1
- package/dist/mjs/utils/cerfa.d.ts +12 -1
- package/dist/mjs/utils/cerfa.d.ts.map +1 -1
- package/dist/mjs/utils/cerfa.js +29 -3
- package/dist/mjs/utils/cerfa.js.map +1 -1
- package/dist/mjs/utils/email/templates/signature.js +2 -2
- package/dist/mjs/utils/email/templates/signature.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/User.ts +2 -1
- package/ts/types/Enum/Aspone.ts +3 -0
- package/ts/types/Enum/BrandClementine.ts +3 -3
- package/ts/types/Interface/api/society/CreateUserToSocietyWithPermission.ts +28 -3
- package/ts/types/Interface/api/society/UpdateSociety.ts +3 -0
- package/ts/types/Interface/models/ICollaboraterDetail.ts +1 -0
- package/ts/types/Interface/models/ISociety.ts +1 -0
- package/ts/types/Interface/models/IVatDeclarationSocietyDetail.ts +1 -0
- package/ts/utils/bankAccount.ts +10 -3
- package/ts/utils/cerfa.ts +32 -5
- package/ts/utils/email/templates/signature.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISociety.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ISociety.ts"],"names":[],"mappings":"","sourcesContent":["import { IAccount } from './IAccount';\nimport { IComment } from './IComment';\nimport { IThirdParty } from './IThirdParty';\nimport { IReport } from './IReport';\nimport { IConnector } from './IConnector';\nimport { IBankConnection } from './IBankConnection';\nimport { IFollow } from './IFollow';\nimport { IPaymentExpectation } from './IPaymentExpectation';\nimport { ILegalForm } from './ILegalForm';\nimport { IOldExpertInfo } from './IOldExpertInfo';\nimport { IPrestation } from './IPrestation';\nimport { IRefund } from './IRefund';\nimport { IBankAccount } from './IBankAccount';\nimport { ISocietyBank } from './ISocietyBank';\nimport { IComptaType } from './IComptaType';\nimport { ISubscriptionType } from './ISubscriptionType';\nimport { ISocietyConfig } from './ISocietyConfig';\nimport { ISocietyGescom } from './ISocietyGescom';\nimport { ISocietyCgv } from './ISocietyCgv';\nimport { IFormalism } from './IFormalism';\nimport { ISocietyNote } from './ISocietyNote';\nimport { ITaxSystem } from './ITaxSystem';\nimport { IVatRegime } from './IVatRegime';\nimport { IFiscalRegime } from './IFiscalRegime';\nimport { ISource } from './ISource';\nimport { IAnalyticsUtm } from './IAnalyticsUtm';\nimport { IActivity } from './IActivity';\nimport { ISoftwareCompta } from './ISoftwareCompta';\nimport { IAccessToken } from './IAccessToken';\nimport { ICotation } from './ICotation';\nimport { ISocietyVehicle } from './ISocietyVehicle';\nimport { ICountry } from './ICountry';\nimport { ITerminationList } from './ITerminationList';\nimport { ISocietyFile } from './ISocietyFile';\nimport { ISocietyDetail } from './ISocietyDetail';\nimport { ISocietySocial } from './ISocietySocial';\nimport { ISocietyJuridical } from './ISocietyJuridical';\nimport { IPaymentWaiting } from './IPaymentWaiting';\nimport { IExercice } from './IExercice';\nimport { IWebMail } from './IWebMail';\nimport { ISocietyProceding } from './ISocietyProceding';\nimport { ISocietyStat } from './ISocietyStat';\nimport { ISurvey } from './ISurvey';\nimport { ILog } from './ILog';\nimport { ISms } from './ISms';\nimport { IUser } from './IUser';\nimport { ISocietyEvent } from './ISocietyEvent';\nimport {\n ComptaType, CountryId, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail, IAccountingTransaction, IFecFile, IGedFile, IBusinessPartner, IPaymentSchedule, IRegulate, IUserSocietyPermission,\n ISocietyConfigBalanceSheet,\n IAccountsSocieties,\n IUnpaidCallHistory,\n IAccountingFile,\n IThirdPartySociety,\n ICalendarEvent,\n} from '../..';\nimport { IBrandType } from './IBrandType';\nimport { IFile } from './IFile';\nimport { IBusinessSector } from './IBusinessSector';\nimport { CityOfGreffe } from '../../Enum/CityOfGreffe';\n// societies\nexport interface ISociety {\n id?: number;\n name?: string | null;\n commercialName?: string | null;\n descriptionActivity?: string | null;\n dateOfRegistration?: Date | null;\n dateInscription?: Date | null;\n dateIsClient?: Date | null;\n partnerSubscriptionECDate?: Date | null;\n dateStatus?: Date | null;\n socialStatut?: number | null;\n juridicalStatut?: number | null;\n mailSocial?: Date | null;\n mailJuridical?: Date | null;\n city?: string | null;\n zipCode?: string | null;\n address?: string | null;\n idCityOfGreffe?: CityOfGreffe | null;\n siret?: string | null;\n diaCode?: string | null;\n socialCapital?: string | null;\n archive?: boolean;\n archiveDate?: Date | null;\n isBlocked?: boolean | null;\n autoAnnotate?: boolean;\n managementSoftware?: boolean | null;\n cashbook?: boolean | null;\n balanceZero?: boolean | null;\n mailRecovery?: boolean | null;\n folderIsFinished?: boolean | null;\n hideInformationsBanner?: boolean | null;\n dateUploadTva?: Date | null;\n vatUploadDay?: number | null;\n lockImposition?: boolean | null;\n lockTva?: boolean | null;\n isWaitingEnd?: boolean | null;\n waitFirstContact?: boolean | null;\n sendFirstContact?: boolean | null;\n toConstitution?: number | null;\n numberFrp?: string | null;\n socialParts?: string | null;\n numberSie?: string | null;\n aga?: string | null;\n statutoryAuditor?: string | null;\n typeSales?: string | null;\n dateRelanceCommercial?: Date | null;\n firstPayslipDate?: Date | null;\n externalId?: string | null;\n totalSharesHeld?: number | null;\n leadQuotation?: number | null;\n idVatRegime?: number | null;\n idTaxSystem?: number | null;\n idActivity?: number | null;\n profitsType?: number | null;\n idSource?: number | null;\n idFiscalRegime?: number | null;\n idRegion?: number | null;\n idLegalForm?: number | null;\n idComptaType?: ComptaType | null;\n idTypeBrand?: number | null;\n idSubscriptionType?: number | null;\n idCountry?: CountryId | null;\n idSector?: Sector | null;\n idSocietyNotes?: number | null;\n folderNote?: string | null;\n oldNafCode?: string | null;\n dateSendAdvise?: Date | null;\n idUserAdvise?: number | null;\n idVatForInternalInvoicing?: number;\n dateFirstSendUnpaid?: Date | null;\n reasonUnpaid?: number | null;\n stripeSubscriptionId?: string | null;\n stateSynchroBankAccount?: number | null;\n noShowPopUpSynchroDate?: Date | null;\n stateFollowCall?: number | null;\n folderCreation?: boolean;\n hideSimulationBetaMessage?: boolean;\n unpaid?: number | null;\n isLate?: boolean | null;\n unpaidDetails?: UnpaidDetail[] | null;\n owner?: IUser | null;\n /**\n * @deprecated\n */\n social?: string | null;\n /**\n * @deprecated\n */\n exercices?: string | null;\n /**\n * @deprecated\n */\n recoveryDate?: string | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n startAt?: Date | null;\n idSoftware?: number | null;\n canceledFirstStepAt?: Date | null;\n completedFirstStepAt?: Date | null;\n lastMobileConnection?: Date | null;\n idNafCode?: number | null;\n canceledFirstStepTourAt?: Date | null;\n step?: string | null;\n hidePartneredAccountantsBubbleLink?: boolean | null;\n cancelCompleteCreationModal?: Date | null;\n isCreatedInApp?: boolean;\n\n // Associations\n accounts?: IAccount[];\n accountsSocieties?: IAccountsSocieties[];\n comments?: IComment[];\n thirdPartiesSociety?: IThirdPartySociety[];\n thirdParty?: IThirdParty[];\n reports?: IReport[];\n connectors?: IConnector[];\n bankConnections?: IBankConnection[];\n societyConfigBalanceSheet?: ISocietyConfigBalanceSheet[];\n societyFollow?: IFollow[];\n paymentsExpectations?: IPaymentExpectation[];\n paymentSchedules?: IPaymentSchedule[];\n legalForm?: ILegalForm;\n oldExpertInfo?: IOldExpertInfo;\n prestationsSocieties?: IPrestation[];\n refunds?: IRefund[];\n bankAccounts?: IBankAccount[];\n bankPayment?: ISocietyBank;\n compta?: IComptaType;\n typeSubscription?: ISubscriptionType;\n config?: ISocietyConfig;\n gescom?: ISocietyGescom;\n societyCgv?: ISocietyCgv;\n formalism?: IFormalism;\n notes?: ISocietyNote;\n taxSystem?: ITaxSystem;\n tvaRegime?: IVatRegime;\n fiscalRegime?: IFiscalRegime;\n source?: ISource;\n nafCode?: INafCode;\n analyticsUtm?: IAnalyticsUtm;\n activity?: IActivity;\n softwareCompta?: ISoftwareCompta;\n accessToken?: IAccessToken;\n cotations?: ICotation[];\n societyVehicles?: ISocietyVehicle[];\n societyCountry?: ICountry;\n terminationsList?: ITerminationList;\n societyFiles?: ISocietyFile[];\n societyDetail?: ISocietyDetail;\n societySocials?: ISocietySocial[];\n societyJuridical?: ISocietyJuridical;\n paymentWaitings?: IPaymentWaiting[];\n societyExercices?: IExercice[];\n webmailMails?: IWebMail[];\n societyProcedings?: ISocietyProceding[];\n societyStats?: ISocietyStat[];\n survey?: ISurvey[];\n logs?: ILog[];\n sms?: ISms[];\n users?: IUser[];\n userPermission?: IUserSocietyPermission;\n usersPermissions?: IUserSocietyPermission[];\n regulates?: IRegulate[];\n brandType?: IBrandType;\n partneredAccountantCompaniesServices?: IPartneredAccountantCompanyService[];\n partneredAccountantRelated?: IPartneredAccountantToSociety;\n events?: ISocietyEvent[];\n mails?: IMail[];\n transactions?: IAccountingTransaction[];\n businessPartners?: IBusinessPartner[];\n fecFile?: IFecFile | null;\n gedFiles?: IGedFile[];\n files?: IFile[];\n unpaidCallHistory?: IUnpaidCallHistory[];\n accountingFiles?: IAccountingFile[];\n businessSectors?: IBusinessSector[];\n calendarEvents?: ICalendarEvent[];\n}"]}
|
|
1
|
+
{"version":3,"file":"ISociety.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ISociety.ts"],"names":[],"mappings":"","sourcesContent":["import { IAccount } from './IAccount';\nimport { IComment } from './IComment';\nimport { IThirdParty } from './IThirdParty';\nimport { IReport } from './IReport';\nimport { IConnector } from './IConnector';\nimport { IBankConnection } from './IBankConnection';\nimport { IFollow } from './IFollow';\nimport { IPaymentExpectation } from './IPaymentExpectation';\nimport { ILegalForm } from './ILegalForm';\nimport { IOldExpertInfo } from './IOldExpertInfo';\nimport { IPrestation } from './IPrestation';\nimport { IRefund } from './IRefund';\nimport { IBankAccount } from './IBankAccount';\nimport { ISocietyBank } from './ISocietyBank';\nimport { IComptaType } from './IComptaType';\nimport { ISubscriptionType } from './ISubscriptionType';\nimport { ISocietyConfig } from './ISocietyConfig';\nimport { ISocietyGescom } from './ISocietyGescom';\nimport { ISocietyCgv } from './ISocietyCgv';\nimport { IFormalism } from './IFormalism';\nimport { ISocietyNote } from './ISocietyNote';\nimport { ITaxSystem } from './ITaxSystem';\nimport { IVatRegime } from './IVatRegime';\nimport { IFiscalRegime } from './IFiscalRegime';\nimport { ISource } from './ISource';\nimport { IAnalyticsUtm } from './IAnalyticsUtm';\nimport { IActivity } from './IActivity';\nimport { ISoftwareCompta } from './ISoftwareCompta';\nimport { IAccessToken } from './IAccessToken';\nimport { ICotation } from './ICotation';\nimport { ISocietyVehicle } from './ISocietyVehicle';\nimport { ICountry } from './ICountry';\nimport { ITerminationList } from './ITerminationList';\nimport { ISocietyFile } from './ISocietyFile';\nimport { ISocietyDetail } from './ISocietyDetail';\nimport { ISocietySocial } from './ISocietySocial';\nimport { ISocietyJuridical } from './ISocietyJuridical';\nimport { IPaymentWaiting } from './IPaymentWaiting';\nimport { IExercice } from './IExercice';\nimport { IWebMail } from './IWebMail';\nimport { ISocietyProceding } from './ISocietyProceding';\nimport { ISocietyStat } from './ISocietyStat';\nimport { ISurvey } from './ISurvey';\nimport { ILog } from './ILog';\nimport { ISms } from './ISms';\nimport { IUser } from './IUser';\nimport { ISocietyEvent } from './ISocietyEvent';\nimport {\n ComptaType, CountryId, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail, IAccountingTransaction, IFecFile, IGedFile, IBusinessPartner, IPaymentSchedule, IRegulate, IUserSocietyPermission,\n ISocietyConfigBalanceSheet,\n IAccountsSocieties,\n IUnpaidCallHistory,\n IAccountingFile,\n IThirdPartySociety,\n ICalendarEvent,\n} from '../..';\nimport { IBrandType } from './IBrandType';\nimport { IFile } from './IFile';\nimport { IBusinessSector } from './IBusinessSector';\nimport { CityOfGreffe } from '../../Enum/CityOfGreffe';\n// societies\nexport interface ISociety {\n id?: number;\n name?: string | null;\n commercialName?: string | null;\n descriptionActivity?: string | null;\n dateOfRegistration?: Date | null;\n dateInscription?: Date | null;\n dateIsClient?: Date | null;\n partnerSubscriptionECDate?: Date | null;\n dateStatus?: Date | null;\n socialStatut?: number | null;\n juridicalStatut?: number | null;\n mailSocial?: Date | null;\n mailJuridical?: Date | null;\n city?: string | null;\n zipCode?: string | null;\n address?: string | null;\n idCityOfGreffe?: CityOfGreffe | null;\n siret?: string | null;\n diaCode?: string | null;\n socialCapital?: string | null;\n archive?: boolean;\n archiveDate?: Date | null;\n isBlocked?: boolean | null;\n autoAnnotate?: boolean;\n managementSoftware?: boolean | null;\n cashbook?: boolean | null;\n balanceZero?: boolean | null;\n mailRecovery?: boolean | null;\n folderIsFinished?: boolean | null;\n hideInformationsBanner?: boolean | null;\n dateUploadTva?: Date | null;\n vatUploadDay?: number | null;\n lockImposition?: boolean | null;\n lockTva?: boolean | null;\n isWaitingEnd?: boolean | null;\n waitFirstContact?: boolean | null;\n sendFirstContact?: boolean | null;\n toConstitution?: number | null;\n numberFrp?: string | null;\n socialParts?: string | null;\n numberSie?: string | null;\n aga?: string | null;\n statutoryAuditor?: string | null;\n typeSales?: string | null;\n dateRelanceCommercial?: Date | null;\n firstPayslipDate?: Date | null;\n externalId?: string | null;\n totalSharesHeld?: number | null;\n leadQuotation?: number | null;\n idVatRegime?: number | null;\n idTaxSystem?: number | null;\n idActivity?: number | null;\n profitsType?: number | null;\n idSource?: number | null;\n idFiscalRegime?: number | null;\n idRegion?: number | null;\n idLegalForm?: number | null;\n idComptaType?: ComptaType | null;\n idTypeBrand?: number | null;\n idSubscriptionType?: number | null;\n idCountry?: CountryId | null;\n idSector?: Sector | null;\n idSocietyNotes?: number | null;\n folderNote?: string | null;\n oldNafCode?: string | null;\n dateSendAdvise?: Date | null;\n idUserAdvise?: number | null;\n idVatForInternalInvoicing?: number;\n dateFirstSendUnpaid?: Date | null;\n reasonUnpaid?: number | null;\n stripeSubscriptionId?: string | null;\n stateSynchroBankAccount?: number | null;\n noShowPopUpSynchroDate?: Date | null;\n stateFollowCall?: number | null;\n folderCreation?: boolean;\n hideSimulationBetaMessage?: boolean;\n unpaid?: number | null;\n isLate?: boolean | null;\n unpaidDetails?: UnpaidDetail[] | null;\n owner?: IUser | null;\n /**\n * @deprecated\n */\n social?: string | null;\n /**\n * @deprecated\n */\n exercices?: string | null;\n /**\n * @deprecated\n */\n recoveryDate?: string | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n startAt?: Date | null;\n idSoftware?: number | null;\n canceledFirstStepAt?: Date | null;\n completedFirstStepAt?: Date | null;\n lastMobileConnection?: Date | null;\n idNafCode?: number | null;\n canceledFirstStepTourAt?: Date | null;\n step?: string | null;\n hidePartneredAccountantsBubbleLink?: boolean | null;\n cancelCompleteCreationModal?: Date | null;\n isCreatedInApp?: boolean;\n passwordIsuite?: string | null;\n\n // Associations\n accounts?: IAccount[];\n accountsSocieties?: IAccountsSocieties[];\n comments?: IComment[];\n thirdPartiesSociety?: IThirdPartySociety[];\n thirdParty?: IThirdParty[];\n reports?: IReport[];\n connectors?: IConnector[];\n bankConnections?: IBankConnection[];\n societyConfigBalanceSheet?: ISocietyConfigBalanceSheet[];\n societyFollow?: IFollow[];\n paymentsExpectations?: IPaymentExpectation[];\n paymentSchedules?: IPaymentSchedule[];\n legalForm?: ILegalForm;\n oldExpertInfo?: IOldExpertInfo;\n prestationsSocieties?: IPrestation[];\n refunds?: IRefund[];\n bankAccounts?: IBankAccount[];\n bankPayment?: ISocietyBank;\n compta?: IComptaType;\n typeSubscription?: ISubscriptionType;\n config?: ISocietyConfig;\n gescom?: ISocietyGescom;\n societyCgv?: ISocietyCgv;\n formalism?: IFormalism;\n notes?: ISocietyNote;\n taxSystem?: ITaxSystem;\n tvaRegime?: IVatRegime;\n fiscalRegime?: IFiscalRegime;\n source?: ISource;\n nafCode?: INafCode;\n analyticsUtm?: IAnalyticsUtm;\n activity?: IActivity;\n softwareCompta?: ISoftwareCompta;\n accessToken?: IAccessToken;\n cotations?: ICotation[];\n societyVehicles?: ISocietyVehicle[];\n societyCountry?: ICountry;\n terminationsList?: ITerminationList;\n societyFiles?: ISocietyFile[];\n societyDetail?: ISocietyDetail;\n societySocials?: ISocietySocial[];\n societyJuridical?: ISocietyJuridical;\n paymentWaitings?: IPaymentWaiting[];\n societyExercices?: IExercice[];\n webmailMails?: IWebMail[];\n societyProcedings?: ISocietyProceding[];\n societyStats?: ISocietyStat[];\n survey?: ISurvey[];\n logs?: ILog[];\n sms?: ISms[];\n users?: IUser[];\n userPermission?: IUserSocietyPermission;\n usersPermissions?: IUserSocietyPermission[];\n regulates?: IRegulate[];\n brandType?: IBrandType;\n partneredAccountantCompaniesServices?: IPartneredAccountantCompanyService[];\n partneredAccountantRelated?: IPartneredAccountantToSociety;\n events?: ISocietyEvent[];\n mails?: IMail[];\n transactions?: IAccountingTransaction[];\n businessPartners?: IBusinessPartner[];\n fecFile?: IFecFile | null;\n gedFiles?: IGedFile[];\n files?: IFile[];\n unpaidCallHistory?: IUnpaidCallHistory[];\n accountingFiles?: IAccountingFile[];\n businessSectors?: IBusinessSector[];\n calendarEvents?: ICalendarEvent[];\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IVatDeclarationSocietyDetail.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IVatDeclarationSocietyDetail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,MAAM,WAAW,4BAA4B;IAC3C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,GAAG,GAAG,IAAI,CAAC;IAC1B,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC;IAChB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,EAAE,QAAQ,CAAC;CACnB"}
|
|
1
|
+
{"version":3,"file":"IVatDeclarationSocietyDetail.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IVatDeclarationSocietyDetail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,MAAM,WAAW,4BAA4B;IAC3C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,GAAG,GAAG,IAAI,CAAC;IAC1B,eAAe,EAAE,GAAG,GAAG,IAAI,CAAC;IAC5B,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC;IAChB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,EAAE,QAAQ,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IVatDeclarationSocietyDetail.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IVatDeclarationSocietyDetail.ts"],"names":[],"mappings":"","sourcesContent":["import { Rof } from '../../Enum/Aspone';\nimport { ISociety } from './ISociety';\n\n// vatDeclarationSocietyDetail\nexport interface IVatDeclarationSocietyDetail {\n id?: number;\n companyTaxRof: Rof | null;\n rof: Rof | null;\n ogaName: string | null;\n ogaId: string | null;\n ogaAddressNumero: string | null;\n ogaAddressType: string | null;\n ogaAddressVoie: string | null;\n ogaAddressZipCode: string | null;\n ogaAddressCity: string | null;\n ogaReference: string | null;\n iban: string | null;\n bic: string | null;\n idSociety: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n society: ISociety;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IVatDeclarationSocietyDetail.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IVatDeclarationSocietyDetail.ts"],"names":[],"mappings":"","sourcesContent":["import { Rof } from '../../Enum/Aspone';\nimport { ISociety } from './ISociety';\n\n// vatDeclarationSocietyDetail\nexport interface IVatDeclarationSocietyDetail {\n id?: number;\n companyTaxRof: Rof | null;\n balanceSheetRof: Rof | null;\n rof: Rof | null;\n ogaName: string | null;\n ogaId: string | null;\n ogaAddressNumero: string | null;\n ogaAddressType: string | null;\n ogaAddressVoie: string | null;\n ogaAddressZipCode: string | null;\n ogaAddressCity: string | null;\n ogaReference: string | null;\n iban: string | null;\n bic: string | null;\n idSociety: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n society: ISociety;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bankAccount.d.ts","sourceRoot":"","sources":["../../../ts/utils/bankAccount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIzD,oBAAY,YAAY;IACtB,YAAY,IAAI;IAChB,cAAc,IAAI;CACnB;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,YAAY,EAAE,iBAAiB,CAAC,EAAE,IAAI,EAAE,cAAc,CAAC,EAAE,eAAe,GAAI,YAAY,
|
|
1
|
+
{"version":3,"file":"bankAccount.d.ts","sourceRoot":"","sources":["../../../ts/utils/bankAccount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIzD,oBAAY,YAAY;IACtB,YAAY,IAAI;IAChB,cAAc,IAAI;CACnB;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,YAAY,EAAE,iBAAiB,CAAC,EAAE,IAAI,EAAE,cAAc,CAAC,EAAE,eAAe,GAAI,YAAY,CA4BzH"}
|
|
@@ -18,10 +18,16 @@ function isSynchro(params, dateOfTermination, bankConnection) {
|
|
|
18
18
|
// // Si JE DECLARE ou AUTRE alors tjs synchro
|
|
19
19
|
if (params.idPartnerType && [PartnerTransactionType_1.PartnerTransactionType.JE_DECLARE, PartnerTransactionType_1.PartnerTransactionType.OTHER].includes(params.idPartnerType))
|
|
20
20
|
return StateSynchro.SYNCHRONIZED;
|
|
21
|
-
|
|
21
|
+
/** Si budget lastUpdate = la date du jour alors synchro
|
|
22
|
+
* Ou si lastupdate = inProgressImport et lastupdate est après lastTryImport
|
|
23
|
+
*
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
22
26
|
if (params.idPartnerType && params.lastUpdate &&
|
|
23
|
-
[PartnerTransactionType_1.PartnerTransactionType.QONTO, PartnerTransactionType_1.PartnerTransactionType.SHINE, PartnerTransactionType_1.PartnerTransactionType.BUDGET_INSIGHT].includes(params.idPartnerType)
|
|
24
|
-
dayjs(params.lastUpdate).format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD')
|
|
27
|
+
[PartnerTransactionType_1.PartnerTransactionType.QONTO, PartnerTransactionType_1.PartnerTransactionType.SHINE, PartnerTransactionType_1.PartnerTransactionType.BUDGET_INSIGHT].includes(params.idPartnerType)
|
|
28
|
+
&& ((dayjs(params.lastUpdate).format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD')) ||
|
|
29
|
+
(dayjs(params.lastUpdate).format('YYYY-MM-DD') === dayjs(params.inProgressImport).format('YYYY-MM-DD') &&
|
|
30
|
+
(!params.lastTryImport || dayjs(params.lastUpdate).format('YYYYMMDD') >= dayjs(params.lastTryImport).format('YYYYMMDD'))))
|
|
25
31
|
&& (!bankConnection || (bankConnection === null || bankConnection === void 0 ? void 0 : bankConnection.errorCode) === null))
|
|
26
32
|
return StateSynchro.SYNCHRONIZED;
|
|
27
33
|
if (dateOfTermination && (dayjs(params.lastUpdate).isAfter(dateOfTermination) || dayjs(params.lastUpdate).isSame(dateOfTermination)))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bankAccount.js","sourceRoot":"","sources":["../../../ts/utils/bankAccount.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,iFAA8E;AAG9E,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,+DAAgB,CAAA;IAChB,mEAAkB,CAAA;AACpB,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAED,SAAgB,SAAS,CAAC,MAAoB,EAAE,iBAAwB,EAAE,cAAg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,cAAc,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC;WAC/H,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,KAAK,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,CAAE;YACrF,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,KAAK,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;gBACtG,CAAC,CAAC,MAAM,CAAC,aAAa,IAAI,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAE,CACzH;WACA,CAAC,CAAC,cAAc,IAAI,CAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,SAAS,MAAK,IAAI,CAAC;QACxD,OAAO,YAAY,CAAC,YAAY,CAAC;IAEnC,IAAI,iBAAiB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAAE,OAAO,YAAY,CAAC,YAAY,CAAC;IAGvK,OAAO,YAAY,CAAC,cAAc,CAAC;AACrC,CAAC;AA5BD,8BA4BC","sourcesContent":["import * as dayjs from 'dayjs';\nimport { IBankAccount, IBankConnection } from '../types';\nimport { PartnerTransactionType } from '../types/Enum/PartnerTransactionType';\n\n\nexport enum StateSynchro {\n SYNCHRONIZED = 1,\n DESYNCHRONIZED = 2,\n}\n\nexport function isSynchro(params: IBankAccount, dateOfTermination?: Date, bankConnection?: IBankConnection ): StateSynchro {\n // si le compte est désactivé au niveau budget on le considére comme syncrho\n if (params.disabledAt !== null) return StateSynchro.SYNCHRONIZED;\n\n // // si non Défini alors tjs synchro\n if (params.idPartnerType === null) return StateSynchro.SYNCHRONIZED;\n\n // // Si JE DECLARE ou AUTRE alors tjs synchro\n if (params.idPartnerType && [PartnerTransactionType.JE_DECLARE, PartnerTransactionType.OTHER].includes(params.idPartnerType)) return StateSynchro.SYNCHRONIZED;\n\n /** Si budget lastUpdate = la date du jour alors synchro\n * Ou si lastupdate = inProgressImport et lastupdate est après lastTryImport\n * \n * \n */\n if (params.idPartnerType && params.lastUpdate &&\n [PartnerTransactionType.QONTO, PartnerTransactionType.SHINE, PartnerTransactionType.BUDGET_INSIGHT].includes(params.idPartnerType) \n && ((dayjs(params.lastUpdate).format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ) ||\n (dayjs(params.lastUpdate).format('YYYY-MM-DD') === dayjs(params.inProgressImport).format('YYYY-MM-DD') &&\n (!params.lastTryImport || dayjs(params.lastUpdate).format('YYYYMMDD') >= dayjs(params.lastTryImport).format('YYYYMMDD')) )\n )\n && (!bankConnection || bankConnection?.errorCode === null)\n ) return StateSynchro.SYNCHRONIZED;\n \n if (dateOfTermination && (dayjs(params.lastUpdate).isAfter(dateOfTermination) || dayjs(params.lastUpdate).isSame(dateOfTermination))) return StateSynchro.SYNCHRONIZED;\n \n \n return StateSynchro.DESYNCHRONIZED;\n}\n"]}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { ReadCerfaToComplete } from '../types/Interface/api/cerfa/ReadCerfa';
|
|
2
2
|
import { GlobalRegimeTypeContent } from '../types/Enum/GlobalRegime';
|
|
3
|
-
import { ProfitsType, FiscalRegime, TaxSystem } from '../types';
|
|
3
|
+
import { ProfitsType, FiscalRegime, TaxSystem, Code, ErrorType } from '../types';
|
|
4
|
+
type ErrorParams = {
|
|
5
|
+
code: Code;
|
|
6
|
+
type: ErrorType;
|
|
7
|
+
message?: string;
|
|
8
|
+
} | string;
|
|
9
|
+
export declare class ServiceException extends Error {
|
|
10
|
+
private readonly code;
|
|
11
|
+
private readonly type;
|
|
12
|
+
constructor(params: ErrorParams);
|
|
13
|
+
}
|
|
4
14
|
export declare function retrieveCerfaFromSocietyInformations(idLegalForm: number, idTaxSystem: TaxSystem, idFiscalRegime: FiscalRegime, profitsType: ProfitsType): ReadCerfaToComplete;
|
|
5
15
|
export declare function retreiveChoicesDependingLegalForm(idLegalForm: number): GlobalRegimeTypeContent;
|
|
16
|
+
export {};
|
|
6
17
|
//# sourceMappingURL=cerfa.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cerfa.d.ts","sourceRoot":"","sources":["../../../ts/utils/cerfa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAgB,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"cerfa.d.ts","sourceRoot":"","sources":["../../../ts/utils/cerfa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAgB,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGjF,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAAC;AAE9E,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAO;IAE5B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAY;gBAErB,MAAM,EAAE,WAAW;CAShC;AAED,wBAAgB,oCAAoC,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,GAAE,mBAAmB,CAqB5K;AAED,wBAAgB,iCAAiC,CAAC,WAAW,EAAE,MAAM,GAAG,uBAAuB,CAM9F"}
|
package/dist/cjs/utils/cerfa.js
CHANGED
|
@@ -1,15 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.retreiveChoicesDependingLegalForm = exports.retrieveCerfaFromSocietyInformations = void 0;
|
|
3
|
+
exports.retreiveChoicesDependingLegalForm = exports.retrieveCerfaFromSocietyInformations = exports.ServiceException = void 0;
|
|
4
4
|
const GlobalRegime_1 = require("../types/Enum/GlobalRegime");
|
|
5
|
+
const types_1 = require("../types");
|
|
6
|
+
const class_validator_1 = require("class-validator");
|
|
7
|
+
class ServiceException extends Error {
|
|
8
|
+
constructor(params) {
|
|
9
|
+
if (typeof params === 'string') {
|
|
10
|
+
super(params);
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
super(params.message);
|
|
14
|
+
this.code = params.code;
|
|
15
|
+
this.type = params.type;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ServiceException = ServiceException;
|
|
5
19
|
function retrieveCerfaFromSocietyInformations(idLegalForm, idTaxSystem, idFiscalRegime, profitsType) {
|
|
6
20
|
const globalRegimes = Object.values(GlobalRegime_1.GlobalRegime);
|
|
7
21
|
const selectedGlobalRegime = globalRegimes.find((gr) => gr.idLegalForms.includes(idLegalForm));
|
|
8
22
|
if (!selectedGlobalRegime)
|
|
9
|
-
throw new
|
|
23
|
+
throw new ServiceException({ code: types_1.Code.validationError, type: types_1.ErrorType.resourceError, message: 'Votre raison sociale ne vous permet pas de générer votre bilan chez nous' });
|
|
24
|
+
if (!(0, class_validator_1.isDefined)(idFiscalRegime) || !(0, class_validator_1.isDefined)(profitsType) || !(0, class_validator_1.isDefined)(idTaxSystem)) {
|
|
25
|
+
const missingData = [];
|
|
26
|
+
if (!(0, class_validator_1.isDefined)(idFiscalRegime))
|
|
27
|
+
missingData.push('Régime de droit commun');
|
|
28
|
+
if (!(0, class_validator_1.isDefined)(profitsType))
|
|
29
|
+
missingData.push('Régime d\'imposition');
|
|
30
|
+
if (!(0, class_validator_1.isDefined)(idTaxSystem))
|
|
31
|
+
missingData.push('Activité (BNC, BIC)');
|
|
32
|
+
const errorMEssage = `Les informations suivantes sont manquantes pour déterminer votre régime ficscal: ${missingData.join(', ')}`;
|
|
33
|
+
throw new ServiceException({ code: types_1.Code.validationError, type: types_1.ErrorType.resourceError, message: errorMEssage });
|
|
34
|
+
}
|
|
10
35
|
const choiceIndex = selectedGlobalRegime.choices.findIndex((sgr) => sgr.idFiscalRegime === idFiscalRegime && sgr.profitsType === profitsType && sgr.idTaxSystem === idTaxSystem);
|
|
11
36
|
if (choiceIndex < 0)
|
|
12
|
-
throw new
|
|
37
|
+
throw new ServiceException({ code: types_1.Code.validationError, type: types_1.ErrorType.resourceError, message: 'Au vu des informations remplis, nous somme dans l\'incapacité de générer votre bilan chez nous' });
|
|
13
38
|
const { declaration, annexe } = selectedGlobalRegime.choices[choiceIndex];
|
|
14
39
|
return { declaration, annex: annexe !== null && annexe !== void 0 ? annexe : null };
|
|
15
40
|
}
|
|
@@ -18,7 +43,7 @@ function retreiveChoicesDependingLegalForm(idLegalForm) {
|
|
|
18
43
|
const globalRegimes = Object.values(GlobalRegime_1.GlobalRegime);
|
|
19
44
|
const selectedGlobalRegime = globalRegimes.find((gr) => gr.idLegalForms.includes(idLegalForm));
|
|
20
45
|
if (!selectedGlobalRegime)
|
|
21
|
-
throw new
|
|
46
|
+
throw new ServiceException({ code: types_1.Code.validationError, type: types_1.ErrorType.resourceError, message: `LegalForm #${idLegalForm} not implemented` });
|
|
22
47
|
return selectedGlobalRegime;
|
|
23
48
|
}
|
|
24
49
|
exports.retreiveChoicesDependingLegalForm = retreiveChoicesDependingLegalForm;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cerfa.js","sourceRoot":"","sources":["../../../ts/utils/cerfa.ts"],"names":[],"mappings":";;;AACA,6DAAmF;
|
|
1
|
+
{"version":3,"file":"cerfa.js","sourceRoot":"","sources":["../../../ts/utils/cerfa.ts"],"names":[],"mappings":";;;AACA,6DAAmF;AACnF,oCAAiF;AACjF,qDAA4C;AAI5C,MAAa,gBAAiB,SAAQ,KAAK;IAKzC,YAAY,MAAmB;QAC7B,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;YAC9B,KAAK,CAAC,MAAM,CAAC,CAAC;YACd,OAAO;SACR;QACD,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACtB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;IAC1B,CAAC;CACF;AAdD,4CAcC;AAED,SAAgB,oCAAoC,CAAC,WAAmB,EAAE,WAAsB,EAAE,cAA4B,EAAE,WAAwB;IACtJ,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,2BAAY,CAAC,CAAC;IAClD,MAAM,oBAAoB,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;IAE/F,IAAI,CAAC,oBAAoB;QAAE,MAAM,IAAI,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAI,CAAC,eAAe,EAAE,IAAI,EAAE,iBAAS,CAAC,aAAa,EAAE,OAAO,EAAE,0EAA0E,EAAE,CAAC,CAAC;IAE1M,IAAI,CAAC,IAAA,2BAAS,EAAC,cAAc,CAAC,IAAI,CAAC,IAAA,2BAAS,EAAC,WAAW,CAAC,IAAI,CAAC,IAAA,2BAAS,EAAC,WAAW,CAAC,EAAE;QACpF,MAAM,WAAW,GAAa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AC,2BAAY,CAAC,CAAC;IAClD,MAAM,oBAAoB,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;IAE/F,IAAI,CAAC,oBAAoB;QAAE,MAAM,IAAI,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAI,CAAC,eAAe,EAAE,IAAI,EAAE,iBAAS,CAAC,aAAa,EAAE,OAAO,EAAE,cAAc,WAAW,kBAAkB,EAAE,CAAC,CAAC;IAC3K,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AAND,8EAMC","sourcesContent":["import { ReadCerfaToComplete } from '../types/Interface/api/cerfa/ReadCerfa';\nimport { GlobalRegime, GlobalRegimeTypeContent } from '../types/Enum/GlobalRegime';\nimport { ProfitsType, FiscalRegime, TaxSystem, Code, ErrorType } from '../types';\nimport { isDefined } from 'class-validator';\n\ntype ErrorParams = { code: Code, type: ErrorType, message?: string } | string;\n\nexport class ServiceException extends Error {\n private readonly code: Code;\n\n private readonly type: ErrorType;\n\n constructor(params: ErrorParams) {\n if (typeof params === 'string') {\n super(params);\n return;\n }\n super(params.message);\n this.code = params.code;\n this.type = params.type;\n }\n}\n\nexport function retrieveCerfaFromSocietyInformations(idLegalForm: number, idTaxSystem: TaxSystem, idFiscalRegime: FiscalRegime, profitsType: ProfitsType):ReadCerfaToComplete {\n const globalRegimes = Object.values(GlobalRegime);\n const selectedGlobalRegime = globalRegimes.find((gr) => gr.idLegalForms.includes(idLegalForm));\n\n if (!selectedGlobalRegime) throw new ServiceException({ code: Code.validationError, type: ErrorType.resourceError, message: 'Votre raison sociale ne vous permet pas de générer votre bilan chez nous' });\n\n if (!isDefined(idFiscalRegime) || !isDefined(profitsType) || !isDefined(idTaxSystem)) {\n const missingData: string[] = [];\n if (!isDefined(idFiscalRegime)) missingData.push('Régime de droit commun');\n if (!isDefined(profitsType)) missingData.push('Régime d\\'imposition');\n if (!isDefined(idTaxSystem)) missingData.push('Activité (BNC, BIC)');\n const errorMEssage = `Les informations suivantes sont manquantes pour déterminer votre régime ficscal: ${missingData.join(', ')}`;\n throw new ServiceException({ code: Code.validationError, type: ErrorType.resourceError, message: errorMEssage });\n }\n\n const choiceIndex = selectedGlobalRegime.choices.findIndex((sgr) => sgr.idFiscalRegime === idFiscalRegime && sgr.profitsType === profitsType && sgr.idTaxSystem === idTaxSystem);\n\n if (choiceIndex < 0) throw new ServiceException({ code: Code.validationError, type: ErrorType.resourceError, message: 'Au vu des informations remplis, nous somme dans l\\'incapacité de générer votre bilan chez nous' });\n const { declaration, annexe } = selectedGlobalRegime.choices[choiceIndex];\n\n return { declaration, annex: annexe ?? null };\n}\n\nexport function retreiveChoicesDependingLegalForm(idLegalForm: number): GlobalRegimeTypeContent {\n const globalRegimes = Object.values(GlobalRegime);\n const selectedGlobalRegime = globalRegimes.find((gr) => gr.idLegalForms.includes(idLegalForm));\n\n if (!selectedGlobalRegime) throw new ServiceException({ code: Code.validationError, type: ErrorType.resourceError, message: `LegalForm #${idLegalForm} not implemented` });\n return selectedGlobalRegime;\n}"]}
|
|
@@ -192,8 +192,8 @@ ${logoClementine}
|
|
|
192
192
|
<% } %>
|
|
193
193
|
Nos horaires : <%= horaires %>
|
|
194
194
|
|
|
195
|
-
<% if(
|
|
196
|
-
Adresse : <%- brandPostalAddress %> - <%- brandCity %>
|
|
195
|
+
<% if(['Pourcentage ECE - AMEX', 'Pourcentage ECF'].includes(brandName)) { %>
|
|
196
|
+
<br/>Adresse : <%- brandPostalAddress %> - <%- brandCity %>
|
|
197
197
|
<% } %>
|
|
198
198
|
</p>
|
|
199
199
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signature.js","sourceRoot":"","sources":["../../../../../ts/utils/email/templates/signature.ts"],"names":[],"mappings":";;;AAAA,MAAM,OAAO,GAAG;;;;;;;;;GASb,CAAC;AAEJ,MAAM,cAAc,GAAG;;;;;;;;;;;;aAYV,CAAC;AAEd,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;UAuBL,CAAC;AAEX,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGd,CAAC;AAEW,QAAA,iBAAiB,GAAG,GAAG,OAAO;;;;;;;EAOzC,cAAc;;;IAGZ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiGN,MAAM;;;;;;;;;SASD,CAAC","sourcesContent":["const newIban = `<% if (commercialName === 'Clementine' && isFacturation) { %>\n <p style=\"font-size: 15px; font-family: Arial; margin:0; padding:0px 0 4px; color:#6E6E71; margin-bottom: 10px; font-weight: bold;\">\n <span style=\"color: #A0A0A0\">Nos coordonnées bancaires </span>IBAN : <%= iban %> - BIC : <%= bic %>\n </p>\n <% }else if (commercialName === 'Pourcentage' && [5, 7].includes(idTypeBrand)) { %> \n <p style=\"font-size: 15px; font-family: Arial; margin:0; padding:0px 0 4px; color:#6E6E71; margin-bottom: 10px; font-weight: bold;\">\n <span style=\"color: #A0A0A0\">Attention changement de RIB </span>IBAN : <%= iban %> - BIC : <%= bic %>\n </p>\n<% } %>\n `;\n\nconst logoClementine = `<% if (commercialName === 'Clementine') { %><tr>\n<td\ncolspan=\"3\"\nclass=\"logo\"\nstyle=\"\"\nwidth=\"950\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/logo_2022.png\"\n alt=\"Logo\"\n height=\"32\"\n style=\"padding-bottom: 10px;\">\n</td>\n</tr><% } %>`;\n\nconst avatar = `<% if (!forceRole && user?.avatar?.token) { %>\n <td\n class=\"avatar\"\n style=\"text-align:center; padding: 20px 0 20px 20px; position: relative;\"\n width=\"100\">\n <% if(commercialName === 'Clementine') { %>\n <p style=\"padding: 20px;background-image: url('https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_quotes.png');background-size: 26%;background-position: 81% -3%;background-repeat: no-repeat;\">\n <img\n style=\"max-height: 90px;max-width: 90px; border-radius: 100%; margin-top: 10px\"\n alt=\"Avatar\"\n src=\"<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\"\n />\n </p>\n <% } else { %>\n <p style=\"padding: 20px;\">\n <img\n style=\"max-height: 90px;max-width: 90px; border-radius: 100%; margin-top: 10px\"\n alt=\"Avatar\"\n src=\"<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\"\n />\n </p>\n <% } %>\n </td>\n <% } %>`;\n\nconst footer = `<% if(commercialName === 'Clementine') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 15px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td colspan=\"7\" style=\"padding-bottom: 12px\">\n <span style=\"text-align: left; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: left;\">\n Une question ? Découvrez votre <a href=\"https://www.clementine.fr/aide/\" style=\"color: #FF7E3C\">centre d'aide</a>\n </span>\n <span style=\"text-align: right; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: right;\">\n Jusqu’à 500€ avec notre <a href=\"https://www.clementine.fr/parrainage/?utm_source=signature&utm_medium=email&utm_campaign=signature&utm_content=cta\" style=\"color: #FF7E3C\">programme de parrainage</a>\n </span>\n </td>\n </tr>\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.clementine.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n <td style=\"padding:0 10px 0 0\" width=\"170\">\n <!-- <a href=\"mailto:<%= supportMail %>\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_support2.png\"\n style=\"vertical-align: text-top;\"\n width=\"17\"\n alt=\"Support technique\"> Support technique\n </a>-->\n </td>\n <td style=\"text-align: right; vertical-align: middle; color: #6E6E71\" width=\"430\">\n <!--<span>Télécharger l'app</span>\n <a href=\"https://apps.apple.com/fr/app/clementine/id1119493780\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a>-->\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.youtube.com/channel/UCVnCpcLdRwuYBLvAphHsvig/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_youtube.png\"\n alt=\"YouTube\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.linkedin.com/company/compta-cl%C3%A9mentine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_linkedin.png\"\n alt=\"LinkedIn\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.instagram.com/comptaclementine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_instagram.png\"\n alt=\"Instagram\"\n style=\"width: 20px\"></a>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <% } else if(commercialName === 'Pourcentage') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 15px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.pourcentage.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n <td style=\"text-align: right; vertical-align: middle; color: #6E6E71\" width=\"430\">\n <!-- <span>Télécharger l'app</span>\n <a href=\"https://apps.apple.com/fr/app/pourcentage-fr/id1631156043\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.pourcentage\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a> -->\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <% } %>\n`;\n\nexport const signatureTemplate = `${newIban}<table\nborder=\"0\"\ncellpadding=\"0\"\ncellspacing=\"0\"\nwidth=\"950\"\nclass=\"signatureClementine\">\n\n${logoClementine}\n\n<tr style=\"background: #F4F8FB\">\n ${avatar}\n <td\n class=\"infos\"\n style=\" padding: 20px 0 20px 30px;font-size: 17px; font-family: Arial; color:#000\"\n width=\"390\"\n colspan=\"2\">\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"390\">\n <tr>\n <td width=\"390\">\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <strong><span style=\"color:<%= primaryColor %>; font-weight: bold;\"><%= user?.firstname ?? '' %> <%= user?.lastname ?? '' %></span></strong>\n </p>\n\n <% if(roleSignature) { %>\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <span style=\"color: #6E6E71; font-weight: bold;\"><%= roleSignature %></span>\n </p>\n <% } %>\n </td>\n </tr>\n </table>\n <p style=\"margin:16px 0; color:#6E6E71; border-top: 2px solid #6E6E71; width: 100px; opacity: 0.2\"><!-- --></p>\n <p style=\"margin:0px 0; padding:0 0 4px; color:#6E6E71;\">\n Standard : <%- standardPhoneSignature %><br/>\n <% if(phoneSignature && phoneSignature !== standardPhoneSignature) { %>\n Ligne directe : <%- phoneSignature %><br/>\n <% } %>\n Nos horaires : <%= horaires %>\n\n <% if(!['Pourcentage ECE - AMEX', 'Pourcentage ECF'].includes(brandName)) { %>\n Adresse : <%- brandPostalAddress %> - <%- brandCity %>\n <% } %>\n </p>\n\n </td>\n \n <td class=\"infos\" style=\"padding: 20px 20px 20px 0px; font-size: 17px; font-family: Arial; color:#000; <%= !user.calendlyUrl ? 'vertical-align: top;' : '' %>\"\n width=\"370\">\n <% if(['Clementine', 'Pourcentage', 'Comptalib'].includes(commercialName)) { %>\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"350\">\n <tr>\n <td width=\"230\">\n <!-- image Télécharger l'app mobile -->\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_download_app<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %><%= commercialName === 'Comptalib' ? '_comptalib' : '' %>.png\"\n alt=\"Télécharger l'application mobile\"\n style=\"width: 152px; float:right\">\n \n <p style=\"float:right; margin-right: 45px\">\n <span style=\"margin:0; padding:0 0 4px; color:#6E6E71;\">Disponible sur<br/></span>\n <a href=\"https://apps.apple.com/fr/app/clementine/id1119493780\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a>\n </p>\n </td>\n <td width=\"120\">\n <!-- QR Code -->\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_qrcode<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %><%= commercialName === 'Comptalib' ? '_comptalib' : '' %>.png\"\n style=\"width:128px\"\n alt=\"Prenez rendez-vous ici !\">\n </td>\n </tr>\n <tr>\n <td colspan=\"2\">\n <p style=\"margin:0; padding:0px 0 4px; color:#6E6E71; text-align: right\">\n <a href=\"https://www.smileyourpla.net/\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_smileYourPlanet.png\"\n alt=\"Initiative Smile your planet\" height=\"36\"></a>\n <% if(user.calendlyUrl && !isDataOfficer) { %>\n <a href=\"<%= user.calendlyUrl %>\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rdv_tel<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %>.png\"\n alt=\"Demande de rdv téléphonique\">\n </a>\n <% } %>\n </p>\n </td>\n </tr>\n </table>\n <% } %>\n </td>\n </tr>\n \n ${footer}\n\n <tr>\n <td\n style=\"clear:both; padding-top: 20px; font-size:14px; line-height:18px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n Les informations contenues dans ce courrier électronique et ses pièces jointes sont confidentielles et couvertes par le secret professionnel. Si vous n'êtes pas le(s) destinataire(s) ou avez reçu ce courrier électronique par erreur, merci de bien vouloir supprimer l'email et d'en informer l'expéditeur dès que possible. Ce courrier électronique ne peut pas être divulgué, utilisé ou copié par quelqu'un d'autre que le(s) destinataire(s).\n </td>\n</tr>\n</table>`;"]}
|
|
1
|
+
{"version":3,"file":"signature.js","sourceRoot":"","sources":["../../../../../ts/utils/email/templates/signature.ts"],"names":[],"mappings":";;;AAAA,MAAM,OAAO,GAAG;;;;;;;;;GASb,CAAC;AAEJ,MAAM,cAAc,GAAG;;;;;;;;;;;;aAYV,CAAC;AAEd,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;UAuBL,CAAC;AAEX,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGd,CAAC;AAEW,QAAA,iBAAiB,GAAG,GAAG,OAAO;;;;;;;EAOzC,cAAc;;;IAGZ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiGN,MAAM;;;;;;;;;SASD,CAAC","sourcesContent":["const newIban = `<% if (commercialName === 'Clementine' && isFacturation) { %>\n <p style=\"font-size: 15px; font-family: Arial; margin:0; padding:0px 0 4px; color:#6E6E71; margin-bottom: 10px; font-weight: bold;\">\n <span style=\"color: #A0A0A0\">Nos coordonnées bancaires </span>IBAN : <%= iban %> - BIC : <%= bic %>\n </p>\n <% }else if (commercialName === 'Pourcentage' && [5, 7].includes(idTypeBrand)) { %> \n <p style=\"font-size: 15px; font-family: Arial; margin:0; padding:0px 0 4px; color:#6E6E71; margin-bottom: 10px; font-weight: bold;\">\n <span style=\"color: #A0A0A0\">Attention changement de RIB </span>IBAN : <%= iban %> - BIC : <%= bic %>\n </p>\n<% } %>\n `;\n\nconst logoClementine = `<% if (commercialName === 'Clementine') { %><tr>\n<td\ncolspan=\"3\"\nclass=\"logo\"\nstyle=\"\"\nwidth=\"950\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/logo_2022.png\"\n alt=\"Logo\"\n height=\"32\"\n style=\"padding-bottom: 10px;\">\n</td>\n</tr><% } %>`;\n\nconst avatar = `<% if (!forceRole && user?.avatar?.token) { %>\n <td\n class=\"avatar\"\n style=\"text-align:center; padding: 20px 0 20px 20px; position: relative;\"\n width=\"100\">\n <% if(commercialName === 'Clementine') { %>\n <p style=\"padding: 20px;background-image: url('https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_quotes.png');background-size: 26%;background-position: 81% -3%;background-repeat: no-repeat;\">\n <img\n style=\"max-height: 90px;max-width: 90px; border-radius: 100%; margin-top: 10px\"\n alt=\"Avatar\"\n src=\"<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\"\n />\n </p>\n <% } else { %>\n <p style=\"padding: 20px;\">\n <img\n style=\"max-height: 90px;max-width: 90px; border-radius: 100%; margin-top: 10px\"\n alt=\"Avatar\"\n src=\"<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\"\n />\n </p>\n <% } %>\n </td>\n <% } %>`;\n\nconst footer = `<% if(commercialName === 'Clementine') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 15px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td colspan=\"7\" style=\"padding-bottom: 12px\">\n <span style=\"text-align: left; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: left;\">\n Une question ? Découvrez votre <a href=\"https://www.clementine.fr/aide/\" style=\"color: #FF7E3C\">centre d'aide</a>\n </span>\n <span style=\"text-align: right; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: right;\">\n Jusqu’à 500€ avec notre <a href=\"https://www.clementine.fr/parrainage/?utm_source=signature&utm_medium=email&utm_campaign=signature&utm_content=cta\" style=\"color: #FF7E3C\">programme de parrainage</a>\n </span>\n </td>\n </tr>\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.clementine.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n <td style=\"padding:0 10px 0 0\" width=\"170\">\n <!-- <a href=\"mailto:<%= supportMail %>\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_support2.png\"\n style=\"vertical-align: text-top;\"\n width=\"17\"\n alt=\"Support technique\"> Support technique\n </a>-->\n </td>\n <td style=\"text-align: right; vertical-align: middle; color: #6E6E71\" width=\"430\">\n <!--<span>Télécharger l'app</span>\n <a href=\"https://apps.apple.com/fr/app/clementine/id1119493780\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a>-->\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.youtube.com/channel/UCVnCpcLdRwuYBLvAphHsvig/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_youtube.png\"\n alt=\"YouTube\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.linkedin.com/company/compta-cl%C3%A9mentine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_linkedin.png\"\n alt=\"LinkedIn\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.instagram.com/comptaclementine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_instagram.png\"\n alt=\"Instagram\"\n style=\"width: 20px\"></a>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <% } else if(commercialName === 'Pourcentage') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 15px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.pourcentage.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n <td style=\"text-align: right; vertical-align: middle; color: #6E6E71\" width=\"430\">\n <!-- <span>Télécharger l'app</span>\n <a href=\"https://apps.apple.com/fr/app/pourcentage-fr/id1631156043\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.pourcentage\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a> -->\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <% } %>\n`;\n\nexport const signatureTemplate = `${newIban}<table\nborder=\"0\"\ncellpadding=\"0\"\ncellspacing=\"0\"\nwidth=\"950\"\nclass=\"signatureClementine\">\n\n${logoClementine}\n\n<tr style=\"background: #F4F8FB\">\n ${avatar}\n <td\n class=\"infos\"\n style=\" padding: 20px 0 20px 30px;font-size: 17px; font-family: Arial; color:#000\"\n width=\"390\"\n colspan=\"2\">\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"390\">\n <tr>\n <td width=\"390\">\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <strong><span style=\"color:<%= primaryColor %>; font-weight: bold;\"><%= user?.firstname ?? '' %> <%= user?.lastname ?? '' %></span></strong>\n </p>\n\n <% if(roleSignature) { %>\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <span style=\"color: #6E6E71; font-weight: bold;\"><%= roleSignature %></span>\n </p>\n <% } %>\n </td>\n </tr>\n </table>\n <p style=\"margin:16px 0; color:#6E6E71; border-top: 2px solid #6E6E71; width: 100px; opacity: 0.2\"><!-- --></p>\n <p style=\"margin:0px 0; padding:0 0 4px; color:#6E6E71;\">\n Standard : <%- standardPhoneSignature %><br/>\n <% if(phoneSignature && phoneSignature !== standardPhoneSignature) { %>\n Ligne directe : <%- phoneSignature %><br/>\n <% } %>\n Nos horaires : <%= horaires %>\n\n <% if(['Pourcentage ECE - AMEX', 'Pourcentage ECF'].includes(brandName)) { %>\n <br/>Adresse : <%- brandPostalAddress %> - <%- brandCity %>\n <% } %>\n </p>\n\n </td>\n \n <td class=\"infos\" style=\"padding: 20px 20px 20px 0px; font-size: 17px; font-family: Arial; color:#000; <%= !user.calendlyUrl ? 'vertical-align: top;' : '' %>\"\n width=\"370\">\n <% if(['Clementine', 'Pourcentage', 'Comptalib'].includes(commercialName)) { %>\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"350\">\n <tr>\n <td width=\"230\">\n <!-- image Télécharger l'app mobile -->\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_download_app<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %><%= commercialName === 'Comptalib' ? '_comptalib' : '' %>.png\"\n alt=\"Télécharger l'application mobile\"\n style=\"width: 152px; float:right\">\n \n <p style=\"float:right; margin-right: 45px\">\n <span style=\"margin:0; padding:0 0 4px; color:#6E6E71;\">Disponible sur<br/></span>\n <a href=\"https://apps.apple.com/fr/app/clementine/id1119493780\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a>\n </p>\n </td>\n <td width=\"120\">\n <!-- QR Code -->\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_qrcode<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %><%= commercialName === 'Comptalib' ? '_comptalib' : '' %>.png\"\n style=\"width:128px\"\n alt=\"Prenez rendez-vous ici !\">\n </td>\n </tr>\n <tr>\n <td colspan=\"2\">\n <p style=\"margin:0; padding:0px 0 4px; color:#6E6E71; text-align: right\">\n <a href=\"https://www.smileyourpla.net/\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_smileYourPlanet.png\"\n alt=\"Initiative Smile your planet\" height=\"36\"></a>\n <% if(user.calendlyUrl && !isDataOfficer) { %>\n <a href=\"<%= user.calendlyUrl %>\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rdv_tel<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %>.png\"\n alt=\"Demande de rdv téléphonique\">\n </a>\n <% } %>\n </p>\n </td>\n </tr>\n </table>\n <% } %>\n </td>\n </tr>\n \n ${footer}\n\n <tr>\n <td\n style=\"clear:both; padding-top: 20px; font-size:14px; line-height:18px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n Les informations contenues dans ce courrier électronique et ses pièces jointes sont confidentielles et couvertes par le secret professionnel. Si vous n'êtes pas le(s) destinataire(s) ou avez reçu ce courrier électronique par erreur, merci de bien vouloir supprimer l'email et d'en informer l'expéditeur dès que possible. Ce courrier électronique ne peut pas être divulgué, utilisé ou copié par quelqu'un d'autre que le(s) destinataire(s).\n </td>\n</tr>\n</table>`;"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, ISociety, Role, QueryGetAllCollaborators, QueryGetAllCollaboratorsByRoles, QueryUserSociety, QueryGetAllWithoutBp } from '../../types';
|
|
2
|
+
import { IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, ISociety, Role, QueryGetAllCollaborators, QueryGetAllCollaboratorsByRoles, QueryUserSociety, QueryGetAllWithoutBp, CollaboratorsByRoles } from '../../types';
|
|
3
3
|
export declare class User extends Resource {
|
|
4
4
|
confirm(params: QueryConfirm): Promise<IUser>;
|
|
5
5
|
resendConfirmationEmailLink(params: QueryResendConfirmationLink): Promise<boolean>;
|
|
@@ -10,7 +10,7 @@ export declare class User extends Resource {
|
|
|
10
10
|
allFromSociety(params: QueryGetAllFromSociety): Promise<IUser[]>;
|
|
11
11
|
allWithoutBp(params: QueryGetAllWithoutBp): Promise<IUser[]>;
|
|
12
12
|
allCollaborators(params: QueryGetAllCollaborators): Promise<IUser[]>;
|
|
13
|
-
allCollaboratorsByRoles(data: QueryGetAllCollaboratorsByRoles): Promise<
|
|
13
|
+
allCollaboratorsByRoles(data: QueryGetAllCollaboratorsByRoles): Promise<CollaboratorsByRoles[]>;
|
|
14
14
|
selectableTeammates(): Promise<IUser[]>;
|
|
15
15
|
calendarSelectableTeammates(): Promise<IUser[]>;
|
|
16
16
|
getAllSocieties(id: number, params: QueryUserSociety): Promise<ISociety[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,KAAK,EAAE,YAAY,EAAE,2BAA2B,EAAE,UAAU,EAAE,cAAc,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,QAAQ,EAAE,IAAI,EAAmB,wBAAwB,EAAE,+BAA+B,EAAE,gBAAgB,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,KAAK,EAAE,YAAY,EAAE,2BAA2B,EAAE,UAAU,EAAE,cAAc,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,QAAQ,EAAE,IAAI,EAAmB,wBAAwB,EAAE,+BAA+B,EAAE,gBAAgB,EAAE,oBAAoB,EAClQ,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB,qBAAa,IAAK,SAAQ,QAAQ;IAChC,OAAO,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC;IAG7C,2BAA2B,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,OAAO,CAAC;IAGlF,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC;I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AC,CAAC;IAC/D,CAAC;IAED,eAAe,CAAC,EAAU,EAAE,MAAwB;QAClD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,MAAwD;QACzE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO;QACL,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;IACD,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED,UAAU,CAAC,MAAyB;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpD,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, ISociety, Role, TimeCounterType, QueryGetAllCollaborators, QueryGetAllCollaboratorsByRoles, QueryUserSociety, QueryGetAllWithoutBp,\n CollaboratorsByRoles,\n} from '../../types';\n\nexport class User extends Resource {\n confirm(params: QueryConfirm): Promise<IUser> {\n return this.axios.$put('user/confirm', params);\n }\n resendConfirmationEmailLink(params: QueryResendConfirmationLink): Promise<boolean> {\n return this.axios.$put(`user/${params.id}/resendConfirmationEmailLink`);\n }\n create(data: CreateUser): Promise<IUser> {\n return this.axios.$post('user/create', data);\n }\n coworker(data: CreateCoworker): Promise<IUser> {\n return this.axios.$post('user/coworker', data);\n }\n sendNewCode(id: number): Promise<IUser> {\n return this.axios.$put(`user/${id}/sendNewSmsCode`);\n }\n verifySmsCodeConfirmation(id: number, params: QueryUserSmsConfirmation): Promise<IUser> {\n return this.axios.$get(`user/${id}/verifySmsCodeConfirmation`, { params });\n }\n allFromSociety(params: QueryGetAllFromSociety): Promise<IUser[]> {\n return this.axios.$get('user/all-from-society', { params });\n }\n allWithoutBp(params: QueryGetAllWithoutBp): Promise<IUser[]> {\n return this.axios.$get('user/all-without-bp', { params });\n }\n allCollaborators(params: QueryGetAllCollaborators): Promise<IUser[]> {\n return this.axios.$get('user/all-collaborators', { params });\n }\n allCollaboratorsByRoles(data: QueryGetAllCollaboratorsByRoles): Promise<CollaboratorsByRoles[]> {\n const { idTimeCounterType, idRoles } = data;\n let params = { idRoles };\n if (idTimeCounterType) {\n const timeCounterType = Object.values(TimeCounterType).find((tct) => tct.id === idTimeCounterType);\n const rolesByDefault = [\n Role.FRONT_OFFICE,\n Role.FRONT_OFFICE_EXPRESS,\n Role.SOCIAL,\n Role.JURIDIC,\n Role.HUMAN_RESSOURCES,\n Role.FACTURATION,\n Role.CUSTOMER_SUCCESS,\n Role.COMMERCIAL,\n Role.MANAGER,\n Role.EXPERT_ACCOUNTANT,\n Role.DEVELOPER,\n ];\n params = { idRoles: timeCounterType?.limitedRoles ?? rolesByDefault };\n }\n return this.axios.$get('user/all-collaborators-by-roles', { params });\n }\n selectableTeammates(): Promise<IUser[]> {\n return this.axios.$get('user/selectable-teammates');\n }\n calendarSelectableTeammates(): Promise<IUser[]> {\n return this.axios.$get('user/calendar-selectable-teammates');\n }\n\n getAllSocieties(id: number, params: QueryUserSociety): Promise<ISociety[]> {\n return this.axios.$get(`/users/${id}/societies`, { params });\n }\n\n update(id: number, params: Partial<IUser> & { lastMobileConnection?: Date }): Promise<IUser> {\n return this.axios.$put(`user/${id}`, params);\n }\n getInfo(): Promise<IUser> {\n return this.axios.$get('user');\n }\n delete(id: number): Promise<number> {\n return this.axios.$delete(`users/${id}`);\n }\n\n getByRoles(params: { roles: Role[] }): Promise<IUser[]> {\n return this.axios.$get('users/roles', { params });\n }\n}\n"]}
|
|
@@ -7,9 +7,12 @@ export declare enum RedactorDesignation {
|
|
|
7
7
|
export declare enum Rof {
|
|
8
8
|
TVA = "TVA1",
|
|
9
9
|
BNC = "BNC1",
|
|
10
|
+
BNC2 = "BNC2",
|
|
11
|
+
BNC3 = "BNC3",
|
|
10
12
|
IS = "IS1",
|
|
11
13
|
BIC = "BIC1",
|
|
12
|
-
BIC2 = "BIC2"
|
|
14
|
+
BIC2 = "BIC2",
|
|
15
|
+
BIC3 = "BIC3"
|
|
13
16
|
}
|
|
14
17
|
export declare enum AsponeTaxSystem {
|
|
15
18
|
BN = "BN",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Aspone.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/Aspone.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,GAAG,gBAAgB;IACnB,IAAI,iBAAiB;IACrB,OAAO,iBAAiB;IACxB,IAAI,iBAAiB;CACtB;AAED,oBAAY,GAAG;IACb,GAAG,SAAS;IACZ,GAAG,SAAS;IACZ,EAAE,QAAQ;IACV,GAAG,SAAS;IACZ,IAAI,SAAS;CACd;AAED,oBAAY,eAAe;IACzB,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,SAAS,OAAO;IAChB,EAAE,OAAO;IACT,EAAE,OAAO;CACV;AAED,oBAAY,iBAAiB;IAC3B,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;CACV;AAED,oBAAY,aAAa;IACvB,EAAE,OAAO;IACT,EAAE,OAAO;CACV;AAED,oBAAY,iBAAiB;IAC3B,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ;AAED,oBAAY,SAAS;IACnB,eAAe,MAAM;IACrB,SAAS,MAAM;IACf,KAAK,MAAM;CACZ;AAED,oBAAY,SAAS;IACnB,KAAK,QAAQ;IACb,MAAM,QAAQ;IACd,gBAAgB,QAAQ;IACxB,GAAG,QAAQ;CACZ;AAED,oBAAY,SAAS;IACnB,OAAO,QAAQ;IACf,KAAK,QAAQ;CACd"}
|
|
1
|
+
{"version":3,"file":"Aspone.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/Aspone.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,GAAG,gBAAgB;IACnB,IAAI,iBAAiB;IACrB,OAAO,iBAAiB;IACxB,IAAI,iBAAiB;CACtB;AAED,oBAAY,GAAG;IACb,GAAG,SAAS;IACZ,GAAG,SAAS;IACZ,IAAI,SAAS;IACb,IAAI,SAAS;IACb,EAAE,QAAQ;IACV,GAAG,SAAS;IACZ,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,oBAAY,eAAe;IACzB,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,SAAS,OAAO;IAChB,EAAE,OAAO;IACT,EAAE,OAAO;CACV;AAED,oBAAY,iBAAiB;IAC3B,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;CACV;AAED,oBAAY,aAAa;IACvB,EAAE,OAAO;IACT,EAAE,OAAO;CACV;AAED,oBAAY,iBAAiB;IAC3B,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ;AAED,oBAAY,SAAS;IACnB,eAAe,MAAM;IACrB,SAAS,MAAM;IACf,KAAK,MAAM;CACZ;AAED,oBAAY,SAAS;IACnB,KAAK,QAAQ;IACb,MAAM,QAAQ;IACd,gBAAgB,QAAQ;IACxB,GAAG,QAAQ;CACZ;AAED,oBAAY,SAAS;IACnB,OAAO,QAAQ;IACf,KAAK,QAAQ;CACd"}
|
|
@@ -9,9 +9,12 @@ export var Rof;
|
|
|
9
9
|
(function (Rof) {
|
|
10
10
|
Rof["TVA"] = "TVA1";
|
|
11
11
|
Rof["BNC"] = "BNC1";
|
|
12
|
+
Rof["BNC2"] = "BNC2";
|
|
13
|
+
Rof["BNC3"] = "BNC3";
|
|
12
14
|
Rof["IS"] = "IS1";
|
|
13
15
|
Rof["BIC"] = "BIC1";
|
|
14
16
|
Rof["BIC2"] = "BIC2";
|
|
17
|
+
Rof["BIC3"] = "BIC3";
|
|
15
18
|
})(Rof || (Rof = {}));
|
|
16
19
|
export var AsponeTaxSystem;
|
|
17
20
|
(function (AsponeTaxSystem) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Aspone.js","sourceRoot":"","sources":["../../../../ts/types/Enum/Aspone.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;IACrB,+CAAwB,CAAA;IACxB,4CAAqB,CAAA;AACvB,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B;AAED,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"Aspone.js","sourceRoot":"","sources":["../../../../ts/types/Enum/Aspone.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;IACrB,+CAAwB,CAAA;IACxB,4CAAqB,CAAA;AACvB,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B;AAED,MAAM,CAAN,IAAY,GASX;AATD,WAAY,GAAG;IACb,mBAAY,CAAA;IACZ,mBAAY,CAAA;IACZ,oBAAa,CAAA;IACb,oBAAa,CAAA;I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,QAKpB;AAED,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB","sourcesContent":["export enum RedactorDesignation {\n TVA = 'CEC_EDI_TVA',\n TDFC = 'CEC_EDI_TDFC',\n PAYMENT = 'CEC_EDI_PAYE',\n PART = 'ENT_EDI_PART',\n}\n\nexport enum Rof {\n TVA = 'TVA1',\n BNC = 'BNC1',\n BNC2 = 'BNC2',\n BNC3 = 'BNC3',\n IS = 'IS1',\n BIC = 'BIC1',\n BIC2 = 'BIC2',\n BIC3 = 'BIC3',\n}\n\nexport enum AsponeTaxSystem {\n BN = 'BN', // Catégorie fiscale BA régime réel normal\n BS = 'BS', // Catégorie fiscale BA régime réel simplifié\n DC = 'DC', // Catégorie fiscale BNC régime de la déclaration contrôlée\n RN = 'RN', // Catégorie fiscale BIC/IS régime réel normal\n RS = 'RS', // Catégorie fiscale BIC/IS régime réel simplifié\n GM = 'GM', // Catégorie fiscale IS régime de groupe société membre du groupe\n GT = 'GT', // Catégorie fiscale IS régime de groupe société tête de groupe\n NE = 'NE', // Catégorie fiscale IS régime normal étranger\n SE = 'SE', // Catégorie fiscale IS régime simplifié étranger\n MN = 'MN', // Catégorie fiscale BIC/IR SCM option pour le régime réel\n MS = 'MS', // Catégorie fiscale BIC/IR SCM sans option (régime simplifié)\n TR = 'TR', // Catégorie fiscale RF tous régimes, hors sociétés immobilières déposant des 2072\n IMMO_2072 = '72', // Catégorie fiscale RF des sociétés immobilières déposant des 2072\n CV = 'CV', // Dépôt catégorie CVAE\n CF = 'CF', // Dépôt catégorie CF\n}\n\nexport enum AsponeTaxCategory {\n BI = 'BI', // Catégorie fiscale BIC/IS\n BA = 'BA', // Catégorie fiscale BA\n BC = 'BC', // Catégorie fiscale BNC\n RF = 'RF', // Catégorie fiscale RF\n FL = 'FL', // Catégorie de dépôt fiscalité locale\n}\n\nexport enum AsponeTaxType {\n IR = 'IR',\n IS = 'IS',\n}\n\nexport enum AsponeDepositType {\n DPR = 'DPR', // Dépôt provisoire\n NOR = 'NOR', // NOR = Dépôt non provisoire\n}\n\nexport enum AsponeTTV {\n TOURISM_VEHICLE = 'T',\n MOTORBIKE = 'M',\n MOPED = 'V',\n}\n\nexport enum AsponeTTC {\n SUPER = 'SPR',\n DIESEL = 'DSL',\n SUPER_SANS_PLOMB = 'SSP',\n GPL = 'GPL',\n}\n\nexport enum AsponeTCD {\n CESSION = 'CSS',\n DEATH = 'DCD',\n}"]}
|
|
@@ -313,9 +313,9 @@ export const BrandClementine = [
|
|
|
313
313
|
footerColor: '#f3692f',
|
|
314
314
|
},
|
|
315
315
|
listPhones: {
|
|
316
|
-
contact: '
|
|
317
|
-
qualite: '
|
|
318
|
-
juridique: '
|
|
316
|
+
contact: '03 83 93 14 14',
|
|
317
|
+
qualite: '03 83 93 14 14',
|
|
318
|
+
juridique: '03 83 93 14 14',
|
|
319
319
|
},
|
|
320
320
|
listMails: {
|
|
321
321
|
contact: 'comptastart@legalstart.fr',
|