@nomalism-com/types 0.46.43 → 0.47.1

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 (266) hide show
  1. package/dist/index.cjs +5030 -5004
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.js +5030 -5004
  4. package/dist/main.d.ts +263 -263
  5. package/dist/modules/document/CAT/interfaces.d.ts +1 -1
  6. package/dist/modules/document/CAT/route.schema.d.ts +2 -2
  7. package/dist/modules/document/NPF/interface.d.ts +1 -1
  8. package/dist/modules/document/NPF/route.schema.d.ts +1 -1
  9. package/dist/modules/document/NRCL/interface.d.ts +4 -4
  10. package/dist/modules/document/NRCL/route.schema.d.ts +1 -1
  11. package/dist/modules/document/billOfLading/interfaces.d.ts +1 -1
  12. package/dist/modules/document/billOfLading/route.schema.d.ts +1 -1
  13. package/dist/modules/document/inventario/interface.d.ts +1 -1
  14. package/dist/modules/document/inventario/route.schema.d.ts +1 -1
  15. package/dist/modules/document/materialEntrance/interfaces.d.ts +15 -15
  16. package/dist/modules/document/materialEntrance/route.schema.d.ts +2 -2
  17. package/dist/modules/document/order/interfaces.d.ts +3 -3
  18. package/dist/modules/document/order/route.schema.d.ts +2 -2
  19. package/dist/modules/document/productionOrder/interfaces.d.ts +1 -1
  20. package/dist/modules/document/productionOrder/route.schema.d.ts +1 -1
  21. package/dist/modules/document/proforma/interfaces.d.ts +1 -1
  22. package/dist/modules/document/proforma/route.schema.d.ts +2 -2
  23. package/dist/modules/document/propostaFornecedor/interfaces.d.ts +1 -1
  24. package/dist/modules/document/propostaFornecedor/route.schema.d.ts +1 -1
  25. package/dist/modules/document/propostaSheets/interface.d.ts +7 -7
  26. package/dist/modules/document/propostaSheets/route.schema.d.ts +2 -2
  27. package/dist/modules/document/providerCreditNoteFromReturn/interfaces.d.ts +1 -1
  28. package/dist/modules/document/providerCreditNoteFromReturn/route.schema.d.ts +1 -1
  29. package/dist/modules/document/providerFinancialCreditNote/interfaces.d.ts +1 -1
  30. package/dist/modules/document/providerFinancialCreditNote/route.schema.d.ts +1 -1
  31. package/dist/modules/document/providerServiceInvoice/interfaces.d.ts +1 -1
  32. package/dist/modules/document/providerServiceInvoice/route.schema.d.ts +1 -1
  33. package/dist/modules/document/purchase/interfaces.d.ts +3 -3
  34. package/dist/modules/document/purchase/route.schema.d.ts +2 -2
  35. package/dist/modules/document/quebra/interfaces.d.ts +2 -2
  36. package/dist/modules/document/quebra/route.schema.d.ts +1 -1
  37. package/dist/modules/document/returnToProvider/interface.d.ts +2 -2
  38. package/dist/modules/document/returnToProvider/route.schema.d.ts +1 -1
  39. package/dist/modules/document/transformado/interfaces.d.ts +1 -1
  40. package/dist/modules/document/transformado/route.schema.d.ts +1 -1
  41. package/dist/modules/document/upfrontReturn/interfaces.d.ts +1 -1
  42. package/dist/modules/document/upfrontReturn/route.schema.d.ts +1 -1
  43. package/dist/modules/documentManagement/multimedia/interfaces.d.ts +3 -3
  44. package/dist/modules/documentManagement/multimedia/route.schema.d.ts +1 -1
  45. package/dist/modules/integration/emailLog/interfaces.d.ts +9 -9
  46. package/dist/modules/integration/emailLog/route.schema.d.ts +2 -2
  47. package/dist/modules/integration/emailTemplate/interfaces.d.ts +3 -3
  48. package/dist/modules/integration/emailTemplate/route.schema.d.ts +2 -2
  49. package/dist/modules/integration/emailTemplateAttachment/interfaces.d.ts +2 -2
  50. package/dist/modules/integration/emailTemplateAttachment/route.schema.d.ts +1 -1
  51. package/dist/modules/integration/emailVerification/interfaces.d.ts +2 -2
  52. package/dist/modules/integration/emailVerification/route.schema.d.ts +2 -2
  53. package/dist/modules/integration/googleFilePermission/interfaces.d.ts +2 -2
  54. package/dist/modules/integration/googleFilePermission/route.schema.d.ts +3 -3
  55. package/dist/modules/integration/googleSheets/interfaces.d.ts +9 -9
  56. package/dist/modules/integration/googleSheets/route.schema.d.ts +1 -1
  57. package/dist/modules/integration/observation/interfaces.d.ts +3 -3
  58. package/dist/modules/integration/observation/route.schema.d.ts +1 -1
  59. package/dist/modules/integration/observationType/interfaces.d.ts +3 -3
  60. package/dist/modules/integration/observationType/route.schema.d.ts +3 -3
  61. package/dist/modules/integration/patchNotes/interfaces.d.ts +2 -2
  62. package/dist/modules/integration/projectInfo/interfaces.d.ts +7 -7
  63. package/dist/modules/integration/projectInfo/route.schema.d.ts +1 -1
  64. package/dist/modules/integration/settings/interfaces.d.ts +2 -2
  65. package/dist/modules/integration/settings/route.schema.d.ts +1 -1
  66. package/dist/modules/llm/llm/interfaces.d.ts +1 -1
  67. package/dist/modules/llm/llm/route.schema.d.ts +1 -1
  68. package/dist/modules/print/npc/interfaces.d.ts +3 -3
  69. package/dist/modules/print/npc/route.schema.d.ts +1 -1
  70. package/dist/modules/print/printer/interfaces.d.ts +7 -7
  71. package/dist/modules/print/printer/route.schema.d.ts +1 -1
  72. package/dist/modules/print/schedulePrintJob/interfaces.d.ts +3 -3
  73. package/dist/modules/print/schedulePrintJob/route.schema.d.ts +2 -2
  74. package/dist/modules/sms/allowedDevice/interfaces.d.ts +9 -11
  75. package/dist/modules/sms/allowedDevice/route.schema.d.ts +1 -1
  76. package/dist/modules/sms/smsSender/interfaces.d.ts +2 -2
  77. package/dist/modules/sms/smsTemplate/interfaces.d.ts +5 -7
  78. package/dist/modules/sms/smsTemplate/route.schema.d.ts +1 -1
  79. package/dist/modules/stock/accountCode/interface.d.ts +1 -1
  80. package/dist/modules/stock/accountCode/route.schema.d.ts +1 -1
  81. package/dist/modules/stock/chat/interfaces.d.ts +5 -5
  82. package/dist/modules/stock/chat/route.schema.d.ts +2 -2
  83. package/dist/modules/stock/chatRapidMessage/interface.d.ts +2 -2
  84. package/dist/modules/stock/chatRapidMessage/route.schema.d.ts +1 -1
  85. package/dist/modules/stock/conferirEncomenda/interface.d.ts +1 -1
  86. package/dist/modules/stock/dashboard/interface.d.ts +1 -1
  87. package/dist/modules/stock/dashboard/route.schema.d.ts +1 -1
  88. package/dist/modules/stock/file/interface.d.ts +2 -2
  89. package/dist/modules/stock/file/route.schema.d.ts +2 -2
  90. package/dist/modules/stock/gmails/interface.d.ts +2 -2
  91. package/dist/modules/stock/googleCalendar/interface.d.ts +1 -1
  92. package/dist/modules/stock/googleCalendar/route.schema.d.ts +2 -2
  93. package/dist/modules/stock/googleSheetPool/interface.d.ts +2 -2
  94. package/dist/modules/stock/location/interface.d.ts +6 -6
  95. package/dist/modules/stock/location/route.schema.d.ts +1 -1
  96. package/dist/modules/stock/mobilePrint/interface.d.ts +1 -1
  97. package/dist/modules/stock/mobilePrint/route.schema.d.ts +1 -1
  98. package/dist/modules/stock/prison/interface.d.ts +2 -2
  99. package/dist/modules/stock/prison/route.schema.d.ts +2 -2
  100. package/dist/modules/stock/productGoogleSheets/interface.d.ts +18 -18
  101. package/dist/modules/stock/productGoogleSheets/route.schema.d.ts +2 -2
  102. package/dist/modules/stock/productImage/interface.d.ts +8 -8
  103. package/dist/modules/stock/productImage/route.schema.d.ts +1 -1
  104. package/dist/modules/stock/productLocation/interface.d.ts +1 -1
  105. package/dist/modules/stock/promotion/interface.d.ts +6 -6
  106. package/dist/modules/stock/promotion/route.schema.d.ts +1 -1
  107. package/dist/modules/stock/promotionAssoc/interface.d.ts +6 -6
  108. package/dist/modules/stock/promotionAssoc/route.schema.d.ts +1 -1
  109. package/dist/modules/stock/queryList/interfaces.d.ts +3 -3
  110. package/dist/modules/stock/queryList/route.schema.d.ts +3 -3
  111. package/dist/modules/stock/queryParameter/interfaces.d.ts +12 -12
  112. package/dist/modules/stock/queryParameter/route.schema.d.ts +1 -1
  113. package/dist/modules/stock/recurrentTasks/interface.d.ts +1 -1
  114. package/dist/modules/stock/returnReason/interfaces.d.ts +2 -2
  115. package/dist/modules/stock/returnReason/route.schema.d.ts +1 -1
  116. package/dist/modules/stock/savedEmPicking/interfaces.d.ts +4 -4
  117. package/dist/modules/stock/savedEmPicking/route.schema.d.ts +2 -2
  118. package/dist/modules/stock/savedProviderProposal/interfaces.d.ts +2 -2
  119. package/dist/modules/stock/savedProviderProposal/route.schema.d.ts +1 -1
  120. package/dist/modules/stock/stockMovement/interface.d.ts +8 -8
  121. package/dist/modules/stock/stockMovement/route.schema.d.ts +1 -1
  122. package/dist/modules/stock/tag/interface.d.ts +7 -7
  123. package/dist/modules/stock/tag/route.schema.d.ts +1 -1
  124. package/dist/modules/stock/task/interface.d.ts +13 -13
  125. package/dist/modules/stock/task/route.schema.d.ts +1 -1
  126. package/dist/modules/stock/taskMessage/interface.d.ts +4 -4
  127. package/dist/modules/stock/taskMessage/route.schema.d.ts +1 -1
  128. package/dist/modules/stock/taskRead/interface.d.ts +4 -4
  129. package/dist/modules/stock/taskRead/route.schema.d.ts +1 -1
  130. package/dist/modules/stock/typeOfLocation/interface.d.ts +6 -6
  131. package/dist/modules/stock/typeOfLocation/route.schema.d.ts +1 -1
  132. package/dist/modules/stock/unitOfMeasure/interface.d.ts +6 -6
  133. package/dist/modules/stock/unitOfMeasure/route.schema.d.ts +1 -1
  134. package/dist/modules/stock/vatTax/interface.d.ts +6 -6
  135. package/dist/modules/stock/vatTax/route.schema.d.ts +1 -1
  136. package/dist/modules/stock/vatTaxZone/interface.d.ts +6 -6
  137. package/dist/modules/stock/vatTaxZone/route.schema.d.ts +1 -1
  138. package/dist/modules/stock/vatValidation/interfaces.d.ts +1 -1
  139. package/dist/modules/stock/vatValidation/route.schema.d.ts +1 -1
  140. package/dist/modules/stock/workflow/interfaces.d.ts +5 -5
  141. package/dist/modules/stock/workflow/route.schema.d.ts +1 -1
  142. package/dist/modules/supply/currentAccount/interface.d.ts +14 -14
  143. package/dist/modules/supply/currentAccount/route.schema.d.ts +2 -2
  144. package/dist/modules/supply/documentHeader/interfaces.d.ts +11 -11
  145. package/dist/modules/supply/documentHeader/route.schema.d.ts +3 -3
  146. package/dist/modules/supply/documentHeaderHistory/interfaces.d.ts +3 -3
  147. package/dist/modules/supply/documentHeaderSubscriber/interface.d.ts +2 -2
  148. package/dist/modules/supply/documentHeaderSubscriber/route.schema.d.ts +1 -1
  149. package/dist/modules/supply/documentHeaderSurvey/interfaces.d.ts +5 -5
  150. package/dist/modules/supply/documentHeaderSurvey/route.schema.d.ts +2 -2
  151. package/dist/modules/supply/documentLine/interfaces.d.ts +12 -12
  152. package/dist/modules/supply/documentLine/route.schema.d.ts +2 -2
  153. package/dist/modules/supply/documentLineAssoc/interfaces.d.ts +4 -4
  154. package/dist/modules/supply/documentLineMT/interface.d.ts +2 -2
  155. package/dist/modules/supply/documentLineMT/route.schema.d.ts +1 -1
  156. package/dist/modules/supply/documentLineNote/interfaces.d.ts +10 -10
  157. package/dist/modules/supply/documentLineNote/route.schema.d.ts +1 -1
  158. package/dist/modules/supply/documentLineRM/interface.d.ts +2 -2
  159. package/dist/modules/supply/documentLineRM/route.schema.d.ts +1 -1
  160. package/dist/modules/supply/documentSet/interface.d.ts +2 -2
  161. package/dist/modules/supply/documentSet/route.schema.d.ts +1 -1
  162. package/dist/modules/supply/documentType/interfaces.d.ts +66 -66
  163. package/dist/modules/supply/documentType/route.schema.d.ts +1 -1
  164. package/dist/modules/supply/externalDocumentHeader/interface.d.ts +3 -3
  165. package/dist/modules/supply/externalDocumentHeader/route.schema.d.ts +1 -1
  166. package/dist/modules/supply/externalDocumentType/interface.d.ts +2 -2
  167. package/dist/modules/supply/orderManagement/interface.d.ts +1 -1
  168. package/dist/modules/supply/payment/interface.d.ts +11 -11
  169. package/dist/modules/supply/payment/route.schema.d.ts +1 -1
  170. package/dist/modules/supply/paymentBatch/interface.d.ts +3 -3
  171. package/dist/modules/supply/paymentBatch/route.schema.d.ts +2 -2
  172. package/dist/modules/supply/preSale/interface.d.ts +4 -4
  173. package/dist/modules/supply/preSale/route.schema.d.ts +1 -1
  174. package/dist/modules/supply/preSaleProduct/interface.d.ts +2 -2
  175. package/dist/modules/supply/preSaleProduct/route.schema.d.ts +1 -1
  176. package/dist/modules/supply/schedule/interface.d.ts +8 -8
  177. package/dist/modules/supply/schedule/route.schema.d.ts +1 -1
  178. package/dist/modules/supply/startDocumentHeaderLastUpdate/interface.d.ts +2 -2
  179. package/dist/modules/tickets/channel/interfaces.d.ts +3 -3
  180. package/dist/modules/tickets/channel/route.schema.d.ts +1 -1
  181. package/dist/modules/tickets/clt/interfaces.d.ts +3 -3
  182. package/dist/modules/tickets/clt/route.schema.d.ts +1 -1
  183. package/dist/modules/tickets/language/interfaces.d.ts +3 -3
  184. package/dist/modules/tickets/language/route.schema.d.ts +1 -1
  185. package/dist/modules/tickets/tickets/interfaces.d.ts +3 -3
  186. package/dist/modules/tickets/tickets/route.schema.d.ts +1 -1
  187. package/dist/modules/ui/portal/interface.d.ts +4 -4
  188. package/dist/modules/ui/portal/route.schema.d.ts +1 -1
  189. package/dist/modules/ui/sideMenu/interface.d.ts +2 -2
  190. package/dist/modules/ui/sideMenu/route.schema.d.ts +1 -1
  191. package/dist/modules/ui/sidemenuHighlight/interface.d.ts +3 -3
  192. package/dist/modules/ui/sidemenuHighlight/route.schema.d.ts +1 -1
  193. package/dist/modules/user/bankData/interface.d.ts +6 -6
  194. package/dist/modules/user/bankData/route.schema.d.ts +1 -1
  195. package/dist/modules/user/chatSubscribers/interfaces.d.ts +6 -6
  196. package/dist/modules/user/chatSubscribers/route.schema.d.ts +2 -2
  197. package/dist/modules/user/clientType/interface.d.ts +5 -5
  198. package/dist/modules/user/clientType/route.schema.d.ts +1 -1
  199. package/dist/modules/user/clients/interface.d.ts +9 -13
  200. package/dist/modules/user/clients/route.schema.d.ts +1 -1
  201. package/dist/modules/user/commissioner/interface.d.ts +7 -7
  202. package/dist/modules/user/commissioner/route.schema.d.ts +1 -1
  203. package/dist/modules/user/country/interface.d.ts +5 -5
  204. package/dist/modules/user/country/route.schema.d.ts +1 -1
  205. package/dist/modules/user/deliveryMethods/interfaces.d.ts +2 -2
  206. package/dist/modules/user/deliveryMethods/route.schema.d.ts +1 -1
  207. package/dist/modules/user/favorites/interfaces.d.ts +2 -2
  208. package/dist/modules/user/favorites/route.schema.d.ts +3 -3
  209. package/dist/modules/user/language/interface.d.ts +5 -5
  210. package/dist/modules/user/language/route.schema.d.ts +1 -1
  211. package/dist/modules/user/maturityDates/interfaces.d.ts +2 -2
  212. package/dist/modules/user/maturityDates/route.schema.d.ts +1 -1
  213. package/dist/modules/user/password/interfaces.d.ts +1 -1
  214. package/dist/modules/user/password/route.schema.d.ts +1 -1
  215. package/dist/modules/user/paymentMethods/interfaces.d.ts +16 -16
  216. package/dist/modules/user/paymentMethods/route.schema.d.ts +1 -1
  217. package/dist/modules/user/persona/interface.d.ts +3 -3
  218. package/dist/modules/user/persona/route.schema.d.ts +1 -1
  219. package/dist/modules/user/providerType/interface.d.ts +5 -5
  220. package/dist/modules/user/providerType/route.schema.d.ts +1 -1
  221. package/dist/modules/user/providers/interface.d.ts +11 -9
  222. package/dist/modules/user/providers/route.schema.d.ts +1 -1
  223. package/dist/modules/user/purchaseConditions/interface.d.ts +6 -9
  224. package/dist/modules/user/purchaseConditions/route.schema.d.ts +1 -1
  225. package/dist/modules/user/reasonForExemption/interface.d.ts +8 -8
  226. package/dist/modules/user/reasonForExemption/route.schema.d.ts +1 -1
  227. package/dist/modules/user/refreshToken/interface.d.ts +1 -1
  228. package/dist/modules/user/refreshToken/route.schema.d.ts +1 -1
  229. package/dist/modules/user/segmentsArea/interface.d.ts +5 -5
  230. package/dist/modules/user/segmentsArea/route.schema.d.ts +1 -1
  231. package/dist/modules/user/sessions/interface.d.ts +1 -1
  232. package/dist/modules/user/sessions/route.schema.d.ts +1 -1
  233. package/dist/modules/user/shippings/interface.d.ts +6 -6
  234. package/dist/modules/user/shippings/route.schema.d.ts +1 -1
  235. package/dist/modules/user/storeOperator/interface.d.ts +6 -6
  236. package/dist/modules/user/storeOperator/route.schema.d.ts +1 -1
  237. package/dist/modules/user/swift/interface.d.ts +5 -5
  238. package/dist/modules/user/swift/route.schema.d.ts +1 -1
  239. package/dist/modules/user/systemModule/interface.d.ts +2 -2
  240. package/dist/modules/user/systemModule/route.schema.d.ts +1 -1
  241. package/dist/modules/user/tenant/interface.d.ts +2 -2
  242. package/dist/modules/user/tenant/route.schema.d.ts +1 -1
  243. package/dist/modules/user/theme/interfaces.d.ts +2 -2
  244. package/dist/modules/user/theme/route.schema.d.ts +1 -1
  245. package/dist/modules/user/timeSheet/interfaces.d.ts +5 -5
  246. package/dist/modules/user/timeSheet/route.schema.d.ts +1 -1
  247. package/dist/modules/user/userPositions/interface.d.ts +5 -5
  248. package/dist/modules/user/userPositions/route.schema.d.ts +1 -1
  249. package/dist/modules/user/userTokens/interface.d.ts +3 -3
  250. package/dist/modules/user/userTokens/route.schema.d.ts +1 -1
  251. package/dist/modules/user/users/interface.d.ts +10 -10
  252. package/dist/modules/user/users/route.schema.d.ts +1 -1
  253. package/dist/modules/user/vehicles/interfaces.d.ts +3 -3
  254. package/dist/modules/user/vehicles/route.schema.d.ts +1 -1
  255. package/dist/modules/user/zipCode/interfaces.d.ts +1 -1
  256. package/dist/modules/user/zipCode/route.schema.d.ts +1 -1
  257. package/dist/modules/view/errorLog/interfaces.d.ts +7 -7
  258. package/dist/modules/view/errorLog/route.schema.d.ts +1 -1
  259. package/dist/modules/view/webSocket/interfaces.d.ts +23 -23
  260. package/dist/shared/entities/integration.d.ts +1 -1
  261. package/dist/shared/entities/sms.d.ts +1 -2
  262. package/dist/shared/entities/stock.d.ts +25 -25
  263. package/dist/shared/entities/user.d.ts +4 -4
  264. package/dist/shared/interface.d.ts +42 -42
  265. package/dist/shared/messages.d.ts +1 -1
  266. package/package.json +25 -10
