@nomalism-com/types 0.46.28 → 0.46.31

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 CHANGED
@@ -205,6 +205,8 @@ __export(main_exports, {
205
205
  SidemenuHighlight: () => interface_exports56,
206
206
  SidemenuHighlightRoutes: () => route_schema_exports101,
207
207
  SmsSender: () => interfaces_exports63,
208
+ SmsTemplate: () => interfaces_exports64,
209
+ SmsTemplateRoutes: () => route_schema_exports120,
208
210
  StartDocumentHeaderLastUpdate: () => interface_exports42,
209
211
  StockMovement: () => interface_exports36,
210
212
  StockMovementRoutes: () => route_schema_exports57,
@@ -471,6 +473,7 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
471
473
  IBrokerTopic2["push_notification"] = "push_notification";
472
474
  IBrokerTopic2["portal_subscriber_events"] = "portal_subscriber_events";
473
475
  IBrokerTopic2["sidemenu_highlight_changed"] = "sidemenu_highlight_changed";
476
+ IBrokerTopic2["proposta_sheets_import_status"] = "proposta_sheets_import_status";
474
477
  IBrokerTopic2["user_send_email_password"] = "user_send_email_password";
475
478
  IBrokerTopic2["grant_access"] = "grant_access";
476
479
  IBrokerTopic2["remove_access"] = "remove_access";
@@ -6001,6 +6004,42 @@ var ISmsSenderStatsEnum = {
6001
6004
  };
6002
6005
  var timeSheetRecordTypes2 = Object.values(ISmsSenderStatsEnum);
6003
6006
 
6007
+ // src/modules/sms/smsTemplate/interfaces.ts
6008
+ var interfaces_exports64 = {};
6009
+ __export(interfaces_exports64, {
6010
+ Route: () => Route134
6011
+ });
6012
+ var Route134 = "sms_template";
6013
+
6014
+ // src/modules/sms/smsTemplate/route.schema.ts
6015
+ var route_schema_exports120 = {};
6016
+ __export(route_schema_exports120, {
6017
+ createBody: () => createBody67,
6018
+ idParam: () => idParam2,
6019
+ keyParam: () => keyParam,
6020
+ updateBody: () => updateBody57
6021
+ });
6022
+ import joi121 from "joi";
6023
+ var createBodyKeys65 = {
6024
+ key: joi121.string().required(),
6025
+ name: joi121.string().required(),
6026
+ message: joi121.string().required(),
6027
+ variables: joi121.object().pattern(joi121.string(), joi121.alternatives().try(joi121.string(), joi121.number(), joi121.boolean())).optional()
6028
+ };
6029
+ var createBody67 = joi121.object().keys(createBodyKeys65).messages(messages);
6030
+ var updateBodyKeys55 = {
6031
+ name: joi121.string().optional(),
6032
+ message: joi121.string().optional(),
6033
+ variables: joi121.object().pattern(joi121.string(), joi121.alternatives().try(joi121.string(), joi121.number(), joi121.boolean())).optional()
6034
+ };
6035
+ var updateBody57 = joi121.object().keys(updateBodyKeys55).messages(messages);
6036
+ var idParam2 = joi121.object().keys({
6037
+ id: joi121.string().uuid().required()
6038
+ }).messages(messages);
6039
+ var keyParam = joi121.object().keys({
6040
+ key: joi121.string().required()
6041
+ }).messages(messages);
6042
+
6004
6043
  // src/index.ts
6005
6044
  var index_default = main_exports;
6006
6045
  export {
package/dist/index.js CHANGED
@@ -205,6 +205,8 @@ __export(main_exports, {
205
205
  SidemenuHighlight: () => interface_exports56,
206
206
  SidemenuHighlightRoutes: () => route_schema_exports101,
207
207
  SmsSender: () => interfaces_exports63,
208
+ SmsTemplate: () => interfaces_exports64,
209
+ SmsTemplateRoutes: () => route_schema_exports120,
208
210
  StartDocumentHeaderLastUpdate: () => interface_exports42,
209
211
  StockMovement: () => interface_exports36,
210
212
  StockMovementRoutes: () => route_schema_exports57,
@@ -471,6 +473,7 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
471
473
  IBrokerTopic2["push_notification"] = "push_notification";
472
474
  IBrokerTopic2["portal_subscriber_events"] = "portal_subscriber_events";
473
475
  IBrokerTopic2["sidemenu_highlight_changed"] = "sidemenu_highlight_changed";
476
+ IBrokerTopic2["proposta_sheets_import_status"] = "proposta_sheets_import_status";
474
477
  IBrokerTopic2["user_send_email_password"] = "user_send_email_password";
475
478
  IBrokerTopic2["grant_access"] = "grant_access";
476
479
  IBrokerTopic2["remove_access"] = "remove_access";
@@ -6001,6 +6004,42 @@ var ISmsSenderStatsEnum = {
6001
6004
  };
6002
6005
  var timeSheetRecordTypes2 = Object.values(ISmsSenderStatsEnum);
6003
6006
 
6007
+ // src/modules/sms/smsTemplate/interfaces.ts
6008
+ var interfaces_exports64 = {};
6009
+ __export(interfaces_exports64, {
6010
+ Route: () => Route134
6011
+ });
6012
+ var Route134 = "sms_template";
6013
+
6014
+ // src/modules/sms/smsTemplate/route.schema.ts
6015
+ var route_schema_exports120 = {};
6016
+ __export(route_schema_exports120, {
6017
+ createBody: () => createBody67,
6018
+ idParam: () => idParam2,
6019
+ keyParam: () => keyParam,
6020
+ updateBody: () => updateBody57
6021
+ });
6022
+ import joi121 from "joi";
6023
+ var createBodyKeys65 = {
6024
+ key: joi121.string().required(),
6025
+ name: joi121.string().required(),
6026
+ message: joi121.string().required(),
6027
+ variables: joi121.object().pattern(joi121.string(), joi121.alternatives().try(joi121.string(), joi121.number(), joi121.boolean())).optional()
6028
+ };
6029
+ var createBody67 = joi121.object().keys(createBodyKeys65).messages(messages);
6030
+ var updateBodyKeys55 = {
6031
+ name: joi121.string().optional(),
6032
+ message: joi121.string().optional(),
6033
+ variables: joi121.object().pattern(joi121.string(), joi121.alternatives().try(joi121.string(), joi121.number(), joi121.boolean())).optional()
6034
+ };
6035
+ var updateBody57 = joi121.object().keys(updateBodyKeys55).messages(messages);
6036
+ var idParam2 = joi121.object().keys({
6037
+ id: joi121.string().uuid().required()
6038
+ }).messages(messages);
6039
+ var keyParam = joi121.object().keys({
6040
+ key: joi121.string().required()
6041
+ }).messages(messages);
6042
+
6004
6043
  // src/index.ts
6005
6044
  var index_default = main_exports;
6006
6045
  export {
package/dist/main.d.ts CHANGED
@@ -256,4 +256,6 @@ import * as TimeSheetRoutes from './modules/user/timeSheet/route.schema';
256
256
  import * as Catalogo from './modules/document/CAT/interfaces';
257
257
  import * as CatalogoRoutes from './modules/document/CAT/route.schema';
258
258
  import * as SmsSender from './modules/sms/smsSender/interfaces';
259
- 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, 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, SystemModule, SystemModuleRoutes, 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, SidemenuHighlight, SidemenuHighlightRoutes, 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, DocumentHeaderSurvey, DocumentHeaderSurveyRoutes, DocumentHeaderSubscriber, DocumentHeaderSubscriberRoutes, GoogleCalendar, GoogleCalendarRoutes, WebSocket, ProductLocation, MobilePrint, MobilePrintRoutes, TimeSheet, TimeSheetRoutes, Catalogo, CatalogoRoutes, SmsSender, };
259
+ import * as SmsTemplate from './modules/sms/smsTemplate/interfaces';
260
+ import * as SmsTemplateRoutes from './modules/sms/smsTemplate/route.schema';
261
+ 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, 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, SystemModule, SystemModuleRoutes, 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, SidemenuHighlight, SidemenuHighlightRoutes, 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, DocumentHeaderSurvey, DocumentHeaderSurveyRoutes, DocumentHeaderSubscriber, DocumentHeaderSubscriberRoutes, GoogleCalendar, GoogleCalendarRoutes, WebSocket, ProductLocation, MobilePrint, MobilePrintRoutes, TimeSheet, TimeSheetRoutes, Catalogo, CatalogoRoutes, SmsSender, SmsTemplate, SmsTemplateRoutes, };
@@ -65,6 +65,14 @@ export interface ITicketsChanged extends IEvent {
65
65
  remaining_today_tickets_to_call: IRemainingTodayTickets[];
66
66
  }
67
67
  export type TicketsSocketEvent = ITicketsChanged | IPing | IPong;
68
+ export interface IPropostaSheetsImportStatus extends IEvent {
69
+ type: 'proposta_sheets.import.status';
70
+ document_header_id: string;
71
+ google_sheet_id: string;
72
+ is_processing: boolean;
73
+ error: string | null;
74
+ }
75
+ export type PropostaSheetsSocketEvent = IPropostaSheetsImportStatus | IPing | IPong;
68
76
  export interface IPushNotificationEvent extends IEvent {
69
77
  type: 'push_notification';
70
78
  counts: Record<string, number>;
@@ -146,6 +146,7 @@ export declare enum IBrokerTopic {
146
146
  push_notification = "push_notification",
147
147
  portal_subscriber_events = "portal_subscriber_events",
148
148
  sidemenu_highlight_changed = "sidemenu_highlight_changed",
149
+ proposta_sheets_import_status = "proposta_sheets_import_status",
149
150
  user_send_email_password = "user_send_email_password",
150
151
  grant_access = "grant_access",
151
152
  remove_access = "remove_access",
@@ -313,6 +314,12 @@ export type IBrokerTopicPayload = {
313
314
  values: string[];
314
315
  timestamp: string;
315
316
  };
317
+ [IBrokerTopic.proposta_sheets_import_status]: {
318
+ document_header_id: string;
319
+ google_sheet_id: string;
320
+ is_processing: boolean;
321
+ error: string | null;
322
+ };
316
323
  [IBrokerTopic.import_master_artigos]: {};
317
324
  [IBrokerTopic.kafka_log]: {
318
325
  id: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nomalism-com/types",
3
3
  "description": "A nomalism package with all necessary types and validations for developing APIs",
4
- "version": "0.46.28",
4
+ "version": "0.46.31",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",