@nomalism-com/types 0.40.82 → 0.40.84

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
@@ -81,6 +81,8 @@ __export(main_exports, {
81
81
  GoogleSheetsRoutes: () => route_schema_exports24,
82
82
  Inventario: () => interface_exports43,
83
83
  InventarioRoutes: () => route_schema_exports88,
84
+ LLM: () => interfaces_exports57,
85
+ LLMRoutes: () => route_schema_exports113,
84
86
  Language: () => interface_exports11,
85
87
  LanguageRoutes: () => route_schema_exports25,
86
88
  Location: () => interface_exports12,
@@ -5901,6 +5903,26 @@ var findByCodeParams = {
5901
5903
  };
5902
5904
  var findByCode = joi113.object().keys(findByCodeParams).messages(messages);
5903
5905
 
5906
+ // src/modules/llm/llm/interfaces.ts
5907
+ var interfaces_exports57 = {};
5908
+ __export(interfaces_exports57, {
5909
+ Route: () => Route108
5910
+ });
5911
+ var Route108 = "llm";
5912
+
5913
+ // src/modules/llm/llm/route.schema.ts
5914
+ var route_schema_exports113 = {};
5915
+ __export(route_schema_exports113, {
5916
+ promptBody: () => promptBody
5917
+ });
5918
+ import joi114 from "joi";
5919
+ var promptBodyKeys = {
5920
+ prompt: joi114.string().required(),
5921
+ owner_id: joi114.string().required(),
5922
+ document_header_id: joi114.string().required()
5923
+ };
5924
+ var promptBody = joi114.object().keys(promptBodyKeys).messages(messages);
5925
+
5904
5926
  // src/index.ts
5905
5927
  var index_default = main_exports;
5906
5928
  export {
package/dist/index.js CHANGED
@@ -81,6 +81,8 @@ __export(main_exports, {
81
81
  GoogleSheetsRoutes: () => route_schema_exports24,
82
82
  Inventario: () => interface_exports43,
83
83
  InventarioRoutes: () => route_schema_exports88,
84
+ LLM: () => interfaces_exports57,
85
+ LLMRoutes: () => route_schema_exports113,
84
86
  Language: () => interface_exports11,
85
87
  LanguageRoutes: () => route_schema_exports25,
86
88
  Location: () => interface_exports12,
@@ -5901,6 +5903,26 @@ var findByCodeParams = {
5901
5903
  };
5902
5904
  var findByCode = joi113.object().keys(findByCodeParams).messages(messages);
5903
5905
 
5906
+ // src/modules/llm/llm/interfaces.ts
5907
+ var interfaces_exports57 = {};
5908
+ __export(interfaces_exports57, {
5909
+ Route: () => Route108
5910
+ });
5911
+ var Route108 = "llm";
5912
+
5913
+ // src/modules/llm/llm/route.schema.ts
5914
+ var route_schema_exports113 = {};
5915
+ __export(route_schema_exports113, {
5916
+ promptBody: () => promptBody
5917
+ });
5918
+ import joi114 from "joi";
5919
+ var promptBodyKeys = {
5920
+ prompt: joi114.string().required(),
5921
+ owner_id: joi114.string().required(),
5922
+ document_header_id: joi114.string().required()
5923
+ };
5924
+ var promptBody = joi114.object().keys(promptBodyKeys).messages(messages);
5925
+
5904
5926
  // src/index.ts
5905
5927
  var index_default = main_exports;
5906
5928
  export {
package/dist/main.d.ts CHANGED
@@ -235,4 +235,6 @@ import * as PortalRoutes from './modules/ui/portal/route.schema';
235
235
  import * as GoogleSheetPool from './modules/stock/googleSheetPool/interface';
236
236
  import * as AccountCode from './modules/stock/accountCode/interface';
237
237
  import * as AccountCodeRoutes from './modules/stock/accountCode/route.schema';
238
- 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, GmailsRoutes, NPF, NPFRoutes, NRCL, NRCLRoutes, CurrentAccount, CurrentAccountRoutes, PaymentBatch, PaymentBatchRoutes, Portal, PortalRoutes, GoogleSheetPool, AccountCode, AccountCodeRoutes, };
238
+ import * as LLM from './modules/llm/llm/interfaces';
239
+ import * as LLMRoutes from './modules/llm/llm/route.schema';
240
+ 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, GmailsRoutes, NPF, NPFRoutes, NRCL, NRCLRoutes, CurrentAccount, CurrentAccountRoutes, PaymentBatch, PaymentBatchRoutes, Portal, PortalRoutes, GoogleSheetPool, AccountCode, AccountCodeRoutes, LLM, LLMRoutes, };
@@ -0,0 +1,11 @@
1
+ import * as IShared from '../../../shared/interface';
2
+ export declare const Route = "llm";
3
+ export interface IPromptRequest {
4
+ prompt: string;
5
+ owner_id: string;
6
+ document_header_id: string;
7
+ }
8
+ export interface IRepository {
9
+ prompt: (data: IPromptRequest, onChunk: (chunk: string) => void) => Promise<void>;
10
+ }
11
+ export type IController = IShared.IEntityWithUserToken<IRepository>;
@@ -0,0 +1,2 @@
1
+ import joi from 'joi';
2
+ export declare const promptBody: joi.ObjectSchema<any>;
@@ -1,5 +1,4 @@
1
1
  import type * as IShared from '../../../shared/interface';
2
- import type * as Persona from '../../user/persona/interface';
3
2
  import type * as ChatSubscriber from '../../user/chatSubscribers/interfaces';
4
3
  import { Chat, File } from '../../../shared/entities/stock';
5
4
  export type Entity = Chat;
@@ -29,7 +28,6 @@ export interface IChatBalloon {
29
28
  }
30
29
  export type IReport = Pick<Entity, 'email_processed' | 'email_delivered' | 'email_opened' | 'email_clicked'>;
31
30
  export interface IPublicFindActiveByOwnerIdResponse {
32
- persona?: Persona.IFindContactPersonaByOwnerId;
33
31
  last_group_report?: IReport;
34
32
  owner_id?: string;
35
33
  document_header_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.40.82",
4
+ "version": "0.40.84",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -29,10 +29,10 @@
29
29
  "joi": "^18.0.2"
30
30
  },
31
31
  "devDependencies": {
32
- "@swc/core": "^1.15.5",
32
+ "@swc/core": "^1.15.8",
33
33
  "@types/node": "^24.10.4",
34
- "@typescript-eslint/eslint-plugin": "^8.50.0",
35
- "@typescript-eslint/parser": "^8.50.0",
34
+ "@typescript-eslint/eslint-plugin": "^8.52.0",
35
+ "@typescript-eslint/parser": "^8.52.0",
36
36
  "eslint": "^9.39.2",
37
37
  "eslint-config-prettier": "^10.1.8",
38
38
  "eslint-import-resolver-typescript": "^4.4.4",