@@ -1,73 +1,73 @@
1
- import type { IChatBalloon } from '../../stock/chat/interfaces';
2
- import type { ILastTicketCalledTodayByChannel, IRemainingTodayTickets } from '../../tickets/tickets/interfaces';
3
- import type { IPublicDocument, IPublicFindBySubscriberId, ITags } from '../../ui/portal/interface';
4
- import type { IFindByOwnerIdItemWithVersions } from '../../supply/externalDocumentHeader/interface';
1
+ import type { IChatBalloon } from "../../stock/chat/interfaces";
2
+ import type { IFindByOwnerIdItemWithVersions } from "../../supply/externalDocumentHeader/interface";
3
+ import type { ILastTicketCalledTodayByChannel, IRemainingTodayTickets } from "../../tickets/tickets/interfaces";
4
+ import type { IPublicDocument, IPublicFindBySubscriberId, ITags } from "../../ui/portal/interface";
5
5
  export declare const Route = "ws";
6
6
  export interface IEvent {
7
7
  type: string;
8
8
  }
9
9
  export interface IPing extends IEvent {
10
- type: 'ping';
10
+ type: "ping";
11
11
  }
12
12
  export interface IPong extends IEvent {
13
- type: 'pong';
13
+ type: "pong";
14
14
  }
