@nomalism-com/types 0.19.153 → 0.19.155
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.min.js +1 -1
- package/dist/main.d.ts +1 -45
- package/dist/modules/stock/product/interface.d.ts +1 -13
- package/dist/modules/supply/cabideProduct/interface.d.ts +3 -19
- package/dist/modules/supply/documentLine/interfaces.d.ts +1 -1
- package/dist/modules/user/purchaseConditions/interface.d.ts +6 -9
- package/dist/modules/user/purchaseConditions/route.schema.d.ts +1 -1
- package/dist/shared/entities/index.d.ts +0 -20
- package/dist/shared/entities/stock.d.ts +0 -201
- package/package.json +1 -1
- package/dist/modules/stock/attribute/interfaces.d.ts +0 -51
- package/dist/modules/stock/attribute/route.schema.d.ts +0 -5
- package/dist/modules/stock/attributeValue/interfaces.d.ts +0 -36
- package/dist/modules/stock/attributeValue/route.schema.d.ts +0 -5
- package/dist/modules/stock/color/interfaces.d.ts +0 -36
- package/dist/modules/stock/color/route.schema.d.ts +0 -5
- package/dist/modules/stock/composition/interfaces.d.ts +0 -36
- package/dist/modules/stock/composition/route.schema.d.ts +0 -5
- package/dist/modules/stock/compositionMaterial/interfaces.d.ts +0 -32
- package/dist/modules/stock/compositionMaterial/route.schema.d.ts +0 -5
- package/dist/modules/stock/maintenance/interface.d.ts +0 -37
- package/dist/modules/stock/maintenance/route.schema.d.ts +0 -5
- package/dist/modules/stock/maintenanceAssoc/interface.d.ts +0 -35
- package/dist/modules/stock/maintenanceAssoc/route.schema.d.ts +0 -5
- package/dist/modules/stock/maintenancePreset/interfaces.d.ts +0 -28
- package/dist/modules/stock/maintenancePreset/route.schema.d.ts +0 -5
- package/dist/modules/stock/maintenancePresetAssoc/interfaces.d.ts +0 -31
- package/dist/modules/stock/maintenancePresetAssoc/route.schema.d.ts +0 -4
- package/dist/modules/stock/maintenanceType/interface.d.ts +0 -32
- package/dist/modules/stock/maintenanceType/route.schema.d.ts +0 -5
- package/dist/modules/stock/primaryColor/interface.d.ts +0 -32
- package/dist/modules/stock/primaryColor/route.schema.d.ts +0 -5
- package/dist/modules/stock/productAttribute/interface.d.ts +0 -36
- package/dist/modules/stock/productAttribute/route.schema.d.ts +0 -5
- package/dist/modules/stock/productCategory/interface.d.ts +0 -32
- package/dist/modules/stock/productCategory/route.schema.d.ts +0 -5
- package/dist/modules/stock/productColor/interface.d.ts +0 -36
- package/dist/modules/stock/productColor/route.schema.d.ts +0 -5
- package/dist/modules/stock/productName/interface.d.ts +0 -32
- package/dist/modules/stock/productName/route.schema.d.ts +0 -5
- package/dist/modules/stock/productNamePreset/interface.d.ts +0 -32
- package/dist/modules/stock/productNamePreset/route.schema.d.ts +0 -5
- package/dist/modules/stock/productPart/interface.d.ts +0 -40
- package/dist/modules/stock/productPart/route.schema.d.ts +0 -5
- package/dist/modules/stock/productSubCategory/interface.d.ts +0 -38
- package/dist/modules/stock/productSubCategory/route.schema.d.ts +0 -5
- package/dist/modules/stock/productUse/interface.d.ts +0 -32
- package/dist/modules/stock/productUse/route.schema.d.ts +0 -5
- package/dist/modules/stock/productUseAssoc/interface.d.ts +0 -34
- package/dist/modules/stock/productUseAssoc/route.schema.d.ts +0 -5
- package/dist/modules/stock/similarProduct/interface.d.ts +0 -38
- package/dist/modules/stock/similarProduct/route.schema.d.ts +0 -5
- package/dist/modules/stock/typeOfInventory/interface.d.ts +0 -34
- package/dist/modules/stock/typeOfInventory/route.schema.d.ts +0 -5
package/dist/main.d.ts
CHANGED
|
@@ -4,10 +4,6 @@ import * as stockErrors from "./shared/errors/stockErrors";
|
|
|
4
4
|
import * as userErrors from "./shared/errors/userErrors";
|
|
5
5
|
import * as documentManagementErrors from "./shared/errors/documentManagementErrors";
|
|
6
6
|
import * as integrationErrors from "./shared/errors/integrationErrors";
|
|
7
|
-
import * as Attribute from "./modules/stock/attribute/interfaces";
|
|
8
|
-
import * as AttributeRoutes from "./modules/stock/attribute/route.schema";
|
|
9
|
-
import * as AttributeValue from "./modules/stock/attributeValue/interfaces";
|
|
10
|
-
import * as AttributeValueRoutes from "./modules/stock/attributeValue/route.schema";
|
|
11
7
|
import * as BankData from "./modules/user/bankData/interface";
|
|
12
8
|
import * as BankDataRoutes from "./modules/user/bankData/route.schema";
|
|
13
9
|
import * as Client from "./modules/user/clients/interface";
|
|
@@ -18,14 +14,8 @@ import * as ZipCode from "./modules/user/zipCode/interfaces";
|
|
|
18
14
|
import * as ZipCodeRoutes from "./modules/user/zipCode/route.schema";
|
|
19
15
|
import * as Chat from "./modules/stock/chat/interfaces";
|
|
20
16
|
import * as ChatRoutes from "./modules/stock/chat/route.schema";
|
|
21
|
-
import * as Color from "./modules/stock/color/interfaces";
|
|
22
|
-
import * as ColorRoutes from "./modules/stock/color/route.schema";
|
|
23
17
|
import * as Commissioner from "./modules/user/commissioner/interface";
|
|
24
18
|
import * as CommissionerRoutes from "./modules/user/commissioner/route.schema";
|
|
25
|
-
import * as Composition from "./modules/stock/composition/interfaces";
|
|
26
|
-
import * as CompositionRoutes from "./modules/stock/composition/route.schema";
|
|
27
|
-
import * as CompositionMaterial from "./modules/stock/compositionMaterial/interfaces";
|
|
28
|
-
import * as CompositionMaterialRoutes from "./modules/stock/compositionMaterial/route.schema";
|
|
29
19
|
import * as Counter from "./modules/supply/counter/interfaces";
|
|
30
20
|
import * as CounterRoutes from "./modules/supply/counter/route.schema";
|
|
31
21
|
import * as Country from "./modules/user/country/interface";
|
|
@@ -62,12 +52,6 @@ import * as Language from "./modules/user/language/interface";
|
|
|
62
52
|
import * as LanguageRoutes from "./modules/user/language/route.schema";
|
|
63
53
|
import * as Location from "./modules/stock/location/interface";
|
|
64
54
|
import * as LocationRoutes from "./modules/stock/location/route.schema";
|
|
65
|
-
import * as Maintenance from "./modules/stock/maintenance/interface";
|
|
66
|
-
import * as MaintenanceRoutes from "./modules/stock/maintenance/route.schema";
|
|
67
|
-
import * as MaintenanceAssoc from "./modules/stock/maintenanceAssoc/interface";
|
|
68
|
-
import * as MaintenanceAssocRoutes from "./modules/stock/maintenanceAssoc/route.schema";
|
|
69
|
-
import * as MaintenanceType from "./modules/stock/maintenanceType/interface";
|
|
70
|
-
import * as MaintenanceTypeRoutes from "./modules/stock/maintenanceType/route.schema";
|
|
71
55
|
import * as MaturityDates from "./modules/user/maturityDates/interfaces";
|
|
72
56
|
import * as MaturityDatesRoutes from "./modules/user/maturityDates/route.schema";
|
|
73
57
|
import * as Multimedia from "./modules/documentManagement/multimedia/interfaces";
|
|
@@ -87,28 +71,10 @@ import * as PaymentMethods from "./modules/user/paymentMethods/interfaces";
|
|
|
87
71
|
import * as PaymentMethodsRoutes from "./modules/user/paymentMethods/route.schema";
|
|
88
72
|
import * as Permissions from "./modules/user/permissions/interface";
|
|
89
73
|
import * as PermissionsRoutes from "./modules/user/permissions/route.schema";
|
|
90
|
-
import * as PrimaryColor from "./modules/stock/primaryColor/interface";
|
|
91
|
-
import * as PrimaryColorRoutes from "./modules/stock/primaryColor/route.schema";
|
|
92
74
|
import * as Product from "./modules/stock/product/interface";
|
|
93
75
|
import * as ProductRoutes from "./modules/stock/product/route.schema";
|
|
94
|
-
import * as ProductAttribute from "./modules/stock/productAttribute/interface";
|
|
95
|
-
import * as ProductAttributeRoutes from "./modules/stock/productAttribute/route.schema";
|
|
96
|
-
import * as ProductCategory from "./modules/stock/productCategory/interface";
|
|
97
|
-
import * as ProductCategoryRoutes from "./modules/stock/productCategory/route.schema";
|
|
98
|
-
import * as ProductColor from "./modules/stock/productColor/interface";
|
|
99
|
-
import * as ProductColorRoutes from "./modules/stock/productColor/route.schema";
|
|
100
76
|
import * as ProductImage from "./modules/stock/productImage/interface";
|
|
101
77
|
import * as ProductImageRoutes from "./modules/stock/productImage/route.schema";
|
|
102
|
-
import * as ProductPart from "./modules/stock/productPart/interface";
|
|
103
|
-
import * as ProductPartRoutes from "./modules/stock/productPart/route.schema";
|
|
104
|
-
import * as ProductSubCategory from "./modules/stock/productSubCategory/interface";
|
|
105
|
-
import * as ProductSubCategoryRoutes from "./modules/stock/productSubCategory/route.schema";
|
|
106
|
-
import * as ProductUse from "./modules/stock/productUse/interface";
|
|
107
|
-
import * as ProductUseRoutes from "./modules/stock/productUse/route.schema";
|
|
108
|
-
import * as ProductUseAssoc from "./modules/stock/productUseAssoc/interface";
|
|
109
|
-
import * as ProductUseAssocRoutes from "./modules/stock/productUseAssoc/route.schema";
|
|
110
|
-
import * as ProductName from "./modules/stock/productName/interface";
|
|
111
|
-
import * as ProductNameRoutes from "./modules/stock/productName/route.schema";
|
|
112
78
|
import * as Promotion from "./modules/stock/promotion/interface";
|
|
113
79
|
import * as PromotionRoutes from "./modules/stock/promotion/route.schema";
|
|
114
80
|
import * as PromotionAssoc from "./modules/stock/promotionAssoc/interface";
|
|
@@ -129,16 +95,12 @@ import * as Sessions from "./modules/user/sessions/interface";
|
|
|
129
95
|
import * as SessionsRoutes from "./modules/user/sessions/route.schema";
|
|
130
96
|
import * as Shippings from "./modules/user/shippings/interface";
|
|
131
97
|
import * as ShippingsRoutes from "./modules/user/shippings/route.schema";
|
|
132
|
-
import * as SimilarProduct from "./modules/stock/similarProduct/interface";
|
|
133
|
-
import * as SimilarProductRoutes from "./modules/stock/similarProduct/route.schema";
|
|
134
98
|
import * as SocialMedia from "./modules/user/socialMedia/interface";
|
|
135
99
|
import * as SocialMediaRoutes from "./modules/user/socialMedia/route.schema";
|
|
136
100
|
import * as StoreOperator from "./modules/user/storeOperator/interface";
|
|
137
101
|
import * as StoreOperatorRoutes from "./modules/user/storeOperator/route.schema";
|
|
138
102
|
import * as Swift from "./modules/user/swift/interface";
|
|
139
103
|
import * as SwiftRoutes from "./modules/user/swift/route.schema";
|
|
140
|
-
import * as TypeOfInventory from "./modules/stock/typeOfInventory/interface";
|
|
141
|
-
import * as TypeOfInventoryRoutes from "./modules/stock/typeOfInventory/route.schema";
|
|
142
104
|
import * as TypeOfLocation from "./modules/stock/typeOfLocation/interface";
|
|
143
105
|
import * as TypeOfLocationRoutes from "./modules/stock/typeOfLocation/route.schema";
|
|
144
106
|
import * as UnitOfMeasure from "./modules/stock/unitOfMeasure/interface";
|
|
@@ -165,14 +127,8 @@ import * as ClientCurrentAccount from "./modules/supply/clientCurrentAccount/int
|
|
|
165
127
|
import * as ClientCurrentAccountRoutes from "./modules/supply/clientCurrentAccount/route.schema";
|
|
166
128
|
import * as ProviderCurrentAccount from "./modules/supply/providerCurrentAccount/interfaces";
|
|
167
129
|
import * as ProviderCurrentAccountRoutes from "./modules/supply/providerCurrentAccount/route.schema";
|
|
168
|
-
import * as MaintenancePreset from "./modules/stock/maintenancePreset/interfaces";
|
|
169
|
-
import * as MaintenancePresetRoutes from "./modules/stock/maintenancePreset/route.schema";
|
|
170
|
-
import * as MaintenancePresetAssoc from "./modules/stock/maintenancePresetAssoc/interfaces";
|
|
171
|
-
import * as MaintenancePresetAssocRoutes from "./modules/stock/maintenancePresetAssoc/route.schema";
|
|
172
130
|
import * as MoloniRequest from "./modules/supply/moloniRequest/interface";
|
|
173
131
|
import * as MoloniRequestRoutes from "./modules/supply/moloniRequest/route.schema";
|
|
174
|
-
import * as ProductNamePreset from "./modules/stock/productNamePreset/interface";
|
|
175
|
-
import * as ProductNamePresetRoutes from "./modules/stock/productNamePreset/route.schema";
|
|
176
132
|
import * as StockMovement from "./modules/stock/stockMovement/interface";
|
|
177
133
|
import * as StockMovementRoutes from "./modules/stock/stockMovement/route.schema";
|
|
178
134
|
import * as Tenant from "./modules/user/tenant/interface";
|
|
@@ -252,4 +208,4 @@ import * as SavedProviderProposal from "./modules/stock/savedProviderProposal/in
|
|
|
252
208
|
import * as SavedProviderProposalRoutes from "./modules/stock/savedProviderProposal/route.schema";
|
|
253
209
|
import * as ProductGoogleSheets from "./modules/stock/productGoogleSheets/interface";
|
|
254
210
|
import * as ProductGoogleSheetsRoutes from "./modules/stock/productGoogleSheets/route.schema";
|
|
255
|
-
export { shared, viewErrors, stockErrors, userErrors, documentManagementErrors, integrationErrors, ZipCode, ZipCodeRoutes,
|
|
211
|
+
export { shared, viewErrors, stockErrors, userErrors, documentManagementErrors, integrationErrors, ZipCode, ZipCodeRoutes, BankData, BankDataRoutes, Client, ClientRoutes, ClientType, ClientTypeRoutes, ClientCurrentAccount, ClientCurrentAccountRoutes, Chat, ChatRoutes, Commissioner, CommissionerRoutes, Counter, CounterRoutes, Country, CountryRoutes, DeliveryMethods, DeliveryMethodsRoutes, DocumentHeader, DocumentHeaderRoutes, DocumentLine, DocumentLineRoutes, DocumentLineAssoc, DocumentLineAssocRoutes, DocumentLineFolder, DocumentLineFolderRoutes, DocumentSet, DocumentSetRoutes, DocumentType, DocumentTypeRoutes, ExternalDocumentType, ExternalDocumentHeader, ExternalDocumentHeaderRoutes, EventHistory, EventHistoryRoutes, Favorites, FavoritesRoutes, Field, File, FileRoutes, GroupPermissions, GroupPermissionsRoutes, GoogleSheets, GoogleSheetsRoutes, Language, LanguageRoutes, Location, LocationRoutes, MaturityDates, MaturityDatesRoutes, Multimedia, MultimediaRoutes, OrderManagement, Observation, ObservationRoutes, ObservationType, ObservationTypeRoutes, Password, PasswordRoutes, Payment, PaymentRoutes, PaymentConditions, PaymentConditionsRoutes, PaymentMethods, PaymentMethodsRoutes, Permissions, PermissionsRoutes, Product, ProductRoutes, ProductImage, ProductImageRoutes, Promotion, PromotionRoutes, PromotionAssoc, PromotionAssocRoutes, Providers, ProvidersRoutes, ProviderType, ProviderTypeRoutes, ProviderCurrentAccount, ProviderCurrentAccountRoutes, PurchaseConditions, PurchaseConditionsRoutes, ReasonForExemption, ReasonForExemptionRoutes, RefreshToken, RefreshTokenRoutes, SegmentsArea, SegmentsAreaRoutes, Sessions, SessionsRoutes, Shippings, ShippingsRoutes, SocialMedia, SocialMediaRoutes, StoreOperator, StoreOperatorRoutes, Swift, SwiftRoutes, TypeOfLocation, TypeOfLocationRoutes, UnitOfMeasure, UnitOfMeasureRoutes, UserPermissions, UserPermissionsRoutes, UserPositions, UserPositionsRoutes, Users, UsersRoutes, UserTokens, UserTokensRoutes, VatValidation, VatValidationRoutes, VatTax, VatTaxRoutes, VatTaxZone, VatTaxZoneRoutes, Vehicles, VehiclesRoutes, Workflow, WorkflowRoutes, MoloniRequest, MoloniRequestRoutes, 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, 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, };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as IShared from "../../../shared/interface";
|
|
2
|
-
import {
|
|
3
|
-
import * as IProductPart from "../productPart/interface";
|
|
4
|
-
import * as IProductAttribute from "../productAttribute/interface";
|
|
2
|
+
import { Product, UnitOfMeasure, ProductImage, VatTax, VatTaxZone, ProductVirtuals, ProductBaseVirtuals, ProductPromotionVirtuals, CabideProduct, Cabide } from "../../../shared/entities";
|
|
5
3
|
import * as IDocumentLine from "../../supply/documentLine/interfaces";
|
|
6
4
|
export type Entity = Product;
|
|
7
5
|
export declare const Route = "product";
|
|
@@ -20,19 +18,11 @@ export interface IEntityFromCabide extends Pick<Entity, "id" | "cabide_product_c
|
|
|
20
18
|
export interface IEntityWithStock extends Entity {
|
|
21
19
|
unit_of_measure_quantity: UnitOfMeasure;
|
|
22
20
|
unit_of_measure_weight: UnitOfMeasure;
|
|
23
|
-
name: ProductName | null;
|
|
24
|
-
product_sub_category: ProductSubCategory & {
|
|
25
|
-
product_category: ProductCategory & {
|
|
26
|
-
attributes: Attribute[];
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
type_of_inventory: TypeOfInventory;
|
|
30
21
|
vat_tax: VatTax & {
|
|
31
22
|
vat_tax_zones: VatTaxZone[];
|
|
32
23
|
};
|
|
33
24
|
promotions: IProductPromotionVirtuals[];
|
|
34
25
|
product_images: ProductImage[];
|
|
35
|
-
product_parts: IProductPart.IFindByRefProduct[];
|
|
36
26
|
cabide_product: (CabideProduct & {
|
|
37
27
|
cabide: Cabide;
|
|
38
28
|
}) | null;
|
|
@@ -240,10 +230,8 @@ export interface IFindForMobileResponse {
|
|
|
240
230
|
dnt_come_anymore: boolean;
|
|
241
231
|
thumbnail: string | null;
|
|
242
232
|
cabide_product_color: string | null;
|
|
243
|
-
product_attributes: IProductAttribute.IFindDetailedResponse[];
|
|
244
233
|
virtual: Pick<IProductVirtuals, "reference" | "designation" | "price_sale" | "there_is_no_more" | "available" | "ordered_quantity" | "prison" | "reserved" | "total"> | null;
|
|
245
234
|
unit_of_measure_quantity: Pick<UnitOfMeasure, "notation" | "integer_only">;
|
|
246
|
-
product_parts: IProductPart.IFindByRefProduct[];
|
|
247
235
|
origin_cabide_product: Pick<CabideProduct, "preco_final_1" | "preco_final_2"> | null;
|
|
248
236
|
promotions: IDocumentLine.IPromotions[];
|
|
249
237
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { CabideProduct } from
|
|
2
|
-
import * as IShared from
|
|
3
|
-
import * as
|
|
4
|
-
import * as Product from '../../stock/product/interface';
|
|
1
|
+
import { CabideProduct } from "../../../shared/entities";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
|
+
import * as Product from "../../stock/product/interface";
|
|
5
4
|
export type Entity = CabideProduct;
|
|
6
5
|
export declare const Route = "cabide_product";
|
|
7
6
|
export declare const UpperName = "CabideProduct";
|
|
@@ -53,26 +52,11 @@ export interface IFindCabideByOwnerResponse extends Entity {
|
|
|
53
52
|
reference: string;
|
|
54
53
|
designation: string;
|
|
55
54
|
} | null;
|
|
56
|
-
product_sub_category: {
|
|
57
|
-
product_category: {
|
|
58
|
-
attributes: Attribute.Entity[];
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
product_parts: {
|
|
62
|
-
id: string;
|
|
63
|
-
_count: {
|
|
64
|
-
compositions: number;
|
|
65
|
-
maintenance_assocs: number;
|
|
66
|
-
};
|
|
67
|
-
}[];
|
|
68
55
|
cabide_product: {
|
|
69
56
|
_count: {
|
|
70
57
|
cabide_order_products: number;
|
|
71
58
|
};
|
|
72
59
|
} | null;
|
|
73
|
-
_count: {
|
|
74
|
-
product_attributes: number;
|
|
75
|
-
};
|
|
76
60
|
};
|
|
77
61
|
}
|
|
78
62
|
export interface ICreateProductByCabideProductIdRequest {
|
|
@@ -122,7 +122,7 @@ export interface IPrintLabelQueryRequest {
|
|
|
122
122
|
}
|
|
123
123
|
export interface IRepository {
|
|
124
124
|
findByState(data: IFindByDocumentLineStateRequest): Promise<IFindByDocumentLineStateResponse[]>;
|
|
125
|
-
create(data: ICreateRequest[]): Promise<IDocumentLineAssoc.
|
|
125
|
+
create(data: ICreateRequest[]): Promise<IDocumentLineAssoc.IEntityExtended[]>;
|
|
126
126
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
127
127
|
updateData(data: IUpdateDataRequest): Promise<IUpdateLineStatesTriggerResponse>;
|
|
128
128
|
updateMany(data: IUpdateManyRequest): Promise<void>;
|
|
@@ -1,31 +1,28 @@
|
|
|
1
|
-
import * as IShared from
|
|
2
|
-
import { PurchaseConditions
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
import { PurchaseConditions } from "../../../shared/entities";
|
|
3
3
|
export type Entity = PurchaseConditions;
|
|
4
4
|
export declare const Route = "purchase_conditions";
|
|
5
5
|
export declare const UpperName = "PurchaseConditions";
|
|
6
6
|
export declare const LowerName: string;
|
|
7
7
|
interface IFindDetailedResponse extends Entity {
|
|
8
|
-
product_category: ProductCategory | null;
|
|
9
8
|
}
|
|
10
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse,
|
|
11
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse,
|
|
9
|
+
export type IFindByIdResponse = Omit<IFindDetailedResponse, "product_category">;
|
|
10
|
+
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "">;
|
|
12
11
|
export type IFindRequest = Record<string, unknown>;
|
|
13
|
-
export type IFindResponse = Omit<IFindDetailedResponse,
|
|
12
|
+
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
14
13
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
15
14
|
}
|
|
16
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse,
|
|
15
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
17
16
|
export interface ICreateRequest {
|
|
18
17
|
provider_id: string;
|
|
19
18
|
discount: string;
|
|
20
19
|
deadline: string;
|
|
21
20
|
minimum_quantity: string;
|
|
22
|
-
product_category_id?: string | null;
|
|
23
21
|
}
|
|
24
22
|
export interface IUpdateRequest {
|
|
25
23
|
discount?: string;
|
|
26
24
|
deadline?: string;
|
|
27
25
|
minimum_quantity?: string;
|
|
28
|
-
product_category_id?: string | null;
|
|
29
26
|
}
|
|
30
27
|
export interface IRepository {
|
|
31
28
|
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
@@ -5,16 +5,12 @@ import * as DocumentManagement from "./documentManagement";
|
|
|
5
5
|
import * as View from "./view";
|
|
6
6
|
import * as Print from "./print";
|
|
7
7
|
import * as Tickets from "./tickets";
|
|
8
|
-
export import Attribute = Stock.Attribute;
|
|
9
|
-
export import AttributeValue = Stock.AttributeValue;
|
|
10
8
|
export import BankData = User.BankData;
|
|
11
9
|
export import Clients = User.Clients;
|
|
12
10
|
export import ClientType = User.ClientType;
|
|
13
11
|
export import Chat = Stock.Chat;
|
|
14
12
|
export import Color = Stock.Color;
|
|
15
13
|
export import Commissioner = User.Commissioner;
|
|
16
|
-
export import Composition = Stock.Composition;
|
|
17
|
-
export import CompositionMaterial = Stock.CompositionMaterial;
|
|
18
14
|
export import Counter = Stock.Counter;
|
|
19
15
|
export import Country = User.Country;
|
|
20
16
|
export import DocumentHeader = Stock.DocumentHeader;
|
|
@@ -27,29 +23,15 @@ export import Favorites = User.Favorites;
|
|
|
27
23
|
export import GroupPermissions = User.GroupPermissions;
|
|
28
24
|
export import Language = User.Language;
|
|
29
25
|
export import Location = Stock.Location;
|
|
30
|
-
export import Maintenance = Stock.Maintenance;
|
|
31
|
-
export import MaintenanceAssoc = Stock.MaintenanceAssoc;
|
|
32
|
-
export import MaintenancePreset = Stock.MaintenancePreset;
|
|
33
|
-
export import MaintenancePresetAssoc = Stock.MaintenancePresetAssoc;
|
|
34
|
-
export import MaintenanceType = Stock.MaintenanceType;
|
|
35
26
|
export import Multimedia = DocumentManagement.Multimedia;
|
|
36
27
|
export import Observation = Integration.Observation;
|
|
37
28
|
export import ObservationType = Integration.ObservationType;
|
|
38
29
|
export import Payment = Stock.Payment;
|
|
39
30
|
export import PaymentConditions = User.PaymentConditions;
|
|
40
31
|
export import Permissions = User.Permissions;
|
|
41
|
-
export import PrimaryColor = Stock.PrimaryColor;
|
|
42
|
-
export import ProductNamePreset = Stock.ProductNamePreset;
|
|
43
32
|
export import Product = Stock.Product;
|
|
44
33
|
export import ProductAttribute = Stock.ProductAttribute;
|
|
45
|
-
export import ProductCategory = Stock.ProductCategory;
|
|
46
|
-
export import ProductColor = Stock.ProductColor;
|
|
47
34
|
export import ProductImage = Stock.ProductImage;
|
|
48
|
-
export import ProductPart = Stock.ProductPart;
|
|
49
|
-
export import ProductSubCategory = Stock.ProductSubCategory;
|
|
50
|
-
export import ProductName = Stock.ProductName;
|
|
51
|
-
export import ProductUse = Stock.ProductUse;
|
|
52
|
-
export import ProductUseAssoc = Stock.ProductUseAssoc;
|
|
53
35
|
export import Promotion = Stock.Promotion;
|
|
54
36
|
export import PromotionAssoc = Stock.PromotionAssoc;
|
|
55
37
|
export import Providers = User.Providers;
|
|
@@ -58,11 +40,9 @@ export import PurchaseConditions = User.PurchaseConditions;
|
|
|
58
40
|
export import ReasonForExemption = User.ReasonForExemption;
|
|
59
41
|
export import SegmentsArea = User.SegmentsArea;
|
|
60
42
|
export import Shippings = User.Shippings;
|
|
61
|
-
export import SimilarProduct = Stock.SimilarProduct;
|
|
62
43
|
export import SocialMedia = User.SocialMedia;
|
|
63
44
|
export import StoreOperator = User.StoreOperator;
|
|
64
45
|
export import Swift = User.Swift;
|
|
65
|
-
export import TypeOfInventory = Stock.TypeOfInventory;
|
|
66
46
|
export import TypeOfLocation = Stock.TypeOfLocation;
|
|
67
47
|
export import UnitOfMeasure = Stock.UnitOfMeasure;
|
|
68
48
|
export import UserPermissions = User.UserPermissions;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IConflict } from "../../modules/document/propostaSheets/interface";
|
|
2
|
-
import { IAttributeDatatype } from "../../modules/stock/attribute/interfaces";
|
|
3
2
|
import { ICabideType } from "../../modules/supply/cabide/interface";
|
|
4
3
|
import { IDocumentTypeUserType, IDocumentTypeCodeType } from "../../modules/supply/documentType/interfaces";
|
|
5
4
|
import { IBatchType, IPaymentOrigin } from "../../modules/supply/payment/interface";
|
|
@@ -10,29 +9,6 @@ import { IData, IDataDocumentoPago, IDataPagamento, IPromotions } from "../../mo
|
|
|
10
9
|
import { IPhcDocumentType } from "../../modules/supply/clientCurrentAccount/interfaces";
|
|
11
10
|
import { ISavedEmPickingData } from "../../modules/stock/savedEmPicking/interfaces";
|
|
12
11
|
import { IDocumentLineNoteType } from "../../modules/supply/documentLineNote/interfaces";
|
|
13
|
-
export type Attribute = {
|
|
14
|
-
id: string;
|
|
15
|
-
name: string;
|
|
16
|
-
datatype: IAttributeDatatype;
|
|
17
|
-
is_mandatory: boolean;
|
|
18
|
-
product_category_id: string;
|
|
19
|
-
order: number;
|
|
20
|
-
origin_id: string | null;
|
|
21
|
-
created_at: Date;
|
|
22
|
-
updated_at: Date;
|
|
23
|
-
created_by: string;
|
|
24
|
-
updated_by: string;
|
|
25
|
-
};
|
|
26
|
-
export type AttributeValue = {
|
|
27
|
-
id: string;
|
|
28
|
-
attribute_id: string;
|
|
29
|
-
value: string;
|
|
30
|
-
origin_id: string | null;
|
|
31
|
-
created_at: Date;
|
|
32
|
-
updated_at: Date;
|
|
33
|
-
created_by: string;
|
|
34
|
-
updated_by: string;
|
|
35
|
-
};
|
|
36
12
|
export type Chat = {
|
|
37
13
|
id: string;
|
|
38
14
|
document_header_id: string;
|
|
@@ -55,26 +31,6 @@ export type Color = {
|
|
|
55
31
|
updated_by: string;
|
|
56
32
|
origin_id: string | null;
|
|
57
33
|
};
|
|
58
|
-
export type Composition = {
|
|
59
|
-
id: string;
|
|
60
|
-
product_part_id: string;
|
|
61
|
-
composition_material_id: string;
|
|
62
|
-
value: number;
|
|
63
|
-
origin_id: string | null;
|
|
64
|
-
created_at: Date;
|
|
65
|
-
updated_at: Date;
|
|
66
|
-
created_by: string;
|
|
67
|
-
updated_by: string;
|
|
68
|
-
};
|
|
69
|
-
export type CompositionMaterial = {
|
|
70
|
-
id: string;
|
|
71
|
-
name: string;
|
|
72
|
-
origin_id: string | null;
|
|
73
|
-
created_at: Date;
|
|
74
|
-
updated_at: Date;
|
|
75
|
-
created_by: string;
|
|
76
|
-
updated_by: string;
|
|
77
|
-
};
|
|
78
34
|
export type Location = {
|
|
79
35
|
id: string;
|
|
80
36
|
type_of_location_id: string;
|
|
@@ -93,55 +49,6 @@ export type Location = {
|
|
|
93
49
|
created_by: string;
|
|
94
50
|
updated_by: string;
|
|
95
51
|
};
|
|
96
|
-
export type MaintenanceType = {
|
|
97
|
-
id: string;
|
|
98
|
-
name: string;
|
|
99
|
-
origin_id: string | null;
|
|
100
|
-
created_at: Date;
|
|
101
|
-
updated_at: Date;
|
|
102
|
-
created_by: string;
|
|
103
|
-
updated_by: string;
|
|
104
|
-
};
|
|
105
|
-
export type Maintenance = {
|
|
106
|
-
id: string;
|
|
107
|
-
name: string;
|
|
108
|
-
multimedia_id: string | null;
|
|
109
|
-
maintenance_type_id: string;
|
|
110
|
-
origin_id: string | null;
|
|
111
|
-
created_at: Date;
|
|
112
|
-
updated_at: Date;
|
|
113
|
-
created_by: string;
|
|
114
|
-
updated_by: string;
|
|
115
|
-
};
|
|
116
|
-
export type MaintenanceAssoc = {
|
|
117
|
-
id: string;
|
|
118
|
-
product_part_id: string;
|
|
119
|
-
maintenance_id: string;
|
|
120
|
-
origin_id: string | null;
|
|
121
|
-
created_at: Date;
|
|
122
|
-
updated_at: Date;
|
|
123
|
-
created_by: string;
|
|
124
|
-
updated_by: string;
|
|
125
|
-
};
|
|
126
|
-
export type MaintenancePreset = {
|
|
127
|
-
id: string;
|
|
128
|
-
name: string;
|
|
129
|
-
origin_id: string | null;
|
|
130
|
-
created_at: Date;
|
|
131
|
-
updated_at: Date;
|
|
132
|
-
created_by: string;
|
|
133
|
-
updated_by: string;
|
|
134
|
-
};
|
|
135
|
-
export type MaintenancePresetAssoc = {
|
|
136
|
-
id: string;
|
|
137
|
-
preset_id: string;
|
|
138
|
-
maintenance_id: string;
|
|
139
|
-
origin_id: string | null;
|
|
140
|
-
created_at: Date;
|
|
141
|
-
updated_at: Date;
|
|
142
|
-
created_by: string;
|
|
143
|
-
updated_by: string;
|
|
144
|
-
};
|
|
145
52
|
export type PreSale = {
|
|
146
53
|
id: string;
|
|
147
54
|
counter: number;
|
|
@@ -162,15 +69,6 @@ export type PreSaleProduct = {
|
|
|
162
69
|
created_by: string;
|
|
163
70
|
updated_by: string;
|
|
164
71
|
};
|
|
165
|
-
export type PrimaryColor = {
|
|
166
|
-
id: string;
|
|
167
|
-
name: string;
|
|
168
|
-
created_at: Date;
|
|
169
|
-
updated_at: Date;
|
|
170
|
-
origin_id: string | null;
|
|
171
|
-
created_by: string;
|
|
172
|
-
updated_by: string;
|
|
173
|
-
};
|
|
174
72
|
export type Product = {
|
|
175
73
|
id: string;
|
|
176
74
|
reference: number;
|
|
@@ -271,15 +169,6 @@ export type ProductPrices = {
|
|
|
271
169
|
created_by: string;
|
|
272
170
|
updated_by: string;
|
|
273
171
|
};
|
|
274
|
-
export type ProductName = {
|
|
275
|
-
id: string;
|
|
276
|
-
name: string;
|
|
277
|
-
origin_id: string | null;
|
|
278
|
-
created_at: Date;
|
|
279
|
-
updated_at: Date;
|
|
280
|
-
created_by: string;
|
|
281
|
-
updated_by: string;
|
|
282
|
-
};
|
|
283
172
|
export type ProductAttribute = {
|
|
284
173
|
id: string;
|
|
285
174
|
value: string;
|
|
@@ -291,26 +180,6 @@ export type ProductAttribute = {
|
|
|
291
180
|
created_by: string;
|
|
292
181
|
updated_by: string;
|
|
293
182
|
};
|
|
294
|
-
export type ProductCategory = {
|
|
295
|
-
id: string;
|
|
296
|
-
name: string;
|
|
297
|
-
created_at: Date;
|
|
298
|
-
updated_at: Date;
|
|
299
|
-
origin_id: string | null;
|
|
300
|
-
created_by: string;
|
|
301
|
-
updated_by: string;
|
|
302
|
-
};
|
|
303
|
-
export type ProductColor = {
|
|
304
|
-
id: string;
|
|
305
|
-
product_id: string;
|
|
306
|
-
color_id: string;
|
|
307
|
-
multimedia_id: string | null;
|
|
308
|
-
origin_id: string | null;
|
|
309
|
-
created_at: Date;
|
|
310
|
-
updated_at: Date;
|
|
311
|
-
created_by: string;
|
|
312
|
-
updated_by: string;
|
|
313
|
-
};
|
|
314
183
|
export type ProductImage = {
|
|
315
184
|
id: string;
|
|
316
185
|
product_id: string;
|
|
@@ -322,47 +191,6 @@ export type ProductImage = {
|
|
|
322
191
|
created_by: string;
|
|
323
192
|
updated_by: string;
|
|
324
193
|
};
|
|
325
|
-
export type ProductPart = {
|
|
326
|
-
id: string;
|
|
327
|
-
name: string;
|
|
328
|
-
product_id: string;
|
|
329
|
-
origin_id: string | null;
|
|
330
|
-
created_at: Date;
|
|
331
|
-
updated_at: Date;
|
|
332
|
-
created_by: string;
|
|
333
|
-
updated_by: string;
|
|
334
|
-
};
|
|
335
|
-
export type ProductSubCategory = {
|
|
336
|
-
id: string;
|
|
337
|
-
name: string;
|
|
338
|
-
product_category_id: string;
|
|
339
|
-
created_at: Date;
|
|
340
|
-
updated_at: Date;
|
|
341
|
-
origin_id: string | null;
|
|
342
|
-
created_by: string;
|
|
343
|
-
updated_by: string;
|
|
344
|
-
external_id: string | null;
|
|
345
|
-
};
|
|
346
|
-
export type ProductUse = {
|
|
347
|
-
id: string;
|
|
348
|
-
name: string;
|
|
349
|
-
origin_id: string | null;
|
|
350
|
-
multimedia_id: string | null;
|
|
351
|
-
created_at: Date;
|
|
352
|
-
updated_at: Date;
|
|
353
|
-
created_by: string;
|
|
354
|
-
updated_by: string;
|
|
355
|
-
};
|
|
356
|
-
export type ProductUseAssoc = {
|
|
357
|
-
id: string;
|
|
358
|
-
product_use_id: string;
|
|
359
|
-
product_id: string;
|
|
360
|
-
origin_id: string | null;
|
|
361
|
-
created_at: Date;
|
|
362
|
-
updated_at: Date;
|
|
363
|
-
created_by: string;
|
|
364
|
-
updated_by: string;
|
|
365
|
-
};
|
|
366
194
|
export type UnitOfMeasure = {
|
|
367
195
|
id: string;
|
|
368
196
|
name: string;
|
|
@@ -405,26 +233,6 @@ export type PromotionAssoc = {
|
|
|
405
233
|
created_by: string;
|
|
406
234
|
updated_by: string;
|
|
407
235
|
};
|
|
408
|
-
export type SimilarProduct = {
|
|
409
|
-
id: string;
|
|
410
|
-
product_id: string;
|
|
411
|
-
similar_product_id: string;
|
|
412
|
-
origin_id: string | null;
|
|
413
|
-
created_at: Date;
|
|
414
|
-
updated_at: Date;
|
|
415
|
-
created_by: string;
|
|
416
|
-
updated_by: string;
|
|
417
|
-
};
|
|
418
|
-
export type TypeOfInventory = {
|
|
419
|
-
id: string;
|
|
420
|
-
name: string;
|
|
421
|
-
saft_code: string;
|
|
422
|
-
created_at: Date;
|
|
423
|
-
updated_at: Date;
|
|
424
|
-
origin_id: string | null;
|
|
425
|
-
created_by: string;
|
|
426
|
-
updated_by: string;
|
|
427
|
-
};
|
|
428
236
|
export type TypeOfLocation = {
|
|
429
237
|
id: string;
|
|
430
238
|
name: string;
|
|
@@ -457,15 +265,6 @@ export type VatTaxZone = {
|
|
|
457
265
|
country_id: string;
|
|
458
266
|
external_id: string | null;
|
|
459
267
|
};
|
|
460
|
-
export type ProductNamePreset = {
|
|
461
|
-
id: string;
|
|
462
|
-
name: string;
|
|
463
|
-
created_at: Date;
|
|
464
|
-
updated_at: Date;
|
|
465
|
-
origin_id: string | null;
|
|
466
|
-
created_by: string;
|
|
467
|
-
updated_by: string;
|
|
468
|
-
};
|
|
469
268
|
export type Counter = {
|
|
470
269
|
document_type: number;
|
|
471
270
|
year: number;
|
package/package.json
CHANGED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { Attribute, ProductCategory } from '../../../shared/entities';
|
|
3
|
-
export type Entity = Attribute;
|
|
4
|
-
export declare const Route = "attribute";
|
|
5
|
-
export declare const UpperName = "Attribute";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
export declare const AttributeDatatypeEnum: {
|
|
8
|
-
boolean: 'boolean';
|
|
9
|
-
decimal: 'decimal';
|
|
10
|
-
integer: 'integer';
|
|
11
|
-
text: 'text';
|
|
12
|
-
select: 'select';
|
|
13
|
-
};
|
|
14
|
-
export type IAttributeDatatype = (typeof AttributeDatatypeEnum)[keyof typeof AttributeDatatypeEnum];
|
|
15
|
-
export declare const attributeDatatypes: string[];
|
|
16
|
-
interface IFindDetailedResponse extends Entity {
|
|
17
|
-
product_category: ProductCategory;
|
|
18
|
-
}
|
|
19
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, 'product_category'>;
|
|
20
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, 'product_category'>;
|
|
21
|
-
export type IFindRequest = Record<string, unknown>;
|
|
22
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
23
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
24
|
-
}
|
|
25
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, 'product_category'>>;
|
|
26
|
-
export interface ICreateRequest {
|
|
27
|
-
name: string;
|
|
28
|
-
datatype: IAttributeDatatype;
|
|
29
|
-
is_mandatory: boolean;
|
|
30
|
-
product_category_id: string;
|
|
31
|
-
order: number;
|
|
32
|
-
}
|
|
33
|
-
export interface IUpdateRequest {
|
|
34
|
-
name?: string;
|
|
35
|
-
datatype?: IAttributeDatatype;
|
|
36
|
-
is_mandatory?: boolean;
|
|
37
|
-
product_category_id?: string;
|
|
38
|
-
order?: number;
|
|
39
|
-
}
|
|
40
|
-
export interface IRepository {
|
|
41
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
42
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
43
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
44
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
45
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
46
|
-
create(data: ICreateRequest): Promise<IFindResponse>;
|
|
47
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindResponse | null>;
|
|
48
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindResponse | null>;
|
|
49
|
-
}
|
|
50
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
51
|
-
export {};
|