@nomalism-com/types 1.1.2 → 1.1.4

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 (238) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index.js +140 -172
  3. package/dist/main.d.ts +226 -0
  4. package/dist/modules/document/billOfLading/interfaces.d.ts +22 -0
  5. package/dist/modules/document/billOfLading/route.schema.d.ts +2 -0
  6. package/dist/modules/document/inventario/interface.d.ts +15 -0
  7. package/dist/modules/document/inventario/route.schema.d.ts +2 -0
  8. package/dist/modules/document/materialEntrance/interfaces.d.ts +134 -0
  9. package/dist/modules/document/materialEntrance/route.schema.d.ts +7 -0
  10. package/dist/modules/document/order/interfaces.d.ts +113 -0
  11. package/dist/modules/document/order/route.schema.d.ts +9 -0
  12. package/dist/modules/document/productionOrder/interfaces.d.ts +9 -0
  13. package/dist/modules/document/productionOrder/route.schema.d.ts +2 -0
  14. package/dist/modules/document/proforma/interfaces.d.ts +12 -0
  15. package/dist/modules/document/proforma/route.schema.d.ts +3 -0
  16. package/dist/modules/document/propostaFornecedor/interfaces.d.ts +13 -0
  17. package/dist/modules/document/propostaFornecedor/route.schema.d.ts +2 -0
  18. package/dist/modules/document/propostaSheets/interface.d.ts +74 -0
  19. package/dist/modules/document/propostaSheets/route.schema.d.ts +6 -0
  20. package/dist/modules/document/providerCreditNoteFromReturn/interfaces.d.ts +38 -0
  21. package/dist/modules/document/providerCreditNoteFromReturn/route.schema.d.ts +3 -0
  22. package/dist/modules/document/providerFinancialCreditNote/interfaces.d.ts +27 -0
  23. package/dist/modules/document/providerFinancialCreditNote/route.schema.d.ts +3 -0
  24. package/dist/modules/document/providerServiceInvoice/interfaces.d.ts +16 -0
  25. package/dist/modules/document/providerServiceInvoice/route.schema.d.ts +2 -0
  26. package/dist/modules/document/purchase/interfaces.d.ts +91 -0
  27. package/dist/modules/document/purchase/route.schema.d.ts +4 -0
  28. package/dist/modules/document/quebra/interfaces.d.ts +36 -0
  29. package/dist/modules/document/quebra/route.schema.d.ts +3 -0
  30. package/dist/modules/document/returnToProvider/interface.d.ts +40 -0
  31. package/dist/modules/document/returnToProvider/route.schema.d.ts +2 -0
  32. package/dist/modules/document/transformado/interfaces.d.ts +19 -0
  33. package/dist/modules/document/transformado/route.schema.d.ts +2 -0
  34. package/dist/modules/document/upfrontReturn/interfaces.d.ts +12 -0
  35. package/dist/modules/document/upfrontReturn/route.schema.d.ts +2 -0
  36. package/dist/modules/documentManagement/multimedia/interfaces.d.ts +16 -0
  37. package/dist/modules/documentManagement/multimedia/route.schema.d.ts +2 -0
  38. package/dist/modules/integration/emailLog/interfaces.d.ts +85 -0
  39. package/dist/modules/integration/emailLog/route.schema.d.ts +4 -0
  40. package/dist/modules/integration/emailTemplate/interfaces.d.ts +46 -0
  41. package/dist/modules/integration/emailTemplate/route.schema.d.ts +4 -0
  42. package/dist/modules/integration/emailTemplateAttachment/interfaces.d.ts +17 -0
  43. package/dist/modules/integration/emailTemplateAttachment/route.schema.d.ts +2 -0
  44. package/dist/modules/integration/emailVerification/interfaces.d.ts +23 -0
  45. package/dist/modules/integration/emailVerification/route.schema.d.ts +5 -0
  46. package/dist/modules/integration/googleFilePermission/interfaces.d.ts +26 -0
  47. package/dist/modules/integration/googleFilePermission/route.schema.d.ts +5 -0
  48. package/dist/modules/integration/googleSheets/interfaces.d.ts +54 -0
  49. package/dist/modules/integration/googleSheets/route.schema.d.ts +4 -0
  50. package/dist/modules/integration/observation/interfaces.d.ts +45 -0
  51. package/dist/modules/integration/observation/route.schema.d.ts +5 -0
  52. package/dist/modules/integration/observationType/interfaces.d.ts +27 -0
  53. package/dist/modules/integration/observationType/route.schema.d.ts +7 -0
  54. package/dist/modules/integration/projectInfo/interfaces.d.ts +16 -0
  55. package/dist/modules/integration/projectInfo/route.schema.d.ts +2 -0
  56. package/dist/modules/integration/settings/interfaces.d.ts +25 -0
  57. package/dist/modules/integration/settings/route.schema.d.ts +4 -0
  58. package/dist/modules/print/npc/interfaces.d.ts +30 -0
  59. package/dist/modules/print/npc/route.schema.d.ts +3 -0
  60. package/dist/modules/print/printer/interfaces.d.ts +38 -0
  61. package/dist/modules/print/printer/route.schema.d.ts +4 -0
  62. package/dist/modules/print/schedulePrintJob/interfaces.d.ts +39 -0
  63. package/dist/modules/print/schedulePrintJob/route.schema.d.ts +5 -0
  64. package/dist/modules/stock/chat/interfaces.d.ts +61 -0
  65. package/dist/modules/stock/chat/route.schema.d.ts +3 -0
  66. package/dist/modules/stock/chatRapidMessage/interface.d.ts +26 -0
  67. package/dist/modules/stock/chatRapidMessage/route.schema.d.ts +3 -0
  68. package/dist/modules/stock/dashboard/interface.d.ts +22 -0
  69. package/dist/modules/stock/dashboard/route.schema.d.ts +2 -0
  70. package/dist/modules/stock/file/interface.d.ts +32 -0
  71. package/dist/modules/stock/file/route.schema.d.ts +5 -0
  72. package/dist/modules/stock/location/interface.d.ts +58 -0
  73. package/dist/modules/stock/location/route.schema.d.ts +5 -0
  74. package/dist/modules/stock/prison/interface.d.ts +49 -0
  75. package/dist/modules/stock/prison/route.schema.d.ts +4 -0
  76. package/dist/modules/stock/productGoogleSheets/interface.d.ts +237 -0
  77. package/dist/modules/stock/productGoogleSheets/route.schema.d.ts +13 -0
  78. package/dist/modules/stock/productImage/interface.d.ts +44 -0
  79. package/dist/modules/stock/productImage/route.schema.d.ts +5 -0
  80. package/dist/modules/stock/promotion/interface.d.ts +42 -0
  81. package/dist/modules/stock/promotion/route.schema.d.ts +5 -0
  82. package/dist/modules/stock/promotionAssoc/interface.d.ts +40 -0
  83. package/dist/modules/stock/promotionAssoc/route.schema.d.ts +5 -0
  84. package/dist/modules/stock/queryList/interfaces.d.ts +44 -0
  85. package/dist/modules/stock/queryList/route.schema.d.ts +7 -0
  86. package/dist/modules/stock/queryParameter/interfaces.d.ts +51 -0
  87. package/dist/modules/stock/queryParameter/route.schema.d.ts +3 -0
  88. package/dist/modules/stock/recurrentTasks/interface.d.ts +9 -0
  89. package/dist/modules/stock/returnReason/interfaces.d.ts +19 -0
  90. package/dist/modules/stock/returnReason/route.schema.d.ts +3 -0
  91. package/dist/modules/stock/savedEmPicking/interfaces.d.ts +27 -0
  92. package/dist/modules/stock/savedEmPicking/route.schema.d.ts +5 -0
  93. package/dist/modules/stock/savedProviderProposal/interfaces.d.ts +23 -0
  94. package/dist/modules/stock/savedProviderProposal/route.schema.d.ts +3 -0
  95. package/dist/modules/stock/sideMenu/interface.d.ts +37 -0
  96. package/dist/modules/stock/sideMenu/route.schema.d.ts +3 -0
  97. package/dist/modules/stock/stockMovement/interface.d.ts +49 -0
  98. package/dist/modules/stock/stockMovement/route.schema.d.ts +3 -0
  99. package/dist/modules/stock/task/interface.d.ts +82 -0
  100. package/dist/modules/stock/task/route.schema.d.ts +4 -0
  101. package/dist/modules/stock/taskMessage/interface.d.ts +14 -0
  102. package/dist/modules/stock/taskMessage/route.schema.d.ts +3 -0
  103. package/dist/modules/stock/taskRead/interface.d.ts +13 -0
  104. package/dist/modules/stock/taskRead/route.schema.d.ts +3 -0
  105. package/dist/modules/stock/typeOfLocation/interface.d.ts +32 -0
  106. package/dist/modules/stock/typeOfLocation/route.schema.d.ts +5 -0
  107. package/dist/modules/stock/unitOfMeasure/interface.d.ts +42 -0
  108. package/dist/modules/stock/unitOfMeasure/route.schema.d.ts +5 -0
  109. package/dist/modules/stock/vatTax/interface.d.ts +34 -0
  110. package/dist/modules/stock/vatTax/route.schema.d.ts +5 -0
  111. package/dist/modules/stock/vatTaxZone/interface.d.ts +42 -0
  112. package/dist/modules/stock/vatTaxZone/route.schema.d.ts +5 -0
  113. package/dist/modules/stock/vatValidation/interfaces.d.ts +8 -0
  114. package/dist/modules/stock/vatValidation/route.schema.d.ts +2 -0
  115. package/dist/modules/stock/workflow/interfaces.d.ts +45 -0
  116. package/dist/modules/stock/workflow/route.schema.d.ts +4 -0
  117. package/dist/modules/supply/batch/interface.d.ts +0 -0
  118. package/dist/modules/supply/documentHeader/interfaces.d.ts +364 -0
  119. package/dist/modules/supply/documentHeader/route.schema.d.ts +15 -0
  120. package/dist/modules/supply/documentLine/interfaces.d.ts +145 -0
  121. package/dist/modules/supply/documentLine/route.schema.d.ts +9 -0
  122. package/dist/modules/supply/documentLineAssoc/interfaces.d.ts +34 -0
  123. package/dist/modules/supply/documentLineAssoc/route.schema.d.ts +3 -0
  124. package/dist/modules/supply/documentLineMT/interface.d.ts +19 -0
  125. package/dist/modules/supply/documentLineMT/route.schema.d.ts +2 -0
  126. package/dist/modules/supply/documentLineNote/interfaces.d.ts +33 -0
  127. package/dist/modules/supply/documentLineNote/route.schema.d.ts +6 -0
  128. package/dist/modules/supply/documentLineRM/interface.d.ts +25 -0
  129. package/dist/modules/supply/documentLineRM/route.schema.d.ts +2 -0
  130. package/dist/modules/supply/documentSet/interface.d.ts +27 -0
  131. package/dist/modules/supply/documentSet/route.schema.d.ts +3 -0
  132. package/dist/modules/supply/documentType/interfaces.d.ts +131 -0
  133. package/dist/modules/supply/documentType/route.schema.d.ts +3 -0
  134. package/dist/modules/supply/externalDocumentHeader/interface.d.ts +89 -0
  135. package/dist/modules/supply/externalDocumentHeader/route.schema.d.ts +8 -0
  136. package/dist/modules/supply/externalDocumentType/interface.d.ts +11 -0
  137. package/dist/modules/supply/orderManagement/interface.d.ts +41 -0
  138. package/dist/modules/supply/orderManagement/route.schema.d.ts +0 -0
  139. package/dist/modules/supply/payment/interface.d.ts +164 -0
  140. package/dist/modules/supply/payment/route.schema.d.ts +11 -0
  141. package/dist/modules/supply/preSale/interface.d.ts +71 -0
  142. package/dist/modules/supply/preSale/route.schema.d.ts +8 -0
  143. package/dist/modules/supply/preSaleProduct/interface.d.ts +12 -0
  144. package/dist/modules/supply/preSaleProduct/route.schema.d.ts +2 -0
  145. package/dist/modules/supply/schedule/interface.d.ts +23 -0
  146. package/dist/modules/supply/schedule/route.schema.d.ts +2 -0
  147. package/dist/modules/supply/startDocumentHeaderLastUpdate/interface.d.ts +10 -0
  148. package/dist/modules/tickets/channel/interfaces.d.ts +29 -0
  149. package/dist/modules/tickets/channel/route.schema.d.ts +3 -0
  150. package/dist/modules/tickets/clt/interfaces.d.ts +20 -0
  151. package/dist/modules/tickets/clt/route.schema.d.ts +3 -0
  152. package/dist/modules/tickets/language/interfaces.d.ts +20 -0
  153. package/dist/modules/tickets/language/route.schema.d.ts +3 -0
  154. package/dist/modules/tickets/tickets/interfaces.d.ts +68 -0
  155. package/dist/modules/tickets/tickets/route.schema.d.ts +3 -0
  156. package/dist/modules/user/bankData/interface.d.ts +42 -0
  157. package/dist/modules/user/bankData/route.schema.d.ts +5 -0
  158. package/dist/modules/user/chatSubscribers/interfaces.d.ts +25 -0
  159. package/dist/modules/user/chatSubscribers/route.schema.d.ts +2 -0
  160. package/dist/modules/user/clientType/interface.d.ts +30 -0
  161. package/dist/modules/user/clientType/route.schema.d.ts +6 -0
  162. package/dist/modules/user/clients/interface.d.ts +86 -0
  163. package/dist/modules/user/clients/route.schema.d.ts +5 -0
  164. package/dist/modules/user/commissioner/interface.d.ts +64 -0
  165. package/dist/modules/user/commissioner/route.schema.d.ts +5 -0
  166. package/dist/modules/user/country/interface.d.ts +35 -0
  167. package/dist/modules/user/country/route.schema.d.ts +5 -0
  168. package/dist/modules/user/deliveryMethods/interfaces.d.ts +23 -0
  169. package/dist/modules/user/deliveryMethods/route.schema.d.ts +3 -0
  170. package/dist/modules/user/favorites/interfaces.d.ts +22 -0
  171. package/dist/modules/user/favorites/route.schema.d.ts +8 -0
  172. package/dist/modules/user/groupPermissions/interface.d.ts +25 -0
  173. package/dist/modules/user/groupPermissions/route.schema.d.ts +2 -0
  174. package/dist/modules/user/language/interface.d.ts +30 -0
  175. package/dist/modules/user/language/route.schema.d.ts +5 -0
  176. package/dist/modules/user/maturityDates/interfaces.d.ts +25 -0
  177. package/dist/modules/user/maturityDates/route.schema.d.ts +3 -0
  178. package/dist/modules/user/password/interfaces.d.ts +15 -0
  179. package/dist/modules/user/password/route.schema.d.ts +3 -0
  180. package/dist/modules/user/paymentMethods/interfaces.d.ts +49 -0
  181. package/dist/modules/user/paymentMethods/route.schema.d.ts +3 -0
  182. package/dist/modules/user/permissions/interface.d.ts +25 -0
  183. package/dist/modules/user/permissions/route.schema.d.ts +2 -0
  184. package/dist/modules/user/persona/interface.d.ts +113 -0
  185. package/dist/modules/user/persona/route.schema.d.ts +7 -0
  186. package/dist/modules/user/providerType/interface.d.ts +30 -0
  187. package/dist/modules/user/providerType/route.schema.d.ts +5 -0
  188. package/dist/modules/user/providers/interface.d.ts +82 -0
  189. package/dist/modules/user/providers/route.schema.d.ts +5 -0
  190. package/dist/modules/user/purchaseConditions/interface.d.ts +37 -0
  191. package/dist/modules/user/purchaseConditions/route.schema.d.ts +5 -0
  192. package/dist/modules/user/reasonForExemption/interface.d.ts +34 -0
  193. package/dist/modules/user/reasonForExemption/route.schema.d.ts +5 -0
  194. package/dist/modules/user/refreshToken/interface.d.ts +15 -0
  195. package/dist/modules/user/refreshToken/route.schema.d.ts +2 -0
  196. package/dist/modules/user/segmentsArea/interface.d.ts +32 -0
  197. package/dist/modules/user/segmentsArea/route.schema.d.ts +5 -0
  198. package/dist/modules/user/sessions/interface.d.ts +19 -0
  199. package/dist/modules/user/sessions/route.schema.d.ts +2 -0
  200. package/dist/modules/user/shippings/interface.d.ts +38 -0
  201. package/dist/modules/user/shippings/route.schema.d.ts +5 -0
  202. package/dist/modules/user/storeOperator/interface.d.ts +33 -0
  203. package/dist/modules/user/storeOperator/route.schema.d.ts +4 -0
  204. package/dist/modules/user/swift/interface.d.ts +38 -0
  205. package/dist/modules/user/swift/route.schema.d.ts +5 -0
  206. package/dist/modules/user/tenant/interface.d.ts +49 -0
  207. package/dist/modules/user/tenant/route.schema.d.ts +3 -0
  208. package/dist/modules/user/theme/interfaces.d.ts +18 -0
  209. package/dist/modules/user/theme/route.schema.d.ts +2 -0
  210. package/dist/modules/user/userPermissions/interface.d.ts +23 -0
  211. package/dist/modules/user/userPermissions/route.schema.d.ts +2 -0
  212. package/dist/modules/user/userPositions/interface.d.ts +30 -0
  213. package/dist/modules/user/userPositions/route.schema.d.ts +5 -0
  214. package/dist/modules/user/userTokens/interface.d.ts +30 -0
  215. package/dist/modules/user/userTokens/route.schema.d.ts +3 -0
  216. package/dist/modules/user/users/interface.d.ts +114 -0
  217. package/dist/modules/user/users/route.schema.d.ts +7 -0
  218. package/dist/modules/user/vehicles/interfaces.d.ts +25 -0
  219. package/dist/modules/user/vehicles/route.schema.d.ts +3 -0
  220. package/dist/modules/user/zipCode/interfaces.d.ts +23 -0
  221. package/dist/modules/user/zipCode/route.schema.d.ts +3 -0
  222. package/dist/modules/view/adminPanel/interfaces.d.ts +140 -0
  223. package/dist/modules/view/errorLog/interfaces.d.ts +30 -0
  224. package/dist/modules/view/errorLog/route.schema.d.ts +2 -0
  225. package/dist/shared/entities/documentManagement.d.ts +15 -0
  226. package/dist/shared/entities/integration.d.ts +127 -0
  227. package/dist/shared/entities/print.d.ts +46 -0
  228. package/dist/shared/entities/stock.d.ts +1058 -0
  229. package/dist/shared/entities/tickets.d.ts +78 -0
  230. package/dist/shared/entities/user.d.ts +507 -0
  231. package/dist/shared/errors/documentManagementErrors.d.ts +14 -0
  232. package/dist/shared/errors/integrationErrors.d.ts +45 -0
  233. package/dist/shared/errors/stockErrors.d.ts +267 -0
  234. package/dist/shared/errors/userErrors.d.ts +104 -0
  235. package/dist/shared/errors/viewErrors.d.ts +7 -0
  236. package/dist/shared/interface.d.ts +343 -0
  237. package/dist/shared/messages.d.ts +2 -0
  238. package/package.json +2 -2
