@silexpert/core 1.1.50 → 1.1.52

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 (46) hide show
  1. package/es/api/resources/Library.d.ts +4 -1
  2. package/es/api/resources/Library.d.ts.map +1 -1
  3. package/es/api/resources/Library.js +9 -0
  4. package/es/api/resources/Library.js.map +1 -1
  5. package/es/api/resources/Vat.d.ts +8 -0
  6. package/es/api/resources/Vat.d.ts.map +1 -1
  7. package/es/api/resources/Vat.js +12 -0
  8. package/es/api/resources/Vat.js.map +1 -1
  9. package/es/types/Enum/Ged.d.ts +12 -0
  10. package/es/types/Enum/Ged.d.ts.map +1 -1
  11. package/es/types/Enum/Ged.js +12 -12
  12. package/es/types/Enum/Ged.js.map +1 -1
  13. package/es/types/Enum/VatDeclarationType.d.ts +2 -0
  14. package/es/types/Enum/VatDeclarationType.d.ts.map +1 -1
  15. package/es/types/Enum/VatDeclarationType.js +228 -0
  16. package/es/types/Enum/VatDeclarationType.js.map +1 -1
  17. package/es/types/Interface/api/library/QueryLibrary.d.ts +2 -0
  18. package/es/types/Interface/api/library/QueryLibrary.d.ts.map +1 -1
  19. package/es/types/Interface/api/library/QueryLibrary.js +12 -0
  20. package/es/types/Interface/api/library/QueryLibrary.js.map +1 -1
  21. package/es/types/Interface/models/IBusinessPartner.d.ts +2 -0
  22. package/es/types/Interface/models/IBusinessPartner.d.ts.map +1 -1
  23. package/es/types/Interface/models/IBusinessPartner.js.map +1 -1
  24. package/es/types/Interface/models/ISocietyDetail.d.ts +4 -0
  25. package/es/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
  26. package/es/types/Interface/models/ISocietyDetail.js.map +1 -1
  27. package/js/api/resources/Library.js +13 -0
  28. package/js/api/resources/Library.js.map +1 -1
  29. package/js/api/resources/Vat.js +12 -0
  30. package/js/api/resources/Vat.js.map +1 -1
  31. package/js/types/Enum/Ged.js +12 -12
  32. package/js/types/Enum/Ged.js.map +1 -1
  33. package/js/types/Enum/VatDeclarationType.js +190 -1
  34. package/js/types/Enum/VatDeclarationType.js.map +1 -1
  35. package/js/types/Interface/api/library/QueryLibrary.js +2 -0
  36. package/js/types/Interface/api/library/QueryLibrary.js.map +1 -1
  37. package/js/types/Interface/models/IBusinessPartner.js.map +1 -1
  38. package/js/types/Interface/models/ISocietyDetail.js.map +1 -1
  39. package/package.json +1 -1
  40. package/ts/api/resources/Library.ts +13 -1
  41. package/ts/api/resources/Vat.ts +14 -0
  42. package/ts/types/Enum/Ged.ts +12 -12
  43. package/ts/types/Enum/VatDeclarationType.ts +230 -0
  44. package/ts/types/Interface/api/library/QueryLibrary.ts +10 -0
  45. package/ts/types/Interface/models/IBusinessPartner.ts +3 -0
  46. package/ts/types/Interface/models/ISocietyDetail.ts +4 -0
@@ -35,6 +35,8 @@ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsBoolean)(),
35
35
  __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsString)({
36
36
  each: true
37
37
  }), __metadata("design:type", Array)], QueryLibraryFile.prototype, "attributes", void 0);
