@nomalism-com/types 1.3.42 → 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.
- package/dist/index.cjs +5950 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4946 -4904
- package/dist/main.d.ts +263 -261
- package/dist/modules/document/CAT/interfaces.d.ts +1 -1
- package/dist/modules/document/CAT/route.schema.d.ts +2 -2
- package/dist/modules/document/NPF/interface.d.ts +1 -1
- package/dist/modules/document/NPF/route.schema.d.ts +1 -1
- package/dist/modules/document/NRCL/interface.d.ts +4 -4
- package/dist/modules/document/NRCL/route.schema.d.ts +1 -1
- package/dist/modules/document/billOfLading/interfaces.d.ts +2 -2
- package/dist/modules/document/billOfLading/route.schema.d.ts +3 -2
- package/dist/modules/document/inventario/interface.d.ts +1 -1
- package/dist/modules/document/inventario/route.schema.d.ts +1 -1
- package/dist/modules/document/materialEntrance/interfaces.d.ts +15 -15
- package/dist/modules/document/materialEntrance/route.schema.d.ts +2 -2
- package/dist/modules/document/order/interfaces.d.ts +3 -3
- package/dist/modules/document/order/route.schema.d.ts +2 -2
- package/dist/modules/document/productionOrder/interfaces.d.ts +1 -1
- package/dist/modules/document/productionOrder/route.schema.d.ts +1 -1
- package/dist/modules/document/proforma/interfaces.d.ts +1 -1
- package/dist/modules/document/proforma/route.schema.d.ts +2 -2
- package/dist/modules/document/propostaFornecedor/interfaces.d.ts +1 -1
- package/dist/modules/document/propostaFornecedor/route.schema.d.ts +1 -1
- package/dist/modules/document/propostaSheets/interface.d.ts +7 -7
- package/dist/modules/document/propostaSheets/route.schema.d.ts +2 -2
- package/dist/modules/document/providerCreditNoteFromReturn/interfaces.d.ts +1 -1
- package/dist/modules/document/providerCreditNoteFromReturn/route.schema.d.ts +1 -1
- package/dist/modules/document/providerFinancialCreditNote/interfaces.d.ts +1 -1
- package/dist/modules/document/providerFinancialCreditNote/route.schema.d.ts +1 -1
- package/dist/modules/document/providerServiceInvoice/interfaces.d.ts +1 -1
- package/dist/modules/document/providerServiceInvoice/route.schema.d.ts +1 -1
- package/dist/modules/document/purchase/interfaces.d.ts +3 -3
- package/dist/modules/document/purchase/route.schema.d.ts +2 -2
- package/dist/modules/document/quebra/interfaces.d.ts +2 -2
- package/dist/modules/document/quebra/route.schema.d.ts +1 -1
- package/dist/modules/document/returnToProvider/interface.d.ts +2 -2
- package/dist/modules/document/returnToProvider/route.schema.d.ts +1 -1
- package/dist/modules/document/transformado/interfaces.d.ts +1 -1
- package/dist/modules/document/transformado/route.schema.d.ts +1 -1
- package/dist/modules/document/upfrontReturn/interfaces.d.ts +1 -1
- package/dist/modules/document/upfrontReturn/route.schema.d.ts +1 -1
- package/dist/modules/documentManagement/multimedia/interfaces.d.ts +3 -3
- package/dist/modules/documentManagement/multimedia/route.schema.d.ts +1 -1
- package/dist/modules/integration/emailLog/interfaces.d.ts +9 -9
- package/dist/modules/integration/emailLog/route.schema.d.ts +2 -2
- package/dist/modules/integration/emailTemplate/interfaces.d.ts +3 -3
- package/dist/modules/integration/emailTemplate/route.schema.d.ts +2 -2
- package/dist/modules/integration/emailTemplateAttachment/interfaces.d.ts +2 -2
- package/dist/modules/integration/emailTemplateAttachment/route.schema.d.ts +1 -1
- package/dist/modules/integration/emailVerification/interfaces.d.ts +2 -2
- package/dist/modules/integration/emailVerification/route.schema.d.ts +2 -2
- package/dist/modules/integration/googleFilePermission/interfaces.d.ts +2 -2
- package/dist/modules/integration/googleFilePermission/route.schema.d.ts +3 -3
- package/dist/modules/integration/googleSheets/interfaces.d.ts +9 -9
- package/dist/modules/integration/googleSheets/route.schema.d.ts +1 -1
- package/dist/modules/integration/observation/interfaces.d.ts +3 -3
- package/dist/modules/integration/observation/route.schema.d.ts +1 -1
- package/dist/modules/integration/observationType/interfaces.d.ts +3 -3
- package/dist/modules/integration/observationType/route.schema.d.ts +3 -3
- package/dist/modules/integration/patchNotes/interfaces.d.ts +2 -2
- package/dist/modules/integration/projectInfo/interfaces.d.ts +7 -7
- package/dist/modules/integration/projectInfo/route.schema.d.ts +1 -1
- package/dist/modules/integration/settings/interfaces.d.ts +2 -2
- package/dist/modules/integration/settings/route.schema.d.ts +1 -1
- package/dist/modules/llm/llm/interfaces.d.ts +1 -1
- package/dist/modules/llm/llm/route.schema.d.ts +1 -1
- package/dist/modules/print/npc/interfaces.d.ts +3 -3
- package/dist/modules/print/npc/route.schema.d.ts +1 -1
- package/dist/modules/print/printer/interfaces.d.ts +7 -7
- package/dist/modules/print/printer/route.schema.d.ts +1 -1
- package/dist/modules/print/schedulePrintJob/interfaces.d.ts +3 -3
- package/dist/modules/print/schedulePrintJob/route.schema.d.ts +2 -2
- package/dist/modules/sms/allowedDevice/interfaces.d.ts +21 -0
- package/dist/modules/sms/allowedDevice/route.schema.d.ts +3 -0
- package/dist/modules/sms/smsSender/interfaces.d.ts +7 -3
- package/dist/modules/sms/smsTemplate/interfaces.d.ts +3 -5
- package/dist/modules/sms/smsTemplate/route.schema.d.ts +1 -3
- package/dist/modules/stock/accountCode/interface.d.ts +1 -1
- package/dist/modules/stock/accountCode/route.schema.d.ts +1 -1
- package/dist/modules/stock/chat/interfaces.d.ts +5 -5
- package/dist/modules/stock/chat/route.schema.d.ts +2 -2
- package/dist/modules/stock/chatRapidMessage/interface.d.ts +2 -2
- package/dist/modules/stock/chatRapidMessage/route.schema.d.ts +1 -1
- package/dist/modules/stock/conferirEncomenda/interface.d.ts +2 -3
- package/dist/modules/stock/dashboard/interface.d.ts +1 -1
- package/dist/modules/stock/dashboard/route.schema.d.ts +1 -1
- package/dist/modules/stock/file/interface.d.ts +2 -2
- package/dist/modules/stock/file/route.schema.d.ts +2 -2
- package/dist/modules/stock/gmails/interface.d.ts +2 -2
- package/dist/modules/stock/googleCalendar/interface.d.ts +1 -1
- package/dist/modules/stock/googleCalendar/route.schema.d.ts +2 -2
- package/dist/modules/stock/googleSheetPool/interface.d.ts +2 -2
- package/dist/modules/stock/location/interface.d.ts +6 -6
- package/dist/modules/stock/location/route.schema.d.ts +1 -1
- package/dist/modules/stock/mobilePrint/interface.d.ts +1 -1
- package/dist/modules/stock/mobilePrint/route.schema.d.ts +1 -1
- package/dist/modules/stock/prison/interface.d.ts +2 -2
- package/dist/modules/stock/prison/route.schema.d.ts +2 -2
- package/dist/modules/stock/productGoogleSheets/interface.d.ts +18 -18
- package/dist/modules/stock/productGoogleSheets/route.schema.d.ts +2 -2
- package/dist/modules/stock/productImage/interface.d.ts +8 -8
- package/dist/modules/stock/productImage/route.schema.d.ts +1 -1
- package/dist/modules/stock/productLocation/interface.d.ts +1 -1
- package/dist/modules/stock/promotion/interface.d.ts +6 -6
- package/dist/modules/stock/promotion/route.schema.d.ts +1 -1
- package/dist/modules/stock/promotionAssoc/interface.d.ts +6 -6
- package/dist/modules/stock/promotionAssoc/route.schema.d.ts +1 -1
- package/dist/modules/stock/queryList/interfaces.d.ts +4 -4
- package/dist/modules/stock/queryList/route.schema.d.ts +3 -3
- package/dist/modules/stock/queryParameter/interfaces.d.ts +12 -12
- package/dist/modules/stock/queryParameter/route.schema.d.ts +1 -1
- package/dist/modules/stock/recurrentTasks/interface.d.ts +1 -1
- package/dist/modules/stock/returnReason/interfaces.d.ts +2 -2
- package/dist/modules/stock/returnReason/route.schema.d.ts +1 -1
- package/dist/modules/stock/savedEmPicking/interfaces.d.ts +4 -4
- package/dist/modules/stock/savedEmPicking/route.schema.d.ts +2 -2
- package/dist/modules/stock/savedProviderProposal/interfaces.d.ts +2 -2
- package/dist/modules/stock/savedProviderProposal/route.schema.d.ts +1 -1
- package/dist/modules/stock/stockMovement/interface.d.ts +8 -8
- package/dist/modules/stock/stockMovement/route.schema.d.ts +1 -1
- package/dist/modules/stock/tag/interface.d.ts +7 -7
- package/dist/modules/stock/tag/route.schema.d.ts +1 -1
- package/dist/modules/stock/task/interface.d.ts +13 -13
- package/dist/modules/stock/task/route.schema.d.ts +1 -1
- package/dist/modules/stock/taskMessage/interface.d.ts +4 -4
- package/dist/modules/stock/taskMessage/route.schema.d.ts +1 -1
- package/dist/modules/stock/taskRead/interface.d.ts +4 -4
- package/dist/modules/stock/taskRead/route.schema.d.ts +1 -1
- package/dist/modules/stock/typeOfLocation/interface.d.ts +6 -6
- package/dist/modules/stock/typeOfLocation/route.schema.d.ts +1 -1
- package/dist/modules/stock/unitOfMeasure/interface.d.ts +6 -6
- package/dist/modules/stock/unitOfMeasure/route.schema.d.ts +1 -1
- package/dist/modules/stock/vatTax/interface.d.ts +6 -6
- package/dist/modules/stock/vatTax/route.schema.d.ts +1 -1
- package/dist/modules/stock/vatTaxZone/interface.d.ts +6 -6
- package/dist/modules/stock/vatTaxZone/route.schema.d.ts +1 -1
- package/dist/modules/stock/vatValidation/interfaces.d.ts +1 -1
- package/dist/modules/stock/vatValidation/route.schema.d.ts +1 -1
- package/dist/modules/stock/workflow/interfaces.d.ts +5 -5
- package/dist/modules/stock/workflow/route.schema.d.ts +1 -1
- package/dist/modules/supply/currentAccount/interface.d.ts +14 -14
- package/dist/modules/supply/currentAccount/route.schema.d.ts +2 -2
- package/dist/modules/supply/documentHeader/interfaces.d.ts +10 -10
- package/dist/modules/supply/documentHeader/route.schema.d.ts +3 -3
- package/dist/modules/supply/documentHeaderHistory/interfaces.d.ts +3 -3
- package/dist/modules/supply/documentHeaderSubscriber/interface.d.ts +2 -2
- package/dist/modules/supply/documentHeaderSubscriber/route.schema.d.ts +1 -1
- package/dist/modules/supply/documentHeaderSurvey/interfaces.d.ts +5 -5
- package/dist/modules/supply/documentHeaderSurvey/route.schema.d.ts +2 -2
- package/dist/modules/supply/documentLine/interfaces.d.ts +12 -12
- package/dist/modules/supply/documentLine/route.schema.d.ts +2 -2
- package/dist/modules/supply/documentLineAssoc/interfaces.d.ts +4 -4
- package/dist/modules/supply/documentLineMT/interface.d.ts +2 -2
- package/dist/modules/supply/documentLineMT/route.schema.d.ts +1 -1
- package/dist/modules/supply/documentLineNote/interfaces.d.ts +10 -10
- package/dist/modules/supply/documentLineNote/route.schema.d.ts +1 -1
- package/dist/modules/supply/documentLineRM/interface.d.ts +2 -2
- package/dist/modules/supply/documentLineRM/route.schema.d.ts +1 -1
- package/dist/modules/supply/documentSet/interface.d.ts +2 -6
- package/dist/modules/supply/documentSet/route.schema.d.ts +1 -1
- package/dist/modules/supply/documentType/interfaces.d.ts +66 -66
- package/dist/modules/supply/documentType/route.schema.d.ts +1 -1
- package/dist/modules/supply/externalDocumentHeader/interface.d.ts +3 -3
- package/dist/modules/supply/externalDocumentHeader/route.schema.d.ts +1 -1
- package/dist/modules/supply/externalDocumentType/interface.d.ts +2 -2
- package/dist/modules/supply/orderManagement/interface.d.ts +1 -1
- package/dist/modules/supply/payment/interface.d.ts +11 -11
- package/dist/modules/supply/payment/route.schema.d.ts +1 -1
- package/dist/modules/supply/paymentBatch/interface.d.ts +3 -3
- package/dist/modules/supply/paymentBatch/route.schema.d.ts +2 -2
- package/dist/modules/supply/preSale/interface.d.ts +4 -4
- package/dist/modules/supply/preSale/route.schema.d.ts +1 -1
- package/dist/modules/supply/preSaleProduct/interface.d.ts +2 -2
- package/dist/modules/supply/preSaleProduct/route.schema.d.ts +1 -1
- package/dist/modules/supply/schedule/interface.d.ts +8 -8
- package/dist/modules/supply/schedule/route.schema.d.ts +1 -1
- package/dist/modules/supply/startDocumentHeaderLastUpdate/interface.d.ts +2 -2
- package/dist/modules/tickets/channel/interfaces.d.ts +3 -3
- package/dist/modules/tickets/channel/route.schema.d.ts +1 -1
- package/dist/modules/tickets/clt/interfaces.d.ts +3 -3
- package/dist/modules/tickets/clt/route.schema.d.ts +1 -1
- package/dist/modules/tickets/language/interfaces.d.ts +3 -3
- package/dist/modules/tickets/language/route.schema.d.ts +1 -1
- package/dist/modules/tickets/tickets/interfaces.d.ts +3 -3
- package/dist/modules/tickets/tickets/route.schema.d.ts +1 -1
- package/dist/modules/ui/portal/interface.d.ts +4 -4
- package/dist/modules/ui/portal/route.schema.d.ts +1 -1
- package/dist/modules/ui/sideMenu/interface.d.ts +2 -2
- package/dist/modules/ui/sideMenu/route.schema.d.ts +1 -1
- package/dist/modules/ui/sidemenuHighlight/interface.d.ts +3 -3
- package/dist/modules/ui/sidemenuHighlight/route.schema.d.ts +1 -1
- package/dist/modules/user/bankData/interface.d.ts +6 -6
- package/dist/modules/user/bankData/route.schema.d.ts +1 -1
- package/dist/modules/user/chatSubscribers/interfaces.d.ts +6 -6
- package/dist/modules/user/chatSubscribers/route.schema.d.ts +2 -2
- package/dist/modules/user/clientType/interface.d.ts +5 -5
- package/dist/modules/user/clientType/route.schema.d.ts +1 -1
- package/dist/modules/user/clients/interface.d.ts +9 -13
- package/dist/modules/user/clients/route.schema.d.ts +1 -1
- package/dist/modules/user/commissioner/interface.d.ts +7 -7
- package/dist/modules/user/commissioner/route.schema.d.ts +1 -1
- package/dist/modules/user/country/interface.d.ts +5 -5
- package/dist/modules/user/country/route.schema.d.ts +1 -1
- package/dist/modules/user/deliveryMethods/interfaces.d.ts +2 -2
- package/dist/modules/user/deliveryMethods/route.schema.d.ts +1 -1
- package/dist/modules/user/favorites/interfaces.d.ts +2 -2
- package/dist/modules/user/favorites/route.schema.d.ts +3 -3
- package/dist/modules/user/language/interface.d.ts +5 -5
- package/dist/modules/user/language/route.schema.d.ts +1 -1
- package/dist/modules/user/maturityDates/interfaces.d.ts +2 -2
- package/dist/modules/user/maturityDates/route.schema.d.ts +1 -1
- package/dist/modules/user/password/interfaces.d.ts +1 -1
- package/dist/modules/user/password/route.schema.d.ts +1 -1
- package/dist/modules/user/paymentMethods/interfaces.d.ts +16 -16
- package/dist/modules/user/paymentMethods/route.schema.d.ts +1 -1
- package/dist/modules/user/persona/interface.d.ts +3 -3
- package/dist/modules/user/persona/route.schema.d.ts +1 -1
- package/dist/modules/user/providerType/interface.d.ts +5 -5
- package/dist/modules/user/providerType/route.schema.d.ts +1 -1
- package/dist/modules/user/providers/interface.d.ts +10 -12
- package/dist/modules/user/providers/route.schema.d.ts +3 -2
- package/dist/modules/user/purchaseConditions/interface.d.ts +6 -9
- package/dist/modules/user/purchaseConditions/route.schema.d.ts +1 -1
- package/dist/modules/user/reasonForExemption/interface.d.ts +8 -8
- package/dist/modules/user/reasonForExemption/route.schema.d.ts +1 -1
- package/dist/modules/user/refreshToken/interface.d.ts +1 -1
- package/dist/modules/user/refreshToken/route.schema.d.ts +1 -1
- package/dist/modules/user/segmentsArea/interface.d.ts +5 -5
- package/dist/modules/user/segmentsArea/route.schema.d.ts +1 -1
- package/dist/modules/user/sessions/interface.d.ts +1 -1
- package/dist/modules/user/sessions/route.schema.d.ts +1 -1
- package/dist/modules/user/shippings/interface.d.ts +6 -6
- package/dist/modules/user/shippings/route.schema.d.ts +1 -1
- package/dist/modules/user/storeOperator/interface.d.ts +6 -6
- package/dist/modules/user/storeOperator/route.schema.d.ts +1 -1
- package/dist/modules/user/swift/interface.d.ts +5 -5
- package/dist/modules/user/swift/route.schema.d.ts +1 -1
- package/dist/modules/user/systemModule/interface.d.ts +2 -2
- package/dist/modules/user/systemModule/route.schema.d.ts +1 -1
- package/dist/modules/user/tenant/interface.d.ts +2 -2
- package/dist/modules/user/tenant/route.schema.d.ts +1 -1
- package/dist/modules/user/theme/interfaces.d.ts +2 -2
- package/dist/modules/user/theme/route.schema.d.ts +1 -1
- package/dist/modules/user/timeSheet/interfaces.d.ts +5 -5
- package/dist/modules/user/timeSheet/route.schema.d.ts +1 -1
- package/dist/modules/user/userPositions/interface.d.ts +5 -5
- package/dist/modules/user/userPositions/route.schema.d.ts +1 -1
- package/dist/modules/user/userTokens/interface.d.ts +3 -3
- package/dist/modules/user/userTokens/route.schema.d.ts +1 -1
- package/dist/modules/user/users/interface.d.ts +10 -10
- package/dist/modules/user/users/route.schema.d.ts +1 -1
- package/dist/modules/user/vehicles/interfaces.d.ts +3 -3
- package/dist/modules/user/vehicles/route.schema.d.ts +1 -1
- package/dist/modules/user/zipCode/interfaces.d.ts +1 -1
- package/dist/modules/user/zipCode/route.schema.d.ts +1 -1
- package/dist/modules/view/errorLog/interfaces.d.ts +6 -6
- package/dist/modules/view/errorLog/route.schema.d.ts +1 -1
- package/dist/modules/view/webSocket/interfaces.d.ts +23 -23
- package/dist/shared/entities/integration.d.ts +1 -1
- package/dist/shared/entities/sms.d.ts +17 -1
- package/dist/shared/entities/stock.d.ts +25 -26
- package/dist/shared/entities/user.d.ts +4 -4
- package/dist/shared/interface.d.ts +42 -42
- package/dist/shared/messages.d.ts +1 -1
- package/package.json +27 -12
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import type { IChatBalloon } from
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
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:
|
|
10
|
+
type: "ping";
|
|
11
11
|
}
|
|
12
12
|
export interface IPong extends IEvent {
|
|
13
|
-
type:
|
|
13
|
+
type: "pong";
|
|
14
14
|
}
|
|
15
15
|
export interface IChatTranslationUpdated extends IEvent {
|
|
16
|
-
type:
|
|
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:
|
|
22
|
+
type: "chat.message.created";
|
|
23
23
|
balloon: IChatBalloon;
|
|
24
24
|
}
|
|
25
25
|
export interface IChatFileCreated extends IEvent {
|
|
26
|
-
type:
|
|
26
|
+
type: "chat.file.created";
|
|
27
27
|
balloon: IChatBalloon;
|
|
28
28
|
}
|
|
29
29
|
export interface IChatMessageUpdated extends IEvent {
|
|
30
|
-
type:
|
|
30
|
+
type: "chat.message.updated";
|
|
31
31
|
chat_id: string;
|
|
32
|
-
patch: Partial<NonNullable<IChatBalloon[
|
|
32
|
+
patch: Partial<NonNullable<IChatBalloon["chat"]>>;
|
|
33
33
|
}
|
|
34
34
|
export interface IChatMessageDeleted extends IEvent {
|
|
35
|
-
type:
|
|
35
|
+
type: "chat.message.deleted";
|
|
36
36
|
chat_id: string;
|
|
37
37
|
}
|
|
38
38
|
export interface IChatFileDeleted extends IEvent {
|
|
39
|
-
type:
|
|
39
|
+
type: "chat.file.deleted";
|
|
40
40
|
file_id: string;
|
|
41
41
|
}
|
|
42
42
|
export interface IChatReadStateUpdated extends IEvent {
|
|
43
|
-
type:
|
|
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:
|
|
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:
|
|
56
|
-
persona: NonNullable<IPublicFindBySubscriberId[
|
|
55
|
+
type: "persona.updated";
|
|
56
|
+
persona: NonNullable<IPublicFindBySubscriberId["persona"]>;
|
|
57
57
|
}
|
|
58
58
|
export interface IDocumentUpdated extends IEvent {
|
|
59
|
-
type:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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 {
|
|
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
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { IExpectDeliveryDates, IProductType } from
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { IQueryParameterDatatype } from
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
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
|
|
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
|
|
340
|
-
project_info
|
|
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;
|
|
@@ -459,7 +459,6 @@ export type Workflow = {
|
|
|
459
459
|
export type DocumentSet = {
|
|
460
460
|
id: string;
|
|
461
461
|
name: string;
|
|
462
|
-
active_by_default: boolean;
|
|
463
462
|
include_in_saft: boolean;
|
|
464
463
|
created_at: Date;
|
|
465
464
|
updated_at: Date;
|
|
@@ -644,8 +643,8 @@ export type GoogleSheetImports = {
|
|
|
644
643
|
id: string;
|
|
645
644
|
google_sheet_id: string;
|
|
646
645
|
done: boolean;
|
|
647
|
-
data
|
|
648
|
-
error
|
|
646
|
+
data?: unknown;
|
|
647
|
+
error?: unknown;
|
|
649
648
|
created_at: Date;
|
|
650
649
|
created_by: string;
|
|
651
650
|
updated_at: Date;
|
|
@@ -709,7 +708,7 @@ export interface Task {
|
|
|
709
708
|
task: string;
|
|
710
709
|
finished: boolean;
|
|
711
710
|
archived: boolean;
|
|
712
|
-
history
|
|
711
|
+
history?: unknown;
|
|
713
712
|
status: ITaskStatusDataType;
|
|
714
713
|
future_date: Date | null;
|
|
715
714
|
number: number;
|
|
@@ -1083,7 +1082,7 @@ export type DocumentHeaderSurvey = {
|
|
|
1083
1082
|
document_header_id: string;
|
|
1084
1083
|
document_number: number;
|
|
1085
1084
|
sent: Date | null;
|
|
1086
|
-
data
|
|
1085
|
+
data?: unknown;
|
|
1087
1086
|
};
|
|
1088
1087
|
/**
|
|
1089
1088
|
* Model DocumentHeaderSubscriber
|
|
@@ -1109,9 +1108,9 @@ export type GoogleCalendar = {
|
|
|
1109
1108
|
event_id: string | null;
|
|
1110
1109
|
summary: string;
|
|
1111
1110
|
initial_date: Date;
|
|
1112
|
-
status:
|
|
1111
|
+
status: "confirmed" | "tentative" | "cancelled";
|
|
1113
1112
|
color_id: string | null;
|
|
1114
|
-
document_type:
|
|
1113
|
+
document_type: "RM" | "MT" | null;
|
|
1115
1114
|
document_number: string | null;
|
|
1116
1115
|
document_line_id: string | null;
|
|
1117
1116
|
action: string | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IPaymentMethodsSaftCodeEnum } from
|
|
2
|
-
import type { IReasonForExemptionType } from
|
|
3
|
-
import type { SystemModuleEnum } from
|
|
4
|
-
import { ITimeSheetRecordType, ITimeSheetRegistryType } from
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type
|
|
9
|
-
import type {
|
|
10
|
-
import type
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
14
|
-
import type {
|
|
15
|
-
import
|
|
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 =
|
|
18
|
-
type UpdatedAt =
|
|
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 =
|
|
32
|
-
type UpdatedBy =
|
|
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:
|
|
95
|
-
datetime:
|
|
96
|
-
text:
|
|
97
|
-
decimal:
|
|
98
|
-
integer:
|
|
99
|
-
select:
|
|
100
|
-
select_multi:
|
|
101
|
-
select_custom:
|
|
102
|
-
boolean:
|
|
103
|
-
url:
|
|
104
|
-
email:
|
|
105
|
-
tel:
|
|
106
|
-
file:
|
|
107
|
-
password:
|
|
108
|
-
multiline:
|
|
109
|
-
json:
|
|
110
|
-
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:
|
|
134
|
-
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,
|
|
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,
|
|
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,
|
|
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
|
|
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.
|
|
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
|
-
"
|
|
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": "^
|
|
31
|
-
"@typescript-eslint/eslint-plugin": "^8.62.
|
|
32
|
-
"@typescript-eslint/parser": "^8.62.
|
|
33
|
-
"eslint": "^
|
|
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-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
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
|
}
|