@silexpert/core 1.3.104 → 1.3.105

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 (26) hide show
  1. package/dist/cjs/api/resources/FecFile.d.ts +0 -1
  2. package/dist/cjs/api/resources/FecFile.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/FecFile.js +0 -3
  4. package/dist/cjs/api/resources/FecFile.js.map +1 -1
  5. package/dist/cjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts +6 -0
  6. package/dist/cjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts.map +1 -1
  7. package/dist/cjs/types/Interface/api/accountingIncome/ReadAccountingIncome.js.map +1 -1
  8. package/dist/cjs/types/Interface/api/fecFile/CreateFecFile.d.ts +1 -0
  9. package/dist/cjs/types/Interface/api/fecFile/CreateFecFile.d.ts.map +1 -1
  10. package/dist/cjs/types/Interface/api/fecFile/CreateFecFile.js +7 -0
  11. package/dist/cjs/types/Interface/api/fecFile/CreateFecFile.js.map +1 -1
  12. package/dist/mjs/api/resources/FecFile.d.ts +0 -1
  13. package/dist/mjs/api/resources/FecFile.d.ts.map +1 -1
  14. package/dist/mjs/api/resources/FecFile.js +0 -3
  15. package/dist/mjs/api/resources/FecFile.js.map +1 -1
  16. package/dist/mjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts +6 -0
  17. package/dist/mjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts.map +1 -1
  18. package/dist/mjs/types/Interface/api/accountingIncome/ReadAccountingIncome.js.map +1 -1
  19. package/dist/mjs/types/Interface/api/fecFile/CreateFecFile.d.ts +1 -0
  20. package/dist/mjs/types/Interface/api/fecFile/CreateFecFile.d.ts.map +1 -1
  21. package/dist/mjs/types/Interface/api/fecFile/CreateFecFile.js +8 -0
  22. package/dist/mjs/types/Interface/api/fecFile/CreateFecFile.js.map +1 -1
  23. package/package.json +1 -1
  24. package/ts/api/resources/FecFile.ts +0 -4
  25. package/ts/types/Interface/api/accountingIncome/ReadAccountingIncome.ts +3 -0
  26. package/ts/types/Interface/api/fecFile/CreateFecFile.ts +6 -0
@@ -5,7 +5,6 @@ export declare class FecFile extends Resource {
5
5
  download(): Promise<any>;
6
6
  export(idExercice: number, payload?: QueryFecFile): Promise<any>;
7
7
  create(params: CreateFecFile): Promise<ReadFecFile>;
8
- map(params: CreateMappingFecFile): Promise<IFecFile>;
9
8
  delete(): Promise<DeleteFecFile>;
10
9
  getBySociety(idSociety: number): Promise<IFecFile | null>;
11
10
  downloadBySociety(idSociety: number): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"FecFile.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/FecFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEtH,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC;IAIxB,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC;IAIxB,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC;IAOhE,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC;IAInD,GAAG,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIpD,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC;IAIhC,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAIzD,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAIlD,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,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AAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAI1D,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;CAKrE"}