38
+ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsNumber)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Number)], QueryLibraryFile.prototype, "page", void 0);
39
+ __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsNumber)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Number)], QueryLibraryFile.prototype, "limit", void 0);
38
40
  __decorate([(0, _utils.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsString)({
39
41
  each: true
40
42
  }), (0, _classValidator.IsIn)(['gedFolder', 'balanceSheet', 'customerSignature', 'fileFromGed'], {
@@ -1 +1 @@
1
- {"version":3,"file":"QueryLibrary.js","names":["_classValidator","require","_utils","_Ged","QueryLibraryFile","constructor","findSign","exports","__decorate","ApiProperty","ApiPropertyOptional","IsNumber","IsOptional","IsBoolean","IsString","each","IsIn","QueryDownloadFile","UpdateOrCreateGedFile","Date"],"sources":["../../../../../ts/types/Interface/api/library/QueryLibrary.ts"],"sourcesContent":["import {\n IsIn, IsOptional, IsString, IsNumber, IsBoolean,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { GedFolder, GedFileType } from '../../../Enum/Ged';\n\nexport class QueryLibraryFile {\n @ApiProperty()\n idSociety: number;\n\n @ApiPropertyOptional()\n idGedFolder?: GedFolder;\n\n @ApiPropertyOptional()\n idTypeGedFile?: GedFileType;\n\n @ApiPropertyOptional()\n typeGedFolder?: GedFolder[];\n\n @ApiPropertyOptional()\n idExercice?: number;\n\n @ApiPropertyOptional()\n idBalanceSheet?: number;\n\n @ApiPropertyOptional()\n idFile?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n typeFile?: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @IsOptional()\n findSign?: boolean = false;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({\n each: true,\n })\n attributes?: string[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({\n each: true,\n })\n @IsIn(['gedFolder', 'balanceSheet', 'customerSignature', 'fileFromGed'], { each: true })\n include?: string[];\n}\n\nexport class QueryDownloadFile {\n @ApiProperty()\n folderName: string;\n\n @ApiProperty()\n token: string;\n\n @ApiPropertyOptional()\n idUser?: number;\n\n @ApiPropertyOptional()\n idMail?: number;\n}\n\nexport class UpdateOrCreateGedFile {\n @ApiProperty()\n idFile: number;\n\n @ApiPropertyOptional()\n emissionDate?: Date;\n\n @ApiPropertyOptional()\n idUser?: number;\n\n @ApiProperty()\n idGedFolder: number;\n\n @ApiPropertyOptional()\n idSociety?: number;\n\n @ApiPropertyOptional()\n idExercice?: number;\n\n @ApiPropertyOptional()\n idTypeGedFile?: number;\n}"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAGA,IAAAC,MAAA,GAAAD,OAAA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FACK;AAEnBD,UAAA,EAAC,IAAAC,kBAAW,GAAE,E,iFACA;AAEdD,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,kFACN;AAEhBF,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,kFACN;AAGZ,MAAOQ,qBAAqB;AAqBjCX,OAAA,CArBYW,qBAAqB,GAArBA,qBAAqB;AAChCV,UAAA,EAAC,IAAAC,kBAAW,GAAE,E,sFACC;AAEfD,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,0BACPS,IAAI,E,0DAAC;AAEpBX,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,sFACN;AAEhBF,UAAA,EAAC,IAAAC,kBAAW,GAAE,E,2FACM;AAEpBD,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,yFACH;AAEnBF,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,0FACF;AAEpBF,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,6FACC"}
1
+ {"version":3,"file":"QueryLibrary.js","names":["_classValidator","require","_utils","_Ged","QueryLibraryFile","constructor","findSign","exports","__decorate","ApiProperty","ApiPropertyOptional","IsNumber","IsOptional","IsBoolean","IsString","each","IsIn","QueryDownloadFile","UpdateOrCreateGedFile","Date"],"sources":["../../../../../ts/types/Interface/api/library/QueryLibrary.ts"],"sourcesContent":["import {\n IsIn, IsOptional, IsString, IsNumber, IsBoolean,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { GedFolder, GedFileType } from '../../../Enum/Ged';\n\nexport class QueryLibraryFile {\n @ApiProperty()\n idSociety: number;\n\n @ApiPropertyOptional()\n idGedFolder?: GedFolder;\n\n @ApiPropertyOptional()\n idTypeGedFile?: GedFileType;\n\n @ApiPropertyOptional()\n typeGedFolder?: GedFolder[];\n\n @ApiPropertyOptional()\n idExercice?: number;\n\n @ApiPropertyOptional()\n idBalanceSheet?: number;\n\n @ApiPropertyOptional()\n idFile?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n typeFile?: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @IsOptional()\n findSign?: boolean = false;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({\n each: true,\n })\n attributes?: string[];\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n page?: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n limit?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({\n each: true,\n })\n @IsIn(['gedFolder', 'balanceSheet', 'customerSignature', 'fileFromGed'], { each: true })\n include?: string[];\n}\n\nexport class QueryDownloadFile {\n @ApiProperty()\n folderName: string;\n\n @ApiProperty()\n token: string;\n\n @ApiPropertyOptional()\n idUser?: number;\n\n @ApiPropertyOptional()\n idMail?: number;\n}\n\nexport class UpdateOrCreateGedFile {\n @ApiProperty()\n idFile: number;\n\n @ApiPropertyOptional()\n emissionDate?: Date;\n\n @ApiPropertyOptional()\n idUser?: number;\n\n @ApiProperty()\n idGedFolder: number;\n\n @ApiPropertyOptional()\n idSociety?: number;\n\n @ApiPropertyOptional()\n idExercice?: number;\n\n @ApiPropertyOptional()\n idTypeGedFile?: number;\n}"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAGA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,IAAA,GAAAF,OAAA;;;;;;;;;;;AAEM,MAAOG,gBAAgB;EAA7BC,YAAA;IA8BE,KAAAC,QAAQ,GAAa,KAAK;EA0B5B;;AAACC,OAAA,CAxDYH,gBAAgB,GAAhBA,gBAAgB;AAC3BI,UAAA,EAAC,IAAAC,kBAAW,GAAE,E,oFACI;AAElBD,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,sFACE;AAExBF,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,wFACM;AAE5BF,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,uFACM;AAE5BF,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,qFAC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GAArBA,qBAAqB;AAChCV,UAAA,EAAC,IAAAC,kBAAW,GAAE,E,sFACC;AAEfD,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,0BACPS,IAAI,E,0DAAC;AAEpBX,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,sFACN;AAEhBF,UAAA,EAAC,IAAAC,kBAAW,GAAE,E,2FACM;AAEpBD,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,yFACH;AAEnBF,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,0FACF;AAEpBF,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,6FACC"}
@@ -1 +1 @@
1
- {"version":3,"file":"IBusinessPartner.js","names":[],"sources":["../../../../ts/types/Interface/models/IBusinessPartner.ts"],"sourcesContent":["import { ICountry } from './ICountry';\nimport { IGedFile } from './IGedFile';\nimport { INationality } from './INationality';\nimport { ISociety } from './ISociety';\nimport { IUser } from './IUser';\n\n// businessPartners\nexport interface IBusinessPartner {\n id?: number;\n isPhysical: boolean;\n address: string | null;\n zipCodeBirth: string | null;\n birthPlace: string | null;\n departmentBirth: string | null;\n idCountryBirth: number | null;\n birthname: string | null;\n cityOfBirth: string | null;\n sharesHeld: number | null;\n idCountry: number | null;\n idNationality: number | null;\n reason: string | null;\n reasonQuality: string | null;\n identityDocument: string | null;\n otherActivities: string | null;\n activityBefore: string | null;\n idGedFileKbis: number | null;\n idGedFileIC: number | null;\n idGedFileStatus: number | null;\n idSociety: number | null;\n idUser: number | null;\n idSocietyParent: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n country?: ICountry;\n countryLiving?: ICountry;\n fileKbis?: IGedFile;\n fileIC?: IGedFile;\n fileStatus?: IGedFile;\n nationality?: INationality;\n society?: ISociety;\n user?: IUser;\n societyParent?: ISociety;\n}\n"],"mappings":""}
1
+ {"version":3,"file":"IBusinessPartner.js","names":[],"sources":["../../../../ts/types/Interface/models/IBusinessPartner.ts"],"sourcesContent":["import { ICountry } from './ICountry';\nimport { IGedFile } from './IGedFile';\nimport { INationality } from './INationality';\nimport { ISociety } from './ISociety';\nimport { IUser } from './IUser';\n\n// businessPartners\nexport interface IBusinessPartner {\n id?: number;\n isPhysical: boolean;\n address: string | null;\n zipCodeBirth: string | null;\n // @deprecated\n birthPlace: string | null;\n departmentBirth: string | null;\n idCountryBirth: number | null;\n birthname: string | null;\n cityOfBirth: string | null;\n sharesHeld: number | null;\n idCountry: number | null;\n idNationality: number | null;\n reason: string | null;\n reasonQuality: string | null;\n identityDocument: string | null;\n otherActivities: string | null;\n activityBefore: string | null;\n maritalStatus: string | null;\n idGedFileKbis: number | null;\n idGedFileIC: number | null;\n idGedFileStatus: number | null;\n idSociety: number | null;\n idUser: number | null;\n idSocietyParent: number;\n idMaritalStatus: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n country?: ICountry;\n countryLiving?: ICountry;\n fileKbis?: IGedFile;\n fileIC?: IGedFile;\n fileStatus?: IGedFile;\n nationality?: INationality;\n society?: ISociety;\n user?: IUser;\n societyParent?: ISociety;\n}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"ISocietyDetail.js","names":[],"sources":["../../../../ts/types/Interface/models/ISocietyDetail.ts"],"sourcesContent":["import { IUser } from './IUser';\nimport { IFile } from './IFile';\nimport { ISociety } from './ISociety';\n\n// societyDetails\nexport interface ISocietyDetail {\n id?: number;\n detailActivity?: string | null;\n historyComments?: string | null;\n isLoans?: string | null;\n loans?: string | null;\n personnalContribution?: string | null;\n nbBanks?: string | null;\n nbBankaccounts?: number | null;\n isCashdesk?: boolean | null;\n nbTva?: number | null;\n professionnalRent?: string | null;\n isPersoAdress?: string | null;\n vehicle?: string | null;\n interestOtherCompanies?: string | null;\n nbAssociates?: number | null;\n nbEmployees?: number | null;\n hiringPromess?: string | null;\n aNouveaux?: boolean | null;\n bilanN1?: boolean | null;\n revisionDate?: Date | null;\n dateFirstContact?: Date | null;\n userIdFirstContact?: number | null;\n tauxTvaComment?: string | null;\n remarqueComment?: string | null;\n remarqueCommentCab?: string | null;\n acceptation?: number | null;\n userIdAcceptation?: number | null;\n lab?: boolean | null;\n userIdLab?: number | null;\n previsionCa?: string | null;\n externalMeans?: string | null;\n needTreasury?: string | null;\n judiciaryRecovery?: string | null;\n fiscalControl?: string | null;\n descriptionFormation?: string | null;\n fonctionAndInterlocutors?: string | null;\n managementKnowledge?: string | null;\n otherIncome?: string | null;\n politicalResponsability?: string | null;\n prohibitedBanking?: string | null;\n accreARCEOrARE?: string | null;\n frenchTaxResident?: string | null;\n isIrTaxable?: string | null;\n billingSoftware?: string | null;\n collectionSystem?: string | null;\n flowSheet?: string | null;\n rankFiles?: string | null;\n specificNeeds?: string | null;\n configAccount?: boolean | null;\n investissement?: string | null;\n workInternationnal?: string | null;\n creationEntreprise?: string | null;\n oldActivite?: string | null;\n indemnite?: string | null;\n findClementine?: string | null;\n validationDate?: Date | null;\n idSociety?: number | null;\n idUser?: number | null;\n idFile?: number | null;\n idFileToClient?: number | null;\n idFindClementine?: number | null;\n nbAssociatesInCompany?: number | null;\n hasCommercialLease?: string | null;\n amountBaseBefore?: number | null;\n trainingIsDone?: boolean;\n commercialArea?: string | null;\n commercialRentAmount?: string | null;\n hasTravellingExpenses?: string | null;\n personnalContributionCapital?: string | null;\n personnalContributionCurrentBankAccount?: string | null;\n personnalContributionInKind?: string | null;\n poleEmploiAid?: string | null;\n poleEmploiAidType?: number | null;\n honorLoan?: string | null;\n honorLoanAmount?: string | null;\n financingStartingStock?: string | null;\n financingStartingStockAmount?: string | null;\n yearSocietyCreation?: string | null;\n lastExerciceCA?: string | null;\n borrowingInProgress?: string | null;\n borrowingInProgressAmount?: string | null;\n investissementCTMT?: string | null;\n changeECReason?: string | null;\n isSocietyCreation?: boolean | null;\n participationsInOtherSociety?: string | null;\n entrepriseProject?: boolean;\n contractorProfil?: boolean;\n notificationForConstitution?: boolean;\n notificationForOtherMissions?: boolean | null;\n takeKnowledge?: boolean;\n bankSynchronisationState?: number | null;\n platformExplanation?:number | null;\n mobileAppInstallationProposal?:number | null;\n verifiedDocuments?: boolean | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n user?: IUser;\n file?: IFile;\n fileToClient?: IFile;\n society?: ISociety;\n}\n"],"mappings":""}
1
+ {"version":3,"file":"ISocietyDetail.js","names":[],"sources":["../../../../ts/types/Interface/models/ISocietyDetail.ts"],"sourcesContent":["import { IUser } from './IUser';\nimport { IFile } from './IFile';\nimport { ISociety } from './ISociety';\n\n// societyDetails\nexport interface ISocietyDetail {\n id?: number;\n detailActivity?: string | null;\n historyComments?: string | null;\n isLoans?: string | null;\n loans?: string | null;\n personnalContribution?: string | null;\n nbBanks?: string | null;\n nbBankaccounts?: number | null;\n isCashdesk?: boolean | null;\n nbTva?: number | null;\n professionnalRent?: string | null;\n isPersoAdress?: string | null;\n vehicle?: string | null;\n interestOtherCompanies?: string | null;\n nbAssociates?: number | null;\n nbEmployees?: number | null;\n hiringPromess?: string | null;\n aNouveaux?: boolean | null;\n bilanN1?: boolean | null;\n revisionDate?: Date | null;\n dateFirstContact?: Date | null;\n userIdFirstContact?: number | null;\n tauxTvaComment?: string | null;\n remarqueComment?: string | null;\n remarqueCommentCab?: string | null;\n acceptation?: number | null;\n userIdAcceptation?: number | null;\n lab?: boolean | null;\n userIdLab?: number | null;\n previsionCa?: string | null;\n externalMeans?: string | null;\n needTreasury?: string | null;\n judiciaryRecovery?: string | null;\n fiscalControl?: string | null;\n descriptionFormation?: string | null;\n fonctionAndInterlocutors?: string | null;\n managementKnowledge?: string | null;\n otherIncome?: string | null;\n politicalResponsability?: string | null;\n prohibitedBanking?: string | null;\n accreARCEOrARE?: string | null;\n frenchTaxResident?: string | null;\n isIrTaxable?: string | null;\n billingSoftware?: string | null;\n collectionSystem?: string | null;\n flowSheet?: string | null;\n rankFiles?: string | null;\n specificNeeds?: string | null;\n configAccount?: boolean | null;\n investissement?: string | null;\n workInternationnal?: string | null;\n creationEntreprise?: string | null;\n oldActivite?: string | null;\n indemnite?: string | null;\n findClementine?: string | null;\n validationDate?: Date | null;\n idSociety?: number | null;\n idUser?: number | null;\n idFile?: number | null;\n idFileToClient?: number | null;\n idFindClementine?: number | null;\n nbAssociatesInCompany?: number | null;\n hasCommercialLease?: string | null;\n amountBaseBefore?: number | null;\n trainingIsDone?: boolean;\n commercialArea?: string | null;\n commercialRentAmount?: string | null;\n hasTravellingExpenses?: string | null;\n personnalContributionCapital?: string | null;\n personnalContributionCurrentBankAccount?: string | null;\n personnalContributionInKind?: string | null;\n poleEmploiAid?: string | null;\n poleEmploiAidType?: number | null;\n honorLoan?: string | null;\n honorLoanAmount?: string | null;\n financingStartingStock?: string | null;\n financingStartingStockAmount?: string | null;\n yearSocietyCreation?: string | null;\n lastExerciceCA?: string | null;\n borrowingInProgress?: string | null;\n borrowingInProgressAmount?: string | null;\n investissementCTMT?: string | null;\n changeECReason?: string | null;\n isSocietyCreation?: boolean | null;\n participationsInOtherSociety?: string | null;\n entrepriseProject?: boolean;\n contractorProfil?: boolean;\n notificationForConstitution?: boolean;\n notificationForOtherMissions?: boolean | null;\n takeKnowledge?: boolean;\n bankSynchronisationState?: number | null;\n platformExplanation?:number | null;\n mobileAppInstallationProposal?:number | null;\n notaryOfficeName?:string | null;\n notaryOfficeAddress?:string | null;\n notaryOfficeZipCode?:string | null;\n notaryOfficeCity?:string | null;\n verifiedDocuments?: boolean | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n user?: IUser;\n file?: IFile;\n fileToClient?: IFile;\n society?: ISociety;\n}\n"],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.1.50",
3
+ "version": "1.1.52",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "js/index.js",
@@ -1,6 +1,6 @@
1
1
  import { Resource } from '../Resource';
2
2
  import {
3
- QueryLibraryFile, UpdateOrCreateGedFile, IGedFile, QueryDownloadFile,
3
+ QueryLibraryFile, UpdateOrCreateGedFile, IGedFile, QueryDownloadFile, UpdateGedFile,
4
4
  } from '../../types';
5
5
 
6
6
  export class Library extends Resource {
@@ -16,10 +16,22 @@ export class Library extends Resource {
16
16
  return this.axios.$get('/library/files', { params });
17
17
  }
18
18
 
19
+ getAllForLibrary(params: QueryLibraryFile): Promise<IGedFile[]> {
20
+ return this.axios.$get('/library/files-for-library', { params });
21
+ }
22
+
23
+ countAll(params: QueryLibraryFile): Promise<Array<object>> {
24
+ return this.axios.$get('/library/count-for-library', { params });
25
+ }
26
+
19
27
  updateOrCreate(idFile: number, params: UpdateOrCreateGedFile): Promise<IGedFile> {
20
28
  return this.axios.$post(`/library/file/${idFile}`, params);
21
29
  }
22
30
 
31
+ update(idFile: number, params: UpdateGedFile): Promise<IGedFile> {
32
+ return this.axios.$put(`/library/file/${idFile}`, params);
33
+ }
34
+
23
35
  download(idSociety: number, params: QueryDownloadFile, isPdfFile = false): Promise<Buffer> {
24
36
  return this.axios.$get(`/library/${idSociety}/file/download`,
25
37
  {
@@ -19,6 +19,20 @@ export class Vat extends Resource {
19
19
  return this.axios.$post(`/societies/${idSociety}/vat/${id}/various-operations`);
20
20
  }
21
21
 
22
+ /**
23
+ * @deprecated
24
+ */
25
+ getVariousOperationsV1(id: number): Promise<ReadVatVariousOperations[]> {
26
+ return this.axios.$get(`/registrations/${id}/various-operations`);
27
+ }
28
+
29
+ /**
30
+ * @deprecated
31
+ */
32
+ createVariousOperationsV1(id: number): Promise<IAccountingTransaction[]> {
33
+ return this.axios.$post(`/registrations/${id}/various-operations`);
34
+ }
35
+
22
36
  async updateOrCreate(idSociety: number, payload: UpdateOrCreateVatRegistration, details: CreateRegistrationDetail): Promise<ReadRegistration> {
23
37
  const result = await this.axios.$post(`/societies/${idSociety}/vat`, payload);
24
38
  // @ts-ignore
@@ -18,32 +18,32 @@ export enum GedFolder {
18
18
  VAT = 10,
19
19
  IS_DECLARATIONS = 11,
20
20
  STATUTES = 13,
21
- // Training and professional tax = 14,
22
- // DADS-U & DUE = 15,
23
- // URSSAF & Pôle-Emploi = 16,
24
- // Pay slips = 17,
25
- // TNS = 18,
21
+ TRAINING_AND_PROFESSIONAL_TAX = 14,
22
+ DADS_U_DUE = 15,
23
+ URSSAF = 16,
24
+ PAY_SLIPS = 17,
25
+ TNS = 18,
26
26
  AGM = 19, // Annual General Meeting, PV d'AG
27
- // Contracts & Leases = 20,
27
+ CONTRACTS_LEASES = 20,
28
28
  INSURANCES = 22,
29
29
  CABINET_INVOICES = 23,
30
30
  OTHER = 24,
31
31
  VEHICLES = 25,
32
32
  BORROWING_TABLES = 26,
33
33
  RSI_URSSAF = 27,
34
- // Previous GA balance & PV = 28,
35
- // Slips for the CFE = 29,
34
+ GA_BALANCE_PV = 28,
35
+ SLIPS_CFE = 29,
36
36
  APPENDIX_PROVIDERS_CUSTOMERS = 30,
37
37
  MISCELLANEOUS = 31,
38
- // Legal Announcements = 32,
38
+ LEGAL_ANNOUNCEMENTS = 32,
39
39
  CERTIFICATES = 33,
40
40
  PARTNERS = 34,
41
- // Incoming mails = 35,
41
+ INCOMING_MAILS = 35,
42
42
  OUTGOING_MAIL = 36,
43
43
  BANK_STATEMENT = 37,
44
- // Formalism = 38,
44
+ FORMALISM = 38,
45
45
  PENDING_POINTS = 39,
46
- // Balance-GL Journals Year N-1 = 40
46
+ BALANCE_GL_JOURNALS_YEAR = 40,
47
47
  JURIDICAL = 41,
48
48
  SUBVENTION = 42,
49
49
  }
@@ -231,6 +231,236 @@ export const accountInfo3517: AccountInfo[] = [
231
231
  },
232
232
  ];
233
233
 
234
+ export const accountInfo3310Old: AccountInfo[] = [
235
+ {
236
+ number: 445720,
237
+ fields: ['ligne08Tva'],
238
+ fieldsToSubtract: ['ligne17'],
239
+ type: 'debit',
240
+ },
241
+ {
242
+ number: 445705,
243
+ fields: ['ligne09Tva'],
244
+ fieldsToSubtract: [],
245
+ type: 'debit',
246
+ },
247
+ {
248
+ number: 445710,
249
+ fields: ['ligne9BTva'],
250
+ fieldsToSubtract: [],
251
+ type: 'debit',
252
+ },
253
+ {
254
+ number: 445785,
255
+ fields: ['ligne10Tva'],
256
+ fieldsToSubtract: [],
257
+ type: 'debit',
258
+ },
259
+ {
260
+ number: 445721,
261
+ fields: ['ligne11Tva'],
262
+ fieldsToSubtract: [],
263
+ type: 'debit',
264
+ },
265
+ {
266
+ number: 445820,
267
+ fields: ['ligne13', 'ligne14', 'ligne15', 'ligne5B'],
268
+ fieldsToSubtract: [],
269
+ type: 'debit',
270
+ },
271
+ {
272
+ number: 445200,
273
+ fields: ['ligne7C', 'ligne17'],
274
+ fieldsToSubtract: [],
275
+ type: 'debit',
276
+ },
277
+ {
278
+ number: 445662,
279
+ fields: ['ligne7C', 'ligne17'],
280
+ fieldsToSubtract: [],
281
+ type: 'credit',
282
+ },
283
+ {
284
+ number: 445620,
285
+ fields: ['ligne19'],
286
+ fieldsToSubtract: [],
287
+ type: 'credit',
288
+ },
289
+ {
290
+ number: 445660,
291
+ fields: ['ligne20'],
292
+ fieldsToSubtract: ['ligne7C', 'ligne17'],
293
+ type: 'credit',
294
+ idVat: Vat.TX_20.id,
295
+ },
296
+ {
297
+ number: 445840,
298
+ fields: ['ligne21', 'ligne2C'],
299
+ fieldsToSubtract: [],
300
+ type: 'credit',
301
+ },
302
+ {
303
+ number: 445670,
304
+ fields: ['ligne22'],
305
+ fieldsToSubtract: [],
306
+ type: 'credit',
307
+ },
308
+ {
309
+ number: 445830,
310
+ fields: ['ligne26'],
311
+ fieldsToSubtract: [],
312
+ type: 'debit',
313
+ },
314
+ {
315
+ number: 445670,
316
+ fields: ['ligne27'],
317
+ fieldsToSubtract: [],
318
+ type: 'debit',
319
+ },
320
+ {
321
+ number: 445680,
322
+ fields: ['ligne29'],
323
+ fieldsToSubtract: [],
324
+ type: 'credit',
325
+ },
326
+ {
327
+ number: 635140,
328
+ fields: ['ligne29'],
329
+ fieldsToSubtract: [],
330
+ type: 'debit',
331
+ },
332
+ {
333
+ number: 445510,
334
+ fields: ['ligne32'],
335
+ fieldsToSubtract: [],
336
+ type: 'credit',
337
+ },
338
+ ];
339
+
340
+ export const accountInfo3517Old: AccountInfo[] = [
341
+ {
342
+ number: 445720,
343
+ fields: ['A904072_0', 'A100147_0', 'A100149_0', 'A100161_0'],
344
+ fieldsToSubtract: [],
345
+ type: 'debit',
346
+ },
347
+ {
348
+ number: 445705,
349
+ fields: ['A100140_0'],
350
+ fieldsToSubtract: [],
351
+ type: 'debit',
352
+ },
353
+ {
354
+ number: 445710,
355
+ fields: ['A904074_0'],
356
+ fieldsToSubtract: [],
357
+ type: 'debit',
358
+ },
359
+ {
360
+ number: 445785,
361
+ fields: ['A100168_0'],
362
+ fieldsToSubtract: [],
363
+ type: 'debit',
364
+ },
365
+ {
366
+ number: 445721,
367
+ fields: ['A100166_0'],
368
+ fieldsToSubtract: [],
369
+ type: 'debit',
370
+ },
371
+ {
372
+ number: 445700,
373
+ fields: ['A100083_0', 'A100145_0', 'A100185_0', 'A107009_0'],
374
+ fieldsToSubtract: [],
375
+ type: 'debit',
376
+ },
377
+ {
378
+ number: 445820,
379
+ fields: ['A100197_0', 'A100087_0', 'A905878_0'],
380
+ fieldsToSubtract: [],
381
+ type: 'debit',
382
+ },
383
+ {
384
+ number: 445200,
385
+ fields: ['A900775_0', 'A100150_0'],
386
+ fieldsToSubtract: [],
387
+ type: 'debit',
388
+ },
389
+ {
390
+ number: 445662,
391
+ fields: ['A900775_0', 'A100150_0'],
392
+ fieldsToSubtract: [],
393
+ type: 'credit',
394
+ },
395
+ {
396
+ number: 445620,
397
+ fields: ['A100090_0'],
398
+ fieldsToSubtract: [],
399
+ type: 'credit',
400
+ },
401
+ {
402
+ number: 445660,
403
+ fields: ['A100091_0', 'A100192_0'],
404
+ fieldsToSubtract: ['A900775_0', 'A100150_0'],
405
+ type: 'credit',
406
+ idVat: Vat.TX_20.id,
407
+ },
408
+ {
409
+ number: 445840,
410
+ fields: ['A100092_0'],
411
+ fieldsToSubtract: [],
412
+ type: 'credit',
413
+ },
414
+ {
415
+ number: 445820,
416
+ fields: ['A905879_0'],
417
+ fieldsToSubtract: [],
418
+ type: 'credit',
419
+ },
420
+ {
421
+ number: 445810,
422
+ fields: ['A100194_0'],
423
+ fieldsToSubtract: [],
424
+ type: 'credit',
425
+ },
426
+ {
427
+ number: 445670,
428
+ fields: ['A100151_0'],
429
+ fieldsToSubtract: [],
430
+ type: 'credit',
431
+ },
432
+ {
433
+ number: 445830,
434
+ fields: ['A100097_0'],
435
+ fieldsToSubtract: [],
436
+ type: 'debit',
437
+ },
438
+ {
439
+ number: 445670,
440
+ fields: ['A100098_0'],
441
+ fieldsToSubtract: [],
442
+ type: 'debit',
443
+ },
444
+ {
445
+ number: 445810,
446
+ fields: ['A100224_0'],
447
+ fieldsToSubtract: [],
448
+ type: 'debit',
449
+ },
450
+ {
451
+ number: 445680,
452
+ fields: ['A100204_0'],
453
+ fieldsToSubtract: [],
454
+ type: 'credit',
455
+ },
456
+ {
457
+ number: 445510,
458
+ fields: ['A100103_0'],
459
+ fieldsToSubtract: [],
460
+ type: 'credit',
461
+ },
462
+ ];
463
+
234
464
  export interface EntriesListField {
235
465
  fields: Array<string>,
236
466
  fieldsToSubtract: Array<string>,
@@ -43,6 +43,16 @@ export class QueryLibraryFile {
43
43
  })
44
44
  attributes?: string[];
45
45
 
46
+ @ApiPropertyOptional()
47
+ @IsNumber()
48
+ @IsOptional()
49
+ page?: number;
50
+
51
+ @ApiPropertyOptional()
52
+ @IsNumber()
53
+ @IsOptional()
54
+ limit?: number;
55
+
46
56
  @ApiPropertyOptional()
47
57
  @IsOptional()
48
58
  @IsString({
@@ -10,6 +10,7 @@ export interface IBusinessPartner {
10
10
  isPhysical: boolean;
11
11
  address: string | null;
12
12
  zipCodeBirth: string | null;
13
+ // @deprecated
13
14
  birthPlace: string | null;
14
15
  departmentBirth: string | null;
15
16
  idCountryBirth: number | null;
@@ -23,12 +24,14 @@ export interface IBusinessPartner {
23
24
  identityDocument: string | null;
24
25
  otherActivities: string | null;
25
26
  activityBefore: string | null;
27
+ maritalStatus: string | null;
26
28
  idGedFileKbis: number | null;
27
29
  idGedFileIC: number | null;
28
30
  idGedFileStatus: number | null;
29
31
  idSociety: number | null;
30
32
  idUser: number | null;
31
33
  idSocietyParent: number;
34
+ idMaritalStatus: number;
32
35
  createdAt?: Date | null;
33
36
  updatedAt?: Date | null;
34
37
 
@@ -97,6 +97,10 @@ export interface ISocietyDetail {
97
97
  bankSynchronisationState?: number | null;
98
98
  platformExplanation?:number | null;
99
99
  mobileAppInstallationProposal?:number | null;
100
+ notaryOfficeName?:string | null;
101
+ notaryOfficeAddress?:string | null;
102
+ notaryOfficeZipCode?:string | null;
103
+ notaryOfficeCity?:string | null;
100
104
  verifiedDocuments?: boolean | null;
101
105
  createdAt?: Date | null;
102
106
  updatedAt?: Date | null;