@nomalism-com/types 1.3.24 → 1.3.27
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 +898 -927
- package/dist/main.d.ts +1 -2
- package/dist/modules/document/order/interfaces.d.ts +9 -39
- package/dist/modules/integration/emailTemplate/interfaces.d.ts +1 -4
- package/dist/modules/stock/chat/interfaces.d.ts +15 -23
- package/dist/modules/stock/conferirEncomenda/interface.d.ts +2 -3
- package/dist/modules/stock/file/interface.d.ts +2 -2
- package/dist/modules/stock/gmails/interface.d.ts +0 -32
- package/dist/modules/supply/documentHeader/interfaces.d.ts +3 -0
- package/dist/modules/supply/documentHeader/route.schema.d.ts +1 -0
- package/dist/modules/supply/documentLine/interfaces.d.ts +7 -1
- package/dist/modules/ui/portal/interface.d.ts +1 -1
- package/dist/modules/user/chatSubscribers/interfaces.d.ts +4 -7
- package/dist/modules/user/clients/interface.d.ts +0 -2
- package/dist/modules/user/commissioner/interface.d.ts +0 -2
- package/dist/modules/user/persona/interface.d.ts +0 -5
- package/dist/modules/user/providers/interface.d.ts +0 -2
- package/dist/shared/entities/integration.d.ts +3 -2
- package/dist/shared/entities/stock.d.ts +10 -12
- package/dist/shared/entities/user.d.ts +1 -7
- package/dist/shared/interface.d.ts +21 -1
- package/package.json +6 -6
- package/dist/modules/stock/gmails/route.schema.d.ts +0 -2
package/dist/main.d.ts
CHANGED
|
@@ -221,7 +221,6 @@ import * as ChatSubscriberRoutes from './modules/user/chatSubscribers/route.sche
|
|
|
221
221
|
import * as Tag from './modules/stock/tag/interface';
|
|
222
222
|
import * as TagRoutes from './modules/stock/tag/route.schema';
|
|
223
223
|
import * as Gmails from './modules/stock/gmails/interface';
|
|
224
|
-
import * as GmailsRoutes from './modules/stock/gmails/route.schema';
|
|
225
224
|
import * as NPF from './modules/document/NPF/interface';
|
|
226
225
|
import * as NPFRoutes from './modules/document/NPF/route.schema';
|
|
227
226
|
import * as NRCL from './modules/document/NRCL/interface';
|
|
@@ -239,4 +238,4 @@ import * as LLM from './modules/llm/llm/interfaces';
|
|
|
239
238
|
import * as LLMRoutes from './modules/llm/llm/route.schema';
|
|
240
239
|
import * as PatchNotes from './modules/integration/patchNotes/interfaces';
|
|
241
240
|
import * as ConferirEncomenda from './modules/stock/conferirEncomenda/interface';
|
|
242
|
-
export { shared, viewErrors, stockErrors, userErrors, documentManagementErrors, integrationErrors, ZipCode, ZipCodeRoutes, BankData, BankDataRoutes, Client, ClientRoutes, ClientType, ClientTypeRoutes, Chat, ChatRoutes, Commissioner, CommissionerRoutes, Country, CountryRoutes, DeliveryMethods, DeliveryMethodsRoutes, DocumentHeader, DocumentHeaderRoutes, DocumentHeaderHistory, BillOfLading, BillOfLadingRoutes, ProductionOrder, ProductionOrderRoutes, Proforma, ProformaRoutes, PropostaFornecedor, PropostaFornecedorRoutes, ProviderCreditNoteFromReturn, ProviderCreditNoteFromReturnRoutes, ProviderFinancialCreditNote, ProviderFinancialCreditNoteRoutes, ProviderServiceInvoice, ProviderServiceInvoiceRoutes, DocumentLine, DocumentLineRoutes, DocumentLineAssoc, DocumentLineAssocRoutes, DocumentSet, DocumentSetRoutes, DocumentType, DocumentTypeRoutes, ExternalDocumentType, ExternalDocumentHeader, ExternalDocumentHeaderRoutes, Favorites, FavoritesRoutes, File, FileRoutes, GoogleSheets, GoogleSheetsRoutes, Language, LanguageRoutes, Location, LocationRoutes, MaturityDates, MaturityDatesRoutes, Multimedia, MultimediaRoutes, OrderManagement, Observation, ObservationRoutes, ObservationType, ObservationTypeRoutes, Password, PasswordRoutes, Payment, PaymentRoutes, PaymentMethods, PaymentMethodsRoutes, ProductImage, ProductImageRoutes, Promotion, PromotionRoutes, PromotionAssoc, PromotionAssocRoutes, Providers, ProvidersRoutes, ProviderType, ProviderTypeRoutes, PurchaseConditions, PurchaseConditionsRoutes, ReasonForExemption, ReasonForExemptionRoutes, RefreshToken, RefreshTokenRoutes, SegmentsArea, SegmentsAreaRoutes, Sessions, SessionsRoutes, Shippings, ShippingsRoutes, StoreOperator, StoreOperatorRoutes, Swift, SwiftRoutes, TypeOfLocation, TypeOfLocationRoutes, UnitOfMeasure, UnitOfMeasureRoutes, UserPositions, UserPositionsRoutes, Users, UsersRoutes, UserTokens, UserTokensRoutes, VatValidation, VatValidationRoutes, VatTax, VatTaxRoutes, VatTaxZone, VatTaxZoneRoutes, Vehicles, VehiclesRoutes, Workflow, WorkflowRoutes, StockMovement, StockMovementRoutes, Tenant, TenantRoutes, PreSale, PreSaleRoutes, PreSaleProduct, PreSaleProductRoutes, Npc, NpcRoutes, Printer, PrinterRoutes, SchedulePrintJob, SchedulePrintJobRoutes, QueryList, QueryListRoutes, QueryParameter, QueryParameterRoutes, ReturnReason, ReturnReasonRoutes, PropostaSheets, PropostaSheetsRoutes, Schedule, ScheduleRoutes, GoogleFilePermission, GoogleFilePermissionRoutes, Settings, SettingsRoutes, Tickets, TicketsRoutes, Channel, ChannelRoutes, TicketsLanguage, TicketsLanguageRoutes, CLT, CLTRoutes, StartDocumentHeaderLastUpdate, Persona, PersonaRoutes, ProjectInfo, ProjectInfoRoutes, EmailVerification, EmailVerificationRoutes, EmailLog, EmailLogRoutes, Purchase, PurchaseRoutes, Order, OrderRoutes, MaterialEntrance, MaterialEntranceRoutes, Transformado, TransformadoRoutes, Quebra, QuebraRoutes, UpfrontReturn, UpfrontReturnRoutes, SavedEmPicking, SavedEmPickingRoutes, EmailTemplate, EmailTemplateRoutes, EmailTemplateAttachment, EmailTemplateAttachmentRoutes, Inventario, InventarioRoutes, ReturnToProvider, ReturnToProviderRoutes, Prison, PrisonRoutes, DocumentLineNote, DocumentLineNoteRoutes, SavedProviderProposal, SavedProviderProposalRoutes, ProductGoogleSheets, ProductGoogleSheetsRoutes, Task, TaskRoutes, TaskMessage, TaskMessageRoutes, RecurrentTasks, TaskRead, TaskReadRoutes, Theme, ThemeRoutes, Dashboard, DashboardRoutes, ChatRapidMessage, ChatRapidMessageRoutes, SideMenu, SideMenuRoutes, AdminPanel, ErrorLog, ErrorLogRoutes, DocumentLineRm, DocumentLineRmRoutes, DocumentLineMt, DocumentLineMtRoutes, ChatSubscriber, ChatSubscriberRoutes, Tag, TagRoutes, Gmails,
|
|
241
|
+
export { shared, viewErrors, stockErrors, userErrors, documentManagementErrors, integrationErrors, ZipCode, ZipCodeRoutes, BankData, BankDataRoutes, Client, ClientRoutes, ClientType, ClientTypeRoutes, Chat, ChatRoutes, Commissioner, CommissionerRoutes, Country, CountryRoutes, DeliveryMethods, DeliveryMethodsRoutes, DocumentHeader, DocumentHeaderRoutes, DocumentHeaderHistory, BillOfLading, BillOfLadingRoutes, ProductionOrder, ProductionOrderRoutes, Proforma, ProformaRoutes, PropostaFornecedor, PropostaFornecedorRoutes, ProviderCreditNoteFromReturn, ProviderCreditNoteFromReturnRoutes, ProviderFinancialCreditNote, ProviderFinancialCreditNoteRoutes, ProviderServiceInvoice, ProviderServiceInvoiceRoutes, DocumentLine, DocumentLineRoutes, DocumentLineAssoc, DocumentLineAssocRoutes, DocumentSet, DocumentSetRoutes, DocumentType, DocumentTypeRoutes, ExternalDocumentType, ExternalDocumentHeader, ExternalDocumentHeaderRoutes, Favorites, FavoritesRoutes, File, FileRoutes, GoogleSheets, GoogleSheetsRoutes, Language, LanguageRoutes, Location, LocationRoutes, MaturityDates, MaturityDatesRoutes, Multimedia, MultimediaRoutes, OrderManagement, Observation, ObservationRoutes, ObservationType, ObservationTypeRoutes, Password, PasswordRoutes, Payment, PaymentRoutes, PaymentMethods, PaymentMethodsRoutes, ProductImage, ProductImageRoutes, Promotion, PromotionRoutes, PromotionAssoc, PromotionAssocRoutes, Providers, ProvidersRoutes, ProviderType, ProviderTypeRoutes, PurchaseConditions, PurchaseConditionsRoutes, ReasonForExemption, ReasonForExemptionRoutes, RefreshToken, RefreshTokenRoutes, SegmentsArea, SegmentsAreaRoutes, Sessions, SessionsRoutes, Shippings, ShippingsRoutes, StoreOperator, StoreOperatorRoutes, Swift, SwiftRoutes, TypeOfLocation, TypeOfLocationRoutes, UnitOfMeasure, UnitOfMeasureRoutes, UserPositions, UserPositionsRoutes, Users, UsersRoutes, UserTokens, UserTokensRoutes, VatValidation, VatValidationRoutes, VatTax, VatTaxRoutes, VatTaxZone, VatTaxZoneRoutes, Vehicles, VehiclesRoutes, Workflow, WorkflowRoutes, StockMovement, StockMovementRoutes, Tenant, TenantRoutes, PreSale, PreSaleRoutes, PreSaleProduct, PreSaleProductRoutes, Npc, NpcRoutes, Printer, PrinterRoutes, SchedulePrintJob, SchedulePrintJobRoutes, QueryList, QueryListRoutes, QueryParameter, QueryParameterRoutes, ReturnReason, ReturnReasonRoutes, PropostaSheets, PropostaSheetsRoutes, Schedule, ScheduleRoutes, GoogleFilePermission, GoogleFilePermissionRoutes, Settings, SettingsRoutes, Tickets, TicketsRoutes, Channel, ChannelRoutes, TicketsLanguage, TicketsLanguageRoutes, CLT, CLTRoutes, StartDocumentHeaderLastUpdate, Persona, PersonaRoutes, ProjectInfo, ProjectInfoRoutes, EmailVerification, EmailVerificationRoutes, EmailLog, EmailLogRoutes, Purchase, PurchaseRoutes, Order, OrderRoutes, MaterialEntrance, MaterialEntranceRoutes, Transformado, TransformadoRoutes, Quebra, QuebraRoutes, UpfrontReturn, UpfrontReturnRoutes, SavedEmPicking, SavedEmPickingRoutes, EmailTemplate, EmailTemplateRoutes, EmailTemplateAttachment, EmailTemplateAttachmentRoutes, Inventario, InventarioRoutes, ReturnToProvider, ReturnToProviderRoutes, Prison, PrisonRoutes, DocumentLineNote, DocumentLineNoteRoutes, SavedProviderProposal, SavedProviderProposalRoutes, ProductGoogleSheets, ProductGoogleSheetsRoutes, Task, TaskRoutes, TaskMessage, TaskMessageRoutes, RecurrentTasks, TaskRead, TaskReadRoutes, Theme, ThemeRoutes, Dashboard, DashboardRoutes, ChatRapidMessage, ChatRapidMessageRoutes, SideMenu, SideMenuRoutes, AdminPanel, ErrorLog, ErrorLogRoutes, DocumentLineRm, DocumentLineRmRoutes, DocumentLineMt, DocumentLineMtRoutes, ChatSubscriber, ChatSubscriberRoutes, Tag, TagRoutes, Gmails, NPF, NPFRoutes, NRCL, NRCLRoutes, CurrentAccount, CurrentAccountRoutes, PaymentBatch, PaymentBatchRoutes, Portal, PortalRoutes, GoogleSheetPool, AccountCode, AccountCodeRoutes, LLM, LLMRoutes, PatchNotes, ConferirEncomenda, };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
|
+
import type { IEstadoEncomenda } from '../../stock/conferirEncomenda/interface';
|
|
2
3
|
export declare const Route = "order";
|
|
3
4
|
export declare const UpperName = "Order";
|
|
4
5
|
export declare const LowerName: string;
|
|
@@ -6,47 +7,16 @@ export interface IUndoProviderOrderRequest {
|
|
|
6
7
|
document_line_ids: string[];
|
|
7
8
|
send_notification: boolean;
|
|
8
9
|
}
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
'Espera Envio (RM)': 'Espera Envio (RM)';
|
|
16
|
-
'Espera Marcação (RM)': 'Espera Marcação (RM)';
|
|
17
|
-
'Espera Folha (RM)': 'Espera Folha (RM)';
|
|
18
|
-
'Espera Vendedor Retificar (RM)': 'Espera Vendedor Retificar (RM)';
|
|
19
|
-
'Espera Conferencia (RM)': 'Espera Conferencia (RM)';
|
|
20
|
-
'Espera Ok Cliente (RM)': 'Espera Ok Cliente (RM)';
|
|
21
|
-
'Espera Consulta Stock/Cotação': 'Espera Consulta Stock/Cotação';
|
|
22
|
-
'Espera Receção (Consulta)': 'Espera Receção (Consulta)';
|
|
23
|
-
'Espera Vendedor Retificar (Consulta)': 'Espera Vendedor Retificar (Consulta)';
|
|
24
|
-
'Cliente Foi Pensar': 'Cliente Foi Pensar';
|
|
25
|
-
'Espera Atelier': 'Espera Atelier';
|
|
26
|
-
'Espera Produção Interna': 'Espera Produção Interna';
|
|
27
|
-
'Espera Estofador': 'Espera Estofador';
|
|
28
|
-
'Espera Prod (Mont)': 'Espera Prod (Mont)';
|
|
29
|
-
'Espera Montagem': 'Espera Montagem';
|
|
30
|
-
'Espera Corte Tecidos': 'Espera Corte Tecidos';
|
|
31
|
-
'Espera Confecção (tecidos cortados)': 'Espera Confecção (tecidos cortados)';
|
|
32
|
-
'Encomendar Serviço': 'Encomendar Serviço';
|
|
33
|
-
'Encomendar Serviço c/ Anexos': 'Encomendar Serviço c/ Anexos';
|
|
34
|
-
'Encomendar Serviço Sem Notificação': 'Encomendar Serviço Sem Notificação';
|
|
35
|
-
'Encomendar VA': 'Encomendar VA';
|
|
36
|
-
'Encomendar VA c/ Anexos': 'Encomendar VA c/ Anexos';
|
|
37
|
-
'Encomendar VA Sem Notificação': 'Encomendar VA Sem Notificação';
|
|
38
|
-
'Encomendar Stock': 'Encomendar Stock';
|
|
39
|
-
'Cancelar Encomendar': 'Cancelar Encomendar';
|
|
40
|
-
'Stock em Loja': 'Stock em Loja';
|
|
41
|
-
Refaturar: 'Refaturar';
|
|
42
|
-
'Desligar do Sheets': 'Desligar do Sheets';
|
|
43
|
-
'Fechar Linha': 'Fechar Linha';
|
|
44
|
-
};
|
|
45
|
-
export type IConferirEncomendaClienteOptions = (typeof ConferirEncomendaClienteOptionsEnum)[keyof typeof ConferirEncomendaClienteOptionsEnum];
|
|
46
|
-
export declare const conferirEncomendaClienteOptions: string[];
|
|
10
|
+
export interface IMotivosDeEsperaData {
|
|
11
|
+
esperaEnvioDeMedidas?: boolean;
|
|
12
|
+
esperaConfirmacaoDeMedidas?: boolean;
|
|
13
|
+
esperaVisitaALoja?: boolean;
|
|
14
|
+
esperaDadosCliente?: boolean;
|
|
15
|
+
}
|
|
47
16
|
export interface IConferirEncomendaClienteRequest {
|
|
48
|
-
option:
|
|
17
|
+
option: IEstadoEncomenda;
|
|
49
18
|
document_line_ids: string[];
|
|
19
|
+
motivos_espera_data?: IMotivosDeEsperaData;
|
|
50
20
|
reinvoicing_nc_observation?: string;
|
|
51
21
|
}
|
|
52
22
|
export interface IConferirEncomendaClienteResponse {
|
|
@@ -14,15 +14,12 @@ export interface ICreateAttachments {
|
|
|
14
14
|
}
|
|
15
15
|
export interface ICreateRequest {
|
|
16
16
|
name: string;
|
|
17
|
-
to: string;
|
|
18
|
-
subject: string;
|
|
19
17
|
body: string;
|
|
20
18
|
attachments: ICreateAttachments[];
|
|
19
|
+
key: string;
|
|
21
20
|
}
|
|
22
21
|
export interface IUpdateRequest {
|
|
23
22
|
name?: string;
|
|
24
|
-
to?: string;
|
|
25
|
-
subject?: string;
|
|
26
23
|
body?: string;
|
|
27
24
|
}
|
|
28
25
|
export interface ISendRequest {
|
|
@@ -5,12 +5,6 @@ export type Entity = Chat;
|
|
|
5
5
|
export declare const Route = "chat";
|
|
6
6
|
export declare const UpperName = "Chat";
|
|
7
7
|
export declare const LowerName: string;
|
|
8
|
-
export declare const ChatTypeEnum: {
|
|
9
|
-
por_proposta: 'por_proposta';
|
|
10
|
-
global: 'global';
|
|
11
|
-
};
|
|
12
|
-
export type IChatType = (typeof ChatTypeEnum)[keyof typeof ChatTypeEnum];
|
|
13
|
-
export declare const chatTypes: string[];
|
|
14
8
|
export interface IChatBalloon {
|
|
15
9
|
chat?: Pick<Entity, 'message'> & {
|
|
16
10
|
id?: string;
|
|
@@ -25,16 +19,16 @@ export interface IChatBalloon {
|
|
|
25
19
|
created_at: Date;
|
|
26
20
|
created_by: string;
|
|
27
21
|
is_customer: boolean;
|
|
22
|
+
ghost?: boolean;
|
|
28
23
|
}
|
|
29
24
|
export type IReport = Pick<Entity, 'email_processed' | 'email_delivered' | 'email_opened' | 'email_clicked'>;
|
|
30
|
-
export interface
|
|
31
|
-
last_group_report?: IReport;
|
|
32
|
-
owner_id: string;
|
|
25
|
+
export interface IFindActiveByOwnerIdResponse {
|
|
33
26
|
chat: IChatBalloon[];
|
|
27
|
+
last_group_report?: IReport;
|
|
34
28
|
}
|
|
35
29
|
export interface IPublicFindBySubscriberId {
|
|
36
30
|
owner_id: string;
|
|
37
|
-
|
|
31
|
+
chat_document_header_id: string;
|
|
38
32
|
chat: IChatBalloon[];
|
|
39
33
|
persona: ChatSubscriber.IFindChatSubscriberPersona;
|
|
40
34
|
store_operator_name: string;
|
|
@@ -42,22 +36,20 @@ export interface IPublicFindBySubscriberId {
|
|
|
42
36
|
}
|
|
43
37
|
export interface IPublicClientWebAppFindActiveByOwnerIdResponse {
|
|
44
38
|
owner_id: string;
|
|
45
|
-
chat_type: IChatType;
|
|
46
39
|
user_type: 'client' | 'provider';
|
|
47
40
|
chat: IChatBalloon[];
|
|
48
41
|
personas: ChatSubscriber.IFindChatSubscriberPersona[];
|
|
49
|
-
store_operator_name
|
|
50
|
-
document_total
|
|
42
|
+
store_operator_name: string;
|
|
43
|
+
document_total: number;
|
|
51
44
|
}
|
|
52
45
|
export interface ICreateRequest {
|
|
53
|
-
|
|
54
|
-
document_header_id: string;
|
|
46
|
+
chat_document_header_id: string;
|
|
55
47
|
message: string;
|
|
56
48
|
username: string;
|
|
57
49
|
is_customer: boolean;
|
|
58
50
|
}
|
|
59
51
|
export interface IUpdateRequest {
|
|
60
|
-
|
|
52
|
+
chat_document_header_id?: string;
|
|
61
53
|
message?: string;
|
|
62
54
|
email_processed?: boolean;
|
|
63
55
|
email_delivered?: boolean;
|
|
@@ -68,19 +60,19 @@ export interface IUpdateRequest {
|
|
|
68
60
|
username?: string;
|
|
69
61
|
}
|
|
70
62
|
export interface IMarkAllClientReadUnreadRequest {
|
|
71
|
-
|
|
63
|
+
chat_document_header_id: string;
|
|
72
64
|
client_read: boolean;
|
|
73
65
|
}
|
|
74
66
|
export interface IRepository {
|
|
75
|
-
findActiveByOwnerId(params: IShared.
|
|
76
|
-
clientWebAppFindActiveByOwnerId(params: IShared.
|
|
77
|
-
findActiveBySubscriberId(params: IShared.
|
|
78
|
-
resendLast(params: IShared.
|
|
67
|
+
findActiveByOwnerId(params: IShared.IFindByIdRequest): Promise<IFindActiveByOwnerIdResponse>;
|
|
68
|
+
clientWebAppFindActiveByOwnerId(params: IShared.IFindByIdRequest): Promise<IPublicClientWebAppFindActiveByOwnerIdResponse>;
|
|
69
|
+
findActiveBySubscriberId(params: IShared.IFindByIdRequest): Promise<IPublicFindBySubscriberId>;
|
|
70
|
+
resendLast(params: IShared.IFindByIdRequest): Promise<void>;
|
|
79
71
|
create(data: ICreateRequest): Promise<Chat>;
|
|
80
72
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
81
73
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
82
|
-
markAllAsRead(params: IShared.
|
|
83
|
-
markAllAsUnread(params: IShared.
|
|
74
|
+
markAllAsRead(params: IShared.IFindByIdRequest): Promise<void>;
|
|
75
|
+
markAllAsUnread(params: IShared.IFindByIdRequest): Promise<void>;
|
|
84
76
|
publicMarkAllClientReadUnread(params: IMarkAllClientReadUnreadRequest): Promise<void>;
|
|
85
77
|
}
|
|
86
78
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -49,8 +49,7 @@ export declare const EstadoEncomendaEnum: {
|
|
|
49
49
|
readonly EsperaOkClienteConsulta: "EsperaOkClienteConsulta";
|
|
50
50
|
readonly EsperaResolucaoProblemas: "EsperaResolucaoProblemas";
|
|
51
51
|
readonly Refaturado: "Refaturado";
|
|
52
|
-
readonly
|
|
52
|
+
readonly Adjudicado: "Adjudicado";
|
|
53
53
|
};
|
|
54
54
|
export type IEstadoEncomenda = (typeof EstadoEncomendaEnum)[keyof typeof EstadoEncomendaEnum];
|
|
55
|
-
export declare const
|
|
56
|
-
export declare const estadoEncomendaValues: ("PorConfirmar" | "EsperaDefDetVendedor" | "EsperaInfoCliente" | "EsperaDevCatalogo" | "EsperaEnvioRMCA" | "EsperaEnvioRM" | "EsperaMarcacaoRM" | "EsperaFolhaRM" | "EsperaVendedorRetificarRM" | "EsperaConferenciaRM" | "EsperaOkClienteRM" | "EsperaConsultaStockCotacao" | "EsperaRececaoConsulta" | "EsperaVendedorRetificarConsulta" | "ClienteFoiPensar" | "EsperaAtelier" | "EsperaProducaoInterna" | "EsperaEstofador" | "EsperaProdMont" | "EsperaMontagem" | "EsperaCorteTecidos" | "EsperaConfeccaoTecidosCortados" | "EncomendarServico" | "EncomendarServicoCAnexos" | "EncomendarServicoSemNotificacao" | "EncomendarVA" | "EncomendarVACAnexos" | "EncomendarVASemNotificacao" | "EncomendarStock" | "CancelarEncomendar" | "StockEmLoja" | "Refaturar" | "DesligarDoSheets" | "FecharLinha" | "CancelarEncomenda" | "CancelarEncomendaMT" | "CancelarEncomendaRM" | "CancelarEncomendaVA" | "DesligarEncomenda" | "EncomendarMT" | "EncomendarRM" | "EsperaNomalism" | "EsperaOkClienteConsulta" | "EsperaResolucaoProblemas" | "Refaturado" | "False")[];
|
|
55
|
+
export declare const estadoEncomendaValues: ("PorConfirmar" | "EsperaDefDetVendedor" | "EsperaInfoCliente" | "EsperaDevCatalogo" | "EsperaEnvioRMCA" | "EsperaEnvioRM" | "EsperaMarcacaoRM" | "EsperaFolhaRM" | "EsperaVendedorRetificarRM" | "EsperaConferenciaRM" | "EsperaOkClienteRM" | "EsperaConsultaStockCotacao" | "EsperaRececaoConsulta" | "EsperaVendedorRetificarConsulta" | "ClienteFoiPensar" | "EsperaAtelier" | "EsperaProducaoInterna" | "EsperaEstofador" | "EsperaProdMont" | "EsperaMontagem" | "EsperaCorteTecidos" | "EsperaConfeccaoTecidosCortados" | "EncomendarServico" | "EncomendarServicoCAnexos" | "EncomendarServicoSemNotificacao" | "EncomendarVA" | "EncomendarVACAnexos" | "EncomendarVASemNotificacao" | "EncomendarStock" | "CancelarEncomendar" | "StockEmLoja" | "Refaturar" | "DesligarDoSheets" | "FecharLinha" | "CancelarEncomenda" | "CancelarEncomendaMT" | "CancelarEncomendaRM" | "CancelarEncomendaVA" | "DesligarEncomenda" | "EncomendarMT" | "EncomendarRM" | "EsperaNomalism" | "EsperaOkClienteConsulta" | "EsperaResolucaoProblemas" | "Refaturado" | "Adjudicado")[];
|
|
@@ -12,7 +12,7 @@ export interface IFindByOwnerRequest {
|
|
|
12
12
|
export interface ICreateRequest {
|
|
13
13
|
title: string;
|
|
14
14
|
owner_id: string;
|
|
15
|
-
|
|
15
|
+
chat_document_header_id: string | null;
|
|
16
16
|
multimedia_id: string;
|
|
17
17
|
filename: string;
|
|
18
18
|
is_customer?: boolean;
|
|
@@ -21,7 +21,7 @@ export interface ICreateRequest {
|
|
|
21
21
|
username: string;
|
|
22
22
|
}
|
|
23
23
|
export interface IUpdateRequest {
|
|
24
|
-
|
|
24
|
+
chat_document_header_id?: string;
|
|
25
25
|
filename?: string;
|
|
26
26
|
}
|
|
27
27
|
export interface IRepository {
|
|
@@ -4,31 +4,6 @@ export type Entity = Gmails;
|
|
|
4
4
|
export declare const Route = "gmail";
|
|
5
5
|
export declare const UpperName = "Gmail";
|
|
6
6
|
export declare const LowerName: string;
|
|
7
|
-
export interface IGmailEmailWithAction {
|
|
8
|
-
id: string;
|
|
9
|
-
from: string;
|
|
10
|
-
subject: string;
|
|
11
|
-
gmail_id: string;
|
|
12
|
-
gmail_internal_date: number;
|
|
13
|
-
gmail_payload: unknown;
|
|
14
|
-
gmail_snippet: string;
|
|
15
|
-
action: string;
|
|
16
|
-
}
|
|
17
|
-
export interface IGmailEmailWithActionAndDocumentNumber {
|
|
18
|
-
id: string;
|
|
19
|
-
from: string;
|
|
20
|
-
subject: string;
|
|
21
|
-
gmail_id: string;
|
|
22
|
-
gmail_internal_date: number;
|
|
23
|
-
gmail_snippet: string;
|
|
24
|
-
action: string;
|
|
25
|
-
document_number?: number;
|
|
26
|
-
}
|
|
27
|
-
export interface IWebsiteProposalGmailSearchResponse {
|
|
28
|
-
id: string;
|
|
29
|
-
document_number: number;
|
|
30
|
-
owner_id: string;
|
|
31
|
-
}
|
|
32
7
|
export interface IGmailsResponse {
|
|
33
8
|
id: string;
|
|
34
9
|
gmail_id: string;
|
|
@@ -42,19 +17,12 @@ export interface IGmailsResponse {
|
|
|
42
17
|
proposals: number[];
|
|
43
18
|
done: Date | null;
|
|
44
19
|
chat_persona_name: string | null;
|
|
45
|
-
chat_type: IChatType | null;
|
|
46
20
|
text_to_chat: string | null;
|
|
47
21
|
proposal_url: string | null;
|
|
48
22
|
gmail_attachments: unknown[] | null;
|
|
49
23
|
}
|
|
50
|
-
type ChatTypeEnum = readonly ['por_proposta', 'global'];
|
|
51
|
-
type IChatType = ChatTypeEnum[number];
|
|
52
|
-
export interface IEditPreviewChatMessageRequest {
|
|
53
|
-
text_to_chat: string;
|
|
54
|
-
}
|
|
55
24
|
export interface IRepository {
|
|
56
25
|
auth(): Promise<string>;
|
|
57
26
|
emails(): Promise<IGmailsResponse[]>;
|
|
58
27
|
}
|
|
59
28
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
60
|
-
export {};
|
|
@@ -58,6 +58,7 @@ export interface ICreateRequest {
|
|
|
58
58
|
pdf_link?: string | null;
|
|
59
59
|
google_sheet_id?: string | null;
|
|
60
60
|
sent?: boolean;
|
|
61
|
+
chat_document_header_id?: string;
|
|
61
62
|
owner_id: string;
|
|
62
63
|
owner_number: number;
|
|
63
64
|
owner_name: string;
|
|
@@ -135,6 +136,7 @@ export interface IUpdateRequest {
|
|
|
135
136
|
google_sheet_id?: string | null;
|
|
136
137
|
pdf_link?: string | null;
|
|
137
138
|
sent?: boolean;
|
|
139
|
+
chat_document_header_id?: string;
|
|
138
140
|
owner_id?: string;
|
|
139
141
|
owner_number?: number;
|
|
140
142
|
owner_name?: string;
|
|
@@ -199,6 +201,7 @@ export interface ITransferOwnershipRequest {
|
|
|
199
201
|
client_id: string;
|
|
200
202
|
}
|
|
201
203
|
export interface IFindResponse {
|
|
204
|
+
chat_document_header_id: string;
|
|
202
205
|
document_header_id: string;
|
|
203
206
|
document_label: string;
|
|
204
207
|
total: number;
|
|
@@ -12,3 +12,4 @@ export declare const sendClientNotificationBody: joi.ObjectSchema<any>;
|
|
|
12
12
|
export declare const findByTypeQuery: joi.ObjectSchema<any>;
|
|
13
13
|
export declare const documentPdfQuery: joi.ObjectSchema<any>;
|
|
14
14
|
export declare const documentLineQuery: joi.ObjectSchema<IShared.IRouteRequest<IDocumentListRequest>>;
|
|
15
|
+
export declare const createSiteProposalBody: joi.ObjectSchema<import("../../../shared/entities/integration").ProjectInfo>;
|
|
@@ -4,6 +4,7 @@ import * as IDocumentLineAssoc from '../documentLineAssoc/interfaces';
|
|
|
4
4
|
import { IDocumentTypeCodeType, IDocumentTypeUserType } from '../documentType/interfaces';
|
|
5
5
|
import { IProductType, IProductState } from '../../stock/productGoogleSheets/interface';
|
|
6
6
|
import type { IGetProductType, IGetProductGroup } from '../../integration/googleSheets/interfaces';
|
|
7
|
+
import { IMotivosDeEsperaData } from '../../document/order/interfaces';
|
|
7
8
|
export type Entity = DocumentLine;
|
|
8
9
|
export declare const Route = "documentLine";
|
|
9
10
|
export declare const UpperName = "DocumentLine";
|
|
@@ -12,7 +13,7 @@ export type IDocumentLineVirtuals = DocumentLineVirtuals;
|
|
|
12
13
|
export type IDocumentLineBaseVirtuals = DocumentLineBaseVirtuals;
|
|
13
14
|
export type IDocumentLineRM = DocumentLineRM;
|
|
14
15
|
export type IPromotions = Pick<ProductPromotionVirtuals, 'exclusive_to_location_id' | 'exclusive_to_client_id' | 'discount'>;
|
|
15
|
-
export type IDataKeys = '
|
|
16
|
+
export type IDataKeys = 'AvisoCliente' | 'Quantidade Encomendada Originalmente' | 'Linha criada na EM' | 'Opcao EM' | 'Levantar DF' | 'Enviar Email NCF' | 'Fechar DF' | 'Documento pago' | 'Pagamento' | 'Recibo do documento' | 'Emitir' | 'Backup PDF';
|
|
16
17
|
export interface IDataPayload {
|
|
17
18
|
value: unknown;
|
|
18
19
|
updated_at: Date;
|
|
@@ -56,6 +57,10 @@ export interface IHistory {
|
|
|
56
57
|
when: string;
|
|
57
58
|
who: string;
|
|
58
59
|
}
|
|
60
|
+
export type IEsperaInfoClienteData = {
|
|
61
|
+
value: string;
|
|
62
|
+
data: IMotivosDeEsperaData;
|
|
63
|
+
};
|
|
59
64
|
export interface IEntityExtended extends Omit<DocumentLine, 'data'> {
|
|
60
65
|
group: string;
|
|
61
66
|
document_headers: IDocumentLineDocuments[];
|
|
@@ -69,6 +74,7 @@ export interface IEntityExtended extends Omit<DocumentLine, 'data'> {
|
|
|
69
74
|
product_no_discount: boolean;
|
|
70
75
|
product_measure: string | null;
|
|
71
76
|
product_integer_only: boolean;
|
|
77
|
+
espera_info_cliente_data: IEsperaInfoClienteData;
|
|
72
78
|
}
|
|
73
79
|
export interface ICreateRequest extends Omit<IDocumentLineAssoc.ICreateRequest, 'document_line_id'> {
|
|
74
80
|
document_line_id?: string;
|
|
@@ -8,7 +8,7 @@ export interface IPublicFindByOwnerIdRequest {
|
|
|
8
8
|
include_closed?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export interface IPublicFindByOwnerIdResponse {
|
|
11
|
-
|
|
11
|
+
chat_document_header_id: string;
|
|
12
12
|
label: string;
|
|
13
13
|
emission_date: Date;
|
|
14
14
|
pdf_link: string;
|
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
import { ChatSubscriber, Persona } from './../../../shared/entities/user';
|
|
2
2
|
import * as IShared from '../../../shared/interface';
|
|
3
|
-
import { IChatType } from '../../stock/chat/interfaces';
|
|
4
3
|
export type Entity = ChatSubscriber;
|
|
5
4
|
export declare const Route = "chat_subscriber";
|
|
6
5
|
export declare const UpperName = "ChatSubscriber";
|
|
7
6
|
export declare const LowerName: string;
|
|
8
7
|
export interface ICreateOrUpdateRequest {
|
|
9
|
-
|
|
10
|
-
document_header_id: string;
|
|
8
|
+
chat_document_header_id: string;
|
|
11
9
|
personas_ids: string[];
|
|
12
10
|
}
|
|
13
11
|
export interface IFindRequest {
|
|
14
12
|
owner_id: string;
|
|
15
|
-
|
|
13
|
+
chat_document_header_id: string;
|
|
16
14
|
}
|
|
17
|
-
export type IFindByOwnerResponse = Pick<Persona, 'external' | 'name' | 'email' | 'telephone'> & Pick<ChatSubscriber, 'id' | 'persona_id' | '
|
|
15
|
+
export type IFindByOwnerResponse = Pick<Persona, 'external' | 'name' | 'email' | 'telephone'> & Pick<ChatSubscriber, 'id' | 'persona_id' | 'chat_document_header_id'>;
|
|
18
16
|
export interface IFindByIdResponse extends IFindByOwnerResponse {
|
|
19
17
|
subscriptions: {
|
|
20
18
|
id: string;
|
|
21
|
-
|
|
19
|
+
chat_document_header_id: string;
|
|
22
20
|
}[];
|
|
23
21
|
}
|
|
24
22
|
export interface IFindChatSubscriberPersona extends Pick<Persona, 'id' | 'external' | 'name' | 'email' | 'telephone'> {
|
|
@@ -26,7 +24,6 @@ export interface IFindChatSubscriberPersona extends Pick<Persona, 'id' | 'extern
|
|
|
26
24
|
}
|
|
27
25
|
export interface IFindChatSubscriberResponse {
|
|
28
26
|
personas: IFindChatSubscriberPersona[];
|
|
29
|
-
chat_type: IChatType;
|
|
30
27
|
}
|
|
31
28
|
export interface IRepository {
|
|
32
29
|
createOrUpdate(data: ICreateOrUpdateRequest): Promise<string>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
2
|
import { Clients, Users, Country, ReasonForExemption, ClientType, SegmentsArea, Language, Vehicles, DeliveryMethods, MaturityDates, PaymentMethods, Persona } from '../../../shared/entities/user';
|
|
3
|
-
import type { IChatType } from '../../stock/chat/interfaces';
|
|
4
3
|
export type Entity = Clients;
|
|
5
4
|
export declare const Route = "client";
|
|
6
5
|
export declare const UpperName = "Clients";
|
|
@@ -54,7 +53,6 @@ export interface ICreateRequest {
|
|
|
54
53
|
default_vehicle_id?: string | null;
|
|
55
54
|
}
|
|
56
55
|
export interface IUpdateRequest {
|
|
57
|
-
chat_type?: IChatType;
|
|
58
56
|
nif?: string | null;
|
|
59
57
|
country_id?: string | null;
|
|
60
58
|
language_id?: string | null;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
2
|
import { type Commissioner, type Users, type Country, type Language, type PaymentMethods, type DeliveryMethods, type MaturityDates, type Vehicles, type Persona, type ReasonForExemption } from '../../../shared/entities/user';
|
|
3
|
-
import type { IChatType } from '../../stock/chat/interfaces';
|
|
4
3
|
export type Entity = Commissioner;
|
|
5
4
|
export declare const Route = "commissioner";
|
|
6
5
|
export declare const UpperName = "Commissioner";
|
|
@@ -39,7 +38,6 @@ export interface ICreateRequest {
|
|
|
39
38
|
default_vehicle_id?: string | null;
|
|
40
39
|
}
|
|
41
40
|
export interface IUpdateRequest {
|
|
42
|
-
chat_type?: IChatType;
|
|
43
41
|
default_percentage?: number;
|
|
44
42
|
main_persona_id?: string;
|
|
45
43
|
contact_persona_id?: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type * as IShared from '../../../shared/interface';
|
|
2
2
|
import type { Persona, Country, ReasonForExemption } from '../../../shared/entities/user';
|
|
3
|
-
import type { IChatType } from '../../stock/chat/interfaces';
|
|
4
3
|
export type Entity = Persona;
|
|
5
4
|
export declare const Route = "persona";
|
|
6
5
|
export declare const UpperName = "Persona";
|
|
@@ -85,17 +84,14 @@ export interface IFindByEmailResponse {
|
|
|
85
84
|
client?: {
|
|
86
85
|
id: string;
|
|
87
86
|
name: string;
|
|
88
|
-
chat_type: IChatType;
|
|
89
87
|
} | null;
|
|
90
88
|
provider?: {
|
|
91
89
|
id: string;
|
|
92
90
|
name: string;
|
|
93
|
-
chat_type: IChatType;
|
|
94
91
|
} | null;
|
|
95
92
|
commissioner?: {
|
|
96
93
|
id: string;
|
|
97
94
|
name: string;
|
|
98
|
-
chat_type: IChatType;
|
|
99
95
|
} | null;
|
|
100
96
|
}
|
|
101
97
|
export interface IFindClientOrProviderRequest {
|
|
@@ -118,7 +114,6 @@ export interface IFindForGmailRequest {
|
|
|
118
114
|
}
|
|
119
115
|
export interface IFindForGmailResponse {
|
|
120
116
|
chat_persona_name: string;
|
|
121
|
-
chat_type: IChatType;
|
|
122
117
|
}
|
|
123
118
|
export interface IRepository {
|
|
124
119
|
findById(selector: IShared.IFindByIdRequest): Promise<IEntityExtended | null>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
2
|
import { Providers, Users, Country, ReasonForExemption, Language, ProviderType, PaymentMethods, MaturityDates, DeliveryMethods, Vehicles, Persona } from '../../../shared/entities/user';
|
|
3
|
-
import type { IChatType } from '../../stock/chat/interfaces';
|
|
4
3
|
import type { DocumentHeader } from '../../../shared/entities/stock';
|
|
5
4
|
export type Entity = Providers;
|
|
6
5
|
export declare const Route = "provider";
|
|
@@ -53,7 +52,6 @@ export interface ICreateRequest {
|
|
|
53
52
|
personas?: ICreateMainPersona[];
|
|
54
53
|
}
|
|
55
54
|
export interface IUpdateRequest {
|
|
56
|
-
chat_type?: IChatType;
|
|
57
55
|
manufacturer?: boolean;
|
|
58
56
|
inactive?: boolean;
|
|
59
57
|
default_discount?: number;
|
|
@@ -95,9 +95,10 @@ export type EmailLog = {
|
|
|
95
95
|
export type EmailTemplate = {
|
|
96
96
|
id: string;
|
|
97
97
|
name: string;
|
|
98
|
-
to: string;
|
|
99
|
-
subject: string;
|
|
100
98
|
body: string;
|
|
99
|
+
key: string;
|
|
100
|
+
rapid: boolean;
|
|
101
|
+
variables: unknown;
|
|
101
102
|
created_by: string;
|
|
102
103
|
updated_by: string;
|
|
103
104
|
created_at: Date;
|
|
@@ -13,6 +13,7 @@ import { ITaskStatusDataType } from '../../modules/stock/task/interface';
|
|
|
13
13
|
import type { IRsaHashData, ITaxEntry } from '../../modules/supply/documentHeader/interfaces';
|
|
14
14
|
import type { ProjectInfo } from './integration';
|
|
15
15
|
import { IEstadoEncomenda } from '../../modules/stock/conferirEncomenda/interface';
|
|
16
|
+
import { IMotivosDeEsperaData } from '../../modules/document/order/interfaces';
|
|
16
17
|
/**
|
|
17
18
|
* Model AccountCode
|
|
18
19
|
*
|
|
@@ -28,8 +29,7 @@ export type AccountCode = {
|
|
|
28
29
|
*/
|
|
29
30
|
export type Chat = {
|
|
30
31
|
id: string;
|
|
31
|
-
|
|
32
|
-
document_header_id: string;
|
|
32
|
+
chat_document_header_id: string;
|
|
33
33
|
message: string;
|
|
34
34
|
email_processed: boolean;
|
|
35
35
|
email_delivered: boolean;
|
|
@@ -271,6 +271,7 @@ export type DocumentHeader = {
|
|
|
271
271
|
google_sheet_id: string | null;
|
|
272
272
|
emission_date: Date;
|
|
273
273
|
source_billing: string;
|
|
274
|
+
chat_document_header_id: string;
|
|
274
275
|
owner_id: string;
|
|
275
276
|
owner_number: number;
|
|
276
277
|
owner_name: string | null;
|
|
@@ -726,7 +727,7 @@ export type File = {
|
|
|
726
727
|
id: string;
|
|
727
728
|
title: string;
|
|
728
729
|
owner_id: string;
|
|
729
|
-
|
|
730
|
+
chat_document_header_id: string | null;
|
|
730
731
|
multimedia_id: string;
|
|
731
732
|
filename: string;
|
|
732
733
|
is_customer: boolean;
|
|
@@ -1028,7 +1029,6 @@ export type Gmails = {
|
|
|
1028
1029
|
owner_id: string | null;
|
|
1029
1030
|
document_header_id: string | null;
|
|
1030
1031
|
chat_persona_name: string | null;
|
|
1031
|
-
chat_type: string | null;
|
|
1032
1032
|
action: string | null;
|
|
1033
1033
|
text_to_chat: string | null;
|
|
1034
1034
|
done: Date | null;
|
|
@@ -1046,12 +1046,10 @@ export type GoogleSheetPool = {
|
|
|
1046
1046
|
*
|
|
1047
1047
|
*/
|
|
1048
1048
|
export type ConferirEncomenda = {
|
|
1049
|
-
id: string
|
|
1050
|
-
document_line_id: string
|
|
1051
|
-
data:
|
|
1052
|
-
|
|
1053
|
-
created_at: Date
|
|
1054
|
-
|
|
1055
|
-
created_by: string | null;
|
|
1056
|
-
updated_by: string | null;
|
|
1049
|
+
id: string;
|
|
1050
|
+
document_line_id: string;
|
|
1051
|
+
data: IMotivosDeEsperaData;
|
|
1052
|
+
value: IEstadoEncomenda;
|
|
1053
|
+
created_at: Date;
|
|
1054
|
+
created_by: string;
|
|
1057
1055
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IPaymentMethodsSaftCodeEnum } from '../../modules/user/paymentMethods/interfaces';
|
|
2
|
-
import type { IChatType } from '../../modules/stock/chat/interfaces';
|
|
3
2
|
/**
|
|
4
3
|
* Model Users
|
|
5
4
|
*
|
|
@@ -87,7 +86,6 @@ export type UserPermissions = {
|
|
|
87
86
|
*/
|
|
88
87
|
export type Providers = {
|
|
89
88
|
id: string;
|
|
90
|
-
chat_type: IChatType;
|
|
91
89
|
user_id: string;
|
|
92
90
|
main_persona_id: string;
|
|
93
91
|
contact_persona_id: string;
|
|
@@ -157,7 +155,6 @@ export type Language = {
|
|
|
157
155
|
export type Clients = {
|
|
158
156
|
id: string;
|
|
159
157
|
user_id: string;
|
|
160
|
-
chat_type: IChatType;
|
|
161
158
|
main_persona_id: string;
|
|
162
159
|
contact_persona_id: string;
|
|
163
160
|
number: number;
|
|
@@ -247,7 +244,6 @@ export type Shippings = {
|
|
|
247
244
|
export type Commissioner = {
|
|
248
245
|
id: string;
|
|
249
246
|
user_id: string;
|
|
250
|
-
chat_type: IChatType;
|
|
251
247
|
main_persona_id: string;
|
|
252
248
|
contact_persona_id: string;
|
|
253
249
|
number: number;
|
|
@@ -324,7 +320,6 @@ export type ReasonForExemption = {
|
|
|
324
320
|
export type StoreOperator = {
|
|
325
321
|
id: string;
|
|
326
322
|
user_id: string;
|
|
327
|
-
chat_type: IChatType;
|
|
328
323
|
user_position_id: string | null;
|
|
329
324
|
number: number;
|
|
330
325
|
internal_email: string | null;
|
|
@@ -503,8 +498,7 @@ export type Theme = {
|
|
|
503
498
|
export type ChatSubscriber = {
|
|
504
499
|
id: string;
|
|
505
500
|
persona_id: string;
|
|
506
|
-
|
|
507
|
-
document_header_id: string;
|
|
501
|
+
chat_document_header_id: string;
|
|
508
502
|
created_at: Date;
|
|
509
503
|
updated_at: Date;
|
|
510
504
|
created_by: string;
|
|
@@ -151,6 +151,7 @@ export declare enum IBrokerTopic {
|
|
|
151
151
|
retry_errored_emails = "retry_errored_emails",
|
|
152
152
|
send_errored_emails_summary = "send_errored_emails_summary",
|
|
153
153
|
warning_email = "warning_email",
|
|
154
|
+
espera_devolver_catalogo_email = "espera_devolver_catalogo_email",
|
|
154
155
|
verification_email = "verification_email",
|
|
155
156
|
dispatch_chat_message = "dispatch_chat_message",
|
|
156
157
|
perform_task = "perform_task",
|
|
@@ -175,7 +176,8 @@ export declare enum IBrokerTopic {
|
|
|
175
176
|
googlesheet_task_log = "googlesheet_task_log",
|
|
176
177
|
googlesheet_stock_log = "googlesheet_stock_log",
|
|
177
178
|
googlesheet_encomenda_log = "googlesheet_encomenda_log",
|
|
178
|
-
log_google_api_request = "log_google_api_request"
|
|
179
|
+
log_google_api_request = "log_google_api_request",
|
|
180
|
+
send_espera_info_cliente_messages = "send_espera_info_cliente_messages"
|
|
179
181
|
}
|
|
180
182
|
export type IBrokerTopicPayload = {
|
|
181
183
|
[IBrokerTopic.create]: Record<string, unknown>;
|
|
@@ -268,6 +270,15 @@ export type IBrokerTopicPayload = {
|
|
|
268
270
|
state: string;
|
|
269
271
|
}[];
|
|
270
272
|
};
|
|
273
|
+
[IBrokerTopic.espera_devolver_catalogo_email]: {
|
|
274
|
+
owner_id: string;
|
|
275
|
+
document_header_id: string;
|
|
276
|
+
chat_id: string;
|
|
277
|
+
email: string;
|
|
278
|
+
name: string | null;
|
|
279
|
+
subject: string;
|
|
280
|
+
message: string;
|
|
281
|
+
};
|
|
271
282
|
[IBrokerTopic.retry_errored_emails]: Record<string, never>;
|
|
272
283
|
[IBrokerTopic.send_errored_emails_summary]: {
|
|
273
284
|
warningErrors: string[];
|
|
@@ -341,6 +352,15 @@ export type IBrokerTopicPayload = {
|
|
|
341
352
|
[IBrokerTopic.googlesheet_stock_log]: IStock;
|
|
342
353
|
[IBrokerTopic.googlesheet_encomenda_log]: IEncomenda;
|
|
343
354
|
[IBrokerTopic.log_google_api_request]: ILogGoogleApiRequest;
|
|
355
|
+
[IBrokerTopic.send_espera_info_cliente_messages]: {
|
|
356
|
+
owner_id: string;
|
|
357
|
+
document_header_id: string;
|
|
358
|
+
chat_id: string;
|
|
359
|
+
email: string;
|
|
360
|
+
name: string | null;
|
|
361
|
+
subject: string;
|
|
362
|
+
message: string;
|
|
363
|
+
};
|
|
344
364
|
};
|
|
345
365
|
export interface IBrokerMessage<T extends IBrokerTopic = IBrokerTopic> {
|
|
346
366
|
topic: T;
|