@cbm-common/cbm-types 0.0.11 → 0.0.13

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 (222) hide show
  1. package/package.json +10 -10
  2. package/public-api.d.ts +25 -1
  3. package/src/lib/app.config.d.ts +2 -0
  4. package/src/lib/app.d.ts +3 -0
  5. package/src/lib/app.routes.d.ts +2 -0
  6. package/src/lib/components/accounting-seat/accounting-seat.d.ts +32 -0
  7. package/src/lib/components/accounting-seat/directives/drop-down-menu.directive.d.ts +13 -0
  8. package/src/lib/components/accounting-seat/directives/drop-down.directive.d.ts +10 -0
  9. package/src/lib/components/accounting-seat/types.d.ts +1 -0
  10. package/src/lib/components/add-client/add-client.d.ts +2 -0
  11. package/src/lib/components/add-client/animations.d.ts +1 -0
  12. package/src/lib/components/add-client/constants.d.ts +9 -0
  13. package/src/lib/components/add-client/types.d.ts +7 -0
  14. package/src/lib/components/advanced-item-search-modal/advanced-item-search-modal.d.ts +25 -0
  15. package/src/lib/components/advanced-item-search-modal/alternative-item-list/alternative-item-list.d.ts +25 -0
  16. package/src/lib/components/advanced-item-search-modal/animations.d.ts +2 -0
  17. package/src/lib/components/advanced-item-search-modal/constants.d.ts +1 -0
  18. package/src/lib/components/advanced-item-search-modal/item-list/item-list.d.ts +85 -0
  19. package/src/lib/components/advanced-item-search-modal/types.d.ts +7 -0
  20. package/src/lib/components/attachments/animations.d.ts +1 -0
  21. package/src/lib/components/attachments/attachments.d.ts +50 -0
  22. package/src/lib/components/attachments/components/button-item/button-item.d.ts +5 -0
  23. package/src/lib/components/attachments/components/buttons/buttons.d.ts +8 -0
  24. package/src/lib/components/attachments/components/grid-view/grid-view.d.ts +32 -0
  25. package/src/lib/components/attachments/components/icons/delete-icon/delete-icon.d.ts +2 -0
  26. package/src/lib/components/attachments/components/icons/download-icon/download-icon.d.ts +2 -0
  27. package/src/lib/components/attachments/components/list-view/list-view.d.ts +41 -0
  28. package/src/lib/components/attachments/types.d.ts +7 -0
  29. package/src/lib/components/documents-reference/animations.d.ts +1 -0
  30. package/src/lib/components/documents-reference/components/add/add.d.ts +112 -0
  31. package/src/lib/components/documents-reference/components/delete/delete.d.ts +28 -0
  32. package/src/lib/components/documents-reference/components/reference-document-by-tab/reference-document-by-tab.d.ts +39 -0
  33. package/src/lib/components/documents-reference/components/reference-document-to-tab/reference-document-to-tab.d.ts +42 -0
  34. package/src/lib/components/documents-reference/documents-reference.d.ts +21 -0
  35. package/src/lib/components/documents-reference/types.d.ts +56 -0
  36. package/src/lib/components/dropzone/dropzone.d.ts +17 -0
  37. package/src/lib/components/empty/empty.d.ts +17 -0
  38. package/src/lib/components/json-modal/json-modal.d.ts +14 -0
  39. package/src/lib/components/modal-confirm/modal-confirm.d.ts +23 -0
  40. package/src/lib/components/modal-confirm/ng-content.d.ts +8 -0
  41. package/src/lib/components/modal-confirm/types.d.ts +6 -0
  42. package/src/lib/components/pagination-nav/pagination-nav.d.ts +27 -0
  43. package/src/lib/components/pagination-nav/pagination-nav.model.d.ts +8 -0
  44. package/src/lib/components/record-detail-metadata/components/options/options.d.ts +13 -0
  45. package/src/lib/components/record-detail-metadata/directives/drop-down-menu.directive.d.ts +13 -0
  46. package/src/lib/components/record-detail-metadata/directives/drop-down.directive.d.ts +9 -0
  47. package/src/lib/components/record-detail-metadata/record-detail-metadata.d.ts +21 -0
  48. package/src/lib/components/record-detail-metadata/types.d.ts +48 -0
  49. package/src/lib/components/tree-select/tree-select.d.ts +60 -0
  50. package/src/lib/components/tree-select/types.d.ts +8 -0
  51. package/src/lib/components/user-history/components/email-history/email-history.component.d.ts +66 -0
  52. package/src/lib/components/user-history/components/email-history/emails-modal/emails-modal.component.d.ts +13 -0
  53. package/src/lib/components/user-history/components/general-history/general-history.component.d.ts +58 -0
  54. package/src/lib/components/user-history/components/print-history/print-history.component.d.ts +58 -0
  55. package/src/lib/components/user-history/components/sri-history/sri-history.component.d.ts +63 -0
  56. package/src/lib/components/user-history/components/tab-item/tab-item.component.d.ts +7 -0
  57. package/src/lib/components/user-history/components/tabs/tabs.component.d.ts +7 -0
  58. package/src/lib/components/user-history/constants.d.ts +1 -0
  59. package/src/lib/components/user-history/directives/drop-down.directive.d.ts +9 -0
  60. package/src/lib/components/user-history/types.d.ts +14 -0
  61. package/src/lib/components/user-history/user-history.d.ts +30 -0
  62. package/src/lib/directives/character-counter/character-counter.directive.d.ts +21 -0
  63. package/src/lib/directives/horizontal-overflow/components/arrow-left/arrow-left.component.d.ts +5 -0
  64. package/src/lib/directives/horizontal-overflow/components/arrow-right/arrow-right.component.d.ts +5 -0
  65. package/src/lib/directives/horizontal-overflow/horizontal-overflow-arrows.directive.d.ts +23 -0
  66. package/src/lib/directives/horizontal-overflow/horizontal-overflow-shadow.directive.d.ts +8 -0
  67. package/src/lib/directives/number-input.directive.d.ts +23 -0
  68. package/src/lib/directives/resize-container/resize-container.directive.d.ts +20 -0
  69. package/src/lib/directives/resize-container/resize-container.model.d.ts +6 -0
  70. package/src/lib/directives/text-input/text-input.directive.d.ts +14 -0
  71. package/src/lib/directives/text-input/types.d.ts +1 -0
  72. package/src/lib/directives/tooltip/tooltip/tooltip.d.ts +9 -0
  73. package/src/lib/directives/tooltip/tooltip/types.d.ts +2 -0
  74. package/src/lib/directives/tooltip/tooltip.directive.d.ts +26 -0
  75. package/src/lib/domain/models/alternative-item.domain.model.d.ts +198 -0
  76. package/src/lib/domain/models/bank-movements.domain.model.d.ts +60 -0
  77. package/src/lib/domain/models/bank.domain.model.d.ts +92 -0
  78. package/src/lib/domain/models/card-settlement.domain.model.d.ts +260 -0
  79. package/src/lib/domain/models/cash-liquidation.domain.model.d.ts +319 -0
  80. package/src/lib/domain/models/client-branch.domain.model.d.ts +35 -0
  81. package/src/lib/domain/models/client-category.domain.model.d.ts +69 -0
  82. package/src/lib/domain/models/client-group.domain.model.d.ts +102 -0
  83. package/src/lib/domain/models/client.domain.model.d.ts +375 -0
  84. package/src/lib/domain/models/company.domain.model.d.ts +354 -0
  85. package/src/lib/domain/models/contact.domain.model.d.ts +28 -0
  86. package/src/lib/domain/models/cost-center.domain.model.d.ts +111 -0
  87. package/src/lib/domain/models/deadline.domian.model.d.ts +76 -0
  88. package/src/lib/domain/models/document-reference.domain.model.d.ts +204 -0
  89. package/src/lib/domain/models/document-type.model.d.ts +0 -0
  90. package/src/lib/domain/models/driver.domian.model.d.ts +94 -0
  91. package/src/lib/domain/models/email-settings.domain.model.d.ts +86 -0
  92. package/src/lib/domain/models/financial-bank.domain.model.d.ts +153 -0
  93. package/src/lib/domain/models/group.domain.model.d.ts +78 -0
  94. package/src/lib/domain/models/history.domain.model.d.ts +66 -0
  95. package/src/lib/domain/models/item.domain.model.d.ts +935 -0
  96. package/src/lib/domain/models/kit.domain.model.d.ts +508 -0
  97. package/src/lib/domain/models/outgoing-banking-transaction.domain.model.d.ts +125 -0
  98. package/src/lib/domain/models/price-list.domain.model.d.ts +54 -0
  99. package/src/lib/domain/models/report-financials.domain.model.d.ts +2165 -0
  100. package/src/lib/domain/models/seat.domain.model.d.ts +325 -0
  101. package/src/lib/domain/models/seller.domain.model.d.ts +135 -0
  102. package/src/lib/domain/models/service-outsourcing.domain.model.d.ts +273 -0
  103. package/src/lib/domain/models/service.domain.model.d.ts +314 -0
  104. package/src/lib/domain/models/sri-history.domain.model.d.ts +298 -0
  105. package/src/lib/domain/models/upload.domain.model.d.ts +117 -0
  106. package/src/lib/domain/models/user.domain.model.d.ts +260 -0
  107. package/src/lib/domain/models/warehouse.domain.model.d.ts +97 -0
  108. package/src/lib/domain/repositories/alternative-item.domain.repository.d.ts +17 -0
  109. package/src/lib/domain/repositories/bank-movements.domain.repository.d.ts +10 -0
  110. package/src/lib/domain/repositories/bank.domain.repository.d.ts +14 -0
  111. package/src/lib/domain/repositories/card-settlement.domain.repository.d.ts +12 -0
  112. package/src/lib/domain/repositories/cash-liquidation.domain.repository.d.ts +13 -0
  113. package/src/lib/domain/repositories/client-branch.domain.repository.d.ts +8 -0
  114. package/src/lib/domain/repositories/client-category.domain.repository.d.ts +14 -0
  115. package/src/lib/domain/repositories/client-group.domain.repository.d.ts +14 -0
  116. package/src/lib/domain/repositories/client.domain.repository.d.ts +18 -0
  117. package/src/lib/domain/repositories/company.domain.repository.d.ts +16 -0
  118. package/src/lib/domain/repositories/contact.domain.repository.d.ts +8 -0
  119. package/src/lib/domain/repositories/cost-center.domain.repository.d.ts +15 -0
  120. package/src/lib/domain/repositories/deadline.domain.repository.d.ts +12 -0
  121. package/src/lib/domain/repositories/document-reference.domain.repository.d.ts +15 -0
  122. package/src/lib/domain/repositories/document-type.domain.repository.d.ts +2 -0
  123. package/src/lib/domain/repositories/driver.domain.repository.d.ts +14 -0
  124. package/src/lib/domain/repositories/email-settings.domain.repository.d.ts +13 -0
  125. package/src/lib/domain/repositories/financial-bank.domain.repository.d.ts +15 -0
  126. package/src/lib/domain/repositories/group.domain.repository.d.ts +9 -0
  127. package/src/lib/domain/repositories/history.domain.repository.d.ts +10 -0
  128. package/src/lib/domain/repositories/item.domain.repository.d.ts +20 -0
  129. package/src/lib/domain/repositories/kit.domain.repository.d.ts +18 -0
  130. package/src/lib/domain/repositories/outgoing-banking-transaction.domain.repository.d.ts +12 -0
  131. package/src/lib/domain/repositories/price-list.domain.repository.d.ts +9 -0
  132. package/src/lib/domain/repositories/report-financials.domain.repository.d.ts +241 -0
  133. package/src/lib/domain/repositories/seat.domain.repository.d.ts +20 -0
  134. package/src/lib/domain/repositories/seller.domain.repository.d.ts +17 -0
  135. package/src/lib/domain/repositories/service-outsourcing.domain.repository.d.ts +20 -0
  136. package/src/lib/domain/repositories/service.domain.repository.d.ts +20 -0
  137. package/src/lib/domain/repositories/sri-history.domain.repository.d.ts +9 -0
  138. package/src/lib/domain/repositories/upload.domain.repository.d.ts +15 -0
  139. package/src/lib/domain/repositories/user.domain.repository.d.ts +21 -0
  140. package/src/lib/domain/repositories/warehouse.domain.repository.d.ts +14 -0
  141. package/src/lib/domain/services/auth/auth.model.d.ts +182 -0
  142. package/src/lib/domain/services/auth/auth.service.d.ts +18 -0
  143. package/src/lib/domain/services/notification/notification.model.d.ts +15 -0
  144. package/src/lib/domain/services/notification/notification.service.d.ts +4 -0
  145. package/src/lib/domain/services/web-socket/web-socket.model.d.ts +32 -0
  146. package/src/lib/domain/services/web-socket/web-socket.service.d.ts +18 -0
  147. package/src/lib/environments/environment.d.ts +29 -0
  148. package/src/lib/infrastructure/repositories/alternative-item.infrastructure.repository.d.ts +14 -0
  149. package/src/lib/infrastructure/repositories/bank-movements.infrastructure.repository.d.ts +6 -0
  150. package/src/lib/infrastructure/repositories/bank.infrastructure.repository.d.ts +10 -0
  151. package/src/lib/infrastructure/repositories/card-settlement.infrastructure.repository.d.ts +8 -0
  152. package/src/lib/infrastructure/repositories/cash-liquidation.infrastructure.repository.d.ts +9 -0
  153. package/src/lib/infrastructure/repositories/client-branch.infrastructure.repository.d.ts +5 -0
  154. package/src/lib/infrastructure/repositories/client-category.infrastructure.repository.d.ts +11 -0
  155. package/src/lib/infrastructure/repositories/client-group.infrastructure.repository.d.ts +11 -0
  156. package/src/lib/infrastructure/repositories/client.infrastructure.repository.d.ts +15 -0
  157. package/src/lib/infrastructure/repositories/company.infrastructure.repository.d.ts +13 -0
  158. package/src/lib/infrastructure/repositories/contac.infrastrucutre.repository.d.ts +5 -0
  159. package/src/lib/infrastructure/repositories/cost-center.infrastructure.repository.d.ts +11 -0
  160. package/src/lib/infrastructure/repositories/deadline.infrastructure.repository.d.ts +9 -0
  161. package/src/lib/infrastructure/repositories/document-reference.infrastructure.repository.d.ts +12 -0
  162. package/src/lib/infrastructure/repositories/document-type.infrastructure.repository.d.ts +0 -0
  163. package/src/lib/infrastructure/repositories/driver.infrastructure.repository.d.ts +11 -0
  164. package/src/lib/infrastructure/repositories/email-settings.infrastructure.repository.d.ts +10 -0
  165. package/src/lib/infrastructure/repositories/financial-bank.infrastructure.repository.d.ts +11 -0
  166. package/src/lib/infrastructure/repositories/group.infrastructure.repository.d.ts +6 -0
  167. package/src/lib/infrastructure/repositories/history.infrastructure.repository.d.ts +7 -0
  168. package/src/lib/infrastructure/repositories/item.infrastructure.repository.d.ts +17 -0
  169. package/src/lib/infrastructure/repositories/kit.infrastructure.repository.d.ts +15 -0
  170. package/src/lib/infrastructure/repositories/outgoing-banking-transaction.infrastructure.repository.d.ts +8 -0
  171. package/src/lib/infrastructure/repositories/price-list.infrastructure.repository.d.ts +6 -0
  172. package/src/lib/infrastructure/repositories/report-financials.infrastructure.repository.d.ts +238 -0
  173. package/src/lib/infrastructure/repositories/seat.infrastructure.repository.d.ts +17 -0
  174. package/src/lib/infrastructure/repositories/seller.infrastructure.repository.d.ts +14 -0
  175. package/src/lib/infrastructure/repositories/service-outsourcing.infrastructure.repository.d.ts +17 -0
  176. package/src/lib/infrastructure/repositories/service.infrastructure.repository.d.ts +17 -0
  177. package/src/lib/infrastructure/repositories/sri-history.infrastructure.repository.d.ts +5 -0
  178. package/src/lib/infrastructure/repositories/upload.infrastructure.repository.d.ts +12 -0
  179. package/src/lib/infrastructure/repositories/user.infrastructure.repository.d.ts +18 -0
  180. package/src/lib/infrastructure/repositories/warehouse.infrastructure.repository.d.ts +11 -0
  181. package/src/lib/infrastructure/services/alternative-item.infrastructure.service.d.ts +19 -0
  182. package/src/lib/infrastructure/services/bank-movements.infrastructure.service.d.ts +11 -0
  183. package/src/lib/infrastructure/services/bank.infrasctructure.service.d.ts +15 -0
  184. package/src/lib/infrastructure/services/card-settlement.infrastructure.service.d.ts +13 -0
  185. package/src/lib/infrastructure/services/cash-liquidation.infrastructure.service.d.ts +14 -0
  186. package/src/lib/infrastructure/services/client-branch.infrastructure.service.d.ts +10 -0
  187. package/src/lib/infrastructure/services/client-category.infrastructure.service.d.ts +16 -0
  188. package/src/lib/infrastructure/services/client-group.infrastructure.service.d.ts +16 -0
  189. package/src/lib/infrastructure/services/client.infrastructure.service.d.ts +20 -0
  190. package/src/lib/infrastructure/services/company.infrastructure.service.d.ts +17 -0
  191. package/src/lib/infrastructure/services/contact.infrastructure.service.d.ts +10 -0
  192. package/src/lib/infrastructure/services/cost-center.infrastructure.service.d.ts +16 -0
  193. package/src/lib/infrastructure/services/deadline.infrastructure.service.d.ts +14 -0
  194. package/src/lib/infrastructure/services/document-reference.infrastructure.service.d.ts +17 -0
  195. package/src/lib/infrastructure/services/document-type.infrastructure.service.d.ts +2 -0
  196. package/src/lib/infrastructure/services/driver.infrastructure.service.d.ts +16 -0
  197. package/src/lib/infrastructure/services/email-settings.infrastruture.service.d.ts +14 -0
  198. package/src/lib/infrastructure/services/financial-bank.infrastructure.service.d.ts +16 -0
  199. package/src/lib/infrastructure/services/group.infrastructure.service.d.ts +11 -0
  200. package/src/lib/infrastructure/services/history.infrastructure.service.d.ts +11 -0
  201. package/src/lib/infrastructure/services/item.infrastructure.service.d.ts +21 -0
  202. package/src/lib/infrastructure/services/kit.infrastructure.service.d.ts +19 -0
  203. package/src/lib/infrastructure/services/outgoing-banking-transaction.infrastructure.service.d.ts +13 -0
  204. package/src/lib/infrastructure/services/price-list.infrastructure.service.d.ts +11 -0
  205. package/src/lib/infrastructure/services/report-financials.infrastructure.service.d.ts +246 -0
  206. package/src/lib/infrastructure/services/seat.infrastructure.service.d.ts +21 -0
  207. package/src/lib/infrastructure/services/seller.infrastructure.service.d.ts +19 -0
  208. package/src/lib/infrastructure/services/service-outsourcing.infrastructure.service.d.ts +21 -0
  209. package/src/lib/infrastructure/services/service.infrastructure.service.d.ts +21 -0
  210. package/src/lib/infrastructure/services/sri-history.infrastructure.service.d.ts +9 -0
  211. package/src/lib/infrastructure/services/upload.infrastructure.service.d.ts +16 -0
  212. package/src/lib/infrastructure/services/user.infrastructure.service.d.ts +22 -0
  213. package/src/lib/infrastructure/services/warehouse.infrastructure.service.d.ts +16 -0
  214. package/src/lib/pipes/error-translate-pipe/error-translate-pipe.d.ts +8 -0
  215. package/src/lib/remotes/components.remote.d.ts +3 -0
  216. package/src/lib/remotes/repositories/company.repository.d.ts +3 -0
  217. package/src/lib/remotes/repositories/user.repository.d.ts +3 -0
  218. package/src/lib/remotes/repositories.remote.d.ts +2 -0
  219. package/src/lib/remotes/services/auth.service.d.ts +3 -0
  220. package/src/lib/remotes/services/web-socket.service.d.ts +4 -0
  221. package/src/lib/remotes/services.remote.d.ts +3 -0
  222. package/src/lib/remotes/types.remote.d.ts +0 -0
