@silexpert/core 1.0.89 → 1.0.91
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 +2 -1
- 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/CommercialDocument.d.ts +7 -3
- package/es/api/resources/CommercialDocument.d.ts.map +1 -1
- package/es/api/resources/CommercialDocument.js +11 -4
- package/es/api/resources/CommercialDocument.js.map +1 -1
- package/es/api/resources/Employee.d.ts +2 -1
- package/es/api/resources/Employee.d.ts.map +1 -1
- package/es/api/resources/Employee.js +8 -4
- package/es/api/resources/Employee.js.map +1 -1
- package/es/api/resources/PaymentExpectationCustomer.d.ts +2 -1
- package/es/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
- package/es/api/resources/PaymentExpectationCustomer.js +2 -4
- package/es/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/es/api/resources/Product.d.ts +2 -1
- package/es/api/resources/Product.d.ts.map +1 -1
- package/es/api/resources/Product.js +2 -4
- package/es/api/resources/Product.js.map +1 -1
- package/es/api/resources/SheetMonthSchedule.d.ts +2 -1
- package/es/api/resources/SheetMonthSchedule.d.ts.map +1 -1
- package/es/api/resources/SheetMonthSchedule.js +2 -2
- package/es/api/resources/SheetMonthSchedule.js.map +1 -1
- package/es/api/resources/ThirdParty.d.ts +2 -1
- package/es/api/resources/ThirdParty.d.ts.map +1 -1
- package/es/api/resources/ThirdParty.js +2 -4
- package/es/api/resources/ThirdParty.js.map +1 -1
- package/es/types/Enum/BankCollectingState.d.ts +11 -0
- package/es/types/Enum/BankCollectingState.d.ts.map +1 -0
- package/es/types/Enum/BankCollectingState.js +26 -0
- package/es/types/Enum/BankCollectingState.js.map +1 -0
- package/es/types/Enum/Phone.d.ts +38 -0
- package/es/types/Enum/Phone.d.ts.map +1 -0
- package/es/types/Enum/Phone.js +38 -0
- package/es/types/Enum/Phone.js.map +1 -0
- package/es/types/Interface/api/accountingTransaction/QueryTransaction.d.ts +3 -0
- package/es/types/Interface/api/accountingTransaction/QueryTransaction.d.ts.map +1 -1
- package/es/types/Interface/api/accountingTransaction/QueryTransaction.js +7 -0
- package/es/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
- package/es/types/Interface/api/commercialManagement/Create.d.ts +5 -0
- package/es/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/es/types/Interface/api/commercialManagement/Create.js +17 -0
- package/es/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/es/types/Interface/api/file/TFile.d.ts +1 -0
- package/es/types/Interface/api/file/TFile.d.ts.map +1 -1
- package/es/types/Interface/api/file/TFile.js.map +1 -1
- package/es/types/Interface/api/society/SocietyWithStatsCaParams.d.ts +1 -0
- package/es/types/Interface/api/society/SocietyWithStatsCaParams.d.ts.map +1 -1
- package/es/types/Interface/api/society/SocietyWithStatsCaParams.js.map +1 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts +2 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts.map +1 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js +5 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
- package/es/types/Interface/models/ISociety.d.ts +2 -1
- package/es/types/Interface/models/ISociety.d.ts.map +1 -1
- package/es/types/Interface/models/ISociety.js.map +1 -1
- package/es/types/index.d.ts +2 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +2 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/AccountingFiles.js +6 -0
- package/js/api/resources/AccountingFiles.js.map +1 -1
- package/js/api/resources/CommercialDocument.js +9 -3
- package/js/api/resources/CommercialDocument.js.map +1 -1
- package/js/api/resources/Employee.js +5 -3
- package/js/api/resources/Employee.js.map +1 -1
- package/js/api/resources/PaymentExpectationCustomer.js +5 -3
- package/js/api/resources/PaymentExpectationCustomer.js.map +1 -1
- package/js/api/resources/Product.js +5 -3
- package/js/api/resources/Product.js.map +1 -1
- package/js/api/resources/SheetMonthSchedule.js +5 -3
- package/js/api/resources/SheetMonthSchedule.js.map +1 -1
- package/js/api/resources/ThirdParty.js +5 -3
- package/js/api/resources/ThirdParty.js.map +1 -1
- package/js/types/Enum/BankCollectingState.js +28 -0
- package/js/types/Enum/BankCollectingState.js.map +1 -0
- package/js/types/Enum/Phone.js +43 -0
- package/js/types/Enum/Phone.js.map +1 -0
- package/js/types/Interface/api/accountingTransaction/QueryTransaction.js +9 -1
- package/js/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
- package/js/types/Interface/api/commercialManagement/Create.js +11 -1
- package/js/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js +5 -0
- package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
- package/js/types/index.js +24 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/AccountingFiles.ts +7 -1
- package/ts/api/resources/CommercialDocument.ts +63 -17
- package/ts/api/resources/Employee.ts +42 -10
- package/ts/api/resources/PaymentExpectationCustomer.ts +61 -18
- package/ts/api/resources/Product.ts +14 -3
- package/ts/api/resources/SheetMonthSchedule.ts +36 -9
- package/ts/api/resources/ThirdParty.ts +18 -4
- package/ts/types/Enum/BankCollectingState.ts +24 -0
- package/ts/types/Enum/Phone.ts +37 -0
- package/ts/types/Interface/api/accountingTransaction/QueryTransaction.ts +6 -0
- package/ts/types/Interface/api/commercialManagement/Create.ts +14 -0
- package/ts/types/Interface/api/file/TFile.ts +2 -1
- package/ts/types/Interface/api/society/SocietyWithStatsCaParams.ts +2 -1
- package/ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts +4 -1
- package/ts/types/Interface/models/ISociety.ts +2 -1
- package/ts/types/index.ts +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentExpectationCustomer.js","mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"PaymentExpectationCustomer.js","mappings":";;;;;;;AACA;;AAeM,MAAOA,0BAAP,SAA0CC,kBAA1C,CAAkD;EACtDC,GAAG,CACDC,MADC,EACyC;IAE1C,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,6BAAhB,EAA+C;MAAEF;IAAF,CAA/C,CAAP;EACD;;EACDG,YAAY,CACVH,MADU,EAEVI,WAFU,EAEe;IAEzB,OAAO,KAAKH,KAAL,CAAWC,IAAX,CACL,YAAYF,MAAM,CAACK,SAAS,gCADvB,EACuDC,gCAEtDF,WAAW,GAAG;MAAEA;IAAF,CAAH,GAAqB,EAFsB,GAEnB;MACvCJ;IADuC,CAFmB,CADvD,CAAP;EAOD;;EACDO,KAAK,CACHP,MADG,EACsD;IAEzD,OAAO,KAAKC,KAAL,CAAWC,IAAX,CACL,YAAYF,MAAM,CAACK,SAAS,sCADvB,EAEL;MACEL;IADF,CAFK,CAAP;EAMD;;EACDQ,GAAG,CACDR,MADC,EACyC;IAE1C,OAAO,KAAKC,KAAL,CAAWQ,KAAX,CAAiB,iCAAjB,EAAoDT,MAApD,CAAP;EACD;;EACDU,OAAO,CACLV,MADK,EACyC;IAE9C,OAAO,KAAKC,KAAL,CAAWQ,KAAX,CAAiB,qCAAjB,EAAwDT,MAAxD,CAAP;EACD;;EACDW,MAAM,CACJX,MADI,EACgD;IAEpD,OAAO,KAAKC,KAAL,CAAWW,OAAX,CACL,YAAYZ,MAAM,CAACK,SAAS,kCAAkCL,MAAM,CAACa,EAAE,EADlE,CAAP;EAGD;;EACDC,MAAM,CACJd,MADI,EACiD;IAErD,OAAO,KAAKC,KAAL,CAAWc,IAAX,CACL,YAAYf,MAAM,CAACK,SAAS,kCAAkCL,MAAM,CAACa,EAAE,SADlE,EAELb,MAFK,CAAP;EAID;;EACDgB,MAAM,CACJhB,MADI,EAC2C;IAE/C,OAAO,KAAKC,KAAL,CAAWQ,KAAX,CACL,YAAYT,MAAM,CAACK,SAAS,6BADvB,EAELL,MAFK,CAAP;EAID;;AA5DqD;;QAA3CH,0B,GAAAA,0B","names":["PaymentExpectationCustomer","Resource","get","params","axios","$get","getBySociety","cancelToken","idSociety","Object","stats","pay","$post","confirm","delete","$delete","id","refund","$put","create"],"sourceRoot":"","sources":["../../../ts/api/resources/PaymentExpectationCustomer.ts"],"sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n QueryGetPaymentExpectationCustomer,\n IPaymentExpectationCustomer,\n QueryPayPaymentExpectationCustomer,\n QueryConfirmPaymentExpectationCustomer,\n QueryGetSocietyPaymentsExpectationsCustomers,\n QueryDeleteSocietyPaymentExpectationCustomer,\n BasePaginate,\n UpdateRefundSocietyPaymentExpectationCustomer,\n CreateSocietyPaymentExpectationCustomer,\n ReadPaymentExpectationCustomerStat,\n QueryGetSocietyPaymentsExpectationsCustomersStats,\n} from '../../types';\n\nexport class PaymentExpectationCustomer extends Resource {\n get(\n params: QueryGetPaymentExpectationCustomer,\n ): Promise<IPaymentExpectationCustomer> {\n return this.axios.$get('/paymentExpectationCustomer', { params });\n }\n getBySociety(\n params: QueryGetSocietyPaymentsExpectationsCustomers,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<IPaymentExpectationCustomer>> {\n return this.axios.$get(\n `/society/${params.idSociety}/paymentsExpectationsCustomers`,\n {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n },\n );\n }\n stats(\n params: QueryGetSocietyPaymentsExpectationsCustomersStats,\n ): Promise<ReadPaymentExpectationCustomerStat> {\n return this.axios.$get(\n `/society/${params.idSociety}/paymentsExpectationsCustomers/stats`,\n {\n params,\n },\n );\n }\n pay(\n params: QueryPayPaymentExpectationCustomer,\n ): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post('/paymentExpectationCustomer/pay', params);\n }\n confirm(\n params: QueryConfirmPaymentExpectationCustomer,\n ): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post('/paymentExpectationCustomer/confirm', params);\n }\n delete(\n params: QueryDeleteSocietyPaymentExpectationCustomer,\n ): Promise<IPaymentExpectationCustomer> {\n return this.axios.$delete(\n `/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}`,\n );\n }\n refund(\n params: UpdateRefundSocietyPaymentExpectationCustomer,\n ): Promise<IPaymentExpectationCustomer> {\n return this.axios.$put(\n `/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}/refund`,\n params,\n );\n }\n create(\n params: CreateSocietyPaymentExpectationCustomer,\n ): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post(\n `/society/${params.idSociety}/paymentExpectationCustomer`,\n params,\n );\n }\n}\n"]}
|
|
@@ -12,10 +12,12 @@ class Product extends _Resource.Resource {
|
|
|
12
12
|
return this.axios.$get('/commercial-management/products');
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
getPaginated(pagination, query) {
|
|
16
|
-
return this.axios.$get('/commercial-management/products', {
|
|
15
|
+
getPaginated(pagination, query, cancelToken) {
|
|
16
|
+
return this.axios.$get('/commercial-management/products', Object.assign(Object.assign({}, cancelToken ? {
|
|
17
|
+
cancelToken
|
|
18
|
+
} : {}), {
|
|
17
19
|
params: Object.assign(Object.assign({}, pagination), query)
|
|
18
|
-
});
|
|
20
|
+
}));
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
create(payload) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Product.js","mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"Product.js","mappings":";;;;;;;AACA;;AAUM,MAAOA,OAAP,SAAuBC,kBAAvB,CAA+B;EACnCC,MAAM;IACJ,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,iCAAhB,CAAP;EACD;;EAEDC,YAAY,CACVC,UADU,EAEVC,KAFU,EAGVC,WAHU,EAGe;IAEzB,OAAO,KAAKL,KAAL,CAAWC,IAAX,CAAgB,iCAAhB,EAAiDK,gCAClDD,WAAW,GAAG;MAAEA;IAAF,CAAH,GAAqB,EADkB,GACf;MACvCE,MAAM,kCACDJ,UADC,GAEDC,KAFC;IADiC,CADe,CAAjD,CAAP;EAOD;;EAEDI,MAAM,CAACC,OAAD,EAAuB;IAC3B,OAAO,KAAKT,KAAL,CAAWU,KAAX,CAAiB,iCAAjB,EAAoDD,OAApD,CAAP;EACD;;EAEDE,MAAM,CAACC,EAAD,EAAaH,OAAb,EAAmC;IACvC,OAAO,KAAKT,KAAL,CAAWa,IAAX,CAAgB,mCAAmCD,EAAE,EAArD,EAAyDH,OAAzD,CAAP;EACD;;EAEDK,MAAM,CAACF,EAAD,EAAW;IACf,OAAO,KAAKZ,KAAL,CAAWe,OAAX,CAAmB,mCAAmCH,EAAE,EAAxD,CAAP;EACD;;EAEDI,MAAM,CAACC,IAAD,EAAW;IACf,MAAMC,QAAQ,GAAG,IAAIC,QAAJ,EAAjB;IACAD,QAAQ,CAACE,MAAT,CAAgB,MAAhB,EAAwBH,IAAxB;IACA,OAAO,KAAKjB,KAAL,CAAWU,KAAX,CAAiB,wCAAjB,EAA2DQ,QAA3D,CAAP;EACD;;EAEDG,MAAM;IACJ,OAAO,KAAKrB,KAAL,CAAWC,IAAX,CAAgB,wCAAhB,EAA0D;MAC/DqB,YAAY,EAAE;IADiD,CAA1D,CAAP;EAGD;;AAzCkC;;QAAxBzB,O,GAAAA,O","names":["Product","Resource","getAll","axios","$get","getPaginated","pagination","query","cancelToken","Object","params","create","payload","$post","update","id","$put","delete","$delete","import","file","formData","FormData","append","export","responseType"],"sourceRoot":"","sources":["../../../ts/api/resources/Product.ts"],"sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n IProduct,\n QueryPaginate,\n QueryProduct,\n BasePaginate,\n CreateProduct,\n UpdateProduct,\n} from '../../types';\n\nexport class Product extends Resource {\n getAll(): Promise<Array<IProduct>> {\n return this.axios.$get('/commercial-management/products');\n }\n\n getPaginated(\n pagination: QueryPaginate,\n query?: QueryProduct,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<IProduct>> {\n return this.axios.$get('/commercial-management/products', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...pagination,\n ...query,\n },\n });\n }\n\n create(payload: CreateProduct): Promise<IProduct> {\n return this.axios.$post('/commercial-management/products', payload);\n }\n\n update(id: number, payload: UpdateProduct): Promise<IProduct> {\n return this.axios.$put(`/commercial-management/products/${id}`, payload);\n }\n\n delete(id: number): Promise<boolean> {\n return this.axios.$delete(`/commercial-management/products/${id}`);\n }\n\n import(file: File): Promise<void> {\n const formData = new FormData();\n formData.append('file', file);\n return this.axios.$post('/commercial-management/products/import', formData);\n }\n\n export(): Promise<Buffer> {\n return this.axios.$get('/commercial-management/products/export', {\n responseType: 'arraybuffer',\n });\n }\n}\n"]}
|
|
@@ -28,10 +28,12 @@ class SheetMonthSchedule extends _Resource.Resource {
|
|
|
28
28
|
return this.axios.$delete(`/sheet-month-schedules/${id}`);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
getPaginate(params) {
|
|
32
|
-
return this.axios.$get('/sheet-month-schedules', {
|
|
31
|
+
getPaginate(params, cancelToken) {
|
|
32
|
+
return this.axios.$get('/sheet-month-schedules', Object.assign(Object.assign({}, cancelToken ? {
|
|
33
|
+
cancelToken
|
|
34
|
+
} : {}), {
|
|
33
35
|
params
|
|
34
|
-
});
|
|
36
|
+
}));
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
updateOrCreateSheetMonthScheduleDetail(idSheetMonthSchedule, payload) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetMonthSchedule.js","mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"SheetMonthSchedule.js","mappings":";;;;;;;AAOA;;AAEM,MAAOA,kBAAP,SAAkCC,kBAAlC,CAA0C;EACvCC,MAAM,CACXC,UADW,EAEXC,OAFW,EAEkD;IAE7D,OAAO,KAAKC,KAAL,CAAWC,KAAX,CAAiB,0BAA0BH,UAAU,EAArD,EAAyDC,OAAzD,CAAP;EACD;;EAEMG,MAAM,CAACJ,UAAD,EAAmB;IAC9B,OAAO,KAAKE,KAAL,CAAWG,IAAX,CAAgB,cAAcL,UAAU,wBAAxC,CAAP;EACD;;EAEMM,GAAG,CAACC,EAAD,EAAW;IACnB,OAAO,KAAKL,KAAL,CAAWG,IAAX,CAAgB,0BAA0BE,EAAE,EAA5C,CAAP;EACD;;EAEMC,MAAM,CACXD,EADW,EAEXN,OAFW,EAE0B;IAErC,OAAO,KAAKC,KAAL,CAAWO,IAAX,CAAgB,0BAA0BF,EAAE,EAA5C,EAAgDN,OAAhD,CAAP;EACD;;EAEMS,MAAM,CAACH,EAAD,EAAW;IACtB,OAAO,KAAKL,KAAL,CAAWS,OAAX,CAAmB,0BAA0BJ,EAAE,EAA/C,CAAP;EACD;;EAEMK,WAAW,CAChBC,MADgB,EAEhBC,WAFgB,EAES;IAEzB,OAAO,KAAKZ,KAAL,CAAWG,IAAX,CAAgB,wBAAhB,EAAwCU,gCACzCD,WAAW,GAAG;MAAEA;IAAF,CAAH,GAAqB,EADS,GACN;MACvCD;IADuC,CADM,CAAxC,CAAP;EAID;;EAEMG,sCAAsC,CAC3CC,oBAD2C,EAE3ChB,OAF2C,EAE8B;IAEzE,OAAO,KAAKC,KAAL,CAAWC,KAAX,CACL,0BAA0Bc,oBAAoB,UADzC,EAELhB,OAFK,CAAP;EAID;;EAEMiB,8BAA8B,CACnCD,oBADmC,EAEnCE,2BAFmC,EAEA;IAEnC,OAAO,KAAKjB,KAAL,CAAWS,OAAX,CACL,0BAA0BM,oBAAoB,YAAYE,2BAA2B,EADhF,CAAP;EAGD;;AAtD6C;;QAAnCtB,kB,GAAAA,kB","names":["SheetMonthSchedule","Resource","create","idEmployee","payload","axios","$post","getAll","$get","get","id","update","$put","delete","$delete","getPaginate","params","cancelToken","Object","updateOrCreateSheetMonthScheduleDetail","idSheetMonthSchedule","deleteSheetMonthScheduleDetail","idSheetMonthScheduleDetails"],"sourceRoot":"","sources":["../../../ts/api/resources/SheetMonthSchedule.ts"],"sourcesContent":["import { CancelToken } from 'axios';\nimport {\n BasePaginate,\n ISheetMonthSchedule,\n ISheetMonthScheduleDetail,\n QuerySheetMonthSchedule,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class SheetMonthSchedule extends Resource {\n public create(\n idEmployee: number,\n payload: Omit<ISheetMonthSchedule, 'idEmployee' | 'employee'>,\n ): Promise<ISheetMonthSchedule> {\n return this.axios.$post(`/sheet-month-schedules/${idEmployee}`, payload);\n }\n\n public getAll(idEmployee: number): Promise<ISheetMonthSchedule[]> {\n return this.axios.$get(`/employees/${idEmployee}/sheet-month-schedules`);\n }\n\n public get(id: number): Promise<ISheetMonthSchedule> {\n return this.axios.$get(`/sheet-month-schedules/${id}`);\n }\n\n public update(\n id: number,\n payload: Partial<ISheetMonthSchedule>,\n ): Promise<ISheetMonthSchedule> {\n return this.axios.$put(`/sheet-month-schedules/${id}`, payload);\n }\n\n public delete(id: number): Promise<true> {\n return this.axios.$delete(`/sheet-month-schedules/${id}`);\n }\n\n public getPaginate(\n params: QuerySheetMonthSchedule,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<SheetMonthSchedule>> {\n return this.axios.$get('/sheet-month-schedules', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n public updateOrCreateSheetMonthScheduleDetail(\n idSheetMonthSchedule: number,\n payload: Partial<Omit<ISheetMonthScheduleDetail, 'idSheetMonthSchedule'>>,\n ): Promise<ISheetMonthScheduleDetail> {\n return this.axios.$post(\n `/sheet-month-schedules/${idSheetMonthSchedule}/details`,\n payload,\n );\n }\n\n public deleteSheetMonthScheduleDetail(\n idSheetMonthSchedule: number,\n idSheetMonthScheduleDetails: number,\n ): Promise<true> {\n return this.axios.$delete(\n `/sheet-month-schedules/${idSheetMonthSchedule}/details/${idSheetMonthScheduleDetails}`,\n );\n }\n}\n"]}
|
|
@@ -12,10 +12,12 @@ class ThirdParty extends _Resource.Resource {
|
|
|
12
12
|
return this.axios.$get('/third-parties');
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
getPaginated(pagination, query) {
|
|
16
|
-
return this.axios.$get('/third-parties/paginate', {
|
|
15
|
+
getPaginated(pagination, query, cancelToken) {
|
|
16
|
+
return this.axios.$get('/third-parties/paginate', Object.assign(Object.assign({}, cancelToken ? {
|
|
17
|
+
cancelToken
|
|
18
|
+
} : {}), {
|
|
17
19
|
params: Object.assign(Object.assign({}, pagination), query)
|
|
18
|
-
});
|
|
20
|
+
}));
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
update(idThirdParty, payload) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThirdParty.js","mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"ThirdParty.js","mappings":";;;;;;;AACA;;AAUM,MAAOA,UAAP,SAA0BC,kBAA1B,CAAkC;EACtCC,MAAM;IACJ,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,gBAAhB,CAAP;EACD;;EAEDC,YAAY,CACVC,UADU,EAEVC,KAFU,EAGVC,WAHU,EAGe;IAEzB,OAAO,KAAKL,KAAL,CAAWC,IAAX,CAAgB,yBAAhB,EAAyCK,gCAC1CD,WAAW,GAAG;MAAEA;IAAF,CAAH,GAAqB,EADU,GACP;MACvCE,MAAM,kCACDJ,UADC,GAEDC,KAFC;IADiC,CADO,CAAzC,CAAP;EAOD;;EAEDI,MAAM,CACJC,YADI,EAEJC,OAFI,EAEyB;IAE7B,OAAO,KAAKV,KAAL,CAAWW,IAAX,CAAgB,kBAAkBF,YAAY,EAA9C,EAAkDC,OAAlD,CAAP;EACD;;EAEDE,MAAM,CAACF,OAAD,EAA8B;IAClC,OAAO,KAAKV,KAAL,CAAWa,KAAX,CAAiB,gBAAjB,EAAmCH,OAAnC,CAAP;EACD;;EAEDI,MAAM,CAACL,YAAD,EAAqB;IACzB,OAAO,KAAKT,KAAL,CAAWe,OAAX,CAAmB,kBAAkBN,YAAY,EAAjD,CAAP;EACD;;AAhCqC;;QAA3BZ,U,GAAAA,U","names":["ThirdParty","Resource","getAll","axios","$get","getPaginated","pagination","query","cancelToken","Object","params","update","idThirdParty","payload","$put","create","$post","delete","$delete"],"sourceRoot":"","sources":["../../../ts/api/resources/ThirdParty.ts"],"sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n QueryPaginate,\n BasePaginate,\n IThirdParty,\n QueryThirdParty,\n UpdateThirdPartyForm,\n CreateThirdPartyForm,\n} from '../../types';\n\nexport class ThirdParty extends Resource {\n getAll(): Promise<Array<IThirdParty>> {\n return this.axios.$get('/third-parties');\n }\n\n getPaginated(\n pagination: QueryPaginate,\n query?: QueryThirdParty,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<IThirdParty>> {\n return this.axios.$get('/third-parties/paginate', {\n ...(cancelToken ? { cancelToken } : {}),\n params: {\n ...pagination,\n ...query,\n },\n });\n }\n\n update(\n idThirdParty: number,\n payload: UpdateThirdPartyForm,\n ): Promise<IThirdParty> {\n return this.axios.$put(`/third-parties/${idThirdParty}`, payload);\n }\n\n create(payload: CreateThirdPartyForm): Promise<IThirdParty> {\n return this.axios.$post('/third-parties', payload);\n }\n\n delete(idThirdParty: number): Promise<true> {\n return this.axios.$delete(`/third-parties/${idThirdParty}`);\n }\n}\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var BankCollectingState = exports.BankCollectingState = undefined;
|
|
7
|
+
|
|
8
|
+
(function (BankCollectingState) {
|
|
9
|
+
BankCollectingState[BankCollectingState["INVOICE_IN_PROGRESS"] = 1] = "INVOICE_IN_PROGRESS";
|
|
10
|
+
BankCollectingState[BankCollectingState["PENDING_COLLECTION"] = 2] = "PENDING_COLLECTION";
|
|
11
|
+
BankCollectingState[BankCollectingState["INVOICED"] = 3] = "INVOICED";
|
|
12
|
+
BankCollectingState[BankCollectingState["REFUSED_INVOICE"] = 4] = "REFUSED_INVOICE";
|
|
13
|
+
})(BankCollectingState || (exports.BankCollectingState = BankCollectingState = {}));
|
|
14
|
+
|
|
15
|
+
const BankCollectingStateList = exports.BankCollectingStateList = [{
|
|
16
|
+
id: BankCollectingState.INVOICE_IN_PROGRESS,
|
|
17
|
+
label: 'Facturation en cours'
|
|
18
|
+
}, {
|
|
19
|
+
id: BankCollectingState.PENDING_COLLECTION,
|
|
20
|
+
label: 'Encaissement en att.'
|
|
21
|
+
}, {
|
|
22
|
+
id: BankCollectingState.INVOICED,
|
|
23
|
+
label: 'Facturé et encaissé'
|
|
24
|
+
}, {
|
|
25
|
+
id: BankCollectingState.REFUSED_INVOICE,
|
|
26
|
+
label: 'Facturation refusée'
|
|
27
|
+
}];
|
|
28
|
+
//# sourceMappingURL=BankCollectingState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BankCollectingState.js","mappings":";;;;;AAAA,IAAYA,mBAKX,WALWA,mBAKX,YALD;;AAAA,WAAYA,mBAAZ,EAA+B;EAC7BA;EACAA;EACAA;EACAA;AACD,CALD,EAAYA,mBAAmB,aAAnBA,mBAAmB,GAAnBA,mBAAmB,MAA/B;;AAOO,MAAMC,uBAAuB,WAAvBA,uBAAuB,GAAG,CACrC;EACEC,EAAE,EAAEF,mBAAmB,CAACG,mBAD1B;EAEEC,KAAK,EAAE;AAFT,CADqC,EAKrC;EACEF,EAAE,EAAEF,mBAAmB,CAACK,kBAD1B;EAEED,KAAK,EAAE;AAFT,CALqC,EASrC;EACEF,EAAE,EAAEF,mBAAmB,CAACM,QAD1B;EAEEF,KAAK,EAAE;AAFT,CATqC,EAarC;EACEF,EAAE,EAAEF,mBAAmB,CAACO,eAD1B;EAEEH,KAAK,EAAE;AAFT,CAbqC,CAAhC","names":["BankCollectingState","BankCollectingStateList","id","INVOICE_IN_PROGRESS","label","PENDING_COLLECTION","INVOICED","REFUSED_INVOICE"],"sourceRoot":"","sources":["../../../ts/types/Enum/BankCollectingState.ts"],"sourcesContent":["export enum BankCollectingState {\n INVOICE_IN_PROGRESS = 1,\n PENDING_COLLECTION = 2,\n INVOICED = 3,\n REFUSED_INVOICE = 4,\n}\n\nexport const BankCollectingStateList = [\n {\n id: BankCollectingState.INVOICE_IN_PROGRESS,\n label: 'Facturation en cours',\n },\n {\n id: BankCollectingState.PENDING_COLLECTION,\n label: 'Encaissement en att.',\n },\n {\n id: BankCollectingState.INVOICED,\n label: 'Facturé et encaissé',\n },\n {\n id: BankCollectingState.REFUSED_INVOICE,\n label: 'Facturation refusée',\n }];"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
const PhonePrefix = exports.PhonePrefix = {
|
|
7
|
+
FRANCE: {
|
|
8
|
+
id: 1,
|
|
9
|
+
prefix: '+33',
|
|
10
|
+
text: '+33 (France)'
|
|
11
|
+
},
|
|
12
|
+
GUADELOUPE: {
|
|
13
|
+
id: 2,
|
|
14
|
+
prefix: '+590',
|
|
15
|
+
text: '+590 (Guadeloupe)'
|
|
16
|
+
},
|
|
17
|
+
GUYANE: {
|
|
18
|
+
id: 3,
|
|
19
|
+
prefix: '+594',
|
|
20
|
+
text: '+594 (Guyane)'
|
|
21
|
+
},
|
|
22
|
+
MARTINIQUE: {
|
|
23
|
+
id: 4,
|
|
24
|
+
prefix: '+596',
|
|
25
|
+
text: '+596 (Martinique)'
|
|
26
|
+
},
|
|
27
|
+
NEW_CALEDONIA: {
|
|
28
|
+
id: 5,
|
|
29
|
+
prefix: '+687',
|
|
30
|
+
text: '+687 (Nouvelle-Calédonie)'
|
|
31
|
+
},
|
|
32
|
+
REUNION: {
|
|
33
|
+
id: 6,
|
|
34
|
+
prefix: '+262',
|
|
35
|
+
text: '+262 (La Réunion)'
|
|
36
|
+
},
|
|
37
|
+
GERMANY: {
|
|
38
|
+
id: 7,
|
|
39
|
+
prefix: '+49',
|
|
40
|
+
text: '+49 (Allemagne)'
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=Phone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Phone.js","mappings":";;;;;AAAO,MAAMA,WAAW,WAAXA,WAAW,GAAG;EACzBC,MAAM,EAAE;IACNC,EAAE,EAAE,CADE;IAENC,MAAM,EAAE,KAFF;IAGNC,IAAI,EAAE;EAHA,CADiB;EAMzBC,UAAU,EAAE;IACVH,EAAE,EAAE,CADM;IAEVC,MAAM,EAAE,MAFE;IAGVC,IAAI,EAAE;EAHI,CANa;EAWzBE,MAAM,EAAE;IACNJ,EAAE,EAAE,CADE;IAENC,MAAM,EAAE,MAFF;IAGNC,IAAI,EAAE;EAHA,CAXiB;EAgBzBG,UAAU,EAAE;IACVL,EAAE,EAAE,CADM;IAEVC,MAAM,EAAE,MAFE;IAGVC,IAAI,EAAE;EAHI,CAhBa;EAqBzBI,aAAa,EAAE;IACbN,EAAE,EAAE,CADS;IAEbC,MAAM,EAAE,MAFK;IAGbC,IAAI,EAAE;EAHO,CArBU;EA0BzBK,OAAO,EAAE;IACPP,EAAE,EAAE,CADG;IAEPC,MAAM,EAAE,MAFD;IAGPC,IAAI,EAAE;EAHC,CA1BgB;EA+BzBM,OAAO,EAAE;IACPR,EAAE,EAAE,CADG;IAEPC,MAAM,EAAE,KAFD;IAGPC,IAAI,EAAE;EAHC;AA/BgB,CAApB","names":["PhonePrefix","FRANCE","id","prefix","text","GUADELOUPE","GUYANE","MARTINIQUE","NEW_CALEDONIA","REUNION","GERMANY"],"sourceRoot":"","sources":["../../../ts/types/Enum/Phone.ts"],"sourcesContent":["export const PhonePrefix = {\n FRANCE: {\n id: 1,\n prefix: '+33',\n text: '+33 (France)',\n },\n GUADELOUPE: {\n id: 2,\n prefix: '+590',\n text: '+590 (Guadeloupe)',\n },\n GUYANE: {\n id: 3,\n prefix: '+594',\n text: '+594 (Guyane)',\n },\n MARTINIQUE: {\n id: 4,\n prefix: '+596',\n text: '+596 (Martinique)',\n },\n NEW_CALEDONIA: {\n id: 5,\n prefix: '+687',\n text: '+687 (Nouvelle-Calédonie)',\n },\n REUNION: {\n id: 6,\n prefix: '+262',\n text: '+262 (La Réunion)',\n },\n GERMANY: {\n id: 7,\n prefix: '+49',\n text: '+49 (Allemagne)',\n },\n};"]}
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.QueryGetAllTransactions = exports.QueryTransaction = undefined;
|
|
6
|
+
exports._QueryTransaction = exports.QueryGetAllTransactions = exports.QueryTransaction = undefined;
|
|
7
|
+
|
|
8
|
+
var _classTransformer = require("class-transformer");
|
|
7
9
|
|
|
8
10
|
var _utils = require("../../../../utils");
|
|
9
11
|
|
|
@@ -62,4 +64,10 @@ exports.QueryGetAllTransactions = QueryGetAllTransactions;
|
|
|
62
64
|
__decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", Number)], QueryGetAllTransactions.prototype, "typeOperation", void 0);
|
|
63
65
|
|
|
64
66
|
__decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", String)], QueryGetAllTransactions.prototype, "dateValue", void 0);
|
|
67
|
+
|
|
68
|
+
class _QueryTransaction extends QueryTransaction {}
|
|
69
|
+
|
|
70
|
+
exports._QueryTransaction = _QueryTransaction;
|
|
71
|
+
|
|
72
|
+
__decorate([(0, _classTransformer.Type)(() => Number), __metadata("design:type", Number)], _QueryTransaction.prototype, "idTypeAccountingFile", void 0);
|
|
65
73
|
//# sourceMappingURL=QueryTransaction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryTransaction.js","mappings":";;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,gBAAP,CAAuB;;QAAhBA,gB,GAAAA,gB;;AAIXC,YADC,yBACD;;AAGAA,YADC,yBACD;;AAIAA,YAFC,yBAED;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGI,MAAOC,uBAAP,CAA8B;;QAAvBA,uB,GAAAA,uB;;AAEXD,YADC,iCACD;;AAGAA,YADC,iCACD","names":["QueryTransaction","__decorate","QueryGetAllTransactions"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingTransaction/QueryTransaction.ts"],"sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { TypeCustomerProviderOperation } from '../../../Enum/TypeCustomerProviderOperation';\n\nexport class QueryTransaction {\n id: number;\n\n @ApiProperty()\n page: number;\n\n @ApiProperty()\n limit: number;\n\n @ApiProperty()\n // @Type(() => Number)\n idAccountingJournal: number[];\n\n @ApiPropertyOptional()\n idBankAccount?: number[];\n\n @ApiPropertyOptional()\n idAccountType?: number;\n\n @ApiPropertyOptional()\n orderBy?: string;\n\n @ApiPropertyOptional()\n search?: string;\n\n @ApiPropertyOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n toAnnotate?: boolean;\n\n @ApiPropertyOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n endDate?: string;\n\n @ApiPropertyOptional()\n withoutReceipt?: boolean;\n\n @ApiPropertyOptional()\n invoiceRequested?: boolean;\n\n @ApiPropertyOptional()\n onlyCredit?: boolean;\n\n @ApiPropertyOptional()\n onlyDebit?: boolean;\n}\n\nexport class QueryGetAllTransactions {\n @ApiPropertyOptional()\n typeOperation?: TypeCustomerProviderOperation;\n\n @ApiPropertyOptional()\n dateValue?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"QueryTransaction.js","mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,gBAAP,CAAuB;;QAAhBA,gB,GAAAA,gB;;AAIXC,YADC,yBACD;;AAGAA,YADC,yBACD;;AAIAA,YAFC,yBAED;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGI,MAAOC,uBAAP,CAA8B;;QAAvBA,uB,GAAAA,uB;;AAEXD,YADC,iCACD;;AAGAA,YADC,iCACD;;AAGI,MAAOE,iBAAP,SAAiCH,gBAAjC,CAAiD;;QAA1CG,iB,GAAAA,iB;;AAEXF,YADC,4BAAK,MAAMG,MAAX,CACD","names":["QueryTransaction","__decorate","QueryGetAllTransactions","_QueryTransaction","Number"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingTransaction/QueryTransaction.ts"],"sourcesContent":["import { Type } from 'class-transformer';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { TypeCustomerProviderOperation } from '../../../Enum/TypeCustomerProviderOperation';\n\nexport class QueryTransaction {\n id: number;\n\n @ApiProperty()\n page: number;\n\n @ApiProperty()\n limit: number;\n\n @ApiProperty()\n // @Type(() => Number)\n idAccountingJournal: number[];\n\n @ApiPropertyOptional()\n idBankAccount?: number[];\n\n @ApiPropertyOptional()\n idAccountType?: number;\n\n @ApiPropertyOptional()\n orderBy?: string;\n\n @ApiPropertyOptional()\n search?: string;\n\n @ApiPropertyOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n toAnnotate?: boolean;\n\n @ApiPropertyOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n endDate?: string;\n\n @ApiPropertyOptional()\n withoutReceipt?: boolean;\n\n @ApiPropertyOptional()\n invoiceRequested?: boolean;\n\n @ApiPropertyOptional()\n onlyCredit?: boolean;\n\n @ApiPropertyOptional()\n onlyDebit?: boolean;\n}\n\nexport class QueryGetAllTransactions {\n @ApiPropertyOptional()\n typeOperation?: TypeCustomerProviderOperation;\n\n @ApiPropertyOptional()\n dateValue?: string;\n}\n\nexport class _QueryTransaction extends QueryTransaction {\n @Type(() => Number)\n idTypeAccountingFile: number;\n}\n"]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.CreateRecurrence = exports.CreateReminder = exports.CreateCgv = exports.CreateInvoiceDocument = exports.CreatePreSaleDocument = exports.CommercialDocumentInputs = exports.CreateCommercialMailWithMultipleFiles = exports.CreateCommercialMail = exports.CreateCommercialSetting = undefined;
|
|
6
|
+
exports.CreateRegenerateDocument = exports.CreateRecurrence = exports.CreateReminder = exports.CreateCgv = exports.CreateInvoiceDocument = exports.CreatePreSaleDocument = exports.CommercialDocumentInputs = exports.CreateCommercialMailWithMultipleFiles = exports.CreateCommercialMail = exports.CreateCommercialSetting = undefined;
|
|
7
7
|
|
|
8
8
|
var _classValidator = require("class-validator");
|
|
9
9
|
|
|
@@ -266,4 +266,14 @@ __decorate([(0, _utils.ApiProperty)(), (0, _classValidator.IsDateString)(), __me
|
|
|
266
266
|
__decorate([(0, _utils.ApiProperty)(), (0, _classValidator.IsDateString)(), __metadata("design:type", String)], CreateRecurrence.prototype, "endDate", void 0);
|
|
267
267
|
|
|
268
268
|
__decorate([(0, _utils.ApiProperty)(), (0, _boolean.ToBoolean)(), (0, _classValidator.IsBoolean)(), __metadata("design:type", Boolean)], CreateRecurrence.prototype, "isActive", void 0);
|
|
269
|
+
|
|
270
|
+
class CreateRegenerateDocument {}
|
|
271
|
+
|
|
272
|
+
exports.CreateRegenerateDocument = CreateRegenerateDocument;
|
|
273
|
+
|
|
274
|
+
__decorate([(0, _utils.ApiProperty)(), (0, _classValidator.IsString)(), __metadata("design:type", String)], CreateRegenerateDocument.prototype, "label", void 0);
|
|
275
|
+
|
|
276
|
+
__decorate([(0, _utils.ApiProperty)(), (0, _classValidator.IsString)(), __metadata("design:type", String)], CreateRegenerateDocument.prototype, "reference", void 0);
|
|
277
|
+
|
|
278
|
+
__decorate([(0, _utils.ApiProperty)(), (0, _classValidator.IsString)(), __metadata("design:type", String)], CreateRegenerateDocument.prototype, "title", void 0);
|
|
269
279
|
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","mappings":";;;;;;;AAAA;;AAGA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;AAOM,MAAOA,uBAAP,CAA8B;;QAAvBA,uB,GAAAA,uB;;AAOXC,YANC,iCAMD,EALC,iCAKD,EAJC,+BAID,EAHC,yBAAI,CAAJ,EAAO;EACNC,OAAO,EAAE;AADH,CAAP,CAGD;;AAKAD,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,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,WAAW,EAAE;AAAf,CAAZ,CACD;;AAGAL,YADC,wBAAY;EAAEK,WAAW,EAAE;AAAf,CAAZ,CACD;;AAGAL,YADC,wBAAY;EAAEK,WAAW,EAAE;AAAf,CAAZ,CACD;;AAGAL,YADC,yBACD;;AAGAA,YADC,yBACD;;AAGAA,YADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAGAA,YADC,yBACD;;AAGAA,YADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAGI,MAAOO,qBAAP,SAAqCH,wBAArC,CAA6D;;QAAtDG,qB,GAAAA,qB;;AAMP,MAAOC,qBAAP,SAAqCJ,wBAArC,CAA6D;;QAAtDI,qB,GAAAA,qB;;AAQP,MAAOC,SAAP,CAAgB;;QAATA,S,GAAAA,S;;AAEXT,YADC,yBACD;;AAGI,MAAOU,cAAP,CAAqB;;QAAdA,c,GAAAA,c;;AAIXV,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,yBAGD,EAFC,gCAED,EADC,yBACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAKAA,YAHC,iCAGD,EAFC,+BAED,EADC,iCACD;;AAIAA,YAFC,yBAED,EADC,+BACD;;AAGI,MAAOW,gBAAP,CAAuB;;QAAhBA,gB,GAAAA,gB;;AAGXX,YAFC,yBAED,EADC,4BAAOY,8BAAP,CACD;;AAIAZ,YAFC,yBAED,EADC,mCACD;;AAIAA,YAFC,yBAED,EADC,mCACD;;AAKAA,YAHC,yBAGD,EAFC,yBAED,EADC,gCACD","names":["CreateCommercialSetting","__decorate","message","CreateCommercialMail","CreateCommercialMailWithMultipleFiles","CommercialDocumentInputs","description","Array","CreatePreSaleDocument","CreateInvoiceDocument","CreateCgv","CreateReminder","CreateRecurrence","RecurrenceType"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"sourcesContent":["import {\n IsArray, IsBoolean, IsDateString, IsEnum, IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { AccountingCategoryId, FontIds, LogoAlignment } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { RecurrenceType } from '../../../Enum/RecurrenceType';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ISocietyGescom } from '../../models/ISocietyGescom';\nimport { IThirdParty } from '../../models/IThirdParty';\n\nexport type IProductInvoiceToCreate = IProductInvoice & { save?: boolean };\n\nexport class CreateCommercialSetting {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n @Min(0, {\n message: 'Capital should be positive',\n })\n capital?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n tvaCode?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n rcs?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n numberTradeDirectory?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bank?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n iban?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bic?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n mailContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n phoneContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n website?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n commercialName?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n penalties?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n discount?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n recoveryCost?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n vatMention?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n generatedBy?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n acceptCheque?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n mentionAutoent?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startInvoice?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startEstimate?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n dayOfValidity?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n paymentsAccepted?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n stripePaymentByDefault?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n displayLogo?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n invoiceCgv?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n color?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeInvoiceText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeEstimateText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n logoAlignment?: LogoAlignment | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idFont?: FontIds | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isEdgingDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n edgingColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n fontColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isCoordinatesFrameDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areLinesSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areColumnsSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n accountingCategory?: AccountingCategoryId;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n}\n\nexport class CreateCommercialMail {\n @ApiProperty()\n @IsString()\n to: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n cc?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bcc?: string;\n\n @ApiProperty()\n @IsString()\n subject: string;\n\n @ApiProperty()\n @IsString()\n content: string;\n}\n\nexport class CreateCommercialMailWithMultipleFiles extends CreateCommercialMail {\n idsFile: number[];\n}\n\nexport class CommercialDocumentInputs {\n @ApiProperty()\n legalForm: string | null;\n\n @ApiProperty()\n capital: number | null;\n\n @ApiProperty()\n siren: string | null;\n\n @ApiProperty()\n rcs: string | null;\n\n @ApiProperty()\n vatCode: string | null;\n\n @ApiProperty()\n nafCode: string | null;\n\n @ApiProperty()\n @IsString()\n reference: string;\n\n @ApiProperty()\n thirdParty: IThirdParty;\n\n @ApiProperty()\n @IsDateString()\n emissionDate: string;\n\n @ApiProperty()\n @IsDateString()\n dueDate: string;\n\n @ApiProperty({ description: 'Date d\\'expiration pour la facture d\\'acompte' })\n expirationDate: string | null;\n\n @ApiProperty({ description: 'Conditions de réglement' })\n termsOfPayment: string | null;\n\n @ApiProperty()\n @IsArray()\n products: Array<IProductInvoiceToCreate>;\n\n @ApiProperty({ description: 'Escompte' })\n discount: string | null;\n\n @ApiProperty()\n comment: string | null;\n\n @ApiProperty({ description: 'Pénalité de retard' })\n penalties: string | null;\n\n @ApiPropertyOptional({ description: 'Remise globale' })\n generalDiscount2: number | null;\n\n @ApiProperty({ description: 'Indemnité forfaitaire' })\n compensation: string | null;\n\n @ApiProperty()\n vatMention: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n disableVat: boolean;\n\n @ApiProperty()\n title: string | null;\n\n @ApiProperty({ description: 'Commercial name of seller' })\n @IsString()\n name: string;\n\n @ApiProperty({ description: 'Commercial number address of seller' })\n number?: string | null;\n\n @ApiProperty({ description: 'Commercial street address of seller' })\n street: string | null;\n\n @ApiProperty({ description: 'Commercial zip code address of seller' })\n zipCode: string | null;\n\n @ApiProperty({ description: 'Commercial city address of seller' })\n city: string | null;\n\n @ApiProperty()\n settings: ISocietyGescom;\n\n @ApiProperty()\n cgv: string | null;\n\n @ApiProperty()\n logoUrl: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isStripeAllowed: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isDraft: boolean;\n\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiProperty()\n accountingCategory: AccountingCategoryId;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n}\n\nexport class CreatePreSaleDocument extends CommercialDocumentInputs {\n paymentLink?: '#';\n deposit?: undefined;\n fromEstimateId: undefined;\n assetMarginVatIds?: [];\n}\nexport class CreateInvoiceDocument extends CommercialDocumentInputs {\n paymentLink?: string;\n deposit?: number;\n fromInvoiceId?: number | null; // Nécessaire lors de la création d'un avoir à partir d'une facture\n fromEstimateId: number | null; // Nécessaire lors du passage d'un devis à facture\n assetMarginVatIds?: number[]; // Laisser vide côté front, utilisé pour l'affichage des tva sur marge sur les acomptes\n}\n\nexport class CreateCgv {\n @ApiProperty()\n cgv: string | null;\n}\n\nexport class CreateReminder {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n beforeThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n dueDate: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterSeven: boolean;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n message?: string;\n\n @ApiProperty()\n @IsString()\n email: string;\n}\n\nexport class CreateRecurrence {\n @ApiProperty()\n @IsEnum(RecurrenceType)\n type: number;\n\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n @ToBoolean()\n @IsBoolean()\n isActive: boolean;\n}"]}
|
|
1
|
+
{"version":3,"file":"Create.js","mappings":";;;;;;;AAAA;;AAGA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;AAOM,MAAOA,uBAAP,CAA8B;;QAAvBA,uB,GAAAA,uB;;AAOXC,YANC,iCAMD,EALC,iCAKD,EAJC,+BAID,EAHC,yBAAI,CAAJ,EAAO;EACNC,OAAO,EAAE;AADH,CAAP,CAGD;;AAKAD,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED,EADC,+BACD;;AAKAA,YAHC,iCAGD,EAFC,iCAED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B;;QAAxBA,wB,GAAAA,wB;;AAGXb,YAFC,yBAED,EADC,+BACD;;AAIAA,YAFC,yBAED,EADC,+BACD;;AAIAA,YAFC,yBAED,EADC,+BACD","names":["CreateCommercialSetting","__decorate","message","CreateCommercialMail","CreateCommercialMailWithMultipleFiles","CommercialDocumentInputs","description","Array","CreatePreSaleDocument","CreateInvoiceDocument","CreateCgv","CreateReminder","CreateRecurrence","RecurrenceType","CreateRegenerateDocument"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"sourcesContent":["import {\n IsArray, IsBoolean, IsDateString, IsEnum, IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { AccountingCategoryId, FontIds, LogoAlignment } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { RecurrenceType } from '../../../Enum/RecurrenceType';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ISocietyGescom } from '../../models/ISocietyGescom';\nimport { IThirdParty } from '../../models/IThirdParty';\n\nexport type IProductInvoiceToCreate = IProductInvoice & { save?: boolean };\n\nexport class CreateCommercialSetting {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n @Min(0, {\n message: 'Capital should be positive',\n })\n capital?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n tvaCode?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n rcs?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n numberTradeDirectory?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bank?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n iban?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bic?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n mailContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n phoneContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n website?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n commercialName?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n penalties?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n discount?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n recoveryCost?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n vatMention?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n generatedBy?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n acceptCheque?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n mentionAutoent?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startInvoice?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startEstimate?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n dayOfValidity?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n paymentsAccepted?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n stripePaymentByDefault?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n displayLogo?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n invoiceCgv?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n color?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeInvoiceText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeEstimateText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n logoAlignment?: LogoAlignment | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idFont?: FontIds | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isEdgingDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n edgingColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n fontColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isCoordinatesFrameDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areLinesSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areColumnsSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n accountingCategory?: AccountingCategoryId;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n}\n\nexport class CreateCommercialMail {\n @ApiProperty()\n @IsString()\n to: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n cc?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bcc?: string;\n\n @ApiProperty()\n @IsString()\n subject: string;\n\n @ApiProperty()\n @IsString()\n content: string;\n}\n\nexport class CreateCommercialMailWithMultipleFiles extends CreateCommercialMail {\n idsFile: number[];\n}\n\nexport class CommercialDocumentInputs {\n @ApiProperty()\n legalForm: string | null;\n\n @ApiProperty()\n capital: number | null;\n\n @ApiProperty()\n siren: string | null;\n\n @ApiProperty()\n rcs: string | null;\n\n @ApiProperty()\n vatCode: string | null;\n\n @ApiProperty()\n nafCode: string | null;\n\n @ApiProperty()\n @IsString()\n reference: string;\n\n @ApiProperty()\n thirdParty: IThirdParty;\n\n @ApiProperty()\n @IsDateString()\n emissionDate: string;\n\n @ApiProperty()\n @IsDateString()\n dueDate: string;\n\n @ApiProperty({ description: 'Date d\\'expiration pour la facture d\\'acompte' })\n expirationDate: string | null;\n\n @ApiProperty({ description: 'Conditions de réglement' })\n termsOfPayment: string | null;\n\n @ApiProperty()\n @IsArray()\n products: Array<IProductInvoiceToCreate>;\n\n @ApiProperty({ description: 'Escompte' })\n discount: string | null;\n\n @ApiProperty()\n comment: string | null;\n\n @ApiProperty({ description: 'Pénalité de retard' })\n penalties: string | null;\n\n @ApiPropertyOptional({ description: 'Remise globale' })\n generalDiscount2: number | null;\n\n @ApiProperty({ description: 'Indemnité forfaitaire' })\n compensation: string | null;\n\n @ApiProperty()\n vatMention: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n disableVat: boolean;\n\n @ApiProperty()\n title: string | null;\n\n @ApiProperty({ description: 'Commercial name of seller' })\n @IsString()\n name: string;\n\n @ApiProperty({ description: 'Commercial number address of seller' })\n number?: string | null;\n\n @ApiProperty({ description: 'Commercial street address of seller' })\n street: string | null;\n\n @ApiProperty({ description: 'Commercial zip code address of seller' })\n zipCode: string | null;\n\n @ApiProperty({ description: 'Commercial city address of seller' })\n city: string | null;\n\n @ApiProperty()\n settings: ISocietyGescom;\n\n @ApiProperty()\n cgv: string | null;\n\n @ApiProperty()\n logoUrl: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isStripeAllowed: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isDraft: boolean;\n\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n\n @ApiProperty()\n accountingCategory: AccountingCategoryId;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n shouldPayTaxAfterDebit?: boolean;\n}\n\nexport class CreatePreSaleDocument extends CommercialDocumentInputs {\n paymentLink?: '#';\n deposit?: undefined;\n fromEstimateId: undefined;\n assetMarginVatIds?: [];\n}\nexport class CreateInvoiceDocument extends CommercialDocumentInputs {\n paymentLink?: string;\n deposit?: number;\n fromInvoiceId?: number | null; // Nécessaire lors de la création d'un avoir à partir d'une facture\n fromEstimateId: number | null; // Nécessaire lors du passage d'un devis à facture\n assetMarginVatIds?: number[]; // Laisser vide côté front, utilisé pour l'affichage des tva sur marge sur les acomptes\n}\n\nexport class CreateCgv {\n @ApiProperty()\n cgv: string | null;\n}\n\nexport class CreateReminder {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n beforeThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n dueDate: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterSeven: boolean;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n message?: string;\n\n @ApiProperty()\n @IsString()\n email: string;\n}\n\nexport class CreateRecurrence {\n @ApiProperty()\n @IsEnum(RecurrenceType)\n type: number;\n\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n @ToBoolean()\n @IsBoolean()\n isActive: boolean;\n}\n\nexport class CreateRegenerateDocument {\n @ApiProperty()\n @IsString()\n label: string;\n\n @ApiProperty()\n @IsString()\n reference: string;\n\n @ApiProperty()\n @IsString()\n title: string;\n}"]}
|
|
@@ -96,6 +96,11 @@ __decorate([(0, _utils.ApiPropertyOptional)({
|
|
|
96
96
|
enum: _Supervision.Supervision
|
|
97
97
|
}), __metadata("design:type", Number)], QueryTaxDeadline.prototype, "idSupervisionState", void 0);
|
|
98
98
|
|
|
99
|
+
__decorate([(0, _utils.ApiPropertyOptional)({
|
|
100
|
+
description: 'État de l encaissement',
|
|
101
|
+
enum: _.BankCollectingState
|
|
102
|
+
}), __metadata("design:type", Array)], QueryTaxDeadline.prototype, "bankCollectingState", void 0);
|
|
103
|
+
|
|
99
104
|
__decorate([(0, _utils.ApiPropertyOptional)({
|
|
100
105
|
description: 'Statuts de l\'IS/IR'
|
|
101
106
|
}), (0, _classValidator.IsOptional)(), (0, _classValidator.IsEnum)(_.ToDoOrDone), __metadata("design:type", String)], QueryTaxDeadline.prototype, "idTaxStatus", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryTaxDeadline.js","mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,gBAAP,CAAuB;;QAAhBA,gB,GAAAA,gB;;AAEXC,YADC,wBAAY;EAAEC,WAAW,EAAE;AAAf,CAAZ,CACD;;AAGAD,YADC,gCAAoB;EAAEC,WAAW,EAAE;AAAf,CAApB,CACD;;AAGAD,YADC,gCAAoB;EAAEC,WAAW,EAAE;AAAf,CAApB,CACD;;AAGAD,YADC,gCAAoB;EAAEC,WAAW,EAAE,eAAf;EAAgCC,IAAI,EAAEC;AAAtC,CAApB,CACD;;AAGAH,YADC,gCAAoB;EAAEC,WAAW,EAAE,sBAAf;EAAuCC,IAAI,EAAEE;AAA7C,CAApB,CACD;;AAGAJ,YADC,gCAAoB;EAAEC,WAAW,EAAE,mBAAf;EAAoCC,IAAI,EAAEG;AAA1C,CAApB,CACD;;AAGAL,YADC,gCAAoB;EAAEC,WAAW,EAAE,eAAf;EAAgCC,IAAI,EAAEI;AAAtC,CAApB,CACD;;AAGAN,YADC,gCAAoB;EAAEC,WAAW,EAAE;AAAf,CAApB,CACD;;AAGAD,YADC,gCAAoB;EAAEC,WAAW,EAAE;AAAf,CAApB,CACD;;AAGAD,YADC,gCAAoB;EAAEC,WAAW,EAAE;AAAf,CAApB,CACD;;AAGAD,YADC,gCAAoB;EAAEC,WAAW,EAAE;AAAf,CAApB,CACD;;AAGAD,YADC,gCAAoB;EAAEC,WAAW,EAAE;AAAf,CAApB,CACD;;AAGAD,YADC,gCAAoB;EAAEC,WAAW,EAAE;AAAf,CAApB,CACD;;AAGAD,YADC,gCAAoB;EAAEC,WA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CC,IAAI,EAAEM;AAA/C,CAApB,CACD;;AAKAR,YAHC,gCAAoB;EAAEC,WAAW,EAAE;AAAf,CAApB,CAGD,EAFC,iCAED,EADC,4BAAOQ,YAAP,CACD;;AAGI,MAAOC,0BAAP,CAAiC;;QAA1BA,0B,GAAAA,0B;;AAEXV,YADC,wBAAY;EAAEC,WAAW,EAAE;AAAf,CAAZ,CACD;;AAGAD,YADC,gCAAoB;EAAEC,WAAW,EAAE;AAAf,CAApB,CACD;;AAGAD,YADC,gCAAoB;EAAEC,WAAW,EAAE;AAAf,CAApB,CACD;;AAGAD,YADC,gCAAoB;EAAEC,WAAW,EAAE,eAAf;EAAgCC,IAAI,EAAEC;AAAtC,CAApB,CACD;;AAGAH,YADC,gCAAoB;EAAEC,WAAW,EAAE,sBAAf;EAAuCC,IAAI,EAAEE;AAA7C,CAApB,CACD;;AAGAJ,YADC,gCAAoB;EAAEC,WAAW,EAAE,mBAAf;EAAoCC,IAAI,EAAEG;AAA1C,CAApB,CACD;;AAGAL,YADC,gCAAoB;EAAEC,WAAW,EAAE,eAAf;EAAgCC,IAAI,EAAEI;AAAtC,CAApB,CACD;;AAGAN,YADC,gCAAoB;EAAEC,WAAW,EAAE;AAAf,CAApB,CACD;;AAGAD,YADC,gCAAoB;EAAEC,WAAW,EAAE;AAAf,CAApB,CACD;;AAGAD,YADC,gCAAoB;EAAEC,WAAW,EAAE;AAAf,CAApB,CACD;;AAGAD,YADC,gCAAoB;EAAEC,WAAW,EAAE;AAAf,CAApB,CACD","names":["QueryTaxDeadline","__decorate","description","enum","VatRegime","ComptaType","TaxSystem","BalanceSheetState","Supervision","BankCollectingState","ToDoOrDone","QueryTaxDeadlineStatistics"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts"],"sourcesContent":["import { IsOptional, IsEnum } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { VatRegime, ToDoOrDone, BankCollectingState } from '../../..';\nimport { ComptaType } from '../../../Enum/ComptaType';\nimport { TaxSystem } from '../../../Enum/TaxSystem';\nimport { Supervision } from '../../../Enum/Supervision';\nimport { BalanceSheetState } from '../../../Enum/BalanceSheet';\n\nexport class QueryTaxDeadline {\n @ApiProperty({ description: 'Identifiant du collaborateur' })\n idUser: number | number[];\n\n @ApiPropertyOptional({ description: 'Chiffre d\\'affaires prévisionnel minimum' })\n minimalTurnover?: number;\n\n @ApiPropertyOptional({ description: 'Chiffre d\\'affaires prévisionnel maximum' })\n maximalTurnover?: number;\n\n @ApiPropertyOptional({ description: 'Régime de TVA', enum: VatRegime })\n idVatRegime?: VatRegime | VatRegime[];\n\n @ApiPropertyOptional({ description: 'Type de comptabilité', enum: ComptaType })\n idComptaType?: ComptaType | ComptaType[];\n\n @ApiPropertyOptional({ description: 'Type de fiscalité', enum: TaxSystem })\n idTaxSystem?: TaxSystem | TaxSystem[];\n\n @ApiPropertyOptional({ description: 'État du bilan', enum: BalanceSheetState })\n idBalanceSheetState?: BalanceSheetState | BalanceSheetState[];\n\n @ApiPropertyOptional({ description: 'Date de clôture (format MM)' })\n closingDate?: string | string[];\n\n @ApiPropertyOptional({ description: 'Année de clôture (format YYYY)' })\n year?: string | string[];\n\n @ApiPropertyOptional({ description: 'Recherche par nom, code dia, id' })\n search?: string;\n\n @ApiPropertyOptional({ description: 'Récupérer les exercices qui ont une date de fin inférieure à X mois à partir d\\'aujourd\\'hui' })\n additionalMonths?: number;\n\n @ApiPropertyOptional({ description: 'Date de clôture supérieure ou égale à (format YYYY-MM-DD)' })\n minimalEndDate?: string;\n\n @ApiPropertyOptional({ description: 'Date de clôture inférieure ou égale à (format YYYY-MM-DD)' })\n maximalEndDate?: string;\n\n @ApiPropertyOptional({ description: 'État de la supervision', enum: Supervision })\n idSupervisionState?: Supervision;\n\n @ApiPropertyOptional({ description: 'État de l encaissement', enum: BankCollectingState })\n bankCollectingState?: BankCollectingState[];\n\n @ApiPropertyOptional({ description: 'Statuts de l\\'IS/IR' })\n @IsOptional()\n @IsEnum(ToDoOrDone)\n idTaxStatus?: ToDoOrDone;\n}\n\nexport class QueryTaxDeadlineStatistics {\n @ApiProperty({ description: 'Identifiant du collaborateur' })\n idUser: number | number[];\n\n @ApiPropertyOptional({ description: 'Chiffre d\\'affaires prévisionnel minimum' })\n minimalTurnover?: number;\n\n @ApiPropertyOptional({ description: 'Chiffre d\\'affaires prévisionnel maximum' })\n maximalTurnover?: number;\n\n @ApiPropertyOptional({ description: 'Régime de TVA', enum: VatRegime })\n idVatRegime?: VatRegime | VatRegime[];\n\n @ApiPropertyOptional({ description: 'Type de comptabilité', enum: ComptaType })\n idComptaType?: ComptaType | ComptaType[];\n\n @ApiPropertyOptional({ description: 'Type de fiscalité', enum: TaxSystem })\n idTaxSystem?: TaxSystem | TaxSystem[];\n\n @ApiPropertyOptional({ description: 'État du bilan', enum: BalanceSheetState })\n idBalanceSheetState?: BalanceSheetState | BalanceSheetState[];\n\n @ApiPropertyOptional({ description: 'Date de clôture (format MM-DD)' })\n closingDate?: string;\n\n @ApiPropertyOptional({ description: 'Année de clôture (format YYYY)' })\n year?: string | string[];\n\n @ApiPropertyOptional({ description: 'Recherche par nom, code dia, id' })\n search?: string;\n\n @ApiPropertyOptional({ description: 'Récupérer les exercices qui ont une date de fin inférieure à X mois à partir d\\'aujourd\\'hui' })\n additionalMonths?: string;\n}"]}
|
package/js/types/index.js
CHANGED
|
@@ -5488,6 +5488,30 @@ Object.keys(_InpiType).forEach(function (key) {
|
|
|
5488
5488
|
});
|
|
5489
5489
|
});
|
|
5490
5490
|
|
|
5491
|
+
var _BankCollectingState = require("./Enum/BankCollectingState");
|
|
5492
|
+
|
|
5493
|
+
Object.keys(_BankCollectingState).forEach(function (key) {
|
|
5494
|
+
if (key === "default" || key === "__esModule") return;
|
|
5495
|
+
Object.defineProperty(exports, key, {
|
|
5496
|
+
enumerable: true,
|
|
5497
|
+
get: function () {
|
|
5498
|
+
return _BankCollectingState[key];
|
|
5499
|
+
}
|
|
5500
|
+
});
|
|
5501
|
+
});
|
|
5502
|
+
|
|
5503
|
+
var _Phone = require("./Enum/Phone");
|
|
5504
|
+
|
|
5505
|
+
Object.keys(_Phone).forEach(function (key) {
|
|
5506
|
+
if (key === "default" || key === "__esModule") return;
|
|
5507
|
+
Object.defineProperty(exports, key, {
|
|
5508
|
+
enumerable: true,
|
|
5509
|
+
get: function () {
|
|
5510
|
+
return _Phone[key];
|
|
5511
|
+
}
|
|
5512
|
+
});
|
|
5513
|
+
});
|
|
5514
|
+
|
|
5491
5515
|
var _ReadPartnerTransactionType = require("./Interface/api/partnerTransactionType/ReadPartnerTransactionType");
|
|
5492
5516
|
|
|
5493
5517
|
Object.keys(_ReadPartnerTransactionType).forEach(function (key) {
|