@silexpert/core 1.0.191 → 1.0.192
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/api/resources/AccountingFiles.d.ts.map +1 -1
- package/es/api/resources/AccountingFiles.js +4 -1
- package/es/api/resources/AccountingFiles.js.map +1 -1
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -1
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js +1 -1
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/js/api/resources/AccountingFiles.js +4 -1
- package/js/api/resources/AccountingFiles.js.map +1 -1
- package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js +1 -1
- package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/AccountingFiles.ts +4 -1
- package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountingFiles.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/AccountingFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,kCAAkC,EAC1G,MAAM,aAAa,CAAC;AAErB,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,kCAAkC,EAAE,GAAG,eAAe,EAAE,CAAE;
|
|
1
|
+
{"version":3,"file":"AccountingFiles.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/AccountingFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,kCAAkC,EAC1G,MAAM,aAAa,CAAC;AAErB,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,kCAAkC,EAAE,GAAG,eAAe,EAAE,CAAE;IAkBhH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjC,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;CAGlG"}
|
|
@@ -6,10 +6,13 @@ export class AccountingFiles extends Resource {
|
|
|
6
6
|
sendAccountingFiles.append('isPayPerso', params.isPayPerso.toString());
|
|
7
7
|
sendAccountingFiles.append('split', params.split.toString());
|
|
8
8
|
sendAccountingFiles.append('bypassOcr', params.bypassOcr.toString());
|
|
9
|
+
if (params.emissionDate) {
|
|
10
|
+
sendAccountingFiles.append('emissionDate', params.emissionDate.toString());
|
|
11
|
+
}
|
|
9
12
|
params.files.forEach((file) => {
|
|
10
13
|
sendAccountingFiles.append('files', file);
|
|
11
14
|
});
|
|
12
|
-
return this.axios.$post('/society/accountingFiles',
|
|
15
|
+
return this.axios.$post('/society/accountingFiles', sendAccountingFiles, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
13
16
|
}
|
|
14
17
|
delete(id) {
|
|
15
18
|
return this.axios.$delete(`/accounting-files/${id}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountingFiles.js","sourceRoot":"","sources":["../../../ts/api/resources/AccountingFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAKvC,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAC3C,cAAc,CAAC,MAA4B;QACzC,MAAM,mBAAmB,GAAG,IAAI,QAAQ,EAAE,CAAC;QAE3C,mBAAmB,CAAC,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,CAAC;QACnF,mBAAmB,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;QACvE,mBAAmB,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC7D,mBAAmB,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"AccountingFiles.js","sourceRoot":"","sources":["../../../ts/api/resources/AccountingFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAKvC,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAC3C,cAAc,CAAC,MAA4B;QACzC,MAAM,mBAAmB,GAAG,IAAI,QAAQ,EAAE,CAAC;QAE3C,mBAAmB,CAAC,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,CAAC;QACnF,mBAAmB,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;QACvE,mBAAmB,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC7D,mBAAmB,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;QACrE,IAAI,MAAM,CAAC,YAAY,EAAE;YACvB,mBAAmB,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC;SAC5E;QAED,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YAC5B,mBAAmB,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,0BAA0B,EAAE,mBAAmB,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,qBAAqB,EAAE,EAAE,CAAC,CAAC;IACnI,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAC;IACvD,CAAC;IAED,YAAY,CAAC,SAAiB,EAAE,MAAwB;QACtD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,SAAS,kBAAkB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate, IAccountingFile, QueryAccountingFiles, QueryTransaction, ReadFormattedAccountingTransaction,\n} from '../../types';\n\nexport class AccountingFiles extends Resource {\n accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[] | IAccountingFile[] > {\n const sendAccountingFiles = new FormData();\n\n sendAccountingFiles.append('idAccountingType', params.idAccountingType.toString());\n sendAccountingFiles.append('isPayPerso', params.isPayPerso.toString());\n sendAccountingFiles.append('split', params.split.toString());\n sendAccountingFiles.append('bypassOcr', params.bypassOcr.toString());\n if (params.emissionDate) {\n sendAccountingFiles.append('emissionDate', params.emissionDate.toString());\n }\n\n params.files.forEach((file) => {\n sendAccountingFiles.append('files', file);\n });\n\n return this.axios.$post('/society/accountingFiles', sendAccountingFiles, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n delete(id: number): Promise<true> {\n return this.axios.$delete(`/accounting-files/${id}`);\n }\n\n getPaginated(idSociety: number, params: QueryTransaction): Promise<BasePaginate<IAccountingFile>> {\n return this.axios.$get(`/society/${idSociety}/accountingFiles`, { params });\n }\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryAccountingFiles.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts"],"names":[],"mappings":"AAGA,qBAAa,oBAAoB;IAE/B,gBAAgB,EAAE,MAAM,CAAC;IAIzB,KAAK,EAAE,OAAO,CAAC;IAIf,UAAU,EAAE,OAAO,CAAC;IAIpB,SAAS,EAAE,OAAO,CAAC;IAGnB,KAAK,EAAE,IAAI,EAAE,CAAC;IAGd,YAAY,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"queryAccountingFiles.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts"],"names":[],"mappings":"AAGA,qBAAa,oBAAoB;IAE/B,gBAAgB,EAAE,MAAM,CAAC;IAIzB,KAAK,EAAE,OAAO,CAAC;IAIf,UAAU,EAAE,OAAO,CAAC;IAIpB,SAAS,EAAE,OAAO,CAAC;IAGnB,KAAK,EAAE,IAAI,EAAE,CAAC;IAGd,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -36,6 +36,6 @@ __decorate([
|
|
|
36
36
|
], QueryAccountingFiles.prototype, "files", void 0);
|
|
37
37
|
__decorate([
|
|
38
38
|
ApiPropertyOptional(),
|
|
39
|
-
__metadata("design:type",
|
|
39
|
+
__metadata("design:type", String)
|
|
40
40
|
], QueryAccountingFiles.prototype, "emissionDate", void 0);
|
|
41
41
|
//# sourceMappingURL=queryAccountingFiles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryAccountingFiles.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,oBAAoB;CAqBhC;AApBC;IAAC,WAAW,EAAE;;8DACW;AAEzB;IAAC,WAAW,EAAE;IACb,SAAS,EAAE;;mDACG;AAEf;IAAC,WAAW,EAAE;IACb,SAAS,EAAE;;wDACQ;AAEpB;IAAC,WAAW,EAAE;IACb,SAAS,EAAE;;uDACO;AAEnB;IAAC,WAAW,EAAE;;mDACA;AAEd;IAAC,mBAAmB,EAAE
|
|
1
|
+
{"version":3,"file":"queryAccountingFiles.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,oBAAoB;CAqBhC;AApBC;IAAC,WAAW,EAAE;;8DACW;AAEzB;IAAC,WAAW,EAAE;IACb,SAAS,EAAE;;mDACG;AAEf;IAAC,WAAW,EAAE;IACb,SAAS,EAAE;;wDACQ;AAEpB;IAAC,WAAW,EAAE;IACb,SAAS,EAAE;;uDACO;AAEnB;IAAC,WAAW,EAAE;;mDACA;AAEd;IAAC,mBAAmB,EAAE;;0DACA","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryAccountingFiles {\n @ApiProperty()\n idAccountingType: number;\n\n @ApiProperty()\n @ToBoolean()\n split: boolean;\n\n @ApiProperty()\n @ToBoolean()\n isPayPerso: boolean;\n\n @ApiProperty()\n @ToBoolean()\n bypassOcr: boolean;\n\n @ApiProperty()\n files: File[];\n\n @ApiPropertyOptional()\n emissionDate?: string;\n}"]}
|
|
@@ -12,10 +12,13 @@ class AccountingFiles extends _Resource.Resource {
|
|
|
12
12
|
sendAccountingFiles.append('isPayPerso', params.isPayPerso.toString());
|
|
13
13
|
sendAccountingFiles.append('split', params.split.toString());
|
|
14
14
|
sendAccountingFiles.append('bypassOcr', params.bypassOcr.toString());
|
|
15
|
+
if (params.emissionDate) {
|
|
16
|
+
sendAccountingFiles.append('emissionDate', params.emissionDate.toString());
|
|
17
|
+
}
|
|
15
18
|
params.files.forEach(file => {
|
|
16
19
|
sendAccountingFiles.append('files', file);
|
|
17
20
|
});
|
|
18
|
-
return this.axios.$post('/society/accountingFiles',
|
|
21
|
+
return this.axios.$post('/society/accountingFiles', sendAccountingFiles, {
|
|
19
22
|
headers: {
|
|
20
23
|
'Content-Type': 'multipart/form-data'
|
|
21
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountingFiles.js","names":["_Resource","require","AccountingFiles","Resource","accountingFile","params","sendAccountingFiles","FormData","append","idAccountingType","toString","isPayPerso","split","bypassOcr","files","forEach","file","axios","$post","headers","delete","id","$delete","getPaginated","idSociety","$get","exports"],"sources":["../../../ts/api/resources/AccountingFiles.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate, IAccountingFile, QueryAccountingFiles, QueryTransaction, ReadFormattedAccountingTransaction,\n} from '../../types';\n\nexport class AccountingFiles extends Resource {\n accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[] | IAccountingFile[] > {\n const sendAccountingFiles = new FormData();\n\n sendAccountingFiles.append('idAccountingType', params.idAccountingType.toString());\n sendAccountingFiles.append('isPayPerso', params.isPayPerso.toString());\n sendAccountingFiles.append('split', params.split.toString());\n sendAccountingFiles.append('bypassOcr', params.bypassOcr.toString());\n\n params.files.forEach((file) => {\n sendAccountingFiles.append('files', file);\n });\n\n return this.axios.$post('/society/accountingFiles',
|
|
1
|
+
{"version":3,"file":"AccountingFiles.js","names":["_Resource","require","AccountingFiles","Resource","accountingFile","params","sendAccountingFiles","FormData","append","idAccountingType","toString","isPayPerso","split","bypassOcr","emissionDate","files","forEach","file","axios","$post","headers","delete","id","$delete","getPaginated","idSociety","$get","exports"],"sources":["../../../ts/api/resources/AccountingFiles.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate, IAccountingFile, QueryAccountingFiles, QueryTransaction, ReadFormattedAccountingTransaction,\n} from '../../types';\n\nexport class AccountingFiles extends Resource {\n accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[] | IAccountingFile[] > {\n const sendAccountingFiles = new FormData();\n\n sendAccountingFiles.append('idAccountingType', params.idAccountingType.toString());\n sendAccountingFiles.append('isPayPerso', params.isPayPerso.toString());\n sendAccountingFiles.append('split', params.split.toString());\n sendAccountingFiles.append('bypassOcr', params.bypassOcr.toString());\n if (params.emissionDate) {\n sendAccountingFiles.append('emissionDate', params.emissionDate.toString());\n }\n\n params.files.forEach((file) => {\n sendAccountingFiles.append('files', file);\n });\n\n return this.axios.$post('/society/accountingFiles', sendAccountingFiles, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n delete(id: number): Promise<true> {\n return this.axios.$delete(`/accounting-files/${id}`);\n }\n\n getPaginated(idSociety: number, params: QueryTransaction): Promise<BasePaginate<IAccountingFile>> {\n return this.axios.$get(`/society/${idSociety}/accountingFiles`, { params });\n }\n}"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAKM,MAAOC,eAAgB,SAAQC,kBAAQ;EAC3CC,cAAcA,CAACC,MAA4B;IACzC,MAAMC,mBAAmB,GAAG,IAAIC,QAAQ,EAAE;IAE1CD,mBAAmB,CAACE,MAAM,CAAC,kBAAkB,EAAEH,MAAM,CAACI,gBAAgB,CAACC,QAAQ,EAAE,CAAC;IAClFJ,mBAAmB,CAACE,MAAM,CAAC,YAAY,EAAEH,MAAM,CAACM,UAAU,CAACD,QAAQ,EAAE,CAAC;IACtEJ,mBAAmB,CAACE,MAAM,CAAC,OAAO,EAAEH,MAAM,CAACO,KAAK,CAACF,QAAQ,EAAE,CAAC;IAC5DJ,mBAAmB,CAACE,MAAM,CAAC,WAAW,EAAEH,MAAM,CAACQ,SAAS,CAACH,QAAQ,EAAE,CAAC;IACpE,IAAIL,MAAM,CAACS,YAAY,EAAE;MACvBR,mBAAmB,CAACE,MAAM,CAAC,cAAc,EAAEH,MAAM,CAACS,YAAY,CAACJ,QAAQ,EAAE,CAAC;;IAG5EL,MAAM,CAACU,KAAK,CAACC,OAAO,CAAEC,IAAI,IAAI;MAC5BX,mBAAmB,CAACE,MAAM,CAAC,OAAO,EAAES,IAAI,CAAC;IAC3C,CAAC,CAAC;IAEF,OAAO,IAAI,CAACC,KAAK,CAACC,KAAK,CAAC,0BAA0B,EAAEb,mBAAmB,EAAE;MAAEc,OAAO,EAAE;QAAE,cAAc,EAAE;MAAqB;IAAE,CAAE,CAAC;EAClI;EAEAC,MAAMA,CAACC,EAAU;IACf,OAAO,IAAI,CAACJ,KAAK,CAACK,OAAO,CAAC,qBAAqBD,EAAE,EAAE,CAAC;EACtD;EAEAE,YAAYA,CAACC,SAAiB,EAAEpB,MAAwB;IACtD,OAAO,IAAI,CAACa,KAAK,CAACQ,IAAI,CAAC,YAAYD,SAAS,kBAAkB,EAAE;MAAEpB;IAAM,CAAE,CAAC;EAC7E;;AACDsB,OAAA,CA1BYzB,eAAgB,GAAhBA,eAAgB"}
|
|
@@ -23,5 +23,5 @@ __decorate([(0, _utils.ApiProperty)(), (0, _boolean.ToBoolean)(), __metadata("de
|
|
|
23
23
|
__decorate([(0, _utils.ApiProperty)(), (0, _boolean.ToBoolean)(), __metadata("design:type", Boolean)], QueryAccountingFiles.prototype, "isPayPerso", void 0);
|
|
24
24
|
__decorate([(0, _utils.ApiProperty)(), (0, _boolean.ToBoolean)(), __metadata("design:type", Boolean)], QueryAccountingFiles.prototype, "bypassOcr", void 0);
|
|
25
25
|
__decorate([(0, _utils.ApiProperty)(), __metadata("design:type", Array)], QueryAccountingFiles.prototype, "files", void 0);
|
|
26
|
-
__decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type",
|
|
26
|
+
__decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", String)], QueryAccountingFiles.prototype, "emissionDate", void 0);
|
|
27
27
|
//# sourceMappingURL=queryAccountingFiles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryAccountingFiles.js","names":["_utils","require","_boolean","QueryAccountingFiles","exports","__decorate","ApiProperty","ToBoolean","ApiPropertyOptional"
|
|
1
|
+
{"version":3,"file":"queryAccountingFiles.js","names":["_utils","require","_boolean","QueryAccountingFiles","exports","__decorate","ApiProperty","ToBoolean","ApiPropertyOptional"],"sources":["../../../../../ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts"],"sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryAccountingFiles {\n @ApiProperty()\n idAccountingType: number;\n\n @ApiProperty()\n @ToBoolean()\n split: boolean;\n\n @ApiProperty()\n @ToBoolean()\n isPayPerso: boolean;\n\n @ApiProperty()\n @ToBoolean()\n bypassOcr: boolean;\n\n @ApiProperty()\n files: File[];\n\n @ApiPropertyOptional()\n emissionDate?: string;\n}"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;;;;;;;;;;;AAEM,MAAOE,oBAAoB;AAqBhCC,OAAA,CArBYD,oBAAoB,GAApBA,oBAAoB;AAC/BE,UAAA,EAAC,IAAAC,kBAAW,GAAE,E,+FACW;AAEzBD,UAAA,EAAC,IAAAC,kBAAW,GAAE,EACb,IAAAC,kBAAS,GAAE,E,qFACG;AAEfF,UAAA,EAAC,IAAAC,kBAAW,GAAE,EACb,IAAAC,kBAAS,GAAE,E,0FACQ;AAEpBF,UAAA,EAAC,IAAAC,kBAAW,GAAE,EACb,IAAAC,kBAAS,GAAE,E,yFACO;AAEnBF,UAAA,EAAC,IAAAC,kBAAW,GAAE,E,mFACA;AAEdD,UAAA,EAAC,IAAAG,0BAAmB,GAAE,E,2FACA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.192",
|
|
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",
|
|
@@ -11,12 +11,15 @@ export class AccountingFiles extends Resource {
|
|
|
11
11
|
sendAccountingFiles.append('isPayPerso', params.isPayPerso.toString());
|
|
12
12
|
sendAccountingFiles.append('split', params.split.toString());
|
|
13
13
|
sendAccountingFiles.append('bypassOcr', params.bypassOcr.toString());
|
|
14
|
+
if (params.emissionDate) {
|
|
15
|
+
sendAccountingFiles.append('emissionDate', params.emissionDate.toString());
|
|
16
|
+
}
|
|
14
17
|
|
|
15
18
|
params.files.forEach((file) => {
|
|
16
19
|
sendAccountingFiles.append('files', file);
|
|
17
20
|
});
|
|
18
21
|
|
|
19
|
-
return this.axios.$post('/society/accountingFiles',
|
|
22
|
+
return this.axios.$post('/society/accountingFiles', sendAccountingFiles, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
20
23
|
}
|
|
21
24
|
|
|
22
25
|
delete(id: number): Promise<true> {
|