@nomalism-com/types 1.3.37 → 1.3.39
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.js +856 -1019
- package/dist/main.d.ts +13 -1
- package/dist/modules/document/CAT/interfaces.d.ts +12 -0
- package/dist/modules/document/CAT/route.schema.d.ts +3 -0
- package/dist/modules/document/NRCL/interface.d.ts +1 -3
- package/dist/modules/document/billOfLading/interfaces.d.ts +1 -0
- package/dist/modules/document/inventario/interface.d.ts +0 -2
- package/dist/modules/document/materialEntrance/interfaces.d.ts +10 -6
- package/dist/modules/document/order/interfaces.d.ts +0 -2
- package/dist/modules/document/productionOrder/interfaces.d.ts +1 -0
- package/dist/modules/document/proforma/interfaces.d.ts +1 -0
- package/dist/modules/document/propostaFornecedor/interfaces.d.ts +1 -0
- package/dist/modules/document/propostaSheets/interface.d.ts +1 -3
- package/dist/modules/document/providerCreditNoteFromReturn/interfaces.d.ts +1 -0
- package/dist/modules/document/providerFinancialCreditNote/interfaces.d.ts +1 -0
- package/dist/modules/document/providerServiceInvoice/interfaces.d.ts +1 -0
- package/dist/modules/document/purchase/interfaces.d.ts +0 -2
- package/dist/modules/document/quebra/interfaces.d.ts +0 -2
- package/dist/modules/document/returnToProvider/interface.d.ts +0 -2
- package/dist/modules/document/transformado/interfaces.d.ts +0 -2
- package/dist/modules/document/upfrontReturn/interfaces.d.ts +0 -2
- package/dist/modules/documentManagement/multimedia/interfaces.d.ts +1 -2
- package/dist/modules/integration/emailLog/interfaces.d.ts +0 -2
- package/dist/modules/integration/emailTemplate/interfaces.d.ts +0 -2
- package/dist/modules/integration/emailTemplateAttachment/interfaces.d.ts +0 -2
- package/dist/modules/integration/emailVerification/interfaces.d.ts +0 -2
- package/dist/modules/integration/googleFilePermission/interfaces.d.ts +0 -2
- package/dist/modules/integration/googleSheets/interfaces.d.ts +0 -2
- package/dist/modules/integration/observation/interfaces.d.ts +0 -2
- package/dist/modules/integration/observationType/interfaces.d.ts +1 -3
- package/dist/modules/integration/patchNotes/interfaces.d.ts +0 -2
- package/dist/modules/integration/projectInfo/interfaces.d.ts +0 -2
- package/dist/modules/integration/settings/interfaces.d.ts +0 -2
- package/dist/modules/llm/llm/interfaces.d.ts +5 -0
- package/dist/modules/print/npc/interfaces.d.ts +0 -2
- package/dist/modules/print/printer/interfaces.d.ts +0 -2
- package/dist/modules/print/schedulePrintJob/interfaces.d.ts +0 -2
- package/dist/modules/stock/accountCode/interface.d.ts +0 -2
- package/dist/modules/stock/chat/interfaces.d.ts +0 -2
- package/dist/modules/stock/chatRapidMessage/interface.d.ts +1 -3
- package/dist/modules/stock/conferirEncomenda/interface.d.ts +2 -3
- package/dist/modules/stock/dashboard/interface.d.ts +0 -2
- package/dist/modules/stock/file/interface.d.ts +0 -2
- package/dist/modules/stock/gmails/interface.d.ts +0 -2
- package/dist/modules/stock/googleCalendar/interface.d.ts +0 -2
- package/dist/modules/stock/googleSheetPool/interface.d.ts +0 -2
- package/dist/modules/stock/location/interface.d.ts +0 -2
- package/dist/modules/stock/mobilePrint/interface.d.ts +13 -0
- package/dist/modules/stock/mobilePrint/route.schema.d.ts +2 -0
- package/dist/modules/stock/prison/interface.d.ts +0 -2
- package/dist/modules/stock/productGoogleSheets/interface.d.ts +7 -4
- package/dist/modules/stock/productGoogleSheets/route.schema.d.ts +2 -1
- package/dist/modules/stock/productImage/interface.d.ts +0 -2
- package/dist/modules/stock/productLocation/interface.d.ts +18 -0
- package/dist/modules/stock/promotion/interface.d.ts +0 -2
- package/dist/modules/stock/promotionAssoc/interface.d.ts +0 -2
- package/dist/modules/stock/queryList/interfaces.d.ts +0 -2
- package/dist/modules/stock/queryParameter/interfaces.d.ts +0 -2
- package/dist/modules/stock/recurrentTasks/interface.d.ts +0 -2
- package/dist/modules/stock/returnReason/interfaces.d.ts +0 -2
- package/dist/modules/stock/savedEmPicking/interfaces.d.ts +0 -2
- package/dist/modules/stock/savedProviderProposal/interfaces.d.ts +0 -2
- package/dist/modules/stock/stockMovement/interface.d.ts +0 -2
- package/dist/modules/stock/tag/interface.d.ts +0 -2
- package/dist/modules/stock/task/interface.d.ts +0 -2
- package/dist/modules/stock/taskMessage/interface.d.ts +0 -2
- package/dist/modules/stock/taskRead/interface.d.ts +0 -2
- package/dist/modules/stock/typeOfLocation/interface.d.ts +0 -2
- package/dist/modules/stock/unitOfMeasure/interface.d.ts +0 -2
- package/dist/modules/stock/vatTax/interface.d.ts +0 -2
- package/dist/modules/stock/vatTaxZone/interface.d.ts +0 -2
- package/dist/modules/stock/vatValidation/interfaces.d.ts +0 -2
- package/dist/modules/stock/workflow/interfaces.d.ts +0 -2
- package/dist/modules/supply/currentAccount/interface.d.ts +5 -6
- package/dist/modules/supply/documentHeader/interfaces.d.ts +6 -19
- package/dist/modules/supply/documentHeader/route.schema.d.ts +0 -1
- package/dist/modules/supply/documentHeaderHistory/interfaces.d.ts +1 -3
- package/dist/modules/supply/documentHeaderSubscriber/interface.d.ts +1 -3
- package/dist/modules/supply/documentHeaderSurvey/interfaces.d.ts +1 -3
- package/dist/modules/supply/documentLine/interfaces.d.ts +3 -4
- package/dist/modules/supply/documentLine/route.schema.d.ts +2 -1
- package/dist/modules/supply/documentLineAssoc/interfaces.d.ts +1 -3
- package/dist/modules/supply/documentLineMT/interface.d.ts +0 -2
- package/dist/modules/supply/documentLineNote/interfaces.d.ts +1 -3
- package/dist/modules/supply/documentLineRM/interface.d.ts +0 -2
- package/dist/modules/supply/documentSet/interface.d.ts +0 -2
- package/dist/modules/supply/documentType/interfaces.d.ts +3 -3
- package/dist/modules/supply/externalDocumentHeader/interface.d.ts +0 -2
- package/dist/modules/supply/externalDocumentType/interface.d.ts +0 -2
- package/dist/modules/supply/orderManagement/interface.d.ts +0 -2
- package/dist/modules/supply/payment/interface.d.ts +0 -2
- package/dist/modules/supply/paymentBatch/interface.d.ts +1 -3
- package/dist/modules/supply/preSale/interface.d.ts +0 -2
- package/dist/modules/supply/preSaleProduct/interface.d.ts +0 -2
- package/dist/modules/supply/schedule/interface.d.ts +0 -2
- package/dist/modules/supply/startDocumentHeaderLastUpdate/interface.d.ts +0 -2
- package/dist/modules/tickets/channel/interfaces.d.ts +0 -2
- package/dist/modules/tickets/clt/interfaces.d.ts +0 -2
- package/dist/modules/tickets/language/interfaces.d.ts +0 -2
- package/dist/modules/tickets/tickets/interfaces.d.ts +0 -2
- package/dist/modules/ui/portal/interface.d.ts +1 -0
- package/dist/modules/ui/sideMenu/interface.d.ts +2 -0
- package/dist/modules/ui/sidemenuHighlight/interface.d.ts +34 -0
- package/dist/modules/ui/sidemenuHighlight/route.schema.d.ts +3 -0
- package/dist/modules/user/bankData/interface.d.ts +0 -2
- package/dist/modules/user/chatSubscribers/interfaces.d.ts +6 -2
- package/dist/modules/user/chatSubscribers/route.schema.d.ts +2 -0
- package/dist/modules/user/clientType/interface.d.ts +0 -2
- package/dist/modules/user/clients/interface.d.ts +0 -2
- package/dist/modules/user/commissioner/interface.d.ts +0 -2
- package/dist/modules/user/country/interface.d.ts +0 -2
- package/dist/modules/user/deliveryMethods/interfaces.d.ts +0 -2
- package/dist/modules/user/favorites/interfaces.d.ts +0 -2
- package/dist/modules/user/language/interface.d.ts +0 -2
- package/dist/modules/user/maturityDates/interfaces.d.ts +0 -2
- package/dist/modules/user/paymentMethods/interfaces.d.ts +0 -2
- package/dist/modules/user/persona/interface.d.ts +0 -2
- package/dist/modules/user/providerType/interface.d.ts +0 -2
- package/dist/modules/user/providers/interface.d.ts +0 -2
- package/dist/modules/user/purchaseConditions/interface.d.ts +0 -2
- package/dist/modules/user/reasonForExemption/interface.d.ts +0 -2
- package/dist/modules/user/refreshToken/interface.d.ts +1 -1
- package/dist/modules/user/segmentsArea/interface.d.ts +0 -2
- package/dist/modules/user/sessions/interface.d.ts +5 -0
- package/dist/modules/user/shippings/interface.d.ts +0 -2
- package/dist/modules/user/storeOperator/interface.d.ts +1 -2
- package/dist/modules/user/swift/interface.d.ts +0 -2
- package/dist/modules/user/systemModule/interface.d.ts +43 -0
- package/dist/modules/user/systemModule/route.schema.d.ts +3 -0
- package/dist/modules/user/tenant/interface.d.ts +0 -2
- package/dist/modules/user/theme/interfaces.d.ts +0 -2
- package/dist/modules/user/timeSheet/interfaces.d.ts +73 -0
- package/dist/modules/user/timeSheet/route.schema.d.ts +3 -0
- package/dist/modules/user/userPositions/interface.d.ts +0 -2
- package/dist/modules/user/userTokens/interface.d.ts +0 -2
- package/dist/modules/user/users/interface.d.ts +3 -3
- package/dist/modules/user/vehicles/interfaces.d.ts +0 -2
- package/dist/modules/user/zipCode/interfaces.d.ts +0 -2
- package/dist/modules/view/adminPanel/interfaces.d.ts +0 -2
- package/dist/modules/view/errorLog/interfaces.d.ts +1 -3
- package/dist/modules/view/webSocket/interfaces.d.ts +94 -0
- package/dist/shared/entities/stock.d.ts +16 -0
- package/dist/shared/entities/user.d.ts +43 -42
- package/dist/shared/interface.d.ts +33 -14
- package/package.json +8 -8
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
export declare const Route = "ws";
|
|
5
|
+
export interface IEvent {
|
|
6
|
+
type: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IPing extends IEvent {
|
|
9
|
+
type: 'ping';
|
|
10
|
+
}
|
|
11
|
+
export interface IPong extends IEvent {
|
|
12
|
+
type: 'pong';
|
|
13
|
+
}
|
|
14
|
+
export interface IChatTranslationUpdated extends IEvent {
|
|
15
|
+
type: 'chat.translation.updated';
|
|
16
|
+
chat_id: string;
|
|
17
|
+
translation: string;
|
|
18
|
+
target_language_id: string;
|
|
19
|
+
}
|
|
20
|
+
export interface IChatMessageCreated extends IEvent {
|
|
21
|
+
type: 'chat.message.created';
|
|
22
|
+
balloon: IChatBalloon;
|
|
23
|
+
}
|
|
24
|
+
export interface IChatFileCreated extends IEvent {
|
|
25
|
+
type: 'chat.file.created';
|
|
26
|
+
balloon: IChatBalloon;
|
|
27
|
+
}
|
|
28
|
+
export interface IChatMessageUpdated extends IEvent {
|
|
29
|
+
type: 'chat.message.updated';
|
|
30
|
+
chat_id: string;
|
|
31
|
+
patch: Partial<NonNullable<IChatBalloon['chat']>>;
|
|
32
|
+
}
|
|
33
|
+
export interface IChatMessageDeleted extends IEvent {
|
|
34
|
+
type: 'chat.message.deleted';
|
|
35
|
+
chat_id: string;
|
|
36
|
+
}
|
|
37
|
+
export interface IChatFileDeleted extends IEvent {
|
|
38
|
+
type: 'chat.file.deleted';
|
|
39
|
+
file_id: string;
|
|
40
|
+
}
|
|
41
|
+
export interface IChatReadStateUpdated extends IEvent {
|
|
42
|
+
type: 'chat.read_state.updated';
|
|
43
|
+
chat_document_header_id: string;
|
|
44
|
+
client_read: boolean;
|
|
45
|
+
chat_id?: string;
|
|
46
|
+
file_id?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface IChatTagsUpdated extends IEvent {
|
|
49
|
+
type: 'chat.tags.updated';
|
|
50
|
+
chat_document_header_id: string;
|
|
51
|
+
tags: ITags[];
|
|
52
|
+
}
|
|
53
|
+
export interface IPersonaUpdated extends IEvent {
|
|
54
|
+
type: 'persona.updated';
|
|
55
|
+
persona: NonNullable<IPublicFindBySubscriberId['persona']>;
|
|
56
|
+
}
|
|
57
|
+
export interface IDocumentUpdated extends IEvent {
|
|
58
|
+
type: 'document.updated';
|
|
59
|
+
document: IPublicDocument;
|
|
60
|
+
}
|
|
61
|
+
export type ChatSocketEvent = IChatTranslationUpdated | IChatMessageCreated | IChatFileCreated | IChatMessageUpdated | IChatMessageDeleted | IChatFileDeleted | IChatReadStateUpdated | IChatTagsUpdated | IPersonaUpdated | IDocumentUpdated | IPing | IPong;
|
|
62
|
+
export interface ITicketsChanged extends IEvent {
|
|
63
|
+
type: 'tickets.changed';
|
|
64
|
+
last_tickets_called_today_by_channel: ILastTicketCalledTodayByChannel[];
|
|
65
|
+
remaining_today_tickets_to_call: IRemainingTodayTickets[];
|
|
66
|
+
}
|
|
67
|
+
export type TicketsSocketEvent = ITicketsChanged | IPing | IPong;
|
|
68
|
+
export interface IPushNotificationEvent extends IEvent {
|
|
69
|
+
type: 'push_notification';
|
|
70
|
+
counts: Record<string, number>;
|
|
71
|
+
timestamp?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface ISidemenuHighlightChangedEvent extends IEvent {
|
|
74
|
+
type: 'sidemenu_highlight_changed';
|
|
75
|
+
store_operator_id: string;
|
|
76
|
+
values: string[];
|
|
77
|
+
timestamp?: string;
|
|
78
|
+
}
|
|
79
|
+
export type SideMenuSocketEvent = IPushNotificationEvent | ISidemenuHighlightChangedEvent | IPing | IPong;
|
|
80
|
+
export interface SocketOptions<T extends IEvent> {
|
|
81
|
+
token: string;
|
|
82
|
+
channel?: string;
|
|
83
|
+
onEvent: (evt: T) => void;
|
|
84
|
+
onOpen?: () => void;
|
|
85
|
+
onReconnect?: () => void;
|
|
86
|
+
onClose?: () => void;
|
|
87
|
+
onAuthUnverified?: () => void;
|
|
88
|
+
}
|
|
89
|
+
export interface SocketHandle {
|
|
90
|
+
close: () => void;
|
|
91
|
+
}
|
|
92
|
+
export interface IClient {
|
|
93
|
+
openSocket<T extends IEvent>(data: SocketOptions<T>): SocketHandle;
|
|
94
|
+
}
|
|
@@ -318,6 +318,8 @@ export type DocumentHeader = {
|
|
|
318
318
|
commission_percentage: number;
|
|
319
319
|
commission_paid: boolean;
|
|
320
320
|
return_reason: string | null;
|
|
321
|
+
is_prepared: boolean;
|
|
322
|
+
is_rejected: boolean;
|
|
321
323
|
is_archived: boolean;
|
|
322
324
|
is_void: boolean;
|
|
323
325
|
is_void_reason: string | null;
|
|
@@ -341,6 +343,7 @@ export type DocumentHeader = {
|
|
|
341
343
|
document_name: string;
|
|
342
344
|
external_document_name: string | null;
|
|
343
345
|
qrcode: string | null;
|
|
346
|
+
seller: string | null;
|
|
344
347
|
created_at: Date;
|
|
345
348
|
updated_at: Date;
|
|
346
349
|
created_by: string;
|
|
@@ -1110,3 +1113,16 @@ export type GoogleCalendar = {
|
|
|
1110
1113
|
done: Date | null;
|
|
1111
1114
|
error: string | null;
|
|
1112
1115
|
};
|
|
1116
|
+
/**
|
|
1117
|
+
* Model SidemenuHightlight
|
|
1118
|
+
*
|
|
1119
|
+
*/
|
|
1120
|
+
export type SidemenuHightlight = {
|
|
1121
|
+
id: string;
|
|
1122
|
+
store_operator_id: string;
|
|
1123
|
+
value: string;
|
|
1124
|
+
created_at: Date;
|
|
1125
|
+
updated_at: Date;
|
|
1126
|
+
created_by: string;
|
|
1127
|
+
updated_by: string;
|
|
1128
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IPaymentMethodsSaftCodeEnum } from '../../modules/user/paymentMethods/interfaces';
|
|
2
2
|
import type { IReasonForExemptionType } from '../../modules/user/reasonForExemption/interface';
|
|
3
|
+
import type { SystemModuleEnum } from '../../modules/user/systemModule/interface';
|
|
4
|
+
import { IClockType, IRegistryType, ITimesheetState } from '../../modules/user/timeSheet/interfaces';
|
|
3
5
|
/**
|
|
4
6
|
* Model Users
|
|
5
7
|
*
|
|
@@ -38,48 +40,6 @@ export type Favorites = {
|
|
|
38
40
|
created_at: Date;
|
|
39
41
|
updated_at: Date;
|
|
40
42
|
};
|
|
41
|
-
/**
|
|
42
|
-
* Model Permissions
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
export type Permissions = {
|
|
46
|
-
id: number;
|
|
47
|
-
code: string;
|
|
48
|
-
description: string;
|
|
49
|
-
enable: boolean;
|
|
50
|
-
created_at: Date;
|
|
51
|
-
updated_at: Date;
|
|
52
|
-
created_by: string;
|
|
53
|
-
updated_by: string;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Model GroupPermissions
|
|
57
|
-
*
|
|
58
|
-
*/
|
|
59
|
-
export type GroupPermissions = {
|
|
60
|
-
id: number;
|
|
61
|
-
code: string;
|
|
62
|
-
description: string;
|
|
63
|
-
enable: boolean;
|
|
64
|
-
created_at: Date;
|
|
65
|
-
updated_at: Date;
|
|
66
|
-
created_by: string;
|
|
67
|
-
updated_by: string;
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* Model UserPermissions
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
export type UserPermissions = {
|
|
74
|
-
id: number;
|
|
75
|
-
user_id: string;
|
|
76
|
-
group_id: number;
|
|
77
|
-
permission_id: number;
|
|
78
|
-
created_at: Date;
|
|
79
|
-
updated_at: Date;
|
|
80
|
-
created_by: string;
|
|
81
|
-
updated_by: string;
|
|
82
|
-
};
|
|
83
43
|
/**
|
|
84
44
|
* Model Providers
|
|
85
45
|
*
|
|
@@ -506,3 +466,44 @@ export type ChatSubscriber = {
|
|
|
506
466
|
created_by: string;
|
|
507
467
|
updated_by: string;
|
|
508
468
|
};
|
|
469
|
+
/**
|
|
470
|
+
* Model SystemModule
|
|
471
|
+
*
|
|
472
|
+
*/
|
|
473
|
+
export type SystemModule = {
|
|
474
|
+
id: string;
|
|
475
|
+
store_operator_id: string;
|
|
476
|
+
value: SystemModuleEnum;
|
|
477
|
+
created_at: Date;
|
|
478
|
+
updated_at: Date;
|
|
479
|
+
created_by: string;
|
|
480
|
+
updated_by: string;
|
|
481
|
+
};
|
|
482
|
+
/**
|
|
483
|
+
* Model TimeSheet
|
|
484
|
+
*
|
|
485
|
+
*/
|
|
486
|
+
export interface TimeSheetDay {
|
|
487
|
+
id: string;
|
|
488
|
+
date: Date;
|
|
489
|
+
total_worked: number;
|
|
490
|
+
balance: number;
|
|
491
|
+
user_id: string;
|
|
492
|
+
state: ITimesheetState;
|
|
493
|
+
created_at: Date;
|
|
494
|
+
updated_at: Date;
|
|
495
|
+
created_by: string;
|
|
496
|
+
updated_by: string;
|
|
497
|
+
}
|
|
498
|
+
export interface TimeSheetClock {
|
|
499
|
+
id: string;
|
|
500
|
+
timesheet_day_id: string;
|
|
501
|
+
time: Date;
|
|
502
|
+
type: IClockType;
|
|
503
|
+
registry_type: IRegistryType;
|
|
504
|
+
note: string | null;
|
|
505
|
+
created_at: Date;
|
|
506
|
+
updated_at: Date;
|
|
507
|
+
created_by: string;
|
|
508
|
+
updated_by: string;
|
|
509
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import joi from 'joi';
|
|
2
2
|
import { messages } from './messages';
|
|
3
|
-
import type { ILastTicketCalledTodayByChannel, IRemainingTodayTickets } from '../modules/tickets/tickets/interfaces';
|
|
4
3
|
import type { IGetUserData } from '../modules/integration/googleSheets/interfaces';
|
|
5
4
|
import type { IDocumentTypeUserType } from '../modules/supply/documentType/interfaces';
|
|
6
5
|
import type { IScheduleType } from '../modules/supply/schedule/interface';
|
|
@@ -12,6 +11,8 @@ import type { ProjectInfo } from './entities/integration';
|
|
|
12
11
|
import type { IAttachment } from '../modules/supply/externalDocumentHeader/interface';
|
|
13
12
|
import type { Persona } from './entities/user';
|
|
14
13
|
import type { ITranslateRequest } from '../modules/stock/chat/interfaces';
|
|
14
|
+
import type { ChatSocketEvent, TicketsSocketEvent } from '../modules/view/webSocket/interfaces';
|
|
15
|
+
import type { SystemModuleEnum } from '../modules/user/systemModule/interface';
|
|
15
16
|
export { messages };
|
|
16
17
|
type CreatedAt = 'created_at';
|
|
17
18
|
type UpdatedAt = 'updated_at';
|
|
@@ -39,7 +40,8 @@ export type WithUserstamps = WithCreatedBy & WithUpdatedBy;
|
|
|
39
40
|
export type WithoutUserstamps<T> = Omit<T, CreatedBy | UpdatedBy>;
|
|
40
41
|
export interface IUserToken {
|
|
41
42
|
id: string;
|
|
42
|
-
|
|
43
|
+
superuser?: boolean;
|
|
44
|
+
system_modules?: SystemModuleEnum[];
|
|
43
45
|
}
|
|
44
46
|
export type IEntityWithUserToken<T> = {
|
|
45
47
|
[K in keyof T]: T[K] extends (...params: infer U) => any ? (...params: [...U, IUserToken]) => ReturnType<T[K]> : T[K];
|
|
@@ -123,8 +125,8 @@ export declare const idNumberParam: joi.ObjectSchema<any>;
|
|
|
123
125
|
export declare const findMinifiedReponse: joi.ArraySchema<{
|
|
124
126
|
id: unknown;
|
|
125
127
|
name: unknown;
|
|
126
|
-
multimedia_id: unknown;
|
|
127
128
|
group: unknown;
|
|
129
|
+
multimedia_id: unknown;
|
|
128
130
|
}[]>;
|
|
129
131
|
export declare const joiValidateStamps: IRouteResponseWithoutStamps<WithTimestampsOriginID>;
|
|
130
132
|
export declare const IUserSendEmailDocumentTemplateEnum: {
|
|
@@ -135,6 +137,9 @@ export type IUserSendEmailDocumentTemplate = (typeof IUserSendEmailDocumentTempl
|
|
|
135
137
|
export declare const IUserSendEmailDocumentTemplateTypes: string[];
|
|
136
138
|
export declare enum IBrokerTopic {
|
|
137
139
|
tickets_change = "tickets_change",
|
|
140
|
+
push_notification = "push_notification",
|
|
141
|
+
portal_subscriber_events = "portal_subscriber_events",
|
|
142
|
+
sidemenu_highlight_changed = "sidemenu_highlight_changed",
|
|
138
143
|
user_send_email_password = "user_send_email_password",
|
|
139
144
|
grant_access = "grant_access",
|
|
140
145
|
remove_access = "remove_access",
|
|
@@ -152,11 +157,13 @@ export declare enum IBrokerTopic {
|
|
|
152
157
|
espera_devolver_catalogo_email = "espera_devolver_catalogo_email",
|
|
153
158
|
verification_email = "verification_email",
|
|
154
159
|
dispatch_chat_message = "dispatch_chat_message",
|
|
155
|
-
|
|
156
|
-
|
|
160
|
+
send_espera_info_cliente_messages = "send_espera_info_cliente_messages",
|
|
161
|
+
send_email_client_survey = "send_email_client_survey",
|
|
157
162
|
perform_task = "perform_task",
|
|
158
163
|
create_site_proposal = "create_site_proposal",
|
|
159
|
-
|
|
164
|
+
translate_chat_message = "translate_chat_message",
|
|
165
|
+
persona_updated = "persona_updated",
|
|
166
|
+
persona_lang_change = "persona_lang_change",
|
|
160
167
|
error_log = "error_log",
|
|
161
168
|
kafka_log = "kafka_log",
|
|
162
169
|
express_log = "express_log",
|
|
@@ -176,9 +183,7 @@ export declare enum IBrokerTopic {
|
|
|
176
183
|
googlesheet_task_log = "googlesheet_task_log",
|
|
177
184
|
googlesheet_stock_log = "googlesheet_stock_log",
|
|
178
185
|
googlesheet_encomenda_log = "googlesheet_encomenda_log",
|
|
179
|
-
log_google_api_request = "log_google_api_request"
|
|
180
|
-
send_espera_info_cliente_messages = "send_espera_info_cliente_messages",
|
|
181
|
-
send_email_client_survey = "send_email_client_survey"
|
|
186
|
+
log_google_api_request = "log_google_api_request"
|
|
182
187
|
}
|
|
183
188
|
export type IBrokerTopicPayload = {
|
|
184
189
|
[IBrokerTopic.google_sheet_import]: {
|
|
@@ -186,7 +191,6 @@ export type IBrokerTopicPayload = {
|
|
|
186
191
|
google_sheet_id: string;
|
|
187
192
|
original_document_header_id?: string;
|
|
188
193
|
user_id: string;
|
|
189
|
-
location_id: string;
|
|
190
194
|
};
|
|
191
195
|
[IBrokerTopic.user_send_email_password]: {
|
|
192
196
|
token: string;
|
|
@@ -213,10 +217,7 @@ export type IBrokerTopicPayload = {
|
|
|
213
217
|
[IBrokerTopic.remove_access]: {
|
|
214
218
|
email: string;
|
|
215
219
|
};
|
|
216
|
-
[IBrokerTopic.tickets_change]:
|
|
217
|
-
last_tickets_called_today_by_channel: ILastTicketCalledTodayByChannel[];
|
|
218
|
-
remaining_today_tickets_to_call: IRemainingTodayTickets[];
|
|
219
|
-
};
|
|
220
|
+
[IBrokerTopic.tickets_change]: TicketsSocketEvent;
|
|
220
221
|
[IBrokerTopic.google_sheet_set_permissions]: {
|
|
221
222
|
file_id: string;
|
|
222
223
|
email: string;
|
|
@@ -299,6 +300,11 @@ export type IBrokerTopicPayload = {
|
|
|
299
300
|
counts: Record<string, number>;
|
|
300
301
|
timestamp: string;
|
|
301
302
|
};
|
|
303
|
+
[IBrokerTopic.sidemenu_highlight_changed]: {
|
|
304
|
+
store_operator_id: string;
|
|
305
|
+
values: string[];
|
|
306
|
+
timestamp: string;
|
|
307
|
+
};
|
|
302
308
|
[IBrokerTopic.import_master_artigos]: {};
|
|
303
309
|
[IBrokerTopic.kafka_log]: {
|
|
304
310
|
id: string;
|
|
@@ -370,6 +376,19 @@ export type IBrokerTopicPayload = {
|
|
|
370
376
|
chat_document_header_id: string;
|
|
371
377
|
language_id: string;
|
|
372
378
|
};
|
|
379
|
+
[IBrokerTopic.persona_updated]: Pick<Persona, 'name' | 'nif' | 'telephone' | 'email' | 'street' | 'postal_code' | 'locality' | 'country_id' | 'reason_for_exemption_id'> & {
|
|
380
|
+
id: string;
|
|
381
|
+
owner_id?: string;
|
|
382
|
+
owner_name?: string | null;
|
|
383
|
+
updated_by: string;
|
|
384
|
+
country_name: string | null;
|
|
385
|
+
reason_for_exemption: string | null;
|
|
386
|
+
};
|
|
387
|
+
[IBrokerTopic.portal_subscriber_events]: {
|
|
388
|
+
chat_document_header_id: string;
|
|
389
|
+
target_subscriber_ids: string[];
|
|
390
|
+
event: ChatSocketEvent;
|
|
391
|
+
};
|
|
373
392
|
};
|
|
374
393
|
export interface IBrokerMessage<T extends IBrokerTopic = IBrokerTopic> {
|
|
375
394
|
topic: T;
|
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.39",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"joi": "^18.2.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@swc/core": "^1.15.
|
|
30
|
-
"@types/node": "^24.
|
|
31
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
32
|
-
"@typescript-eslint/parser": "^8.
|
|
29
|
+
"@swc/core": "^1.15.41",
|
|
30
|
+
"@types/node": "^24.13.2",
|
|
31
|
+
"@typescript-eslint/eslint-plugin": "^8.61.0",
|
|
32
|
+
"@typescript-eslint/parser": "^8.61.0",
|
|
33
33
|
"eslint": "^9.39.4",
|
|
34
34
|
"eslint-config-prettier": "^10.1.8",
|
|
35
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
36
|
-
"eslint-plugin-prettier": "^5.5.
|
|
37
|
-
"prettier": "^3.8.
|
|
35
|
+
"eslint-import-resolver-typescript": "^4.4.5",
|
|
36
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
37
|
+
"prettier": "^3.8.4",
|
|
38
38
|
"tsup": "^8.5.1"
|
|
39
39
|
},
|
|
40
40
|
"repository": {
|