15
15
  export interface IChatTranslationUpdated extends IEvent {
16
- type: 'chat.translation.updated';
16
+ type: "chat.translation.updated";
17
17
  chat_id: string;
18
18
  translation: string;
19
19
  target_language_id: string;
20
20
  }
21
21
  export interface IChatMessageCreated extends IEvent {
22
- type: 'chat.message.created';
22
+ type: "chat.message.created";
23
23
  balloon: IChatBalloon;
24
24
  }
25
25
  export interface IChatFileCreated extends IEvent {
26
- type: 'chat.file.created';
26
+ type: "chat.file.created";
27
27
  balloon: IChatBalloon;
28
28
  }
29
29
  export interface IChatMessageUpdated extends IEvent {
30
- type: 'chat.message.updated';
30
+ type: "chat.message.updated";
31
31
  chat_id: string;
32
- patch: Partial<NonNullable<IChatBalloon['chat']>>;
32
+ patch: Partial<NonNullable<IChatBalloon["chat"]>>;
33
33
  }
34
34
  export interface IChatMessageDeleted extends IEvent {
35
- type: 'chat.message.deleted';
35
+ type: "chat.message.deleted";
36
36
  chat_id: string;
37
37
  }
38
38
  export interface IChatFileDeleted extends IEvent {
39
- type: 'chat.file.deleted';
39
+ type: "chat.file.deleted";
40
40
  file_id: string;
41
41
  }