@@ -15,9 +15,6 @@ class FecFile extends Resource_1.Resource {
15
15
  create(params) {
16
16
  return this.axios.$post('fec-file', params);
17
17
  }
18
- map(params) {
19
- return this.axios.$post('fec-file/mapping', params);
20
- }
21
18
  delete() {
22
19
  return this.axios.$delete('fec-file');
23
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FecFile.js","sourceRoot":"","sources":["../../../../ts/api/resources/FecFile.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAGvC,MAAa,OAAQ,SAAQ,mBAAQ;IACnC,GAAG;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACrC,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;IACxE,CAAC;IAED,MAAM,CAAC,UAAkB,EAAE,OAAsB;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,UAAU,SAAS,kCAC1D,OAAO,KACV,YAAY,EAAE,MAAM,IACpB,CAAC;IACL,CAAC;IAED,MAAM,CAAC,MAAqB;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAC9C,CAAC;IAED,GAAG,CAAC,MAA4B;QAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACxC,CAAC;IAED,YAAY,CAAC,SAAiB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,SAAS,WAAW,CAAC,CAAC;IAC5D,CAAC;IAED,iBAAiB,CAAC,SAAiB;QACjC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,SAAS,oBAAoB,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED,eAAe,CAAC,SAAiB,EAAE,MAAqB;QACtD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,SAAS,WAAW,EAAE,MAAM,CAAC,CAAC;IACrE,CAAC;IAED,YAAY,CAAC,SAAiB,EAAE,MAA4B;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,SAAS,mBAAmB,EAAE,MAAM,CAAC,CAAC;IAC7E,CAAC;IAED,eAAe,CAAC,SAAiB;QAC/B,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,SAAS,WAAW,CAAC,CAAC;IAC/D,CAAC;IAED,eAAe,CAAC,SAAiB,EAAE,UAAkB;QACnD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,SAAS,sBAAsB,UAAU,SAAS,EAAE;YACtF,YAAY,EAAE,MAAM;SACrB,CAAC,CAAC;IACL,CAAC;CACF;AArDD,0BAqDC","sourcesContent":["import { Resource } from '../Resource';\nimport { CreateFecFile, DeleteFecFile, ReadFecFile, IFecFile, CreateMappingFecFile, QueryFecFile } from '../../types';\n\nexport class FecFile extends Resource {\n get(): Promise<IFecFile> {\n return this.axios.$get('fec-file');\n }\n\n download(): Promise<any> {\n return this.axios.$get('fec-file/download', { responseType: 'blob' });\n }\n\n export(idExercice: number, payload?: QueryFecFile): Promise<any> {\n return this.axios.$get(`fec-file/exercice/${idExercice}/export`, {\n ...payload,\n responseType: 'blob',\n });\n }\n\n create(params: CreateFecFile): Promise<ReadFecFile> {\n return this.axios.$post('fec-file', params);\n }\n\n map(params: CreateMappingFecFile): Promise<IFecFile> {\n return this.axios.$post('fec-file/mapping', params);\n }\n\n delete(): Promise<DeleteFecFile> {\n return this.axios.$delete('fec-file');\n }\n\n getBySociety(idSociety: number): Promise<IFecFile | null> {\n return this.axios.$get(`societies/${idSociety}/fec-file`);\n }\n\n downloadBySociety(idSociety: number): Promise<any> {\n return this.axios.$get(`societies/${idSociety}/fec-file/download`, { responseType: 'blob' });\n }\n\n createBySociety(idSociety: number, params: CreateFecFile): Promise<ReadFecFile> {\n return this.axios.$post(`societies/${idSociety}/fec-file`, params);\n }\n\n mapBySociety(idSociety: number, params: CreateMappingFecFile): Promise<IFecFile> {\n return this.axios.$post(`societies/${idSociety}/fec-file/mapping`, params);\n }\n\n deleteBySociety(idSociety: number): Promise<DeleteFecFile> {\n return this.axios.$delete(`societies/${idSociety}/fec-file`);\n }\n\n exportBySociety(idSociety: number, idExercice: number): Promise<any> {\n return this.axios.$get(`societies/${idSociety}/fec-file/exercice/${idExercice}/export`, {\n responseType: 'blob',\n });\n }\n}\n"]}
1
+ {"version":3,"file":"FecFile.js","sourceRoot":"","sources":["../../../../ts/api/resources/FecFile.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAGvC,MAAa,OAAQ,SAAQ,mBAAQ;IACnC,GAAG;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACrC,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;IACxE,CAAC;IAED,MAAM,CAAC,UAAkB,EAAE,OAAsB;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,UAAU,SAAS,kCAC1D,OAAO,KACV,YAAY,EAAE,MAAM,IACpB,CAAC;IACL,CAAC;IAED,MAAM,CAAC,MAAqB;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAC9C,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACxC,CAAC;IAED,YAAY,CAAC,SAAiB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,SAAS,WAAW,CAAC,CAAC;IAC5D,CAAC;IAED,iBAAiB,CAAC,SAAiB;QACjC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,SAAS,oBAAoB,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED,eAAe,CAAC,SAAiB,EAAE,MAAqB;QACtD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,SAAS,WAAW,EAAE,MAAM,CAAC,CAAC;IACrE,CAAC;IAED,YAAY,CAAC,SAAiB,EAAE,MAA4B;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,SAAS,mBAAmB,EAAE,MAAM,CAAC,CAAC;IAC7E,CAAC;IAED,eAAe,CAAC,SAAiB;QAC/B,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,SAAS,WAAW,CAAC,CAAC;IAC/D,CAAC;IAED,eAAe,CAAC,SAAiB,EAAE,UAAkB;QACnD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,SAAS,sBAAsB,UAAU,SAAS,EAAE;YACtF,YAAY,EAAE,MAAM;SACrB,CAAC,CAAC;IACL,CAAC;CACF;AAjDD,0BAiDC","sourcesContent":["import { Resource } from '../Resource';\nimport { CreateFecFile, DeleteFecFile, ReadFecFile, IFecFile, CreateMappingFecFile, QueryFecFile } from '../../types';\n\nexport class FecFile extends Resource {\n get(): Promise<IFecFile> {\n return this.axios.$get('fec-file');\n }\n\n download(): Promise<any> {\n return this.axios.$get('fec-file/download', { responseType: 'blob' });\n }\n\n export(idExercice: number, payload?: QueryFecFile): Promise<any> {\n return this.axios.$get(`fec-file/exercice/${idExercice}/export`, {\n ...payload,\n responseType: 'blob',\n });\n }\n\n create(params: CreateFecFile): Promise<ReadFecFile> {\n return this.axios.$post('fec-file', params);\n }\n\n delete(): Promise<DeleteFecFile> {\n return this.axios.$delete('fec-file');\n }\n\n getBySociety(idSociety: number): Promise<IFecFile | null> {\n return this.axios.$get(`societies/${idSociety}/fec-file`);\n }\n\n downloadBySociety(idSociety: number): Promise<any> {\n return this.axios.$get(`societies/${idSociety}/fec-file/download`, { responseType: 'blob' });\n }\n\n createBySociety(idSociety: number, params: CreateFecFile): Promise<ReadFecFile> {\n return this.axios.$post(`societies/${idSociety}/fec-file`, params);\n }\n\n mapBySociety(idSociety: number, params: CreateMappingFecFile): Promise<IFecFile> {\n return this.axios.$post(`societies/${idSociety}/fec-file/mapping`, params);\n }\n\n deleteBySociety(idSociety: number): Promise<DeleteFecFile> {\n return this.axios.$delete(`societies/${idSociety}/fec-file`);\n }\n\n exportBySociety(idSociety: number, idExercice: number): Promise<any> {\n return this.axios.$get(`societies/${idSociety}/fec-file/exercice/${idExercice}/export`, {\n responseType: 'blob',\n });\n }\n}\n"]}
@@ -1,4 +1,10 @@
1
1
  export interface ReadAccountingIncome {
2
2
  income: number;
3
+ defaultValues: {
4
+ otherAdditions: Array<{
5
+ label: string;
6
+ amount: number;
7
+ }>;
8
+ };
3
9
  }
4
10
  //# sourceMappingURL=ReadAccountingIncome.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReadAccountingIncome.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingIncome/ReadAccountingIncome.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"ReadAccountingIncome.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingIncome/ReadAccountingIncome.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE;QACb,cAAc,EAAE,KAAK,CAAC;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KAC1D,CAAC;CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"ReadAccountingIncome.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingIncome/ReadAccountingIncome.ts"],"names":[],"mappings":"","sourcesContent":["export interface ReadAccountingIncome {\n income: number;\n}\n"]}
1
+ {"version":3,"file":"ReadAccountingIncome.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingIncome/ReadAccountingIncome.ts"],"names":[],"mappings":"","sourcesContent":["export interface ReadAccountingIncome {\n income: number;\n defaultValues: {\n otherAdditions: Array<{ label: string; amount: number }>;\n };\n}\n"]}
@@ -8,5 +8,6 @@ export declare class CreateFecFile {
8
8
  export declare class CreateMappingFecFile {
9
9
  mapping?: MappingFecFile;
10
10
  disableRetainingEarnings?: boolean;
11
+ shouldRemoveTransactionsBeforeEndDate?: boolean;
11
12
  }
12
13
  //# sourceMappingURL=CreateFecFile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateFecFile.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/fecFile/CreateFecFile.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/C,qBAAa,aAAa;IAExB,IAAI,CAAC,EAAE,KAAK,CAAC;IAEb,SAAS,EAAE,gBAAgB,CAAC;CAC7B;AACD,qBAAa,oBAAoB;IAE/B,OAAO,CAAC,EAAE,cAAc,CAAC;IAMzB,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC"}
1
+ {"version":3,"file":"CreateFecFile.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/fecFile/CreateFecFile.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/C,qBAAa,aAAa;IAExB,IAAI,CAAC,EAAE,KAAK,CAAC;IAEb,SAAS,EAAE,gBAAgB,CAAC;CAC7B;AACD,qBAAa,oBAAoB;IAE/B,OAAO,CAAC,EAAE,cAAc,CAAC;IAMzB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAMnC,qCAAqC,CAAC,EAAE,OAAO,CAAC;CACjD"}
@@ -39,4 +39,11 @@ __decorate([
39
39
  (0, boolean_transform_1.ToBoolean)(),
40
40
  __metadata("design:type", Boolean)
41
41
  ], CreateMappingFecFile.prototype, "disableRetainingEarnings", void 0);
42
+ __decorate([
43
+ (0, utils_1.ApiPropertyOptional)({ description: 'If true, delete the transactions before the end date of the new exercise.' }),
44
+ (0, class_validator_1.IsOptional)(),
45
+ (0, class_validator_1.IsBoolean)(),
46
+ (0, boolean_transform_1.ToBoolean)(),
47
+ __metadata("design:type", Boolean)
48
+ ], CreateMappingFecFile.prototype, "shouldRemoveTransactionsBeforeEndDate", void 0);
42
49
  //# sourceMappingURL=CreateFecFile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateFecFile.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/fecFile/CreateFecFile.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwD;AACxD,6CAAqE;AACrE,qEAAkE;AAGlE,sFAA2E;AAE3E,MAAa,aAAa;CAKzB;AALD,sCAKC;AAHC;IADC,IAAA,mBAAW,GAAE;;2CACD;AAEb;IADC,IAAA,mBAAW,GAAE;;gDACc;AAE9B,MAAa,oBAAoB;CAShC;AATD,oDASC;AAPC;IADC,IAAA,mBAAW,GAAE;;qDACW;AAMzB;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;sEACuB","sourcesContent":["import { IsBoolean, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { FecFileDelimiter } from '../../../Enum/FecFileDelimiter';\nimport { TFile } from '../file/TFile';\nimport { MappingFecFile } from './ReadFecFile';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateFecFile {\n @ApiProperty()\n file?: TFile;\n @ApiProperty()\n delimiter: FecFileDelimiter;\n}\nexport class CreateMappingFecFile {\n @ApiProperty()\n mapping?: MappingFecFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n disableRetainingEarnings?: boolean;\n}\n"]}
1
+ {"version":3,"file":"CreateFecFile.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/fecFile/CreateFecFile.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwD;AACxD,6CAAqE;AACrE,qEAAkE;AAGlE,sFAA2E;AAE3E,MAAa,aAAa;CAKzB;AALD,sCAKC;AAHC;IADC,IAAA,mBAAW,GAAE;;2CACD;AAEb;IADC,IAAA,mBAAW,GAAE;;gDACc;AAE9B,MAAa,oBAAoB;CAehC;AAfD,oDAeC;AAbC;IADC,IAAA,mBAAW,GAAE;;qDACW;AAMzB;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;sEACuB;AAMnC;IAJC,IAAA,2BAAmB,EAAC,EAAE,WAAW,EAAE,2EAA2E,EAAE,CAAC;IACjH,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;mFACoC","sourcesContent":["import { IsBoolean, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { FecFileDelimiter } from '../../../Enum/FecFileDelimiter';\nimport { TFile } from '../file/TFile';\nimport { MappingFecFile } from './ReadFecFile';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateFecFile {\n @ApiProperty()\n file?: TFile;\n @ApiProperty()\n delimiter: FecFileDelimiter;\n}\nexport class CreateMappingFecFile {\n @ApiProperty()\n mapping?: MappingFecFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n disableRetainingEarnings?: boolean;\n\n @ApiPropertyOptional({ description: 'If true, delete the transactions before the end date of the new exercise.' })\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldRemoveTransactionsBeforeEndDate?: boolean;\n}\n"]}
@@ -5,7 +5,6 @@ export declare class FecFile extends Resource {
5
5
  download(): Promise<any>;
6
6
  export(idExercice: number, payload?: QueryFecFile): Promise<any>;
7
7
  create(params: CreateFecFile): Promise<ReadFecFile>;
8
- map(params: CreateMappingFecFile): Promise<IFecFile>;
9
8
  delete(): Promise<DeleteFecFile>;
10
9
  getBySociety(idSociety: number): Promise<IFecFile | null>;
11
10
  downloadBySociety(idSociety: number): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"FecFile.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/FecFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEtH,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC;IAIxB,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC;IAIxB,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,GAAG,CA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M,IAAI,OAAO,CAAC,aAAa,CAAC;IAIhC,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAIzD,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAIlD,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC;IAI/E,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIhF,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAI1D,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;CAKrE"}
@@ -15,9 +15,6 @@ export class FecFile extends Resource {
15
15
  create(params) {
16
16
  return this.axios.$post('fec-file', params);
17
17
  }
18
- map(params) {
19
- return this.axios.$post('fec-file/mapping', params);
20
- }
21
18
  delete() {
22
19
  return this.axios.$delete('fec-file');
23
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FecFile.js","sourceRoot":"","sources":["../../../../ts/api/resources/FecFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IACnC,GAAG;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACrC,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;IACxE,CAAC;IAED,MAAM,CAAC,UAAkB,EAAE,OAAsB;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,UAAU,SAAS,EAAE;YAC/D,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CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { CreateFecFile, DeleteFecFile, ReadFecFile, IFecFile, CreateMappingFecFile, QueryFecFile } from '../../types';\n\nexport class FecFile extends Resource {\n get(): Promise<IFecFile> {\n return this.axios.$get('fec-file');\n }\n\n download(): Promise<any> {\n return this.axios.$get('fec-file/download', { responseType: 'blob' });\n }\n\n export(idExercice: number, payload?: QueryFecFile): Promise<any> {\n return this.axios.$get(`fec-file/exercice/${idExercice}/export`, {\n ...payload,\n responseType: 'blob',\n });\n }\n\n create(params: CreateFecFile): Promise<ReadFecFile> {\n return this.axios.$post('fec-file', params);\n }\n\n map(params: CreateMappingFecFile): Promise<IFecFile> {\n return this.axios.$post('fec-file/mapping', params);\n }\n\n delete(): Promise<DeleteFecFile> {\n return this.axios.$delete('fec-file');\n }\n\n getBySociety(idSociety: number): Promise<IFecFile | null> {\n return this.axios.$get(`societies/${idSociety}/fec-file`);\n }\n\n downloadBySociety(idSociety: number): Promise<any> {\n return this.axios.$get(`societies/${idSociety}/fec-file/download`, { responseType: 'blob' });\n }\n\n createBySociety(idSociety: number, params: CreateFecFile): Promise<ReadFecFile> {\n return this.axios.$post(`societies/${idSociety}/fec-file`, params);\n }\n\n mapBySociety(idSociety: number, params: CreateMappingFecFile): Promise<IFecFile> {\n return this.axios.$post(`societies/${idSociety}/fec-file/mapping`, params);\n }\n\n deleteBySociety(idSociety: number): Promise<DeleteFecFile> {\n return this.axios.$delete(`societies/${idSociety}/fec-file`);\n }\n\n exportBySociety(idSociety: number, idExercice: number): Promise<any> {\n return this.axios.$get(`societies/${idSociety}/fec-file/exercice/${idExercice}/export`, {\n responseType: 'blob',\n });\n }\n}\n"]}
1
+ {"version":3,"file":"FecFile.js","sourceRoot":"","sources":["../../../../ts/api/resources/FecFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IACnC,GAAG;Q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AS,WAAW,CAAC,CAAC;IAC/D,CAAC;IAED,eAAe,CAAC,SAAiB,EAAE,UAAkB;QACnD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,SAAS,sBAAsB,UAAU,SAAS,EAAE;YACtF,YAAY,EAAE,MAAM;SACrB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { CreateFecFile, DeleteFecFile, ReadFecFile, IFecFile, CreateMappingFecFile, QueryFecFile } from '../../types';\n\nexport class FecFile extends Resource {\n get(): Promise<IFecFile> {\n return this.axios.$get('fec-file');\n }\n\n download(): Promise<any> {\n return this.axios.$get('fec-file/download', { responseType: 'blob' });\n }\n\n export(idExercice: number, payload?: QueryFecFile): Promise<any> {\n return this.axios.$get(`fec-file/exercice/${idExercice}/export`, {\n ...payload,\n responseType: 'blob',\n });\n }\n\n create(params: CreateFecFile): Promise<ReadFecFile> {\n return this.axios.$post('fec-file', params);\n }\n\n delete(): Promise<DeleteFecFile> {\n return this.axios.$delete('fec-file');\n }\n\n getBySociety(idSociety: number): Promise<IFecFile | null> {\n return this.axios.$get(`societies/${idSociety}/fec-file`);\n }\n\n downloadBySociety(idSociety: number): Promise<any> {\n return this.axios.$get(`societies/${idSociety}/fec-file/download`, { responseType: 'blob' });\n }\n\n createBySociety(idSociety: number, params: CreateFecFile): Promise<ReadFecFile> {\n return this.axios.$post(`societies/${idSociety}/fec-file`, params);\n }\n\n mapBySociety(idSociety: number, params: CreateMappingFecFile): Promise<IFecFile> {\n return this.axios.$post(`societies/${idSociety}/fec-file/mapping`, params);\n }\n\n deleteBySociety(idSociety: number): Promise<DeleteFecFile> {\n return this.axios.$delete(`societies/${idSociety}/fec-file`);\n }\n\n exportBySociety(idSociety: number, idExercice: number): Promise<any> {\n return this.axios.$get(`societies/${idSociety}/fec-file/exercice/${idExercice}/export`, {\n responseType: 'blob',\n });\n }\n}\n"]}
@@ -1,4 +1,10 @@
1
1
  export interface ReadAccountingIncome {
2
2
  income: number;
3
+ defaultValues: {
4
+ otherAdditions: Array<{
5
+ label: string;
6
+ amount: number;
7
+ }>;
8
+ };
3
9
  }
4
10
  //# sourceMappingURL=ReadAccountingIncome.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReadAccountingIncome.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingIncome/ReadAccountingIncome.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"ReadAccountingIncome.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingIncome/ReadAccountingIncome.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE;QACb,cAAc,EAAE,KAAK,CAAC;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KAC1D,CAAC;CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"ReadAccountingIncome.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingIncome/ReadAccountingIncome.ts"],"names":[],"mappings":"","sourcesContent":["export interface ReadAccountingIncome {\n income: number;\n}\n"]}
1
+ {"version":3,"file":"ReadAccountingIncome.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/accountingIncome/ReadAccountingIncome.ts"],"names":[],"mappings":"","sourcesContent":["export interface ReadAccountingIncome {\n income: number;\n defaultValues: {\n otherAdditions: Array<{ label: string; amount: number }>;\n };\n}\n"]}
@@ -8,5 +8,6 @@ export declare class CreateFecFile {
8
8
  export declare class CreateMappingFecFile {
9
9
  mapping?: MappingFecFile;
10
10
  disableRetainingEarnings?: boolean;
11
+ shouldRemoveTransactionsBeforeEndDate?: boolean;
11
12
  }
12
13
  //# sourceMappingURL=CreateFecFile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateFecFile.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/fecFile/CreateFecFile.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/C,qBAAa,aAAa;IAExB,IAAI,CAAC,EAAE,KAAK,CAAC;IAEb,SAAS,EAAE,gBAAgB,CAAC;CAC7B;AACD,qBAAa,oBAAoB;IAE/B,OAAO,CAAC,EAAE,cAAc,CAAC;IAMzB,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC"}
1
+ {"version":3,"file":"CreateFecFile.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/fecFile/CreateFecFile.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/C,qBAAa,aAAa;IAExB,IAAI,CAAC,EAAE,KAAK,CAAC;IAEb,SAAS,EAAE,gBAAgB,CAAC;CAC7B;AACD,qBAAa,oBAAoB;IAE/B,OAAO,CAAC,EAAE,cAAc,CAAC;IAMzB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAMnC,qCAAqC,CAAC,EAAE,OAAO,CAAC;CACjD"}
@@ -26,6 +26,7 @@ __decorate([
26
26
  export class CreateMappingFecFile {
27
27
  mapping;
28
28
  disableRetainingEarnings;
29
+ shouldRemoveTransactionsBeforeEndDate;
29
30
  }
30
31
  __decorate([
31
32
  ApiProperty(),
@@ -38,4 +39,11 @@ __decorate([
38
39
  ToBoolean(),
39
40
  __metadata("design:type", Boolean)
40
41
  ], CreateMappingFecFile.prototype, "disableRetainingEarnings", void 0);
42
+ __decorate([
43
+ ApiPropertyOptional({ description: 'If true, delete the transactions before the end date of the new exercise.' }),
44
+ IsOptional(),
45
+ IsBoolean(),
46
+ ToBoolean(),
47
+ __metadata("design:type", Boolean)
48
+ ], CreateMappingFecFile.prototype, "shouldRemoveTransactionsBeforeEndDate", void 0);
41
49
  //# sourceMappingURL=CreateFecFile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateFecFile.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/fecFile/CreateFecFile.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGlE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,aAAa;IAExB,IAAI,CAAS;IAEb,SAAS,CAAmB;CAC7B;AAHC;IADC,WAAW,EAAE;;2CACD;AAEb;IADC,WAAW,EAAE;;gDACc;AAE9B,MAAM,OAAO,oBAAoB;IAE/B,OAAO,CAAkB;IAMzB,wBAAwB,CAAW;CACpC;AAPC;IADC,WAAW,EAAE;;qDACW;AAMzB;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;sEACuB","sourcesContent":["import { IsBoolean, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { FecFileDelimiter } from '../../../Enum/FecFileDelimiter';\nimport { TFile } from '../file/TFile';\nimport { MappingFecFile } from './ReadFecFile';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateFecFile {\n @ApiProperty()\n file?: TFile;\n @ApiProperty()\n delimiter: FecFileDelimiter;\n}\nexport class CreateMappingFecFile {\n @ApiProperty()\n mapping?: MappingFecFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n disableRetainingEarnings?: boolean;\n}\n"]}
1
+ {"version":3,"file":"CreateFecFile.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/fecFile/CreateFecFile.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGlE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,aAAa;IAExB,IAAI,CAAS;IAEb,SAAS,CAAmB;CAC7B;AAHC;IADC,WAAW,EAAE;;2CACD;AAEb;IADC,WAAW,EAAE;;gDACc;AAE9B,MAAM,OAAO,oBAAoB;IAE/B,OAAO,CAAkB;IAMzB,wBAAwB,CAAW;IAMnC,qCAAqC,CAAW;CACjD;AAbC;IADC,WAAW,EAAE;;qDACW;AAMzB;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;sEACuB;AAMnC;IAJC,mBAAmB,CAAC,EAAE,WAAW,EAAE,2EAA2E,EAAE,CAAC;IACjH,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;mFACoC","sourcesContent":["import { IsBoolean, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { FecFileDelimiter } from '../../../Enum/FecFileDelimiter';\nimport { TFile } from '../file/TFile';\nimport { MappingFecFile } from './ReadFecFile';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateFecFile {\n @ApiProperty()\n file?: TFile;\n @ApiProperty()\n delimiter: FecFileDelimiter;\n}\nexport class CreateMappingFecFile {\n @ApiProperty()\n mapping?: MappingFecFile;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n disableRetainingEarnings?: boolean;\n\n @ApiPropertyOptional({ description: 'If true, delete the transactions before the end date of the new exercise.' })\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldRemoveTransactionsBeforeEndDate?: boolean;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.3.104",
3
+ "version": "1.3.105",
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": "dist/cjs/index.js",
@@ -21,10 +21,6 @@ export class FecFile extends Resource {
21
21
  return this.axios.$post('fec-file', params);
22
22
  }
23
23
 
24
- map(params: CreateMappingFecFile): Promise<IFecFile> {
25
- return this.axios.$post('fec-file/mapping', params);
26
- }
27
-
28
24
  delete(): Promise<DeleteFecFile> {
29
25
  return this.axios.$delete('fec-file');
30
26
  }
@@ -1,3 +1,6 @@
1
1
  export interface ReadAccountingIncome {
2
2
  income: number;
3
+ defaultValues: {
4
+ otherAdditions: Array<{ label: string; amount: number }>;
5
+ };
3
6
  }
@@ -20,4 +20,10 @@ export class CreateMappingFecFile {
20
20
  @IsBoolean()
21
21
  @ToBoolean()
22
22
  disableRetainingEarnings?: boolean;
23
+
24
+ @ApiPropertyOptional({ description: 'If true, delete the transactions before the end date of the new exercise.' })
25
+ @IsOptional()
26
+ @IsBoolean()
27
+ @ToBoolean()
28
+ shouldRemoveTransactionsBeforeEndDate?: boolean;
23
29
  }