@silexpert/core 0.4.102 → 0.4.103

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 (181) hide show
  1. package/es/api/resources/FecFile.d.ts +2 -2
  2. package/es/api/resources/FecFile.d.ts.map +1 -1
  3. package/es/api/resources/FecFile.js +2 -2
  4. package/es/api/resources/FecFile.js.map +1 -1
  5. package/es/api/resources/PartneredAccountant.d.ts +4 -1
  6. package/es/api/resources/PartneredAccountant.d.ts.map +1 -1
  7. package/es/api/resources/PartneredAccountant.js +6 -0
  8. package/es/api/resources/PartneredAccountant.js.map +1 -1
  9. package/es/api/resources/Product.d.ts +10 -0
  10. package/es/api/resources/Product.d.ts.map +1 -0
  11. package/es/api/resources/Product.js +21 -0
  12. package/es/api/resources/Product.js.map +1 -0
  13. package/es/api/resources/Society.d.ts +3 -1
  14. package/es/api/resources/Society.d.ts.map +1 -1
  15. package/es/api/resources/Society.js +7 -0
  16. package/es/api/resources/Society.js.map +1 -1
  17. package/es/types/Enum/ProductType.d.ts +6 -0
  18. package/es/types/Enum/ProductType.d.ts.map +1 -0
  19. package/es/types/Enum/ProductType.js +7 -0
  20. package/es/types/Enum/ProductType.js.map +1 -0
  21. package/es/types/Enum/RegistrationSource.d.ts +5 -0
  22. package/es/types/Enum/RegistrationSource.d.ts.map +1 -0
  23. package/es/types/Enum/RegistrationSource.js +6 -0
  24. package/es/types/Enum/RegistrationSource.js.map +1 -0
  25. package/es/types/Enum/Unit.d.ts +9 -0
  26. package/es/types/Enum/Unit.d.ts.map +1 -0
  27. package/es/types/Enum/Unit.js +98 -0
  28. package/es/types/Enum/Unit.js.map +1 -0
  29. package/es/types/Interface/api/BasePaginate.d.ts +4 -0
  30. package/es/types/Interface/api/BasePaginate.d.ts.map +1 -1
  31. package/es/types/Interface/api/BasePaginate.js +27 -1
  32. package/es/types/Interface/api/BasePaginate.js.map +1 -1
  33. package/es/types/Interface/api/fecFile/QueryFecFile.d.ts +4 -0
  34. package/es/types/Interface/api/fecFile/QueryFecFile.d.ts.map +1 -0
  35. package/es/types/Interface/api/fecFile/QueryFecFile.js +17 -0
  36. package/es/types/Interface/api/fecFile/QueryFecFile.js.map +1 -0
  37. package/es/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.d.ts +26 -0
  38. package/es/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.d.ts.map +1 -0
  39. package/es/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.js +96 -0
  40. package/es/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.js.map +1 -0
  41. package/es/types/Interface/api/partneredAccountant/CreatedPartneredAccountantSociety.d.ts +6 -0
  42. package/es/types/Interface/api/partneredAccountant/CreatedPartneredAccountantSociety.d.ts.map +1 -0
  43. package/es/types/Interface/api/partneredAccountant/CreatedPartneredAccountantSociety.js +3 -0
  44. package/es/types/Interface/api/partneredAccountant/CreatedPartneredAccountantSociety.js.map +1 -0
  45. package/es/types/Interface/api/partneredAccountant/QueryPartneredAccountantSocieties.d.ts +4 -0
  46. package/es/types/Interface/api/partneredAccountant/QueryPartneredAccountantSocieties.d.ts.map +1 -0
  47. package/es/types/Interface/api/partneredAccountant/QueryPartneredAccountantSocieties.js +22 -0
  48. package/es/types/Interface/api/partneredAccountant/QueryPartneredAccountantSocieties.js.map +1 -0
  49. package/es/types/Interface/api/partneredAccountant/ReadPartneredAccountantSociety.d.ts +6 -0
  50. package/es/types/Interface/api/partneredAccountant/ReadPartneredAccountantSociety.d.ts.map +1 -0
  51. package/es/types/Interface/api/partneredAccountant/ReadPartneredAccountantSociety.js +2 -0
  52. package/es/types/Interface/api/partneredAccountant/ReadPartneredAccountantSociety.js.map +1 -0
  53. package/es/types/Interface/api/product/CreateProduct.d.ts +10 -0
  54. package/es/types/Interface/api/product/CreateProduct.d.ts.map +1 -0
  55. package/es/types/Interface/api/product/CreateProduct.js +62 -0
  56. package/es/types/Interface/api/product/CreateProduct.js.map +1 -0
  57. package/es/types/Interface/api/product/QueryProduct.d.ts +5 -0
  58. package/es/types/Interface/api/product/QueryProduct.d.ts.map +1 -0
  59. package/es/types/Interface/api/product/QueryProduct.js +27 -0
  60. package/es/types/Interface/api/product/QueryProduct.js.map +1 -0
  61. package/es/types/Interface/api/product/UpdateProduct.d.ts +4 -0
  62. package/es/types/Interface/api/product/UpdateProduct.d.ts.map +1 -0
  63. package/es/types/Interface/api/product/UpdateProduct.js +4 -0
  64. package/es/types/Interface/api/product/UpdateProduct.js.map +1 -0
  65. package/es/types/Interface/api/society/CreateSociety.d.ts +5 -0
  66. package/es/types/Interface/api/society/CreateSociety.d.ts.map +1 -1
  67. package/es/types/Interface/api/society/CreateSociety.js +14 -0
  68. package/es/types/Interface/api/society/CreateSociety.js.map +1 -1
  69. package/es/types/Interface/api/society/UpdateSociety.d.ts +4 -0
  70. package/es/types/Interface/api/society/UpdateSociety.d.ts.map +1 -1
  71. package/es/types/Interface/api/society/UpdateSociety.js +6 -0
  72. package/es/types/Interface/api/society/UpdateSociety.js.map +1 -1
  73. package/es/types/Interface/models/IEstimateInvoice.d.ts +2 -4
  74. package/es/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
  75. package/es/types/Interface/models/IEstimateInvoice.js.map +1 -1
  76. package/es/types/Interface/models/IPartneredAccountantToSociety.d.ts +12 -0
  77. package/es/types/Interface/models/IPartneredAccountantToSociety.d.ts.map +1 -0
  78. package/es/types/Interface/models/IPartneredAccountantToSociety.js +2 -0
  79. package/es/types/Interface/models/IPartneredAccountantToSociety.js.map +1 -0
  80. package/es/types/Interface/models/IPermission.d.ts +1 -1
  81. package/es/types/Interface/models/IPermission.d.ts.map +1 -1
  82. package/es/types/Interface/models/IPermission.js.map +1 -1
  83. package/es/types/Interface/models/IProduct.d.ts +6 -13
  84. package/es/types/Interface/models/IProduct.d.ts.map +1 -1
  85. package/es/types/Interface/models/IProduct.js.map +1 -1
  86. package/es/types/Interface/models/IProductInvoice.d.ts +22 -0
  87. package/es/types/Interface/models/IProductInvoice.d.ts.map +1 -0
  88. package/es/types/Interface/models/IProductInvoice.js +2 -0
  89. package/es/types/Interface/models/IProductInvoice.js.map +1 -0
  90. package/es/types/index.d.ts +13 -3
  91. package/es/types/index.d.ts.map +1 -1
  92. package/es/types/index.js +13 -3
  93. package/es/types/index.js.map +1 -1
  94. package/es/utils/validators/objectId.validator.d.ts +11 -0
  95. package/es/utils/validators/objectId.validator.d.ts.map +1 -0
  96. package/es/utils/validators/objectId.validator.js +19 -0
  97. package/es/utils/validators/objectId.validator.js.map +1 -0
  98. package/js/api/resources/FecFile.js +3 -3
  99. package/js/api/resources/FecFile.js.map +1 -1
  100. package/js/api/resources/PartneredAccountant.js +12 -0
  101. package/js/api/resources/PartneredAccountant.js.map +1 -1
  102. package/js/api/resources/Product.js +36 -0
  103. package/js/api/resources/Product.js.map +1 -0
  104. package/js/api/resources/Society.js +14 -0
  105. package/js/api/resources/Society.js.map +1 -1
  106. package/js/types/Enum/ProductType.js +13 -0
  107. package/js/types/Enum/ProductType.js.map +1 -0
  108. package/js/types/Enum/RegistrationSource.js +12 -0
  109. package/js/types/Enum/RegistrationSource.js.map +1 -0
  110. package/js/types/Enum/Unit.js +103 -0
  111. package/js/types/Enum/Unit.js.map +1 -0
  112. package/js/types/Interface/api/BasePaginate.js +25 -0
  113. package/js/types/Interface/api/BasePaginate.js.map +1 -1
  114. package/js/types/Interface/api/fecFile/QueryFecFile.js +27 -0
  115. package/js/types/Interface/api/fecFile/QueryFecFile.js.map +1 -0
  116. package/js/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.js +94 -0
  117. package/js/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.js.map +1 -0
  118. package/js/types/Interface/api/partneredAccountant/CreatedPartneredAccountantSociety.js +10 -0
  119. package/js/types/Interface/api/partneredAccountant/CreatedPartneredAccountantSociety.js.map +1 -0
  120. package/js/types/Interface/api/partneredAccountant/QueryPartneredAccountantSocieties.js +33 -0
  121. package/js/types/Interface/api/partneredAccountant/QueryPartneredAccountantSocieties.js.map +1 -0
  122. package/js/types/Interface/{models/IUnit.js → api/partneredAccountant/ReadPartneredAccountantSociety.js} +1 -1
  123. package/js/types/Interface/{models/IUnit.js.map → api/partneredAccountant/ReadPartneredAccountantSociety.js.map} +1 -1
  124. package/js/types/Interface/api/product/CreateProduct.js +51 -0
  125. package/js/types/Interface/api/product/CreateProduct.js.map +1 -0
  126. package/js/types/Interface/api/product/QueryProduct.js +33 -0
  127. package/js/types/Interface/api/product/QueryProduct.js.map +1 -0
  128. package/js/types/Interface/api/product/UpdateProduct.js +13 -0
  129. package/js/types/Interface/api/product/UpdateProduct.js.map +1 -0
  130. package/js/types/Interface/api/society/CreateSociety.js +16 -0
  131. package/js/types/Interface/api/society/CreateSociety.js.map +1 -1
  132. package/js/types/Interface/api/society/UpdateSociety.js +7 -1
  133. package/js/types/Interface/api/society/UpdateSociety.js.map +1 -1
  134. package/js/types/Interface/models/{IProductType.js → IPartneredAccountantToSociety.js} +1 -1
  135. package/js/types/Interface/models/{IProductType.js.map → IPartneredAccountantToSociety.js.map} +1 -1
  136. package/js/types/Interface/models/{IItemEstimate.js → IProductInvoice.js} +1 -1
  137. package/js/types/Interface/models/{IItemEstimate.js.map → IProductInvoice.js.map} +1 -1
  138. package/js/types/index.js +147 -27
  139. package/js/types/index.js.map +1 -1
  140. package/js/utils/validators/objectId.validator.js +29 -0
  141. package/js/utils/validators/objectId.validator.js.map +1 -0
  142. package/package.json +1 -1
  143. package/ts/api/resources/FecFile.ts +6 -2
  144. package/ts/api/resources/PartneredAccountant.ts +16 -0
  145. package/ts/api/resources/Product.ts +31 -0
  146. package/ts/api/resources/Society.ts +11 -0
  147. package/ts/types/Enum/ProductType.ts +5 -0
  148. package/ts/types/Enum/RegistrationSource.ts +4 -0
  149. package/ts/types/Enum/Unit.ts +105 -0
  150. package/ts/types/Interface/api/BasePaginate.ts +17 -0
  151. package/ts/types/Interface/api/fecFile/QueryFecFile.ts +6 -0
  152. package/ts/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.ts +68 -0
  153. package/ts/types/Interface/api/partneredAccountant/CreatedPartneredAccountantSociety.ts +6 -0
  154. package/ts/types/Interface/api/partneredAccountant/QueryPartneredAccountantSocieties.ts +11 -0
  155. package/ts/types/Interface/api/partneredAccountant/ReadPartneredAccountantSociety.ts +4 -0
  156. package/ts/types/Interface/api/product/CreateProduct.ts +48 -0
  157. package/ts/types/Interface/api/product/QueryProduct.ts +15 -0
  158. package/ts/types/Interface/api/product/UpdateProduct.ts +3 -0
  159. package/ts/types/Interface/api/society/CreateSociety.ts +11 -0
  160. package/ts/types/Interface/api/society/UpdateSociety.ts +6 -0
  161. package/ts/types/Interface/models/IEstimateInvoice.ts +2 -4
  162. package/ts/types/Interface/models/IPartneredAccountantToSociety.ts +15 -0
  163. package/ts/types/Interface/models/IPermission.ts +1 -1
  164. package/ts/types/Interface/models/IProduct.ts +6 -13
  165. package/ts/types/Interface/models/{IItemEstimate.ts → IProductInvoice.ts} +8 -12
  166. package/ts/types/index.ts +14 -4
  167. package/ts/utils/validators/objectId.validator.ts +31 -0
  168. package/es/types/Interface/models/IItemEstimate.d.ts +0 -26
  169. package/es/types/Interface/models/IItemEstimate.d.ts.map +0 -1
  170. package/es/types/Interface/models/IItemEstimate.js +0 -2
  171. package/es/types/Interface/models/IItemEstimate.js.map +0 -1
  172. package/es/types/Interface/models/IProductType.d.ts +0 -7
  173. package/es/types/Interface/models/IProductType.d.ts.map +0 -1
  174. package/es/types/Interface/models/IProductType.js +0 -2
  175. package/es/types/Interface/models/IProductType.js.map +0 -1
  176. package/es/types/Interface/models/IUnit.d.ts +0 -8
  177. package/es/types/Interface/models/IUnit.d.ts.map +0 -1
  178. package/es/types/Interface/models/IUnit.js +0 -2
  179. package/es/types/Interface/models/IUnit.js.map +0 -1
  180. package/ts/types/Interface/models/IProductType.ts +0 -7
  181. package/ts/types/Interface/models/IUnit.ts +0 -8
