@silexpert/core 1.0.6 → 1.0.8
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 +1 -0
- package/es/api/resources/AccountingFiles.d.ts.map +1 -1
- package/es/api/resources/AccountingFiles.js +3 -0
- package/es/api/resources/AccountingFiles.js.map +1 -1
- package/es/api/resources/Invoice.d.ts +3 -1
- package/es/api/resources/Invoice.d.ts.map +1 -1
- package/es/api/resources/Invoice.js +6 -0
- package/es/api/resources/Invoice.js.map +1 -1
- package/es/api/resources/commercialDocument.d.ts +1 -4
- package/es/api/resources/commercialDocument.d.ts.map +1 -1
- package/es/api/resources/commercialDocument.js +0 -6
- package/es/api/resources/commercialDocument.js.map +1 -1
- package/es/types/Interface/models/IAccountingTransaction.d.ts +1 -1
- package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
- package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/es/types/Interface/models/ICommercialMail.d.ts +1 -3
- package/es/types/Interface/models/ICommercialMail.d.ts.map +1 -1
- package/es/types/Interface/models/ICommercialMail.js.map +1 -1
- package/es/types/Interface/models/IEngagementBankTransaction.d.ts +0 -2
- package/es/types/Interface/models/IEngagementBankTransaction.d.ts.map +1 -1
- package/es/types/Interface/models/IEngagementBankTransaction.js.map +1 -1
- package/es/types/Interface/models/IFile.d.ts +2 -0
- package/es/types/Interface/models/IFile.d.ts.map +1 -1
- package/es/types/Interface/models/IFile.js.map +1 -1
- package/es/types/Interface/models/IPartnerTransaction.d.ts +0 -1
- package/es/types/Interface/models/IPartnerTransaction.d.ts.map +1 -1
- package/es/types/Interface/models/IPartnerTransaction.js.map +1 -1
- package/js/api/resources/AccountingFiles.js +4 -0
- package/js/api/resources/AccountingFiles.js.map +1 -1
- package/js/api/resources/Invoice.js +8 -0
- package/js/api/resources/Invoice.js.map +1 -1
- package/js/api/resources/commercialDocument.js +0 -8
- package/js/api/resources/commercialDocument.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/AccountingFiles.ts +4 -0
- package/ts/api/resources/Invoice.ts +10 -0
- package/ts/api/resources/commercialDocument.ts +0 -10
- package/ts/types/Interface/models/IAccountingTransaction.ts +1 -1
- package/ts/types/Interface/models/ICommercialMail.ts +1 -5
- package/ts/types/Interface/models/IEngagementBankTransaction.ts +0 -2
- package/ts/types/Interface/models/IFile.ts +2 -0
- package/ts/types/Interface/models/IPartnerTransaction.ts +0 -1
|
@@ -2,5 +2,6 @@ import { Resource } from '../Resource';
|
|
|
2
2
|
import { QueryAccountingFiles, ReadFormattedAccountingTransaction } from '../../types';
|
|
3
3
|
export declare class AccountingFiles extends Resource {
|
|
4
4
|
accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[]>;
|
|
5
|
+
delete(id: number): Promise<true>;
|
|
5
6
|
}
|
|
6
7
|
//# sourceMappingURL=AccountingFiles.d.ts.map
|
|
@@ -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,EAAE,oBAAoB,EAAE,kCAAkC,EAAE,MAAM,aAAa,CAAC;AAEvF,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,kCAAkC,EAAE,CAAC;
|
|
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,EAAE,oBAAoB,EAAE,kCAAkC,EAAE,MAAM,aAAa,CAAC;AAEvF,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,kCAAkC,EAAE,CAAC;IAc3F,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGlC"}
|
|
@@ -10,5 +10,8 @@ export class AccountingFiles extends Resource {
|
|
|
10
10
|
});
|
|
11
11
|
return this.axios.$post('/society/accountingFiles', params, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
12
12
|
}
|
|
13
|
+
delete(id) {
|
|
14
|
+
return this.axios.$delete(`/accounting-files/${id}`);
|
|
15
|
+
}
|
|
13
16
|
}
|
|
14
17
|
//# sourceMappingURL=AccountingFiles.js.map
|
|
@@ -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;AAGvC,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;QAE7D,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,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,qBAAqB,EAAE,EAAE,CAAC,CAAC;IACtH,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { QueryAccountingFiles, ReadFormattedAccountingTransaction } from '../../types';\n\nexport class AccountingFiles extends Resource {\n accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[]> {\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\n params.files.forEach((file) => {\n sendAccountingFiles.append('files', file);\n });\n\n return this.axios.$post('/society/accountingFiles', params, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n}"]}
|
|
1
|
+
{"version":3,"file":"AccountingFiles.js","sourceRoot":"","sources":["../../../ts/api/resources/AccountingFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,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;QAE7D,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,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,qBAAqB,EAAE,EAAE,CAAC,CAAC;IACtH,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAC;IACvD,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { QueryAccountingFiles, ReadFormattedAccountingTransaction } from '../../types';\n\nexport class AccountingFiles extends Resource {\n accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[]> {\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\n params.files.forEach((file) => {\n sendAccountingFiles.append('files', file);\n });\n\n return this.axios.$post('/society/accountingFiles', params, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n delete(id: number): Promise<true> {\n return this.axios.$delete(`/accounting-files/${id}`);\n }\n}"]}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { CancelToken } from 'axios';
|
|
2
2
|
import { Resource } from '../Resource';
|
|
3
|
-
import { BasePaginate, CreateInvoiceDocument, IEstimateInvoice, QueryInvoice, QueryPaginate, ReadAccrualInvoice, ReadCashBasedInvoice } from '../../types';
|
|
3
|
+
import { BasePaginate, CreateCommercialMail, CreateInvoiceDocument, ICommercialMail, IEstimateInvoice, QueryInvoice, QueryPaginate, ReadAccrualInvoice, ReadCashBasedInvoice } from '../../types';
|
|
4
4
|
export declare class Invoice extends Resource {
|
|
5
5
|
getCashBasedPaginated(params: QueryInvoice & QueryPaginate, cancelToken?: CancelToken): Promise<BasePaginate<ReadCashBasedInvoice>>;
|
|
6
6
|
getAccrualPaginated(params: QueryInvoice & QueryPaginate, cancelToken?: CancelToken): Promise<BasePaginate<ReadAccrualInvoice>>;
|
|
7
7
|
create(payload: CreateInvoiceDocument): Promise<IEstimateInvoice[]>;
|
|
8
8
|
update(id: number, payload: CreateInvoiceDocument): Promise<IEstimateInvoice>;
|
|
9
9
|
delete(id: number): Promise<true>;
|
|
10
|
+
getAllMails(idFile: number): Promise<ICommercialMail[]>;
|
|
11
|
+
sendMail(idFile: number, payload: CreateCommercialMail): Promise<ICommercialMail>;
|
|
10
12
|
}
|
|
11
13
|
//# sourceMappingURL=Invoice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Invoice.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Invoice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,qBAAqB,CAAC,MAAM,EAAE,YAAY,GAAG,aAAa,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;IAOnI,mBAAmB,CAAC,MAAM,EAAE,YAAY,GAAG,aAAa,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC;IAO/H,MAAM,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAInE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAI7E,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Invoice.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Invoice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,qBAAqB,CAAC,MAAM,EAAE,YAAY,GAAG,aAAa,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;IAOnI,mBAAmB,CAAC,MAAM,EAAE,YAAY,GAAG,aAAa,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC;IAO/H,MAAM,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAInE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAI7E,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjC,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAIvD,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC;CAGlF"}
|
|
@@ -15,5 +15,11 @@ export class Invoice extends Resource {
|
|
|
15
15
|
delete(id) {
|
|
16
16
|
return this.axios.$delete(`/commercial-management/documents/${id}`);
|
|
17
17
|
}
|
|
18
|
+
getAllMails(idFile) {
|
|
19
|
+
return this.axios.$get(`/commercial-management/files/${idFile}/mails`);
|
|
20
|
+
}
|
|
21
|
+
sendMail(idFile, payload) {
|
|
22
|
+
return this.axios.$post(`/commercial-management/files/${idFile}/mails`, payload);
|
|
23
|
+
}
|
|
18
24
|
}
|
|
19
25
|
//# sourceMappingURL=Invoice.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../ts/api/resources/Invoice.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../ts/api/resources/Invoice.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAavC,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IACnC,qBAAqB,CAAC,MAAoC,EAAE,WAAyB;QACnF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,kCACnD,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACvC,MAAM,IACN,CAAC;IACL,CAAC;IAED,mBAAmB,CAAC,MAAoC,EAAE,WAAyB;QACjF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,kCACnD,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACvC,MAAM,IACN,CAAC;IACL,CAAC;IAED,MAAM,CAAC,OAA8B;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,OAA8B;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,oCAAoC,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;IAED,WAAW,CAAC,MAAc;QACxB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gCAAgC,MAAM,QAAQ,CAAC,CAAC;IACzE,CAAC;IAED,QAAQ,CAAC,MAAc,EAAE,OAA6B;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,gCAAgC,MAAM,QAAQ,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateCommercialMail,\n CreateInvoiceDocument,\n ICommercialMail,\n IEstimateInvoice,\n QueryInvoice,\n QueryPaginate,\n ReadAccrualInvoice,\n ReadCashBasedInvoice,\n} from '../../types';\n\nexport class Invoice extends Resource {\n getCashBasedPaginated(params: QueryInvoice & QueryPaginate, cancelToken?: CancelToken): Promise<BasePaginate<ReadCashBasedInvoice>> {\n return this.axios.$get('/commercial-management/invoices', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n getAccrualPaginated(params: QueryInvoice & QueryPaginate, cancelToken?: CancelToken): Promise<BasePaginate<ReadAccrualInvoice>> {\n return this.axios.$get('/commercial-management/invoices', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n create(payload: CreateInvoiceDocument): Promise<IEstimateInvoice[]> {\n return this.axios.$post('/commercial-management/invoices', payload);\n }\n\n update(id: number, payload: CreateInvoiceDocument): Promise<IEstimateInvoice> {\n return this.axios.$put(`/commercial-management/invoices/${id}`, payload);\n }\n\n delete(id: number): Promise<true> {\n return this.axios.$delete(`/commercial-management/documents/${id}`);\n }\n\n getAllMails(idFile: number): Promise<ICommercialMail[]> {\n return this.axios.$get(`/commercial-management/files/${idFile}/mails`);\n }\n\n sendMail(idFile: number, payload: CreateCommercialMail): Promise<ICommercialMail> {\n return this.axios.$post(`/commercial-management/files/${idFile}/mails`, payload);\n }\n}"]}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { BasePaginate,
|
|
3
|
-
import { ICommercialMail } from '../../types/Interface/models/ICommercialMail';
|
|
2
|
+
import { BasePaginate, CreateInvoiceDocument, CreatePreSaleDocument, EstimateInvoiceType, IEstimateInvoice, IFile, QueryDocumentPaginated, QueryNextReference, QueryPaginate, ReadEstimateInvoice, UpdateCommercialDocument } from '../../types';
|
|
4
3
|
export declare class CommercialDocument extends Resource {
|
|
5
4
|
get(id: number): Promise<ReadEstimateInvoice>;
|
|
6
5
|
update(id: number, payload: UpdateCommercialDocument): Promise<IEstimateInvoice>;
|
|
7
6
|
delete(id: number): Promise<true>;
|
|
8
|
-
getAllMails(id: number): Promise<ICommercialMail[]>;
|
|
9
|
-
send(id: number, payload: CreateCommercialMail): Promise<ICommercialMail>;
|
|
10
7
|
getNextReference(params: QueryNextReference): Promise<string>;
|
|
11
8
|
getPaginated(params: QueryDocumentPaginated & QueryPaginate): Promise<BasePaginate<ReadEstimateInvoice>>;
|
|
12
9
|
createEstimate(payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>): Promise<IEstimateInvoice>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commercialDocument.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/commercialDocument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"commercialDocument.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/commercialDocument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,KAAK,EACL,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,aAAa,CAAC;AAErB,qBAAa,kBAAmB,SAAQ,QAAQ;IAC9C,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI7C,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIhF,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjC,gBAAgB,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAI7D,YAAY,CAAC,MAAM,EAAE,sBAAsB,GAAG,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC;IAIxG,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,qBAAqB,EAAE,uBAAuB,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIxG,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,qBAAqB,EAAE,uBAAuB,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIrG,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIrF,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIlF,OAAO,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,OAAO,EAAE,qBAAqB,GAAG,qBAAqB,GAAG,OAAO,CAAC,KAAK,CAAC;CAG5H"}
|
|
@@ -10,12 +10,6 @@ export class CommercialDocument extends Resource {
|
|
|
10
10
|
delete(id) {
|
|
11
11
|
return this.axios.$delete(`/commercial-management/documents/${id}`);
|
|
12
12
|
}
|
|
13
|
-
getAllMails(id) {
|
|
14
|
-
return this.axios.$get(`/commercial-management/documents/${id}/mails`);
|
|
15
|
-
}
|
|
16
|
-
send(id, payload) {
|
|
17
|
-
return this.axios.$post(`/commercial-management/documents/${id}/mails`, payload);
|
|
18
|
-
}
|
|
19
13
|
getNextReference(params) {
|
|
20
14
|
return this.axios.$get('/commercial-management/documents/references', { params });
|
|
21
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commercialDocument.js","sourceRoot":"","sources":["../../../ts/api/resources/commercialDocument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,
|
|
1
|
+
{"version":3,"file":"commercialDocument.js","sourceRoot":"","sources":["../../../ts/api/resources/commercialDocument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAIL,mBAAmB,GAQpB,MAAM,aAAa,CAAC;AAErB,MAAM,OAAO,kBAAmB,SAAQ,QAAQ;IAC9C,GAAG,CAAC,EAAU;QACZ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,EAAE,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,OAAiC;QAClD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,oCAAoC,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;IAED,gBAAgB,CAAC,MAA0B;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,6CAA6C,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpF,CAAC;IAED,YAAY,CAAC,MAA8C;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACzE,CAAC;IAED,cAAc,CAAC,OAA6D;QAC1E,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,kCAAkC,kCAAO,OAAO,KAAE,qBAAqB,EAAE,mBAAmB,CAAC,KAAK,IAAG,CAAC;IAChI,CAAC;IAED,WAAW,CAAC,OAA6D;QACvE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,kCAAO,OAAO,KAAE,qBAAqB,EAAE,mBAAmB,CAAC,GAAG,IAAG,CAAC;IAC3H,CAAC;IAED,cAAc,CAAC,EAAU,EAAE,OAA8B;QACvD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED,WAAW,CAAC,EAAU,EAAE,OAA8B;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iCAAiC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED,OAAO,CAAC,qBAA0C,EAAE,OAAsD;QACxG,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iCAAiC,kCAAO,OAAO,KAAE,qBAAqB,IAAG,CAAC;IACpG,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateInvoiceDocument,\n CreatePreSaleDocument,\n EstimateInvoiceType,\n IEstimateInvoice,\n IFile,\n QueryDocumentPaginated,\n QueryNextReference,\n QueryPaginate,\n ReadEstimateInvoice,\n UpdateCommercialDocument,\n} from '../../types';\n\nexport class CommercialDocument extends Resource {\n get(id: number): Promise<ReadEstimateInvoice> {\n return this.axios.$get(`/commercial-management/documents/${id}`);\n }\n\n update(id: number, payload: UpdateCommercialDocument): Promise<IEstimateInvoice> {\n return this.axios.patch(`/commercial-management/documents/${id}`, payload);\n }\n\n delete(id: number): Promise<true> {\n return this.axios.$delete(`/commercial-management/documents/${id}`);\n }\n\n getNextReference(params: QueryNextReference): Promise<string> {\n return this.axios.$get('/commercial-management/documents/references', { params });\n }\n\n getPaginated(params: QueryDocumentPaginated & QueryPaginate): Promise<BasePaginate<ReadEstimateInvoice>> {\n return this.axios.$get('/commercial-management/documents', { params });\n }\n\n createEstimate(payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>): Promise<IEstimateInvoice> {\n return this.axios.$post('/commercial-management/estimates', { ...payload, idEstimateInvoiceType: EstimateInvoiceType.DEVIS });\n }\n\n createOrder(payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>): Promise<IEstimateInvoice> {\n return this.axios.$post('/commercial-management/orders', { ...payload, idEstimateInvoiceType: EstimateInvoiceType.BON });\n }\n\n updateEstimate(id: number, payload: CreatePreSaleDocument): Promise<IEstimateInvoice> {\n return this.axios.$post(`/commercial-management/estimates/${id}`, payload);\n }\n\n updateOrder(id: number, payload: CreatePreSaleDocument): Promise<IEstimateInvoice> {\n return this.axios.$post(`/commercial-management/orders/${id}`, payload);\n }\n\n preview(idEstimateInvoiceType: EstimateInvoiceType, payload: CreatePreSaleDocument | CreateInvoiceDocument): Promise<IFile> {\n return this.axios.$post('/commercial-management/preview/', { ...payload, idEstimateInvoiceType });\n }\n}"]}
|
|
@@ -10,7 +10,7 @@ import { IFile } from './IFile';
|
|
|
10
10
|
import { IComptaType } from './IComptaType';
|
|
11
11
|
import { IPartnerTransaction } from './IPartnerTransaction';
|
|
12
12
|
import { ICurrency } from './ICurrency';
|
|
13
|
-
import { IMachineLearningResult } from '
|
|
13
|
+
import { IMachineLearningResult } from './IMachineLearningResult';
|
|
14
14
|
export interface IAccountingTransaction {
|
|
15
15
|
id?: number;
|
|
16
16
|
label: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAccountingTransaction.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IAccountingTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"IAccountingTransaction.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IAccountingTransaction.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAccountingTransaction.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IAccountingTransaction.ts"],"names":[],"mappings":"","sourcesContent":["import { IBankAccount } from './IBankAccount';\nimport { IAccountingEntry } from './IAccountingEntry';\nimport { IAccountingFile } from './IAccountingFile';\nimport { IAccountingJournal } from './IAccountingJournal';\nimport { ISociety } from './ISociety';\nimport { IUser } from './IUser';\nimport { IRule } from './IRule';\nimport { IEstimateInvoice } from './IEstimateInvoice';\nimport { IFile } from './IFile';\nimport { IComptaType } from './IComptaType';\nimport { IPartnerTransaction } from './IPartnerTransaction';\nimport { ICurrency } from './ICurrency';\nimport { IMachineLearningResult } from '
|
|
1
|
+
{"version":3,"file":"IAccountingTransaction.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IAccountingTransaction.ts"],"names":[],"mappings":"","sourcesContent":["import { IBankAccount } from './IBankAccount';\nimport { IAccountingEntry } from './IAccountingEntry';\nimport { IAccountingFile } from './IAccountingFile';\nimport { IAccountingJournal } from './IAccountingJournal';\nimport { ISociety } from './ISociety';\nimport { IUser } from './IUser';\nimport { IRule } from './IRule';\nimport { IEstimateInvoice } from './IEstimateInvoice';\nimport { IFile } from './IFile';\nimport { IComptaType } from './IComptaType';\nimport { IPartnerTransaction } from './IPartnerTransaction';\nimport { ICurrency } from './ICurrency';\nimport { IMachineLearningResult } from './IMachineLearningResult';\n\n// accountingTransactions\nexport interface IAccountingTransaction {\n id?: number;\n label: string | null;\n originalLabel?: string | null;\n invoiceNumber: string | null;\n reference: string | null;\n dateValue: Date;\n dateLocked?: Date | null;\n closingDate?: Date | null;\n dateVerified?: Date | null;\n originalValue?: number | null;\n idUser?: number | null;\n isBlocked?: boolean;\n isMerged?: boolean;\n isAsset?: boolean;\n isPayPerso?: boolean;\n isFecImport?: boolean;\n isManual?: boolean;\n exported: Date | null;\n kilometers?: number | null;\n purchaseTtc?: number | null;\n internComment?: string | null;\n isReadMobile?: boolean;\n invoiceRequested?: boolean;\n isLockedMobile?: boolean;\n isAlreadyProcessByOcr?: boolean | null;\n idBankAccount: number | null;\n idSociety: number;\n idCurrency?: number | null;\n idPaymentMethod?: number | null;\n idSocietyVehicle?: number | null;\n idSocietyPartner?: number | null;\n idRule?: number | null;\n idAccountingJournal: number;\n idTypeCompta?: number | null;\n idEstimateInvoice?: number | null;\n idFile?: number | null;\n idEBT?: number | null;\n idEAF?: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n deletedAt?: Date | null;\n\n // Associations\n bankAccount?: IBankAccount;\n accountingEntries?: IAccountingEntry[];\n accountingFiles?: IAccountingFile[];\n accountingJournal?: IAccountingJournal;\n currency?: ICurrency;\n society?: ISociety;\n user?: IUser;\n rule?: IRule;\n estimatesInvoice?: IEstimateInvoice;\n file?: IFile;\n typeComptum?: IComptaType;\n partnersTransaction?: IPartnerTransaction | null;\n parents?: IAccountingTransaction[];\n childs?: IAccountingTransaction[];\n machineLearningResults?: IMachineLearningResult[];\n}\n"]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IEstimateInvoice } from '../..';
|
|
2
1
|
export interface ICommercialMail {
|
|
3
2
|
id?: number;
|
|
4
3
|
to: string;
|
|
@@ -6,9 +5,8 @@ export interface ICommercialMail {
|
|
|
6
5
|
bcc?: string | null;
|
|
7
6
|
subject: string;
|
|
8
7
|
content: string;
|
|
8
|
+
idFile: number;
|
|
9
9
|
createdAt?: Date;
|
|
10
10
|
updatedAt?: Date;
|
|
11
|
-
idEstimateInvoice: number;
|
|
12
|
-
estimateInvoice?: IEstimateInvoice;
|
|
13
11
|
}
|
|
14
12
|
//# sourceMappingURL=ICommercialMail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICommercialMail.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/ICommercialMail.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"ICommercialMail.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/ICommercialMail.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICommercialMail.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/ICommercialMail.ts"],"names":[],"mappings":"","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"ICommercialMail.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/ICommercialMail.ts"],"names":[],"mappings":"","sourcesContent":["export interface ICommercialMail {\n id?: number;\n to: string;\n cc?: string | null;\n bcc?: string | null;\n subject: string;\n content: string;\n idFile: number;\n createdAt?: Date;\n updatedAt?: Date;\n}"]}
|
|
@@ -3,7 +3,6 @@ import { IEngagementAccountingEntry } from './IEngagementAccountingEntry';
|
|
|
3
3
|
import { IAccountingJournal } from './IAccountingJournal';
|
|
4
4
|
import { IUser } from './IUser';
|
|
5
5
|
import { ILettering } from './ILettering';
|
|
6
|
-
import { IPartnerTransaction } from './IPartnerTransaction';
|
|
7
6
|
export interface IEngagementBankTransaction {
|
|
8
7
|
id?: number;
|
|
9
8
|
migrate: boolean;
|
|
@@ -30,6 +29,5 @@ export interface IEngagementBankTransaction {
|
|
|
30
29
|
accountingJournal: IAccountingJournal;
|
|
31
30
|
user: IUser;
|
|
32
31
|
lettering: ILettering;
|
|
33
|
-
partnersTransaction: IPartnerTransaction;
|
|
34
32
|
}
|
|
35
33
|
//# sourceMappingURL=IEngagementBankTransaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEngagementBankTransaction.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IEngagementBankTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"IEngagementBankTransaction.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IEngagementBankTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,MAAM,WAAW,0BAA0B;IACzC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,IAAI,CAAC;IAChB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtB,WAAW,EAAE,YAAY,CAAC;IAC1B,2BAA2B,EAAE,0BAA0B,EAAE,CAAC;IAC1D,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,IAAI,EAAE,KAAK,CAAC;IACZ,SAAS,EAAE,UAAU,CAAC;CACvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEngagementBankTransaction.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IEngagementBankTransaction.ts"],"names":[],"mappings":"","sourcesContent":["import { IBankAccount } from './IBankAccount';\nimport { IEngagementAccountingEntry } from './IEngagementAccountingEntry';\nimport { IAccountingJournal } from './IAccountingJournal';\nimport { IUser } from './IUser';\nimport { ILettering } from './ILettering';\
|
|
1
|
+
{"version":3,"file":"IEngagementBankTransaction.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IEngagementBankTransaction.ts"],"names":[],"mappings":"","sourcesContent":["import { IBankAccount } from './IBankAccount';\nimport { IEngagementAccountingEntry } from './IEngagementAccountingEntry';\nimport { IAccountingJournal } from './IAccountingJournal';\nimport { IUser } from './IUser';\nimport { ILettering } from './ILettering';\n\n// engagementBankTransactions\nexport interface IEngagementBankTransaction {\n id?: number;\n migrate: boolean;\n reference: string | null;\n dateValue: Date;\n dateLocked: Date | null;\n dateVerified: Date | null;\n isBlocked: boolean;\n exported: Date | null;\n noInvoice: boolean;\n isReadMobile: boolean;\n isLockedMobile: boolean;\n idBankAccount: number | null;\n idSociety: number;\n idPaymentMethod: number | null;\n idRule: number | null;\n idAccountingJournal: number;\n idLettering: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n idUser: number | null;\n\n // Associations\n bankAccount: IBankAccount;\n engagementAccountingEntries: IEngagementAccountingEntry[];\n accountingJournal: IAccountingJournal;\n user: IUser;\n lettering: ILettering;\n}\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IAttachmentFile } from './IAttachmentFile';
|
|
2
2
|
import { IFolderFile } from './IFolderFile';
|
|
3
3
|
import { IFileType } from './IFileType';
|
|
4
|
+
import { ICommercialMail } from '../..';
|
|
4
5
|
export interface IFile {
|
|
5
6
|
id?: number;
|
|
6
7
|
name?: string;
|
|
@@ -13,5 +14,6 @@ export interface IFile {
|
|
|
13
14
|
attachmentFile?: IAttachmentFile;
|
|
14
15
|
folderFile?: IFolderFile;
|
|
15
16
|
fileType?: IFileType;
|
|
17
|
+
commercialMails?: ICommercialMail[];
|
|
16
18
|
}
|
|
17
19
|
//# sourceMappingURL=IFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IFile.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,MAAM,WAAW,KAAK;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"IFile.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAGxC,MAAM,WAAW,KAAK;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,eAAe,CAAC,EAAE,eAAe,EAAE,CAAA;CACpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IFile.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IFile.ts"],"names":[],"mappings":"","sourcesContent":["import { IAttachmentFile } from './IAttachmentFile';\nimport { IFolderFile } from './IFolderFile';\nimport { IFileType } from './IFileType';\n\n// files\nexport interface IFile {\n id?: number;\n name?: string;\n token?: string;\n idFolderFile: number;\n idSociety?: number | null;\n idFileType: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n attachmentFile?: IAttachmentFile;\n folderFile?: IFolderFile;\n fileType?: IFileType;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IFile.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IFile.ts"],"names":[],"mappings":"","sourcesContent":["import { IAttachmentFile } from './IAttachmentFile';\nimport { IFolderFile } from './IFolderFile';\nimport { IFileType } from './IFileType';\nimport { ICommercialMail } from '../..';\n\n// files\nexport interface IFile {\n id?: number;\n name?: string;\n token?: string;\n idFolderFile: number;\n idSociety?: number | null;\n idFileType: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n attachmentFile?: IAttachmentFile;\n folderFile?: IFolderFile;\n fileType?: IFileType;\n commercialMails?: ICommercialMail[]\n}\n"]}
|
|
@@ -8,7 +8,6 @@ export interface IPartnerTransaction {
|
|
|
8
8
|
idAccountingTransaction: number | null;
|
|
9
9
|
createdAt?: Date | null;
|
|
10
10
|
updatedAt?: Date | null;
|
|
11
|
-
idEngagementBankTransaction: number | null;
|
|
12
11
|
typePartnerTransaction?: IPartnerTransactionType;
|
|
13
12
|
}
|
|
14
13
|
//# sourceMappingURL=IPartnerTransaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPartnerTransaction.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IPartnerTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAGpE,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,wBAAwB,EAAE,sBAAsB,CAAC;IACjD,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"IPartnerTransaction.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IPartnerTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAGpE,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,wBAAwB,EAAE,sBAAsB,CAAC;IACjD,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,sBAAsB,CAAC,EAAE,uBAAuB,CAAC;CAClD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPartnerTransaction.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IPartnerTransaction.ts"],"names":[],"mappings":"","sourcesContent":["import { PartnerTransactionType } from '../../Enum/PartnerTransactionType';\nimport { IPartnerTransactionType } from './IPartnerTransactionType';\n\n// partnersTransactions\nexport interface IPartnerTransaction {\n id?: number;\n tokenString: string | null;\n tokenInteger: number | null;\n idTypePartnerTransaction: PartnerTransactionType;\n idAccountingTransaction: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n
|
|
1
|
+
{"version":3,"file":"IPartnerTransaction.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IPartnerTransaction.ts"],"names":[],"mappings":"","sourcesContent":["import { PartnerTransactionType } from '../../Enum/PartnerTransactionType';\nimport { IPartnerTransactionType } from './IPartnerTransactionType';\n\n// partnersTransactions\nexport interface IPartnerTransaction {\n id?: number;\n tokenString: string | null;\n tokenInteger: number | null;\n idTypePartnerTransaction: PartnerTransactionType;\n idAccountingTransaction: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n typePartnerTransaction?: IPartnerTransactionType;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountingFiles.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,eAAP,SAA+BC,kBAA/B,CAAuC;EAC3CC,cAAc,CAACC,MAAD,EAA6B;IACzC,MAAMC,mBAAmB,GAAG,IAAIC,QAAJ,EAA5B;IAEAD,mBAAmB,CAACE,MAApB,CAA2B,kBAA3B,EAA+CH,MAAM,CAACI,gBAAP,CAAwBC,QAAxB,EAA/C;IACAJ,mBAAmB,CAACE,MAApB,CAA2B,YAA3B,EAAyCH,MAAM,CAACM,UAAP,CAAkBD,QAAlB,EAAzC;IACAJ,mBAAmB,CAACE,MAApB,CAA2B,OAA3B,EAAoCH,MAAM,CAACO,KAAP,CAAaF,QAAb,EAApC;IAEAL,MAAM,CAACQ,KAAP,CAAaC,OAAb,CAAsBC,IAAD,IAAS;MAC5BT,mBAAmB,CAACE,MAApB,CAA2B,OAA3B,EAAoCO,IAApC;IACD,CAFD;IAIA,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,0BAAjB,EAA6CZ,MAA7C,EAAqD;MAAEa,OAAO,EAAE;QAAE,gBAAgB;MAAlB;IAAX,CAArD,CAAP;EACD;;
|
|
1
|
+
{"version":3,"file":"AccountingFiles.js","mappings":";;;;;;;AAAA;;AAGM,MAAOA,eAAP,SAA+BC,kBAA/B,CAAuC;EAC3CC,cAAc,CAACC,MAAD,EAA6B;IACzC,MAAMC,mBAAmB,GAAG,IAAIC,QAAJ,EAA5B;IAEAD,mBAAmB,CAACE,MAApB,CAA2B,kBAA3B,EAA+CH,MAAM,CAACI,gBAAP,CAAwBC,QAAxB,EAA/C;IACAJ,mBAAmB,CAACE,MAApB,CAA2B,YAA3B,EAAyCH,MAAM,CAACM,UAAP,CAAkBD,QAAlB,EAAzC;IACAJ,mBAAmB,CAACE,MAApB,CAA2B,OAA3B,EAAoCH,MAAM,CAACO,KAAP,CAAaF,QAAb,EAApC;IAEAL,MAAM,CAACQ,KAAP,CAAaC,OAAb,CAAsBC,IAAD,IAAS;MAC5BT,mBAAmB,CAACE,MAApB,CAA2B,OAA3B,EAAoCO,IAApC;IACD,CAFD;IAIA,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,0BAAjB,EAA6CZ,MAA7C,EAAqD;MAAEa,OAAO,EAAE;QAAE,gBAAgB;MAAlB;IAAX,CAArD,CAAP;EACD;;EAEDC,MAAM,CAACC,EAAD,EAAW;IACf,OAAO,KAAKJ,KAAL,CAAWK,OAAX,CAAmB,qBAAqBD,EAAE,EAA1C,CAAP;EACD;;AAjB0C;;QAAhClB,e,GAAAA,e","names":["AccountingFiles","Resource","accountingFile","params","sendAccountingFiles","FormData","append","idAccountingType","toString","isPayPerso","split","files","forEach","file","axios","$post","headers","delete","id","$delete"],"sourceRoot":"","sources":["../../../ts/api/resources/AccountingFiles.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport { QueryAccountingFiles, ReadFormattedAccountingTransaction } from '../../types';\n\nexport class AccountingFiles extends Resource {\n accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[]> {\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\n params.files.forEach((file) => {\n sendAccountingFiles.append('files', file);\n });\n\n return this.axios.$post('/society/accountingFiles', params, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n delete(id: number): Promise<true> {\n return this.axios.$delete(`/accounting-files/${id}`);\n }\n}"]}
|
|
@@ -36,6 +36,14 @@ class Invoice extends _Resource.Resource {
|
|
|
36
36
|
return this.axios.$delete(`/commercial-management/documents/${id}`);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
getAllMails(idFile) {
|
|
40
|
+
return this.axios.$get(`/commercial-management/files/${idFile}/mails`);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
sendMail(idFile, payload) {
|
|
44
|
+
return this.axios.$post(`/commercial-management/files/${idFile}/mails`, payload);
|
|
45
|
+
}
|
|
46
|
+
|
|
39
47
|
}
|
|
40
48
|
|
|
41
49
|
exports.Invoice = Invoice;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Invoice.js","mappings":";;;;;;;AACA;;
|
|
1
|
+
{"version":3,"file":"Invoice.js","mappings":";;;;;;;AACA;;AAaM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;EACnCC,qBAAqB,CAACC,MAAD,EAAuCC,WAAvC,EAAgE;IACnF,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,iCAAhB,EAAiDC,gCAClDH,WAAW,GAAG;MAAEA;IAAF,CAAH,GAAqB,EADkB,GACf;MACvCD;IADuC,CADe,CAAjD,CAAP;EAID;;EAEDK,mBAAmB,CAACL,MAAD,EAAuCC,WAAvC,EAAgE;IACjF,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,iCAAhB,EAAiDC,gCAClDH,WAAW,GAAG;MAAEA;IAAF,CAAH,GAAqB,EADkB,GACf;MACvCD;IADuC,CADe,CAAjD,CAAP;EAID;;EAEDM,MAAM,CAACC,OAAD,EAA+B;IACnC,OAAO,KAAKL,KAAL,CAAWM,KAAX,CAAiB,iCAAjB,EAAoDD,OAApD,CAAP;EACD;;EAEDE,MAAM,CAACC,EAAD,EAAaH,OAAb,EAA2C;IAC/C,OAAO,KAAKL,KAAL,CAAWS,IAAX,CAAgB,mCAAmCD,EAAE,EAArD,EAAyDH,OAAzD,CAAP;EACD;;EAEDK,MAAM,CAACF,EAAD,EAAW;IACf,OAAO,KAAKR,KAAL,CAAWW,OAAX,CAAmB,oCAAoCH,EAAE,EAAzD,CAAP;EACD;;EAEDI,WAAW,CAACC,MAAD,EAAe;IACxB,OAAO,KAAKb,KAAL,CAAWC,IAAX,CAAgB,gCAAgCY,MAAM,QAAtD,CAAP;EACD;;EAEDC,QAAQ,CAACD,MAAD,EAAiBR,OAAjB,EAA8C;IACpD,OAAO,KAAKL,KAAL,CAAWM,KAAX,CAAiB,gCAAgCO,MAAM,QAAvD,EAAiER,OAAjE,CAAP;EACD;;AAjCkC;;QAAxBV,O,GAAAA,O","names":["Invoice","Resource","getCashBasedPaginated","params","cancelToken","axios","$get","Object","getAccrualPaginated","create","payload","$post","update","id","$put","delete","$delete","getAllMails","idFile","sendMail"],"sourceRoot":"","sources":["../../../ts/api/resources/Invoice.ts"],"sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateCommercialMail,\n CreateInvoiceDocument,\n ICommercialMail,\n IEstimateInvoice,\n QueryInvoice,\n QueryPaginate,\n ReadAccrualInvoice,\n ReadCashBasedInvoice,\n} from '../../types';\n\nexport class Invoice extends Resource {\n getCashBasedPaginated(params: QueryInvoice & QueryPaginate, cancelToken?: CancelToken): Promise<BasePaginate<ReadCashBasedInvoice>> {\n return this.axios.$get('/commercial-management/invoices', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n getAccrualPaginated(params: QueryInvoice & QueryPaginate, cancelToken?: CancelToken): Promise<BasePaginate<ReadAccrualInvoice>> {\n return this.axios.$get('/commercial-management/invoices', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n create(payload: CreateInvoiceDocument): Promise<IEstimateInvoice[]> {\n return this.axios.$post('/commercial-management/invoices', payload);\n }\n\n update(id: number, payload: CreateInvoiceDocument): Promise<IEstimateInvoice> {\n return this.axios.$put(`/commercial-management/invoices/${id}`, payload);\n }\n\n delete(id: number): Promise<true> {\n return this.axios.$delete(`/commercial-management/documents/${id}`);\n }\n\n getAllMails(idFile: number): Promise<ICommercialMail[]> {\n return this.axios.$get(`/commercial-management/files/${idFile}/mails`);\n }\n\n sendMail(idFile: number, payload: CreateCommercialMail): Promise<ICommercialMail> {\n return this.axios.$post(`/commercial-management/files/${idFile}/mails`, payload);\n }\n}"]}
|
|
@@ -22,14 +22,6 @@ class CommercialDocument extends _Resource.Resource {
|
|
|
22
22
|
return this.axios.$delete(`/commercial-management/documents/${id}`);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
getAllMails(id) {
|
|
26
|
-
return this.axios.$get(`/commercial-management/documents/${id}/mails`);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
send(id, payload) {
|
|
30
|
-
return this.axios.$post(`/commercial-management/documents/${id}/mails`, payload);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
25
|
getNextReference(params) {
|
|
34
26
|
return this.axios.$get('/commercial-management/documents/references', {
|
|
35
27
|
params
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commercialDocument.js","mappings":";;;;;;;AAAA;;AACA;;
|
|
1
|
+
{"version":3,"file":"commercialDocument.js","mappings":";;;;;;;AAAA;;AACA;;AAcM,MAAOA,kBAAP,SAAkCC,kBAAlC,CAA0C;EAC9CC,GAAG,CAACC,EAAD,EAAW;IACZ,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,oCAAoCF,EAAE,EAAtD,CAAP;EACD;;EAEDG,MAAM,CAACH,EAAD,EAAaI,OAAb,EAA8C;IAClD,OAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,oCAAoCL,EAAE,EAAvD,EAA2DI,OAA3D,CAAP;EACD;;EAEDE,MAAM,CAACN,EAAD,EAAW;IACf,OAAO,KAAKC,KAAL,CAAWM,OAAX,CAAmB,oCAAoCP,EAAE,EAAzD,CAAP;EACD;;EAEDQ,gBAAgB,CAACC,MAAD,EAA2B;IACzC,OAAO,KAAKR,KAAL,CAAWC,IAAX,CAAgB,6CAAhB,EAA+D;MAAEO;IAAF,CAA/D,CAAP;EACD;;EAEDC,YAAY,CAACD,MAAD,EAA+C;IACzD,OAAO,KAAKR,KAAL,CAAWC,IAAX,CAAgB,kCAAhB,EAAoD;MAAEO;IAAF,CAApD,CAAP;EACD;;EAEDE,cAAc,CAACP,OAAD,EAA8D;IAC1E,OAAO,KAAKH,KAAL,CAAWW,KAAX,CAAiB,kCAAjB,EAAmDC,gCAAOT,OAAP,GAAc;MAAEU,qBAAqB,EAAEC,2BAAoBC;IAA7C,CAAd,CAAnD,CAAP;EACD;;EAEDC,WAAW,CAACb,OAAD,EAA8D;IACvE,OAAO,KAAKH,KAAL,CAAWW,KAAX,CAAiB,+BAAjB,EAAgDC,gCAAOT,OAAP,GAAc;MAAEU,qBAAqB,EAAEC,2BAAoBG;IAA7C,CAAd,CAAhD,CAAP;EACD;;EAEDC,cAAc,CAACnB,EAAD,EAAaI,OAAb,EAA2C;IACvD,OAAO,KAAKH,KAAL,CAAWW,KAAX,CAAiB,oCAAoCZ,EAAE,EAAvD,EAA2DI,OAA3D,CAAP;EACD;;EAEDgB,WAAW,CAACpB,EAAD,EAAaI,OAAb,EAA2C;IACpD,OAAO,KAAKH,KAAL,CAAWW,KAAX,CAAiB,iCAAiCZ,EAAE,EAApD,EAAwDI,OAAxD,CAAP;EACD;;EAEDiB,OAAO,CAACP,qBAAD,EAA6CV,OAA7C,EAAmG;IACxG,OAAO,KAAKH,KAAL,CAAWW,KAAX,CAAiB,iCAAjB,EAAkDC,gCAAOT,OAAP,GAAc;MAAEU;IAAF,CAAd,CAAlD,CAAP;EACD;;AAvC6C;;QAAnCjB,kB,GAAAA,kB","names":["CommercialDocument","Resource","get","id","axios","$get","update","payload","patch","delete","$delete","getNextReference","params","getPaginated","createEstimate","$post","Object","idEstimateInvoiceType","EstimateInvoiceType","DEVIS","createOrder","BON","updateEstimate","updateOrder","preview"],"sourceRoot":"","sources":["../../../ts/api/resources/commercialDocument.ts"],"sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateInvoiceDocument,\n CreatePreSaleDocument,\n EstimateInvoiceType,\n IEstimateInvoice,\n IFile,\n QueryDocumentPaginated,\n QueryNextReference,\n QueryPaginate,\n ReadEstimateInvoice,\n UpdateCommercialDocument,\n} from '../../types';\n\nexport class CommercialDocument extends Resource {\n get(id: number): Promise<ReadEstimateInvoice> {\n return this.axios.$get(`/commercial-management/documents/${id}`);\n }\n\n update(id: number, payload: UpdateCommercialDocument): Promise<IEstimateInvoice> {\n return this.axios.patch(`/commercial-management/documents/${id}`, payload);\n }\n\n delete(id: number): Promise<true> {\n return this.axios.$delete(`/commercial-management/documents/${id}`);\n }\n\n getNextReference(params: QueryNextReference): Promise<string> {\n return this.axios.$get('/commercial-management/documents/references', { params });\n }\n\n getPaginated(params: QueryDocumentPaginated & QueryPaginate): Promise<BasePaginate<ReadEstimateInvoice>> {\n return this.axios.$get('/commercial-management/documents', { params });\n }\n\n createEstimate(payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>): Promise<IEstimateInvoice> {\n return this.axios.$post('/commercial-management/estimates', { ...payload, idEstimateInvoiceType: EstimateInvoiceType.DEVIS });\n }\n\n createOrder(payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>): Promise<IEstimateInvoice> {\n return this.axios.$post('/commercial-management/orders', { ...payload, idEstimateInvoiceType: EstimateInvoiceType.BON });\n }\n\n updateEstimate(id: number, payload: CreatePreSaleDocument): Promise<IEstimateInvoice> {\n return this.axios.$post(`/commercial-management/estimates/${id}`, payload);\n }\n\n updateOrder(id: number, payload: CreatePreSaleDocument): Promise<IEstimateInvoice> {\n return this.axios.$post(`/commercial-management/orders/${id}`, payload);\n }\n\n preview(idEstimateInvoiceType: EstimateInvoiceType, payload: CreatePreSaleDocument | CreateInvoiceDocument): Promise<IFile> {\n return this.axios.$post('/commercial-management/preview/', { ...payload, idEstimateInvoiceType });\n }\n}"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
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",
|
|
@@ -15,4 +15,8 @@ export class AccountingFiles extends Resource {
|
|
|
15
15
|
|
|
16
16
|
return this.axios.$post('/society/accountingFiles', params, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
delete(id: number): Promise<true> {
|
|
20
|
+
return this.axios.$delete(`/accounting-files/${id}`);
|
|
21
|
+
}
|
|
18
22
|
}
|
|
@@ -2,7 +2,9 @@ import { CancelToken } from 'axios';
|
|
|
2
2
|
import { Resource } from '../Resource';
|
|
3
3
|
import {
|
|
4
4
|
BasePaginate,
|
|
5
|
+
CreateCommercialMail,
|
|
5
6
|
CreateInvoiceDocument,
|
|
7
|
+
ICommercialMail,
|
|
6
8
|
IEstimateInvoice,
|
|
7
9
|
QueryInvoice,
|
|
8
10
|
QueryPaginate,
|
|
@@ -36,4 +38,12 @@ export class Invoice extends Resource {
|
|
|
36
38
|
delete(id: number): Promise<true> {
|
|
37
39
|
return this.axios.$delete(`/commercial-management/documents/${id}`);
|
|
38
40
|
}
|
|
41
|
+
|
|
42
|
+
getAllMails(idFile: number): Promise<ICommercialMail[]> {
|
|
43
|
+
return this.axios.$get(`/commercial-management/files/${idFile}/mails`);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
sendMail(idFile: number, payload: CreateCommercialMail): Promise<ICommercialMail> {
|
|
47
|
+
return this.axios.$post(`/commercial-management/files/${idFile}/mails`, payload);
|
|
48
|
+
}
|
|
39
49
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import {
|
|
3
3
|
BasePaginate,
|
|
4
|
-
CreateCommercialMail,
|
|
5
4
|
CreateInvoiceDocument,
|
|
6
5
|
CreatePreSaleDocument,
|
|
7
6
|
EstimateInvoiceType,
|
|
@@ -13,7 +12,6 @@ import {
|
|
|
13
12
|
ReadEstimateInvoice,
|
|
14
13
|
UpdateCommercialDocument,
|
|
15
14
|
} from '../../types';
|
|
16
|
-
import { ICommercialMail } from '../../types/Interface/models/ICommercialMail';
|
|
17
15
|
|
|
18
16
|
export class CommercialDocument extends Resource {
|
|
19
17
|
get(id: number): Promise<ReadEstimateInvoice> {
|
|
@@ -28,14 +26,6 @@ export class CommercialDocument extends Resource {
|
|
|
28
26
|
return this.axios.$delete(`/commercial-management/documents/${id}`);
|
|
29
27
|
}
|
|
30
28
|
|
|
31
|
-
getAllMails(id: number): Promise<ICommercialMail[]> {
|
|
32
|
-
return this.axios.$get(`/commercial-management/documents/${id}/mails`);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
send(id: number, payload: CreateCommercialMail): Promise<ICommercialMail> {
|
|
36
|
-
return this.axios.$post(`/commercial-management/documents/${id}/mails`, payload);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
29
|
getNextReference(params: QueryNextReference): Promise<string> {
|
|
40
30
|
return this.axios.$get('/commercial-management/documents/references', { params });
|
|
41
31
|
}
|
|
@@ -10,7 +10,7 @@ import { IFile } from './IFile';
|
|
|
10
10
|
import { IComptaType } from './IComptaType';
|
|
11
11
|
import { IPartnerTransaction } from './IPartnerTransaction';
|
|
12
12
|
import { ICurrency } from './ICurrency';
|
|
13
|
-
import { IMachineLearningResult } from '
|
|
13
|
+
import { IMachineLearningResult } from './IMachineLearningResult';
|
|
14
14
|
|
|
15
15
|
// accountingTransactions
|
|
16
16
|
export interface IAccountingTransaction {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { IEstimateInvoice } from '../..';
|
|
2
|
-
|
|
3
1
|
export interface ICommercialMail {
|
|
4
2
|
id?: number;
|
|
5
3
|
to: string;
|
|
@@ -7,9 +5,7 @@ export interface ICommercialMail {
|
|
|
7
5
|
bcc?: string | null;
|
|
8
6
|
subject: string;
|
|
9
7
|
content: string;
|
|
8
|
+
idFile: number;
|
|
10
9
|
createdAt?: Date;
|
|
11
10
|
updatedAt?: Date;
|
|
12
|
-
idEstimateInvoice: number;
|
|
13
|
-
|
|
14
|
-
estimateInvoice?: IEstimateInvoice;
|
|
15
11
|
}
|
|
@@ -3,7 +3,6 @@ import { IEngagementAccountingEntry } from './IEngagementAccountingEntry';
|
|
|
3
3
|
import { IAccountingJournal } from './IAccountingJournal';
|
|
4
4
|
import { IUser } from './IUser';
|
|
5
5
|
import { ILettering } from './ILettering';
|
|
6
|
-
import { IPartnerTransaction } from './IPartnerTransaction';
|
|
7
6
|
|
|
8
7
|
// engagementBankTransactions
|
|
9
8
|
export interface IEngagementBankTransaction {
|
|
@@ -34,5 +33,4 @@ export interface IEngagementBankTransaction {
|
|
|
34
33
|
accountingJournal: IAccountingJournal;
|
|
35
34
|
user: IUser;
|
|
36
35
|
lettering: ILettering;
|
|
37
|
-
partnersTransaction: IPartnerTransaction;
|
|
38
36
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IAttachmentFile } from './IAttachmentFile';
|
|
2
2
|
import { IFolderFile } from './IFolderFile';
|
|
3
3
|
import { IFileType } from './IFileType';
|
|
4
|
+
import { ICommercialMail } from '../..';
|
|
4
5
|
|
|
5
6
|
// files
|
|
6
7
|
export interface IFile {
|
|
@@ -17,4 +18,5 @@ export interface IFile {
|
|
|
17
18
|
attachmentFile?: IAttachmentFile;
|
|
18
19
|
folderFile?: IFolderFile;
|
|
19
20
|
fileType?: IFileType;
|
|
21
|
+
commercialMails?: ICommercialMail[]
|
|
20
22
|
}
|