@nomalism-com/types 1.3.43 → 1.3.44

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 +5950 -0
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.js +4946 -4900
  4. package/dist/main.d.ts +263 -261
  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 +2 -2
  12. package/dist/modules/document/billOfLading/route.schema.d.ts +3 -2
  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 +21 -0
  75. package/dist/modules/sms/allowedDevice/route.schema.d.ts +3 -0
  76. package/dist/modules/sms/smsSender/interfaces.d.ts +7 -3
  77. package/dist/modules/sms/smsTemplate/interfaces.d.ts +3 -5
  78. package/dist/modules/sms/smsTemplate/route.schema.d.ts +1 -3
  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 +2 -3
  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 +4 -4
  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 +10 -10
  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 +10 -12
  222. package/dist/modules/user/providers/route.schema.d.ts +3 -2
  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 +6 -6
  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 +17 -1
  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 +27 -12
@@ -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
  *
@@ -29,3 +29,19 @@ export type SmsTemplate = {
29
29
  created_by: string;
30
30
  updated_by: string;
31
31
  };
32
+ /**
33
+ * Model AllowedDevice
34
+ *
35
+ */
36
+ export type AllowedDevice = {
37
+ id: string;
38
+ key: string;
39
+ name: string | null;
40
+ allow_app: boolean;
41
+ allow_sms: boolean;
42
+ allow_ticket: boolean;
43
+ created_at: Date;
44
+ updated_at: Date;
45
+ created_by: string;
46
+ updated_by: string;
47
+ };
@@ -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;
@@ -336,8 +336,8 @@ export type DocumentHeader = {
336
336
  tenant_nif: string;
337
337
  atcud: string | null;
338
338
  hash: string | null;
339
- hash_data: IRsaHashData | {};
340
- project_info: ProjectInfo | {};
339
+ hash_data?: IRsaHashData;
340
+ project_info?: ProjectInfo;
341
341
  paired_with: string | null;
342
342
  comercial_discount_value: number | null;
343
343
  gross_value: number | null;
@@ -643,8 +643,8 @@ export type GoogleSheetImports = {
643
643
  id: string;
644
644
  google_sheet_id: string;
645
645
  done: boolean;
646
- data: unknown | null;
647
- error: unknown | null;
646
+ data?: unknown;
647
+ error?: unknown;
648
648
  created_at: Date;
649
649
  created_by: string;
650
650
  updated_at: Date;
@@ -708,7 +708,7 @@ export interface Task {
708
708
  task: string;
709
709
  finished: boolean;
710
710
  archived: boolean;
711
- history: unknown | null;
711
+ history?: unknown;
712
712
  status: ITaskStatusDataType;
713
713
  future_date: Date | null;
714
714
  number: number;
@@ -1082,7 +1082,7 @@ export type DocumentHeaderSurvey = {
1082
1082
  document_header_id: string;
1083
1083
  document_number: number;
1084
1084
  sent: Date | null;
1085
- data: unknown | null;
1085
+ data?: unknown;
1086
1086
  };
1087
1087
  /**
1088
1088
  * Model DocumentHeaderSubscriber
@@ -1108,9 +1108,9 @@ export type GoogleCalendar = {
1108
1108
  event_id: string | null;
1109
1109
  summary: string;
1110
1110
  initial_date: Date;
1111
- status: 'confirmed' | 'tentative' | 'cancelled';
1111
+ status: "confirmed" | "tentative" | "cancelled";
1112
1112
  color_id: string | null;
1113
- document_type: 'RM' | 'MT' | null;
1113
+ document_type: "RM" | "MT" | null;
1114
1114
  document_number: string | null;
1115
1115
  document_line_id: string | null;
1116
1116
  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[];
@@ -236,7 +236,7 @@ export type IBrokerTopicPayload = {
236
236
  pf_number: string;
237
237
  provider_name: string;
238
238
  provider_email: string;
239
- attachments: Pick<File, 'title' | 'multimedia_id'>[];
239
+ attachments: Pick<File, "title" | "multimedia_id">[];
240
240
  };
241
241
  [IBrokerTopic.undo_provider_order_schedule_email]: {
242
242
  provider_id: string;
@@ -283,7 +283,7 @@ export type IBrokerTopicPayload = {
283
283
  warningErrors: string[];
284
284
  };
285
285
  [IBrokerTopic.dispatch_chat_message]: {
286
- to: [Pick<Persona, 'email' | 'name' | 'telephone'>];
286
+ to: [Pick<Persona, "email" | "name" | "telephone">];
287
287
  reply_url: string;
288
288
  owner_id: string;
289
289
  document_header_id: string | null;
@@ -313,7 +313,7 @@ export type IBrokerTopicPayload = {
313
313
  is_processing: boolean;
314
314
  error: string | null;
315
315
  };
316
- [IBrokerTopic.import_master_artigos]: {};
316
+ [IBrokerTopic.import_master_artigos]: void;
317
317
  [IBrokerTopic.kafka_log]: {
318
318
  id: string;
319
319
  topic: string;
@@ -385,7 +385,7 @@ export type IBrokerTopicPayload = {
385
385
  chat_document_header_id: string;
386
386
  language_id: string;
387
387
  };
388
- [IBrokerTopic.persona_updated]: Pick<Persona, 'name' | 'nif' | 'telephone' | 'email' | 'street' | 'postal_code' | 'locality' | 'country_id' | 'reason_for_exemption_id'> & {
388
+ [IBrokerTopic.persona_updated]: Pick<Persona, "name" | "nif" | "telephone" | "email" | "street" | "postal_code" | "locality" | "country_id" | "reason_for_exemption_id"> & {
389
389
  id: string;
390
390
  owner_id?: string;
391
391
  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": "1.3.43",
4
+ "version": "1.3.44",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -17,25 +17,31 @@
17
17
  "dist"
18
18
  ],
19
19
  "scripts": {
20
- "lint": "eslint --fix",
20
+ "lint": "eslint . --fix && prettier --write .",
21
21
  "prebuild": "rm -rf dist",
22
22
  "build": "tsc --emitDeclarationOnly && tsup",
23
- "prepack": "npm run lint && npm run build"
23
+ "postbuild": "cp dist/index.js dist/index.cjs",
24
+ "prepack": "npm run lint && npm run build",
25
+ "prepare": "husky"
24
26
  },
25
27
  "dependencies": {
26
28
  "joi": "^18.2.3"
27
29
  },
28
30
  "devDependencies": {
31
+ "@eslint/js": "^10.0.1",
29
32
  "@swc/core": "^1.15.43",
30
- "@types/node": "^24.13.2",
31
- "@typescript-eslint/eslint-plugin": "^8.62.1",
32
- "@typescript-eslint/parser": "^8.62.1",
33
- "eslint": "^9.39.4",
33
+ "@types/node": "^26.1.1",
34
+ "@typescript-eslint/eslint-plugin": "^8.62.0",
35
+ "@typescript-eslint/parser": "^8.62.0",
36
+ "eslint": "^10.7.0",
34
37
  "eslint-config-prettier": "^10.1.8",
35
- "eslint-import-resolver-typescript": "^4.4.5",
36
- "eslint-plugin-prettier": "^5.5.6",
37
- "prettier": "^3.9.4",
38
- "tsup": "^8.5.1"
38
+ "eslint-plugin-simple-import-sort": "^13.0.0",
39
+ "globals": "^17.7.0",
40
+ "husky": "^9.1.7",
41
+ "lint-staged": "^17.0.8",
42
+ "prettier": "^3.9.5",
43
+ "tsup": "^8.5.1",
44
+ "typescript-eslint": "^8.63.0"
39
45
  },
40
46
  "repository": {
41
47
  "type": "git",
@@ -45,5 +51,14 @@
45
51
  "url": "https://gitlab.com/nomalism-develop/types/issues"
46
52
  },
47
53
  "homepage": "https://gitlab.com/nomalism-develop/types",
48
- "browserslist": "> 0.25%, not dead"
54
+ "browserslist": "> 0.25%, not dead",
55
+ "lint-staged": {
56
+ "*.{js,mjs,cjs,ts,cts,mts}": [
57
+ "eslint --fix",
58
+ "prettier --write"
59
+ ],
60
+ "*.{json,jsonc,css,scss,md,html,yml,yaml}": [
61
+ "prettier --write"
62
+ ]
63
+ }
49
64
  }