@nomalism-com/types 0.49.27 → 0.49.29

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/main.d.ts CHANGED
@@ -63,6 +63,7 @@ import * as Prison from "./modules/stock/prison/interface";
63
63
  import * as ProductGoogleSheets from "./modules/stock/productGoogleSheets/interface";
64
64
  import * as ProductImage from "./modules/stock/productImage/interface";
65
65
  import * as ProductLocation from "./modules/stock/productLocation/interface";
66
+ import * as ProductUpdate from "./modules/stock/productUpdate/interface";
66
67
  import * as Promotion from "./modules/stock/promotion/interface";
67
68
  import * as QueryList from "./modules/stock/queryList/interfaces";
68
69
  import * as QueryParameter from "./modules/stock/queryParameter/interfaces";
@@ -150,4 +151,4 @@ import * as stockErrors from "./shared/errors/stockErrors";
150
151
  import * as userErrors from "./shared/errors/userErrors";
151
152
  import * as viewErrors from "./shared/errors/viewErrors";
152
153
  import * as shared from "./shared/interface";
153
- export { AccountCode, Adiantamento, AdminPanel, AllowedDevice, BankData, BillOfLading, Catalogo, Channel, Chat, ChatRapidMessage, ChatSubscriber, Client, ClientType, CLT, Commissioner, ConferirEncomenda, Country, CurrentAccount, Dashboard, DeliveryMethods, DisplayLabel, DisplayLabels, DocumentHeader, DocumentHeaderHistory, DocumentHeaderSubscriber, DocumentHeaderSurvey, DocumentLine, DocumentLineAssoc, DocumentLineMt, DocumentLineNote, DocumentLineRm, documentManagementErrors, DocumentSet, DocumentType, EmailAccount, EmailLog, EmailTemplate, EmailTemplateAttachment, EmailVerification, ErrorLog, EuPago, ExternalDocumentHeader, ExternalDocumentType, FaturaCredito, FaturaRecibo, FaturaSimplificada, Favorites, File, Gmails, GoogleCalendar, GoogleFilePermission, GoogleSheetPool, GoogleSheets, integrationErrors, Inventario, Language, LLM, Location, MaterialEntrance, MaturityDates, MobilePrint, Multimedia, NotaCredito, NotaCreditoAdiantamento, Npc, NPF, NRCL, Observation, ObservationType, Order, OrderManagement, Password, PatchNotes, Payment, PaymentBatch, PaymentMethods, Persona, PersonaMerge, Portal, PreSale, PreSaleProduct, Printer, Prison, ProductGoogleSheets, ProductImage, ProductionOrder, ProductLocation, Proforma, ProjectInfo, Promotion, PropostaFornecedor, PropostaSheets, ProviderCreditNoteFromReturn, ProviderFinancialCreditNote, Providers, ProviderServiceInvoice, ProviderType, Purchase, PurchaseConditions, Quebra, QueryList, QueryParameter, ReasonForExemption, Recibo, RecurrentTasks, RefreshToken, ReturnReason, ReturnToProvider, Saft, SavedEmPicking, SavedProviderProposal, Schedule, SchedulePrintJob, SegmentsArea, Sessions, Settings, shared, Shippings, SideMenu, SidemenuHighlight, SmsSender, SmsTemplate, StartDocumentHeaderLastUpdate, stockErrors, StockMovement, StoreOperator, Swift, SystemModule, Tag, Task, TaskMessage, TaskRead, Tenant, Theme, Tickets, TicketsLanguage, TimeSheet, Transformado, TypeOfLocation, UnitOfMeasure, UpfrontReturn, userErrors, UserPositions, Users, UserTokens, VatTax, VatTaxZone, VatValidation, Vehicles, viewErrors, WebSocket, Workflow, };
154
+ export { AccountCode, Adiantamento, AdminPanel, AllowedDevice, BankData, BillOfLading, Catalogo, Channel, Chat, ChatRapidMessage, ChatSubscriber, Client, ClientType, CLT, Commissioner, ConferirEncomenda, Country, CurrentAccount, Dashboard, DeliveryMethods, DisplayLabel, DisplayLabels, DocumentHeader, DocumentHeaderHistory, DocumentHeaderSubscriber, DocumentHeaderSurvey, DocumentLine, DocumentLineAssoc, DocumentLineMt, DocumentLineNote, DocumentLineRm, documentManagementErrors, DocumentSet, DocumentType, EmailAccount, EmailLog, EmailTemplate, EmailTemplateAttachment, EmailVerification, ErrorLog, EuPago, ExternalDocumentHeader, ExternalDocumentType, FaturaCredito, FaturaRecibo, FaturaSimplificada, Favorites, File, Gmails, GoogleCalendar, GoogleFilePermission, GoogleSheetPool, GoogleSheets, integrationErrors, Inventario, Language, LLM, Location, MaterialEntrance, MaturityDates, MobilePrint, Multimedia, NotaCredito, NotaCreditoAdiantamento, Npc, NPF, NRCL, Observation, ObservationType, Order, OrderManagement, Password, PatchNotes, Payment, PaymentBatch, PaymentMethods, Persona, PersonaMerge, Portal, PreSale, PreSaleProduct, Printer, Prison, ProductGoogleSheets, ProductImage, ProductionOrder, ProductLocation, ProductUpdate, Proforma, ProjectInfo, Promotion, PropostaFornecedor, PropostaSheets, ProviderCreditNoteFromReturn, ProviderFinancialCreditNote, Providers, ProviderServiceInvoice, ProviderType, Purchase, PurchaseConditions, Quebra, QueryList, QueryParameter, ReasonForExemption, Recibo, RecurrentTasks, RefreshToken, ReturnReason, ReturnToProvider, Saft, SavedEmPicking, SavedProviderProposal, Schedule, SchedulePrintJob, SegmentsArea, Sessions, Settings, shared, Shippings, SideMenu, SidemenuHighlight, SmsSender, SmsTemplate, StartDocumentHeaderLastUpdate, stockErrors, StockMovement, StoreOperator, Swift, SystemModule, Tag, Task, TaskMessage, TaskRead, Tenant, Theme, Tickets, TicketsLanguage, TimeSheet, Transformado, TypeOfLocation, UnitOfMeasure, UpfrontReturn, userErrors, UserPositions, Users, UserTokens, VatTax, VatTaxZone, VatValidation, Vehicles, viewErrors, WebSocket, Workflow, };
@@ -0,0 +1,60 @@
1
+ import * as IShared from "../../../shared/interface";
2
+ export declare const Route = "product_update";
3
+ export interface IExtractRequest {
4
+ multimedia_ids: string[];
5
+ }
6
+ export interface IExtractionResult {
7
+ source: string;
8
+ page_count: number;
9
+ tables: IExtractedTable[];
10
+ }
11
+ export interface IExtractedTable {
12
+ id: string;
13
+ pages: number[];
14
+ row_count: number;
15
+ columns: IExtractedColumn[];
16
+ rows: IExtractedRow[];
17
+ }
18
+ export interface IExtractedColumn {
19
+ id: string;
20
+ name: string;
21
+ samples: string[];
22
+ suggested_field: string | null;
23
+ }
24
+ export interface IExtractedRow {
25
+ _page: number;
26
+ _section: string | null;
27
+ _note?: string;
28
+ [columnId: string]: string | number | null | undefined;
29
+ }
30
+ export declare const ExtractErrorCodeEnum: {
31
+ NOT_A_PDF: "NOT_A_PDF";
32
+ INVALID_PDF: "INVALID_PDF";
33
+ FILE_NOT_FOUND: "FILE_NOT_FOUND";
34
+ TIMEOUT: "TIMEOUT";
35
+ EXTRACTION_FAILED: "EXTRACTION_FAILED";
36
+ };
37
+ export type IExtractErrorCode = (typeof ExtractErrorCodeEnum)[keyof typeof ExtractErrorCodeEnum];
38
+ export interface IExtractError {
39
+ code: IExtractErrorCode;
40
+ message: string;
41
+ }
42
+ interface IExtractFileResultBase {
43
+ multimedia_id: string;
44
+ file_name: string;
45
+ }
46
+ export type IExtractFileResult = (IExtractFileResultBase & {
47
+ status: "ok";
48
+ data: IExtractionResult;
49
+ }) | (IExtractFileResultBase & {
50
+ status: "error";
51
+ error: IExtractError;
52
+ });
53
+ export interface IExtractResponse {
54
+ results: IExtractFileResult[];
55
+ }
56
+ export interface IRepository {
57
+ extract(data: IExtractRequest): Promise<IExtractResponse>;
58
+ }
59
+ export type IController = IShared.IEntityWithUserToken<IRepository>;
60
+ export {};
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.49.27",
4
+ "version": "0.49.29",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",