@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.
Files changed (104) hide show
  1. package/es/api/resources/AccountingFiles.d.ts +2 -1
  2. package/es/api/resources/AccountingFiles.d.ts.map +1 -1
  3. package/es/api/resources/AccountingFiles.js +3 -0
  4. package/es/api/resources/AccountingFiles.js.map +1 -1
  5. package/es/api/resources/CommercialDocument.d.ts +7 -3
  6. package/es/api/resources/CommercialDocument.d.ts.map +1 -1
  7. package/es/api/resources/CommercialDocument.js +11 -4
  8. package/es/api/resources/CommercialDocument.js.map +1 -1
  9. package/es/api/resources/Employee.d.ts +2 -1
  10. package/es/api/resources/Employee.d.ts.map +1 -1
  11. package/es/api/resources/Employee.js +8 -4
  12. package/es/api/resources/Employee.js.map +1 -1
  13. package/es/api/resources/PaymentExpectationCustomer.d.ts +2 -1
  14. package/es/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
  15. package/es/api/resources/PaymentExpectationCustomer.js +2 -4
  16. package/es/api/resources/PaymentExpectationCustomer.js.map +1 -1
  17. package/es/api/resources/Product.d.ts +2 -1
  18. package/es/api/resources/Product.d.ts.map +1 -1
  19. package/es/api/resources/Product.js +2 -4
  20. package/es/api/resources/Product.js.map +1 -1
  21. package/es/api/resources/SheetMonthSchedule.d.ts +2 -1
  22. package/es/api/resources/SheetMonthSchedule.d.ts.map +1 -1
  23. package/es/api/resources/SheetMonthSchedule.js +2 -2
  24. package/es/api/resources/SheetMonthSchedule.js.map +1 -1
  25. package/es/api/resources/ThirdParty.d.ts +2 -1
  26. package/es/api/resources/ThirdParty.d.ts.map +1 -1
  27. package/es/api/resources/ThirdParty.js +2 -4
  28. package/es/api/resources/ThirdParty.js.map +1 -1
  29. package/es/types/Enum/BankCollectingState.d.ts +11 -0
  30. package/es/types/Enum/BankCollectingState.d.ts.map +1 -0
  31. package/es/types/Enum/BankCollectingState.js +26 -0
  32. package/es/types/Enum/BankCollectingState.js.map +1 -0
  33. package/es/types/Enum/Phone.d.ts +38 -0
  34. package/es/types/Enum/Phone.d.ts.map +1 -0
  35. package/es/types/Enum/Phone.js +38 -0
  36. package/es/types/Enum/Phone.js.map +1 -0
  37. package/es/types/Interface/api/accountingTransaction/QueryTransaction.d.ts +3 -0
  38. package/es/types/Interface/api/accountingTransaction/QueryTransaction.d.ts.map +1 -1
  39. package/es/types/Interface/api/accountingTransaction/QueryTransaction.js +7 -0
  40. package/es/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
  41. package/es/types/Interface/api/commercialManagement/Create.d.ts +5 -0
  42. package/es/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  43. package/es/types/Interface/api/commercialManagement/Create.js +17 -0
  44. package/es/types/Interface/api/commercialManagement/Create.js.map +1 -1
  45. package/es/types/Interface/api/file/TFile.d.ts +1 -0
  46. package/es/types/Interface/api/file/TFile.d.ts.map +1 -1
  47. package/es/types/Interface/api/file/TFile.js.map +1 -1
  48. package/es/types/Interface/api/society/SocietyWithStatsCaParams.d.ts +1 -0
  49. package/es/types/Interface/api/society/SocietyWithStatsCaParams.d.ts.map +1 -1
  50. package/es/types/Interface/api/society/SocietyWithStatsCaParams.js.map +1 -1
  51. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts +2 -1
  52. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts.map +1 -1
  53. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js +5 -1
  54. package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
  55. package/es/types/Interface/models/ISociety.d.ts +2 -1
  56. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  57. package/es/types/Interface/models/ISociety.js.map +1 -1
  58. package/es/types/index.d.ts +2 -0
  59. package/es/types/index.d.ts.map +1 -1
  60. package/es/types/index.js +2 -0
  61. package/es/types/index.js.map +1 -1
  62. package/js/api/resources/AccountingFiles.js +6 -0
  63. package/js/api/resources/AccountingFiles.js.map +1 -1
  64. package/js/api/resources/CommercialDocument.js +9 -3
  65. package/js/api/resources/CommercialDocument.js.map +1 -1
  66. package/js/api/resources/Employee.js +5 -3
  67. package/js/api/resources/Employee.js.map +1 -1
  68. package/js/api/resources/PaymentExpectationCustomer.js +5 -3
  69. package/js/api/resources/PaymentExpectationCustomer.js.map +1 -1
  70. package/js/api/resources/Product.js +5 -3
  71. package/js/api/resources/Product.js.map +1 -1
  72. package/js/api/resources/SheetMonthSchedule.js +5 -3
  73. package/js/api/resources/SheetMonthSchedule.js.map +1 -1
  74. package/js/api/resources/ThirdParty.js +5 -3
  75. package/js/api/resources/ThirdParty.js.map +1 -1
  76. package/js/types/Enum/BankCollectingState.js +28 -0
  77. package/js/types/Enum/BankCollectingState.js.map +1 -0
  78. package/js/types/Enum/Phone.js +43 -0
  79. package/js/types/Enum/Phone.js.map +1 -0
  80. package/js/types/Interface/api/accountingTransaction/QueryTransaction.js +9 -1
  81. package/js/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
  82. package/js/types/Interface/api/commercialManagement/Create.js +11 -1
  83. package/js/types/Interface/api/commercialManagement/Create.js.map +1 -1
  84. package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js +5 -0
  85. package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
  86. package/js/types/index.js +24 -0
  87. package/js/types/index.js.map +1 -1
  88. package/package.json +1 -1
  89. package/ts/api/resources/AccountingFiles.ts +7 -1
  90. package/ts/api/resources/CommercialDocument.ts +63 -17
  91. package/ts/api/resources/Employee.ts +42 -10
  92. package/ts/api/resources/PaymentExpectationCustomer.ts +61 -18
  93. package/ts/api/resources/Product.ts +14 -3
  94. package/ts/api/resources/SheetMonthSchedule.ts +36 -9
  95. package/ts/api/resources/ThirdParty.ts +18 -4
  96. package/ts/types/Enum/BankCollectingState.ts +24 -0
  97. package/ts/types/Enum/Phone.ts +37 -0
  98. package/ts/types/Interface/api/accountingTransaction/QueryTransaction.ts +6 -0
  99. package/ts/types/Interface/api/commercialManagement/Create.ts +14 -0
  100. package/ts/types/Interface/api/file/TFile.ts +2 -1
  101. package/ts/types/Interface/api/society/SocietyWithStatsCaParams.ts +2 -1
  102. package/ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts +4 -1
  103. package/ts/types/Interface/models/ISociety.ts +2 -1
  104. package/ts/types/index.ts +2 -0
@@ -1,7 +1,8 @@
1
1
  import { Resource } from '../Resource';
2
- import { QueryAccountingFiles, ReadFormattedAccountingTransaction } from '../../types';
2
+ import { BasePaginate, IAccountingFile, QueryAccountingFiles, ReadFormattedAccountingTransaction, _QueryTransaction } from '../../types';
3
3
  export declare class AccountingFiles extends Resource {
4
4
  accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[]>;
5
5
  delete(id: number): Promise<true>;
6
+ getPaginated(idSociety: number, params: _QueryTransaction): Promise<BasePaginate<IAccountingFile>>;
6
7
  }
7
8
  //# 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;IAc3F,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGlC"}