@@ -1,9 +1,9 @@
1
1
  import { Resource } from '../Resource';
2
- import { CreateFecFile, DeleteFecFile, ReadFecFile, IFecFile, CreateMappingFecFile } from '../../types';
2
+ import { CreateFecFile, DeleteFecFile, ReadFecFile, IFecFile, CreateMappingFecFile, QueryFecFile } from '../../types';
3
3
  export declare class FecFile extends Resource {
4
4
  get(): Promise<IFecFile>;
5
5
  download(): Promise<any>;
6
- export(idExercice: number): Promise<any>;
6
+ export(idExercice: number, payload?: QueryFecFile): Promise<any>;
7
7
  create(params: CreateFecFile): Promise<ReadFecFile>;
8
8
  map(params: CreateMappingFecFile): Promise<IFecFile>;
9
9
  delete(): Promise<DeleteFecFile>;
@@ -1 +1 @@
1
- {"version":3,"file":"FecFile.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/FecFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,aAAa,EACb,aAAa,EACb,WAAW,EACX,QAAQ,EACR,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC;IAIxB,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC;IAIxB,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAIxC,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC;IAInD,GAAG,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIpD,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC;CAGjC"}
1
+ {"version":3,"file":"FecFile.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/FecFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,aAAa,EACb,aAAa,EACb,WAAW,EACX,QAAQ,EACR,oBAAoB,EACpB,YAAY,EACb,MAAM,aAAa,CAAC;AAErB,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC;IAIxB,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC;IAIxB,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC;IAOhE,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC;IAInD,GAAG,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIpD,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC;CAGjC"}
@@ -6,8 +6,8 @@ export class FecFile extends Resource {
6
6
  download() {
7
7
  return this.axios.$get('fecFile/download', { responseType: 'blob' });
8
8
  }
9
- export(idExercice) {
10
- return this.axios.$get(`fecFile/exercice/${idExercice}/export`, { responseType: 'blob' });
9
+ export(idExercice, payload) {
10
+ return this.axios.$get(`fecFile/exercice/${idExercice}/export`, Object.assign(Object.assign({}, payload), { responseType: 'blob' }));
11
11
  }
12
12
  create(params) {
13
13
  return this.axios.$post('fecFile', params);
@@ -1 +1 @@
1
- {"version":3,"file":"FecFile.js","sourceRoot":"","sources":["../../../ts/api/resources/FecFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AASvC,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IACnC,GAAG;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;IACvE,CAAC;IAED,MAAM,CAAC,UAAkB;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,UAAU,SAAS,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED,MAAM,CAAC,MAAqB;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;IAED,GAAG,CAAC,MAA4B;QAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACvC,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n CreateFecFile,\n DeleteFecFile,\n ReadFecFile,\n IFecFile,\n CreateMappingFecFile,\n} from '../../types';\n\nexport class FecFile extends Resource {\n get(): Promise<IFecFile> {\n return this.axios.$get('fecFile');\n }\n\n download(): Promise<any> {\n return this.axios.$get('fecFile/download', { responseType: 'blob' });\n }\n\n export(idExercice: number): Promise<any> {\n return this.axios.$get(`fecFile/exercice/${idExercice}/export`, { responseType: 'blob' });\n }\n\n create(params: CreateFecFile): Promise<ReadFecFile> {\n return this.axios.$post('fecFile', params);\n }\n\n map(params: CreateMappingFecFile): Promise<IFecFile> {\n return this.axios.$post('fecFile/mapping', params);\n }\n\n delete(): Promise<DeleteFecFile> {\n return this.axios.$delete('fecFile');\n }\n}"]}
1
+ {"version":3,"file":"FecFile.js","sourceRoot":"","sources":["../../../ts/api/resources/FecFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAUvC,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IACnC,GAAG;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;IACvE,CAAC;IAED,MAAM,CAAC,UAAkB,EAAE,OAAsB;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,UAAU,SAAS,kCACzD,OAAO,KACV,YAAY,EAAE,MAAM,IACpB,CAAC;IACL,CAAC;IAED,MAAM,CAAC,MAAqB;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;IAED,GAAG,CAAC,MAA4B;QAC9B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACvC,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n CreateFecFile,\n DeleteFecFile,\n ReadFecFile,\n IFecFile,\n CreateMappingFecFile,\n QueryFecFile,\n} from '../../types';\n\nexport class FecFile extends Resource {\n get(): Promise<IFecFile> {\n return this.axios.$get('fecFile');\n }\n\n download(): Promise<any> {\n return this.axios.$get('fecFile/download', { responseType: 'blob' });\n }\n\n export(idExercice: number, payload?: QueryFecFile): Promise<any> {\n return this.axios.$get(`fecFile/exercice/${idExercice}/export`, {\n ...payload,\n responseType: 'blob',\n });\n }\n\n create(params: CreateFecFile): Promise<ReadFecFile> {\n return this.axios.$post('fecFile', params);\n }\n\n map(params: CreateMappingFecFile): Promise<IFecFile> {\n return this.axios.$post('fecFile/mapping', params);\n }\n\n delete(): Promise<DeleteFecFile> {\n return this.axios.$delete('fecFile');\n }\n}"]}
@@ -1,6 +1,7 @@
1
1
  import { CancelToken } from 'axios';
2
- import { CreatePartneredAccountantRequestedService, InvitePartneredAccountant, IPartneredAccountant, IPartneredAccountantCompanyService, QueryPaginate, QueryParteneredAccountantSoldServices, ReadPartneredAccountant, ReadPartneredAccountantRequestedService, ReadPartneredAccountantService, ReadPartneredAccountantSoldServicesPaginated, ReadPartneredAccountantSoldServiceStatistics, UpdatedPartneredAccountantAccess, UpdatedPartneredAccountantSoldService, UpdatePartneredAccountantAccess, UpdatePartneredAccountantSoldService } from '../../types';
2
+ import { CreatePartneredAccountantRequestedService, InvitePartneredAccountant, IPartneredAccountant, IPartneredAccountantCompanyService, QueryPaginate, QueryParteneredAccountantSoldServices, ReadPartneredAccountant, ReadPartneredAccountantRequestedService, ReadPartneredAccountantService, ReadPartneredAccountantSoldServicesPaginated, ReadPartneredAccountantSoldServiceStatistics, UpdatedPartneredAccountantAccess, UpdatedPartneredAccountantSoldService, UpdatePartneredAccountantAccess, UpdatePartneredAccountantSoldService, CreatePartneredAccountantSociety, BasePaginate, QueryPartneredAccountantSocieties, CreatedPartneredAccountantSociety } from '../../types';
3
3
  import { Resource } from '../Resource';
4
+ import { ReadPartneredAccountantSociety } from '../../types/Interface/api/partneredAccountant/ReadPartneredAccountantSociety';
4
5
  export declare class PartneredAccountant extends Resource {
5
6
  getAll(): Promise<Array<ReadPartneredAccountant>>;
6
7
  getAllAccess(): Promise<Array<IPartneredAccountant>>;
@@ -13,5 +14,7 @@ export declare class PartneredAccountant extends Resource {
13
14
  getSoldServiceStatistics(cancelToken?: CancelToken): Promise<Array<ReadPartneredAccountantSoldServiceStatistics>>;
14
15
  getAllRequestedServices(): Promise<Array<ReadPartneredAccountantRequestedService>>;
15
16
  createRequestedServices(idPartneredAccountant: number, payload: Array<CreatePartneredAccountantRequestedService>): Promise<Array<IPartneredAccountantCompanyService>>;
17
+ getPaginatedSocieties(params: QueryPaginate & QueryPartneredAccountantSocieties, cancelToken?: CancelToken): Promise<BasePaginate<ReadPartneredAccountantSociety>>;
18
+ createSociety(params: CreatePartneredAccountantSociety): Promise<CreatedPartneredAccountantSociety>;
16
19
  }
17
20
  //# sourceMappingURL=PartneredAccountant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PartneredAccountant.d.ts","sourceRoot":"","sources":["../../../ts/api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C,EAAE,WAAW,GAAG,OAAO,CAAC,4CAA4C,CAAC;IAOzK,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,oCAAoC,GAAG,OAAO,CAAC,qCAAqC,CAAC;IAIvI,wBAAwB,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,4CAA4C,CAAC,CAAC;IAIjH,uBAAuB,IAAI,OAAO,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAC;IAIlF,uBAAuB,CAAC,qBAAqB,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,yCAAyC,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC;IAIrK,qBAAqB,CAAC,MAAM,EAAE,aAAa,GAAG,iCAAiC,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,8BAA8B,CAAC,CAAC;IAOlK,aAAa,CAAC,MAAM,EAAE,gCAAgC,GAAG,OAAO,CAAC,iCAAiC,CAAC;CAGpG"}
@@ -33,5 +33,11 @@ export class PartneredAccountant extends Resource {
33
33
  createRequestedServices(idPartneredAccountant, payload) {
34
34
  return this.axios.$post(`/partnered-accountants/${idPartneredAccountant}/requested-services`, payload);
35
35
  }
36
+ getPaginatedSocieties(params, cancelToken) {
37
+ return this.axios.$get('/partnered-accountants/societies', Object.assign(Object.assign({}, (cancelToken ? { cancelToken } : {})), { params }));
38
+ }
39
+ createSociety(params) {
40
+ return this.axios.$post('/partnered-accountants/societies', params);
41
+ }
36
42
  }
37
43
  //# sourceMappingURL=PartneredAccountant.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PartneredAccountant.js","sourceRoot":"","sources":["../../../ts/api/resources/PartneredAccountant.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,mBAAoB,SAAQ,QAAQ;IAC/C,MAAM;QACJ,OAAO,I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CAAC,2CAA2C,CAAC,CAAC;IACtE,CAAC;IAED,uBAAuB,CAAC,qBAA6B,EAAE,OAAyD;QAC9G,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,0BAA0B,qBAAqB,qBAAqB,EAAE,OAAO,CAAC,CAAC;IACzG,CAAC;CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport {\n CreatePartneredAccountantRequestedService, InvitePartneredAccountant,\n IPartneredAccountant,\n IPartneredAccountantCompanyService,\n QueryPaginate,\n QueryParteneredAccountantSoldServices,\n ReadPartneredAccountant,\n ReadPartneredAccountantRequestedService,\n ReadPartneredAccountantService,\n ReadPartneredAccountantSoldServicesPaginated,\n ReadPartneredAccountantSoldServiceStatistics,\n UpdatedPartneredAccountantAccess, UpdatedPartneredAccountantSoldService,\n UpdatePartneredAccountantAccess,\n UpdatePartneredAccountantSoldService,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class PartneredAccountant extends Resource {\n getAll(): Promise<Array<ReadPartneredAccountant>> {\n return this.axios.$get('/partnered-accountants');\n }\n\n getAllAccess(): Promise<Array<IPartneredAccountant>> {\n return this.axios.$get('/partnered-accountants/access');\n }\n\n updateAccess(idPartneredAccountant: number, data: UpdatePartneredAccountantAccess) : Promise<UpdatedPartneredAccountantAccess> {\n return this.axios.$put(`/partnered-accountants/${idPartneredAccountant}/access`, data);\n }\n\n invite(data: InvitePartneredAccountant): Promise<true> {\n return this.axios.$put('/partnered-accountants/invite', data);\n }\n\n getProfile(): Promise<IPartneredAccountant> {\n return this.axios.$get('/partnered-accountants/profile');\n }\n\n getAllServices(idPartneredAccountant: number) : Promise<Array<ReadPartneredAccountantService>> {\n return this.axios.$get(`/partnered-accountants/${idPartneredAccountant}/services`);\n }\n\n getPaginatedSoldServices(params: QueryParteneredAccountantSoldServices & QueryPaginate, cancelToken?: CancelToken): Promise<ReadPartneredAccountantSoldServicesPaginated> {\n return this.axios.$get('/partnered-accountants/sold-services', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n updateSoldServices(idSoldService: number, params: UpdatePartneredAccountantSoldService): Promise<UpdatedPartneredAccountantSoldService> {\n return this.axios.$put(`/partnered-accountants/sold-services/${idSoldService}`, params);\n }\n\n getSoldServiceStatistics(cancelToken?: CancelToken): Promise<Array<ReadPartneredAccountantSoldServiceStatistics>> {\n return this.axios.$get('/partnered-accountants/sold-services/statistics', cancelToken ? { cancelToken } : {});\n }\n\n getAllRequestedServices(): Promise<Array<ReadPartneredAccountantRequestedService>> {\n return this.axios.$get('/partnered-accountants/requested-services');\n }\n\n createRequestedServices(idPartneredAccountant: number, payload: Array<CreatePartneredAccountantRequestedService>): Promise<Array<IPartneredAccountantCompanyService>> {\n return this.axios.$post(`/partnered-accountants/${idPartneredAccountant}/requested-services`, payload);\n }\n}"]}
1
+ {"version":3,"file":"PartneredAccountant.js","sourceRoot":"","sources":["../../../ts/api/resources/PartneredAccountant.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,mBAAoB,SAAQ,QAAQ;IAC/C,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;IACnD,CAAC;IAED,YAAY;QACV,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC;IAC1D,CAAC;IAED,YAAY,CAAC,qBAA6B,EAAE,IAAqC;QAC/E,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,qBAAqB,SAAS,EAAE,IAAI,CAAC,CAAC;IACzF,CAAC;IAED,MAAM,CAAC,IAA+B;QACpC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,+BAA+B,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;IAED,UAAU;QACR,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;IAC3D,CAAC;IAED,cAA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CACF","sourcesContent":["import { CancelToken } from 'axios';\nimport {\n CreatePartneredAccountantRequestedService, InvitePartneredAccountant,\n IPartneredAccountant,\n IPartneredAccountantCompanyService,\n QueryPaginate,\n QueryParteneredAccountantSoldServices,\n ReadPartneredAccountant,\n ReadPartneredAccountantRequestedService,\n ReadPartneredAccountantService,\n ReadPartneredAccountantSoldServicesPaginated,\n ReadPartneredAccountantSoldServiceStatistics,\n UpdatedPartneredAccountantAccess, UpdatedPartneredAccountantSoldService,\n UpdatePartneredAccountantAccess,\n UpdatePartneredAccountantSoldService,\n CreatePartneredAccountantSociety,\n BasePaginate,\n QueryPartneredAccountantSocieties,\n CreatedPartneredAccountantSociety,\n} from '../../types';\nimport { Resource } from '../Resource';\nimport { ReadPartneredAccountantSociety } from '../../types/Interface/api/partneredAccountant/ReadPartneredAccountantSociety';\n\nexport class PartneredAccountant extends Resource {\n getAll(): Promise<Array<ReadPartneredAccountant>> {\n return this.axios.$get('/partnered-accountants');\n }\n\n getAllAccess(): Promise<Array<IPartneredAccountant>> {\n return this.axios.$get('/partnered-accountants/access');\n }\n\n updateAccess(idPartneredAccountant: number, data: UpdatePartneredAccountantAccess) : Promise<UpdatedPartneredAccountantAccess> {\n return this.axios.$put(`/partnered-accountants/${idPartneredAccountant}/access`, data);\n }\n\n invite(data: InvitePartneredAccountant): Promise<true> {\n return this.axios.$put('/partnered-accountants/invite', data);\n }\n\n getProfile(): Promise<IPartneredAccountant> {\n return this.axios.$get('/partnered-accountants/profile');\n }\n\n getAllServices(idPartneredAccountant: number) : Promise<Array<ReadPartneredAccountantService>> {\n return this.axios.$get(`/partnered-accountants/${idPartneredAccountant}/services`);\n }\n\n getPaginatedSoldServices(params: QueryParteneredAccountantSoldServices & QueryPaginate, cancelToken?: CancelToken): Promise<ReadPartneredAccountantSoldServicesPaginated> {\n return this.axios.$get('/partnered-accountants/sold-services', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n updateSoldServices(idSoldService: number, params: UpdatePartneredAccountantSoldService): Promise<UpdatedPartneredAccountantSoldService> {\n return this.axios.$put(`/partnered-accountants/sold-services/${idSoldService}`, params);\n }\n\n getSoldServiceStatistics(cancelToken?: CancelToken): Promise<Array<ReadPartneredAccountantSoldServiceStatistics>> {\n return this.axios.$get('/partnered-accountants/sold-services/statistics', cancelToken ? { cancelToken } : {});\n }\n\n getAllRequestedServices(): Promise<Array<ReadPartneredAccountantRequestedService>> {\n return this.axios.$get('/partnered-accountants/requested-services');\n }\n\n createRequestedServices(idPartneredAccountant: number, payload: Array<CreatePartneredAccountantRequestedService>): Promise<Array<IPartneredAccountantCompanyService>> {\n return this.axios.$post(`/partnered-accountants/${idPartneredAccountant}/requested-services`, payload);\n }\n\n getPaginatedSocieties(params: QueryPaginate & QueryPartneredAccountantSocieties, cancelToken?: CancelToken): Promise<BasePaginate<ReadPartneredAccountantSociety>> {\n return this.axios.$get('/partnered-accountants/societies', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n createSociety(params: CreatePartneredAccountantSociety): Promise<CreatedPartneredAccountantSociety> {\n return this.axios.$post('/partnered-accountants/societies', params);\n }\n}"]}
@@ -0,0 +1,10 @@
1
+ import { Resource } from '../Resource';
2
+ import { IProduct, QueryPaginate, QueryProduct, BasePaginate, CreateProduct, UpdateProduct } from '../../types';
3
+ export declare class Product extends Resource {
4
+ getAll(): Promise<Array<IProduct>>;
5
+ getPaginated(pagination: QueryPaginate, query?: QueryProduct): Promise<BasePaginate<IProduct>>;
6
+ create(payload: CreateProduct): Promise<IProduct>;
7
+ update(id: number, payload: UpdateProduct): Promise<IProduct>;
8
+ delete(id: number): Promise<boolean>;
9
+ }
10
+ //# sourceMappingURL=Product.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Product.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAClF,MAAM,aAAa,CAAC;AAErB,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,MAAM,IAAI,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAIlC,YAAY,CAAC,UAAU,EAAE,aAAa,EAAE,KAAK,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAS9F,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;CAGrC"}
@@ -0,0 +1,21 @@
1
+ import { Resource } from '../Resource';
2
+ export class Product extends Resource {
3
+ getAll() {
4
+ return this.axios.$get('/commercial-management/products');
5
+ }
6
+ getPaginated(pagination, query) {
7
+ return this.axios.$get('/commercial-management/products', {
8
+ params: Object.assign(Object.assign({}, pagination), query),
9
+ });
10
+ }
11
+ create(payload) {
12
+ return this.axios.$post('/commercial-management/products', payload);
13
+ }
14
+ update(id, payload) {
15
+ return this.axios.$put(`/commercial-management/products/${id}`, payload);
16
+ }
17
+ delete(id) {
18
+ return this.axios.$delete(`/commercial-management/products/${id}`);
19
+ }
20
+ }
21
+ //# sourceMappingURL=Product.js.map
@@ -0,0 +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;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}"]}
@@ -1,5 +1,5 @@
1
1
  import { Resource } from '../Resource';
2
- import { CreateInvoiceMail, UpdateInvoiceMail, IMailSociety, ISociety, LegalFormSiren, GetDataSociety, CreateSociety, CreateSynchronization, UpdateSociety, CreateBudgetBalanceBankAccount, IUser, ListUserSociety, CreateUserToSocietyWithPermission, UpdateUserToSocietyWithPermission, ReadSocietyUsers, QuerySociety } from '../../types';
2
+ import { CreateInvoiceMail, UpdateInvoiceMail, IMailSociety, ISociety, LegalFormSiren, GetDataSociety, CreateSociety, CreateSynchronization, UpdateSociety, CreateBudgetBalanceBankAccount, IUser, ListUserSociety, CreateUserToSocietyWithPermission, UpdateUserToSocietyWithPermission, ReadSocietyUsers, QuerySociety, UpdateSocietyPayload } from '../../types';
3
3
  export declare class Society extends Resource {
4
4
  get(params: QuerySociety): Promise<Society>;
5
5
  getInvoiceEmail(): Promise<IMailSociety | Error>;
@@ -7,6 +7,8 @@ export declare class Society extends Resource {
7
7
  updateInvoiceEmail(data: UpdateInvoiceMail): Promise<IMailSociety | Error>;
8
8
  createSociety(data: CreateSociety, fromSubscription: boolean | string, isCreatedInApp: boolean): Promise<ISociety>;
9
9
  updateSociety(id: number, data: UpdateSociety): Promise<ISociety>;
10
+ update(id: number, payload: UpdateSocietyPayload): Promise<ISociety>;
11
+ archive(id: number): Promise<ISociety>;
10
12
  getDataSociety(params: GetDataSociety): Promise<LegalFormSiren[]>;
11
13
  synchronize(id: number, params: CreateSynchronization): Promise<string>;
12
14
  autoImportationTransactions(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"Society.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Society.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,aAAa,EACb,8BAA8B,EAC9B,KAAK,EACL,eAAe,EACf,iCAAiC,EACjC,iCAAiC,EACjC,gBAAgB,EAChB,YAAY,EACb,MAAM,aAAa,CAAC;AAErB,qBAAa,OAAQ,SAAQ,QAAQ;IAC5B,GAAG,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlD,eAAe,IAAI,OAAO,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GAAG,OAAO,CAAC,MAAM,CAAC;IAGvE,2BAA2B,IAAI,OAAO,CAAC,IAAI,CAAC;IAG5C,wBAAwB,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,8BAA8B,GAAG,OAAO,CAAC,MAAM,CAAC;IAG3H,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAE,OAAO,CAAC,gBAAgB,CAAC;IAGrF,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAG5D,iCAAiC,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,iCAAiC,GAAG,OAAO,CAAC,KAAK,CAAC;IAG7G,iCAAiC,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,iCAAiC,GAAG,OAAO,CAAC,KAAK,CAAC;IAGzH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAGpC"}
@@ -18,6 +18,13 @@ export class Society extends Resource {
18
18
  updateSociety(id, data) {
19
19
  return this.axios.$put(`/society/${id}/updateSociety`, data);
20
20
  }
21
+ update(id, payload) {
22
+ return this.axios.patch(`/society/${id}`, payload);
23
+ }
24
+ archive(id) {
25
+ const payload = { society: { archive: true, archiveDate: new Date() } };
26
+ return this.axios.patch(`/society/${id}`, payload);
27
+ }
21
28
  // this endpoint is used to fetch from extern api for legalForm
22
29
  getDataSociety(params) {
23
30
  return this.axios.$get('/society/dataSociety', { params });
@@ -1 +1 @@
1
- {"version":3,"file":"Society.js","sourceRoot":"","sources":["../../../ts/api/resources/Society.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAoBvC,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IAC5B,GAAG,CAAC,MAAoB;QAC7B,OAAO,IAAI,CAAC,K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AAgB,EAAE,MAAM,CAAC,CAAC;IACtG,CAAC;IACD,eAAe,CAAC,SAAiB,EAAE,MAAuB;QACxD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,SAAS,QAAQ,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,UAAU,CAAC,SAAiB,EAAE,MAAc;QAC1C,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,SAAS,SAAS,MAAM,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,iCAAiC,CAAC,SAAiB,EAAE,IAAuC;QAC1F,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,SAAS,8BAA8B,EAAE,IAAI,CAAC,CAAC;IACrF,CAAC;IACD,iCAAiC,CAAC,SAAiB,EAAE,EAAU,EAAE,IAAuC;QACtG,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,SAAS,gCAAgC,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IAC1F,CAAC;IACD,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAC9C,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n CreateInvoiceMail,\n UpdateInvoiceMail,\n IMailSociety,\n ISociety,\n LegalFormSiren,\n GetDataSociety,\n CreateSociety,\n CreateSynchronization,\n UpdateSociety,\n CreateBudgetBalanceBankAccount,\n IUser,\n ListUserSociety,\n CreateUserToSocietyWithPermission,\n UpdateUserToSocietyWithPermission,\n ReadSocietyUsers,\n QuerySociety,\n} from '../../types';\n\nexport class Society extends Resource {\n public get(params: QuerySociety): Promise<Society> {\n return this.axios.$get('/society', { params });\n }\n\n getInvoiceEmail(): Promise<IMailSociety | Error> {\n return this.axios.$get('/society/invoiceEmail');\n }\n\n createInvoiceEmail(data: CreateInvoiceMail): Promise<IMailSociety | Error> {\n return this.axios.$post('/society/invoiceEmail', data);\n }\n\n updateInvoiceEmail(data: UpdateInvoiceMail): Promise<IMailSociety | Error> {\n return this.axios.$put('/society/invoiceEmail', data);\n }\n createSociety(data: CreateSociety, fromSubscription: boolean | string, isCreatedInApp: boolean): Promise<ISociety> {\n return this.axios.$post(`/society/create?fromSubscription=${fromSubscription}&isCreatedInApp=${isCreatedInApp}`, data);\n }\n updateSociety(id: number, data: UpdateSociety): Promise<ISociety> {\n return this.axios.$put(`/society/${id}/updateSociety`, data);\n }\n // this endpoint is used to fetch from extern api for legalForm\n getDataSociety(params: GetDataSociety): Promise<LegalFormSiren[]> {\n return this.axios.$get('/society/dataSociety', { params });\n }\n synchronize(id: number, params: CreateSynchronization): Promise<string> {\n return this.axios.$post(`/society/${id}/synchronize`, params);\n }\n autoImportationTransactions(): Promise<void> {\n return this.axios.$post('/society/bankAccount/autoImportationTransactions');\n }\n importBalanceBankAccount(idSociety: number, idBankAccount: number, params: CreateBudgetBalanceBankAccount): Promise<number> {\n return this.axios.$post(`/society/${idSociety}/bankAccount/${idBankAccount}/importBalance`, params);\n }\n listUserSociety(idSociety: number, params: ListUserSociety):Promise<ReadSocietyUsers> {\n return this.axios.$get(`/society/${idSociety}/users`, { params });\n }\n deleteUser(idSociety: number, idUser: number): Promise<true> {\n return this.axios.$delete(`/society/${idSociety}/user/${idUser}`);\n }\n createUserToSocietyWithPermission(idSociety: number, data: CreateUserToSocietyWithPermission): Promise<IUser> {\n return this.axios.$post(`/society/${idSociety}/userToSocietyWithPermission`, data);\n }\n updateUserToSocietyWithPermission(idSociety: number, id: number, data: UpdateUserToSocietyWithPermission): Promise<IUser> {\n return this.axios.$put(`/society/${idSociety}/userToSocietyWithPermission/${id}`, data);\n }\n delete(id: number): Promise<number> {\n return this.axios.$delete(`/society/${id}`);\n }\n}\n"]}
1
+ {"version":3,"file":"Society.js","sourceRoot":"","sources":["../../../ts/api/resources/Society.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,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EAAE,CAAC,CAAC;IAC9C,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n CreateInvoiceMail,\n UpdateInvoiceMail,\n IMailSociety,\n ISociety,\n LegalFormSiren,\n GetDataSociety,\n CreateSociety,\n CreateSynchronization,\n UpdateSociety,\n CreateBudgetBalanceBankAccount,\n IUser,\n ListUserSociety,\n CreateUserToSocietyWithPermission,\n UpdateUserToSocietyWithPermission,\n ReadSocietyUsers,\n QuerySociety,\n UpdateSocietyPayload,\n} from '../../types';\n\nexport class Society extends Resource {\n public get(params: QuerySociety): Promise<Society> {\n return this.axios.$get('/society', { params });\n }\n\n getInvoiceEmail(): Promise<IMailSociety | Error> {\n return this.axios.$get('/society/invoiceEmail');\n }\n\n createInvoiceEmail(data: CreateInvoiceMail): Promise<IMailSociety | Error> {\n return this.axios.$post('/society/invoiceEmail', data);\n }\n\n updateInvoiceEmail(data: UpdateInvoiceMail): Promise<IMailSociety | Error> {\n return this.axios.$put('/society/invoiceEmail', data);\n }\n createSociety(data: CreateSociety, fromSubscription: boolean | string, isCreatedInApp: boolean): Promise<ISociety> {\n return this.axios.$post(`/society/create?fromSubscription=${fromSubscription}&isCreatedInApp=${isCreatedInApp}`, data);\n }\n updateSociety(id: number, data: UpdateSociety): Promise<ISociety> {\n return this.axios.$put(`/society/${id}/updateSociety`, data);\n }\n\n update(id: number, payload: UpdateSocietyPayload): Promise<ISociety> {\n return this.axios.patch(`/society/${id}`, payload);\n }\n\n archive(id: number): Promise<ISociety> {\n const payload: UpdateSocietyPayload = { society: { archive: true, archiveDate: new Date() } };\n return this.axios.patch(`/society/${id}`, payload);\n }\n\n // this endpoint is used to fetch from extern api for legalForm\n getDataSociety(params: GetDataSociety): Promise<LegalFormSiren[]> {\n return this.axios.$get('/society/dataSociety', { params });\n }\n synchronize(id: number, params: CreateSynchronization): Promise<string> {\n return this.axios.$post(`/society/${id}/synchronize`, params);\n }\n autoImportationTransactions(): Promise<void> {\n return this.axios.$post('/society/bankAccount/autoImportationTransactions');\n }\n importBalanceBankAccount(idSociety: number, idBankAccount: number, params: CreateBudgetBalanceBankAccount): Promise<number> {\n return this.axios.$post(`/society/${idSociety}/bankAccount/${idBankAccount}/importBalance`, params);\n }\n listUserSociety(idSociety: number, params: ListUserSociety):Promise<ReadSocietyUsers> {\n return this.axios.$get(`/society/${idSociety}/users`, { params });\n }\n deleteUser(idSociety: number, idUser: number): Promise<true> {\n return this.axios.$delete(`/society/${idSociety}/user/${idUser}`);\n }\n createUserToSocietyWithPermission(idSociety: number, data: CreateUserToSocietyWithPermission): Promise<IUser> {\n return this.axios.$post(`/society/${idSociety}/userToSocietyWithPermission`, data);\n }\n updateUserToSocietyWithPermission(idSociety: number, id: number, data: UpdateUserToSocietyWithPermission): Promise<IUser> {\n return this.axios.$put(`/society/${idSociety}/userToSocietyWithPermission/${id}`, data);\n }\n delete(id: number): Promise<number> {\n return this.axios.$delete(`/society/${id}`);\n }\n}\n"]}
@@ -0,0 +1,6 @@
1
+ export declare enum ProductType {
2
+ PRODUCT = 1,
3
+ SERVICE = 2,
4
+ GOODS = 3
5
+ }
6
+ //# sourceMappingURL=ProductType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductType.d.ts","sourceRoot":"","sources":["../../../ts/types/Enum/ProductType.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,OAAO,IAAI;IACX,OAAO,IAAI;IACX,KAAK,IAAI;CACV"}
@@ -0,0 +1,7 @@
1
+ export var ProductType;
2
+ (function (ProductType) {
3
+ ProductType[ProductType["PRODUCT"] = 1] = "PRODUCT";
4
+ ProductType[ProductType["SERVICE"] = 2] = "SERVICE";
5
+ ProductType[ProductType["GOODS"] = 3] = "GOODS";
6
+ })(ProductType || (ProductType = {}));
7
+ //# sourceMappingURL=ProductType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductType.js","sourceRoot":"","sources":["../../../ts/types/Enum/ProductType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,mDAAW,CAAA;IACX,mDAAW,CAAA;IACX,+CAAS,CAAA;AACX,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB","sourcesContent":["export enum ProductType {\n PRODUCT = 1,\n SERVICE = 2,\n GOODS = 3,\n}"]}
@@ -0,0 +1,5 @@
1
+ export declare enum RegistrationSource {
2
+ ONLINE_SUBSCRIPTION = 70,
3
+ PARTNERED_ACCOUNTANT = 90
4
+ }
5
+ //# sourceMappingURL=RegistrationSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RegistrationSource.d.ts","sourceRoot":"","sources":["../../../ts/types/Enum/RegistrationSource.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,mBAAmB,KAAK;IACxB,oBAAoB,KAAK;CAC1B"}
@@ -0,0 +1,6 @@
1
+ export var RegistrationSource;
2
+ (function (RegistrationSource) {
3
+ RegistrationSource[RegistrationSource["ONLINE_SUBSCRIPTION"] = 70] = "ONLINE_SUBSCRIPTION";
4
+ RegistrationSource[RegistrationSource["PARTNERED_ACCOUNTANT"] = 90] = "PARTNERED_ACCOUNTANT";
5
+ })(RegistrationSource || (RegistrationSource = {}));
6
+ //# sourceMappingURL=RegistrationSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RegistrationSource.js","sourceRoot":"","sources":["../../../ts/types/Enum/RegistrationSource.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,0FAAwB,CAAA;IACxB,4FAAyB,CAAA;AAC3B,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B","sourcesContent":["export enum RegistrationSource {\n ONLINE_SUBSCRIPTION = 70,\n PARTNERED_ACCOUNTANT = 90,\n}"]}
@@ -0,0 +1,9 @@
1
+ export interface IUnit {
2
+ [key: string]: {
3
+ id: number;
4
+ name: string;
5
+ shortName: string;
6
+ };
7
+ }
8
+ export declare const Unit: IUnit;
9
+ //# sourceMappingURL=Unit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Unit.d.ts","sourceRoot":"","sources":["../../../ts/types/Enum/Unit.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;KACnB,CAAA;CACF;AAED,eAAO,MAAM,IAAI,EAAE,KAgGlB,CAAC"}
@@ -0,0 +1,98 @@
1
+ export const Unit = {
2
+ ITEM: {
3
+ id: 1,
4
+ name: 'Article',
5
+ shortName: 'Art',
6
+ },
7
+ HOUR: {
8
+ id: 2,
9
+ name: 'Heure',
10
+ shortName: 'h',
11
+ },
12
+ DAY: {
13
+ id: 3,
14
+ name: 'Jour',
15
+ shortName: 'j',
16
+ },
17
+ KILOGRAM: {
18
+ id: 4,
19
+ name: 'Kilogramme',
20
+ shortName: 'kg',
21
+ },
22
+ LITER: {
23
+ id: 5,
24
+ name: 'Litre',
25
+ shortName: 'l',
26
+ },
27
+ KILOMETER: {
28
+ id: 6,
29
+ name: 'Kilomètres',
30
+ shortName: 'km',
31
+ },
32
+ HALF_DAY: {
33
+ id: 7,
34
+ name: 'Demi journée',
35
+ shortName: 'demi j',
36
+ },
37
+ YEAR: {
38
+ id: 8,
39
+ name: 'Année',
40
+ shortName: 'an',
41
+ },
42
+ WEEK: {
43
+ id: 9,
44
+ name: 'Semaine',
45
+ shortName: 'sem',
46
+ },
47
+ MONTH: {
48
+ id: 10,
49
+ name: 'Mois',
50
+ shortName: 'mois',
51
+ },
52
+ QUARTER: {
53
+ id: 11,
54
+ name: 'Trimestre',
55
+ shortName: 'trst,',
56
+ },
57
+ PIECE: {
58
+ id: 12,
59
+ name: 'Pièce',
60
+ shortName: 'p',
61
+ },
62
+ FIXED: {
63
+ id: 13,
64
+ name: 'Forfaitaire',
65
+ shortName: 'f',
66
+ },
67
+ SQUARE_METER: {
68
+ id: 14,
69
+ name: 'Mètre carré',
70
+ shortName: 'm2',
71
+ },
72
+ CUBIC_METER: {
73
+ id: 15,
74
+ name: 'Mètre cube',
75
+ shortName: 'm3',
76
+ },
77
+ METER: {
78
+ id: 16,
79
+ name: 'Mètre',
80
+ shortName: 'm',
81
+ },
82
+ SUBSCROPTION: {
83
+ id: 17,
84
+ name: 'Abonnement',
85
+ shortName: 'abo',
86
+ },
87
+ NIGHT: {
88
+ id: 18,
89
+ name: 'Nuitée',
90
+ shortName: 'nuit',
91
+ },
92
+ TON: {
93
+ id: 19,
94
+ name: 'Tonne',
95
+ shortName: 't',
96
+ },
97
+ };
98
+ //# sourceMappingURL=Unit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Unit.js","sourceRoot":"","sources":["../../../ts/types/Enum/Unit.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,IAAI,GAAU;IACzB,IAAI,EAAE;QACJ,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,KAAK;KACjB;IACD,IAAI,EAAE;QACJ,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,GAAG;KACf;IACD,GAAG,EAAE;QACH,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,GAAG;KACf;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,YAAY;QAClB,SAAS,EAAE,IAAI;KAChB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,GAAG;KACf;IACD,SAAS,EAAE;QACT,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,YAAY;QAClB,SAAS,EAAE,IAAI;KAChB;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,QAAQ;KACpB;IACD,IAAI,EAAE;QACJ,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,IAAI;KAChB;IACD,IAAI,EAAE;QACJ,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,KAAK;KACjB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,MAAM;KAClB;IACD,OAAO,EAAE;QACP,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,OAAO;KACnB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,GAAG;KACf;IACD,KAAK,EAAE;QACL,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,aAAa;QACnB,SAAS,EAAE,GAAG;KACf;IACD,YAAY,EAAE;QACZ,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,aAAa;QACnB,SAAS,EAAE,IAAI;KAChB;IACD,WAAW,EAAE;QACX,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,YAAY;QAClB,SAAS,EAAE,IAAI;KAChB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,GAAG;KACf;IACD,YAAY,EAAE;QACZ,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,YAAY;QAClB,SAAS,EAAE,KAAK;KACjB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,MAAM;KAClB;IACD,GAAG,EAAE;QACH,EAAE,EAAE,EAAE;QACN,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,GAAG;KACf;CACF,CAAC","sourcesContent":["export interface IUnit {\n [key: string]: {\n id: number,\n name: string,\n shortName: string,\n }\n}\n\nexport const Unit: IUnit = {\n ITEM: {\n id: 1,\n name: 'Article',\n shortName: 'Art',\n },\n HOUR: {\n id: 2,\n name: 'Heure',\n shortName: 'h',\n },\n DAY: {\n id: 3,\n name: 'Jour',\n shortName: 'j',\n },\n KILOGRAM: {\n id: 4,\n name: 'Kilogramme',\n shortName: 'kg',\n },\n LITER: {\n id: 5,\n name: 'Litre',\n shortName: 'l',\n },\n KILOMETER: {\n id: 6,\n name: 'Kilomètres',\n shortName: 'km',\n },\n HALF_DAY: {\n id: 7,\n name: 'Demi journée',\n shortName: 'demi j',\n },\n YEAR: {\n id: 8,\n name: 'Année',\n shortName: 'an',\n },\n WEEK: {\n id: 9,\n name: 'Semaine',\n shortName: 'sem',\n },\n MONTH: {\n id: 10,\n name: 'Mois',\n shortName: 'mois',\n },\n QUARTER: {\n id: 11,\n name: 'Trimestre',\n shortName: 'trst,',\n },\n PIECE: {\n id: 12,\n name: 'Pièce',\n shortName: 'p',\n },\n FIXED: {\n id: 13,\n name: 'Forfaitaire',\n shortName: 'f',\n },\n SQUARE_METER: {\n id: 14,\n name: 'Mètre carré',\n shortName: 'm2',\n },\n CUBIC_METER: {\n id: 15,\n name: 'Mètre cube',\n shortName: 'm3',\n },\n METER: {\n id: 16,\n name: 'Mètre',\n shortName: 'm',\n },\n SUBSCROPTION: {\n id: 17,\n name: 'Abonnement',\n shortName: 'abo',\n },\n NIGHT: {\n id: 18,\n name: 'Nuitée',\n shortName: 'nuit',\n },\n TON: {\n id: 19,\n name: 'Tonne',\n shortName: 't',\n },\n};"]}
@@ -8,4 +8,8 @@ export interface QueryPaginate {
8
8
  page: number;
9
9
  limit: number;
10
10
  }
11
+ export declare class OptionalQueryPaginate implements QueryPaginate {
12
+ page: number;
13
+ limit: number;
14
+ }
11
15
  //# sourceMappingURL=BasePaginate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BasePaginate.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/api/BasePaginate.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,CAAC,EAAE,CAAC;CACX;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf"}
1
+ {"version":3,"file":"BasePaginate.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/api/BasePaginate.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,CAAC,EAAE,CAAC;CACX;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,qBAAsB,YAAW,aAAa;IAKzD,IAAI,EAAE,MAAM,CAAC;IAMb,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1,2 +1,28 @@
1
- export {};
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { IsInt, IsOptional, Min } from 'class-validator';
11
+ import { ApiPropertyOptional } from '../../..';
12
+ export class OptionalQueryPaginate {
13
+ }
14
+ __decorate([
15
+ ApiPropertyOptional(),
16
+ IsInt(),
17
+ Min(1),
18
+ IsOptional(),
19
+ __metadata("design:type", Number)
20
+ ], OptionalQueryPaginate.prototype, "page", void 0);
21
+ __decorate([
22
+ ApiPropertyOptional(),
23
+ IsInt(),
24
+ Min(1),
25
+ IsOptional(),
26
+ __metadata("design:type", Number)
27
+ ], OptionalQueryPaginate.prototype, "limit", void 0);
2
28
  //# sourceMappingURL=BasePaginate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BasePaginate.js","sourceRoot":"","sources":["../../../../ts/types/Interface/api/BasePaginate.ts"],"names":[],"mappings":"","sourcesContent":["export interface BasePaginate<T> {\n maxPages: number;\n currentPage: number;\n totalItems: number;\n data: T[];\n}\n\nexport interface QueryPaginate {\n page: number,\n limit: number,\n}\n"]}
1
+ {"version":3,"file":"BasePaginate.js","sourceRoot":"","sources":["../../../../ts/types/Interface/api/BasePaginate.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAc/C,MAAM,OAAO,qBAAqB;CAYjC;AAPC;IAJC,mBAAmB,EAAE;IACrB,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;IACN,UAAU,EAAE;;mDACA;AAMb;IAJC,mBAAmB,EAAE;IACrB,KAAK,EAAE;IACP,GAAG,CAAC,CAAC,CAAC;IACN,UAAU,EAAE;;oDACC","sourcesContent":["import { IsInt, IsOptional, Min } from 'class-validator';\nimport { ApiPropertyOptional } from '../../..';\n\nexport interface BasePaginate<T> {\n maxPages: number;\n currentPage: number;\n totalItems: number;\n data: T[];\n}\n\nexport interface QueryPaginate {\n page: number,\n limit: number,\n}\n\nexport class OptionalQueryPaginate implements QueryPaginate {\n @ApiPropertyOptional()\n @IsInt()\n @Min(1)\n @IsOptional()\n page: number;\n\n @ApiPropertyOptional()\n @IsInt()\n @Min(1)\n @IsOptional()\n limit: number;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ export declare class QueryFecFile {
2
+ idSociety?: number;
3
+ }
4
+ //# sourceMappingURL=QueryFecFile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryFecFile.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/fecFile/QueryFecFile.ts"],"names":[],"mappings":"AAEA,qBAAa,YAAY;IAEvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,17 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { ApiPropertyOptional } from '../../../../utils';
11
+ export class QueryFecFile {
12
+ }
13
+ __decorate([
14
+ ApiPropertyOptional(),
15
+ __metadata("design:type", Number)
16
+ ], QueryFecFile.prototype, "idSociety", void 0);
17
+ //# sourceMappingURL=QueryFecFile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryFecFile.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/fecFile/QueryFecFile.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,OAAO,YAAY;CAGxB;AADC;IADC,mBAAmB,EAAE;;+CACH","sourcesContent":["import { ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryFecFile {\n @ApiPropertyOptional()\n idSociety?: number;\n}"]}
@@ -0,0 +1,26 @@
1
+ import { VatRegime, FiscalRegime, ComptaType, Country, Activity } from '../../../..';
2
+ import { TaxSystem } from '../../../Enum/TaxSystem';
3
+ import { ProfitsType } from '../../../Enum/ProfitsType';
4
+ export declare class CreatePartneredAccountantSociety {
5
+ firstname: string;
6
+ lastname: string;
7
+ email: string;
8
+ phoneNumber: string;
9
+ name: string;
10
+ idLegalForm: number;
11
+ idSector: number;
12
+ idVatRegime: VatRegime;
13
+ idFiscalRegime: FiscalRegime;
14
+ idActivity: Activity;
15
+ idTaxSystem: TaxSystem;
16
+ idProfitsType: ProfitsType;
17
+ startDate: string;
18
+ endDate: string;
19
+ idComptaType: ComptaType;
20
+ siret?: string | null;
21
+ address?: string | null;
22
+ city?: string | null;
23
+ zipCode?: string | null;
24
+ idCountry?: Country | null;
25
+ }
26
+ //# sourceMappingURL=CreatePartneredAccountantSociety.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreatePartneredAccountantSociety.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.ts"],"names":[],"mappings":"AAAA,OAAO,EACQ,SAAS,EAAE,YAAY,EAAE,UAAU,EAAuB,OAAO,EAAE,QAAQ,EACzF,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,qBAAa,gCAAgC;IAE3C,SAAS,EAAE,MAAM,CAAC;IAGlB,QAAQ,EAAE,MAAM,CAAC;IAGjB,KAAK,EAAE,MAAM,CAAC;IAGd,WAAW,EAAE,MAAM,CAAC;IAGpB,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,EAAE,MAAM,CAAC;IAGpB,QAAQ,EAAE,MAAM,CAAC;IAGjB,WAAW,EAAE,SAAS,CAAC;IAGvB,cAAc,EAAE,YAAY,CAAC;IAG7B,UAAU,EAAE,QAAQ,CAAC;IAGrB,WAAW,EAAE,SAAS,CAAC;IAGvB,aAAa,EAAE,WAAW,CAAC;IAG3B,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,EAAE,MAAM,CAAC;IAGhB,YAAY,EAAE,UAAU,CAAC;IAGzB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGrB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5B"}
@@ -0,0 +1,96 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { ApiProperty, VatRegime, FiscalRegime, ComptaType, ApiPropertyOptional, Country, Activity, } from '../../../..';
11
+ import { AccountsSectorsEnum } from '../../../Enum/AccountsSectors';
12
+ import { TaxSystem } from '../../../Enum/TaxSystem';
13
+ import { ProfitsType } from '../../../Enum/ProfitsType';
14
+ export class CreatePartneredAccountantSociety {
15
+ }
16
+ __decorate([
17
+ ApiProperty(),
18
+ __metadata("design:type", String)
19
+ ], CreatePartneredAccountantSociety.prototype, "firstname", void 0);
20
+ __decorate([
21
+ ApiProperty(),
22
+ __metadata("design:type", String)
23
+ ], CreatePartneredAccountantSociety.prototype, "lastname", void 0);
24
+ __decorate([
25
+ ApiProperty(),
26
+ __metadata("design:type", String)
27
+ ], CreatePartneredAccountantSociety.prototype, "email", void 0);
28
+ __decorate([
29
+ ApiProperty(),
30
+ __metadata("design:type", String)
31
+ ], CreatePartneredAccountantSociety.prototype, "phoneNumber", void 0);
32
+ __decorate([
33
+ ApiProperty({ description: 'Nom de la société' }),
34
+ __metadata("design:type", String)
35
+ ], CreatePartneredAccountantSociety.prototype, "name", void 0);
36
+ __decorate([
37
+ ApiProperty(),
38
+ __metadata("design:type", Number)
39
+ ], CreatePartneredAccountantSociety.prototype, "idLegalForm", void 0);
40
+ __decorate([
41
+ ApiProperty({ enum: AccountsSectorsEnum, default: AccountsSectorsEnum.DEFAULT.id }),
42
+ __metadata("design:type", Number)
43
+ ], CreatePartneredAccountantSociety.prototype, "idSector", void 0);
44
+ __decorate([
45
+ ApiProperty({ enum: VatRegime }),
46
+ __metadata("design:type", Number)
47
+ ], CreatePartneredAccountantSociety.prototype, "idVatRegime", void 0);
48
+ __decorate([
49
+ ApiProperty({ enum: FiscalRegime }),
50
+ __metadata("design:type", Number)
51
+ ], CreatePartneredAccountantSociety.prototype, "idFiscalRegime", void 0);
52
+ __decorate([
53
+ ApiProperty({ enum: Activity }),
54
+ __metadata("design:type", Number)
55
+ ], CreatePartneredAccountantSociety.prototype, "idActivity", void 0);
56
+ __decorate([
57
+ ApiProperty({ enum: TaxSystem }),
58
+ __metadata("design:type", Number)
59
+ ], CreatePartneredAccountantSociety.prototype, "idTaxSystem", void 0);
60
+ __decorate([
61
+ ApiProperty({ enum: ProfitsType }),
62
+ __metadata("design:type", Number)
63
+ ], CreatePartneredAccountantSociety.prototype, "idProfitsType", void 0);
64
+ __decorate([
65
+ ApiProperty({ description: 'Date de début de l\'exercice (format YYYY-MM-DD)' }),
66
+ __metadata("design:type", String)
67
+ ], CreatePartneredAccountantSociety.prototype, "startDate", void 0);
68
+ __decorate([
69
+ ApiProperty({ description: 'Date de fin de l\'exercice (format YYYY-MM-DD)' }),
70
+ __metadata("design:type", String)
71
+ ], CreatePartneredAccountantSociety.prototype, "endDate", void 0);
72
+ __decorate([
73
+ ApiProperty({ enum: ComptaType }),
74
+ __metadata("design:type", Number)
75
+ ], CreatePartneredAccountantSociety.prototype, "idComptaType", void 0);
76
+ __decorate([
77
+ ApiPropertyOptional(),
78
+ __metadata("design:type", Object)
79
+ ], CreatePartneredAccountantSociety.prototype, "siret", void 0);
80
+ __decorate([
81
+ ApiPropertyOptional(),
82
+ __metadata("design:type", Object)
83
+ ], CreatePartneredAccountantSociety.prototype, "address", void 0);
84
+ __decorate([
85
+ ApiPropertyOptional(),
86
+ __metadata("design:type", Object)
87
+ ], CreatePartneredAccountantSociety.prototype, "city", void 0);
88
+ __decorate([
89
+ ApiPropertyOptional(),
90
+ __metadata("design:type", Object)
91
+ ], CreatePartneredAccountantSociety.prototype, "zipCode", void 0);
92
+ __decorate([
93
+ ApiPropertyOptional({ enum: Country }),
94
+ __metadata("design:type", Object)
95
+ ], CreatePartneredAccountantSociety.prototype, "idCountry", void 0);
96
+ //# sourceMappingURL=CreatePartneredAccountantSociety.js.map