@nomalism-com/types 0.44.9 → 0.44.11
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 +31 -15
- package/dist/index.js +31 -15
- package/dist/main.d.ts +2 -1
- package/dist/modules/document/materialEntrance/interfaces.d.ts +3 -0
- package/dist/modules/stock/dashboard/interface.d.ts +2 -1
- package/dist/modules/stock/googleCalendar/interface.d.ts +19 -0
- package/dist/modules/stock/googleCalendar/route.schema.d.ts +3 -0
- package/dist/modules/stock/productGoogleSheets/interface.d.ts +4 -0
- package/dist/modules/ui/portal/interface.d.ts +1 -0
- package/dist/shared/entities/stock.d.ts +2 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -78,6 +78,7 @@ __export(main_exports, {
|
|
|
78
78
|
FileRoutes: () => route_schema_exports22,
|
|
79
79
|
Gmails: () => interface_exports58,
|
|
80
80
|
GoogleCalendar: () => interface_exports67,
|
|
81
|
+
GoogleCalendarRoutes: () => route_schema_exports114,
|
|
81
82
|
GoogleFilePermission: () => interfaces_exports34,
|
|
82
83
|
GoogleFilePermissionRoutes: () => route_schema_exports68,
|
|
83
84
|
GoogleSheetPool: () => interface_exports64,
|
|
@@ -4851,6 +4852,7 @@ var entradaDeMaterialStockBodyKeys = {
|
|
|
4851
4852
|
ordered_quantity: joi85.number().positive().allow(0).required(),
|
|
4852
4853
|
document_line_id: joi85.string().uuid().allow(null).required(),
|
|
4853
4854
|
quantity: joi85.number().positive().allow(0).required(),
|
|
4855
|
+
real_quantity: joi85.number().positive().allow(0).required(),
|
|
4854
4856
|
option: joi85.string().valid(...createMaterialEntranceStockOptions, ...createMaterialEntranceStockWithoutOrderOptions).allow(null).required(),
|
|
4855
4857
|
note: joi85.string().allow(null),
|
|
4856
4858
|
printed: joi85.string().allow(null)
|
|
@@ -5886,8 +5888,10 @@ var findPaymentsNotExportedQuery2 = joi109.object().keys({
|
|
|
5886
5888
|
// src/modules/ui/portal/interface.ts
|
|
5887
5889
|
var interface_exports63 = {};
|
|
5888
5890
|
__export(interface_exports63, {
|
|
5889
|
-
IPublicDocumentHeaderNoteType: () => IPublicDocumentHeaderNoteType
|
|
5891
|
+
IPublicDocumentHeaderNoteType: () => IPublicDocumentHeaderNoteType,
|
|
5892
|
+
Route: () => Route107
|
|
5890
5893
|
});
|
|
5894
|
+
var Route107 = "portal";
|
|
5891
5895
|
var IPublicDocumentHeaderNoteType = /* @__PURE__ */ ((IPublicDocumentHeaderNoteType2) => {
|
|
5892
5896
|
IPublicDocumentHeaderNoteType2["Provider"] = "Provider";
|
|
5893
5897
|
IPublicDocumentHeaderNoteType2["Client"] = "Client";
|
|
@@ -5916,10 +5920,10 @@ var updateNoteBody = joi110.object().keys(updateNoteBodyKeys).messages(messages)
|
|
|
5916
5920
|
var interface_exports64 = {};
|
|
5917
5921
|
__export(interface_exports64, {
|
|
5918
5922
|
LowerName: () => LowerName105,
|
|
5919
|
-
Route: () =>
|
|
5923
|
+
Route: () => Route108,
|
|
5920
5924
|
UpperName: () => UpperName105
|
|
5921
5925
|
});
|
|
5922
|
-
var
|
|
5926
|
+
var Route108 = "google_sheet_pool";
|
|
5923
5927
|
var UpperName105 = "GoogleSheetPool";
|
|
5924
5928
|
var LowerName105 = UpperName105[0].toLowerCase() + UpperName105.substring(1);
|
|
5925
5929
|
|
|
@@ -5927,10 +5931,10 @@ var LowerName105 = UpperName105[0].toLowerCase() + UpperName105.substring(1);
|
|
|
5927
5931
|
var interface_exports65 = {};
|
|
5928
5932
|
__export(interface_exports65, {
|
|
5929
5933
|
LowerName: () => LowerName106,
|
|
5930
|
-
Route: () =>
|
|
5934
|
+
Route: () => Route109,
|
|
5931
5935
|
UpperName: () => UpperName106
|
|
5932
5936
|
});
|
|
5933
|
-
var
|
|
5937
|
+
var Route109 = "account_code";
|
|
5934
5938
|
var UpperName106 = "AccountCode";
|
|
5935
5939
|
var LowerName106 = UpperName106[0].toLowerCase() + UpperName106.substring(1);
|
|
5936
5940
|
|
|
@@ -5948,9 +5952,9 @@ var findByCode = joi111.object().keys(findByCodeParams).messages(messages);
|
|
|
5948
5952
|
// src/modules/llm/llm/interfaces.ts
|
|
5949
5953
|
var interfaces_exports57 = {};
|
|
5950
5954
|
__export(interfaces_exports57, {
|
|
5951
|
-
Route: () =>
|
|
5955
|
+
Route: () => Route110
|
|
5952
5956
|
});
|
|
5953
|
-
var
|
|
5957
|
+
var Route110 = "llm";
|
|
5954
5958
|
|
|
5955
5959
|
// src/modules/llm/llm/route.schema.ts
|
|
5956
5960
|
var route_schema_exports111 = {};
|
|
@@ -5978,10 +5982,10 @@ var identifyLanguageSchema = joi112.object({
|
|
|
5978
5982
|
var interfaces_exports58 = {};
|
|
5979
5983
|
__export(interfaces_exports58, {
|
|
5980
5984
|
LowerName: () => LowerName107,
|
|
5981
|
-
Route: () =>
|
|
5985
|
+
Route: () => Route111,
|
|
5982
5986
|
UpperName: () => UpperName107
|
|
5983
5987
|
});
|
|
5984
|
-
var
|
|
5988
|
+
var Route111 = "patch_notes";
|
|
5985
5989
|
var UpperName107 = "PatchNotes";
|
|
5986
5990
|
var LowerName107 = UpperName107[0].toLowerCase() + UpperName107.substring(1);
|
|
5987
5991
|
|
|
@@ -5989,10 +5993,10 @@ var LowerName107 = UpperName107[0].toLowerCase() + UpperName107.substring(1);
|
|
|
5989
5993
|
var interfaces_exports59 = {};
|
|
5990
5994
|
__export(interfaces_exports59, {
|
|
5991
5995
|
LowerName: () => LowerName108,
|
|
5992
|
-
Route: () =>
|
|
5996
|
+
Route: () => Route112,
|
|
5993
5997
|
UpperName: () => UpperName108
|
|
5994
5998
|
});
|
|
5995
|
-
var
|
|
5999
|
+
var Route112 = "documentHeaderSurvey";
|
|
5996
6000
|
var UpperName108 = "DocumentHeaderSurvey";
|
|
5997
6001
|
var LowerName108 = UpperName108[0].toLowerCase() + UpperName108.substring(1);
|
|
5998
6002
|
|
|
@@ -6019,10 +6023,10 @@ var updateSurveyBody = joi113.object().keys(updateSurveyBodyKeys).messages(messa
|
|
|
6019
6023
|
var interface_exports66 = {};
|
|
6020
6024
|
__export(interface_exports66, {
|
|
6021
6025
|
LowerName: () => LowerName109,
|
|
6022
|
-
Route: () =>
|
|
6026
|
+
Route: () => Route113,
|
|
6023
6027
|
UpperName: () => UpperName109
|
|
6024
6028
|
});
|
|
6025
|
-
var
|
|
6029
|
+
var Route113 = "file";
|
|
6026
6030
|
var UpperName109 = "DocumentHeaderSubscriber";
|
|
6027
6031
|
var LowerName109 = UpperName109[0].toLowerCase() + UpperName109.substring(1);
|
|
6028
6032
|
|
|
@@ -6042,13 +6046,25 @@ var createBody64 = joi114.object().keys(createBodyKeys63).messages(messages);
|
|
|
6042
6046
|
var interface_exports67 = {};
|
|
6043
6047
|
__export(interface_exports67, {
|
|
6044
6048
|
LowerName: () => LowerName110,
|
|
6045
|
-
Route: () =>
|
|
6049
|
+
Route: () => Route114,
|
|
6046
6050
|
UpperName: () => UpperName110
|
|
6047
6051
|
});
|
|
6048
|
-
var
|
|
6052
|
+
var Route114 = "google_calendar";
|
|
6049
6053
|
var UpperName110 = "GoogleCalendar";
|
|
6050
6054
|
var LowerName110 = UpperName110[0].toLowerCase() + UpperName110.substring(1);
|
|
6051
6055
|
|
|
6056
|
+
// src/modules/stock/googleCalendar/route.schema.ts
|
|
6057
|
+
var route_schema_exports114 = {};
|
|
6058
|
+
__export(route_schema_exports114, {
|
|
6059
|
+
listEventsInRangeQuery: () => listEventsInRangeQuery
|
|
6060
|
+
});
|
|
6061
|
+
import joi115 from "joi";
|
|
6062
|
+
var listEventsInRangeQuery = joi115.object().keys({
|
|
6063
|
+
calendarId: joi115.string().required(),
|
|
6064
|
+
from: joi115.string().required(),
|
|
6065
|
+
to: joi115.string().required()
|
|
6066
|
+
}).messages(messages);
|
|
6067
|
+
|
|
6052
6068
|
// src/index.ts
|
|
6053
6069
|
var index_default = main_exports;
|
|
6054
6070
|
export {
|
package/dist/index.js
CHANGED
|
@@ -78,6 +78,7 @@ __export(main_exports, {
|
|
|
78
78
|
FileRoutes: () => route_schema_exports22,
|
|
79
79
|
Gmails: () => interface_exports58,
|
|
80
80
|
GoogleCalendar: () => interface_exports67,
|
|
81
|
+
GoogleCalendarRoutes: () => route_schema_exports114,
|
|
81
82
|
GoogleFilePermission: () => interfaces_exports34,
|
|
82
83
|
GoogleFilePermissionRoutes: () => route_schema_exports68,
|
|
83
84
|
GoogleSheetPool: () => interface_exports64,
|
|
@@ -4851,6 +4852,7 @@ var entradaDeMaterialStockBodyKeys = {
|
|
|
4851
4852
|
ordered_quantity: joi85.number().positive().allow(0).required(),
|
|
4852
4853
|
document_line_id: joi85.string().uuid().allow(null).required(),
|
|
4853
4854
|
quantity: joi85.number().positive().allow(0).required(),
|
|
4855
|
+
real_quantity: joi85.number().positive().allow(0).required(),
|
|
4854
4856
|
option: joi85.string().valid(...createMaterialEntranceStockOptions, ...createMaterialEntranceStockWithoutOrderOptions).allow(null).required(),
|
|
4855
4857
|
note: joi85.string().allow(null),
|
|
4856
4858
|
printed: joi85.string().allow(null)
|
|
@@ -5886,8 +5888,10 @@ var findPaymentsNotExportedQuery2 = joi109.object().keys({
|
|
|
5886
5888
|
// src/modules/ui/portal/interface.ts
|
|
5887
5889
|
var interface_exports63 = {};
|
|
5888
5890
|
__export(interface_exports63, {
|
|
5889
|
-
IPublicDocumentHeaderNoteType: () => IPublicDocumentHeaderNoteType
|
|
5891
|
+
IPublicDocumentHeaderNoteType: () => IPublicDocumentHeaderNoteType,
|
|
5892
|
+
Route: () => Route107
|
|
5890
5893
|
});
|
|
5894
|
+
var Route107 = "portal";
|
|
5891
5895
|
var IPublicDocumentHeaderNoteType = /* @__PURE__ */ ((IPublicDocumentHeaderNoteType2) => {
|
|
5892
5896
|
IPublicDocumentHeaderNoteType2["Provider"] = "Provider";
|
|
5893
5897
|
IPublicDocumentHeaderNoteType2["Client"] = "Client";
|
|
@@ -5916,10 +5920,10 @@ var updateNoteBody = joi110.object().keys(updateNoteBodyKeys).messages(messages)
|
|
|
5916
5920
|
var interface_exports64 = {};
|
|
5917
5921
|
__export(interface_exports64, {
|
|
5918
5922
|
LowerName: () => LowerName105,
|
|
5919
|
-
Route: () =>
|
|
5923
|
+
Route: () => Route108,
|
|
5920
5924
|
UpperName: () => UpperName105
|
|
5921
5925
|
});
|
|
5922
|
-
var
|
|
5926
|
+
var Route108 = "google_sheet_pool";
|
|
5923
5927
|
var UpperName105 = "GoogleSheetPool";
|
|
5924
5928
|
var LowerName105 = UpperName105[0].toLowerCase() + UpperName105.substring(1);
|
|
5925
5929
|
|
|
@@ -5927,10 +5931,10 @@ var LowerName105 = UpperName105[0].toLowerCase() + UpperName105.substring(1);
|
|
|
5927
5931
|
var interface_exports65 = {};
|
|
5928
5932
|
__export(interface_exports65, {
|
|
5929
5933
|
LowerName: () => LowerName106,
|
|
5930
|
-
Route: () =>
|
|
5934
|
+
Route: () => Route109,
|
|
5931
5935
|
UpperName: () => UpperName106
|
|
5932
5936
|
});
|
|
5933
|
-
var
|
|
5937
|
+
var Route109 = "account_code";
|
|
5934
5938
|
var UpperName106 = "AccountCode";
|
|
5935
5939
|
var LowerName106 = UpperName106[0].toLowerCase() + UpperName106.substring(1);
|
|
5936
5940
|
|
|
@@ -5948,9 +5952,9 @@ var findByCode = joi111.object().keys(findByCodeParams).messages(messages);
|
|
|
5948
5952
|
// src/modules/llm/llm/interfaces.ts
|
|
5949
5953
|
var interfaces_exports57 = {};
|
|
5950
5954
|
__export(interfaces_exports57, {
|
|
5951
|
-
Route: () =>
|
|
5955
|
+
Route: () => Route110
|
|
5952
5956
|
});
|
|
5953
|
-
var
|
|
5957
|
+
var Route110 = "llm";
|
|
5954
5958
|
|
|
5955
5959
|
// src/modules/llm/llm/route.schema.ts
|
|
5956
5960
|
var route_schema_exports111 = {};
|
|
@@ -5978,10 +5982,10 @@ var identifyLanguageSchema = joi112.object({
|
|
|
5978
5982
|
var interfaces_exports58 = {};
|
|
5979
5983
|
__export(interfaces_exports58, {
|
|
5980
5984
|
LowerName: () => LowerName107,
|
|
5981
|
-
Route: () =>
|
|
5985
|
+
Route: () => Route111,
|
|
5982
5986
|
UpperName: () => UpperName107
|
|
5983
5987
|
});
|
|
5984
|
-
var
|
|
5988
|
+
var Route111 = "patch_notes";
|
|
5985
5989
|
var UpperName107 = "PatchNotes";
|
|
5986
5990
|
var LowerName107 = UpperName107[0].toLowerCase() + UpperName107.substring(1);
|
|
5987
5991
|
|
|
@@ -5989,10 +5993,10 @@ var LowerName107 = UpperName107[0].toLowerCase() + UpperName107.substring(1);
|
|
|
5989
5993
|
var interfaces_exports59 = {};
|
|
5990
5994
|
__export(interfaces_exports59, {
|
|
5991
5995
|
LowerName: () => LowerName108,
|
|
5992
|
-
Route: () =>
|
|
5996
|
+
Route: () => Route112,
|
|
5993
5997
|
UpperName: () => UpperName108
|
|
5994
5998
|
});
|
|
5995
|
-
var
|
|
5999
|
+
var Route112 = "documentHeaderSurvey";
|
|
5996
6000
|
var UpperName108 = "DocumentHeaderSurvey";
|
|
5997
6001
|
var LowerName108 = UpperName108[0].toLowerCase() + UpperName108.substring(1);
|
|
5998
6002
|
|
|
@@ -6019,10 +6023,10 @@ var updateSurveyBody = joi113.object().keys(updateSurveyBodyKeys).messages(messa
|
|
|
6019
6023
|
var interface_exports66 = {};
|
|
6020
6024
|
__export(interface_exports66, {
|
|
6021
6025
|
LowerName: () => LowerName109,
|
|
6022
|
-
Route: () =>
|
|
6026
|
+
Route: () => Route113,
|
|
6023
6027
|
UpperName: () => UpperName109
|
|
6024
6028
|
});
|
|
6025
|
-
var
|
|
6029
|
+
var Route113 = "file";
|
|
6026
6030
|
var UpperName109 = "DocumentHeaderSubscriber";
|
|
6027
6031
|
var LowerName109 = UpperName109[0].toLowerCase() + UpperName109.substring(1);
|
|
6028
6032
|
|
|
@@ -6042,13 +6046,25 @@ var createBody64 = joi114.object().keys(createBodyKeys63).messages(messages);
|
|
|
6042
6046
|
var interface_exports67 = {};
|
|
6043
6047
|
__export(interface_exports67, {
|
|
6044
6048
|
LowerName: () => LowerName110,
|
|
6045
|
-
Route: () =>
|
|
6049
|
+
Route: () => Route114,
|
|
6046
6050
|
UpperName: () => UpperName110
|
|
6047
6051
|
});
|
|
6048
|
-
var
|
|
6052
|
+
var Route114 = "google_calendar";
|
|
6049
6053
|
var UpperName110 = "GoogleCalendar";
|
|
6050
6054
|
var LowerName110 = UpperName110[0].toLowerCase() + UpperName110.substring(1);
|
|
6051
6055
|
|
|
6056
|
+
// src/modules/stock/googleCalendar/route.schema.ts
|
|
6057
|
+
var route_schema_exports114 = {};
|
|
6058
|
+
__export(route_schema_exports114, {
|
|
6059
|
+
listEventsInRangeQuery: () => listEventsInRangeQuery
|
|
6060
|
+
});
|
|
6061
|
+
import joi115 from "joi";
|
|
6062
|
+
var listEventsInRangeQuery = joi115.object().keys({
|
|
6063
|
+
calendarId: joi115.string().required(),
|
|
6064
|
+
from: joi115.string().required(),
|
|
6065
|
+
to: joi115.string().required()
|
|
6066
|
+
}).messages(messages);
|
|
6067
|
+
|
|
6052
6068
|
// src/index.ts
|
|
6053
6069
|
var index_default = main_exports;
|
|
6054
6070
|
export {
|
package/dist/main.d.ts
CHANGED
|
@@ -242,4 +242,5 @@ import * as DocumentHeaderSurveyRoutes from './modules/supply/documentHeaderSurv
|
|
|
242
242
|
import * as DocumentHeaderSubscriber from './modules/supply/documentHeaderSubscriber/interface';
|
|
243
243
|
import * as DocumentHeaderSubscriberRoutes from './modules/supply/documentHeaderSubscriber/route.schema';
|
|
244
244
|
import * as GoogleCalendar from './modules/stock/googleCalendar/interface';
|
|
245
|
-
|
|
245
|
+
import * as GoogleCalendarRoutes from './modules/stock/googleCalendar/route.schema';
|
|
246
|
+
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, 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, DocumentHeaderSurvey, DocumentHeaderSurveyRoutes, DocumentHeaderSubscriber, DocumentHeaderSubscriberRoutes, GoogleCalendar, GoogleCalendarRoutes, };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DocumentHeader, DocumentLineNote } from '../../../shared/entities/stock';
|
|
2
2
|
import * as IShared from '../../../shared/interface';
|
|
3
3
|
import { type IProductType } from '../../stock/productGoogleSheets/interface';
|
|
4
|
+
import type { ISavedEmPickingData } from '../../stock/savedEmPicking/interfaces';
|
|
4
5
|
export declare const Route = "material_entrance";
|
|
5
6
|
export declare const UpperName = "MaterialEntrance";
|
|
6
7
|
export declare const LowerName: string;
|
|
@@ -51,6 +52,7 @@ export interface IGetMaterialEntranceInfoStock {
|
|
|
51
52
|
export interface IEntradaDeMaterialStock extends IGetMaterialEntranceInfoStock {
|
|
52
53
|
document_line_id: string | null;
|
|
53
54
|
quantity: number;
|
|
55
|
+
real_quantity: number;
|
|
54
56
|
option: ICreateMaterialEntranceStockOption | ICreateMaterialEntranceStockWithoutOrderOption | null;
|
|
55
57
|
note: string | null;
|
|
56
58
|
printed: string | null;
|
|
@@ -127,6 +129,7 @@ interface IRepository {
|
|
|
127
129
|
undoEntradaMaterial(data: IUndoEntradaDeMaterialRequest): Promise<void>;
|
|
128
130
|
findUnfinishedPickings(selector: IShared.IFindByIdRequest): Promise<IUnfinishedPickingsResponse[]>;
|
|
129
131
|
findMaterialEntranceProviders(): Promise<IShared.IFindMinifiedResponse[]>;
|
|
132
|
+
findDoneById(params: IShared.IFindByIdRequest): Promise<ISavedEmPickingData | null>;
|
|
130
133
|
}
|
|
131
134
|
export type IApi = Omit<IRepository, 'finalizarEntradaMaterial'> & {
|
|
132
135
|
finalizarEntradaMaterial(data: IFinalizarEntradaDeMaterialRequest): Promise<IFinalizarEntradaDeMaterialResponse>;
|
|
@@ -4,7 +4,8 @@ export declare const LowerName: string;
|
|
|
4
4
|
export type IDashboardSalesNames = 'dia' | 'mes' | 'ano';
|
|
5
5
|
export interface IDashboardSalesRowValue {
|
|
6
6
|
sheets: number;
|
|
7
|
-
|
|
7
|
+
stock: number;
|
|
8
|
+
encomenda: number;
|
|
8
9
|
}
|
|
9
10
|
export interface IDashboardSalesRow {
|
|
10
11
|
chave: number;
|
|
@@ -3,6 +3,25 @@ export type Entity = GoogleCalendar;
|
|
|
3
3
|
export declare const Route = "google_calendar";
|
|
4
4
|
export declare const UpperName = "GoogleCalendar";
|
|
5
5
|
export declare const LowerName: string;
|
|
6
|
+
export interface IListEventsInRangeRequest {
|
|
7
|
+
calendarId: string;
|
|
8
|
+
from: string;
|
|
9
|
+
to: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IListEventsInRangeResponse {
|
|
12
|
+
id: string;
|
|
13
|
+
title: string;
|
|
14
|
+
start: string;
|
|
15
|
+
end?: string;
|
|
16
|
+
allDay: boolean;
|
|
17
|
+
url?: string;
|
|
18
|
+
extendedProps: {
|
|
19
|
+
description: string | null;
|
|
20
|
+
location: string | null;
|
|
21
|
+
colorId: string | null;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
6
24
|
export interface IRepository {
|
|
7
25
|
find(): Promise<Entity[]>;
|
|
26
|
+
listEventsInRange(params: IListEventsInRangeRequest): Promise<IListEventsInRangeResponse[]>;
|
|
8
27
|
}
|
|
@@ -217,6 +217,10 @@ export interface IProductByOwner {
|
|
|
217
217
|
id: string;
|
|
218
218
|
reference: string;
|
|
219
219
|
}
|
|
220
|
+
export interface IExpectDeliveryDates {
|
|
221
|
+
quantity: number;
|
|
222
|
+
date: string | null;
|
|
223
|
+
}
|
|
220
224
|
export interface IRepository {
|
|
221
225
|
basicSearch(params: IBasicSearchRequest): Promise<IShared.IPaginationResponse<IBasicSearchResponse>>;
|
|
222
226
|
findReferenceAndIdForMobile(params: IFindForMobileRequest): Promise<IFindReferenceAndIdForMobileResponse | null>;
|
|
@@ -2,6 +2,7 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import type { IChatBalloon } from '../../stock/chat/interfaces';
|
|
3
3
|
import type { IDocumentTypeUserType } from '../../supply/documentType/interfaces';
|
|
4
4
|
import type * as ChatSubscriber from '../../user/chatSubscribers/interfaces';
|
|
5
|
+
export declare const Route = "portal";
|
|
5
6
|
export interface ITags {
|
|
6
7
|
id: string;
|
|
7
8
|
text: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IConflict } from '../../modules/document/propostaSheets/interface';
|
|
2
2
|
import { IDocumentTypeUserType, IDocumentTypeCodeType } from '../../modules/supply/documentType/interfaces';
|
|
3
3
|
import { IBatchType } from '../../modules/supply/paymentBatch/interface';
|
|
4
|
-
import { IProductType } from '../../modules/stock/productGoogleSheets/interface';
|
|
4
|
+
import { IExpectDeliveryDates, IProductType } from '../../modules/stock/productGoogleSheets/interface';
|
|
5
5
|
import { IImageType } from '../../modules/stock/productImage/interface';
|
|
6
6
|
import { ITagType } from '../../modules/stock/tag/interface';
|
|
7
7
|
import { IQueryParameterDatatype } from '../../modules/stock/queryParameter/interfaces';
|
|
@@ -861,6 +861,7 @@ export type ProductVirtuals = {
|
|
|
861
861
|
available: number;
|
|
862
862
|
ordered_quantity: number;
|
|
863
863
|
inativa: boolean;
|
|
864
|
+
expected_delivery_dates: IExpectDeliveryDates[];
|
|
864
865
|
};
|
|
865
866
|
/**
|
|
866
867
|
* Model DocumentLineBaseVirtuals
|
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.44.
|
|
4
|
+
"version": "0.44.11",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
"prepack": "npm run lint && npm run build"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"joi": "^18.1
|
|
29
|
+
"joi": "^18.2.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@swc/core": "^1.15.
|
|
32
|
+
"@swc/core": "^1.15.33",
|
|
33
33
|
"@types/node": "^24.12.2",
|
|
34
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
35
|
-
"@typescript-eslint/parser": "^8.
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^8.59.2",
|
|
35
|
+
"@typescript-eslint/parser": "^8.59.2",
|
|
36
36
|
"eslint": "^9.39.4",
|
|
37
37
|
"eslint-config-prettier": "^10.1.8",
|
|
38
38
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
39
39
|
"eslint-plugin-prettier": "^5.5.5",
|
|
40
|
-
"prettier": "^3.8.
|
|
40
|
+
"prettier": "^3.8.3",
|
|
41
41
|
"tsup": "^8.5.1"
|
|
42
42
|
},
|
|
43
43
|
"repository": {
|