@silexpert/core 1.1.50 → 1.1.51

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.
@@ -1,11 +1,14 @@
1
1
  /// <reference types="node" />
2
2
  import { Resource } from '../Resource';
3
- import { QueryLibraryFile, UpdateOrCreateGedFile, IGedFile, QueryDownloadFile } from '../../types';
3
+ import { QueryLibraryFile, UpdateOrCreateGedFile, IGedFile, QueryDownloadFile, UpdateGedFile } from '../../types';
4
4
  export declare class Library extends Resource {
5
5
  create(formData: FormData): Promise<IGedFile>;
6
6
  get(params: QueryLibraryFile): Promise<IGedFile | null>;
7
7
  getAll(params: QueryLibraryFile): Promise<IGedFile[]>;
8
+ getAllForLibrary(params: QueryLibraryFile): Promise<IGedFile[]>;
9
+ countAll(params: QueryLibraryFile): Promise<Array<object>>;
8
10
  updateOrCreate(idFile: number, params: UpdateOrCreateGedFile): Promise<IGedFile>;
11
+ update(idFile: number, params: UpdateGedFile): Promise<IGedFile>;
9
12
  download(idSociety: number, params: QueryDownloadFile, isPdfFile?: boolean): Promise<Buffer>;
10
13
  delete(idFile: number): Promise<number>;
11
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Library.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Library.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,gBAAgB,EAAE,qBAAqB,EAAE,QAAQ,EAAE,iBAAiB,EACrE,MAAM,aAAa,CAAC;AAErB,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI7C,GAAG,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAIvD,MAAM,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAIrD,cAAc,CA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AC;IAa1F,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAGxC"}
@@ -9,9 +9,18 @@ export class Library extends Resource {
9
9
  getAll(params) {
10
10
  return this.axios.$get('/library/files', { params });
11
11
  }
12
+ getAllForLibrary(params) {
13
+ return this.axios.$get('/library/files-for-library', { params });
14
+ }
15
+ countAll(params) {
16
+ return this.axios.$get('/library/count-for-library', { params });
17
+ }
12
18
  updateOrCreate(idFile, params) {
13
19
  return this.axios.$post(`/library/file/${idFile}`, params);
14
20
  }
21
+ update(idFile, params) {
22
+ return this.axios.$put(`/library/file/${idFile}`, params);
23
+ }
15
24
  download(idSociety, params, isPdfFile = false) {
16
25
  return this.axios.$get(`/library/${idSociety}/file/download`, Object.assign({ params }, (isPdfFile ? {
17
26
  responseType: 'arraybuffer',
@@ -1 +1 @@
1
- {"version":3,"file":"Library.js","sourceRoot":"","sources":["../../../ts/api/resources/Library.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAKvC,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IACnC,MAAM,CAAC,QAAkB;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,eAAe,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,qBAAqB,EAAE,EAAE,CAAC,CAAC;IAC7G,CAAC;IAED,GAAG,CAAC,MAAwB;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,MAAM,CAAC,MAAwB;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACvD,CAAC;IAED,cAAc,CAAC,MAAc,EAAE,MAA6B;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iBAAiB,MAAM,EAAE,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC;IAED,QAAQ,CAAC,SAAiB,EAAE,MAAyB,EAAE,SAAS,GAAG,KAAK;QACtE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,SAAS,gBAAgB,kBAExD,MAAM,IACH,CAAC,SAAS,CAAC,CAAC,CAAC;YACd,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC,CAAC,EAAE,CAAC,EACP,CAAC;IACP,CAAC;IAED,MAAM,CAAC,MAAc;QACnB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,iBAAiB,MAAM,EAAE,CAAC,CAAC;IACvD,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n QueryLibraryFile, UpdateOrCreateGedFile, IGedFile, QueryDownloadFile,\n} from '../../types';\n\nexport class Library extends Resource {\n create(formData: FormData): Promise<IGedFile> {\n return this.axios.$post('/library/file', formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n get(params: QueryLibraryFile): Promise<IGedFile | null> {\n return this.axios.$get('/library/file', { params });\n }\n\n getAll(params: QueryLibraryFile): Promise<IGedFile[]> {\n return this.axios.$get('/library/files', { params });\n }\n\n updateOrCreate(idFile: number, params: UpdateOrCreateGedFile): Promise<IGedFile> {\n return this.axios.$post(`/library/file/${idFile}`, params);\n }\n\n download(idSociety: number, params: QueryDownloadFile, isPdfFile = false): Promise<Buffer> {\n return this.axios.$get(`/library/${idSociety}/file/download`,\n {\n params,\n ...(isPdfFile ? {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n } : {}),\n });\n }\n\n delete(idFile: number): Promise<number> {\n return this.axios.$delete(`/library/file/${idFile}`);\n }\n}"]}
1
+ {"version":3,"file":"Library.js","sourceRoot":"","sources":["../../../ts/api/resources/Library.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE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AAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC,CAAC,EAAE,CAAC,EACP,CAAC;IACP,CAAC;IAED,MAAM,CAAC,MAAc;QACnB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,iBAAiB,MAAM,EAAE,CAAC,CAAC;IACvD,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n QueryLibraryFile, UpdateOrCreateGedFile, IGedFile, QueryDownloadFile, UpdateGedFile,\n} from '../../types';\n\nexport class Library extends Resource {\n create(formData: FormData): Promise<IGedFile> {\n return this.axios.$post('/library/file', formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n get(params: QueryLibraryFile): Promise<IGedFile | null> {\n return this.axios.$get('/library/file', { params });\n }\n\n getAll(params: QueryLibraryFile): Promise<IGedFile[]> {\n return this.axios.$get('/library/files', { params });\n }\n\n getAllForLibrary(params: QueryLibraryFile): Promise<IGedFile[]> {\n return this.axios.$get('/library/files-for-library', { params });\n }\n\n countAll(params: QueryLibraryFile): Promise<Array<object>> {\n return this.axios.$get('/library/count-for-library', { params });\n }\n\n updateOrCreate(idFile: number, params: UpdateOrCreateGedFile): Promise<IGedFile> {\n return this.axios.$post(`/library/file/${idFile}`, params);\n }\n\n update(idFile: number, params: UpdateGedFile): Promise<IGedFile> {\n return this.axios.$put(`/library/file/${idFile}`, params);\n }\n\n download(idSociety: number, params: QueryDownloadFile, isPdfFile = false): Promise<Buffer> {\n return this.axios.$get(`/library/${idSociety}/file/download`,\n {\n params,\n ...(isPdfFile ? {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n } : {}),\n });\n }\n\n delete(idFile: number): Promise<number> {\n return this.axios.$delete(`/library/file/${idFile}`);\n }\n}"]}
@@ -10,6 +10,8 @@ export declare class QueryLibraryFile {
10
10
  typeFile?: number;
11
11
  findSign?: boolean;
12
12
  attributes?: string[];
13
+ page?: number;
14
+ limit?: number;
13
15
  include?: string[];
14
16
  }
15
17
  export declare class QueryDownloadFile {
@@ -1 +1 @@
1
- {"version":3,"file":"QueryLibrary.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/library/QueryLibrary.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE3D,qBAAa,gBAAgB;IAE3B,SAAS,EAAE,MAAM,CAAC;IAGlB,WAAW,CAAC,EAAE,SAAS,CAAC;IAGxB,aAAa,CAAC,EAAE,WAAW,CAAC;IAG5B,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC;IAG5B,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,QAAQ,CAAC,EAAE,OAAO,CAAS;IAO3B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAQtB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,qBAAa,iBAAiB;IAE5B,UAAU,EAAE,MAAM,CAAC;IAGnB,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,qBAAqB;IAEhC,MAAM,EAAE,MAAM,CAAC;IAGf,YAAY,CAAC,EAAE,IAAI,CAAC;IAGpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC;IAGpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
1
+ {"version":3,"file":"QueryLibrary.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/library/QueryLibrary.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE3D,qBAAa,gBAAgB;IAE3B,SAAS,EAAE,MAAM,CAAC;IAGlB,WAAW,CAAC,EAAE,SAAS,CAAC;IAGxB,aAAa,CAAC,EAAE,WAAW,CAAC;IAG5B,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC;IAG5B,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,QAAQ,CAAC,EAAE,OAAO,CAAS;IAO3B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAKtB,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,KAAK,CAAC,EAAE,MAAM,CAAC;IAQf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,qBAAa,iBAAiB;IAE5B,UAAU,EAAE,MAAM,CAAC;IAGnB,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,qBAAqB;IAEhC,MAAM,EAAE,MAAM,CAAC;IAGf,YAAY,CAAC,EAAE,IAAI,CAAC;IAGpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC;IAGpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -63,6 +63,18 @@ __decorate([
63
63
  }),
64
64
  __metadata("design:type", Array)
65
65
  ], QueryLibraryFile.prototype, "attributes", void 0);
66
+ __decorate([
67
+ ApiPropertyOptional(),
68
+ IsNumber(),
69
+ IsOptional(),
70
+ __metadata("design:type", Number)
71
+ ], QueryLibraryFile.prototype, "page", void 0);
72
+ __decorate([
73
+ ApiPropertyOptional(),
74
+ IsNumber(),
75
+ IsOptional(),
76
+ __metadata("design:type", Number)
77
+ ], QueryLibraryFile.prototype, "limit", void 0);
66
78
  __decorate([
67
79
  ApiPropertyOptional(),
68
80
  IsOptional(),
@@ -1 +1 @@
1
- {"version":3,"file":"QueryLibrary.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/library/QueryLibrary.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,GAChD,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE3D,MAAM,OAAO,gBAAgB;IAA7B;QA8BE,aAAQ,GAAa,KAAK,CAAC;IAgB7B,CAAC;CAAA;AA7CC;IAAC,WAAW,EAAE;;mDACI;AAElB;IAAC,mBAAmB,EAAE;;qDACE;AAExB;IAAC,mBAAmB,EAAE;;uDACM;AAE5B;IAAC,mBAAmB,EAAE;;uDACM;AAE5B;IAAC,mBAAmB,EAAE;;oDACF;AAEpB;IAAC,mBAAmB,EAAE;;wDACE;AAExB;IAAC,mBAAmB,EAAE;;gDACN;AAEhB;IAAC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;kDACK;AAElB;IAAC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,UAAU,EAAE;;kDACc;AAE3B;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,CAAC;QACR,IAAI,EAAE,IAAI;KACX,CAAC;;oDACoB;AAEtB;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,CAAC;QACR,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAI,CAAC,CAAC,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;iDACrE;AAGrB,MAAM,OAAO,iBAAiB;CAY7B;AAXC;IAAC,WAAW,EAAE;;qDACK;AAEnB;IAAC,WAAW,EAAE;;gDACA;AAEd;IAAC,mBAAmB,EAAE;;iDACN;AAEhB;IAAC,mBAAmB,EAAE;;iDACN;AAGlB,MAAM,OAAO,qBAAqB;CAqBjC;AApBC;IAAC,WAAW,EAAE;;qDACC;AAEf;IAAC,mBAAmB,EAAE;8BACP,IAAI;2DAAC;AAEpB;IAAC,mBAAmB,EAAE;;qDACN;AAEhB;IAAC,WAAW,EAAE;;0DACM;AAEpB;IAAC,mBAAmB,EAAE;;wDACH;AAEnB;IAAC,mBAAmB,EAAE;;yDACF;AAEpB;IAAC,mBAAmB,EAAE;;4DACC","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}"]}
1
+ {"version":3,"file":"QueryLibrary.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/library/QueryLibrary.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,GAChD,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE3D,MAAM,OAAO,gBAAgB;IAA7B;QA8BE,aAAQ,GAAa,KAAK,CAAC;IA0B7B,CAAC;CAAA;AAvDC;IAAC,WAAW,EAAE;;mDACI;AAElB;IAAC,mBAAmB,EAAE;;qDACE;AAExB;IAAC,mBAAmB,EAAE;;uDACM;AAE5B;IAAC,mBAAmB,EAAE;;uDACM;AAE5B;IAAC,mBAAmB,EAAE;;oDACF;AAEpB;IAAC,mBAAmB,EAAE;;wDACE;AAExB;IAAC,mBAAmB,EAAE;;gDACN;AAEhB;IAAC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;kDACK;AAElB;IAAC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,UAAU,EAAE;;kDACc;AAE3B;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,CAAC;QACR,IAAI,EAAE,IAAI;KACX,CAAC;;oDACoB;AAEtB;IAAC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;8CACC;AAEd;IAAC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;+CACE;AAEf;IAAC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,CAAC;QACR,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAI,CAAC,CAAC,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;iDACrE;AAGrB,MAAM,OAAO,iBAAiB;CAY7B;AAXC;IAAC,WAAW,EAAE;;qDACK;AAEnB;IAAC,WAAW,EAAE;;gDACA;AAEd;IAAC,mBAAmB,EAAE;;iDACN;AAEhB;IAAC,mBAAmB,EAAE;;iDACN;AAGlB,MAAM,OAAO,qBAAqB;CAqBjC;AApBC;IAAC,WAAW,EAAE;;qDACC;AAEf;IAAC,mBAAmB,EAAE;8BACP,IAAI;2DAAC;AAEpB;IAAC,mBAAmB,EAAE;;qDACN;AAEhB;IAAC,WAAW,EAAE;;0DACM;AAEpB;IAAC,mBAAmB,EAAE;;wDACH;AAEnB;IAAC,mBAAmB,EAAE;;yDACF;AAEpB;IAAC,mBAAmB,EAAE;;4DACC","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}"]}
@@ -21,12 +21,14 @@ export interface IBusinessPartner {
21
21
  identityDocument: string | null;
22
22
  otherActivities: string | null;
23
23
  activityBefore: string | null;
24
+ maritalStatus: string | null;
24
25
  idGedFileKbis: number | null;
25
26
  idGedFileIC: number | null;
26
27
  idGedFileStatus: number | null;
27
28
  idSociety: number | null;
28
29
  idUser: number | null;
29
30
  idSocietyParent: number;
31
+ idMaritalStatus: number;
30
32
  createdAt?: Date | null;
31
33
  updatedAt?: Date | null;
32
34
  country?: ICountry;
@@ -1 +1 @@
1
- {"version":3,"file":"IBusinessPartner.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IBusinessPartner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,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AAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,aAAa,CAAC,EAAE,QAAQ,CAAC;CAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"IBusinessPartner.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IBusinessPartner.ts"],"names":[],"mappings":"","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"]}
1
+ {"version":3,"file":"IBusinessPartner.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IBusinessPartner.ts"],"names":[],"mappings":"","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"]}
@@ -95,6 +95,10 @@ export interface ISocietyDetail {
95
95
  bankSynchronisationState?: number | null;
96
96
  platformExplanation?: number | null;
97
97
  mobileAppInstallationProposal?: number | null;
98
+ notaryOfficeName?: string | null;
99
+ notaryOfficeAddress?: string | null;
100
+ notaryOfficeZipCode?: string | null;
101
+ notaryOfficeCity?: string | null;
98
102
  verifiedDocuments?: boolean | null;
99
103
  createdAt?: Date | null;
100
104
  updatedAt?: Date | null;
@@ -1 +1 @@
1
- {"version":3,"file":"ISocietyDetail.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/ISocietyDetail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IA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AAM,GAAG,IAAI,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACnC,4BAA4B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,4BAA4B,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,mBAAmB,CAAC,EAAC,MAAM,GAAG,IAAI,CAAC;IACnC,6BAA6B,CAAC,EAAC,MAAM,GAAG,IAAI,CAAC;IAC7C,gBAAgB,CAAC,EAAC,MAAM,GAAG,IAAI,CAAC;IAChC,mBAAmB,CAAC,EAAC,MAAM,GAAG,IAAI,CAAC;IACnC,mBAAmB,CAAC,EAAC,MAAM,GAAG,IAAI,CAAC;IACnC,gBAAgB,CAAC,EAAC,MAAM,GAAG,IAAI,CAAC;IAChC,iBAAiB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"ISocietyDetail.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/ISocietyDetail.ts"],"names":[],"mappings":"","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"]}
1
+ {"version":3,"file":"ISocietyDetail.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/ISocietyDetail.ts"],"names":[],"mappings":"","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"]}
@@ -23,9 +23,22 @@ class Library extends _Resource.Resource {
23
23
  params
24
24
  });
25
25
  }
26
+ getAllForLibrary(params) {
27
+ return this.axios.$get('/library/files-for-library', {
28
+ params
29
+ });
30
+ }
31
+ countAll(params) {
32
+ return this.axios.$get('/library/count-for-library', {
33
+ params
34
+ });
35
+ }
26
36
  updateOrCreate(idFile, params) {
27
37
  return this.axios.$post(`/library/file/${idFile}`, params);
28
38
  }
39
+ update(idFile, params) {
40
+ return this.axios.$put(`/library/file/${idFile}`, params);
41
+ }
29
42
  download(idSociety, params, isPdfFile = false) {
30
43
  return this.axios.$get(`/library/${idSociety}/file/download`, Object.assign({
31
44
  params
@@ -1 +1 @@
1
- {"version":3,"file":"Library.js","names":["_Resource","require","Library","Resource","create","formData","axios","$post","headers","get","params","$get","getAll","updateOrCreate","idFile","download","idSociety","isPdfFile","Object","assign","responseType","Accept","delete","$delete","exports"],"sources":["../../../ts/api/resources/Library.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n QueryLibraryFile, UpdateOrCreateGedFile, IGedFile, QueryDownloadFile,\n} from '../../types';\n\nexport class Library extends Resource {\n create(formData: FormData): Promise<IGedFile> {\n return this.axios.$post('/library/file', formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n get(params: QueryLibraryFile): Promise<IGedFile | null> {\n return this.axios.$get('/library/file', { params });\n }\n\n getAll(params: QueryLibraryFile): Promise<IGedFile[]> {\n return this.axios.$get('/library/files', { params });\n }\n\n updateOrCreate(idFile: number, params: UpdateOrCreateGedFile): Promise<IGedFile> {\n return this.axios.$post(`/library/file/${idFile}`, params);\n }\n\n download(idSociety: number, params: QueryDownloadFile, isPdfFile = false): Promise<Buffer> {\n return this.axios.$get(`/library/${idSociety}/file/download`,\n {\n params,\n ...(isPdfFile ? {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n } : {}),\n });\n }\n\n delete(idFile: number): Promise<number> {\n return this.axios.$delete(`/library/file/${idFile}`);\n }\n}"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAKM,MAAOC,OAAQ,SAAQC,kBAAQ;EACnCC,MAAMA,CAACC,QAAkB;IACvB,OAAO,IAAI,CAACC,KAAK,CAACC,KAAK,CAAC,eAAe,EAAEF,QAAQ,EAAE;MAAEG,OAAO,EAAE;QAAE,cAAc,EAAE;MAAqB;IAAE,CAAE,CAAC;EAC5G;EAEAC,GAAGA,CAACC,MAAwB;IAC1B,OAAO,IAAI,CAACJ,KAAK,CAACK,IAAI,CAAC,eAAe,EAAE;MAAED;IAAM,CAAE,CAAC;EACrD;EAEAE,MAAMA,CAACF,MAAwB;IAC7B,OAAO,IAAI,CAACJ,KAAK,CAACK,IAAI,CAAC,gBAAgB,EAAE;MAAED;IAAM,CAAE,CAAC;EACtD;EAEAG,cAAcA,CAACC,MAAc,EAAEJ,MAA6B;IAC1D,OAAO,IAAI,CAACJ,KAAK,CAACC,KAAK,CAAC,iBAAiBO,MAAM,EAAE,EAAEJ,MAAM,CAAC;EAC5D;EAEAK,QAAQA,CAACC,SAAiB,EAAEN,MAAyB,EAAEO,SAAS,GAAG,KAAK;IACtE,OAAO,IAAI,CAACX,KAAK,CAACK,IAAI,CAAC,YAAYK,SAAS,gBAAgB,EAAAE,MAAA,CAAAC,MAAA;MAExDT;IAAM,GACFO,SAAS,GAAG;MACdG,YAAY,EAAE,aAAa;MAC3BZ,OAAO,EAAE;QACPa,MAAM,EAAE;;KAEX,GAAG,EAAE,CAAC,CACP;EACN;EAEAC,MAAMA,CAACR,MAAc;IACnB,OAAO,IAAI,CAACR,KAAK,CAACiB,OAAO,CAAC,iBAAiBT,MAAM,EAAE,CAAC;EACtD;;AACDU,OAAA,CAjCYtB,OAAQ,GAARA,OAAQ"}
1
+ {"version":3,"file":"Library.js","names":["_Resource","require","Library","Resource","create","formData","axios","$post","headers","get","params","$get","getAll","getAllForLibrary","countAll","updateOrCreate","idFile","update","$put","download","idSociety","isPdfFile","Object","assign","responseType","Accept","delete","$delete","exports"],"sources":["../../../ts/api/resources/Library.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n QueryLibraryFile, UpdateOrCreateGedFile, IGedFile, QueryDownloadFile, UpdateGedFile,\n} from '../../types';\n\nexport class Library extends Resource {\n create(formData: FormData): Promise<IGedFile> {\n return this.axios.$post('/library/file', formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n get(params: QueryLibraryFile): Promise<IGedFile | null> {\n return this.axios.$get('/library/file', { params });\n }\n\n getAll(params: QueryLibraryFile): Promise<IGedFile[]> {\n return this.axios.$get('/library/files', { params });\n }\n\n getAllForLibrary(params: QueryLibraryFile): Promise<IGedFile[]> {\n return this.axios.$get('/library/files-for-library', { params });\n }\n\n countAll(params: QueryLibraryFile): Promise<Array<object>> {\n return this.axios.$get('/library/count-for-library', { params });\n }\n\n updateOrCreate(idFile: number, params: UpdateOrCreateGedFile): Promise<IGedFile> {\n return this.axios.$post(`/library/file/${idFile}`, params);\n }\n\n update(idFile: number, params: UpdateGedFile): Promise<IGedFile> {\n return this.axios.$put(`/library/file/${idFile}`, params);\n }\n\n download(idSociety: number, params: QueryDownloadFile, isPdfFile = false): Promise<Buffer> {\n return this.axios.$get(`/library/${idSociety}/file/download`,\n {\n params,\n ...(isPdfFile ? {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n } : {}),\n });\n }\n\n delete(idFile: number): Promise<number> {\n return this.axios.$delete(`/library/file/${idFile}`);\n }\n}"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAKM,MAAOC,OAAQ,SAAQC,kBAAQ;EACnCC,MAAMA,CAACC,QAAkB;IACvB,OAAO,IAAI,CAACC,KAAK,CAACC,KAAK,CAAC,eAAe,EAAEF,QAAQ,EAAE;MAAEG,OAAO,EAAE;QAAE,cAAc,EAA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OAAQ,GAARA,OAAQ"}
@@ -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;AACA,IAAAE,IAAA,GAAAF,OAAA;;;;;;;;;;;AAEM,MAAOG,gBAAgB;EAA7BC,YAAA;IA8BE,KAAAC,QAAQ,GAAa,KAAK;EAgB5B;;AAACC,OAAA,CA9CYH,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,qFACF;AAEpBF,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,yFACE;A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AmB,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,qFACF;AAEpBF,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,yFACE;AAExBF,UAAA,EAAC,IAAAE,0BAAmB,GAAE,E,iFACN;AAEhBF,UAAA,EAAC,IAAAE,0BAAmB,GAAE,EACrB,IAAAC,wBAAQ,GAAE,EACV,IAAAC,0BAAU,GAAE,E,mFACK;AAElBJ,UAAA,EAAC,IAAAE,0BAAmB,GAAE,EACrB,IAAAG,yBAAS,GAAE,EACX,IAAAD,0BAAU,GAAE,E,oFACc;AAE3BJ,UAAA,EAAC,IAAAE,0BAAmB,GAAE,EACrB,IAAAE,0BAAU,GAAE,EACZ,IAAAE,wBAAQ,EAAC;EACRC,IAAI,EAAE;CACP,CAAC,E,oFACoB;AAEtBP,UAAA,EAAC,IAAAE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],"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.51",
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
  {
@@ -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;