@nomalism-com/types 0.15.9 → 0.16.1
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.d.ts +15 -12
- package/dist/index.js +25 -19
- package/dist/modules/document/inventario/interface.d.ts +18 -0
- package/dist/modules/document/inventario/interface.js +6 -0
- package/dist/modules/document/inventario/route.schema.d.ts +2 -0
- package/dist/modules/document/inventario/route.schema.js +22 -0
- package/dist/modules/document/order/interfaces.d.ts +5 -0
- package/dist/modules/document/order/route.schema.d.ts +1 -0
- package/dist/modules/document/order/route.schema.js +9 -1
- package/dist/modules/{supply → document}/quebra/interfaces.d.ts +14 -0
- package/dist/modules/document/quebra/route.schema.d.ts +2 -0
- package/dist/modules/{supply → document}/quebra/route.schema.js +6 -6
- package/dist/modules/document/returnToProvider/interface.d.ts +39 -0
- package/dist/modules/document/returnToProvider/interface.js +13 -0
- package/dist/modules/document/returnToProvider/route.schema.d.ts +2 -0
- package/dist/modules/document/returnToProvider/route.schema.js +28 -0
- package/dist/modules/stock/prison/interface.d.ts +41 -0
- package/dist/modules/stock/prison/interface.js +12 -0
- package/dist/modules/stock/prison/route.schema.d.ts +2 -0
- package/dist/modules/stock/prison/route.schema.js +27 -0
- package/dist/modules/stock/product/interface.d.ts +0 -2
- package/dist/modules/stock/product/tests.js +0 -5
- package/dist/modules/supply/documentHeader/interfaces.d.ts +3 -4
- package/dist/modules/supply/documentHeader/route.schema.js +2 -4
- package/dist/modules/supply/documentLine/interfaces.d.ts +0 -2
- package/dist/modules/supply/documentLineAssoc/interfaces.d.ts +0 -2
- package/dist/modules/supply/preSale/interface.d.ts +2 -3
- package/dist/shared/entities/index.d.ts +0 -1
- package/dist/shared/entities/stock.d.ts +3 -17
- package/package.json +4 -4
- package/dist/modules/stock/plot/interface.d.ts +0 -198
- package/dist/modules/stock/plot/interface.js +0 -24
- package/dist/modules/stock/plot/route.schema.d.ts +0 -9
- package/dist/modules/stock/plot/route.schema.js +0 -108
- package/dist/modules/stock/plot/tests.d.ts +0 -6
- package/dist/modules/stock/plot/tests.js +0 -74
- package/dist/modules/supply/transformado/route.schema.d.ts +0 -2
- /package/dist/modules/{supply → document}/propostaSheets/interface.d.ts +0 -0
- /package/dist/modules/{supply → document}/propostaSheets/interface.js +0 -0
- /package/dist/modules/{supply → document}/propostaSheets/route.schema.d.ts +0 -0
- /package/dist/modules/{supply → document}/propostaSheets/route.schema.js +0 -0
- /package/dist/modules/{supply → document}/quebra/interfaces.js +0 -0
- /package/dist/modules/{supply → document}/transformado/interfaces.d.ts +0 -0
- /package/dist/modules/{supply → document}/transformado/interfaces.js +0 -0
- /package/dist/modules/{supply/quebra → document/transformado}/route.schema.d.ts +0 -0
- /package/dist/modules/{supply → document}/transformado/route.schema.js +0 -0
- /package/dist/modules/{supply → document}/upfrontReturn/interfaces.d.ts +0 -0
- /package/dist/modules/{supply → document}/upfrontReturn/interfaces.js +0 -0
- /package/dist/modules/{supply → document}/upfrontReturn/route.schema.d.ts +0 -0
- /package/dist/modules/{supply → document}/upfrontReturn/route.schema.js +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -131,9 +131,6 @@ import * as PaymentMethodsRoutes from './modules/user/paymentMethods/route.schem
|
|
|
131
131
|
import * as Permissions from './modules/user/permissions/interface';
|
|
132
132
|
import * as PermissionsRoutes from './modules/user/permissions/route.schema';
|
|
133
133
|
import * as PermissionsRouteResponses from './modules/user/permissions/tests';
|
|
134
|
-
import * as Plot from './modules/stock/plot/interface';
|
|
135
|
-
import * as PlotRoutes from './modules/stock/plot/route.schema';
|
|
136
|
-
import * as PlotRouteResponses from './modules/stock/plot/tests';
|
|
137
134
|
import * as PrimaryColor from './modules/stock/primaryColor/interface';
|
|
138
135
|
import * as PrimaryColorRoutes from './modules/stock/primaryColor/route.schema';
|
|
139
136
|
import * as PrimaryColorRouteResponses from './modules/stock/primaryColor/tests';
|
|
@@ -292,8 +289,8 @@ import * as QueryParameter from './modules/stock/queryParameter/interfaces';
|
|
|
292
289
|
import * as QueryParameterRoutes from './modules/stock/queryParameter/route.schema';
|
|
293
290
|
import * as ReturnReason from './modules/stock/returnReason/interfaces';
|
|
294
291
|
import * as ReturnReasonRoutes from './modules/stock/returnReason/route.schema';
|
|
295
|
-
import * as PropostaSheets from './modules/
|
|
296
|
-
import * as PropostaSheetsRoutes from './modules/
|
|
292
|
+
import * as PropostaSheets from './modules/document/propostaSheets/interface';
|
|
293
|
+
import * as PropostaSheetsRoutes from './modules/document/propostaSheets/route.schema';
|
|
297
294
|
import * as Schedule from './modules/supply/schedule/interface';
|
|
298
295
|
import * as ScheduleRoutes from './modules/supply/schedule/route.schema';
|
|
299
296
|
import * as GoogleFilePermission from './modules/integration/googleFilePermission/interfaces';
|
|
@@ -322,16 +319,22 @@ import * as Order from './modules/document/order/interfaces';
|
|
|
322
319
|
import * as OrderRoutes from './modules/document/order/route.schema';
|
|
323
320
|
import * as MaterialEntrance from './modules/document/materialEntrance/interfaces';
|
|
324
321
|
import * as MaterialEntranceRoutes from './modules/document/materialEntrance/route.schema';
|
|
325
|
-
import * as Transformado from './modules/
|
|
326
|
-
import * as TransformadoRoutes from './modules/
|
|
327
|
-
import * as Quebra from './modules/
|
|
328
|
-
import * as QuebraRoutes from './modules/
|
|
329
|
-
import * as UpfrontReturn from './modules/
|
|
330
|
-
import * as UpfrontReturnRoutes from './modules/
|
|
322
|
+
import * as Transformado from './modules/document/transformado/interfaces';
|
|
323
|
+
import * as TransformadoRoutes from './modules/document/transformado/route.schema';
|
|
324
|
+
import * as Quebra from './modules/document/quebra/interfaces';
|
|
325
|
+
import * as QuebraRoutes from './modules/document/quebra/route.schema';
|
|
326
|
+
import * as UpfrontReturn from './modules/document/upfrontReturn/interfaces';
|
|
327
|
+
import * as UpfrontReturnRoutes from './modules/document/upfrontReturn/route.schema';
|
|
331
328
|
import * as SavedEmPicking from './modules/stock/savedEmPicking/interfaces';
|
|
332
329
|
import * as SavedEmPickingRoutes from './modules/stock/savedEmPicking/route.schema';
|
|
333
330
|
import * as EmailTemplate from './modules/integration/emailTemplate/interfaces';
|
|
334
331
|
import * as EmailTemplateRoutes from './modules/integration/emailTemplate/route.schema';
|
|
335
332
|
import * as EmailTemplateAttachment from './modules/integration/emailTemplateAttachment/interfaces';
|
|
336
333
|
import * as EmailTemplateAttachmentRoutes from './modules/integration/emailTemplateAttachment/route.schema';
|
|
337
|
-
|
|
334
|
+
import * as Inventario from './modules/document/inventario/interface';
|
|
335
|
+
import * as InventarioRoutes from './modules/document/inventario/route.schema';
|
|
336
|
+
import * as ReturnToProvider from './modules/document/returnToProvider/interface';
|
|
337
|
+
import * as ReturnToProviderRoutes from './modules/document/returnToProvider/route.schema';
|
|
338
|
+
import * as Prison from './modules/stock/prison/interface';
|
|
339
|
+
import * as PrisonRoutes from './modules/stock/prison/route.schema';
|
|
340
|
+
export { shared, viewErrors, stockErrors, userErrors, documentManagementErrors, integrationErrors, ZipCode, ZipCodeRoutes, Attribute, AttributeRoutes, AttributeRouteResponses, AttributeValue, AttributeValueRoutes, AttributeValueRouteResponses, BankData, BankDataRoutes, BankDataSwagger, BankDataRouteResponses, Client, ClientRoutes, ClientType, ClientTypeRoutes, ClientTypeSwagger, ClientTypeRouteResponses, ClientCurrentAccount, ClientCurrentAccountRoutes, Color, ColorRoutes, ColorRouteResponses, Commissioner, CommissionerRoutes, Composition, CompositionRoutes, CompositionRouteResponses, CompositionMaterial, CompositionMaterialRoutes, CompositionMaterialRouteResponses, Counter, CounterRoutes, Country, CountryRoutes, CountrySwagger, CountryRouteResponses, Channels, Connections, DeliveryMethods, DeliveryMethodsRoutes, DocumentHeader, DocumentHeaderRoutes, DocumentLine, DocumentLineRoutes, DocumentLineRouteResponses, DocumentLineAssoc, DocumentLineAssocRoutes, DocumentLineAssocRouteResponses, DocumentLineFolder, DocumentLineFolderRoutes, DocumentSet, DocumentSetRoutes, DocumentType, DocumentTypeRoutes, DynamicData, DynamicDataRoutes, EntityList, EntityListRoutes, EntityListRouteResponses, ExternalDocumentType, ExternalDocumentHeader, ExternalDocumentHeaderRoutes, ExternalDocumentHeaderRouteResponses, EventHistory, EventHistoryRoutes, Favorites, FavoritesRoutes, FavoritesRouteResponses, Field, FieldRoutes, FieldSwagger, FieldRouteResponses, FieldGroup, FieldGroupRoutes, FieldGroupSwagger, FieldGroupRouteResponses, File, FileRoutes, GroupPermissions, GroupPermissionsRoutes, GroupPermissionsRouteResponses, History, HistoryRoutes, HistorySwagger, GoogleSheets, GoogleSheetsRoutes, Language, LanguageRoutes, LanguageSwagger, LanguageRouteResponses, Location, LocationRoutes, LocationRouteResponses, Maintenance, MaintenanceRoutes, MaintenanceRouteResponses, MaintenanceAssoc, MaintenanceAssocRoutes, MaintenanceAssocRouteResponses, MaintenanceType, MaintenanceTypeRoutes, MaintenanceTypeRouteResponses, MaturityDates, MaturityDatesRoutes, Multimedia, MultimediaRoutes, MultimediaSwagger, MultimediaRouteResponses, OrderManagement, Observation, ObservationRoutes, ObservationRouteResponses, ObservationType, ObservationTypeRoutes, ObservationTypeRouteResponses, Password, PasswordRoutes, Payment, PaymentRoutes, PaymentRouteResponses, PaymentConditions, PaymentConditionsRoutes, PaymentConditionsRouteResponses, PaymentMethods, PaymentMethodsRoutes, Permissions, PermissionsRoutes, PermissionsRouteResponses, PrimaryColor, PrimaryColorRoutes, PrimaryColorRouteResponses, Product, ProductRoutes, ProductRouteResponses, ProductAttribute, ProductAttributeRoutes, ProductAttributeRouteResponses, ProductCategory, ProductCategoryRoutes, ProductCategoryRouteResponses, ProductColor, ProductColorRoutes, ProductColorRouteResponses, ProductImage, ProductImageRoutes, ProductImageRouteResponses, ProductPart, ProductPartRoutes, ProductPartRouteResponses, ProductSubCategory, ProductSubCategoryRoutes, ProductSubCategoryRouteResponses, ProductUse, ProductUseRoutes, ProductUseRouteResponses, ProductUseAssoc, ProductUseAssocRoutes, ProductUseAssocRouteResponses, ProductName, ProductNameRoutes, ProductNameRouteResponses, Promotion, PromotionRoutes, PromotionRouteResponses, PromotionAssoc, PromotionAssocRoutes, PromotionAssocRouteResponses, Providers, ProvidersRoutes, ProviderType, ProviderTypeRoutes, ProviderTypeSwagger, ProviderTypeRouteResponses, ProviderCurrentAccount, ProviderCurrentAccountRoutes, PurchaseConditions, PurchaseConditionsRoutes, PurchaseConditionsRouteResponses, ReasonForExemption, ReasonForExemptionRoutes, ReasonForExemptionRouteResponses, RefreshToken, RefreshTokenRoutes, SegmentsArea, SegmentsAreaRoutes, SegmentsAreaRouteResponses, Sessions, SessionsRoutes, Shippings, ShippingsRoutes, ShippingsRouteResponses, SimilarProduct, SimilarProductRoutes, SimilarProductRouteResponses, SocialMedia, SocialMediaRoutes, SocialMediaRouteResponses, StoreOperator, StoreOperatorRoutes, Swift, SwiftRoutes, SwiftSwagger, SwiftRouteResponses, TaskAttachment, TaskAttachmentRoutes, TaskAttachmentSwagger, TaskAttachmentRouteResponses, TaskNote, TaskNoteRoutes, TaskNoteSwagger, TaskNoteRouteResponses, Tasks, TasksRoutes, TasksSwagger, TasksRouteResponses, TasksGroup, TasksGroupRoutes, TasksGroupSwagger, TasksGroupRouteResponses, TypeOfInventory, TypeOfInventoryRoutes, TypeOfInventoryRouteResponses, TypeOfLocation, TypeOfLocationRoutes, TypeOfLocationRouteResponses, UnitOfMeasure, UnitOfMeasureRoutes, UnitOfMeasureRouteResponses, UserPermissions, UserPermissionsRoutes, UserPermissionsRouteResponses, UserPositions, UserPositionsRoutes, UserPositionsRouteResponses, Users, UsersRoutes, UserTokens, UserTokensRoutes, VatValidation, VatValidationRoutes, VatTax, VatTaxRoutes, VatTaxRouteResponses, VatTaxZone, VatTaxZoneRoutes, VatTaxZoneRouteResponses, Vehicles, VehiclesRoutes, Workflow, WorkflowRoutes, MaintenancePreset, MaintenancePresetRoutes, MaintenancePresetRouteResponses, MaintenancePresetAssoc, MaintenancePresetAssocRoutes, MoloniRequest, MoloniRequestRoutes, ProductNamePreset, ProductNamePresetRoutes, ProductNamePresetRouteResponses, StockMovement, StockMovementRoutes, Tenant, TenantRoutes, PreSale, PreSaleRoutes, PreSaleProduct, PreSaleProductRoutes, Cabide, CabideRoutes, CabideProduct, CabideProductRoutes, 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, ErrorHandler, ErrorHandlerRoutes, Persona, PersonaRoutes, ProjectInfo, ProjectInfoRoutes, EmailLog, Purchase, PurchaseRoutes, Order, OrderRoutes, MaterialEntrance, MaterialEntranceRoutes, Transformado, TransformadoRoutes, Quebra, QuebraRoutes, UpfrontReturn, UpfrontReturnRoutes, SavedEmPicking, SavedEmPickingRoutes, EmailTemplate, EmailTemplateRoutes, EmailTemplateAttachment, EmailTemplateAttachmentRoutes, Inventario, InventarioRoutes, ReturnToProvider, ReturnToProviderRoutes, Prison, PrisonRoutes, };
|
package/dist/index.js
CHANGED
|
@@ -25,11 +25,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.DocumentLine = exports.DocumentHeaderRoutes = exports.DocumentHeader = exports.DeliveryMethodsRoutes = exports.DeliveryMethods = exports.Connections = exports.Channels = exports.CountryRouteResponses = exports.CountrySwagger = exports.CountryRoutes = exports.Country = exports.CounterRoutes = exports.Counter = exports.CompositionMaterialRouteResponses = exports.CompositionMaterialRoutes = exports.CompositionMaterial = exports.CompositionRouteResponses = exports.CompositionRoutes = exports.Composition = exports.CommissionerRoutes = exports.Commissioner = exports.ColorRouteResponses = exports.ColorRoutes = exports.Color = exports.ClientCurrentAccountRoutes = exports.ClientCurrentAccount = exports.ClientTypeRouteResponses = exports.ClientTypeSwagger = exports.ClientTypeRoutes = exports.ClientType = exports.ClientRoutes = exports.Client = exports.BankDataRouteResponses = exports.BankDataSwagger = exports.BankDataRoutes = exports.BankData = exports.AttributeValueRouteResponses = exports.AttributeValueRoutes = exports.AttributeValue = exports.AttributeRouteResponses = exports.AttributeRoutes = exports.Attribute = exports.ZipCodeRoutes = exports.ZipCode = exports.integrationErrors = exports.documentManagementErrors = exports.userErrors = exports.stockErrors = exports.viewErrors = exports.shared = void 0;
|
|
27
27
|
exports.LocationRouteResponses = exports.LocationRoutes = exports.Location = exports.LanguageRouteResponses = exports.LanguageSwagger = exports.LanguageRoutes = exports.Language = exports.GoogleSheetsRoutes = exports.GoogleSheets = exports.HistorySwagger = exports.HistoryRoutes = exports.History = exports.GroupPermissionsRouteResponses = exports.GroupPermissionsRoutes = exports.GroupPermissions = exports.FileRoutes = exports.File = exports.FieldGroupRouteResponses = exports.FieldGroupSwagger = exports.FieldGroupRoutes = exports.FieldGroup = exports.FieldRouteResponses = exports.FieldSwagger = exports.FieldRoutes = exports.Field = exports.FavoritesRouteResponses = exports.FavoritesRoutes = exports.Favorites = exports.EventHistoryRoutes = exports.EventHistory = exports.ExternalDocumentHeaderRouteResponses = exports.ExternalDocumentHeaderRoutes = exports.ExternalDocumentHeader = exports.ExternalDocumentType = exports.EntityListRouteResponses = exports.EntityListRoutes = exports.EntityList = exports.DynamicDataRoutes = exports.DynamicData = exports.DocumentTypeRoutes = exports.DocumentType = exports.DocumentSetRoutes = exports.DocumentSet = exports.DocumentLineFolderRoutes = exports.DocumentLineFolder = exports.DocumentLineAssocRouteResponses = exports.DocumentLineAssocRoutes = exports.DocumentLineAssoc = exports.DocumentLineRouteResponses = exports.DocumentLineRoutes = void 0;
|
|
28
|
-
exports.
|
|
29
|
-
exports.ShippingsRoutes = exports.Shippings = exports.SessionsRoutes = exports.Sessions = exports.SegmentsAreaRouteResponses = exports.SegmentsAreaRoutes = exports.SegmentsArea = exports.RefreshTokenRoutes = exports.RefreshToken = exports.ReasonForExemptionRouteResponses = exports.ReasonForExemptionRoutes = exports.ReasonForExemption = exports.PurchaseConditionsRouteResponses = exports.PurchaseConditionsRoutes = exports.PurchaseConditions = exports.ProviderCurrentAccountRoutes = exports.ProviderCurrentAccount = exports.ProviderTypeRouteResponses = exports.ProviderTypeSwagger = exports.ProviderTypeRoutes = exports.ProviderType = exports.ProvidersRoutes = exports.Providers = exports.PromotionAssocRouteResponses = exports.PromotionAssocRoutes = exports.PromotionAssoc = exports.PromotionRouteResponses = exports.PromotionRoutes = exports.Promotion = exports.ProductNameRouteResponses = exports.ProductNameRoutes = exports.ProductName = exports.ProductUseAssocRouteResponses = exports.ProductUseAssocRoutes = exports.ProductUseAssoc = exports.ProductUseRouteResponses = exports.ProductUseRoutes = exports.ProductUse = exports.ProductSubCategoryRouteResponses = exports.ProductSubCategoryRoutes = exports.ProductSubCategory = exports.ProductPartRouteResponses = exports.ProductPartRoutes = exports.ProductPart = exports.ProductImageRouteResponses = exports.ProductImageRoutes = exports.ProductImage =
|
|
30
|
-
exports.VatValidationRoutes = exports.VatValidation = exports.UserTokensRoutes = exports.UserTokens = exports.UsersRoutes = exports.Users = exports.UserPositionsRouteResponses = exports.UserPositionsRoutes = exports.UserPositions = exports.UserPermissionsRouteResponses = exports.UserPermissionsRoutes = exports.UserPermissions = exports.UnitOfMeasureRouteResponses = exports.UnitOfMeasureRoutes = exports.UnitOfMeasure = exports.TypeOfLocationRouteResponses = exports.TypeOfLocationRoutes = exports.TypeOfLocation = exports.TypeOfInventoryRouteResponses = exports.TypeOfInventoryRoutes = exports.TypeOfInventory = exports.TasksGroupRouteResponses = exports.TasksGroupSwagger = exports.TasksGroupRoutes = exports.TasksGroup = exports.TasksRouteResponses = exports.TasksSwagger = exports.TasksRoutes = exports.Tasks = exports.TaskNoteRouteResponses = exports.TaskNoteSwagger = exports.TaskNoteRoutes = exports.TaskNote = exports.TaskAttachmentRouteResponses = exports.TaskAttachmentSwagger = exports.TaskAttachmentRoutes = exports.TaskAttachment = exports.SwiftRouteResponses = exports.SwiftSwagger = exports.SwiftRoutes = exports.Swift = exports.StoreOperatorRoutes = exports.StoreOperator = exports.SocialMediaRouteResponses = exports.SocialMediaRoutes = exports.SocialMedia = exports.SimilarProductRouteResponses =
|
|
31
|
-
exports.GoogleFilePermissionRoutes = exports.GoogleFilePermission = exports.ScheduleRoutes = exports.Schedule = exports.PropostaSheetsRoutes = exports.PropostaSheets = exports.ReturnReasonRoutes = exports.ReturnReason = exports.QueryParameterRoutes = exports.QueryParameter = exports.QueryListRoutes = exports.QueryList = exports.SchedulePrintJobRoutes = exports.SchedulePrintJob = exports.PrinterRoutes = exports.Printer = exports.NpcRoutes = exports.Npc = exports.CabideProductRoutes = exports.CabideProduct = exports.CabideRoutes = exports.Cabide = exports.PreSaleProductRoutes = exports.PreSaleProduct = exports.PreSaleRoutes = exports.PreSale = exports.TenantRoutes = exports.Tenant = exports.StockMovementRoutes = exports.StockMovement = exports.ProductNamePresetRouteResponses = exports.ProductNamePresetRoutes = exports.ProductNamePreset = exports.MoloniRequestRoutes = exports.MoloniRequest = exports.MaintenancePresetAssocRoutes = exports.MaintenancePresetAssoc = exports.MaintenancePresetRouteResponses = exports.MaintenancePresetRoutes = exports.MaintenancePreset = exports.WorkflowRoutes = exports.Workflow = exports.VehiclesRoutes = exports.Vehicles = exports.VatTaxZoneRouteResponses = exports.VatTaxZoneRoutes = exports.VatTaxZone =
|
|
32
|
-
exports.EmailTemplateAttachmentRoutes = exports.EmailTemplateAttachment = exports.EmailTemplateRoutes = exports.EmailTemplate = exports.SavedEmPickingRoutes = exports.SavedEmPicking = exports.UpfrontReturnRoutes = exports.UpfrontReturn = exports.QuebraRoutes = exports.Quebra = exports.TransformadoRoutes = exports.Transformado = exports.MaterialEntranceRoutes = exports.MaterialEntrance = exports.OrderRoutes = exports.Order = exports.PurchaseRoutes = exports.Purchase = exports.EmailLog = exports.ProjectInfoRoutes = exports.ProjectInfo = exports.PersonaRoutes = exports.Persona = exports.ErrorHandlerRoutes = exports.ErrorHandler = exports.StartDocumentHeaderLastUpdate = exports.CLTRoutes = exports.CLT = exports.TicketsLanguageRoutes = exports.TicketsLanguage = exports.ChannelRoutes = exports.Channel = exports.TicketsRoutes =
|
|
28
|
+
exports.ProductColorRouteResponses = exports.ProductColorRoutes = exports.ProductColor = exports.ProductCategoryRouteResponses = exports.ProductCategoryRoutes = exports.ProductCategory = exports.ProductAttributeRouteResponses = exports.ProductAttributeRoutes = exports.ProductAttribute = exports.ProductRouteResponses = exports.ProductRoutes = exports.Product = exports.PrimaryColorRouteResponses = exports.PrimaryColorRoutes = exports.PrimaryColor = exports.PermissionsRouteResponses = exports.PermissionsRoutes = exports.Permissions = exports.PaymentMethodsRoutes = exports.PaymentMethods = exports.PaymentConditionsRouteResponses = exports.PaymentConditionsRoutes = exports.PaymentConditions = exports.PaymentRouteResponses = exports.PaymentRoutes = exports.Payment = exports.PasswordRoutes = exports.Password = exports.ObservationTypeRouteResponses = exports.ObservationTypeRoutes = exports.ObservationType = exports.ObservationRouteResponses = exports.ObservationRoutes = exports.Observation = exports.OrderManagement = exports.MultimediaRouteResponses = exports.MultimediaSwagger = exports.MultimediaRoutes = exports.Multimedia = exports.MaturityDatesRoutes = exports.MaturityDates = exports.MaintenanceTypeRouteResponses = exports.MaintenanceTypeRoutes = exports.MaintenanceType = exports.MaintenanceAssocRouteResponses = exports.MaintenanceAssocRoutes = exports.MaintenanceAssoc = exports.MaintenanceRouteResponses = exports.MaintenanceRoutes = exports.Maintenance = void 0;
|
|
29
|
+
exports.SimilarProductRoutes = exports.SimilarProduct = exports.ShippingsRouteResponses = exports.ShippingsRoutes = exports.Shippings = exports.SessionsRoutes = exports.Sessions = exports.SegmentsAreaRouteResponses = exports.SegmentsAreaRoutes = exports.SegmentsArea = exports.RefreshTokenRoutes = exports.RefreshToken = exports.ReasonForExemptionRouteResponses = exports.ReasonForExemptionRoutes = exports.ReasonForExemption = exports.PurchaseConditionsRouteResponses = exports.PurchaseConditionsRoutes = exports.PurchaseConditions = exports.ProviderCurrentAccountRoutes = exports.ProviderCurrentAccount = exports.ProviderTypeRouteResponses = exports.ProviderTypeSwagger = exports.ProviderTypeRoutes = exports.ProviderType = exports.ProvidersRoutes = exports.Providers = exports.PromotionAssocRouteResponses = exports.PromotionAssocRoutes = exports.PromotionAssoc = exports.PromotionRouteResponses = exports.PromotionRoutes = exports.Promotion = exports.ProductNameRouteResponses = exports.ProductNameRoutes = exports.ProductName = exports.ProductUseAssocRouteResponses = exports.ProductUseAssocRoutes = exports.ProductUseAssoc = exports.ProductUseRouteResponses = exports.ProductUseRoutes = exports.ProductUse = exports.ProductSubCategoryRouteResponses = exports.ProductSubCategoryRoutes = exports.ProductSubCategory = exports.ProductPartRouteResponses = exports.ProductPartRoutes = exports.ProductPart = exports.ProductImageRouteResponses = exports.ProductImageRoutes = exports.ProductImage = void 0;
|
|
30
|
+
exports.VatTaxRouteResponses = exports.VatTaxRoutes = exports.VatTax = exports.VatValidationRoutes = exports.VatValidation = exports.UserTokensRoutes = exports.UserTokens = exports.UsersRoutes = exports.Users = exports.UserPositionsRouteResponses = exports.UserPositionsRoutes = exports.UserPositions = exports.UserPermissionsRouteResponses = exports.UserPermissionsRoutes = exports.UserPermissions = exports.UnitOfMeasureRouteResponses = exports.UnitOfMeasureRoutes = exports.UnitOfMeasure = exports.TypeOfLocationRouteResponses = exports.TypeOfLocationRoutes = exports.TypeOfLocation = exports.TypeOfInventoryRouteResponses = exports.TypeOfInventoryRoutes = exports.TypeOfInventory = exports.TasksGroupRouteResponses = exports.TasksGroupSwagger = exports.TasksGroupRoutes = exports.TasksGroup = exports.TasksRouteResponses = exports.TasksSwagger = exports.TasksRoutes = exports.Tasks = exports.TaskNoteRouteResponses = exports.TaskNoteSwagger = exports.TaskNoteRoutes = exports.TaskNote = exports.TaskAttachmentRouteResponses = exports.TaskAttachmentSwagger = exports.TaskAttachmentRoutes = exports.TaskAttachment = exports.SwiftRouteResponses = exports.SwiftSwagger = exports.SwiftRoutes = exports.Swift = exports.StoreOperatorRoutes = exports.StoreOperator = exports.SocialMediaRouteResponses = exports.SocialMediaRoutes = exports.SocialMedia = exports.SimilarProductRouteResponses = void 0;
|
|
31
|
+
exports.Tickets = exports.SettingsRoutes = exports.Settings = exports.GoogleFilePermissionRoutes = exports.GoogleFilePermission = exports.ScheduleRoutes = exports.Schedule = exports.PropostaSheetsRoutes = exports.PropostaSheets = exports.ReturnReasonRoutes = exports.ReturnReason = exports.QueryParameterRoutes = exports.QueryParameter = exports.QueryListRoutes = exports.QueryList = exports.SchedulePrintJobRoutes = exports.SchedulePrintJob = exports.PrinterRoutes = exports.Printer = exports.NpcRoutes = exports.Npc = exports.CabideProductRoutes = exports.CabideProduct = exports.CabideRoutes = exports.Cabide = exports.PreSaleProductRoutes = exports.PreSaleProduct = exports.PreSaleRoutes = exports.PreSale = exports.TenantRoutes = exports.Tenant = exports.StockMovementRoutes = exports.StockMovement = exports.ProductNamePresetRouteResponses = exports.ProductNamePresetRoutes = exports.ProductNamePreset = exports.MoloniRequestRoutes = exports.MoloniRequest = exports.MaintenancePresetAssocRoutes = exports.MaintenancePresetAssoc = exports.MaintenancePresetRouteResponses = exports.MaintenancePresetRoutes = exports.MaintenancePreset = exports.WorkflowRoutes = exports.Workflow = exports.VehiclesRoutes = exports.Vehicles = exports.VatTaxZoneRouteResponses = exports.VatTaxZoneRoutes = exports.VatTaxZone = void 0;
|
|
32
|
+
exports.PrisonRoutes = exports.Prison = exports.ReturnToProviderRoutes = exports.ReturnToProvider = exports.InventarioRoutes = exports.Inventario = exports.EmailTemplateAttachmentRoutes = exports.EmailTemplateAttachment = exports.EmailTemplateRoutes = exports.EmailTemplate = exports.SavedEmPickingRoutes = exports.SavedEmPicking = exports.UpfrontReturnRoutes = exports.UpfrontReturn = exports.QuebraRoutes = exports.Quebra = exports.TransformadoRoutes = exports.Transformado = exports.MaterialEntranceRoutes = exports.MaterialEntrance = exports.OrderRoutes = exports.Order = exports.PurchaseRoutes = exports.Purchase = exports.EmailLog = exports.ProjectInfoRoutes = exports.ProjectInfo = exports.PersonaRoutes = exports.Persona = exports.ErrorHandlerRoutes = exports.ErrorHandler = exports.StartDocumentHeaderLastUpdate = exports.CLTRoutes = exports.CLT = exports.TicketsLanguageRoutes = exports.TicketsLanguage = exports.ChannelRoutes = exports.Channel = exports.TicketsRoutes = void 0;
|
|
33
33
|
var shared = __importStar(require("./shared/interface"));
|
|
34
34
|
exports.shared = shared;
|
|
35
35
|
var viewErrors = __importStar(require("./shared/errors/viewErrors"));
|
|
@@ -296,12 +296,6 @@ var PermissionsRoutes = __importStar(require("./modules/user/permissions/route.s
|
|
|
296
296
|
exports.PermissionsRoutes = PermissionsRoutes;
|
|
297
297
|
var PermissionsRouteResponses = __importStar(require("./modules/user/permissions/tests"));
|
|
298
298
|
exports.PermissionsRouteResponses = PermissionsRouteResponses;
|
|
299
|
-
var Plot = __importStar(require("./modules/stock/plot/interface"));
|
|
300
|
-
exports.Plot = Plot;
|
|
301
|
-
var PlotRoutes = __importStar(require("./modules/stock/plot/route.schema"));
|
|
302
|
-
exports.PlotRoutes = PlotRoutes;
|
|
303
|
-
var PlotRouteResponses = __importStar(require("./modules/stock/plot/tests"));
|
|
304
|
-
exports.PlotRouteResponses = PlotRouteResponses;
|
|
305
299
|
var PrimaryColor = __importStar(require("./modules/stock/primaryColor/interface"));
|
|
306
300
|
exports.PrimaryColor = PrimaryColor;
|
|
307
301
|
var PrimaryColorRoutes = __importStar(require("./modules/stock/primaryColor/route.schema"));
|
|
@@ -618,9 +612,9 @@ var ReturnReason = __importStar(require("./modules/stock/returnReason/interfaces
|
|
|
618
612
|
exports.ReturnReason = ReturnReason;
|
|
619
613
|
var ReturnReasonRoutes = __importStar(require("./modules/stock/returnReason/route.schema"));
|
|
620
614
|
exports.ReturnReasonRoutes = ReturnReasonRoutes;
|
|
621
|
-
var PropostaSheets = __importStar(require("./modules/
|
|
615
|
+
var PropostaSheets = __importStar(require("./modules/document/propostaSheets/interface"));
|
|
622
616
|
exports.PropostaSheets = PropostaSheets;
|
|
623
|
-
var PropostaSheetsRoutes = __importStar(require("./modules/
|
|
617
|
+
var PropostaSheetsRoutes = __importStar(require("./modules/document/propostaSheets/route.schema"));
|
|
624
618
|
exports.PropostaSheetsRoutes = PropostaSheetsRoutes;
|
|
625
619
|
var Schedule = __importStar(require("./modules/supply/schedule/interface"));
|
|
626
620
|
exports.Schedule = Schedule;
|
|
@@ -678,17 +672,17 @@ var MaterialEntrance = __importStar(require("./modules/document/materialEntrance
|
|
|
678
672
|
exports.MaterialEntrance = MaterialEntrance;
|
|
679
673
|
var MaterialEntranceRoutes = __importStar(require("./modules/document/materialEntrance/route.schema"));
|
|
680
674
|
exports.MaterialEntranceRoutes = MaterialEntranceRoutes;
|
|
681
|
-
var Transformado = __importStar(require("./modules/
|
|
675
|
+
var Transformado = __importStar(require("./modules/document/transformado/interfaces"));
|
|
682
676
|
exports.Transformado = Transformado;
|
|
683
|
-
var TransformadoRoutes = __importStar(require("./modules/
|
|
677
|
+
var TransformadoRoutes = __importStar(require("./modules/document/transformado/route.schema"));
|
|
684
678
|
exports.TransformadoRoutes = TransformadoRoutes;
|
|
685
|
-
var Quebra = __importStar(require("./modules/
|
|
679
|
+
var Quebra = __importStar(require("./modules/document/quebra/interfaces"));
|
|
686
680
|
exports.Quebra = Quebra;
|
|
687
|
-
var QuebraRoutes = __importStar(require("./modules/
|
|
681
|
+
var QuebraRoutes = __importStar(require("./modules/document/quebra/route.schema"));
|
|
688
682
|
exports.QuebraRoutes = QuebraRoutes;
|
|
689
|
-
var UpfrontReturn = __importStar(require("./modules/
|
|
683
|
+
var UpfrontReturn = __importStar(require("./modules/document/upfrontReturn/interfaces"));
|
|
690
684
|
exports.UpfrontReturn = UpfrontReturn;
|
|
691
|
-
var UpfrontReturnRoutes = __importStar(require("./modules/
|
|
685
|
+
var UpfrontReturnRoutes = __importStar(require("./modules/document/upfrontReturn/route.schema"));
|
|
692
686
|
exports.UpfrontReturnRoutes = UpfrontReturnRoutes;
|
|
693
687
|
var SavedEmPicking = __importStar(require("./modules/stock/savedEmPicking/interfaces"));
|
|
694
688
|
exports.SavedEmPicking = SavedEmPicking;
|
|
@@ -702,3 +696,15 @@ var EmailTemplateAttachment = __importStar(require("./modules/integration/emailT
|
|
|
702
696
|
exports.EmailTemplateAttachment = EmailTemplateAttachment;
|
|
703
697
|
var EmailTemplateAttachmentRoutes = __importStar(require("./modules/integration/emailTemplateAttachment/route.schema"));
|
|
704
698
|
exports.EmailTemplateAttachmentRoutes = EmailTemplateAttachmentRoutes;
|
|
699
|
+
var Inventario = __importStar(require("./modules/document/inventario/interface"));
|
|
700
|
+
exports.Inventario = Inventario;
|
|
701
|
+
var InventarioRoutes = __importStar(require("./modules/document/inventario/route.schema"));
|
|
702
|
+
exports.InventarioRoutes = InventarioRoutes;
|
|
703
|
+
var ReturnToProvider = __importStar(require("./modules/document/returnToProvider/interface"));
|
|
704
|
+
exports.ReturnToProvider = ReturnToProvider;
|
|
705
|
+
var ReturnToProviderRoutes = __importStar(require("./modules/document/returnToProvider/route.schema"));
|
|
706
|
+
exports.ReturnToProviderRoutes = ReturnToProviderRoutes;
|
|
707
|
+
var Prison = __importStar(require("./modules/stock/prison/interface"));
|
|
708
|
+
exports.Prison = Prison;
|
|
709
|
+
var PrisonRoutes = __importStar(require("./modules/stock/prison/route.schema"));
|
|
710
|
+
exports.PrisonRoutes = PrisonRoutes;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as IShared from '../../../shared/interface';
|
|
2
|
+
export declare const Route = "inventario";
|
|
3
|
+
export declare const UpperName = "Inventario";
|
|
4
|
+
export declare const LowerName: string;
|
|
5
|
+
export interface ICreateInventoryRequest {
|
|
6
|
+
product_id: string;
|
|
7
|
+
plot_id: string | null;
|
|
8
|
+
registered_quantity: number;
|
|
9
|
+
inventory_quantity: number;
|
|
10
|
+
new_plot_id: string;
|
|
11
|
+
is_virtual?: boolean;
|
|
12
|
+
created_by?: string;
|
|
13
|
+
updated_by?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IRepository {
|
|
16
|
+
createInventory(data: ICreateInventoryRequest): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LowerName = exports.UpperName = exports.Route = void 0;
|
|
4
|
+
exports.Route = 'inventario';
|
|
5
|
+
exports.UpperName = 'Inventario';
|
|
6
|
+
exports.LowerName = exports.UpperName[0].toLowerCase() + exports.UpperName.substring(1);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createInventoryRequest = void 0;
|
|
7
|
+
var joi_1 = __importDefault(require("joi"));
|
|
8
|
+
var messages_1 = require("../../../shared/messages");
|
|
9
|
+
var createInventoryRequestKeys = {
|
|
10
|
+
product_id: joi_1.default.string().uuid().required(),
|
|
11
|
+
plot_id: joi_1.default.string().uuid().allow(null).required(),
|
|
12
|
+
registered_quantity: joi_1.default.number().positive().allow(0).optional(),
|
|
13
|
+
inventory_quantity: joi_1.default.number().positive().allow(0).required(),
|
|
14
|
+
new_plot_id: joi_1.default.string().uuid().required(),
|
|
15
|
+
is_virtual: joi_1.default.boolean().default(false).optional(),
|
|
16
|
+
created_by: joi_1.default.string().uuid().optional(),
|
|
17
|
+
updated_by: joi_1.default.string().uuid().optional(),
|
|
18
|
+
};
|
|
19
|
+
exports.createInventoryRequest = joi_1.default
|
|
20
|
+
.object()
|
|
21
|
+
.keys(createInventoryRequestKeys)
|
|
22
|
+
.messages(messages_1.messages);
|
|
@@ -65,6 +65,10 @@ export interface ISetProviderRequest {
|
|
|
65
65
|
document_line_assoc_ids: string[];
|
|
66
66
|
id_provider: number;
|
|
67
67
|
}
|
|
68
|
+
export interface IDisassociatePlot {
|
|
69
|
+
document_line_id: string;
|
|
70
|
+
plot_id: string;
|
|
71
|
+
}
|
|
68
72
|
export interface IRepository {
|
|
69
73
|
findStockToOrder(data: IFindStockToOrderRequest): Promise<IFindStockToOrderResponse[]>;
|
|
70
74
|
findProvidersWithStockToOrder(): Promise<IShared.IFindMinifiedResponse[]>;
|
|
@@ -74,6 +78,7 @@ export interface IRepository {
|
|
|
74
78
|
unsetProvider(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
75
79
|
undoEncomendaStock(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
76
80
|
undoProviderOrder(data: IUndoProviderOrderRequest): Promise<void>;
|
|
81
|
+
disassociatePlot(data: IDisassociatePlot): Promise<void>;
|
|
77
82
|
}
|
|
78
83
|
export type IApi = IRepository;
|
|
79
84
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -3,3 +3,4 @@ export declare const undoProviderOrderBody: joi.ObjectSchema<any>;
|
|
|
3
3
|
export declare const conferirEncomendaClienteBody: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const findStockToOrderParamsBodyKeys: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const setProviderBody: joi.ObjectSchema<any>;
|
|
6
|
+
export declare const disassociatePlotBody: joi.ObjectSchema<any>;
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
var _a;
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.setProviderBody = exports.findStockToOrderParamsBodyKeys = exports.conferirEncomendaClienteBody = exports.undoProviderOrderBody = void 0;
|
|
7
|
+
exports.disassociatePlotBody = exports.setProviderBody = exports.findStockToOrderParamsBodyKeys = exports.conferirEncomendaClienteBody = exports.undoProviderOrderBody = void 0;
|
|
8
8
|
var joi_1 = __importDefault(require("joi"));
|
|
9
9
|
var messages_1 = require("../../../shared/messages");
|
|
10
10
|
var interfaces_1 = require("./interfaces");
|
|
@@ -48,3 +48,11 @@ exports.setProviderBody = joi_1.default
|
|
|
48
48
|
.object()
|
|
49
49
|
.keys(setProviderBodyKeys)
|
|
50
50
|
.messages(messages_1.messages);
|
|
51
|
+
var disassociatePlotBodyKeys = {
|
|
52
|
+
document_line_id: joi_1.default.string().uuid().required(),
|
|
53
|
+
plot_id: joi_1.default.string().uuid().required(),
|
|
54
|
+
};
|
|
55
|
+
exports.disassociatePlotBody = joi_1.default
|
|
56
|
+
.object()
|
|
57
|
+
.keys(disassociatePlotBodyKeys)
|
|
58
|
+
.messages(messages_1.messages);
|
|
@@ -2,6 +2,18 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
export declare const Route = "quebra";
|
|
3
3
|
export declare const UpperName = "Quebra";
|
|
4
4
|
export declare const LowerName: string;
|
|
5
|
+
export interface IInventoryLossResponse {
|
|
6
|
+
document_line_id: string;
|
|
7
|
+
id_provider: number;
|
|
8
|
+
product_id: string;
|
|
9
|
+
product_thumbnail: string;
|
|
10
|
+
product_reference: string;
|
|
11
|
+
product_description: string;
|
|
12
|
+
quantity: number;
|
|
13
|
+
unit_of_measure_quantity_notation: string;
|
|
14
|
+
updated_by: string | null;
|
|
15
|
+
updated_at: Date;
|
|
16
|
+
}
|
|
5
17
|
export interface ICreateManyProducts {
|
|
6
18
|
id: string;
|
|
7
19
|
quantity: number;
|
|
@@ -10,6 +22,8 @@ export interface ICreateManyRequest {
|
|
|
10
22
|
products: ICreateManyProducts[];
|
|
11
23
|
}
|
|
12
24
|
export interface IRepository {
|
|
25
|
+
findInventoryLosses(): Promise<IInventoryLossResponse[]>;
|
|
26
|
+
findInventoryLossesProviders(): Promise<IShared.IFindMinifiedResponse[]>;
|
|
13
27
|
create(data: ICreateManyRequest): Promise<string>;
|
|
14
28
|
}
|
|
15
29
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -3,21 +3,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.createQuebraBody = void 0;
|
|
7
7
|
var joi_1 = __importDefault(require("joi"));
|
|
8
8
|
var messages_1 = require("../../../shared/messages");
|
|
9
|
-
var
|
|
9
|
+
var productsCreateQuebraKeys = {
|
|
10
10
|
id: joi_1.default.string().uuid().required(),
|
|
11
11
|
quantity: joi_1.default.number().positive().required(),
|
|
12
12
|
};
|
|
13
|
-
var
|
|
13
|
+
var createQuebraKeys = {
|
|
14
14
|
products: joi_1.default
|
|
15
15
|
.array()
|
|
16
|
-
.items(joi_1.default.object().keys(
|
|
16
|
+
.items(joi_1.default.object().keys(productsCreateQuebraKeys))
|
|
17
17
|
.min(1)
|
|
18
18
|
.required(),
|
|
19
19
|
};
|
|
20
|
-
exports.
|
|
20
|
+
exports.createQuebraBody = joi_1.default
|
|
21
21
|
.object()
|
|
22
|
-
.keys(
|
|
22
|
+
.keys(createQuebraKeys)
|
|
23
23
|
.messages(messages_1.messages);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as IShared from '../../../shared/interface';
|
|
2
|
+
export declare const Route = "return_to_provider";
|
|
3
|
+
export declare const UpperName = "ReturnToProvider";
|
|
4
|
+
export declare const LowerName: string;
|
|
5
|
+
export interface IFindPlotsToReturnResponse {
|
|
6
|
+
document_line_assoc_id: string;
|
|
7
|
+
df_name: string;
|
|
8
|
+
pdf_link: string | null;
|
|
9
|
+
plot_id: string;
|
|
10
|
+
document_line_id: string;
|
|
11
|
+
id_provider: number;
|
|
12
|
+
reference: string;
|
|
13
|
+
designation: string;
|
|
14
|
+
thumbnail: string | null;
|
|
15
|
+
product_id: string;
|
|
16
|
+
quantity: number;
|
|
17
|
+
emails_sent: number;
|
|
18
|
+
already_picked_up: boolean;
|
|
19
|
+
return_to_provider_without_credit_note: boolean;
|
|
20
|
+
updated_by: string | null;
|
|
21
|
+
updated_at: Date;
|
|
22
|
+
}
|
|
23
|
+
export declare const checkPlotsToReturnOptions: readonly ["Por tratar", "Levantar", "Enviar email", "Quebrar", "Devolver a stock"];
|
|
24
|
+
export type ICheckPlotsToReturnOptions = (typeof checkPlotsToReturnOptions)[number];
|
|
25
|
+
export interface ICheckPlotsToReturnPlotsRequest {
|
|
26
|
+
plot_id: string;
|
|
27
|
+
document_line_assoc_id: string;
|
|
28
|
+
document_line_id: string;
|
|
29
|
+
option: ICheckPlotsToReturnOptions;
|
|
30
|
+
}
|
|
31
|
+
export interface ICheckPlotsToReturnRequest {
|
|
32
|
+
plots: ICheckPlotsToReturnPlotsRequest[];
|
|
33
|
+
}
|
|
34
|
+
export interface IRepository {
|
|
35
|
+
checkPlotsToReturn(params: ICheckPlotsToReturnRequest): Promise<IShared.IBrokerMessage[]>;
|
|
36
|
+
findPlotsToReturn(params: IShared.IFindOptionalByOwnerIdRequest): Promise<IFindPlotsToReturnResponse[]>;
|
|
37
|
+
findPlotsToReturnProviders(): Promise<IShared.IFindMinifiedResponse[]>;
|
|
38
|
+
}
|
|
39
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.checkPlotsToReturnOptions = exports.LowerName = exports.UpperName = exports.Route = void 0;
|
|
4
|
+
exports.Route = 'return_to_provider';
|
|
5
|
+
exports.UpperName = 'ReturnToProvider';
|
|
6
|
+
exports.LowerName = exports.UpperName[0].toLowerCase() + exports.UpperName.substring(1);
|
|
7
|
+
exports.checkPlotsToReturnOptions = [
|
|
8
|
+
'Por tratar',
|
|
9
|
+
'Levantar',
|
|
10
|
+
'Enviar email',
|
|
11
|
+
'Quebrar',
|
|
12
|
+
'Devolver a stock',
|
|
13
|
+
];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
var _a;
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.checkPlotToReturnBody = void 0;
|
|
8
|
+
var joi_1 = __importDefault(require("joi"));
|
|
9
|
+
var messages_1 = require("../../../shared/messages");
|
|
10
|
+
var interface_1 = require("./interface");
|
|
11
|
+
var checkPlotToReturnPlotsKeys = {
|
|
12
|
+
document_line_assoc_id: joi_1.default.string().uuid().required(),
|
|
13
|
+
document_line_id: joi_1.default.string().uuid().required(),
|
|
14
|
+
plot_id: joi_1.default.string().uuid().required(),
|
|
15
|
+
option: (_a = joi_1.default
|
|
16
|
+
.string())
|
|
17
|
+
.valid.apply(_a, interface_1.checkPlotsToReturnOptions).required(),
|
|
18
|
+
};
|
|
19
|
+
var checkPlotToReturnBodyKeys = {
|
|
20
|
+
plots: joi_1.default
|
|
21
|
+
.array()
|
|
22
|
+
.items(joi_1.default.object().keys(checkPlotToReturnPlotsKeys).required())
|
|
23
|
+
.required(),
|
|
24
|
+
};
|
|
25
|
+
exports.checkPlotToReturnBody = joi_1.default
|
|
26
|
+
.object()
|
|
27
|
+
.keys(checkPlotToReturnBodyKeys)
|
|
28
|
+
.messages(messages_1.messages);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as IShared from '../../../shared/interface';
|
|
2
|
+
export declare const Route = "prison";
|
|
3
|
+
export declare const UpperName = "Prison";
|
|
4
|
+
export declare const LowerName: string;
|
|
5
|
+
export interface IFindPlotsInPrisonResponse {
|
|
6
|
+
id: string;
|
|
7
|
+
quantity: number;
|
|
8
|
+
id_provider: number;
|
|
9
|
+
observations?: string;
|
|
10
|
+
product: {
|
|
11
|
+
id: string;
|
|
12
|
+
thumbnail_multimedia_id: string | null;
|
|
13
|
+
virtual: {
|
|
14
|
+
designation: string;
|
|
15
|
+
reference: string;
|
|
16
|
+
} | null;
|
|
17
|
+
};
|
|
18
|
+
updated_by: string | null;
|
|
19
|
+
updated_at: Date;
|
|
20
|
+
}
|
|
21
|
+
export declare const checkPlotInPrisonOptions: readonly ["Por confirmar", "Devolver a stock", "Quebrar", "Devolver a fornecedor"];
|
|
22
|
+
export type ICheckPlotInPrisonOptions = (typeof checkPlotInPrisonOptions)[number];
|
|
23
|
+
export interface ICheckPlotInPrisonPlotsRequest {
|
|
24
|
+
id_provider: number;
|
|
25
|
+
plot_id: string;
|
|
26
|
+
option: ICheckPlotInPrisonOptions;
|
|
27
|
+
}
|
|
28
|
+
export interface ICheckPlotInPrisonRequest {
|
|
29
|
+
plots: ICheckPlotInPrisonPlotsRequest[];
|
|
30
|
+
}
|
|
31
|
+
export interface IRepository {
|
|
32
|
+
findPlotsInPrison(): Promise<IFindPlotsInPrisonResponse[]>;
|
|
33
|
+
findPlotsInPrisonProviders(): Promise<IShared.IFindMinifiedResponse[]>;
|
|
34
|
+
putPlotInPrison(params: IShared.IFindByIdRequest): Promise<void>;
|
|
35
|
+
removePlotFromPrison(params: IShared.IFindByIdRequest): Promise<void>;
|
|
36
|
+
checkPlotInPrison(params: ICheckPlotInPrisonRequest): Promise<IShared.IBrokerMessage<IShared.IBrokerTopic>[]>;
|
|
37
|
+
}
|
|
38
|
+
export type IApi = Omit<IRepository, 'checkPlotInPrison'> & {
|
|
39
|
+
checkPlotInPrison(params: ICheckPlotInPrisonRequest): Promise<void>;
|
|
40
|
+
};
|
|
41
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.checkPlotInPrisonOptions = exports.LowerName = exports.UpperName = exports.Route = void 0;
|
|
4
|
+
exports.Route = 'prison';
|
|
5
|
+
exports.UpperName = 'Prison';
|
|
6
|
+
exports.LowerName = exports.UpperName[0].toLowerCase() + exports.UpperName.substring(1);
|
|
7
|
+
exports.checkPlotInPrisonOptions = [
|
|
8
|
+
'Por confirmar',
|
|
9
|
+
'Devolver a stock',
|
|
10
|
+
'Quebrar',
|
|
11
|
+
'Devolver a fornecedor',
|
|
12
|
+
];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
var _a;
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.checkPlotInPrisonBody = void 0;
|
|
8
|
+
var joi_1 = __importDefault(require("joi"));
|
|
9
|
+
var messages_1 = require("../../../shared/messages");
|
|
10
|
+
var interface_1 = require("./interface");
|
|
11
|
+
var checkPlotInPrisonPlotsBodyKeys = {
|
|
12
|
+
id_provider: joi_1.default.number().integer().positive().allow(0).required(),
|
|
13
|
+
plot_id: joi_1.default.string().uuid().required(),
|
|
14
|
+
option: (_a = joi_1.default
|
|
15
|
+
.string())
|
|
16
|
+
.valid.apply(_a, interface_1.checkPlotInPrisonOptions).required(),
|
|
17
|
+
};
|
|
18
|
+
var checkPlotInPrisonBodyKeys = {
|
|
19
|
+
plots: joi_1.default
|
|
20
|
+
.array()
|
|
21
|
+
.items(joi_1.default.object().keys(checkPlotInPrisonPlotsBodyKeys).required())
|
|
22
|
+
.required(),
|
|
23
|
+
};
|
|
24
|
+
exports.checkPlotInPrisonBody = joi_1.default
|
|
25
|
+
.object()
|
|
26
|
+
.keys(checkPlotInPrisonBodyKeys)
|
|
27
|
+
.messages(messages_1.messages);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
2
|
import { Attribute, Product, ProductName, UnitOfMeasure, ProductSubCategory, ProductCategory, TypeOfInventory, ProductImage, VatTax, VatTaxZone, ProductVirtuals, ProductPromotionVirtuals, CabideProduct, Cabide } from '../../../shared/entities';
|
|
3
3
|
import * as IProductAttribute from '../productAttribute/interface';
|
|
4
|
-
import * as IPlot from '../plot/interface';
|
|
5
4
|
import * as IProductPart from '../productPart/interface';
|
|
6
5
|
export type Entity = Product;
|
|
7
6
|
export declare const Route = "product";
|
|
@@ -29,7 +28,6 @@ export interface IEntityExtended extends IFindDetailedResponse {
|
|
|
29
28
|
product_images: ProductImage[];
|
|
30
29
|
product_attributes: IProductAttribute.IFindDetailedResponse[];
|
|
31
30
|
product_parts: IProductPart.IFindByRefProduct[];
|
|
32
|
-
plots: IPlot.IFindDetailedResponse[];
|
|
33
31
|
origin_cabide_product: CabideProduct | null;
|
|
34
32
|
cabide_product: (CabideProduct & {
|
|
35
33
|
cabide: Cabide;
|
|
@@ -53,7 +53,6 @@ var IVatTaxZoneRoute = __importStar(require("../vatTaxZone/tests"));
|
|
|
53
53
|
var IProductImageRoute = __importStar(require("../productImage/tests"));
|
|
54
54
|
var IProductAttributeRoute = __importStar(require("../productAttribute/tests"));
|
|
55
55
|
var IProductPartRoute = __importStar(require("../productPart/tests"));
|
|
56
|
-
var IPlotRoute = __importStar(require("../plot/tests"));
|
|
57
56
|
var createUpdateDeleteBodyResponseKeys = {
|
|
58
57
|
id: joi_1.default.string().uuid().required(),
|
|
59
58
|
reference: joi_1.default.string().required(),
|
|
@@ -221,10 +220,6 @@ var findByIdBodyResponseKeys = {
|
|
|
221
220
|
.required(),
|
|
222
221
|
promotions: joi_1.default.array().items(joi_1.default.any()).required(),
|
|
223
222
|
margin: joi_1.default.number().positive().required(),
|
|
224
|
-
plots: joi_1.default
|
|
225
|
-
.array()
|
|
226
|
-
.items(joi_1.default.object().keys(IPlotRoute.findOwnerIdBodyResponsekeys).required())
|
|
227
|
-
.required(),
|
|
228
223
|
cabide_product_color: joi_1.default.string().allow(null).required(),
|
|
229
224
|
cabide_product_id: joi_1.default.string().uuid().allow(null).required(),
|
|
230
225
|
origin_cabide_product_id: joi_1.default.string().uuid().allow(null).required(),
|
|
@@ -5,7 +5,6 @@ import * as IDocumentType from '../documentType/interfaces';
|
|
|
5
5
|
import * as IPayment from '../payment/interface';
|
|
6
6
|
import * as IProvider from '../../user/providers/interface';
|
|
7
7
|
import * as IUser from '../../user/users/interface';
|
|
8
|
-
import * as IPlot from '../../stock/plot/interface';
|
|
9
8
|
export type Entity = Omit<DocumentHeader, 'external_data'>;
|
|
10
9
|
export declare const Route = "documentHeader";
|
|
11
10
|
export declare const UpperName = "DocumentHeader";
|
|
@@ -222,11 +221,11 @@ export interface IUnpaidDocumentResponse {
|
|
|
222
221
|
total: number;
|
|
223
222
|
params: ICreateFromHeaderRequest;
|
|
224
223
|
}
|
|
225
|
-
export interface
|
|
224
|
+
export interface ICreateFromLinesRequest {
|
|
226
225
|
provider?: Pick<IProvider.Entity, 'id' | 'number' | 'nif'> & {
|
|
227
226
|
user: Pick<IUser.Entity, 'name'>;
|
|
228
227
|
};
|
|
229
|
-
|
|
228
|
+
document_line_ids: string[];
|
|
230
229
|
}
|
|
231
230
|
export interface IFindProviderInvoiceRequest {
|
|
232
231
|
provider_id: string;
|
|
@@ -365,7 +364,7 @@ export interface IRepository {
|
|
|
365
364
|
create(data: ICreateRequest): Promise<Entity>;
|
|
366
365
|
createFromHeader(data: ICreateFromHeaderRequest): Promise<ICreateFromHeaderResponse>;
|
|
367
366
|
createProductionOrder(data: ICreateProductionOrderRequest): Promise<ICreateProductionOrderResponse>;
|
|
368
|
-
createFromPlots(data:
|
|
367
|
+
createFromPlots(data: ICreateFromLinesRequest): Promise<IBrokerMessage<IBrokerTopic>[]>;
|
|
369
368
|
createProviderFinancialCreditNote(params: ICreateProviderFinancialCreditNoteRequest): Promise<void>;
|
|
370
369
|
createProviderServiceInvoice(params: ICreateProviderServiceInvoiceRequest): Promise<void>;
|
|
371
370
|
createProviderCreditNoteFromReturn(params: ICreateProviderCreditNoteFromReturnRequest): Promise<void>;
|
|
@@ -388,11 +388,9 @@ var createFromPlotsBodyKeys = {
|
|
|
388
388
|
.required(),
|
|
389
389
|
})
|
|
390
390
|
.optional(),
|
|
391
|
-
|
|
391
|
+
document_line_ids: joi_1.default
|
|
392
392
|
.array()
|
|
393
|
-
.items(joi_1.default.
|
|
394
|
-
id: joi_1.default.string().uuid().required(),
|
|
395
|
-
}))
|
|
393
|
+
.items(joi_1.default.string().uuid().required())
|
|
396
394
|
.required(),
|
|
397
395
|
};
|
|
398
396
|
exports.createFromPlotsBody = joi_1.default
|
|
@@ -3,7 +3,6 @@ import { DocumentLine, DocumentLineBaseVirtuals, DocumentLineVirtuals, DocumentL
|
|
|
3
3
|
import * as IDocumentLineAssoc from '../documentLineAssoc/interfaces';
|
|
4
4
|
import * as IDocumentHeader from '../documentHeader/interfaces';
|
|
5
5
|
import * as IDocumentType from '../documentType/interfaces';
|
|
6
|
-
import * as IPlot from '../../stock/plot/interface';
|
|
7
6
|
export type Entity = DocumentLine;
|
|
8
7
|
export declare const Route = "documentLine";
|
|
9
8
|
export declare const UpperName = "DocumentLine";
|
|
@@ -138,7 +137,6 @@ export interface IEntityExtended extends DocumentLine {
|
|
|
138
137
|
virtual: IDocumentLineBaseVirtuals | null;
|
|
139
138
|
document_headers: IDocumentLineDocuments[];
|
|
140
139
|
document_line_folder: DocumentLineFolder | null;
|
|
141
|
-
plot: IPlot.IFindDetailedResponseWithoutCurrentDocumentLine | null;
|
|
142
140
|
pending_conflict: DocumentLinePendingConflict | null;
|
|
143
141
|
}
|
|
144
142
|
export interface ICreateRequest extends Omit<IDocumentLineAssoc.ICreateRequest, 'document_line_id'> {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
2
|
import { DocumentLineAssoc, DocumentLine } from '../../../shared/entities';
|
|
3
3
|
import * as IDocumentLine from '../documentLine/interfaces';
|
|
4
|
-
import * as IPlot from '../../stock/plot/interface';
|
|
5
4
|
export type Entity = DocumentLineAssoc;
|
|
6
5
|
export declare const Route = "documentLineAssoc";
|
|
7
6
|
export declare const UpperName = "DocumentLineAssoc";
|
|
@@ -23,7 +22,6 @@ export interface IUpdateRequest {
|
|
|
23
22
|
export interface IUpdateGroupRequest {
|
|
24
23
|
document_line_id: string[];
|
|
25
24
|
}
|
|
26
|
-
export type IPlotCreateManyRequest = IPlot.ICreateManyRequest;
|
|
27
25
|
export interface IDeleteInventoryLossRequest {
|
|
28
26
|
document_line_ids: string[];
|
|
29
27
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { PreSale,
|
|
2
|
+
import { PreSale, PreSaleProduct } from '../../../shared/entities';
|
|
3
3
|
import * as Product from '../../stock/product/interface';
|
|
4
4
|
export type Entity = PreSale;
|
|
5
5
|
export declare const Route = "pre_sale";
|
|
@@ -14,8 +14,7 @@ export interface IFindResponseWithQuantityOfPlots extends Entity {
|
|
|
14
14
|
export type IProductMinified = Pick<Product.IEntityExtended, 'id' | 'name' | 'virtual' | 'promotions' | 'reference' | 'product_images' | 'unit_of_measure_quantity' | 'origin_cabide_product'>;
|
|
15
15
|
export interface IEntityExtended extends Entity {
|
|
16
16
|
lines: {
|
|
17
|
-
|
|
18
|
-
pre_sale_product?: PreSaleProduct;
|
|
17
|
+
pre_sale_product: PreSaleProduct;
|
|
19
18
|
product: IProductMinified;
|
|
20
19
|
}[];
|
|
21
20
|
}
|
|
@@ -41,7 +41,6 @@ export import ObservationType = Integration.ObservationType;
|
|
|
41
41
|
export import Payment = Stock.Payment;
|
|
42
42
|
export import PaymentConditions = User.PaymentConditions;
|
|
43
43
|
export import Permissions = User.Permissions;
|
|
44
|
-
export import Plot = Stock.Plot;
|
|
45
44
|
export import PrimaryColor = Stock.PrimaryColor;
|
|
46
45
|
export import ProductNamePreset = Stock.ProductNamePreset;
|
|
47
46
|
export import Product = Stock.Product;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IConflict } from '../../modules/
|
|
1
|
+
import { IConflict } from '../../modules/document/propostaSheets/interface';
|
|
2
2
|
import { IAttributeDatatype } from '../../modules/stock/attribute/interfaces';
|
|
3
3
|
import { ICabideType } from '../../modules/supply/cabide/interface';
|
|
4
4
|
import { IDocumentTypeUserType, IDocumentTypeCodeType } from '../../modules/supply/documentType/interfaces';
|
|
@@ -130,22 +130,6 @@ export type MaintenancePresetAssoc = {
|
|
|
130
130
|
created_by: string;
|
|
131
131
|
updated_by: string;
|
|
132
132
|
};
|
|
133
|
-
export type Plot = {
|
|
134
|
-
id: string;
|
|
135
|
-
product_id: string;
|
|
136
|
-
avg_unit_cost: number | null;
|
|
137
|
-
prison: boolean;
|
|
138
|
-
is_virtual: boolean;
|
|
139
|
-
pre_sale_id: string | null;
|
|
140
|
-
quantity: number;
|
|
141
|
-
location_id: string | null;
|
|
142
|
-
observations: string | null;
|
|
143
|
-
origin_id: string | null;
|
|
144
|
-
created_at: Date;
|
|
145
|
-
updated_at: Date;
|
|
146
|
-
created_by: string;
|
|
147
|
-
updated_by: string;
|
|
148
|
-
};
|
|
149
133
|
export type PreSale = {
|
|
150
134
|
id: string;
|
|
151
135
|
counter: number;
|
|
@@ -593,6 +577,8 @@ export type DocumentLine = {
|
|
|
593
577
|
preco_venda: number;
|
|
594
578
|
client_tax: number;
|
|
595
579
|
client_discount: number;
|
|
580
|
+
avg_unit_cost: number | null;
|
|
581
|
+
prison: boolean;
|
|
596
582
|
provider_estimated_delivery_date: Date | null;
|
|
597
583
|
sent_to_client: boolean;
|
|
598
584
|
sent_to_provider: boolean;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.
|
|
12
|
+
"version": "0.16.1",
|
|
13
13
|
"main": "./dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/convert-units": "^2.3.9",
|
|
41
41
|
"@types/node": "^20.10.5",
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
43
|
-
"@typescript-eslint/parser": "^6.
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^6.16.0",
|
|
43
|
+
"@typescript-eslint/parser": "^6.16.0",
|
|
44
44
|
"concurrently": "^8.2.2",
|
|
45
45
|
"eslint": "^8.56.0",
|
|
46
46
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
47
47
|
"eslint-config-prettier": "^9.1.0",
|
|
48
48
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
49
49
|
"eslint-plugin-import": "^2.29.1",
|
|
50
|
-
"eslint-plugin-prettier": "^5.1.
|
|
50
|
+
"eslint-plugin-prettier": "^5.1.2",
|
|
51
51
|
"prettier": "^3.1.1",
|
|
52
52
|
"tsx": "^4.7.0",
|
|
53
53
|
"typescript": "^5.3.3"
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { Plot, Location, PlotVirtuals, DocumentHeader, StartDocumentHeaderVirtuals } from '../../../shared/entities';
|
|
3
|
-
import * as IDocumentLine from '../../supply/documentLine/interfaces';
|
|
4
|
-
export type Entity = Plot;
|
|
5
|
-
export declare const Route = "plot";
|
|
6
|
-
export declare const UpperName = "Plot";
|
|
7
|
-
export declare const LowerName: string;
|
|
8
|
-
export type IPlotVirtuals = PlotVirtuals;
|
|
9
|
-
export type IPlotVirtualExtended = PlotVirtuals & {
|
|
10
|
-
current_document_line: (Pick<IDocumentLine.Entity, 'id'> & {
|
|
11
|
-
virtual: (IDocumentLine.IDocumentLineBaseVirtuals & {
|
|
12
|
-
client_start: (Pick<DocumentHeader, 'owner_id' | 'document_number'> & {
|
|
13
|
-
start_virtual: Pick<StartDocumentHeaderVirtuals, 'closed'> | null;
|
|
14
|
-
}) | null;
|
|
15
|
-
}) | null;
|
|
16
|
-
extended_virtual: IDocumentLine.IDocumentLineVirtuals | null;
|
|
17
|
-
}) | null;
|
|
18
|
-
};
|
|
19
|
-
export interface IFindDetailedResponse extends Entity {
|
|
20
|
-
virtual: IPlotVirtualExtended | null;
|
|
21
|
-
location: Location | null;
|
|
22
|
-
}
|
|
23
|
-
export interface IFindDetailedResponseWithoutCurrentDocumentLine extends Omit<IFindDetailedResponse, 'virtual'> {
|
|
24
|
-
virtual: PlotVirtuals | null;
|
|
25
|
-
}
|
|
26
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
27
|
-
export interface IFindPlotsToReturnResponse {
|
|
28
|
-
document_line_assoc_id: string;
|
|
29
|
-
df_name: string;
|
|
30
|
-
pdf_link: string | null;
|
|
31
|
-
plot_id: string;
|
|
32
|
-
document_line_id: string;
|
|
33
|
-
id_provider: number;
|
|
34
|
-
reference: string;
|
|
35
|
-
designation: string;
|
|
36
|
-
thumbnail: string | null;
|
|
37
|
-
product_id: string;
|
|
38
|
-
quantity: number;
|
|
39
|
-
emails_sent: number;
|
|
40
|
-
already_picked_up: boolean;
|
|
41
|
-
return_to_provider_without_credit_note: boolean;
|
|
42
|
-
updated_by: string | null;
|
|
43
|
-
updated_at: Date;
|
|
44
|
-
}
|
|
45
|
-
export interface IDisassociatePlot {
|
|
46
|
-
document_line_id: string;
|
|
47
|
-
plot_id: string;
|
|
48
|
-
}
|
|
49
|
-
export interface IInventoryLossResponse {
|
|
50
|
-
document_line_id: string;
|
|
51
|
-
id_provider: number;
|
|
52
|
-
product_id: string;
|
|
53
|
-
product_thumbnail: string;
|
|
54
|
-
product_reference: string;
|
|
55
|
-
product_description: string;
|
|
56
|
-
quantity: number;
|
|
57
|
-
unit_of_measure_quantity_notation: string;
|
|
58
|
-
updated_by: string | null;
|
|
59
|
-
updated_at: Date;
|
|
60
|
-
}
|
|
61
|
-
export interface IFindPlotsInPrisonResponse {
|
|
62
|
-
id: string;
|
|
63
|
-
quantity: number;
|
|
64
|
-
id_provider: number;
|
|
65
|
-
observations?: string;
|
|
66
|
-
product: {
|
|
67
|
-
id: string;
|
|
68
|
-
thumbnail_multimedia_id: string | null;
|
|
69
|
-
virtual: {
|
|
70
|
-
designation: string;
|
|
71
|
-
reference: string;
|
|
72
|
-
} | null;
|
|
73
|
-
};
|
|
74
|
-
updated_by: string | null;
|
|
75
|
-
updated_at: Date;
|
|
76
|
-
}
|
|
77
|
-
export interface IUnfoldPlotRequest {
|
|
78
|
-
id: string;
|
|
79
|
-
quantity: number;
|
|
80
|
-
}
|
|
81
|
-
export interface IUnfoldPlotResponse {
|
|
82
|
-
original_plot: {
|
|
83
|
-
id: string;
|
|
84
|
-
quantity: number;
|
|
85
|
-
document_line_id: string;
|
|
86
|
-
};
|
|
87
|
-
unfolded_plot: {
|
|
88
|
-
id: string;
|
|
89
|
-
quantity: number;
|
|
90
|
-
document_line_id: string;
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
export interface IFoldPlotRequest {
|
|
94
|
-
original_plot_id: string;
|
|
95
|
-
unfolded_plot_id: string;
|
|
96
|
-
}
|
|
97
|
-
export interface IFoldPlotResponse {
|
|
98
|
-
to_delete_plot_id: string;
|
|
99
|
-
to_update_plot: {
|
|
100
|
-
id: string;
|
|
101
|
-
quantity: number;
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
export interface IUnfoldLineRequest {
|
|
105
|
-
document_line_id: string;
|
|
106
|
-
quantity: number;
|
|
107
|
-
new_document_line_id?: string;
|
|
108
|
-
}
|
|
109
|
-
export interface IUnfoldLineResponse {
|
|
110
|
-
original_line: {
|
|
111
|
-
id: string;
|
|
112
|
-
quantity: number;
|
|
113
|
-
};
|
|
114
|
-
unfolded_line: {
|
|
115
|
-
id: string;
|
|
116
|
-
quantity: number;
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
export declare const checkPlotInPrisonOptions: readonly ["Por confirmar", "Devolver a stock", "Quebrar", "Devolver a fornecedor"];
|
|
120
|
-
export type ICheckPlotInPrisonOptions = (typeof checkPlotInPrisonOptions)[number];
|
|
121
|
-
export interface ICheckPlotInPrisonPlotsRequest {
|
|
122
|
-
id_provider: number;
|
|
123
|
-
plot_id: string;
|
|
124
|
-
option: ICheckPlotInPrisonOptions;
|
|
125
|
-
}
|
|
126
|
-
export interface ICheckPlotInPrisonRequest {
|
|
127
|
-
plots: ICheckPlotInPrisonPlotsRequest[];
|
|
128
|
-
}
|
|
129
|
-
export interface ICreateManyRequest {
|
|
130
|
-
id: string;
|
|
131
|
-
product_id: string;
|
|
132
|
-
quantity: number;
|
|
133
|
-
prison: boolean;
|
|
134
|
-
location_id: string;
|
|
135
|
-
observations?: string;
|
|
136
|
-
}
|
|
137
|
-
export declare const checkPlotsToReturnOptions: readonly ["Por tratar", "Levantar", "Enviar email", "Quebrar", "Devolver a stock"];
|
|
138
|
-
export type ICheckPlotsToReturnOptions = (typeof checkPlotsToReturnOptions)[number];
|
|
139
|
-
export interface ICheckPlotsToReturnPlotsRequest {
|
|
140
|
-
plot_id: string;
|
|
141
|
-
document_line_assoc_id: string;
|
|
142
|
-
document_line_id: string;
|
|
143
|
-
option: ICheckPlotsToReturnOptions;
|
|
144
|
-
}
|
|
145
|
-
export interface ICheckPlotsToReturnRequest {
|
|
146
|
-
plots: ICheckPlotsToReturnPlotsRequest[];
|
|
147
|
-
}
|
|
148
|
-
export declare const LabelOriginEnum: {
|
|
149
|
-
'Entrada de Material': 'Entrada de Material';
|
|
150
|
-
Parcela: 'Parcela';
|
|
151
|
-
};
|
|
152
|
-
export type ILabelOrigin = (typeof LabelOriginEnum)[keyof typeof LabelOriginEnum];
|
|
153
|
-
export declare const labelOrigins: string[];
|
|
154
|
-
export interface IPrintLabelParamsRequest {
|
|
155
|
-
product_id: string;
|
|
156
|
-
plot_id: string;
|
|
157
|
-
label_origin: ILabelOrigin;
|
|
158
|
-
}
|
|
159
|
-
export interface IPrintLabelQueryRequest {
|
|
160
|
-
pc_document_number?: number | null;
|
|
161
|
-
quantity: number;
|
|
162
|
-
}
|
|
163
|
-
export interface IPrintLabelQueryWithTokenRequest extends IPrintLabelQueryRequest {
|
|
164
|
-
token: string;
|
|
165
|
-
}
|
|
166
|
-
export interface ICreateInventoryRequest {
|
|
167
|
-
product_id: string;
|
|
168
|
-
plot_id: string | null;
|
|
169
|
-
registered_quantity: number;
|
|
170
|
-
inventory_quantity: number;
|
|
171
|
-
new_plot_id: string;
|
|
172
|
-
is_virtual?: boolean;
|
|
173
|
-
created_by?: string;
|
|
174
|
-
updated_by?: string;
|
|
175
|
-
}
|
|
176
|
-
export interface IRepository {
|
|
177
|
-
findById(id: string): Promise<Entity | null>;
|
|
178
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
179
|
-
findPlotsInPrison(): Promise<IFindPlotsInPrisonResponse[]>;
|
|
180
|
-
findPlotsInPrisonProviders(): Promise<IShared.IFindMinifiedResponse[]>;
|
|
181
|
-
putPlotInPrison(params: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
182
|
-
removePlotFromPrison(params: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
183
|
-
unfoldPlot(unfoldPlot: IUnfoldPlotRequest): Promise<IUnfoldPlotResponse>;
|
|
184
|
-
foldPlot(data: IFoldPlotRequest): Promise<IFoldPlotResponse>;
|
|
185
|
-
checkPlotInPrison(params: ICheckPlotInPrisonRequest): Promise<IShared.IBrokerMessage<IShared.IBrokerTopic>[]>;
|
|
186
|
-
checkPlotsToReturn(params: ICheckPlotsToReturnRequest): Promise<IShared.IBrokerMessage[]>;
|
|
187
|
-
findPlotsToReturn(params: IShared.IFindOptionalByOwnerIdRequest): Promise<IFindPlotsToReturnResponse[]>;
|
|
188
|
-
findPlotsToReturnProviders(): Promise<IShared.IFindMinifiedResponse[]>;
|
|
189
|
-
disassociatePlot(data: IDisassociatePlot): Promise<void>;
|
|
190
|
-
findInventoryLosses(): Promise<IInventoryLossResponse[]>;
|
|
191
|
-
findInventoryLossesProviders(): Promise<IShared.IFindMinifiedResponse[]>;
|
|
192
|
-
createInventory(data: ICreateInventoryRequest): Promise<void>;
|
|
193
|
-
}
|
|
194
|
-
export type IApi = Omit<IRepository, 'checkPlotInPrison' | 'checkPlotsToReturn'> & {
|
|
195
|
-
checkPlotInPrison(params: ICheckPlotInPrisonRequest): Promise<void>;
|
|
196
|
-
checkPlotsToReturn(params: ICheckPlotsToReturnRequest): Promise<void>;
|
|
197
|
-
};
|
|
198
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.labelOrigins = exports.LabelOriginEnum = exports.checkPlotsToReturnOptions = exports.checkPlotInPrisonOptions = exports.LowerName = exports.UpperName = exports.Route = void 0;
|
|
4
|
-
exports.Route = 'plot';
|
|
5
|
-
exports.UpperName = 'Plot';
|
|
6
|
-
exports.LowerName = exports.UpperName[0].toLowerCase() + exports.UpperName.substring(1);
|
|
7
|
-
exports.checkPlotInPrisonOptions = [
|
|
8
|
-
'Por confirmar',
|
|
9
|
-
'Devolver a stock',
|
|
10
|
-
'Quebrar',
|
|
11
|
-
'Devolver a fornecedor',
|
|
12
|
-
];
|
|
13
|
-
exports.checkPlotsToReturnOptions = [
|
|
14
|
-
'Por tratar',
|
|
15
|
-
'Levantar',
|
|
16
|
-
'Enviar email',
|
|
17
|
-
'Quebrar',
|
|
18
|
-
'Devolver a stock',
|
|
19
|
-
];
|
|
20
|
-
exports.LabelOriginEnum = {
|
|
21
|
-
'Entrada de Material': 'Entrada de Material',
|
|
22
|
-
Parcela: 'Parcela',
|
|
23
|
-
};
|
|
24
|
-
exports.labelOrigins = Object.keys(exports.LabelOriginEnum);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import joi from 'joi';
|
|
2
|
-
export declare const unfoldPlotBody: joi.ObjectSchema<any>;
|
|
3
|
-
export declare const foldPlotBody: joi.ObjectSchema<any>;
|
|
4
|
-
export declare const checkPlotInPrisonBody: joi.ObjectSchema<any>;
|
|
5
|
-
export declare const checkPlotToReturnBody: joi.ObjectSchema<any>;
|
|
6
|
-
export declare const disassociatePlotBody: joi.ObjectSchema<any>;
|
|
7
|
-
export declare const printLabelParams: joi.ObjectSchema<any>;
|
|
8
|
-
export declare const printLabelQuery: joi.ObjectSchema<any>;
|
|
9
|
-
export declare const createInventoryRequest: joi.ObjectSchema<any>;
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
var _a, _b, _c;
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.createInventoryRequest = exports.printLabelQuery = exports.printLabelParams = exports.disassociatePlotBody = exports.checkPlotToReturnBody = exports.checkPlotInPrisonBody = exports.foldPlotBody = exports.unfoldPlotBody = void 0;
|
|
8
|
-
var joi_1 = __importDefault(require("joi"));
|
|
9
|
-
var messages_1 = require("../../../shared/messages");
|
|
10
|
-
var interface_1 = require("./interface");
|
|
11
|
-
var unfoldPlotBodyKeys = {
|
|
12
|
-
id: joi_1.default.string().uuid().required(),
|
|
13
|
-
quantity: joi_1.default.number().greater(0).required(),
|
|
14
|
-
};
|
|
15
|
-
exports.unfoldPlotBody = joi_1.default
|
|
16
|
-
.object()
|
|
17
|
-
.keys(unfoldPlotBodyKeys)
|
|
18
|
-
.messages(messages_1.messages);
|
|
19
|
-
var foldPlotBodyKeys = {
|
|
20
|
-
original_plot_id: joi_1.default.string().uuid().required(),
|
|
21
|
-
unfolded_plot_id: joi_1.default.string().uuid().required(),
|
|
22
|
-
};
|
|
23
|
-
exports.foldPlotBody = joi_1.default
|
|
24
|
-
.object()
|
|
25
|
-
.keys(foldPlotBodyKeys)
|
|
26
|
-
.messages(messages_1.messages);
|
|
27
|
-
var checkPlotInPrisonPlotsBodyKeys = {
|
|
28
|
-
id_provider: joi_1.default.number().integer().positive().allow(0).required(),
|
|
29
|
-
plot_id: joi_1.default.string().uuid().required(),
|
|
30
|
-
option: (_a = joi_1.default
|
|
31
|
-
.string())
|
|
32
|
-
.valid.apply(_a, interface_1.checkPlotInPrisonOptions).required(),
|
|
33
|
-
};
|
|
34
|
-
var checkPlotInPrisonBodyKeys = {
|
|
35
|
-
plots: joi_1.default
|
|
36
|
-
.array()
|
|
37
|
-
.items(joi_1.default.object().keys(checkPlotInPrisonPlotsBodyKeys).required())
|
|
38
|
-
.required(),
|
|
39
|
-
};
|
|
40
|
-
exports.checkPlotInPrisonBody = joi_1.default
|
|
41
|
-
.object()
|
|
42
|
-
.keys(checkPlotInPrisonBodyKeys)
|
|
43
|
-
.messages(messages_1.messages);
|
|
44
|
-
var checkPlotToReturnPlotsKeys = {
|
|
45
|
-
document_line_assoc_id: joi_1.default.string().uuid().required(),
|
|
46
|
-
document_line_id: joi_1.default.string().uuid().required(),
|
|
47
|
-
plot_id: joi_1.default.string().uuid().required(),
|
|
48
|
-
option: (_b = joi_1.default
|
|
49
|
-
.string())
|
|
50
|
-
.valid.apply(_b, interface_1.checkPlotsToReturnOptions).required(),
|
|
51
|
-
};
|
|
52
|
-
var checkPlotToReturnBodyKeys = {
|
|
53
|
-
plots: joi_1.default
|
|
54
|
-
.array()
|
|
55
|
-
.items(joi_1.default.object().keys(checkPlotToReturnPlotsKeys).required())
|
|
56
|
-
.required(),
|
|
57
|
-
};
|
|
58
|
-
exports.checkPlotToReturnBody = joi_1.default
|
|
59
|
-
.object()
|
|
60
|
-
.keys(checkPlotToReturnBodyKeys)
|
|
61
|
-
.messages(messages_1.messages);
|
|
62
|
-
var disassociatePlotBodyKeys = {
|
|
63
|
-
document_line_id: joi_1.default.string().uuid().required(),
|
|
64
|
-
plot_id: joi_1.default.string().uuid().required(),
|
|
65
|
-
};
|
|
66
|
-
exports.disassociatePlotBody = joi_1.default
|
|
67
|
-
.object()
|
|
68
|
-
.keys(disassociatePlotBodyKeys)
|
|
69
|
-
.messages(messages_1.messages);
|
|
70
|
-
var printLabelParamsKeys = {
|
|
71
|
-
product_id: joi_1.default.string().uuid().required(),
|
|
72
|
-
plot_id: joi_1.default.string().uuid().required(),
|
|
73
|
-
label_origin: (_c = joi_1.default
|
|
74
|
-
.string())
|
|
75
|
-
.valid.apply(_c, interface_1.labelOrigins).required(),
|
|
76
|
-
};
|
|
77
|
-
exports.printLabelParams = joi_1.default
|
|
78
|
-
.object()
|
|
79
|
-
.keys(printLabelParamsKeys)
|
|
80
|
-
.messages(messages_1.messages);
|
|
81
|
-
var printLabelQueryKeys = {
|
|
82
|
-
pc_document_number: joi_1.default
|
|
83
|
-
.number()
|
|
84
|
-
.integer()
|
|
85
|
-
.positive()
|
|
86
|
-
.allow(null)
|
|
87
|
-
.optional(),
|
|
88
|
-
quantity: joi_1.default.number().positive().required(),
|
|
89
|
-
token: joi_1.default.string().required(),
|
|
90
|
-
};
|
|
91
|
-
exports.printLabelQuery = joi_1.default
|
|
92
|
-
.object()
|
|
93
|
-
.keys(printLabelQueryKeys)
|
|
94
|
-
.messages(messages_1.messages);
|
|
95
|
-
var createInventoryRequestKeys = {
|
|
96
|
-
product_id: joi_1.default.string().uuid().required(),
|
|
97
|
-
plot_id: joi_1.default.string().uuid().allow(null).required(),
|
|
98
|
-
registered_quantity: joi_1.default.number().positive().allow(0).optional(),
|
|
99
|
-
inventory_quantity: joi_1.default.number().positive().allow(0).required(),
|
|
100
|
-
new_plot_id: joi_1.default.string().uuid().required(),
|
|
101
|
-
is_virtual: joi_1.default.boolean().default(false).optional(),
|
|
102
|
-
created_by: joi_1.default.string().uuid().optional(),
|
|
103
|
-
updated_by: joi_1.default.string().uuid().optional(),
|
|
104
|
-
};
|
|
105
|
-
exports.createInventoryRequest = joi_1.default
|
|
106
|
-
.object()
|
|
107
|
-
.keys(createInventoryRequestKeys)
|
|
108
|
-
.messages(messages_1.messages);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import joi from 'joi';
|
|
2
|
-
import * as IShared from '../../../shared/interface';
|
|
3
|
-
import { IFindByOwnerIdResponse } from './interface';
|
|
4
|
-
export declare const createUpdateDeleteBodyResponse: joi.ObjectSchema<any>;
|
|
5
|
-
export declare const findOwnerIdBodyResponsekeys: IShared.IRouteResponseWithoutStamps<IFindByOwnerIdResponse>;
|
|
6
|
-
export declare const findOwnerIdBodyResponse: joi.ArraySchema<any[]>;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
-
};
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.findOwnerIdBodyResponse = exports.findOwnerIdBodyResponsekeys = exports.createUpdateDeleteBodyResponse = void 0;
|
|
41
|
-
var joi_1 = __importDefault(require("joi"));
|
|
42
|
-
var IShared = __importStar(require("../../../shared/interface"));
|
|
43
|
-
var ILocationRoute = __importStar(require("../location/tests"));
|
|
44
|
-
var createUpdateDeleteBodyResponseKeys = {
|
|
45
|
-
id: joi_1.default.string().uuid().required(),
|
|
46
|
-
quantity: joi_1.default.number().positive().required(),
|
|
47
|
-
product_id: joi_1.default.string().uuid().required(),
|
|
48
|
-
location_id: joi_1.default.string().uuid().required(),
|
|
49
|
-
origin_id: joi_1.default.string().allow(null).optional(),
|
|
50
|
-
prison: joi_1.default.boolean().required(),
|
|
51
|
-
is_virtual: joi_1.default.boolean().required(),
|
|
52
|
-
pre_sale_id: joi_1.default.string().uuid().required(),
|
|
53
|
-
observations: joi_1.default.string().allow(null),
|
|
54
|
-
avg_unit_cost: joi_1.default.number().positive().allow(null).required(),
|
|
55
|
-
};
|
|
56
|
-
exports.createUpdateDeleteBodyResponse = joi_1.default.object().keys(__assign(__assign({}, createUpdateDeleteBodyResponseKeys), IShared.joiValidateStamps));
|
|
57
|
-
exports.findOwnerIdBodyResponsekeys = {
|
|
58
|
-
id: joi_1.default.string().uuid().required(),
|
|
59
|
-
quantity: joi_1.default.number().positive().required(),
|
|
60
|
-
product_id: joi_1.default.string().uuid().required(),
|
|
61
|
-
location_id: joi_1.default.string().uuid().required(),
|
|
62
|
-
location: ILocationRoute.findByIdBodyResponse.required().allow(null),
|
|
63
|
-
virtual: joi_1.default.any(),
|
|
64
|
-
origin_id: joi_1.default.string().allow(null).optional(),
|
|
65
|
-
prison: joi_1.default.boolean().required(),
|
|
66
|
-
is_virtual: joi_1.default.boolean().required(),
|
|
67
|
-
pre_sale_id: joi_1.default.string().uuid().required(),
|
|
68
|
-
observations: joi_1.default.string().allow(null),
|
|
69
|
-
avg_unit_cost: joi_1.default.number().positive(),
|
|
70
|
-
};
|
|
71
|
-
exports.findOwnerIdBodyResponse = joi_1.default
|
|
72
|
-
.array()
|
|
73
|
-
.items(__assign(__assign({}, exports.findOwnerIdBodyResponsekeys), IShared.joiValidateStamps))
|
|
74
|
-
.required();
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|