@@ -0,0 +1,1058 @@
1
+ import { IConflict } from '../../modules/document/propostaSheets/interface';
2
+ import { IDocumentTypeUserType, IDocumentTypeCodeType } from '../../modules/supply/documentType/interfaces';
3
+ import { IBatchType, IPaymentOrigin } from '../../modules/supply/payment/interface';
4
+ import { IProductType } from '../../modules/stock/productGoogleSheets/interface';
5
+ import { IImageType } from '../../modules/stock/productImage/interface';
6
+ import { IQueryParameterDatatype } from '../../modules/stock/queryParameter/interfaces';
7
+ import { IData, IDataDocumentoPago, IDataPagamento, IPromotions, type IImportedFromSheets } from '../../modules/supply/documentLine/interfaces';
8
+ import { ISavedEmPickingData } from '../../modules/stock/savedEmPicking/interfaces';
9
+ import { IDocumentLineNoteType } from '../../modules/supply/documentLineNote/interfaces';
10
+ import { IProductSheetState } from '../../modules/stock/productGoogleSheets/interface';
11
+ import type { IFindProposals } from '../../modules/supply/orderManagement/interface';
12
+ import { ITaskStatusDataType } from '../../modules/stock/task/interface';
13
+ import type { IProjectInfo, IRsaHashData, ITaxEntry } from '../../modules/supply/documentHeader/interfaces';
14
+ /**
15
+ * Model Chat
16
+ *
17
+ */
18
+ export type Chat = {
19
+ id: string;
20
+ owner_id: string;
21
+ document_header_id: string;
22
+ message: string;
23
+ email_processed: boolean;
24
+ email_delivered: boolean;
25
+ email_opened: boolean;
26
+ email_clicked: boolean;
27
+ whatsapp_sent: boolean;
28
+ read: boolean;
29
+ is_customer: boolean;
30
+ deleted: boolean;
31
+ created_by: string;
32
+ updated_by: string;
33
+ created_at: Date;
34
+ updated_at: Date;
35
+ };
36
+ /**
37
+ * Model Location
38
+ *
39
+ */
40
+ export type Location = {
41
+ id: string;
42
+ type_of_location_id: string;
43
+ country_id: string;
44
+ country_name: string;
45
+ name: string;
46
+ street: string;
47
+ locality: string;
48
+ postal_code: string;
49
+ geolocation: unknown | null;
50
+ default_billing: boolean;
51
+ default_delivery: boolean;
52
+ origin_id: string | null;
53
+ created_at: Date;
54
+ updated_at: Date;
55
+ created_by: string;
56
+ updated_by: string;
57
+ };
58
+ /**
59
+ * Model PreSale
60
+ *
61
+ */
62
+ export type PreSale = {
63
+ id: string;
64
+ counter: number;
65
+ barcode: string | null;
66
+ document_header_id: string | null;
67
+ created_at: Date;
68
+ updated_at: Date;
69
+ created_by: string;
70
+ updated_by: string;
71
+ };
72
+ /**
73
+ * Model PreSaleProduct
74
+ *
75
+ */
76
+ export type PreSaleProduct = {
77
+ id: string;
78
+ pre_sale_id: string;
79
+ product_id: string;
80
+ quantity: number;
81
+ created_at: Date;
82
+ updated_at: Date;
83
+ created_by: string;
84
+ updated_by: string;
85
+ };
86
+ /**
87
+ * Model ProductPrices
88
+ *
89
+ */
90
+ export type ProductPrices = {
91
+ id: string;
92
+ price_cost: number;
93
+ price_sale: number;
94
+ avg_unit_cost: number | null;
95
+ product_id: string;
96
+ created_at: Date;
97
+ updated_at: Date;
98
+ origin_id: string | null;
99
+ created_by: string;
100
+ updated_by: string;
101
+ };
102
+ /**
103
+ * Model ProductImage
104
+ *
105
+ */
106
+ export type ProductImage = {
107
+ id: string;
108
+ product_id: string;
109
+ multimedia_id: string;
110
+ type: IImageType;
111
+ created_at: Date;
112
+ updated_at: Date;
113
+ origin_id: string | null;
114
+ created_by: string;
115
+ updated_by: string;
116
+ };
117
+ /**
118
+ * Model UnitOfMeasure
119
+ *
120
+ */
121
+ export type UnitOfMeasure = {
122
+ id: string;
123
+ name: string;
124
+ notation: string;
125
+ type: string;
126
+ default_quantity: boolean;
127
+ integer_only: boolean;
128
+ divisible: boolean;
129
+ origin_id: string | null;
130
+ created_at: Date;
131
+ updated_at: Date;
132
+ created_by: string;
133
+ updated_by: string;
134
+ };
135
+ /**
136
+ * Model Promotion
137
+ *
138
+ */
139
+ export type Promotion = {
140
+ id: string;
141
+ name: string;
142
+ initial_date: Date;
143
+ final_date: Date;
144
+ active_for_purchases_above: number;
145
+ free_shipping_for_purchases_above: number | null;
146
+ discount: number;
147
+ origin_id: string | null;
148
+ created_at: Date;
149
+ updated_at: Date;
150
+ created_by: string;
151
+ updated_by: string;
152
+ };
153
+ /**
154
+ * Model PromotionAssoc
155
+ *
156
+ */
157
+ export type PromotionAssoc = {
158
+ id: string;
159
+ client_id: string | null;
160
+ location_id: string | null;
161
+ product_id: string | null;
162
+ promotion_id: string;
163
+ origin_id: string | null;
164
+ created_at: Date;
165
+ updated_at: Date;
166
+ created_by: string;
167
+ updated_by: string;
168
+ };
169
+ /**
170
+ * Model TypeOfLocation
171
+ *
172
+ */
173
+ export type TypeOfLocation = {
174
+ id: string;
175
+ name: string;
176
+ origin_id: string | null;
177
+ created_at: Date;
178
+ updated_at: Date;
179
+ created_by: string;
180
+ updated_by: string;
181
+ };
182
+ /**
183
+ * Model VatTax
184
+ *
185
+ */
186
+ export type VatTax = {
187
+ id: string;
188
+ name: string;
189
+ saft_code: string;
190
+ created_at: Date;
191
+ updated_at: Date;
192
+ origin_id: string | null;
193
+ created_by: string;
194
+ updated_by: string;
195
+ };
196
+ /**
197
+ * Model VatTaxZone
198
+ *
199
+ */
200
+ export type VatTaxZone = {
201
+ id: string;
202
+ name: string;
203
+ saft_code: string;
204
+ value: number;
205
+ vat_tax_id: string;
206
+ origin_id: string | null;
207
+ created_at: Date;
208
+ updated_at: Date;
209
+ created_by: string;
210
+ updated_by: string;
211
+ country_id: string;
212
+ };
213
+ /**
214
+ * Model DocumentType
215
+ *
216
+ */
217
+ export type DocumentType = {
218
+ id: number;
219
+ external_document_type_id: string | null;
220
+ code: IDocumentTypeCodeType;
221
+ description: string;
222
+ group: string;
223
+ is_searchable: boolean;
224
+ quantity_in: boolean;
225
+ quantity_out: boolean;
226
+ credit: boolean;
227
+ debit: boolean;
228
+ user_type: IDocumentTypeUserType;
229
+ start: boolean;
230
+ invoice: boolean;
231
+ return: boolean;
232
+ pay: boolean;
233
+ allow_create_from_header_without_lines: boolean;
234
+ allow_commissioner: boolean;
235
+ final_consumer: boolean;
236
+ ensure_same_provider: boolean;
237
+ duplicate_group: string | null;
238
+ allow_duplicates: boolean;
239
+ requires_picking: boolean;
240
+ allow_document_line_assoc_plugins: boolean;
241
+ inherits_start_number: boolean;
242
+ document_set_id: string;
243
+ created_at: Date;
244
+ updated_at: Date;
245
+ created_by: string;
246
+ updated_by: string;
247
+ };
248
+ /**
249
+ * Model DocumentHeader
250
+ *
251
+ */
252
+ export type DocumentHeader = {
253
+ id: string;
254
+ from_document_header_id: string | null;
255
+ document_type_id: number;
256
+ document_number: number;
257
+ document_set_id: string;
258
+ pdf_link: string | null;
259
+ google_sheet_id: string | null;
260
+ emission_date: Date;
261
+ owner_id: string;
262
+ owner_number: number;
263
+ owner_name: string | null;
264
+ billing_persona_id: string | null;
265
+ billing_persona_nif: string | null;
266
+ billing_persona_name: string | null;
267
+ billing_persona_email: string | null;
268
+ billing_persona_telephone: string | null;
269
+ billing_persona_address_street: string | null;
270
+ billing_persona_address_postal_code: string | null;
271
+ billing_persona_address_locality: string | null;
272
+ billing_persona_address_country_id: string | null;
273
+ billing_persona_address_country_name: string | null;
274
+ delivery_persona_id: string | null;
275
+ delivery_persona_name: string | null;
276
+ delivery_persona_email: string | null;
277
+ delivery_persona_telephone: string | null;
278
+ delivery_persona_address_street: string | null;
279
+ delivery_persona_address_postal_code: string | null;
280
+ delivery_persona_address_locality: string | null;
281
+ delivery_persona_address_country_id: string | null;
282
+ delivery_persona_address_country_name: string | null;
283
+ reason_for_exemption_id: string | null;
284
+ reason_for_exemption: string | null;
285
+ delivery_departure_street: string | null;
286
+ delivery_departure_locality: string | null;
287
+ delivery_departure_postal_code: string | null;
288
+ delivery_method_id: string | null;
289
+ delivery_method: string | null;
290
+ vehicle_id: string | null;
291
+ vehicle: string | null;
292
+ payment_method_id: string | null;
293
+ payment_method: string | null;
294
+ maturity_date_id: string | null;
295
+ maturity_date: string | null;
296
+ maturity_date_days: number | null;
297
+ commissioner_id: string | null;
298
+ commission_percentage: number;
299
+ commission_paid: boolean;
300
+ return_reason: string | null;
301
+ is_archived: boolean;
302
+ is_void: boolean;
303
+ is_void_reason: string | null;
304
+ origin_id: string | null;
305
+ who_handles: string | null;
306
+ tags: string | null;
307
+ warning: string | null;
308
+ sequence_number: number | null;
309
+ tenant_nif: string;
310
+ atcud: string | null;
311
+ hash: string | null;
312
+ hash_data: IRsaHashData | {};
313
+ project_info: IProjectInfo | {};
314
+ paired_with: string | null;
315
+ comercial_discount_value: number | null;
316
+ gross_value: number | null;
317
+ net_value: number | null;
318
+ taxes_value: number | null;
319
+ taxes: ITaxEntry[];
320
+ document_name: string;
321
+ external_document_name: string | null;
322
+ qrcode: string | null;
323
+ created_at: Date;
324
+ updated_at: Date;
325
+ created_by: string;
326
+ updated_by: string;
327
+ };
328
+ /**
329
+ * Model DocumentLine
330
+ *
331
+ */
332
+ export type DocumentLine = {
333
+ id: string;
334
+ product_id: string | null;
335
+ product_promotions: IPromotions[];
336
+ product_thumbnail: string | null;
337
+ product_reference: string | null;
338
+ product_designation: string;
339
+ product_measure: string | null;
340
+ avg_unit_cost: number | null;
341
+ prison: boolean;
342
+ cativado: boolean;
343
+ cativado_date: Date | null;
344
+ consignacao: boolean;
345
+ document_line_group_id: string;
346
+ index: number;
347
+ data: IData;
348
+ cancelled: boolean;
349
+ original_product_id: string | null;
350
+ imported_from_sheets: IImportedFromSheets | null;
351
+ quantity: number;
352
+ preco_custo: number;
353
+ provider_discount: number;
354
+ provider_purchase_discount: number;
355
+ provider_tax: number;
356
+ preco_venda: number;
357
+ client_tax: number;
358
+ client_discount: number;
359
+ provider_estimated_delivery_date: Date | null;
360
+ sent_to_client: boolean;
361
+ sent_to_provider: boolean;
362
+ global_discount: boolean;
363
+ created_at: Date;
364
+ updated_at: Date;
365
+ created_by: string;
366
+ updated_by: string;
367
+ };
368
+ /**
369
+ * Model DocumentLineAssoc
370
+ *
371
+ */
372
+ export type DocumentLineAssoc = {
373
+ id: string;
374
+ document_header_id: string;
375
+ document_line_id: string;
376
+ origin_id: string | null;
377
+ created_at: Date;
378
+ updated_at: Date;
379
+ created_by: string;
380
+ updated_by: string;
381
+ };
382
+ /**
383
+ * Model Workflow
384
+ *
385
+ */
386
+ export type Workflow = {
387
+ id: number;
388
+ from_document_type_id: number | null;
389
+ to_document_type_id: number;
390
+ transition_name: string;
391
+ is_active: boolean;
392
+ created_at: Date;
393
+ updated_at: Date;
394
+ created_by: string;
395
+ updated_by: string;
396
+ };
397
+ /**
398
+ * Model DocumentSet
399
+ *
400
+ */
401
+ export type DocumentSet = {
402
+ id: string;
403
+ name: string;
404
+ document_set_id: number | null;
405
+ active_by_default: boolean;
406
+ validation_code: string | null;
407
+ created_at: Date;
408
+ updated_at: Date;
409
+ created_by: string;
410
+ updated_by: string;
411
+ };
412
+ /**
413
+ * Model ExternalDocumentType
414
+ *
415
+ */
416
+ export type ExternalDocumentType = {
417
+ id: string;
418
+ name: string;
419
+ document_type_id: number;
420
+ saft_code: string;
421
+ created_at: Date;
422
+ updated_at: Date;
423
+ created_by: string;
424
+ updated_by: string;
425
+ };
426
+ /**
427
+ * Model ExternalDocumentHeader
428
+ *
429
+ */
430
+ export type ExternalDocumentHeader = {
431
+ id: string;
432
+ document_header_id: string;
433
+ pdf_link: string;
434
+ created_at: Date;
435
+ updated_at: Date;
436
+ created_by: string;
437
+ updated_by: string;
438
+ };
439
+ /**
440
+ * Model Payment
441
+ *
442
+ */
443
+ export type Payment = {
444
+ id: string;
445
+ document_header_id: string;
446
+ owner_id: string;
447
+ date: Date;
448
+ debit: number;
449
+ credit: number;
450
+ payment_method_id: string | null;
451
+ payment_method: string | null;
452
+ notes: string | null;
453
+ iban: string | null;
454
+ payment_batch_id: string | null;
455
+ created_at: Date;
456
+ updated_at: Date;
457
+ created_by: string;
458
+ updated_by: string;
459
+ };
460
+ /**
461
+ * Model BankPaymentsBatch
462
+ *
463
+ */
464
+ export type BankPaymentsBatch = {
465
+ id: string;
466
+ type: IBatchType | null;
467
+ times_downloaded: number;
468
+ multimedia_id: string | null;
469
+ created_by: string;
470
+ updated_by: string;
471
+ created_at: Date;
472
+ updated_at: Date;
473
+ };
474
+ /**
475
+ * Model VatValidation
476
+ *
477
+ */
478
+ export type VatValidation = {
479
+ id: string;
480
+ vat_number: string;
481
+ valid: boolean;
482
+ status: string;
483
+ payload: unknown;
484
+ created_at: Date;
485
+ updated_at: Date;
486
+ };
487
+ /**
488
+ * Model QueryList
489
+ *
490
+ */
491
+ export type QueryList = {
492
+ id: string;
493
+ label: string;
494
+ code: string;
495
+ group: string | null;
496
+ created_at: Date;
497
+ updated_at: Date;
498
+ created_by: string;
499
+ updated_by: string;
500
+ };
501
+ /**
502
+ * Model QueryParameter
503
+ *
504
+ */
505
+ export type QueryParameter = {
506
+ id: string;
507
+ label: string;
508
+ accessor: string;
509
+ datatype: IQueryParameterDatatype;
510
+ suffix: string | null;
511
+ preffix: string | null;
512
+ input: boolean;
513
+ output: boolean;
514
+ align: string;
515
+ width: number | null;
516
+ query_id: string;
517
+ order: number | null;
518
+ created_at: Date;
519
+ updated_at: Date;
520
+ created_by: string;
521
+ updated_by: string;
522
+ };
523
+ /**
524
+ * Model ReturnReason
525
+ *
526
+ */
527
+ export type ReturnReason = {
528
+ id: string;
529
+ reason: string;
530
+ created_at: Date;
531
+ updated_at: Date;
532
+ created_by: string;
533
+ updated_by: string;
534
+ };
535
+ /**
536
+ * Model DocumentLinePendingConflict
537
+ *
538
+ */
539
+ export type DocumentLinePendingConflict = {
540
+ id: string;
541
+ document_line_id: string;
542
+ designation: string;
543
+ quantity: number;
544
+ price_sale: number;
545
+ price_cost: number;
546
+ updated_product_price_sale: number | null;
547
+ discount: number;
548
+ conflict: IConflict;
549
+ created_at: Date;
550
+ updated_at: Date;
551
+ created_by: string;
552
+ updated_by: string;
553
+ };
554
+ /**
555
+ * Model ProductPromotionVirtuals
556
+ *
557
+ */
558
+ export type ProductPromotionVirtuals = {
559
+ product_id: string;
560
+ promotion_assoc_id: string;
561
+ name: string;
562
+ initial_date: Date;
563
+ final_date: Date;
564
+ active_for_purchases_above: number;
565
+ free_shipping_for_purchases_above: number | null;
566
+ discount: number;
567
+ promotion_price: number;
568
+ exclusive_to_client_id: string | null;
569
+ exclusive_to_location_id: string | null;
570
+ };
571
+ /**
572
+ * Model ProductBaseVirtuals
573
+ *
574
+ */
575
+ export type ProductBaseVirtuals = {
576
+ product_id: string;
577
+ price_cost: number;
578
+ price_sale: number;
579
+ last_avg_unit_cost: number;
580
+ margin: number | null;
581
+ };
582
+ /**
583
+ * Model ProductVirtuals
584
+ *
585
+ */
586
+ export type ProductVirtuals = {
587
+ product_id: string;
588
+ price_cost: number;
589
+ price_sale: number;
590
+ margin: number | null;
591
+ last_avg_unit_cost: number;
592
+ reserved: number;
593
+ prison: number;
594
+ total: number;
595
+ available: number;
596
+ ordered_quantity: number;
597
+ inativa: boolean;
598
+ };
599
+ /**
600
+ * Model DocumentLineBaseVirtuals
601
+ *
602
+ */
603
+ export type DocumentLineBaseVirtuals = {
604
+ document_line_id: string;
605
+ client_unit_total_without_tax: number;
606
+ client_unit_total_without_discount: number;
607
+ client_unit_total: number;
608
+ client_unit_total_discount: number;
609
+ client_unit_total_tax: number;
610
+ client_total_without_tax: number;
611
+ client_total_without_discount: number;
612
+ client_total: number;
613
+ client_total_discount: number;
614
+ client_total_tax: number;
615
+ provider_unit_total_without_tax: number;
616
+ provider_unit_total_without_discount: number;
617
+ provider_unit_total: number;
618
+ provider_unit_total_discount: number;
619
+ provider_unit_total_tax: number;
620
+ provider_total_without_tax: number;
621
+ provider_total_without_discount: number;
622
+ provider_total: number;
623
+ provider_total_discount: number;
624
+ provider_total_tax: number;
625
+ commission_percentage: number;
626
+ commission_total: number;
627
+ cancelled: boolean;
628
+ phc_closed: boolean;
629
+ provider_invoice: boolean;
630
+ purchased_from_provider: boolean;
631
+ pending_return_to_provider: boolean;
632
+ available_for_client_order: boolean;
633
+ already_client_order: boolean;
634
+ already_material_entrance: boolean;
635
+ to_order: boolean;
636
+ rejected_return_to_provider: boolean;
637
+ inventory_loss: boolean;
638
+ return_to_provider_without_credit_note: boolean;
639
+ returned_to_provider: boolean;
640
+ awaiting_production: boolean;
641
+ ordered: boolean;
642
+ group_header: boolean;
643
+ waiting_for_bulk_order: boolean;
644
+ waiting_for_order: boolean;
645
+ closed: boolean;
646
+ provider_closed: boolean;
647
+ stock_in: boolean;
648
+ stock_out: boolean;
649
+ client_start_id: string | null;
650
+ provider_start_id: string | null;
651
+ invoice_id: string | null;
652
+ credit_note_id: string | null;
653
+ df_rejeitada: boolean;
654
+ levantar_df: boolean;
655
+ df_enviada: boolean;
656
+ df_fechada: boolean;
657
+ conferir_encomenda: string | null;
658
+ documento_pago: IDataDocumentoPago | null;
659
+ pagamento: IDataPagamento | null;
660
+ };
661
+ /**
662
+ * Model DocumentLineVirtuals
663
+ *
664
+ */
665
+ export type DocumentLineVirtuals = {
666
+ document_line_id: string;
667
+ client_unit_total_without_tax: number;
668
+ client_unit_total_without_discount: number;
669
+ client_unit_total: number;
670
+ client_unit_total_discount: number;
671
+ client_unit_total_tax: number;
672
+ client_total_without_tax: number;
673
+ client_total_without_discount: number;
674
+ client_total: number;
675
+ client_total_discount: number;
676
+ client_total_tax: number;
677
+ provider_unit_total_without_tax: number;
678
+ provider_unit_total_without_discount: number;
679
+ provider_unit_total: number;
680
+ provider_unit_total_discount: number;
681
+ provider_unit_total_tax: number;
682
+ provider_total_without_tax: number;
683
+ provider_total_without_discount: number;
684
+ provider_total: number;
685
+ provider_total_discount: number;
686
+ provider_total_tax: number;
687
+ commission_percentage: number;
688
+ commission_total: number;
689
+ cancelled: boolean;
690
+ phc_closed: boolean;
691
+ closed: boolean;
692
+ provider_closed: boolean;
693
+ group_header: boolean;
694
+ waiting_for_bulk_order: boolean;
695
+ waiting_for_order: boolean;
696
+ stock_in: boolean;
697
+ stock_out: boolean;
698
+ conferir_encomenda: string | null;
699
+ purchased_from_provider: boolean;
700
+ pending_return_to_provider: boolean;
701
+ available_for_client_order: boolean;
702
+ already_client_order: boolean;
703
+ to_order: boolean;
704
+ already_material_entrance: boolean;
705
+ rejected_return_to_provider: boolean;
706
+ inventory_loss: boolean;
707
+ return_to_provider_without_credit_note: boolean;
708
+ returned_to_provider: boolean;
709
+ awaiting_production: boolean;
710
+ ordered: boolean;
711
+ provider_invoice: boolean;
712
+ invoice_id: string | null;
713
+ credit_note_id: string | null;
714
+ client_start_id: string | null;
715
+ provider_start_id: string | null;
716
+ state: string;
717
+ provider_state: string;
718
+ phc_state: string | null;
719
+ awaits_client_notification: boolean;
720
+ upfront_total: number;
721
+ levantar_df: boolean;
722
+ df_enviada: boolean;
723
+ };
724
+ /**
725
+ * Model StartDocumentHeaderLastUpdateVirtuals
726
+ *
727
+ */
728
+ export type StartDocumentHeaderLastUpdateVirtuals = {
729
+ p_id: string;
730
+ updated_at: Date;
731
+ updated_by: string;
732
+ };
733
+ /**
734
+ * Model StartDocumentHeaderVirtuals
735
+ *
736
+ */
737
+ export type StartDocumentHeaderVirtuals = {
738
+ parent_document_header_id: string;
739
+ name: string;
740
+ external_name: string | null;
741
+ paid: number;
742
+ total_without_tax: number;
743
+ total: number;
744
+ total_discount: number;
745
+ total_tax: number;
746
+ upfront_document_header_id: string | null;
747
+ upfront_name: string | null;
748
+ upfront_external_name: string | null;
749
+ upfront_total: number;
750
+ closed: boolean;
751
+ state: string;
752
+ };
753
+ /**
754
+ * Model DocumentHeaderClientPaymentVirtuals
755
+ *
756
+ */
757
+ export type DocumentHeaderClientPaymentVirtuals = {
758
+ id: string;
759
+ client_paid: number;
760
+ client_unpaid: number;
761
+ };
762
+ /**
763
+ * Model DocumentHeaderBaseVirtuals
764
+ *
765
+ */
766
+ export type DocumentHeaderBaseVirtuals = {
767
+ id: string;
768
+ p_id: string;
769
+ name: string;
770
+ external_name: string | null;
771
+ document_number: string;
772
+ };
773
+ /**
774
+ * Model DocumentHeaderVirtuals
775
+ *
776
+ */
777
+ export type DocumentHeaderVirtuals = {
778
+ id: string;
779
+ p_id: string;
780
+ name: string;
781
+ external_name: string | null;
782
+ document_number: string;
783
+ client_total_without_tax: number;
784
+ client_total: number;
785
+ client_total_discount: number;
786
+ client_total_tax: number;
787
+ provider_total_discount: number;
788
+ provider_total_tax: number;
789
+ provider_total_without_tax: number;
790
+ provider_total: number;
791
+ };
792
+ /**
793
+ * Model DocumentHeaderClientVirtuals
794
+ *
795
+ */
796
+ export type DocumentHeaderClientVirtuals = {
797
+ id: string;
798
+ p_id: string;
799
+ name: string;
800
+ external_name: string | null;
801
+ document_number: string;
802
+ client_total_without_tax: number;
803
+ client_total: number;
804
+ client_total_discount: number;
805
+ client_total_tax: number;
806
+ };
807
+ /**
808
+ * Model DocumentHeaderProviderVirtuals
809
+ *
810
+ */
811
+ export type DocumentHeaderProviderVirtuals = {
812
+ id: string;
813
+ p_id: string;
814
+ name: string;
815
+ external_name: string | null;
816
+ document_number: string;
817
+ provider_total_discount: number;
818
+ provider_total_tax: number;
819
+ provider_total_without_tax: number;
820
+ provider_total: number;
821
+ };
822
+ /**
823
+ * Model StockMovement
824
+ *
825
+ */
826
+ export type StockMovement = {
827
+ document_line_id: string;
828
+ product_id: string;
829
+ emission_date: string;
830
+ name: string;
831
+ pdf_link: string | null;
832
+ parent_document_header_id: string | null;
833
+ created_by: string;
834
+ quantity: number;
835
+ stock_to_date: number;
836
+ };
837
+ /**
838
+ * Model SettledMaterialEntrance
839
+ *
840
+ */
841
+ export type SettledMaterialEntrance = {
842
+ id: string;
843
+ document_description: string;
844
+ document_name: string;
845
+ total: number;
846
+ saldo: number;
847
+ data_vencimento: Date;
848
+ emission_date: Date;
849
+ pdf_link: string | null;
850
+ type: IPaymentOrigin;
851
+ owner_id: string;
852
+ };
853
+ /**
854
+ * Model ProviderProductView
855
+ *
856
+ */
857
+ export type ProviderProductView = {
858
+ product_id: string;
859
+ type: IProductType;
860
+ id_provider: number;
861
+ obs: boolean;
862
+ multimedia_id: string | null;
863
+ ref: string;
864
+ des: string;
865
+ provider_ref: string | null;
866
+ price_cost: number;
867
+ price_sale: number;
868
+ available: number;
869
+ last_ef_date: Date | null;
870
+ ordered_quantity: number;
871
+ last_em_date: Date | null;
872
+ notation: string;
873
+ pfs: IFindProposals[];
874
+ pcs: IFindProposals[];
875
+ client_quantity: number;
876
+ pre_ordered_quantity: number;
877
+ last6m_consumption: number;
878
+ };
879
+ export type DocumentLineGroup = {
880
+ id: string;
881
+ created_at: Date;
882
+ updated_at: Date;
883
+ created_by: string;
884
+ updated_by: string;
885
+ };
886
+ export type SavedEmPicking = {
887
+ id: string;
888
+ provider_id: string;
889
+ document_header_id: string;
890
+ document_line_group_id: string;
891
+ data: ISavedEmPickingData;
892
+ created_at: Date;
893
+ updated_at: Date;
894
+ created_by: string;
895
+ updated_by: string;
896
+ };
897
+ export type GoogleSheetImports = {
898
+ id: string;
899
+ google_sheet_id: string;
900
+ done: boolean;
901
+ data: unknown | null;
902
+ error: unknown | null;
903
+ created_at: Date;
904
+ created_by: string;
905
+ updated_at: Date;
906
+ };
907
+ export type DocumentLineNote = {
908
+ id: string;
909
+ note: string;
910
+ type: IDocumentLineNoteType;
911
+ document_line_id: string;
912
+ created_by: string;
913
+ created_at: Date;
914
+ updated_by: string;
915
+ updated_at: Date;
916
+ };
917
+ export type SavedProviderProposal = {
918
+ id: string;
919
+ provider_id: string;
920
+ product_id: string;
921
+ quantity: number;
922
+ created_at: Date;
923
+ updated_at: Date;
924
+ created_by: string;
925
+ updated_by: string;
926
+ };
927
+ export type ProductSheet = {
928
+ id: string;
929
+ reference: string;
930
+ type: IProductType;
931
+ state: IProductSheetState;
932
+ values: unknown;
933
+ imported_from_sheets: boolean;
934
+ vat_tax_id: string;
935
+ unit_of_measure_quantity_id: string;
936
+ cabide_product_color: string | null;
937
+ weight: number | null;
938
+ width: number | null;
939
+ height: number | null;
940
+ length: number | null;
941
+ diameter: number | null;
942
+ provider_ref: string | null;
943
+ id_provider: number;
944
+ name: string | null;
945
+ designation: string;
946
+ origin_id: string | null;
947
+ type_of_inventory: string;
948
+ max_discount: number;
949
+ maintenances: string;
950
+ compositions: string;
951
+ attributes: string;
952
+ location: string | null;
953
+ created_at: Date;
954
+ updated_at: Date;
955
+ created_by: string;
956
+ updated_by: string;
957
+ };
958
+ export interface Task {
959
+ id: string;
960
+ from: string;
961
+ to: string | null;
962
+ task: string;
963
+ finished: boolean;
964
+ archived: boolean;
965
+ history: unknown | null;
966
+ status: ITaskStatusDataType;
967
+ future_date: Date | null;
968
+ number: number;
969
+ created_at: Date;
970
+ updated_at: Date;
971
+ created_by: string;
972
+ updated_by: string;
973
+ }
974
+ export interface TaskMessage {
975
+ id: string;
976
+ message: string;
977
+ task_id: string;
978
+ created_at: Date;
979
+ updated_at: Date;
980
+ created_by: string;
981
+ updated_by: string;
982
+ }
983
+ export interface TaskRead {
984
+ id: string;
985
+ task_id: string;
986
+ user_id: string;
987
+ created_at: Date;
988
+ }
989
+ /**
990
+ * Model ChatRapidMessage
991
+ *
992
+ */
993
+ export type ChatRapidMessage = {
994
+ id: string;
995
+ title: string;
996
+ message: string;
997
+ created_at: Date;
998
+ updated_at: Date;
999
+ created_by: string;
1000
+ updated_by: string;
1001
+ };
1002
+ /**
1003
+ * Model File
1004
+ *
1005
+ */
1006
+ export type File = {
1007
+ id: string;
1008
+ title: string;
1009
+ owner_id: string;
1010
+ document_header_id: string | null;
1011
+ multimedia_id: string;
1012
+ filename: string;
1013
+ is_customer: boolean;
1014
+ is_private: boolean;
1015
+ tags: string;
1016
+ created_by: string;
1017
+ updated_by: string;
1018
+ created_at: Date;
1019
+ updated_at: Date;
1020
+ };
1021
+ /**
1022
+ * Model DocumentLineRM
1023
+ *
1024
+ */
1025
+ export type DocumentLineRM = {
1026
+ document_line_id: string;
1027
+ rm_order_by: string | null;
1028
+ rm_order_date: Date | null;
1029
+ rm_execution_by: string | null;
1030
+ rm_execution_date: Date | null;
1031
+ rm_execution_when: Date | null;
1032
+ rm_sent_by: string | null;
1033
+ rm_sent_date: Date | null;
1034
+ rm_done_by: string | null;
1035
+ rm_done_date: Date | null;
1036
+ rm_checked_by: string | null;
1037
+ rm_checked_date: Date | null;
1038
+ created_by: string;
1039
+ updated_by: string;
1040
+ created_at: Date;
1041
+ updated_at: Date;
1042
+ };
1043
+ /**
1044
+ * Model DocumentLineMT
1045
+ *
1046
+ */
1047
+ export type DocumentLineMT = {
1048
+ document_line_id: string;
1049
+ mt_order_by: string | null;
1050
+ mt_order_date: Date | null;
1051
+ mt_execution_by: string | null;
1052
+ mt_execution_date: Date | null;
1053
+ mt_execution_when: Date | null;
1054
+ created_by: string;
1055
+ updated_by: string;
1056
+ created_at: Date;
1057
+ updated_at: Date;
1058
+ };