42
42
  export interface IChatReadStateUpdated extends IEvent {
43
- type: 'chat.read_state.updated';
43
+ type: "chat.read_state.updated";
44
44
  chat_document_header_id: string;
45
45
  client_read: boolean;
46
46
  chat_id?: string;
47
47
  file_id?: string;
48
48
  }
49
49
  export interface IChatTagsUpdated extends IEvent {
50
- type: 'chat.tags.updated';
50
+ type: "chat.tags.updated";
51
51
  chat_document_header_id: string;
52
52
  tags: ITags[];
53
53
  }
54
54
  export interface IPersonaUpdated extends IEvent {
55
- type: 'persona.updated';
56
- persona: NonNullable<IPublicFindBySubscriberId['persona']>;
55
+ type: "persona.updated";
56
+ persona: NonNullable<IPublicFindBySubscriberId["persona"]>;
57
57
  }
58
58
  export interface IDocumentUpdated extends IEvent {
59
- type: 'document.updated';
59
+ type: "document.updated";
60
60
  document: IPublicDocument;
61
61
  }
62
62
  export type ChatSocketEvent = IChatTranslationUpdated | IChatMessageCreated | IChatFileCreated | IChatMessageUpdated | IChatMessageDeleted | IChatFileDeleted | IChatReadStateUpdated | IChatTagsUpdated | IPersonaUpdated | IDocumentUpdated | IPing | IPong;