@@ -0,0 +1,92 @@
1
+ export declare namespace CbmBankModel {
2
+ type TTypeBank = 'bank' | 'cooperative';
3
+ interface ListParams {
4
+ page: number;
5
+ size: number;
6
+ enabled?: boolean;
7
+ type?: TTypeBank;
8
+ name?: string;
9
+ }
10
+ interface ListResponse {
11
+ success: boolean;
12
+ pageNum: number;
13
+ pageSize: number;
14
+ pages: number;
15
+ total: number;
16
+ items: ListResponse.Item[];
17
+ }
18
+ namespace ListResponse {
19
+ interface Item {
20
+ _id: string;
21
+ country: string;
22
+ country_id: string;
23
+ code: string;
24
+ name: string;
25
+ cash?: string;
26
+ type?: TTypeBank;
27
+ enabled: boolean;
28
+ deleted: boolean;
29
+ created_at: number;
30
+ created_user: string;
31
+ deleted_at: number;
32
+ updated_at: number;
33
+ updated_user: string;
34
+ disabled_reason: string;
35
+ user_active_at: number;
36
+ user_active_id: string;
37
+ user_active_name: string;
38
+ user_inactive_at: number;
39
+ user_inactive_id: string;
40
+ user_inactive_name: string;
41
+ }
42
+ }
43
+ interface GetOneResponse {
44
+ success: boolean;
45
+ data: GetOneResponse.Data;
46
+ }
47
+ namespace GetOneResponse {
48
+ interface Data {
49
+ _id: string;
50
+ country_id: string;
51
+ code: string;
52
+ name: string;
53
+ cash?: string;
54
+ type?: TTypeBank;
55
+ enabled: boolean;
56
+ deleted?: boolean;
57
+ created_at: number;
58
+ created_user: string;
59
+ updated_at?: number;
60
+ updated_user?: string;
61
+ disabled_reason?: string;
62
+ user_active_at?: number;
63
+ user_active_id?: string;
64
+ user_active_name?: string;
65
+ user_inactive_at?: number;
66
+ user_inactive_id?: string;
67
+ user_inactive_name?: string;
68
+ deleted_at?: number;
69
+ }
70
+ }
71
+ interface SaveBody {
72
+ code: string;
73
+ name: string;
74
+ cash: string;
75
+ type: TTypeBank;
76
+ }
77
+ interface UpdateBody {
78
+ code?: string;
79
+ name?: string;
80
+ cash?: string;
81
+ type?: TTypeBank;
82
+ }
83
+ interface ChangeStatusBody {
84
+ enabled: boolean;
85
+ disabled_reason?: string;
86
+ }
87
+ interface ConfirmResponse {
88
+ success: boolean;
89
+ message: string;
90
+ data?: any;
91
+ }
92
+ }
@@ -0,0 +1,260 @@
1
+ export declare namespace CbmCardSettlementModel {
2
+ interface ListParams {
3
+ page: number;
4
+ size: number;
5
+ movement_number?: string;
6
+ reverse_status?: boolean;
7
+ document_number?: string;
8
+ date_end?: number;
9
+ date_begin?: number;
10
+ cost_center_id?: string;
11
+ }
12
+ interface ListResponse {
13
+ success: boolean;
14
+ pageNum: number;
15
+ pageSize: number;
16
+ pages: number;
17
+ total: number;
18
+ items: ListResponse.Item[];
19
+ }
20
+ namespace ListResponse {
21
+ interface Item {
22
+ _id: string;
23
+ company_id?: string;
24
+ company_branch_id?: string;
25
+ cost_center_id?: string;
26
+ cost_center_name?: string;
27
+ cost_center_code?: string;
28
+ commentary?: string;
29
+ date?: number;
30
+ document_nomenclature?: string;
31
+ document_number?: string;
32
+ retention?: boolean;
33
+ total_card?: number;
34
+ total_retention?: number;
35
+ total_bank_deposit?: number;
36
+ bank_fee?: number;
37
+ company_NIF?: string;
38
+ company_address?: string;
39
+ company_trade_name?: string;
40
+ company_business_name?: string;
41
+ company_branch_identification_number?: string;
42
+ company_branch_trade_name?: string;
43
+ company_branch_address?: string;
44
+ company_branch_email?: string;
45
+ company_branch_cellphone?: string;
46
+ company_branch_phone?: string;
47
+ company_branch_logo?: string;
48
+ enabled?: boolean;
49
+ created_user?: string;
50
+ deleted_at?: number;
51
+ reverse_status?: boolean;
52
+ created_at?: number;
53
+ reverse_at?: number;
54
+ reverse_date?: number;
55
+ reverse_reason?: string;
56
+ reverse_user?: string;
57
+ updated_at?: number;
58
+ updated_user?: string;
59
+ movement_number?: string;
60
+ }
61
+ }
62
+ interface SaveBody {
63
+ cost_center_id?: string;
64
+ account_id?: string;
65
+ cost_center_name?: string;
66
+ cost_center_code?: string;
67
+ commentary?: string;
68
+ date?: number;
69
+ retention?: boolean;
70
+ total_card?: number;
71
+ total_retention?: number;
72
+ total_bank_deposit?: number;
73
+ total_provider_credits?: number;
74
+ bank_fee?: number;
75
+ card_settlement_detail: SaveBody.Detail[];
76
+ card_settlement_retention?: SaveBody.Retention[];
77
+ card_settlement_bank_deposits: SaveBody.BankDeposit[];
78
+ card_settlement_provider_credit: SaveBody.ProviderCredit[];
79
+ }
80
+ namespace SaveBody {
81
+ interface Detail {
82
+ card_management_id: string | null;
83
+ module_name_origin: string | null;
84
+ batch_code?: string | null;
85
+ operation_number?: string | null;
86
+ date: number | null;
87
+ client_document_number?: string | null;
88
+ client_business_name: string | null;
89
+ payment_term_name?: string | null;
90
+ total: number | null;
91
+ card_movement_number: string | null;
92
+ card_document_nomenclature: string | null;
93
+ card_document_number: string | null;
94
+ bank_name?: string | null;
95
+ }
96
+ interface Retention {
97
+ retention_id: string | null;
98
+ document_date: number | null;
99
+ document_number: string | null;
100
+ previous_balance: number | null;
101
+ subsequent_balance: number | null;
102
+ liquidated_value: number | null;
103
+ }
104
+ interface BankDeposit {
105
+ financials_bank_id?: string;
106
+ financials_bank_name?: string;
107
+ document_date?: number;
108
+ document_number?: string;
109
+ operation_number?: string;
110
+ payment_value?: number;
111
+ }
112
+ interface ProviderCredit {
113
+ credit_document_nomenclature: string | null;
114
+ credit_document_number: string | null;
115
+ credit_management_detail_id: string | null;
116
+ credit_management_id: string | null;
117
+ installment: string | null;
118
+ paid: number | null;
119
+ previous_balance: number | null;
120
+ provider_address: string | null;
121
+ provider_business_name: string | null;
122
+ provider_cellphone: string | null;
123
+ provider_document_number: string | null;
124
+ provider_email: string | null;
125
+ provider_id: string | null;
126
+ provider_phone_code: string | null;
127
+ provider_trade_name: string | null;
128
+ purchase_receipt_date: number | null;
129
+ purchase_receipt_number: string | null;
130
+ subsequent_balance: number | null;
131
+ }
132
+ }
133
+ interface GetOneResponse {
134
+ success: boolean;
135
+ data: GetOneResponse.Data;
136
+ }
137
+ namespace GetOneResponse {
138
+ interface Data {
139
+ _id?: string;
140
+ company_id?: string;
141
+ company_branch_id?: string;
142
+ cost_center_id?: string;
143
+ cost_center_name?: string;
144
+ cost_center_code?: string;
145
+ commentary?: string;
146
+ date?: number;
147
+ document_nomenclature?: string;
148
+ document_number?: string;
149
+ retention?: boolean;
150
+ total_card?: number;
151
+ total_retention?: number;
152
+ total_bank_deposit?: number;
153
+ bank_fee?: number;
154
+ enabled?: boolean;
155
+ created_user?: string;
156
+ deleted_at?: number;
157
+ reverse_status?: boolean;
158
+ created_at?: number;
159
+ reverse_at?: number;
160
+ reverse_date?: number;
161
+ reverse_reason?: string;
162
+ reverse_user?: string;
163
+ updated_at?: number;
164
+ updated_user?: string;
165
+ movement_number?: string;
166
+ card_settlement_detail?: Data.Detail[];
167
+ card_settlement_retention?: Data.Retention[];
168
+ card_settlement_bank_deposits?: Data.BankDeposit[];
169
+ card_settlement_provider_credit?: Data.ProviderCredit[];
170
+ companyBranch?: Data.CompanyBranch;
171
+ }
172
+ namespace Data {
173
+ interface Detail {
174
+ _id?: string;
175
+ card_settlement_id?: string;
176
+ card_management_id?: string;
177
+ module_name_origin?: string;
178
+ operation_number?: string;
179
+ batch_code?: string;
180
+ date?: number;
181
+ client_document_number?: string;
182
+ client_business_name?: string;
183
+ total?: number;
184
+ created_user?: string;
185
+ created_at?: number;
186
+ bank_name?: string;
187
+ payment_term_name?: string;
188
+ card_movement_number?: string;
189
+ card_document_nomenclature?: string;
190
+ card_document_number?: string;
191
+ }
192
+ interface Retention {
193
+ _id?: string;
194
+ card_settlement_id?: string;
195
+ retention_id?: string;
196
+ document_date?: number;
197
+ document_number?: string;
198
+ document_sequence?: string;
199
+ client_business_name?: string;
200
+ client_document_number?: string;
201
+ previous_balance?: number;
202
+ subsequent_balance?: number;
203
+ liquidated_value?: number;
204
+ created_user?: string;
205
+ created_at?: number;
206
+ }
207
+ interface BankDeposit {
208
+ _id?: string;
209
+ card_settlement_id?: string;
210
+ financials_bank_id?: string;
211
+ financials_bank_name?: string;
212
+ financials_bank_code?: string;
213
+ document_date?: number;
214
+ operation_number?: string;
215
+ payment_value?: number;
216
+ created_user?: string;
217
+ created_at?: number;
218
+ }
219
+ interface ProviderCredit {
220
+ credit_document_nomenclature?: string;
221
+ credit_document_number?: string;
222
+ credit_management_detail_id?: string;
223
+ credit_management_id?: string;
224
+ installment?: string;
225
+ paid?: number;
226
+ previous_balance?: number;
227
+ provider_address?: string;
228
+ provider_business_name?: string;
229
+ provider_cellphone?: string;
230
+ provider_document_number?: string;
231
+ provider_email?: string;
232
+ provider_id?: string;
233
+ provider_phone_code?: string;
234
+ provider_trade_name?: string;
235
+ purchase_receipt_date?: number;
236
+ purchase_receipt_number?: string;
237
+ subsequent_balance?: number;
238
+ }
239
+ interface CompanyBranch {
240
+ _id?: string;
241
+ company_id?: string;
242
+ identification_number?: string;
243
+ trade_name?: string;
244
+ address?: string;
245
+ email?: string;
246
+ cellphone?: string;
247
+ phone?: string;
248
+ environment?: number;
249
+ enabled?: boolean;
250
+ created_at?: number;
251
+ logo?: string;
252
+ }
253
+ }
254
+ }
255
+ interface ConfirmResponse {
256
+ success: boolean;
257
+ message: string;
258
+ data?: any;
259
+ }
260
+ }
@@ -0,0 +1,319 @@
1
+ export declare namespace CbmCashLiquidationModel {
2
+ interface ListParams {
3
+ page: number;
4
+ size: number;
5
+ user_id?: string;
6
+ reverse_status?: boolean;
7
+ document_number?: string;
8
+ payment_term_id?: string;
9
+ date_end?: number;
10
+ date_begin?: number;
11
+ cost_center_id?: string;
12
+ client_id?: string;
13
+ }
14
+ interface ListResponse {
15
+ success: boolean;
16
+ pageNum: number;
17
+ pageSize: number;
18
+ pages: number;
19
+ total: number;
20
+ items: ListResponse.Item[];
21
+ }
22
+ namespace ListResponse {
23
+ interface Item {
24
+ _id: string;
25
+ company_id: string;
26
+ cost_center_id: string;
27
+ document_nomenclature: string;
28
+ document_number: string;
29
+ movement_number?: string;
30
+ date: number;
31
+ commentary?: string;
32
+ company_NIF: string;
33
+ company_address: string;
34
+ company_trade_name: string;
35
+ company_business_name: string;
36
+ cost_center_code: string;
37
+ cost_center_name: string;
38
+ created_at: number;
39
+ user_id: string;
40
+ cash_register: boolean;
41
+ created_user: string;
42
+ reverse_status: boolean;
43
+ cash_liquidation_detail: Item.Detail[];
44
+ cash_liquidation_payment_options: Item.Payment[];
45
+ total_liquidation: number;
46
+ total_payment: number;
47
+ reverse_at?: number;
48
+ reverse_reason?: string;
49
+ reverse_user?: string;
50
+ }
51
+ namespace Item {
52
+ interface Detail {
53
+ _id: string;
54
+ cash_liquidation_id: string;
55
+ client_id?: string;
56
+ client_document_number?: string;
57
+ client_trade_name?: string;
58
+ client_business_name?: string;
59
+ client_phone_code?: string;
60
+ client_address?: string;
61
+ client_cellphone?: string;
62
+ client_email?: string;
63
+ collection_origin_id: string;
64
+ collection_origin_name: string;
65
+ client_branch_id?: null;
66
+ client_branch_code?: null;
67
+ client_branch_name?: null;
68
+ client_branch_address?: null;
69
+ client_branch_email?: null;
70
+ client_branch_cellphone?: null;
71
+ client_branch_phone?: null;
72
+ client_branch_phone_code?: null;
73
+ client_province_id?: string;
74
+ client_canton_id?: string;
75
+ client_parish_id?: string;
76
+ client_province_code?: string;
77
+ client_province_name?: string;
78
+ client_canton_code?: string;
79
+ client_canton_name?: string;
80
+ client_parish_code?: string;
81
+ client_parish_name?: string;
82
+ document_number: string;
83
+ document_date: number;
84
+ previous_balance: number;
85
+ subsequent_balance: number;
86
+ liquidated_value: number;
87
+ created_at: number;
88
+ created_user: string;
89
+ }
90
+ interface Payment {
91
+ _id: string;
92
+ cash_liquidation_id: string;
93
+ payment_term_id: string;
94
+ financial_bank_id?: string;
95
+ financial_bank_account_number?: string;
96
+ card_type?: string;
97
+ batch_code?: string;
98
+ value: number;
99
+ financial_bank_name?: string;
100
+ operation_number?: null | string;
101
+ payment_term_code: string;
102
+ payment_term_name: string;
103
+ account_id?: string;
104
+ date?: number;
105
+ account_name?: string;
106
+ account_code?: string;
107
+ bank_cheque?: string;
108
+ number_cheque?: string;
109
+ }
110
+ }
111
+ }
112
+ interface SaveBody {
113
+ cost_center_id: string;
114
+ date: number;
115
+ date_deposit: number;
116
+ commentary?: string;
117
+ company_NIF: string;
118
+ company_address: string;
119
+ company_trade_name: string;
120
+ company_business_name: string;
121
+ cost_center_name: string;
122
+ cost_center_code: string;
123
+ cash_liquidation_detail: SaveBody.Detail[];
124
+ cash_liquidation_payment_options: SaveBody.Payment[];
125
+ }
126
+ namespace SaveBody {
127
+ interface Detail {
128
+ client_id: string;
129
+ client_document_number: string;
130
+ client_trade_name: string;
131
+ client_business_name: string;
132
+ client_phone_code?: string;
133
+ client_address: string;
134
+ client_cellphone?: string;
135
+ client_email: string;
136
+ collection_origin_id: string;
137
+ collection_origin_name: string;
138
+ client_branch_id?: string;
139
+ client_branch_code?: string;
140
+ client_branch_name?: string;
141
+ client_branch_address?: string;
142
+ client_branch_email?: string;
143
+ client_branch_cellphone?: string;
144
+ client_branch_phone?: string;
145
+ client_branch_phone_code?: string;
146
+ client_province_id?: string;
147
+ client_canton_id?: string;
148
+ client_parish_id?: string;
149
+ client_province_code?: string;
150
+ client_province_name?: string;
151
+ client_canton_code?: string;
152
+ client_canton_name?: string;
153
+ client_parish_code?: string;
154
+ client_parish_name?: string;
155
+ document_date: number;
156
+ document_number: string;
157
+ previous_balance: number;
158
+ subsequent_balance: number;
159
+ liquidated_value: number;
160
+ }
161
+ interface Payment {
162
+ payment_term_id: string;
163
+ financial_bank_id?: string;
164
+ financial_bank_account_number?: string;
165
+ account_id?: string;
166
+ card_type?: string;
167
+ batch_code?: string;
168
+ value: number;
169
+ financial_bank_name?: string;
170
+ account_name?: string;
171
+ account_code?: string;
172
+ payment_term_name: string;
173
+ payment_term_code: string;
174
+ operation_number?: string;
175
+ bank_cheque?: string;
176
+ number_cheque?: string;
177
+ }
178
+ }
179
+ interface GetOneResponse {
180
+ success: boolean;
181
+ data: GetOneResponse.Data;
182
+ }
183
+ namespace GetOneResponse {
184
+ interface Data {
185
+ _id: string;
186
+ company_id: string;
187
+ cost_center_id: string;
188
+ document_nomenclature: string;
189
+ document_number: string;
190
+ movement_number?: string;
191
+ date: number;
192
+ date_deposit?: number;
193
+ commentary?: string;
194
+ company_NIF: string;
195
+ company_address: string;
196
+ company_trade_name: string;
197
+ company_business_name: string;
198
+ cost_center_code: string;
199
+ cost_center_name: string;
200
+ created_at: number;
201
+ user_id: string;
202
+ cash_register: boolean;
203
+ created_user: string;
204
+ reverse_status: boolean;
205
+ reverse_user?: string;
206
+ reverse_at?: number;
207
+ reverse_reason?: string;
208
+ cash_liquidation_detail: Data.Detail[];
209
+ cash_liquidation_payment_options: Data.Payment[];
210
+ total_liquidation: number;
211
+ total_payment: number;
212
+ }
213
+ namespace Data {
214
+ interface Detail {
215
+ _id: string;
216
+ cash_liquidation_id: string;
217
+ client_id: string;
218
+ client_document_number: string;
219
+ client_trade_name: string;
220
+ client_business_name: string;
221
+ client_phone_code?: string;
222
+ client_address: string;
223
+ client_cellphone?: string;
224
+ client_email: string;
225
+ collection_origin_id: string;
226
+ collection_origin_name: string;
227
+ client_branch_id?: string;
228
+ client_branch_code?: string;
229
+ client_branch_name?: string;
230
+ client_branch_address?: string;
231
+ client_branch_email?: string;
232
+ client_branch_cellphone?: string;
233
+ client_branch_phone?: string;
234
+ client_branch_phone_code?: string;
235
+ client_province_id?: string;
236
+ client_canton_id?: string;
237
+ client_parish_id?: string;
238
+ client_province_code?: string;
239
+ client_province_name?: string;
240
+ client_canton_code?: string;
241
+ client_canton_name?: string;
242
+ client_parish_code?: string;
243
+ client_parish_name?: string;
244
+ document_number: string;
245
+ previous_balance: number;
246
+ subsequent_balance: number;
247
+ liquidated_value: number;
248
+ document_date: number;
249
+ created_at: number;
250
+ created_user: string;
251
+ }
252
+ interface Payment {
253
+ _id: string;
254
+ account_id?: string;
255
+ cash_liquidation_id: string;
256
+ payment_term_id: string;
257
+ financial_bank_id?: string;
258
+ financial_bank_account_number?: string;
259
+ card_type?: string;
260
+ batch_code?: string;
261
+ value: number;
262
+ account_name?: string;
263
+ account_code?: string;
264
+ financial_bank_name?: string;
265
+ operation_number?: string;
266
+ payment_term_code: string;
267
+ payment_term_name: string;
268
+ bank_cheque?: string;
269
+ number_cheque?: string;
270
+ }
271
+ }
272
+ }
273
+ interface ConfirmResponse {
274
+ success: boolean;
275
+ message: string;
276
+ data?: any;
277
+ }
278
+ interface DownloadExcelParams {
279
+ timezone: string;
280
+ locale: string;
281
+ user_id?: string;
282
+ payment_term_id?: string;
283
+ reverse_status?: boolean;
284
+ document_number?: string;
285
+ date_end?: number;
286
+ date_begin?: number;
287
+ type?: string;
288
+ cost_center_id?: string;
289
+ client_id?: string;
290
+ }
291
+ interface DownloadGeneralPdfParams {
292
+ timezone: string;
293
+ locale: string;
294
+ user_id?: string;
295
+ payment_term_id?: string;
296
+ reverse_status?: boolean;
297
+ document_number?: string;
298
+ date_end?: number;
299
+ date_begin?: number;
300
+ type?: string;
301
+ cost_center_id?: string;
302
+ client_id?: string;
303
+ }
304
+ interface DownloadIndividualPdfParams {
305
+ timezone: string;
306
+ locale: string;
307
+ id: string;
308
+ }
309
+ interface DownloadIndividualExcelParams {
310
+ timezone: string;
311
+ locale: string;
312
+ id: string;
313
+ }
314
+ interface SendEmailParams {
315
+ timezone: string;
316
+ locale: string;
317
+ emails?: string;
318
+ }
319
+ }
@@ -0,0 +1,35 @@
1
+ export declare namespace CbmClientBranchModel {
2
+ interface ListParams {
3
+ enabled?: boolean;
4
+ client_id: string;
5
+ filter?: string;
6
+ }
7
+ interface ListResponse {
8
+ success: boolean;
9
+ data: ListResponse.Data[];
10
+ }
11
+ namespace ListResponse {
12
+ interface Data {
13
+ _id: string;
14
+ client_id?: string;
15
+ province_id?: string;
16
+ canton_id?: string;
17
+ parish_id?: string;
18
+ seller_id?: string;
19
+ name?: string;
20
+ code?: string;
21
+ address?: string;
22
+ email?: string;
23
+ cellphone?: string;
24
+ phone?: string;
25
+ phone_code?: string;
26
+ enabled?: boolean;
27
+ deleted?: boolean;
28
+ created_user?: string;
29
+ created_at?: number;
30
+ disabled_reason?: string;
31
+ updated_at?: number;
32
+ updated_user?: string;
33
+ }
34
+ }
35
+ }