@cbm-common/cbm-types 0.0.14 → 0.0.16

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 (225) hide show
  1. package/lib/app.config.d.ts +2 -2
  2. package/lib/app.d.ts +3 -3
  3. package/lib/app.routes.d.ts +2 -2
  4. package/lib/components/accounting-seat/accounting-seat.d.ts +32 -32
  5. package/lib/components/accounting-seat/directives/drop-down-menu.directive.d.ts +13 -13
  6. package/lib/components/accounting-seat/directives/drop-down.directive.d.ts +10 -10
  7. package/lib/components/accounting-seat/types.d.ts +1 -1
  8. package/lib/components/add-client/add-client.d.ts +2 -0
  9. package/lib/components/add-client/animations.d.ts +1 -0
  10. package/lib/components/add-client/constants.d.ts +9 -0
  11. package/lib/components/add-client/types.d.ts +7 -0
  12. package/lib/components/advanced-item-search-modal/advanced-item-search-modal.d.ts +25 -25
  13. package/lib/components/advanced-item-search-modal/alternative-item-list/alternative-item-list.d.ts +25 -25
  14. package/lib/components/advanced-item-search-modal/animations.d.ts +2 -2
  15. package/lib/components/advanced-item-search-modal/constants.d.ts +1 -1
  16. package/lib/components/advanced-item-search-modal/item-list/item-list.d.ts +85 -85
  17. package/lib/components/advanced-item-search-modal/types.d.ts +7 -7
  18. package/lib/components/attachments/animations.d.ts +1 -1
  19. package/lib/components/attachments/attachments.d.ts +50 -50
  20. package/lib/components/attachments/components/button-item/button-item.d.ts +5 -5
  21. package/lib/components/attachments/components/buttons/buttons.d.ts +8 -8
  22. package/lib/components/attachments/components/grid-view/grid-view.d.ts +32 -32
  23. package/lib/components/attachments/components/icons/delete-icon/delete-icon.d.ts +2 -2
  24. package/lib/components/attachments/components/icons/download-icon/download-icon.d.ts +2 -2
  25. package/lib/components/attachments/components/list-view/list-view.d.ts +41 -41
  26. package/lib/components/attachments/types.d.ts +7 -7
  27. package/lib/components/documents-reference/animations.d.ts +1 -1
  28. package/lib/components/documents-reference/components/add/add.d.ts +112 -112
  29. package/lib/components/documents-reference/components/delete/delete.d.ts +28 -28
  30. package/lib/components/documents-reference/components/reference-document-by-tab/reference-document-by-tab.d.ts +39 -39
  31. package/lib/components/documents-reference/components/reference-document-to-tab/reference-document-to-tab.d.ts +42 -42
  32. package/lib/components/documents-reference/documents-reference.d.ts +21 -21
  33. package/lib/components/documents-reference/types.d.ts +56 -56
  34. package/lib/components/dropzone/dropzone.d.ts +17 -17
  35. package/lib/components/empty/empty.d.ts +17 -17
  36. package/lib/components/json-modal/json-modal.d.ts +14 -14
  37. package/lib/components/modal-confirm/modal-confirm.d.ts +23 -23
  38. package/lib/components/modal-confirm/ng-content.d.ts +8 -8
  39. package/lib/components/modal-confirm/types.d.ts +6 -6
  40. package/lib/components/pagination-nav/pagination-nav.d.ts +27 -27
  41. package/lib/components/pagination-nav/pagination-nav.model.d.ts +8 -8
  42. package/lib/components/record-detail-metadata/components/options/options.d.ts +13 -13
  43. package/lib/components/record-detail-metadata/directives/drop-down-menu.directive.d.ts +13 -13
  44. package/lib/components/record-detail-metadata/directives/drop-down.directive.d.ts +9 -9
  45. package/lib/components/record-detail-metadata/record-detail-metadata.d.ts +21 -21
  46. package/lib/components/record-detail-metadata/types.d.ts +48 -48
  47. package/lib/components/tree-select/tree-select.d.ts +60 -60
  48. package/lib/components/tree-select/types.d.ts +8 -8
  49. package/lib/components/user-history/components/email-history/email-history.component.d.ts +66 -66
  50. package/lib/components/user-history/components/email-history/emails-modal/emails-modal.component.d.ts +13 -13
  51. package/lib/components/user-history/components/general-history/general-history.component.d.ts +58 -58
  52. package/lib/components/user-history/components/print-history/print-history.component.d.ts +58 -58
  53. package/lib/components/user-history/components/sri-history/sri-history.component.d.ts +63 -63
  54. package/lib/components/user-history/components/tab-item/tab-item.component.d.ts +7 -7
  55. package/lib/components/user-history/components/tabs/tabs.component.d.ts +7 -7
  56. package/lib/components/user-history/constants.d.ts +1 -1
  57. package/lib/components/user-history/directives/drop-down.directive.d.ts +9 -9
  58. package/lib/components/user-history/types.d.ts +14 -14
  59. package/lib/components/user-history/user-history.d.ts +30 -30
  60. package/lib/directives/character-counter/character-counter.directive.d.ts +21 -21
  61. package/lib/directives/horizontal-overflow/components/arrow-left/arrow-left.component.d.ts +5 -5
  62. package/lib/directives/horizontal-overflow/components/arrow-right/arrow-right.component.d.ts +5 -5
  63. package/lib/directives/horizontal-overflow/horizontal-overflow-arrows.directive.d.ts +23 -23
  64. package/lib/directives/horizontal-overflow/horizontal-overflow-shadow.directive.d.ts +8 -8
  65. package/lib/directives/number-input.directive.d.ts +23 -23
  66. package/lib/directives/resize-container/resize-container.directive.d.ts +20 -20
  67. package/lib/directives/resize-container/resize-container.model.d.ts +6 -6
  68. package/lib/directives/text-input/text-input.directive.d.ts +14 -14
  69. package/lib/directives/text-input/types.d.ts +1 -1
  70. package/lib/directives/tooltip/tooltip/tooltip.d.ts +9 -9
  71. package/lib/directives/tooltip/tooltip/types.d.ts +2 -2
  72. package/lib/directives/tooltip/tooltip.directive.d.ts +26 -26
  73. package/lib/domain/models/alternative-item.domain.model.d.ts +198 -198
  74. package/lib/domain/models/bank-movements.domain.model.d.ts +60 -60
  75. package/lib/domain/models/bank.domain.model.d.ts +92 -92
  76. package/lib/domain/models/card-settlement.domain.model.d.ts +260 -260
  77. package/lib/domain/models/cash-liquidation.domain.model.d.ts +319 -319
  78. package/lib/domain/models/client-branch.domain.model.d.ts +35 -35
  79. package/lib/domain/models/client-category.domain.model.d.ts +69 -69
  80. package/lib/domain/models/client-group.domain.model.d.ts +102 -102
  81. package/lib/domain/models/client.domain.model.d.ts +375 -375
  82. package/lib/domain/models/company.domain.model.d.ts +354 -354
  83. package/lib/domain/models/contact.domain.model.d.ts +28 -28
  84. package/lib/domain/models/cost-center.domain.model.d.ts +111 -111
  85. package/lib/domain/models/deadline.domian.model.d.ts +76 -76
  86. package/lib/domain/models/document-reference.domain.model.d.ts +204 -204
  87. package/lib/domain/models/document-type.model.d.ts +59 -0
  88. package/lib/domain/models/driver.domian.model.d.ts +94 -94
  89. package/lib/domain/models/email-settings.domain.model.d.ts +86 -86
  90. package/lib/domain/models/financial-bank.domain.model.d.ts +153 -153
  91. package/lib/domain/models/group.domain.model.d.ts +78 -78
  92. package/lib/domain/models/history.domain.model.d.ts +66 -66
  93. package/lib/domain/models/item.domain.model.d.ts +935 -935
  94. package/lib/domain/models/kit.domain.model.d.ts +508 -508
  95. package/lib/domain/models/outgoing-banking-transaction.domain.model.d.ts +125 -125
  96. package/lib/domain/models/price-list.domain.model.d.ts +54 -54
  97. package/lib/domain/models/provider.domain.model.d.ts +255 -0
  98. package/lib/domain/models/report-financials.domain.model.d.ts +2165 -2165
  99. package/lib/domain/models/seat.domain.model.d.ts +325 -325
  100. package/lib/domain/models/seller.domain.model.d.ts +135 -135
  101. package/lib/domain/models/service-outsourcing.domain.model.d.ts +273 -273
  102. package/lib/domain/models/service.domain.model.d.ts +314 -314
  103. package/lib/domain/models/sri-history.domain.model.d.ts +298 -298
  104. package/lib/domain/models/upload.domain.model.d.ts +117 -117
  105. package/lib/domain/models/user.domain.model.d.ts +260 -260
  106. package/lib/domain/models/warehouse.domain.model.d.ts +97 -97
  107. package/lib/domain/repositories/alternative-item.domain.repository.d.ts +17 -17
  108. package/lib/domain/repositories/bank-movements.domain.repository.d.ts +10 -10
  109. package/lib/domain/repositories/bank.domain.repository.d.ts +14 -14
  110. package/lib/domain/repositories/card-settlement.domain.repository.d.ts +12 -12
  111. package/lib/domain/repositories/cash-liquidation.domain.repository.d.ts +13 -13
  112. package/lib/domain/repositories/client-branch.domain.repository.d.ts +8 -8
  113. package/lib/domain/repositories/client-category.domain.repository.d.ts +14 -14
  114. package/lib/domain/repositories/client-group.domain.repository.d.ts +14 -14
  115. package/lib/domain/repositories/client.domain.repository.d.ts +18 -18
  116. package/lib/domain/repositories/company.domain.repository.d.ts +16 -16
  117. package/lib/domain/repositories/contact.domain.repository.d.ts +8 -8
  118. package/lib/domain/repositories/cost-center.domain.repository.d.ts +15 -15
  119. package/lib/domain/repositories/deadline.domain.repository.d.ts +12 -12
  120. package/lib/domain/repositories/document-reference.domain.repository.d.ts +15 -15
  121. package/lib/domain/repositories/document-type.domain.repository.d.ts +12 -0
  122. package/lib/domain/repositories/driver.domain.repository.d.ts +14 -14
  123. package/lib/domain/repositories/email-settings.domain.repository.d.ts +13 -13
  124. package/lib/domain/repositories/financial-bank.domain.repository.d.ts +15 -15
  125. package/lib/domain/repositories/group.domain.repository.d.ts +9 -9
  126. package/lib/domain/repositories/history.domain.repository.d.ts +10 -10
  127. package/lib/domain/repositories/item.domain.repository.d.ts +20 -20
  128. package/lib/domain/repositories/kit.domain.repository.d.ts +18 -18
  129. package/lib/domain/repositories/outgoing-banking-transaction.domain.repository.d.ts +12 -12
  130. package/lib/domain/repositories/price-list.domain.repository.d.ts +9 -9
  131. package/lib/domain/repositories/provider.domain.repository.d.ts +19 -0
  132. package/lib/domain/repositories/report-financials.domain.repository.d.ts +241 -241
  133. package/lib/domain/repositories/seat.domain.repository.d.ts +20 -20
  134. package/lib/domain/repositories/seller.domain.repository.d.ts +17 -17
  135. package/lib/domain/repositories/service-outsourcing.domain.repository.d.ts +20 -20
  136. package/lib/domain/repositories/service.domain.repository.d.ts +20 -20
  137. package/lib/domain/repositories/sri-history.domain.repository.d.ts +9 -9
  138. package/lib/domain/repositories/upload.domain.repository.d.ts +15 -15
  139. package/lib/domain/repositories/user.domain.repository.d.ts +21 -21
  140. package/lib/domain/repositories/warehouse.domain.repository.d.ts +14 -14
  141. package/lib/domain/services/auth/auth.model.d.ts +182 -182
  142. package/lib/domain/services/auth/auth.service.d.ts +18 -18
  143. package/lib/domain/services/notification/notification.model.d.ts +15 -15
  144. package/lib/domain/services/notification/notification.service.d.ts +4 -4
  145. package/lib/domain/services/web-socket/web-socket.model.d.ts +32 -32
  146. package/lib/domain/services/web-socket/web-socket.service.d.ts +18 -18
  147. package/lib/environments/environment.d.ts +29 -29
  148. package/lib/infrastructure/repositories/alternative-item.infrastructure.repository.d.ts +14 -14
  149. package/lib/infrastructure/repositories/bank-movements.infrastructure.repository.d.ts +6 -6
  150. package/lib/infrastructure/repositories/bank.infrastructure.repository.d.ts +10 -10
  151. package/lib/infrastructure/repositories/card-settlement.infrastructure.repository.d.ts +8 -8
  152. package/lib/infrastructure/repositories/cash-liquidation.infrastructure.repository.d.ts +9 -9
  153. package/lib/infrastructure/repositories/client-branch.infrastructure.repository.d.ts +5 -5
  154. package/lib/infrastructure/repositories/client-category.infrastructure.repository.d.ts +11 -11
  155. package/lib/infrastructure/repositories/client-group.infrastructure.repository.d.ts +11 -11
  156. package/lib/infrastructure/repositories/client.infrastructure.repository.d.ts +15 -15
  157. package/lib/infrastructure/repositories/company.infrastructure.repository.d.ts +13 -13
  158. package/lib/infrastructure/repositories/contac.infrastrucutre.repository.d.ts +5 -5
  159. package/lib/infrastructure/repositories/cost-center.infrastructure.repository.d.ts +11 -11
  160. package/lib/infrastructure/repositories/deadline.infrastructure.repository.d.ts +9 -9
  161. package/lib/infrastructure/repositories/document-reference.infrastructure.repository.d.ts +12 -12
  162. package/lib/infrastructure/repositories/document-type.infrastructure.repository.d.ts +9 -0
  163. package/lib/infrastructure/repositories/driver.infrastructure.repository.d.ts +11 -11
  164. package/lib/infrastructure/repositories/email-settings.infrastructure.repository.d.ts +10 -10
  165. package/lib/infrastructure/repositories/financial-bank.infrastructure.repository.d.ts +11 -11
  166. package/lib/infrastructure/repositories/group.infrastructure.repository.d.ts +6 -6
  167. package/lib/infrastructure/repositories/history.infrastructure.repository.d.ts +7 -7
  168. package/lib/infrastructure/repositories/item.infrastructure.repository.d.ts +17 -17
  169. package/lib/infrastructure/repositories/kit.infrastructure.repository.d.ts +15 -15
  170. package/lib/infrastructure/repositories/outgoing-banking-transaction.infrastructure.repository.d.ts +8 -8
  171. package/lib/infrastructure/repositories/price-list.infrastructure.repository.d.ts +6 -6
  172. package/lib/infrastructure/repositories/provider.infrastructure.repository.d.ts +16 -0
  173. package/lib/infrastructure/repositories/report-financials.infrastructure.repository.d.ts +238 -238
  174. package/lib/infrastructure/repositories/seat.infrastructure.repository.d.ts +17 -17
  175. package/lib/infrastructure/repositories/seller.infrastructure.repository.d.ts +14 -14
  176. package/lib/infrastructure/repositories/service-outsourcing.infrastructure.repository.d.ts +17 -17
  177. package/lib/infrastructure/repositories/service.infrastructure.repository.d.ts +17 -17
  178. package/lib/infrastructure/repositories/sri-history.infrastructure.repository.d.ts +5 -5
  179. package/lib/infrastructure/repositories/upload.infrastructure.repository.d.ts +12 -12
  180. package/lib/infrastructure/repositories/user.infrastructure.repository.d.ts +18 -18
  181. package/lib/infrastructure/repositories/warehouse.infrastructure.repository.d.ts +11 -11
  182. package/lib/infrastructure/services/alternative-item.infrastructure.service.d.ts +19 -19
  183. package/lib/infrastructure/services/bank-movements.infrastructure.service.d.ts +11 -11
  184. package/lib/infrastructure/services/bank.infrasctructure.service.d.ts +15 -15
  185. package/lib/infrastructure/services/card-settlement.infrastructure.service.d.ts +13 -13
  186. package/lib/infrastructure/services/cash-liquidation.infrastructure.service.d.ts +14 -14
  187. package/lib/infrastructure/services/client-branch.infrastructure.service.d.ts +10 -10
  188. package/lib/infrastructure/services/client-category.infrastructure.service.d.ts +16 -16
  189. package/lib/infrastructure/services/client-group.infrastructure.service.d.ts +16 -16
  190. package/lib/infrastructure/services/client.infrastructure.service.d.ts +20 -20
  191. package/lib/infrastructure/services/company.infrastructure.service.d.ts +17 -17
  192. package/lib/infrastructure/services/contact.infrastructure.service.d.ts +10 -10
  193. package/lib/infrastructure/services/cost-center.infrastructure.service.d.ts +16 -16
  194. package/lib/infrastructure/services/deadline.infrastructure.service.d.ts +14 -14
  195. package/lib/infrastructure/services/document-reference.infrastructure.service.d.ts +17 -17
  196. package/lib/infrastructure/services/document-type.infrastructure.service.d.ts +14 -0
  197. package/lib/infrastructure/services/driver.infrastructure.service.d.ts +16 -16
  198. package/lib/infrastructure/services/email-settings.infrastruture.service.d.ts +14 -14
  199. package/lib/infrastructure/services/financial-bank.infrastructure.service.d.ts +16 -16
  200. package/lib/infrastructure/services/group.infrastructure.service.d.ts +11 -11
  201. package/lib/infrastructure/services/history.infrastructure.service.d.ts +11 -11
  202. package/lib/infrastructure/services/item.infrastructure.service.d.ts +21 -21
  203. package/lib/infrastructure/services/kit.infrastructure.service.d.ts +19 -19
  204. package/lib/infrastructure/services/outgoing-banking-transaction.infrastructure.service.d.ts +13 -13
  205. package/lib/infrastructure/services/price-list.infrastructure.service.d.ts +11 -11
  206. package/lib/infrastructure/services/provider.infrastructure.service.d.ts +20 -0
  207. package/lib/infrastructure/services/report-financials.infrastructure.service.d.ts +246 -246
  208. package/lib/infrastructure/services/seat.infrastructure.service.d.ts +21 -21
  209. package/lib/infrastructure/services/seller.infrastructure.service.d.ts +19 -19
  210. package/lib/infrastructure/services/service-outsourcing.infrastructure.service.d.ts +21 -21
  211. package/lib/infrastructure/services/service.infrastructure.service.d.ts +21 -21
  212. package/lib/infrastructure/services/sri-history.infrastructure.service.d.ts +9 -9
  213. package/lib/infrastructure/services/upload.infrastructure.service.d.ts +16 -16
  214. package/lib/infrastructure/services/user.infrastructure.service.d.ts +22 -22
  215. package/lib/infrastructure/services/warehouse.infrastructure.service.d.ts +16 -16
  216. package/lib/pipes/error-translate-pipe/error-translate-pipe.d.ts +8 -8
  217. package/lib/remotes/components.remote.d.ts +3 -2
  218. package/lib/remotes/repositories/company.repository.d.ts +3 -3
  219. package/lib/remotes/repositories/user.repository.d.ts +3 -0
  220. package/lib/remotes/repositories.remote.d.ts +2 -1
  221. package/lib/remotes/services/auth.service.d.ts +3 -3
  222. package/lib/remotes/services/web-socket.service.d.ts +4 -4
  223. package/lib/remotes/services.remote.d.ts +3 -3
  224. package/lib/remotes/types.remote.d.ts +0 -0
  225. package/package.json +1 -1