1
+ {"version":3,"file":"AccountingFiles.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/AccountingFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,kCAAkC,EAAE,iBAAiB,EAC3G,MAAM,aAAa,CAAC;AAErB,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;IAIjC,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;CAGnG"}
@@ -13,5 +13,8 @@ export class AccountingFiles extends Resource {
13
13
  delete(id) {
14
14
  return this.axios.$delete(`/accounting-files/${id}`);
15
15
  }
16
+ getPaginated(idSociety, params) {
17
+ return this.axios.$get(`/society/${idSociety}/accountingFiles`, { params });
18
+ }
16
19
  }
17
20
  //# 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;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
+ {"version":3,"file":"AccountingFiles.js","sourceRoot":"","sources":["../../../ts/api/resources/AccountingFiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAKvC,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAC3C,cAAc,CAAC,MAA4B;QACzC,MAAM,mBAAmB,GAAG,IAAI,QAAQ,EAAE,CAAC;QAE3C,mBAAmB,CAAC,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,CAAC;QACnF,mBAAmB,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;QACvE,mBAAmB,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;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;IAED,YAAY,CAAC,SAAiB,EAAE,MAAyB;QACvD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,SAAS,kBAAkB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate, IAccountingFile, QueryAccountingFiles, ReadFormattedAccountingTransaction, _QueryTransaction,\n} 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\n getPaginated(idSociety: number, params: _QueryTransaction): Promise<BasePaginate<IAccountingFile>> {\n return this.axios.$get(`/society/${idSociety}/accountingFiles`, { params });\n }\n}"]}
@@ -1,16 +1,20 @@
1
+ import { CancelToken } from 'axios';
1
2
  import { Resource } from '../Resource';