63
63
  export interface ITicketsChanged extends IEvent {
64
- type: 'tickets.changed';
64
+ type: "tickets.changed";
65
65
  last_tickets_called_today_by_channel: ILastTicketCalledTodayByChannel[];
66
66
  remaining_today_tickets_to_call: IRemainingTodayTickets[];
67
67
  }
68
68
  export type TicketsSocketEvent = ITicketsChanged | IPing | IPong;
69
69
  export interface IPropostaSheetsImportStatus extends IEvent {
70
- type: 'proposta_sheets.import.status';
70
+ type: "proposta_sheets.import.status";
71
71
  document_header_id: string;
72
72
  google_sheet_id: string;
73
73
  is_processing: boolean;
@@ -83,18 +83,18 @@ export type PropostaSheetsSocketEvent = IPropostaSheetsImportStatus | IPing | IP
83
83
  * `item.document_header_id` to decide between insert and replace.
84
84
  */
85
85
  export interface IExternalDocumentUpserted extends IEvent {
86
- type: 'external_document.upserted';
86
+ type: "external_document.upserted";
87
87
  owner_id: string;
88
88
  item: IFindByOwnerIdItemWithVersions;
89
89
  }
90
90
  export type SupplyDocumentSocketEvent = IExternalDocumentUpserted | IPing | IPong;
91
91
  export interface IPushNotificationEvent extends IEvent {
92
- type: 'push_notification';
92
+ type: "push_notification";
93
93
  counts: Record<string, number>;
94
94
  timestamp?: string;
95
95
  }
96
96
  export interface ISidemenuHighlightChangedEvent extends IEvent {
97
- type: 'sidemenu_highlight_changed';
97
+ type: "sidemenu_highlight_changed";
98
98
  store_operator_id: string;
99
99
  values: string[];
100
100
  timestamp?: string;
@@ -1,4 +1,4 @@
1
- import type { IProjectInfoType, IBudgetOptionsType, IProjectInfoOriginType } from '../../modules/integration/projectInfo/interfaces';
1
+ import type { IBudgetOptionsType, IProjectInfoOriginType, IProjectInfoType } from "../../modules/integration/projectInfo/interfaces";
2
2
  /**
3
3
  * Model Observation
4
4
  *
@@ -1,4 +1,4 @@
1
- import { ISmsSenderStats } from '../../modules/sms/smsSender/interfaces';
1
+ import { ISmsSenderStats } from "../../modules/sms/smsSender/interfaces";
2
2
  /**
3
3
  * Model SmsSender
4
4
  *
@@ -36,7 +36,6 @@ export type SmsTemplate = {
36
36
  export type AllowedDevice = {
37
37
  id: string;
38
38
  key: string;
39
- apk_name: string;
40
39
  name: string | null;
41
40
  allow_app: boolean;
42
41
  allow_sms: boolean;
@@ -1,19 +1,19 @@
1
- import { IConflict } from '../../modules/document/propostaSheets/interface';
2
- import { IDocumentTypeUserType, IDocumentTypeCodeType } from '../../modules/supply/documentType/interfaces';
3
- import { IBatchType } from '../../modules/supply/paymentBatch/interface';
4
- import { IExpectDeliveryDates, IProductType } from '../../modules/stock/productGoogleSheets/interface';
5
- import { IImageType } from '../../modules/stock/productImage/interface';
6
- import { ITagType } from '../../modules/stock/tag/interface';
7
- import { IQueryParameterDatatype } from '../../modules/stock/queryParameter/interfaces';
8
- import { IData, IDataDocumentoPago, IDataPagamento, IPromotions, type IImportedFromSheets } from '../../modules/supply/documentLine/interfaces';
9
- import { ISavedEmPickingData } from '../../modules/stock/savedEmPicking/interfaces';
10
- import { IDocumentLineNoteType } from '../../modules/supply/documentLineNote/interfaces';
11
- import { IProductSheetState } from '../../modules/stock/productGoogleSheets/interface';
12
- import { ITaskStatusDataType } from '../../modules/stock/task/interface';
13
- import type { IRsaHashData, ITaxEntry } from '../../modules/supply/documentHeader/interfaces';
14
- import type { ProjectInfo } from './integration';
15
- import { IEstadoEncomenda } from '../../modules/stock/conferirEncomenda/interface';
16
- import { IMotivosDeEsperaData } from '../../modules/document/order/interfaces';
1
+ import { IMotivosDeEsperaData } from "../../modules/document/order/interfaces";
2
+ import { IConflict } from "../../modules/document/propostaSheets/interface";
3
+ import { IEstadoEncomenda } from "../../modules/stock/conferirEncomenda/interface";
4
+ import { IExpectDeliveryDates, IProductType } from "../../modules/stock/productGoogleSheets/interface";
5
+ import { IProductSheetState } from "../../modules/stock/productGoogleSheets/interface";
6
+ import { IImageType } from "../../modules/stock/productImage/interface";
7
+ import { IQueryParameterDatatype } from "../../modules/stock/queryParameter/interfaces";
8
+ import { ISavedEmPickingData } from "../../modules/stock/savedEmPicking/interfaces";
9
+ import { ITagType } from "../../modules/stock/tag/interface";
10
+ import { ITaskStatusDataType } from "../../modules/stock/task/interface";
11
+ import type { IRsaHashData, ITaxEntry } from "../../modules/supply/documentHeader/interfaces";
12
+ import { IData, IDataDocumentoPago, IDataPagamento, type IImportedFromSheets, IPromotions } from "../../modules/supply/documentLine/interfaces";
13
+ import { IDocumentLineNoteType } from "../../modules/supply/documentLineNote/interfaces";
14
+ import { IDocumentTypeCodeType, IDocumentTypeUserType } from "../../modules/supply/documentType/interfaces";
15
+ import { IBatchType } from "../../modules/supply/paymentBatch/interface";
16
+ import type { ProjectInfo } from "./integration";
17
17
  /**
18
18
  * Model AccountCode
19
19
  *
@@ -60,7 +60,7 @@ export type Location = {
60
60
  street: string;
61
61
  locality: string;
62
62
  postal_code: string;
63
- geolocation: unknown | null;
63
+ geolocation?: unknown;
64
64
  default_billing: boolean;
65
65
  default_delivery: boolean;
66
66
  origin_id: string | null;
@@ -342,8 +342,8 @@ export type DocumentHeader = {
342
342
  tenant_nif: string;
343
343
  atcud: string | null;
344
344
  hash: string | null;
345
- hash_data: IRsaHashData | {};
346
- project_info: ProjectInfo | {};
345
+ hash_data?: IRsaHashData;
346
+ project_info?: ProjectInfo;
347
347
  paired_with: string | null;
348
348
  comercial_discount_value: number | null;
349
349
  gross_value: number | null;
@@ -655,8 +655,8 @@ export type GoogleSheetImports = {
655
655
  id: string;
656
656
  google_sheet_id: string;
657
657
  done: boolean;
658
- data: unknown | null;
659
- error: unknown | null;
658
+ data?: unknown;
659
+ error?: unknown;
660
660
  created_at: Date;
661
661
  created_by: string;
662
662
  updated_at: Date;
@@ -721,7 +721,7 @@ export interface Task {
721
721
  task: string;
722
722
  finished: boolean;
723
723
  archived: boolean;
724
- history: unknown | null;
724
+ history?: unknown;
725
725
  status: ITaskStatusDataType;
726
726
  future_date: Date | null;
727
727
  number: number;
@@ -1099,7 +1099,7 @@ export type DocumentHeaderSurvey = {
1099
1099
  document_header_id: string;
1100
1100
  document_number: number;
1101
1101
  sent: Date | null;
1102
- data: unknown | null;
1102
+ data?: unknown;
1103
1103
  };
1104
1104
  /**
1105
1105
  * Model DocumentHeaderSubscriber
@@ -1125,9 +1125,9 @@ export type GoogleCalendar = {
1125
1125
  event_id: string | null;
1126
1126
  summary: string;
1127
1127
  initial_date: Date;
1128
- status: 'confirmed' | 'tentative' | 'cancelled';
1128
+ status: "confirmed" | "tentative" | "cancelled";
1129
1129
  color_id: string | null;
1130
- document_type: 'RM' | 'MT' | null;
1130
+ document_type: "RM" | "MT" | null;
1131
1131
  document_number: string | null;
1132
1132
  document_line_id: string | null;
1133
1133
  action: string | null;
@@ -1,7 +1,7 @@
1
- import { IPaymentMethodsSaftCodeEnum } from '../../modules/user/paymentMethods/interfaces';
2
- import type { IReasonForExemptionType } from '../../modules/user/reasonForExemption/interface';
3
- import type { SystemModuleEnum } from '../../modules/user/systemModule/interface';
4
- import { ITimeSheetRecordType, ITimeSheetRegistryType } from '../../modules/user/timeSheet/interfaces';
1
+ import { IPaymentMethodsSaftCodeEnum } from "../../modules/user/paymentMethods/interfaces";
2
+ import type { IReasonForExemptionType } from "../../modules/user/reasonForExemption/interface";
3
+ import type { SystemModuleEnum } from "../../modules/user/systemModule/interface";
4
+ import { ITimeSheetRecordType, ITimeSheetRegistryType } from "../../modules/user/timeSheet/interfaces";
5
5
  /**
6
6
  * Model Users
7
7
  *
@@ -1,21 +1,21 @@
1
- import joi from 'joi';
2
- import { messages } from './messages';
3
- import type { IGetUserData } from '../modules/integration/googleSheets/interfaces';
4
- import type { IDocumentTypeUserType } from '../modules/supply/documentType/interfaces';
5
- import type { IScheduleType } from '../modules/supply/schedule/interface';
6
- import type { IWarningType } from '../modules/supply/documentHeader/interfaces';
7
- import type { IChat, IEmail, IEncomenda, IMultimedia, IMultimediaSummary, IPostgresBackup, IPrint, IProjectInfo, IProposta, IServiceLogs, IServiceStatus, IStock, ITask } from '../modules/view/adminPanel/interfaces';
8
- import type * as ErrorLog from '../modules/view/errorLog/interfaces';
9
- import type { File } from './entities/stock';
10
- import type { ProjectInfo } from './entities/integration';
11
- import type { IAttachment } from '../modules/supply/externalDocumentHeader/interface';
12
- import type { Persona } from './entities/user';
13
- import type { ITranslateRequest } from '../modules/stock/chat/interfaces';
14
- import type { ChatSocketEvent, TicketsSocketEvent, SupplyDocumentSocketEvent } from '../modules/view/webSocket/interfaces';
15
- import type { SystemModuleEnum } from '../modules/user/systemModule/interface';
1
+ import joi from "joi";
2
+ import type { IGetUserData } from "../modules/integration/googleSheets/interfaces";
3
+ import type { ITranslateRequest } from "../modules/stock/chat/interfaces";
4
+ import type { IWarningType } from "../modules/supply/documentHeader/interfaces";
5
+ import type { IDocumentTypeUserType } from "../modules/supply/documentType/interfaces";
6
+ import type { IAttachment } from "../modules/supply/externalDocumentHeader/interface";
7
+ import type { IScheduleType } from "../modules/supply/schedule/interface";
8
+ import type { SystemModuleEnum } from "../modules/user/systemModule/interface";
9
+ import type { IChat, IEmail, IEncomenda, IMultimedia, IMultimediaSummary, IPostgresBackup, IPrint, IProjectInfo, IProposta, IServiceLogs, IServiceStatus, IStock, ITask } from "../modules/view/adminPanel/interfaces";
10
+ import type * as ErrorLog from "../modules/view/errorLog/interfaces";
11
+ import type { ChatSocketEvent, SupplyDocumentSocketEvent, TicketsSocketEvent } from "../modules/view/webSocket/interfaces";
12
+ import type { ProjectInfo } from "./entities/integration";
13
+ import type { File } from "./entities/stock";
14
+ import type { Persona } from "./entities/user";
15
+ import { messages } from "./messages";
16
16
  export { messages };
17
- type CreatedAt = 'created_at';
18
- type UpdatedAt = 'updated_at';
17
+ type CreatedAt = "created_at";
18
+ type UpdatedAt = "updated_at";
19
19
  export interface WithCreatedAt {
20
20
  created_at: Date;
21
21
  }
@@ -28,8 +28,8 @@ export interface WithOriginId {
28
28
  export type WithTimestamps = WithCreatedAt & WithUpdatedAt;
29
29
  export type WithTimestampsOriginID = (WithCreatedAt & WithUpdatedAt) | WithOriginId;
30
30
  export type WithoutTimestamps<T> = Omit<T, CreatedAt | UpdatedAt>;
31
- type CreatedBy = 'created_by';
32
- type UpdatedBy = 'updated_by';
31
+ type CreatedBy = "created_by";
32
+ type UpdatedBy = "updated_by";
33
33
  export interface WithCreatedBy {
34
34
  created_by?: string | null;
35
35
  }
@@ -91,23 +91,23 @@ export interface ILogGoogleApiRequest {
91
91
  error?: string;
92
92
  }
93
93
  export declare const IDataTypeEnum: {
94
- date: 'date';
95
- datetime: 'datetime';
96
- text: 'text';
97
- decimal: 'decimal';
98
- integer: 'integer';
99
- select: 'select';
100
- select_multi: 'select_multi';
101
- select_custom: 'select_custom';
102
- boolean: 'boolean';
103
- url: 'url';
104
- email: 'email';
105
- tel: 'tel';
106
- file: 'file';
107
- password: 'password';
108
- multiline: 'multiline';
109
- json: 'json';
110
- userstamp: 'userstamp';
94
+ date: "date";
95
+ datetime: "datetime";
96
+ text: "text";
97
+ decimal: "decimal";
98
+ integer: "integer";
99
+ select: "select";
100
+ select_multi: "select_multi";
101
+ select_custom: "select_custom";
102
+ boolean: "boolean";
103
+ url: "url";
104
+ email: "email";
105
+ tel: "tel";
106
+ file: "file";
107
+ password: "password";
108
+ multiline: "multiline";
109
+ json: "json";
110
+ userstamp: "userstamp";
111
111
  };
112
112
  export type IDatatype = (typeof IDataTypeEnum)[keyof typeof IDataTypeEnum];
113
113
  export declare const dataTypes: string[];
@@ -130,8 +130,8 @@ export declare const findMinifiedReponse: joi.ArraySchema<{
130
130
  }[]>;
131
131
  export declare const joiValidateStamps: IRouteResponseWithoutStamps<WithTimestampsOriginID>;
132
132
  export declare const IUserSendEmailDocumentTemplateEnum: {
133
- generic: 'generic';
134
- provider_payment_order: 'provider_payment_order';
133
+ generic: "generic";
134
+ provider_payment_order: "provider_payment_order";
135
135
  };
136
136
  export type IUserSendEmailDocumentTemplate = (typeof IUserSendEmailDocumentTemplateEnum)[keyof typeof IUserSendEmailDocumentTemplateEnum];
137
137
  export declare const IUserSendEmailDocumentTemplateTypes: string[];
@@ -237,7 +237,7 @@ export type IBrokerTopicPayload = {
237
237
  pf_number: string;
238
238
  provider_name: string;
239
239
  provider_email: string;
240
- attachments: Pick<File, 'title' | 'multimedia_id'>[];
240
+ attachments: Pick<File, "title" | "multimedia_id">[];
241
241
  };
242
242
  [IBrokerTopic.undo_provider_order_schedule_email]: {
243
243
  provider_id: string;
@@ -284,7 +284,7 @@ export type IBrokerTopicPayload = {
284
284
  warningErrors: string[];
285
285
  };
286
286
  [IBrokerTopic.dispatch_chat_message]: {
287
- to: [Pick<Persona, 'email' | 'name' | 'telephone'>];
287
+ to: [Pick<Persona, "email" | "name" | "telephone">];
288
288
  reply_url: string;
289
289
  owner_id: string;
290
290
  document_header_id: string | null;
@@ -314,7 +314,7 @@ export type IBrokerTopicPayload = {
314
314
  is_processing: boolean;
315
315
  error: string | null;
316
316
  };
317
- [IBrokerTopic.import_master_artigos]: {};
317
+ [IBrokerTopic.import_master_artigos]: void;
318
318
  [IBrokerTopic.kafka_log]: {
319
319
  id: string;
320
320
  topic: string;
@@ -394,7 +394,7 @@ export type IBrokerTopicPayload = {
394
394
  chat_document_header_id: string;
395
395
  language_id: string;
396
396
  };
397
- [IBrokerTopic.persona_updated]: Pick<Persona, 'name' | 'nif' | 'telephone' | 'email' | 'street' | 'postal_code' | 'locality' | 'country_id' | 'reason_for_exemption_id'> & {
397
+ [IBrokerTopic.persona_updated]: Pick<Persona, "name" | "nif" | "telephone" | "email" | "street" | "postal_code" | "locality" | "country_id" | "reason_for_exemption_id"> & {
398
398
  id: string;
399
399
  owner_id?: string;
400
400
  owner_name?: string | null;
@@ -1,2 +1,2 @@
1
- import joi from 'joi';
1
+ import joi from "joi";
2
2
  export declare const messages: joi.LanguageMessages;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nomalism-com/types",
3
3
  "description": "A nomalism package with all necessary types and validations for developing APIs",
4
- "version": "0.46.43",
4
+ "version": "0.47.1",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -19,26 +19,32 @@
19
19
  "dist"
20
20
  ],
21
21
  "scripts": {
22
- "lint": "eslint --fix",
22
+ "lint": "eslint . --fix && prettier --write .",
23
23
  "prebuild": "rm -rf dist",
24
24
  "build": "tsc --emitDeclarationOnly && tsup",
25
25
  "postbuild": "cp dist/index.js dist/index.cjs",
26
- "prepack": "npm run lint && npm run build"
26
+ "prepack": "npm run lint && npm run build",
27
+ "format": "prettier --write .",
28
+ "prepare": "husky"
27
29
  },
28
30
  "dependencies": {
29
31
  "joi": "^18.2.3"
30
32
  },
31
33
  "devDependencies": {
34
+ "@eslint/js": "^10.0.1",
32
35
  "@swc/core": "^1.15.43",
33
- "@types/node": "^24.13.2",
36
+ "@types/node": "^26.1.0",
34
37
  "@typescript-eslint/eslint-plugin": "^8.62.0",
35
38
  "@typescript-eslint/parser": "^8.62.0",
36
- "eslint": "^9.39.4",
39
+ "eslint": "^10.6.0",
37
40
  "eslint-config-prettier": "^10.1.8",
38
- "eslint-import-resolver-typescript": "^4.4.5",
39
- "eslint-plugin-prettier": "^5.5.6",
40
- "prettier": "^3.8.4",
41
- "tsup": "^8.5.1"
41
+ "eslint-plugin-simple-import-sort": "^13.0.0",
42
+ "globals": "^17.7.0",
43
+ "husky": "^9.1.7",
44
+ "lint-staged": "^17.0.8",
45
+ "prettier": "^3.9.4",
46
+ "tsup": "^8.5.1",
47
+ "typescript-eslint": "^8.62.1"
42
48
  },
43
49
  "repository": {
44
50
  "type": "git",
@@ -48,5 +54,14 @@
48
54
  "url": "https://gitlab.com/nomalism-develop/types/issues"
49
55
  },
50
56
  "homepage": "https://gitlab.com/nomalism-develop/types",
51
- "browserslist": "> 0.25%, not dead"
57
+ "browserslist": "> 0.25%, not dead",
58
+ "lint-staged": {
59
+ "*.{js,mjs,cjs,ts,cts,mts}": [
60
+ "eslint --fix",
61
+ "prettier --write"
62
+ ],
63
+ "*.{json,jsonc,css,scss,md,html,yml,yaml}": [
64
+ "prettier --write"
65
+ ]
66
+ }
52
67
  }