@@ -1,260 +1,260 @@
1
- export declare namespace CbmUserModel {
2
- interface ListParams {
3
- page: number;
4
- size: number;
5
- enabled?: boolean;
6
- filter?: string;
7
- seller?: boolean;
8
- deleted?: boolean;
9
- }
10
- interface ListResponse {
11
- success: boolean;
12
- pageNum: number;
13
- pageSize: number;
14
- total: number;
15
- pages: number;
16
- items: ListResponse.Item[];
17
- }
18
- namespace ListResponse {
19
- interface Item {
20
- _id: string;
21
- document_type_id?: string;
22
- document_type_name?: string;
23
- document_type_code?: string;
24
- document: string;
25
- name: string;
26
- lastname: string;
27
- address: string;
28
- email: string;
29
- cellphone: string;
30
- super_admin: boolean;
31
- photo: string;
32
- access_app: boolean;
33
- multi_company: boolean;
34
- enabled: boolean;
35
- deleted?: boolean;
36
- deleted_at?: number;
37
- deleted_user?: string;
38
- created_at: number;
39
- full_name?: string;
40
- }
41
- }
42
- interface ListByCompanyParams {
43
- page: number;
44
- size: number;
45
- deleted?: boolean;
46
- enabled?: boolean;
47
- filter?: string;
48
- company_id?: string;
49
- verified?: boolean;
50
- multi_company?: boolean;
51
- access_app?: boolean;
52
- super_admin?: boolean;
53
- }
54
- interface ListByCompanyResponse {
55
- success: boolean;
56
- pageNum: number;
57
- pageSize: number;
58
- pages: number;
59
- total: number;
60
- items: ListByCompanyResponse.Item[];
61
- used_users?: number;
62
- count_users?: number;
63
- }
64
- namespace ListByCompanyResponse {
65
- interface Item {
66
- _id: string;
67
- user_id?: string;
68
- company_id?: string;
69
- created_at?: number;
70
- created_user?: string;
71
- enabled?: boolean;
72
- deleted?: boolean;
73
- deleted_at?: number;
74
- deleted_user?: string;
75
- user_inactive_at?: number;
76
- user_inactive_name?: string;
77
- user_active_at?: number;
78
- user_active_name?: string;
79
- user_active_id?: string;
80
- user: Item.User;
81
- }
82
- namespace Item {
83
- interface User {
84
- _id: string;
85
- document_type_id?: string;
86
- document_type_name?: string;
87
- document_type_code?: string;
88
- document: string;
89
- password: string;
90
- name: string;
91
- lastname: string;
92
- address: string;
93
- email: string;
94
- cellphone: string;
95
- super_admin: boolean;
96
- photo: string;
97
- access_app: boolean;
98
- multi_company: boolean;
99
- enabled: boolean;
100
- deleted?: boolean;
101
- deleted_at?: number;
102
- deleted_user?: string;
103
- created_at: number;
104
- created_user: string;
105
- verified: boolean;
106
- last_access_at?: Date;
107
- updated_at?: number;
108
- updated_user?: string;
109
- ip?: string[];
110
- disabled_reason?: string;
111
- user_inactive_at?: number;
112
- user_inactive_id?: string;
113
- user_inactive_name?: string;
114
- user_active_at?: number;
115
- user_active_id?: string;
116
- user_active_name?: string;
117
- username?: string;
118
- }
119
- }
120
- }
121
- interface GetOneResponse {
122
- success?: boolean;
123
- data?: GetOneResponse.Data;
124
- }
125
- namespace GetOneResponse {
126
- interface Data {
127
- _id: string;
128
- document_type_id?: string;
129
- document_type_name?: string;
130
- document_type_code?: string;
131
- document?: string;
132
- lastname?: string;
133
- name?: string;
134
- address?: string;
135
- email?: string;
136
- cellphone?: string;
137
- super_admin?: boolean;
138
- photo?: string;
139
- access_app?: boolean;
140
- multi_company?: boolean;
141
- enabled?: boolean;
142
- created_at?: number;
143
- created_user?: string;
144
- updated_at?: number;
145
- updated_user?: string;
146
- ip?: Data.IP[];
147
- deleted?: boolean;
148
- deleted_at?: number;
149
- deleted_user?: string;
150
- role?: Data.Role[];
151
- disabled_reason?: string;
152
- user_inactive_at?: number;
153
- user_inactive_id?: string;
154
- user_inactive_name?: string;
155
- verified?: boolean;
156
- last_access_at?: number;
157
- user_active_at?: number;
158
- user_active_id?: string;
159
- user_active_name?: string;
160
- phone_code?: string;
161
- }
162
- namespace Data {
163
- interface Role {
164
- _id: string;
165
- name?: string;
166
- description?: string;
167
- type?: string;
168
- enabled?: boolean;
169
- deleted?: boolean;
170
- created_at?: number;
171
- created_user?: string;
172
- updated_at?: number;
173
- disabled_reason?: string;
174
- company_id?: string;
175
- updated_user?: string;
176
- user_inactive_at?: number;
177
- user_inactive_id?: string;
178
- user_inactive_name?: string;
179
- user_active_at?: number;
180
- user_active_id?: string;
181
- user_active_name?: string;
182
- }
183
- interface IP {
184
- ip?: string;
185
- enabled?: boolean;
186
- }
187
- }
188
- }
189
- interface SaveBody {
190
- document_type_id?: string;
191
- document_type_name?: string;
192
- document_type_code?: string;
193
- document?: string;
194
- password?: string;
195
- lastname?: string;
196
- name?: string;
197
- address?: string;
198
- email?: string;
199
- cellphone?: string;
200
- super_admin?: boolean;
201
- photo?: string;
202
- access_app?: boolean;
203
- multi_company?: boolean;
204
- ip?: any[];
205
- rol_id?: string;
206
- company_branch?: string[];
207
- }
208
- interface UpdateBody {
209
- password?: string;
210
- photo?: string;
211
- document_type_id?: string;
212
- document_type_name?: string;
213
- document_type_code?: string;
214
- document?: string;
215
- lastname?: string;
216
- name?: string;
217
- address?: string;
218
- email?: string;
219
- cellphone?: string;
220
- super_admin?: boolean;
221
- ip?: string[];
222
- }
223
- interface UpdatePasswordBody {
224
- password: string;
225
- confirm_password: string;
226
- }
227
- interface UpdateEmailBody {
228
- email?: string;
229
- company_id?: string;
230
- }
231
- interface UpdateSuperAdminBody {
232
- super_admin?: boolean;
233
- }
234
- interface UpdateIp {
235
- ip: UpdateIp.IP[];
236
- }
237
- namespace UpdateIp {
238
- interface IP {
239
- ip?: string;
240
- enabled?: boolean;
241
- }
242
- }
243
- interface ValidatePasswordBody {
244
- password: string;
245
- }
246
- interface DownloadExcelParams {
247
- filter?: string;
248
- enabled?: boolean;
249
- }
250
- interface ChangeStatusBody {
251
- enabled: boolean;
252
- disabled_reason?: string;
253
- company_id?: string;
254
- }
255
- interface ConfirmResponse {
256
- success: boolean;
257
- message: string;
258
- data?: any;
259
- }
260
- }
1
+ export declare namespace CbmUserModel {
2
+ interface ListParams {
3
+ page: number;
4
+ size: number;
5
+ enabled?: boolean;
6
+ filter?: string;
7
+ seller?: boolean;
8
+ deleted?: boolean;
9
+ }
10
+ interface ListResponse {
11
+ success: boolean;
12
+ pageNum: number;
13
+ pageSize: number;
14
+ total: number;
15
+ pages: number;
16
+ items: ListResponse.Item[];
17
+ }
18
+ namespace ListResponse {
19
+ interface Item {
20
+ _id: string;
21
+ document_type_id?: string;
22
+ document_type_name?: string;
23
+ document_type_code?: string;
24
+ document: string;
25
+ name: string;
26
+ lastname: string;
27
+ address: string;
28
+ email: string;
29
+ cellphone: string;
30
+ super_admin: boolean;
31
+ photo: string;
32
+ access_app: boolean;
33
+ multi_company: boolean;
34
+ enabled: boolean;
35
+ deleted?: boolean;
36
+ deleted_at?: number;
37
+ deleted_user?: string;
38
+ created_at: number;
39
+ full_name?: string;
40
+ }
41
+ }
42
+ interface ListByCompanyParams {
43
+ page: number;
44
+ size: number;
45
+ deleted?: boolean;
46
+ enabled?: boolean;
47
+ filter?: string;
48
+ company_id?: string;
49
+ verified?: boolean;
50
+ multi_company?: boolean;
51
+ access_app?: boolean;
52
+ super_admin?: boolean;
53
+ }
54
+ interface ListByCompanyResponse {
55
+ success: boolean;
56
+ pageNum: number;
57
+ pageSize: number;
58
+ pages: number;
59
+ total: number;
60
+ items: ListByCompanyResponse.Item[];
61
+ used_users?: number;
62
+ count_users?: number;
63
+ }
64
+ namespace ListByCompanyResponse {
65
+ interface Item {
66
+ _id: string;
67
+ user_id?: string;
68
+ company_id?: string;
69
+ created_at?: number;
70
+ created_user?: string;
71
+ enabled?: boolean;
72
+ deleted?: boolean;
73
+ deleted_at?: number;
74
+ deleted_user?: string;
75
+ user_inactive_at?: number;
76
+ user_inactive_name?: string;
77
+ user_active_at?: number;
78
+ user_active_name?: string;
79
+ user_active_id?: string;
80
+ user: Item.User;
81
+ }
82
+ namespace Item {
83
+ interface User {
84
+ _id: string;
85
+ document_type_id?: string;
86
+ document_type_name?: string;
87
+ document_type_code?: string;
88
+ document: string;
89
+ password: string;
90
+ name: string;
91
+ lastname: string;
92
+ address: string;
93
+ email: string;
94
+ cellphone: string;
95
+ super_admin: boolean;
96
+ photo: string;
97
+ access_app: boolean;
98
+ multi_company: boolean;
99
+ enabled: boolean;
100
+ deleted?: boolean;
101
+ deleted_at?: number;
102
+ deleted_user?: string;
103
+ created_at: number;
104
+ created_user: string;
105
+ verified: boolean;
106
+ last_access_at?: Date;
107
+ updated_at?: number;
108
+ updated_user?: string;
109
+ ip?: string[];
110
+ disabled_reason?: string;
111
+ user_inactive_at?: number;
112
+ user_inactive_id?: string;
113
+ user_inactive_name?: string;
114
+ user_active_at?: number;
115
+ user_active_id?: string;
116
+ user_active_name?: string;
117
+ username?: string;
118
+ }
119
+ }
120
+ }
121
+ interface GetOneResponse {
122
+ success?: boolean;
123
+ data?: GetOneResponse.Data;
124
+ }
125
+ namespace GetOneResponse {
126
+ interface Data {
127
+ _id: string;
128
+ document_type_id?: string;
129
+ document_type_name?: string;
130
+ document_type_code?: string;
131
+ document?: string;
132
+ lastname?: string;
133
+ name?: string;
134
+ address?: string;
135
+ email?: string;
136
+ cellphone?: string;
137
+ super_admin?: boolean;
138
+ photo?: string;
139
+ access_app?: boolean;
140
+ multi_company?: boolean;
141
+ enabled?: boolean;
142
+ created_at?: number;
143
+ created_user?: string;
144
+ updated_at?: number;
145
+ updated_user?: string;
146
+ ip?: Data.IP[];
147
+ deleted?: boolean;
148
+ deleted_at?: number;
149
+ deleted_user?: string;
150
+ role?: Data.Role[];
151
+ disabled_reason?: string;
152
+ user_inactive_at?: number;
153
+ user_inactive_id?: string;
154
+ user_inactive_name?: string;
155
+ verified?: boolean;
156
+ last_access_at?: number;
157
+ user_active_at?: number;
158
+ user_active_id?: string;
159
+ user_active_name?: string;
160
+ phone_code?: string;
161
+ }
162
+ namespace Data {
163
+ interface Role {
164
+ _id: string;
165
+ name?: string;
166
+ description?: string;
167
+ type?: string;
168
+ enabled?: boolean;
169
+ deleted?: boolean;
170
+ created_at?: number;
171
+ created_user?: string;
172
+ updated_at?: number;
173
+ disabled_reason?: string;
174
+ company_id?: string;
175
+ updated_user?: string;
176
+ user_inactive_at?: number;
177
+ user_inactive_id?: string;
178
+ user_inactive_name?: string;
179
+ user_active_at?: number;
180
+ user_active_id?: string;
181
+ user_active_name?: string;
182
+ }
183
+ interface IP {
184
+ ip?: string;
185
+ enabled?: boolean;
186
+ }
187
+ }
188
+ }
189
+ interface SaveBody {
190
+ document_type_id?: string;
191
+ document_type_name?: string;
192
+ document_type_code?: string;
193
+ document?: string;
194
+ password?: string;
195
+ lastname?: string;
196
+ name?: string;
197
+ address?: string;
198
+ email?: string;
199
+ cellphone?: string;
200
+ super_admin?: boolean;
201
+ photo?: string;
202
+ access_app?: boolean;
203
+ multi_company?: boolean;
204
+ ip?: any[];
205
+ rol_id?: string;
206
+ company_branch?: string[];
207
+ }
208
+ interface UpdateBody {
209
+ password?: string;
210
+ photo?: string;
211
+ document_type_id?: string;
212
+ document_type_name?: string;
213
+ document_type_code?: string;
214
+ document?: string;
215
+ lastname?: string;
216
+ name?: string;
217
+ address?: string;
218
+ email?: string;
219
+ cellphone?: string;
220
+ super_admin?: boolean;
221
+ ip?: string[];
222
+ }
223
+ interface UpdatePasswordBody {
224
+ password: string;
225
+ confirm_password: string;
226
+ }
227
+ interface UpdateEmailBody {
228
+ email?: string;
229
+ company_id?: string;
230
+ }
231
+ interface UpdateSuperAdminBody {
232
+ super_admin?: boolean;
233
+ }
234
+ interface UpdateIp {
235
+ ip: UpdateIp.IP[];
236
+ }
237
+ namespace UpdateIp {
238
+ interface IP {
239
+ ip?: string;
240
+ enabled?: boolean;
241
+ }
242
+ }
243
+ interface ValidatePasswordBody {
244
+ password: string;
245
+ }
246
+ interface DownloadExcelParams {
247
+ filter?: string;
248
+ enabled?: boolean;
249
+ }
250
+ interface ChangeStatusBody {
251
+ enabled: boolean;
252
+ disabled_reason?: string;
253
+ company_id?: string;
254
+ }
255
+ interface ConfirmResponse {
256
+ success: boolean;
257
+ message: string;
258
+ data?: any;
259
+ }
260
+ }