2
- import { BasePaginate, CreateInvoiceDocument, CreatePreSaleDocument, EstimateInvoiceType, IEstimateInvoice, QueryCountByStatus, QueryDocumentPaginated, QueryNextReference, QueryPaginate, ReadCountDocumentByStatus, ReadEstimateInvoice, ReadPreview, UpdateCommercialDocument } from '../../types';
3
+ import { BasePaginate, CreateInvoiceDocument, CreatePreSaleDocument, CreateRegenerateDocument, EstimateInvoiceType, IEstimateInvoice, QueryCountByStatus, QueryDocumentPaginated, QueryNextReference, QueryPaginate, ReadCountDocumentByStatus, ReadEstimateInvoice, ReadPreview, UpdateCommercialDocument } from '../../types';
3
4
  export declare class CommercialDocument extends Resource {
4
5
  get(id: number): Promise<ReadEstimateInvoice>;
5
- update(id: number, payload: UpdateCommercialDocument): Promise<IEstimateInvoice>;
6
+ update(id: number, payload: UpdateCommercialDocument): Promise<{
7
+ data: IEstimateInvoice;
8
+ }>;
6
9
  delete(id: number): Promise<true>;
7
10
  getNextReference(params: QueryNextReference): Promise<string>;
8
- getPaginated(params: QueryDocumentPaginated & QueryPaginate): Promise<BasePaginate<ReadEstimateInvoice>>;
11
+ getPaginated(params: QueryDocumentPaginated & QueryPaginate, cancelToken?: CancelToken): Promise<BasePaginate<ReadEstimateInvoice>>;
9
12
  createEstimate(payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>): Promise<IEstimateInvoice>;
10
13
  createOrder(payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>): Promise<IEstimateInvoice>;
11
14
  updateEstimate(id: number, payload: CreatePreSaleDocument): Promise<IEstimateInvoice>;
12
15
  updateOrder(id: number, payload: CreatePreSaleDocument): Promise<IEstimateInvoice>;
13
16
  preview(idEstimateInvoiceType: EstimateInvoiceType, payload: CreatePreSaleDocument | CreateInvoiceDocument): Promise<ReadPreview>;
17
+ regenerate(id: number, payload: CreateRegenerateDocument): Promise<IEstimateInvoice>;
14
18
  getFormValues(id: number): Promise<CreatePreSaleDocument>;
15
19
  getDefaultFormValues(idEstimateInvoiceType: EstimateInvoiceType): Promise<CreatePreSaleDocument>;
16
20
  getStatistics(idSociety: number, params: QueryCountByStatus): Promise<ReadCountDocumentByStatus>;
@@ -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,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACb,yBAAyB,EACzB,mBAAmB,EACnB,WAAW,EACX,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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IjC,gBAAgB,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAM7D,YAAY,CACV,MAAM,EAAE,sBAAsB,GAAG,aAAa,EAC9C,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC;IAO7C,cAAc,CACZ,OAAO,EAAE,IAAI,CAAC,qBAAqB,EAAE,uBAAuB,CAAC,GAC5D,OAAO,CAAC,gBAAgB,CAAC;IAO5B,WAAW,CACT,OAAO,EAAE,IAAI,CAAC,qBAAqB,EAAE,uBAAuB,CAAC,GAC5D,OAAO,CAAC,gBAAgB,CAAC;IAO5B,cAAc,CACZ,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,gBAAgB,CAAC;IAI5B,WAAW,CACT,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,gBAAgB,CAAC;IAI5B,OAAO,CACL,qBAAqB,EAAE,mBAAmB,EAC1C,OAAO,EAAE,qBAAqB,GAAG,qBAAqB,GACrD,OAAO,CAAC,WAAW,CAAC;IAOvB,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIpF,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAIzD,oBAAoB,CAClB,qBAAqB,EAAE,mBAAmB,GACzC,OAAO,CAAC,qBAAqB,CAAC;IAMjC,aAAa,CACX,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,yBAAyB,CAAC;CAMtC"}
@@ -11,10 +11,12 @@ export class CommercialDocument extends Resource {
11
11
  return this.axios.$delete(`/commercial-management/documents/${id}`);
12
12
  }
13
13
  getNextReference(params) {
14
- return this.axios.$get('/commercial-management/documents/references', { params });
14
+ return this.axios.$get('/commercial-management/documents/references', {
15
+ params,
16
+ });
15
17
  }
16
- getPaginated(params) {
17
- return this.axios.$get('/commercial-management/documents', { params });
18
+ getPaginated(params, cancelToken) {
19
+ return this.axios.$get('/commercial-management/documents', Object.assign(Object.assign({}, (cancelToken ? { cancelToken } : {})), { params }));
18
20
  }
19
21
  createEstimate(payload) {
20
22
  return this.axios.$post('/commercial-management/estimates', Object.assign(Object.assign({}, payload), { idEstimateInvoiceType: EstimateInvoiceType.DEVIS }));
@@ -31,11 +33,16 @@ export class CommercialDocument extends Resource {
31
33
  preview(idEstimateInvoiceType, payload) {
32
34
  return this.axios.$post('/commercial-management/preview', Object.assign(Object.assign({}, payload), { idEstimateInvoiceType }));
33
35
  }
36
+ regenerate(id, payload) {
37
+ return this.axios.$post(`/commercial-management/documents/${id}/regenerate`, payload);
38
+ }
34
39
  getFormValues(id) {
35
40
  return this.axios.$get(`/commercial-management/documents/${id}/inputs`);
36
41
  }
37
42
  getDefaultFormValues(idEstimateInvoiceType) {
38
- return this.axios.$get('/commercial-management/documents/inputs', { params: { idEstimateInvoiceType } });
43
+ return this.axios.$get('/commercial-management/documents/inputs', {
44
+ params: { idEstimateInvoiceType },
45
+ });
39
46
  }
40
47
  getStatistics(idSociety, params) {
41
48
  return this.axios.$get(`/commercial-management/societies/${idSociety}/statistics`, { params });
@@ -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,EAIL,mBAAmB,GAUpB,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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AO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,EAAE,SAAS,CAAC,CAAC;IAC1E,CAAC;IAED,oBAAoB,CAAC,qBAA0C;QAC7D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yCAAyC,EAAE,EAAE,MAAM,EAAE,EAAE,qBAAqB,EAAE,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED,aAAa,CAAC,SAAiB,EAAE,MAA0B;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,SAAS,aAAa,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACjG,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateInvoiceDocument,\n CreatePreSaleDocument,\n EstimateInvoiceType,\n IEstimateInvoice,\n QueryCountByStatus,\n QueryDocumentPaginated,\n QueryNextReference,\n QueryPaginate,\n ReadCountDocumentByStatus,\n ReadEstimateInvoice,\n ReadPreview,\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.$put(`/commercial-management/estimates/${id}`, payload);\n }\n\n updateOrder(id: number, payload: CreatePreSaleDocument): Promise<IEstimateInvoice> {\n return this.axios.$put(`/commercial-management/orders/${id}`, payload);\n }\n\n preview(idEstimateInvoiceType: EstimateInvoiceType, payload: CreatePreSaleDocument | CreateInvoiceDocument): Promise<ReadPreview> {\n return this.axios.$post('/commercial-management/preview', { ...payload, idEstimateInvoiceType });\n }\n\n getFormValues(id: number): Promise<CreatePreSaleDocument> {\n return this.axios.$get(`/commercial-management/documents/${id}/inputs`);\n }\n\n getDefaultFormValues(idEstimateInvoiceType: EstimateInvoiceType): Promise<CreatePreSaleDocument> {\n return this.axios.$get('/commercial-management/documents/inputs', { params: { idEstimateInvoiceType } });\n }\n\n getStatistics(idSociety: number, params: QueryCountByStatus): Promise<ReadCountDocumentByStatus> {\n return this.axios.$get(`/commercial-management/societies/${idSociety}/statistics`, { params });\n }\n}"]}
1
+ {"version":3,"file":"CommercialDocument.js","sourceRoot":"","sources":["../../../ts/api/resources/CommercialDocument.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAKL,mBAAmB,GAUpB,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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IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oCAAoC,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED,aAAa,CAAC,EAAU;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,EAAE,SAAS,CAAC,CAAC;IAC1E,CAAC;IAED,oBAAoB,CAClB,qBAA0C;QAE1C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yCAAyC,EAAE;YAChE,MAAM,EAAE,EAAE,qBAAqB,EAAE;SAClC,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CACX,SAAiB,EACjB,MAA0B;QAE1B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CACpB,oCAAoC,SAAS,aAAa,EAC1D,EAAE,MAAM,EAAE,CACX,CAAC;IACJ,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateInvoiceDocument,\n CreatePreSaleDocument,\n CreateRegenerateDocument,\n EstimateInvoiceType,\n IEstimateInvoice,\n QueryCountByStatus,\n QueryDocumentPaginated,\n QueryNextReference,\n QueryPaginate,\n ReadCountDocumentByStatus,\n ReadEstimateInvoice,\n ReadPreview,\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<{ data: 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', {\n params,\n });\n }\n\n getPaginated(\n params: QueryDocumentPaginated & QueryPaginate,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<ReadEstimateInvoice>> {\n return this.axios.$get('/commercial-management/documents', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n createEstimate(\n payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>,\n ): Promise<IEstimateInvoice> {\n return this.axios.$post('/commercial-management/estimates', {\n ...payload,\n idEstimateInvoiceType: EstimateInvoiceType.DEVIS,\n });\n }\n\n createOrder(\n payload: Omit<CreatePreSaleDocument, 'idEstimateInvoiceType'>,\n ): Promise<IEstimateInvoice> {\n return this.axios.$post('/commercial-management/orders', {\n ...payload,\n idEstimateInvoiceType: EstimateInvoiceType.BON,\n });\n }\n\n updateEstimate(\n id: number,\n payload: CreatePreSaleDocument,\n ): Promise<IEstimateInvoice> {\n return this.axios.$put(`/commercial-management/estimates/${id}`, payload);\n }\n\n updateOrder(\n id: number,\n payload: CreatePreSaleDocument,\n ): Promise<IEstimateInvoice> {\n return this.axios.$put(`/commercial-management/orders/${id}`, payload);\n }\n\n preview(\n idEstimateInvoiceType: EstimateInvoiceType,\n payload: CreatePreSaleDocument | CreateInvoiceDocument,\n ): Promise<ReadPreview> {\n return this.axios.$post('/commercial-management/preview', {\n ...payload,\n idEstimateInvoiceType,\n });\n }\n\n regenerate(id: number, payload: CreateRegenerateDocument): Promise<IEstimateInvoice> {\n return this.axios.$post(`/commercial-management/documents/${id}/regenerate`, payload);\n }\n\n getFormValues(id: number): Promise<CreatePreSaleDocument> {\n return this.axios.$get(`/commercial-management/documents/${id}/inputs`);\n }\n\n getDefaultFormValues(\n idEstimateInvoiceType: EstimateInvoiceType,\n ): Promise<CreatePreSaleDocument> {\n return this.axios.$get('/commercial-management/documents/inputs', {\n params: { idEstimateInvoiceType },\n });\n }\n\n getStatistics(\n idSociety: number,\n params: QueryCountByStatus,\n ): Promise<ReadCountDocumentByStatus> {\n return this.axios.$get(\n `/commercial-management/societies/${idSociety}/statistics`,\n { params },\n );\n }\n}\n"]}
@@ -1,3 +1,4 @@
1
+ import { CancelToken } from 'axios';
1
2
  import { BasePaginate, IEmployee, IWorkingSchedule, CreateEmployee, QueryEmployeeSearch, UpdateEmployee, UpdateOrCreateWorkingSchedule } from '../../types';
2
3
  import { Resource } from '../Resource';
3
4
  export declare class Employee extends Resource {
@@ -6,7 +7,7 @@ export declare class Employee extends Resource {
6
7
  get(id: number): Promise<IEmployee>;
7
8
  update(id: number, payload: Partial<UpdateEmployee>): Promise<IEmployee>;
8
9
  delete(id: number): Promise<true>;
9
- getPaginate(idSociety: number, params?: QueryEmployeeSearch): Promise<BasePaginate<Employee>>;
10
+ getPaginate(idSociety: number, params?: QueryEmployeeSearch, cancelToken?: CancelToken): Promise<BasePaginate<Employee>>;
10
11
  updateOrCreateWorkingSchedule(idEmployee: number, payload?: UpdateOrCreateWorkingSchedule): Promise<IWorkingSchedule>;
11
12
  deleteWorkingSchedule(idEmployee: number, idWorkingSchedule: number): Promise<true>;
12
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Employee.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Employee.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,cAAc,EAAE,mBAAmB,EAAE,cAAc,EAAE,6BAA6B,EAC9H,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,QAAS,SAAQ,QAAQ;IAC7B,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;IAc5D,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAI/C,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAInC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;IAcxE,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAA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A6B,CAClC,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,gBAAgB,CAAC;IAOrB,qBAAqB,CAC1B,UAAU,EAAE,MAAM,EAClB,iBAAiB,EAAE,MAAM,GACxB,OAAO,CAAC,IAAI,CAAC;CAKjB"}
@@ -13,7 +13,9 @@ export class Employee extends Resource {
13
13
  }
14
14
  }
15
15
  });
16
- return this.axios.$post('/employees', formData, { headers: { 'Content-Type': 'multipart/form-data' } });
16
+ return this.axios.$post('/employees', formData, {
17
+ headers: { 'Content-Type': 'multipart/form-data' },
18
+ });
17
19
  }
18
20
  getAll(idSociety) {
19
21
  return this.axios.$get(`/societies/${idSociety}/employees`);
@@ -33,13 +35,15 @@ export class Employee extends Resource {
33
35
  }
34
36
  }
35
37
  });
36
- return this.axios.$put(`/employees/${id}`, formData, { headers: { 'Content-Type': 'multipart/form-data' } });
38
+ return this.axios.$put(`/employees/${id}`, formData, {
39
+ headers: { 'Content-Type': 'multipart/form-data' },
40
+ });
37
41
  }
