@nomalism-com/types 0.45.40 → 0.45.42
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
|
@@ -96,6 +96,7 @@ __export(main_exports, {
|
|
|
96
96
|
MaterialEntranceRoutes: () => route_schema_exports81,
|
|
97
97
|
MaturityDates: () => interfaces_exports19,
|
|
98
98
|
MaturityDatesRoutes: () => route_schema_exports26,
|
|
99
|
+
MobilePrint: () => interface_exports71,
|
|
99
100
|
Multimedia: () => interfaces_exports20,
|
|
100
101
|
MultimediaRoutes: () => route_schema_exports27,
|
|
101
102
|
NPF: () => interface_exports61,
|
|
@@ -5249,16 +5250,18 @@ var interface_exports56 = {};
|
|
|
5249
5250
|
__export(interface_exports56, {
|
|
5250
5251
|
Route: () => Route107,
|
|
5251
5252
|
buildHighlightValue: () => buildHighlightValue,
|
|
5253
|
+
highlightValueSeparator: () => highlightValueSeparator,
|
|
5252
5254
|
parseHighlightValue: () => parseHighlightValue
|
|
5253
5255
|
});
|
|
5254
5256
|
var Route107 = "sidemenu_highlight";
|
|
5255
|
-
var
|
|
5257
|
+
var highlightValueSeparator = "|:|";
|
|
5258
|
+
var buildHighlightValue = (item) => `${item.user_type}${highlightValueSeparator}${item.state}`;
|
|
5256
5259
|
var parseHighlightValue = (value) => {
|
|
5257
|
-
const idx = value.indexOf(
|
|
5260
|
+
const idx = value.indexOf(highlightValueSeparator);
|
|
5258
5261
|
if (idx < 0) return null;
|
|
5259
5262
|
return {
|
|
5260
5263
|
user_type: value.slice(0, idx),
|
|
5261
|
-
state: value.slice(idx +
|
|
5264
|
+
state: value.slice(idx + highlightValueSeparator.length)
|
|
5262
5265
|
};
|
|
5263
5266
|
};
|
|
5264
5267
|
|
|
@@ -5773,6 +5776,13 @@ __export(interface_exports70, {
|
|
|
5773
5776
|
});
|
|
5774
5777
|
var Route128 = "product_location";
|
|
5775
5778
|
|
|
5779
|
+
// src/modules/stock/mobilePrint/interface.ts
|
|
5780
|
+
var interface_exports71 = {};
|
|
5781
|
+
__export(interface_exports71, {
|
|
5782
|
+
Route: () => Route129
|
|
5783
|
+
});
|
|
5784
|
+
var Route129 = "mobile_print";
|
|
5785
|
+
|
|
5776
5786
|
// src/index.ts
|
|
5777
5787
|
var index_default = main_exports;
|
|
5778
5788
|
export {
|
package/dist/index.js
CHANGED
|
@@ -96,6 +96,7 @@ __export(main_exports, {
|
|
|
96
96
|
MaterialEntranceRoutes: () => route_schema_exports81,
|
|
97
97
|
MaturityDates: () => interfaces_exports19,
|
|
98
98
|
MaturityDatesRoutes: () => route_schema_exports26,
|
|
99
|
+
MobilePrint: () => interface_exports71,
|
|
99
100
|
Multimedia: () => interfaces_exports20,
|
|
100
101
|
MultimediaRoutes: () => route_schema_exports27,
|
|
101
102
|
NPF: () => interface_exports61,
|
|
@@ -5249,16 +5250,18 @@ var interface_exports56 = {};
|
|
|
5249
5250
|
__export(interface_exports56, {
|
|
5250
5251
|
Route: () => Route107,
|
|
5251
5252
|
buildHighlightValue: () => buildHighlightValue,
|
|
5253
|
+
highlightValueSeparator: () => highlightValueSeparator,
|
|
5252
5254
|
parseHighlightValue: () => parseHighlightValue
|
|
5253
5255
|
});
|
|
5254
5256
|
var Route107 = "sidemenu_highlight";
|
|
5255
|
-
var
|
|
5257
|
+
var highlightValueSeparator = "|:|";
|
|
5258
|
+
var buildHighlightValue = (item) => `${item.user_type}${highlightValueSeparator}${item.state}`;
|
|
5256
5259
|
var parseHighlightValue = (value) => {
|
|
5257
|
-
const idx = value.indexOf(
|
|
5260
|
+
const idx = value.indexOf(highlightValueSeparator);
|
|
5258
5261
|
if (idx < 0) return null;
|
|
5259
5262
|
return {
|
|
5260
5263
|
user_type: value.slice(0, idx),
|
|
5261
|
-
state: value.slice(idx +
|
|
5264
|
+
state: value.slice(idx + highlightValueSeparator.length)
|
|
5262
5265
|
};
|
|
5263
5266
|
};
|
|
5264
5267
|
|
|
@@ -5773,6 +5776,13 @@ __export(interface_exports70, {
|
|
|
5773
5776
|
});
|
|
5774
5777
|
var Route128 = "product_location";
|
|
5775
5778
|
|
|
5779
|
+
// src/modules/stock/mobilePrint/interface.ts
|
|
5780
|
+
var interface_exports71 = {};
|
|
5781
|
+
__export(interface_exports71, {
|
|
5782
|
+
Route: () => Route129
|
|
5783
|
+
});
|
|
5784
|
+
var Route129 = "mobile_print";
|
|
5785
|
+
|
|
5776
5786
|
// src/index.ts
|
|
5777
5787
|
var index_default = main_exports;
|
|
5778
5788
|
export {
|
package/dist/main.d.ts
CHANGED
|
@@ -249,4 +249,5 @@ import * as GoogleCalendar from './modules/stock/googleCalendar/interface';
|
|
|
249
249
|
import * as GoogleCalendarRoutes from './modules/stock/googleCalendar/route.schema';
|
|
250
250
|
import * as WebSocket from './modules/view/webSocket/interfaces';
|
|
251
251
|
import * as ProductLocation from './modules/stock/productLocation/interface';
|
|
252
|
-
|
|
252
|
+
import * as MobilePrint from './modules/stock/mobilePrint/interface';
|
|
253
|
+
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, };
|
|
@@ -7,6 +7,7 @@ export interface IHighlightItem {
|
|
|
7
7
|
user_type: IDocumentTypeUserType;
|
|
8
8
|
state: string;
|
|
9
9
|
}
|
|
10
|
+
export declare const highlightValueSeparator = "|:|";
|
|
10
11
|
/** Serialize / parse helpers for the composite "user_type|:|state" value. */
|
|
11
12
|
export declare const buildHighlightValue: (item: IHighlightItem) => string;
|
|
12
13
|
export declare const parseHighlightValue: (value: string) => IHighlightItem | null;
|
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.45.
|
|
4
|
+
"version": "0.45.42",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|