38
42
  delete(id) {
39
43
  return this.axios.$delete(`/employees/${id}`);
40
44
  }
41
- getPaginate(idSociety, params) {
42
- return this.axios.$get(`/societies/${idSociety}/employees`, { params: Object.assign(Object.assign({}, params), { isPaginate: true }) });
45
+ getPaginate(idSociety, params, cancelToken) {
46
+ return this.axios.$get(`/societies/${idSociety}/employees`, Object.assign(Object.assign({}, (cancelToken ? { cancelToken } : {})), { params: Object.assign(Object.assign({}, params), { isPaginate: true }) }));
43
47
  }
44
48
  updateOrCreateWorkingSchedule(idEmployee, payload) {
45
49
  return this.axios.$post(`employees/${idEmployee}/working-schedules`, payload);
@@ -1 +1 @@
1
- {"version":3,"file":"Employee.js","sourceRoot":"","sources":["../../../ts/api/resources/Employee.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAIjC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM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AAG,KAAK,EAAE,CAAC,CAAC;iBAClC;aACF;QACH,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,qBAAqB,EAAE,EAAE,CAAC,CAAC;IAC/G,CAAC;IAEM,MAAM,CAAC,EAAU;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IAChD,CAAC;IAEM,WAAW,CAAC,SAAiB,EAAE,MAA4B;QAChE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,YAAY,EAAE,EAAE,MAAM,kCAAO,MAAM,KAAE,UAAU,EAAE,IAAI,GAAE,EAAE,CAAC,CAAC;IAC3G,CAAC;IAEM,6BAA6B,CAAC,UAAkB,EAAE,OAAuC;QAC9F,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,UAAU,oBAAoB,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAEM,qBAAqB,CAAC,UAAkB,EAAE,iBAAyB;QACxE,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,UAAU,sBAAsB,iBAAiB,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF","sourcesContent":["import { forEach } from 'lodash';\nimport {\n BasePaginate, IEmployee, IWorkingSchedule, CreateEmployee, QueryEmployeeSearch, UpdateEmployee, UpdateOrCreateWorkingSchedule,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Employee extends Resource {\n public create(payload: Partial<CreateEmployee>): Promise<IEmployee> {\n const formData = new FormData();\n forEach(payload, (value, key) => {\n if (value) {\n if (['dpaeFile', 'contractFile'].includes(key)) {\n formData.append(key, value as File);\n } else {\n formData.append(key, `${value}`);\n }\n }\n });\n return this.axios.$post('/employees', formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n public getAll(idSociety: number): Promise<IEmployee[]> {\n return this.axios.$get(`/societies/${idSociety}/employees`);\n }\n\n public get(id: number): Promise<IEmployee> {\n return this.axios.$get(`/employees/${id}`);\n }\n\n public update(id: number, payload: Partial<UpdateEmployee>): Promise<IEmployee> {\n const formData = new FormData();\n forEach(payload, (value, key) => {\n if (value) {\n if (['dpaeFile', 'contractFile'].includes(key)) {\n formData.append(key, value as File);\n } else {\n formData.append(key, `${value}`);\n }\n }\n });\n return this.axios.$put(`/employees/${id}`, formData, { headers: { 'Content-Type': 'multipart/form-data' } });\n }\n\n public delete(id: number): Promise<true> {\n return this.axios.$delete(`/employees/${id}`);\n }\n\n public getPaginate(idSociety: number, params?: QueryEmployeeSearch): Promise<BasePaginate<Employee>> {\n return this.axios.$get(`/societies/${idSociety}/employees`, { params: { ...params, isPaginate: true } });\n }\n\n public updateOrCreateWorkingSchedule(idEmployee: number, payload?: UpdateOrCreateWorkingSchedule): Promise<IWorkingSchedule> {\n return this.axios.$post(`employees/${idEmployee}/working-schedules`, payload);\n }\n\n public deleteWorkingSchedule(idEmployee: number, idWorkingSchedule: number): Promise<true> {\n return this.axios.$delete(`employees/${idEmployee}/working-schedules/${idWorkingSchedule}`);\n }\n}\n"]}
1
+ {"version":3,"file":"Employee.js","sourceRoot":"","sources":["../../../ts/api/resources/Employee.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAUjC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,QAAS,SAAQ,QAAQ;IAC7B,MAAM,CAAC,OAAgC;QAC5C,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;QAChC,OAAO,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YAC9B,IAAI,KAAK,EAAE;gBACT,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;o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,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IAChD,CAAC;IAEM,WAAW,CAChB,SAAiB,EACjB,MAA4B,EAC5B,WAAyB;QAEzB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,YAAY,kCACrD,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACvC,MAAM,kCAAO,MAAM,KAAE,UAAU,EAAE,IAAI,OACrC,CAAC;IACL,CAAC;IAEM,6BAA6B,CAClC,UAAkB,EAClB,OAAuC;QAEvC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CACrB,aAAa,UAAU,oBAAoB,EAC3C,OAAO,CACR,CAAC;IACJ,CAAC;IAEM,qBAAqB,CAC1B,UAAkB,EAClB,iBAAyB;QAEzB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CACvB,aAAa,UAAU,sBAAsB,iBAAiB,EAAE,CACjE,CAAC;IACJ,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport { forEach } from 'lodash';\nimport {\n BasePaginate,\n IEmployee,\n IWorkingSchedule,\n CreateEmployee,\n QueryEmployeeSearch,\n UpdateEmployee,\n UpdateOrCreateWorkingSchedule,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Employee extends Resource {\n public create(payload: Partial<CreateEmployee>): Promise<IEmployee> {\n const formData = new FormData();\n forEach(payload, (value, key) => {\n if (value) {\n if (['dpaeFile', 'contractFile'].includes(key)) {\n formData.append(key, value as File);\n } else {\n formData.append(key, `${value}`);\n }\n }\n });\n return this.axios.$post('/employees', formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n public getAll(idSociety: number): Promise<IEmployee[]> {\n return this.axios.$get(`/societies/${idSociety}/employees`);\n }\n\n public get(id: number): Promise<IEmployee> {\n return this.axios.$get(`/employees/${id}`);\n }\n\n public update(\n id: number,\n payload: Partial<UpdateEmployee>,\n ): Promise<IEmployee> {\n const formData = new FormData();\n forEach(payload, (value, key) => {\n if (value) {\n if (['dpaeFile', 'contractFile'].includes(key)) {\n formData.append(key, value as File);\n } else {\n formData.append(key, `${value}`);\n }\n }\n });\n return this.axios.$put(`/employees/${id}`, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n public delete(id: number): Promise<true> {\n return this.axios.$delete(`/employees/${id}`);\n }\n\n public getPaginate(\n idSociety: number,\n params?: QueryEmployeeSearch,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<Employee>> {\n return this.axios.$get(`/societies/${idSociety}/employees`, {\n ...(cancelToken ? { cancelToken } : {}),\n params: { ...params, isPaginate: true },\n });\n }\n\n public updateOrCreateWorkingSchedule(\n idEmployee: number,\n payload?: UpdateOrCreateWorkingSchedule,\n ): Promise<IWorkingSchedule> {\n return this.axios.$post(\n `employees/${idEmployee}/working-schedules`,\n payload,\n );\n }\n\n public deleteWorkingSchedule(\n idEmployee: number,\n idWorkingSchedule: number,\n ): Promise<true> {\n return this.axios.$delete(\n `employees/${idEmployee}/working-schedules/${idWorkingSchedule}`,\n );\n }\n}\n"]}
@@ -1,8 +1,9 @@
1
+ import { CancelToken } from 'axios';
1
2
  import { Resource } from '../Resource';
2
3
  import { QueryGetPaymentExpectationCustomer, IPaymentExpectationCustomer, QueryPayPaymentExpectationCustomer, QueryConfirmPaymentExpectationCustomer, QueryGetSocietyPaymentsExpectationsCustomers, QueryDeleteSocietyPaymentExpectationCustomer, BasePaginate, UpdateRefundSocietyPaymentExpectationCustomer, CreateSocietyPaymentExpectationCustomer, ReadPaymentExpectationCustomerStat, QueryGetSocietyPaymentsExpectationsCustomersStats } from '../../types';
3
4
  export declare class PaymentExpectationCustomer extends Resource {
4
5
  get(params: QueryGetPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer>;
5
- getBySociety(params: QueryGetSocietyPaymentsExpectationsCustomers): Promise<BasePaginate<IPaymentExpectationCustomer>>;
6
+ getBySociety(params: QueryGetSocietyPaymentsExpectationsCustomers, cancelToken?: CancelToken): Promise<BasePaginate<IPaymentExpectationCustomer>>;
6
7
  stats(params: QueryGetSocietyPaymentsExpectationsCustomersStats): Promise<ReadPaymentExpectationCustomerStat>;
7
8
  pay(params: QueryPayPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer>;
8
9
  confirm(params: QueryConfirmPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer>;
@@ -1 +1 @@
1
- {"version":3,"file":"PaymentExpectationCustomer.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,kCAAkC,EAAE,2BAA2B,EAAE,kCAAkC,EAAE,sCAAsC,EAAE,4CAA4C,EAAE,4CAA4C,EAAE,YAAY,EAAE,6CAA6C,EAAE,uCAAuC,EAAE,kCAAkC,EAAE,iDAAiD,EACra,MAAM,aAAa,CAAC;AAErB,qBAAa,0BAA2B,SAAQ,QAAQ;IACtD,GAAG,CAAC,MAAM,EAAE,kCAAkC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAGrF,YAAY,CAAC,MAAM,EAAE,4CAA4C,GAAG,OAAO,CAAC,YAAY,CAAC,2BAA2B,CAAC,CAAC;IAKtH,KAAK,CAAC,MAAM,EAAE,iDAAiD,GAAG,OAAO,CAAC,kCAAkC,CAAC;IAK7G,GAAG,CAAC,MAAM,EAAE,kCAAkC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAGrF,OAAO,CAAC,MAAM,EAAE,sCAAsC,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAG7F,MAAM,CAAC,MAAM,EAAE,4CAA4C,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAGlG,MAAM,CAAC,MAAM,EAAE,6CAA6C,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAGnG,MAAM,CAAC,MAAM,EAAE,uCAAuC,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAG9F"}
1
+ {"version":3,"file":"PaymentExpectationCustomer.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,kCAAkC,EAClC,2BAA2B,EAC3B,kCAAkC,EAClC,sCAAsC,EACtC,4CAA4C,EAC5C,4CAA4C,EAC5C,YAAY,EACZ,6CAA6C,EAC7C,uCAAuC,EACvC,kCAAkC,EAClC,iDAAiD,EAClD,MAAM,aAAa,CAAC;AAErB,qBAAa,0BAA2B,SAAQ,QAAQ;IACtD,GAAG,CACD,MAAM,EAAE,kCAAkC,GACzC,OAAO,CAAC,2BAA2B,CAAC;IAGvC,YAAY,CACV,MAAM,EAAE,4CAA4C,EACpD,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,YAAY,CAAC,2BAA2B,CAAC,CAAC;IASrD,KAAK,CACH,MAAM,EAAE,iDAAiD,GACxD,OAAO,CAAC,kCAAkC,CAAC;IAQ9C,GAAG,CACD,MAAM,EAAE,kCAAkC,GACzC,OAAO,CAAC,2BAA2B,CAAC;IAGvC,OAAO,CACL,MAAM,EAAE,sCAAsC,GAC7C,OAAO,CAAC,2BAA2B,CAAC;IAGvC,MAAM,CACJ,MAAM,EAAE,4CAA4C,GACnD,OAAO,CAAC,2BAA2B,CAAC;IAKvC,MAAM,CACJ,MAAM,EAAE,6CAA6C,GACpD,OAAO,CAAC,2BAA2B,CAAC;IAMvC,MAAM,CACJ,MAAM,EAAE,uCAAuC,GAC9C,OAAO,CAAC,2BAA2B,CAAC;CAMxC"}
@@ -3,10 +3,8 @@ export class PaymentExpectationCustomer extends Resource {
3
3
  get(params) {
4
4
  return this.axios.$get('/paymentExpectationCustomer', { params });
5
5
  }
6
- getBySociety(params) {
7
- return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers`, {
8
- params,
9
- });
6
+ getBySociety(params, cancelToken) {
7
+ return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers`, Object.assign(Object.assign({}, (cancelToken ? { cancelToken } : {})), { params }));
10
8
  }
11
9
  stats(params) {
12
10
  return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers/stats`, {
@@ -1 +1 @@
1
- {"version":3,"file":"PaymentExpectationCustomer.js","sourceRoot":"","sources":["../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAKvC,MAAM,OAAO,0BAA2B,SAAQ,QAAQ;IACtD,GAAG,CAAC,MAA0C;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,YAAY,CAAC,MAAoD;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,SAAS,gCAAgC,EAAE;YACnF,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IACD,KAAK,CAAC,MAAyD;QAC7D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,SAAS,sCAAsC,EAAE;YACzF,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IACD,GAAG,CAAC,MAA0C;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iCAAiC,EAAE,MAAM,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,CAAC,MAA8C;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,qCAAqC,EAAE,MAAM,CAAC,CAAC;IACzE,CAAC;IACD,MAAM,CAAC,MAAoD;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,MAAM,CAAC,SAAS,kCAAkC,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC;IACvG,CAAC;IACD,MAAM,CAAC,MAAqD;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,SAAS,kCAAkC,MAAM,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACnH,CAAC;IACD,MAAM,CAAC,MAA+C;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,MAAM,CAAC,SAAS,6BAA6B,EAAE,MAAM,CAAC,CAAC;IAC7F,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n QueryGetPaymentExpectationCustomer, IPaymentExpectationCustomer, QueryPayPaymentExpectationCustomer, QueryConfirmPaymentExpectationCustomer, QueryGetSocietyPaymentsExpectationsCustomers, QueryDeleteSocietyPaymentExpectationCustomer, BasePaginate, UpdateRefundSocietyPaymentExpectationCustomer, CreateSocietyPaymentExpectationCustomer, ReadPaymentExpectationCustomerStat, QueryGetSocietyPaymentsExpectationsCustomersStats,\n} from '../../types';\n\nexport class PaymentExpectationCustomer extends Resource {\n get(params: QueryGetPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$get('/paymentExpectationCustomer', { params });\n }\n getBySociety(params: QueryGetSocietyPaymentsExpectationsCustomers): Promise<BasePaginate<IPaymentExpectationCustomer>> {\n return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers`, {\n params,\n });\n }\n stats(params: QueryGetSocietyPaymentsExpectationsCustomersStats): Promise<ReadPaymentExpectationCustomerStat> {\n return this.axios.$get(`/society/${params.idSociety}/paymentsExpectationsCustomers/stats`, {\n params,\n });\n }\n pay(params: QueryPayPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post('/paymentExpectationCustomer/pay', params);\n }\n confirm(params: QueryConfirmPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post('/paymentExpectationCustomer/confirm', params);\n }\n delete(params: QueryDeleteSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$delete(`/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}`);\n }\n refund(params: UpdateRefundSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$put(`/society/${params.idSociety}/paymentsExpectationsCustomers/${params.id}/refund`, params);\n }\n create(params: CreateSocietyPaymentExpectationCustomer): Promise<IPaymentExpectationCustomer> {\n return this.axios.$post(`/society/${params.idSociety}/paymentExpectationCustomer`, params);\n }\n}\n"]}
1
+ {"version":3,"file":"PaymentExpectationCustomer.js","sourceRoot":"","sources":["../../../ts/api/resources/PaymentExpectationCustomer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAevC,MAAM,OAAO,0BAA2B,SAAQ,QAAQ;IACtD,GAAG,CACD,MAA0C;QAE1C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,YAAY,CACV,MAAoD,EACpD,WAAyB;QAEzB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CACpB,YAAY,MAAM,CAAC,SAAS,gCAAgC,kCAEvD,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACvC,MAAM,IAET,CAAC;IACJ,CAAC;IACD,KAAK,CACH,MAAyD;QAEzD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CACpB,YAAY,MAAM,CAAC,SAAS,sCAAsC,EAClE;YACE,MAAM;SACP,CACF,CAAC;IACJ,CAAC;IACD,GAAG,CACD,MAA0C;QAE1C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iCAAiC,EAAE,MAAM,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,CACL,MAA8C;QAE9C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,qCAAqC,EAAE,MAAM,CAAC,CAAC;IACzE,CAAC;IACD,MAAM,CACJ,MAAoD;QAEpD,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CACvB,YAAY,MAAM,CAAC,SAAS,kCAAkC,MAAM,CAAC,EAAE,EAAE,CAC1E,CAAC;IACJ,CAAC;IACD,MAAM,CACJ,MAAqD;QAErD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CACpB,YAAY,MAAM,CAAC,SAAS,kCAAkC,MAAM,CAAC,EAAE,SAAS,EAChF,MAAM,CACP,CAAC;IACJ,CAAC;IACD,MAAM,CACJ,MAA+C;QAE/C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CACrB,YAAY,MAAM,CAAC,SAAS,6BAA6B,EACzD,MAAM,CACP,CAAC;IACJ,CAAC;CACF","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"]}
@@ -1,9 +1,10 @@
1
1
  /// <reference types="node" />
2
+ import { CancelToken } from 'axios';
2
3
  import { Resource } from '../Resource';
3
4
  import { IProduct, QueryPaginate, QueryProduct, BasePaginate, CreateProduct, UpdateProduct } from '../../types';
4
5
  export declare class Product extends Resource {
5
6
  getAll(): Promise<Array<IProduct>>;
6
- getPaginated(pagination: QueryPaginate, query?: QueryProduct): Promise<BasePaginate<IProduct>>;
7
+ getPaginated(pagination: QueryPaginate, query?: QueryProduct, cancelToken?: CancelToken): Promise<BasePaginate<IProduct>>;
7
8
  create(payload: CreateProduct): Promise<IProduct>;
8
9
  update(id: number, payload: UpdateProduct): Promise<IProduct>;
9
10
  delete(id: number): Promise<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"Product.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Product.ts"],"names":[],"mappings":";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,CAAC;IAUlC,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIjD,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI7D,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIpC,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAMjC,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC;CAK1B"}
@@ -3,10 +3,8 @@ export class Product extends Resource {
3
3
  getAll() {
4
4
  return this.axios.$get('/commercial-management/products');
5
5
  }
6
- getPaginated(pagination, query) {
7
- return this.axios.$get('/commercial-management/products', {
8
- params: Object.assign(Object.assign({}, pagination), query),
9
- });
6
+ getPaginated(pagination, query, cancelToken) {
7
+ return this.axios.$get('/commercial-management/products', Object.assign(Object.assign({}, (cancelToken ? { cancelToken } : {})), { params: Object.assign(Object.assign({}, pagination), query) }));
10
8
  }
11
9
  create(payload) {
12
10
  return this.axios.$post('/commercial-management/products', payload);
@@ -1 +1 @@
1
- {"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../ts/api/resources/Product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAKvC,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IACnC,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;IAC5D,CAAC;IAED,YAAY,CAAC,UAAyB,EAAE,KAAoB;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,EAAE;YACxD,MAAM,kCACD,UAAU,GACV,KAAK,CACT;SACF,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,OAAsB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,OAAsB;QACvC,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,mCAAmC,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,MAAM,CAAC,IAAU;QACf,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;QAChC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,wCAAwC,EAAE,QAAQ,CAAC,CAAC;IAC9E,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wCAAwC,EAAE;YAC/D,YAAY,EAAE,aAAa;SAC5B,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n IProduct, QueryPaginate, QueryProduct, BasePaginate, CreateProduct, 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(pagination: QueryPaginate, query?: QueryProduct): Promise<BasePaginate<IProduct>> {\n return this.axios.$get('/commercial-management/products', {\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}"]}
1
+ {"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../ts/api/resources/Product.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAUvC,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IACnC,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;IAC5D,CAAC;IAED,YAAY,CACV,UAAyB,EACzB,KAAoB,EACpB,WAAyB;QAEzB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,kCACnD,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACvC,MAAM,kCACD,UAAU,GACV,KAAK,KAEV,CAAC;IACL,CAAC;IAED,MAAM,CAAC,OAAsB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iCAAiC,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,OAAsB;QACvC,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,mCAAmC,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,MAAM,CAAC,IAAU;QACf,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;QAChC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,wCAAwC,EAAE,QAAQ,CAAC,CAAC;IAC9E,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wCAAwC,EAAE;YAC/D,YAAY,EAAE,aAAa;SAC5B,CAAC,CAAC;IACL,CAAC;CACF","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"]}
@@ -1,3 +1,4 @@
1
+ import { CancelToken } from 'axios';
1
2
  import { BasePaginate, ISheetMonthSchedule, ISheetMonthScheduleDetail, QuerySheetMonthSchedule } from '../../types';
2
3
  import { Resource } from '../Resource';
3
4
  export declare class SheetMonthSchedule extends Resource {
@@ -6,7 +7,7 @@ export declare class SheetMonthSchedule extends Resource {
6
7
  get(id: number): Promise<ISheetMonthSchedule>;
7
8
  update(id: number, payload: Partial<ISheetMonthSchedule>): Promise<ISheetMonthSchedule>;
8
9
  delete(id: number): Promise<true>;
9
- getPaginate(params: QuerySheetMonthSchedule): Promise<BasePaginate<SheetMonthSchedule>>;
10
+ getPaginate(params: QuerySheetMonthSchedule, cancelToken?: CancelToken): Promise<BasePaginate<SheetMonthSchedule>>;
10
11
  updateOrCreateSheetMonthScheduleDetail(idSheetMonthSchedule: number, payload: Partial<Omit<ISheetMonthScheduleDetail, 'idSheetMonthSchedule'>>): Promise<ISheetMonthScheduleDetail>;
11
12
  deleteSheetMonthScheduleDetail(idSheetMonthSchedule: number, idSheetMonthScheduleDetails: number): Promise<true>;
12
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SheetMonthSchedule.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/SheetMonthSchedule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,uBAAuB,EACtF,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,kBAAmB,SAAQ,QAAQ;IACvC,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,mBAAmB,EAAE,YAAY,GAAG,UAAU,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAIvH,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAI1D,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI7C,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAIvF,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjC,WAAW,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC;IAIvF,sCAAsC,CAAC,oBAAoB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,sBAAsB,CAAC,CAAC,GAAG,OAAO,C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B,2BAA2B,EAAE,MAAM,GAClC,OAAO,CAAC,IAAI,CAAC;CAKjB"}
@@ -15,8 +15,8 @@ export class SheetMonthSchedule extends Resource {
15
15
  delete(id) {
16
16
  return this.axios.$delete(`/sheet-month-schedules/${id}`);
17
17
  }
18
- getPaginate(params) {
19
- return this.axios.$get('/sheet-month-schedules', { params });
18
+ getPaginate(params, cancelToken) {
19
+ return this.axios.$get('/sheet-month-schedules', Object.assign(Object.assign({}, (cancelToken ? { cancelToken } : {})), { params }));
20
20
  }
21
21
  updateOrCreateSheetMonthScheduleDetail(idSheetMonthSchedule, payload) {
22
22
  return this.axios.$post(`/sheet-month-schedules/${idSheetMonthSchedule}/details`, payload);
@@ -1 +1 @@
1
- {"version":3,"file":"SheetMonthSchedule.js","sourceRoot":"","sources":["../../../ts/api/resources/SheetMonthSchedule.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,kBAAmB,SAAQ,QAAQ;IACvC,MAAM,CAAC,UAAkB,EAAE,OAA6D;QAC7F,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,0BAA0B,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAEM,MAAM,CAAC,UAAkB;QAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,UAAU,wBAAwB,CAAC,CAAC;IAC3E,CAAC;IAEM,GAAG,CAAC,EAAU;QACnB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC;IAEM,MAAM,CAAC,EAAU,EAAE,OAAqC;QAC7D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAEM,MAAM,CAAC,EAAU;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,0BAA0B,EAAE,EAAE,CAAC,CAAC;IAC5D,CAAC;IAEM,WAAW,CAAC,MAA+B;QAChD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/D,CAAC;IAEM,sCAAsC,CAAC,oBAA4B,EAAE,OAAyE;QACnJ,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,0BAA0B,oBAAoB,UAAU,EAAE,OAAO,CAAC,CAAC;IAC7F,CAAC;IAEM,8BAA8B,CAAC,oBAA4B,EAAE,2BAAmC;QACrG,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,0BAA0B,oBAAoB,YAAY,2BAA2B,EAAE,CAAC,CAAC;IACrH,CAAC;CACF","sourcesContent":["import {\n BasePaginate, ISheetMonthSchedule, ISheetMonthScheduleDetail, QuerySheetMonthSchedule,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class SheetMonthSchedule extends Resource {\n public create(idEmployee: number, payload: Omit<ISheetMonthSchedule, 'idEmployee' | 'employee'>): 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(id: number, payload: Partial<ISheetMonthSchedule>): 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(params: QuerySheetMonthSchedule): Promise<BasePaginate<SheetMonthSchedule>> {\n return this.axios.$get('/sheet-month-schedules', { params });\n }\n\n public updateOrCreateSheetMonthScheduleDetail(idSheetMonthSchedule: number, payload: Partial<Omit<ISheetMonthScheduleDetail, 'idSheetMonthSchedule'>>): Promise<ISheetMonthScheduleDetail> {\n return this.axios.$post(`/sheet-month-schedules/${idSheetMonthSchedule}/details`, payload);\n }\n\n public deleteSheetMonthScheduleDetail(idSheetMonthSchedule: number, idSheetMonthScheduleDetails: number): Promise<true> {\n return this.axios.$delete(`/sheet-month-schedules/${idSheetMonthSchedule}/details/${idSheetMonthScheduleDetails}`);\n }\n}\n"]}
1
+ {"version":3,"file":"SheetMonthSchedule.js","sourceRoot":"","sources":["../../../ts/api/resources/SheetMonthSchedule.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,kBAAmB,SAAQ,QAAQ;IACvC,MAAM,CACX,UAAkB,EAClB,OAA6D;QAE7D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,0BAA0B,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAEM,MAAM,CAAC,UAAkB;QAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,UAAU,wBAAwB,CAAC,CAAC;IAC3E,CAAC;IAEM,GAAG,CAAC,EAAU;QACnB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC;IAEM,MAAM,CACX,EAAU,EACV,OAAqC;QAErC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAEM,MAAM,CAAC,EAAU;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,0BAA0B,EAAE,EAAE,CAAC,CAAC;IAC5D,CAAC;IAEM,WAAW,CAChB,MAA+B,EAC/B,WAAyB;QAEzB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wBAAwB,kCAC1C,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACvC,MAAM,IACN,CAAC;IACL,CAAC;IAEM,sCAAsC,CAC3C,oBAA4B,EAC5B,OAAyE;QAEzE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CACrB,0BAA0B,oBAAoB,UAAU,EACxD,OAAO,CACR,CAAC;IACJ,CAAC;IAEM,8BAA8B,CACnC,oBAA4B,EAC5B,2BAAmC;QAEnC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CACvB,0BAA0B,oBAAoB,YAAY,2BAA2B,EAAE,CACxF,CAAC;IACJ,CAAC;CACF","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"]}
@@ -1,8 +1,9 @@
1
+ import { CancelToken } from 'axios';
1
2
  import { Resource } from '../Resource';
2
3
  import { QueryPaginate, BasePaginate, IThirdParty, QueryThirdParty, UpdateThirdPartyForm, CreateThirdPartyForm } from '../../types';
3
4
  export declare class ThirdParty extends Resource {
4
5
  getAll(): Promise<Array<IThirdParty>>;
5
- getPaginated(pagination: QueryPaginate, query?: QueryThirdParty): Promise<BasePaginate<IThirdParty>>;
6
+ getPaginated(pagination: QueryPaginate, query?: QueryThirdParty, cancelToken?: CancelToken): Promise<BasePaginate<IThirdParty>>;
6
7
  update(idThirdParty: number, payload: UpdateThirdPartyForm): Promise<IThirdParty>;
7
8
  create(payload: CreateThirdPartyForm): Promise<IThirdParty>;
8
9
  delete(idThirdParty: number): Promise<true>;
@@ -1 +1 @@
1
- {"version":3,"file":"ThirdParty.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/ThirdParty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,oBAAoB,EAAE,oBAAoB,EACtG,MAAM,aAAa,CAAC;AAErB,qBAAa,UAAW,SAAQ,QAAQ;IACtC,MAAM,IAAI,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAIrC,YAAY,CAAC,UAAU,EAAE,aAAa,EAAE,KAAK,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IASpG,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,WAAW,CAAC;IAIjF,MAAM,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,WAAW,CAAC;IAI3D,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG5C"}
1
+ {"version":3,"file":"ThirdParty.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/ThirdParty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,aAAa,EACb,YAAY,EACZ,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB,qBAAa,UAAW,SAAQ,QAAQ;IACtC,MAAM,IAAI,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAIrC,YAAY,CACV,UAAU,EAAE,aAAa,EACzB,KAAK,CAAC,EAAE,eAAe,EACvB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IAUrC,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,WAAW,CAAC;IAIvB,MAAM,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,WAAW,CAAC;IAI3D,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG5C"}
@@ -3,10 +3,8 @@ export class ThirdParty extends Resource {
3
3
  getAll() {
4
4
  return this.axios.$get('/third-parties');
5
5
  }
6
- getPaginated(pagination, query) {
7
- return this.axios.$get('/third-parties/paginate', {
8
- params: Object.assign(Object.assign({}, pagination), query),
9
- });
6
+ getPaginated(pagination, query, cancelToken) {
7
+ return this.axios.$get('/third-parties/paginate', Object.assign(Object.assign({}, (cancelToken ? { cancelToken } : {})), { params: Object.assign(Object.assign({}, pagination), query) }));
10
8
  }
11
9
  update(idThirdParty, payload) {
12
10
  return this.axios.$put(`/third-parties/${idThirdParty}`, payload);
@@ -1 +1 @@
1
- {"version":3,"file":"ThirdParty.js","sourceRoot":"","sources":["../../../ts/api/resources/ThirdParty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAKvC,MAAM,OAAO,UAAW,SAAQ,QAAQ;IACtC,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC3C,CAAC;IAED,YAAY,CAAC,UAAyB,EAAE,KAAuB;QAC7D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yBAAyB,EAAE;YAChD,MAAM,kCACD,UAAU,GACV,KAAK,CACT;SACF,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,YAAoB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,CAAC,OAA6B;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED,MAAM,CAAC,YAAoB;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,kBAAkB,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n QueryPaginate, BasePaginate, IThirdParty, QueryThirdParty, UpdateThirdPartyForm, 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(pagination: QueryPaginate, query?: QueryThirdParty): Promise<BasePaginate<IThirdParty>> {\n return this.axios.$get('/third-parties/paginate', {\n params: {\n ...pagination,\n ...query,\n },\n });\n }\n\n update(idThirdParty: number, payload: UpdateThirdPartyForm): 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}"]}
1
+ {"version":3,"file":"ThirdParty.js","sourceRoot":"","sources":["../../../ts/api/resources/ThirdParty.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAUvC,MAAM,OAAO,UAAW,SAAQ,QAAQ;IACtC,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC3C,CAAC;IAED,YAAY,CACV,UAAyB,EACzB,KAAuB,EACvB,WAAyB;QAEzB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yBAAyB,kCAC3C,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACvC,MAAM,kCACD,UAAU,GACV,KAAK,KAEV,CAAC;IACL,CAAC;IAED,MAAM,CACJ,YAAoB,EACpB,OAA6B;QAE7B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,CAAC,OAA6B;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED,MAAM,CAAC,YAAoB;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,kBAAkB,YAAY,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF","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,11 @@
1
+ export declare enum BankCollectingState {
2
+ INVOICE_IN_PROGRESS = 1,
3
+ PENDING_COLLECTION = 2,
4
+ INVOICED = 3,
5
+ REFUSED_INVOICE = 4
6
+ }
7
+ export declare const BankCollectingStateList: {
8
+ id: BankCollectingState;
9
+ label: string;
10
+ }[];
11
+ //# sourceMappingURL=BankCollectingState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BankCollectingState.d.ts","sourceRoot":"","sources":["../../../ts/types/Enum/BankCollectingState.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,mBAAmB,IAAI;IACvB,kBAAkB,IAAI;IACtB,QAAQ,IAAI;IACZ,eAAe,IAAI;CACpB;AAED,eAAO,MAAM,uBAAuB;;;GAgBhC,CAAC"}
@@ -0,0 +1,26 @@
1
+ export var BankCollectingState;
2
+ (function (BankCollectingState) {
3
+ BankCollectingState[BankCollectingState["INVOICE_IN_PROGRESS"] = 1] = "INVOICE_IN_PROGRESS";
4
+ BankCollectingState[BankCollectingState["PENDING_COLLECTION"] = 2] = "PENDING_COLLECTION";
5
+ BankCollectingState[BankCollectingState["INVOICED"] = 3] = "INVOICED";
6
+ BankCollectingState[BankCollectingState["REFUSED_INVOICE"] = 4] = "REFUSED_INVOICE";
7
+ })(BankCollectingState || (BankCollectingState = {}));
8
+ export const BankCollectingStateList = [
9
+ {
10
+ id: BankCollectingState.INVOICE_IN_PROGRESS,
11
+ label: 'Facturation en cours',
12
+ },
13
+ {
14
+ id: BankCollectingState.PENDING_COLLECTION,
15
+ label: 'Encaissement en att.',
16
+ },
17
+ {
18
+ id: BankCollectingState.INVOICED,
19
+ label: 'Facturé et encaissé',
20
+ },
21
+ {
22
+ id: BankCollectingState.REFUSED_INVOICE,
23
+ label: 'Facturation refusée',
24
+ }
25
+ ];
26
+ //# sourceMappingURL=BankCollectingState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BankCollectingState.js","sourceRoot":"","sources":["../../../ts/types/Enum/BankCollectingState.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,2FAAuB,CAAA;IACvB,yFAAsB,CAAA;IACtB,qEAAY,CAAA;IACZ,mFAAmB,CAAA;AACrB,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC;QACE,EAAE,EAAE,mBAAmB,CAAC,mBAAmB;QAC3C,KAAK,EAAE,sBAAsB;KAC9B;IACD;QACE,EAAE,EAAE,mBAAmB,CAAC,kBAAkB;QAC1C,KAAK,EAAE,sBAAsB;KAC9B;IACD;QACE,EAAE,EAAE,mBAAmB,CAAC,QAAQ;QAChC,KAAK,EAAE,qBAAqB;KAC7B;IACD;QACE,EAAE,EAAE,mBAAmB,CAAC,eAAe;QACvC,KAAK,EAAE,qBAAqB;KAC7B;CAAC,CAAC","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,38 @@
1
+ export declare const PhonePrefix: {
2
+ FRANCE: {
3
+ id: number;
4
+ prefix: string;
5
+ text: string;
6
+ };
7
+ GUADELOUPE: {
8
+ id: number;
9
+ prefix: string;
10
+ text: string;
11
+ };
12
+ GUYANE: {
13
+ id: number;
14
+ prefix: string;
15
+ text: string;
16
+ };
17
+ MARTINIQUE: {
18
+ id: number;
19
+ prefix: string;
20
+ text: string;
21
+ };
22
+ NEW_CALEDONIA: {
23
+ id: number;
24
+ prefix: string;
25
+ text: string;
26
+ };
27
+ REUNION: {
28
+ id: number;
29
+ prefix: string;
30
+ text: string;
31
+ };
32
+ GERMANY: {
33
+ id: number;
34
+ prefix: string;
35
+ text: string;
36
+ };
37
+ };
38
+ //# sourceMappingURL=Phone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Phone.d.ts","sourceRoot":"","sources":["../../../ts/types/Enum/Phone.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCvB,CAAC"}
@@ -0,0 +1,38 @@
1
+ export const PhonePrefix = {
2
+ FRANCE: {
3
+ id: 1,
4
+ prefix: '+33',
5
+ text: '+33 (France)',
6
+ },
7
+ GUADELOUPE: {
8
+ id: 2,
9
+ prefix: '+590',
10
+ text: '+590 (Guadeloupe)',
11
+ },
12
+ GUYANE: {
13
+ id: 3,
14
+ prefix: '+594',
15
+ text: '+594 (Guyane)',
16
+ },
17
+ MARTINIQUE: {
18
+ id: 4,
19
+ prefix: '+596',
20
+ text: '+596 (Martinique)',
21
+ },
22
+ NEW_CALEDONIA: {
23
+ id: 5,
24
+ prefix: '+687',
25
+ text: '+687 (Nouvelle-Calédonie)',
26
+ },
27
+ REUNION: {
28
+ id: 6,
29
+ prefix: '+262',
30
+ text: '+262 (La Réunion)',
31
+ },
32
+ GERMANY: {
33
+ id: 7,
34
+ prefix: '+49',
35
+ text: '+49 (Allemagne)',
36
+ },
37
+ };
38
+ //# sourceMappingURL=Phone.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Phone.js","sourceRoot":"","sources":["../../../ts/types/Enum/Phone.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM,EAAE;QACN,EAAE,EAAE,CAAC;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,cAAc;KACrB;IACD,UAAU,EAAE;QACV,EAAE,EAAE,CAAC;QACL,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,mBAAmB;KAC1B;IACD,MAAM,EAAE;QACN,EAAE,EAAE,CAAC;QACL,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,eAAe;KACtB;IACD,UAAU,EAAE;QACV,EAAE,EAAE,CAAC;QACL,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,mBAAmB;KAC1B;IACD,aAAa,EAAE;QACb,EAAE,EAAE,CAAC;QACL,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,2BAA2B;KAClC;IACD,OAAO,EAAE;QACP,EAAE,EAAE,CAAC;QACL,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,mBAAmB;KAC1B;IACD,OAAO,EAAE;QACP,EAAE,EAAE,CAAC;QACL,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,iBAAiB;KACxB;CACF,CAAC","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};"]}
@@ -21,4 +21,7 @@ export declare class QueryGetAllTransactions {
21
21
  typeOperation?: TypeCustomerProviderOperation;
22
22
  dateValue?: string;
23
23
  }
24
+ export declare class _QueryTransaction extends QueryTransaction {
25
+ idTypeAccountingFile: number;
26
+ }
24
27
  //# sourceMappingURL=QueryTransaction.d.ts.map