@nomalism-com/types 1.3.43 → 1.3.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5918 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4917 -4903
- package/dist/main.d.ts +261 -261
- package/dist/modules/document/CAT/interfaces.d.ts +1 -1
- package/dist/modules/document/CAT/route.schema.d.ts +2 -2
- package/dist/modules/document/NPF/interface.d.ts +1 -1
- package/dist/modules/document/NPF/route.schema.d.ts +1 -1
- package/dist/modules/document/NRCL/interface.d.ts +4 -4
- package/dist/modules/document/NRCL/route.schema.d.ts +1 -1
- package/dist/modules/document/billOfLading/interfaces.d.ts +2 -2
- package/dist/modules/document/billOfLading/route.schema.d.ts +3 -2
- package/dist/modules/document/inventario/interface.d.ts +1 -1
- package/dist/modules/document/inventario/route.schema.d.ts +1 -1
- package/dist/modules/document/materialEntrance/interfaces.d.ts +15 -15
- package/dist/modules/document/materialEntrance/route.schema.d.ts +2 -2
- package/dist/modules/document/order/interfaces.d.ts +3 -3
- package/dist/modules/document/order/route.schema.d.ts +2 -2
- package/dist/modules/document/productionOrder/interfaces.d.ts +1 -1
- package/dist/modules/document/productionOrder/route.schema.d.ts +1 -1
- package/dist/modules/document/proforma/interfaces.d.ts +1 -1
- package/dist/modules/document/proforma/route.schema.d.ts +2 -2
- package/dist/modules/document/propostaFornecedor/interfaces.d.ts +1 -1
- package/dist/modules/document/propostaFornecedor/route.schema.d.ts +1 -1
- package/dist/modules/document/propostaSheets/interface.d.ts +7 -7
- package/dist/modules/document/propostaSheets/route.schema.d.ts +2 -2
- package/dist/modules/document/providerCreditNoteFromReturn/interfaces.d.ts +1 -1
- package/dist/modules/document/providerCreditNoteFromReturn/route.schema.d.ts +1 -1
- package/dist/modules/document/providerFinancialCreditNote/interfaces.d.ts +1 -1
- package/dist/modules/document/providerFinancialCreditNote/route.schema.d.ts +1 -1
- package/dist/modules/document/providerServiceInvoice/interfaces.d.ts +1 -1
- package/dist/modules/document/providerServiceInvoice/route.schema.d.ts +1 -1
- package/dist/modules/document/purchase/interfaces.d.ts +3 -3
- package/dist/modules/document/purchase/route.schema.d.ts +2 -2
- package/dist/modules/document/quebra/interfaces.d.ts +2 -2
- package/dist/modules/document/quebra/route.schema.d.ts +1 -1
- package/dist/modules/document/returnToProvider/interface.d.ts +2 -2
- package/dist/modules/document/returnToProvider/route.schema.d.ts +1 -1
- package/dist/modules/document/transformado/interfaces.d.ts +1 -1
- package/dist/modules/document/transformado/route.schema.d.ts +1 -1
- package/dist/modules/document/upfrontReturn/interfaces.d.ts +1 -1
- package/dist/modules/document/upfrontReturn/route.schema.d.ts +1 -1
- package/dist/modules/documentManagement/multimedia/interfaces.d.ts +3 -3
- package/dist/modules/documentManagement/multimedia/route.schema.d.ts +1 -1
- package/dist/modules/integration/emailLog/interfaces.d.ts +9 -9
- package/dist/modules/integration/emailLog/route.schema.d.ts +2 -2
- package/dist/modules/integration/emailTemplate/interfaces.d.ts +3 -3
- package/dist/modules/integration/emailTemplate/route.schema.d.ts +2 -2
- package/dist/modules/integration/emailTemplateAttachment/interfaces.d.ts +2 -2
- package/dist/modules/integration/emailTemplateAttachment/route.schema.d.ts +1 -1
- package/dist/modules/integration/emailVerification/interfaces.d.ts +2 -2
- package/dist/modules/integration/emailVerification/route.schema.d.ts +2 -2
- package/dist/modules/integration/googleFilePermission/interfaces.d.ts +2 -2
- package/dist/modules/integration/googleFilePermission/route.schema.d.ts +3 -3
- package/dist/modules/integration/googleSheets/interfaces.d.ts +9 -9
- package/dist/modules/integration/googleSheets/route.schema.d.ts +1 -1
- package/dist/modules/integration/observation/interfaces.d.ts +3 -3
- package/dist/modules/integration/observation/route.schema.d.ts +1 -1
- package/dist/modules/integration/observationType/interfaces.d.ts +3 -3
- package/dist/modules/integration/observationType/route.schema.d.ts +3 -3
- package/dist/modules/integration/patchNotes/interfaces.d.ts +2 -2
- package/dist/modules/integration/projectInfo/interfaces.d.ts +7 -7
- package/dist/modules/integration/projectInfo/route.schema.d.ts +1 -1
- package/dist/modules/integration/settings/interfaces.d.ts +2 -2
- package/dist/modules/integration/settings/route.schema.d.ts +1 -1
- package/dist/modules/llm/llm/interfaces.d.ts +1 -1
- package/dist/modules/llm/llm/route.schema.d.ts +1 -1
- package/dist/modules/print/npc/interfaces.d.ts +3 -3
- package/dist/modules/print/npc/route.schema.d.ts +1 -1
- package/dist/modules/print/printer/interfaces.d.ts +7 -7
- package/dist/modules/print/printer/route.schema.d.ts +1 -1
- package/dist/modules/print/schedulePrintJob/interfaces.d.ts +3 -3
- package/dist/modules/print/schedulePrintJob/route.schema.d.ts +2 -2
- package/dist/modules/sms/allowedDevice/interfaces.d.ts +21 -0
- package/dist/modules/sms/allowedDevice/route.schema.d.ts +3 -0
- package/dist/modules/sms/smsSender/interfaces.d.ts +7 -3
- package/dist/modules/sms/smsTemplate/interfaces.d.ts +3 -5
- package/dist/modules/sms/smsTemplate/route.schema.d.ts +1 -3
- package/dist/modules/stock/accountCode/interface.d.ts +1 -1
- package/dist/modules/stock/accountCode/route.schema.d.ts +1 -1
- package/dist/modules/stock/chat/interfaces.d.ts +5 -5
- package/dist/modules/stock/chat/route.schema.d.ts +2 -2
- package/dist/modules/stock/chatRapidMessage/interface.d.ts +2 -2
- package/dist/modules/stock/chatRapidMessage/route.schema.d.ts +1 -1
- package/dist/modules/stock/conferirEncomenda/interface.d.ts +2 -3
- package/dist/modules/stock/dashboard/interface.d.ts +1 -1
- package/dist/modules/stock/dashboard/route.schema.d.ts +1 -1
- package/dist/modules/stock/file/interface.d.ts +2 -2
- package/dist/modules/stock/file/route.schema.d.ts +2 -2
- package/dist/modules/stock/gmails/interface.d.ts +2 -2
- package/dist/modules/stock/googleCalendar/interface.d.ts +1 -1
- package/dist/modules/stock/googleCalendar/route.schema.d.ts +2 -2
- package/dist/modules/stock/googleSheetPool/interface.d.ts +2 -2
- package/dist/modules/stock/location/interface.d.ts +6 -6
- package/dist/modules/stock/location/route.schema.d.ts +1 -1
- package/dist/modules/stock/mobilePrint/interface.d.ts +1 -1
- package/dist/modules/stock/mobilePrint/route.schema.d.ts +1 -1
- package/dist/modules/stock/prison/interface.d.ts +2 -2
- package/dist/modules/stock/prison/route.schema.d.ts +2 -2
- package/dist/modules/stock/productGoogleSheets/interface.d.ts +18 -18
- package/dist/modules/stock/productGoogleSheets/route.schema.d.ts +2 -2
- package/dist/modules/stock/productImage/interface.d.ts +8 -8
- package/dist/modules/stock/productImage/route.schema.d.ts +1 -1
- package/dist/modules/stock/productLocation/interface.d.ts +1 -1
- package/dist/modules/stock/promotion/interface.d.ts +6 -6
- package/dist/modules/stock/promotion/route.schema.d.ts +1 -1
- package/dist/modules/stock/promotionAssoc/interface.d.ts +6 -6
- package/dist/modules/stock/promotionAssoc/route.schema.d.ts +1 -1
- package/dist/modules/stock/queryList/interfaces.d.ts +4 -4
- package/dist/modules/stock/queryList/route.schema.d.ts +3 -3
- package/dist/modules/stock/queryParameter/interfaces.d.ts +12 -12
- package/dist/modules/stock/queryParameter/route.schema.d.ts +1 -1
- package/dist/modules/stock/recurrentTasks/interface.d.ts +1 -1
- package/dist/modules/stock/returnReason/interfaces.d.ts +2 -2
- package/dist/modules/stock/returnReason/route.schema.d.ts +1 -1
- package/dist/modules/stock/savedEmPicking/interfaces.d.ts +4 -4
- package/dist/modules/stock/savedEmPicking/route.schema.d.ts +2 -2
- package/dist/modules/stock/savedProviderProposal/interfaces.d.ts +2 -2
- package/dist/modules/stock/savedProviderProposal/route.schema.d.ts +1 -1
- package/dist/modules/stock/stockMovement/interface.d.ts +8 -8
- package/dist/modules/stock/stockMovement/route.schema.d.ts +1 -1
- package/dist/modules/stock/tag/interface.d.ts +7 -7
- package/dist/modules/stock/tag/route.schema.d.ts +1 -1
- package/dist/modules/stock/task/interface.d.ts +13 -13
- package/dist/modules/stock/task/route.schema.d.ts +1 -1
- package/dist/modules/stock/taskMessage/interface.d.ts +4 -4
- package/dist/modules/stock/taskMessage/route.schema.d.ts +1 -1
- package/dist/modules/stock/taskRead/interface.d.ts +4 -4
- package/dist/modules/stock/taskRead/route.schema.d.ts +1 -1
- package/dist/modules/stock/typeOfLocation/interface.d.ts +6 -6
- package/dist/modules/stock/typeOfLocation/route.schema.d.ts +1 -1
- package/dist/modules/stock/unitOfMeasure/interface.d.ts +6 -6
- package/dist/modules/stock/unitOfMeasure/route.schema.d.ts +1 -1
- package/dist/modules/stock/vatTax/interface.d.ts +6 -6
- package/dist/modules/stock/vatTax/route.schema.d.ts +1 -1
- package/dist/modules/stock/vatTaxZone/interface.d.ts +6 -6
- package/dist/modules/stock/vatTaxZone/route.schema.d.ts +1 -1
- package/dist/modules/stock/vatValidation/interfaces.d.ts +1 -1
- package/dist/modules/stock/vatValidation/route.schema.d.ts +1 -1
- package/dist/modules/stock/workflow/interfaces.d.ts +5 -5
- package/dist/modules/stock/workflow/route.schema.d.ts +1 -1
- package/dist/modules/supply/currentAccount/interface.d.ts +14 -14
- package/dist/modules/supply/currentAccount/route.schema.d.ts +2 -2
- package/dist/modules/supply/documentHeader/interfaces.d.ts +10 -10
- package/dist/modules/supply/documentHeader/route.schema.d.ts +3 -3
- package/dist/modules/supply/documentHeaderHistory/interfaces.d.ts +3 -3
- package/dist/modules/supply/documentHeaderSubscriber/interface.d.ts +2 -2
- package/dist/modules/supply/documentHeaderSubscriber/route.schema.d.ts +1 -1
- package/dist/modules/supply/documentHeaderSurvey/interfaces.d.ts +5 -5
- package/dist/modules/supply/documentHeaderSurvey/route.schema.d.ts +2 -2
- package/dist/modules/supply/documentLine/interfaces.d.ts +12 -12
- package/dist/modules/supply/documentLine/route.schema.d.ts +2 -2
- package/dist/modules/supply/documentLineAssoc/interfaces.d.ts +4 -4
- package/dist/modules/supply/documentLineMT/interface.d.ts +2 -2
- package/dist/modules/supply/documentLineMT/route.schema.d.ts +1 -1
- package/dist/modules/supply/documentLineNote/interfaces.d.ts +10 -10
- package/dist/modules/supply/documentLineNote/route.schema.d.ts +1 -1
- package/dist/modules/supply/documentLineRM/interface.d.ts +2 -2
- package/dist/modules/supply/documentLineRM/route.schema.d.ts +1 -1
- package/dist/modules/supply/documentSet/interface.d.ts +2 -2
- package/dist/modules/supply/documentSet/route.schema.d.ts +1 -1
- package/dist/modules/supply/documentType/interfaces.d.ts +66 -66
- package/dist/modules/supply/documentType/route.schema.d.ts +1 -1
- package/dist/modules/supply/externalDocumentHeader/interface.d.ts +3 -3
- package/dist/modules/supply/externalDocumentHeader/route.schema.d.ts +1 -1
- package/dist/modules/supply/externalDocumentType/interface.d.ts +2 -2
- package/dist/modules/supply/orderManagement/interface.d.ts +1 -1
- package/dist/modules/supply/payment/interface.d.ts +11 -11
- package/dist/modules/supply/payment/route.schema.d.ts +1 -1
- package/dist/modules/supply/paymentBatch/interface.d.ts +3 -3
- package/dist/modules/supply/paymentBatch/route.schema.d.ts +2 -2
- package/dist/modules/supply/preSale/interface.d.ts +4 -4
- package/dist/modules/supply/preSale/route.schema.d.ts +1 -1
- package/dist/modules/supply/preSaleProduct/interface.d.ts +2 -2
- package/dist/modules/supply/preSaleProduct/route.schema.d.ts +1 -1
- package/dist/modules/supply/schedule/interface.d.ts +8 -8
- package/dist/modules/supply/schedule/route.schema.d.ts +1 -1
- package/dist/modules/supply/startDocumentHeaderLastUpdate/interface.d.ts +2 -2
- package/dist/modules/tickets/channel/interfaces.d.ts +3 -3
- package/dist/modules/tickets/channel/route.schema.d.ts +1 -1
- package/dist/modules/tickets/clt/interfaces.d.ts +3 -3
- package/dist/modules/tickets/clt/route.schema.d.ts +1 -1
- package/dist/modules/tickets/language/interfaces.d.ts +3 -3
- package/dist/modules/tickets/language/route.schema.d.ts +1 -1
- package/dist/modules/tickets/tickets/interfaces.d.ts +3 -3
- package/dist/modules/tickets/tickets/route.schema.d.ts +1 -1
- package/dist/modules/ui/portal/interface.d.ts +4 -4
- package/dist/modules/ui/portal/route.schema.d.ts +1 -1
- package/dist/modules/ui/sideMenu/interface.d.ts +2 -2
- package/dist/modules/ui/sideMenu/route.schema.d.ts +1 -1
- package/dist/modules/ui/sidemenuHighlight/interface.d.ts +3 -3
- package/dist/modules/ui/sidemenuHighlight/route.schema.d.ts +1 -1
- package/dist/modules/user/bankData/interface.d.ts +6 -6
- package/dist/modules/user/bankData/route.schema.d.ts +1 -1
- package/dist/modules/user/chatSubscribers/interfaces.d.ts +6 -6
- package/dist/modules/user/chatSubscribers/route.schema.d.ts +2 -2
- package/dist/modules/user/clientType/interface.d.ts +5 -5
- package/dist/modules/user/clientType/route.schema.d.ts +1 -1
- package/dist/modules/user/clients/interface.d.ts +9 -13
- package/dist/modules/user/clients/route.schema.d.ts +1 -1
- package/dist/modules/user/commissioner/interface.d.ts +7 -7
- package/dist/modules/user/commissioner/route.schema.d.ts +1 -1
- package/dist/modules/user/country/interface.d.ts +5 -5
- package/dist/modules/user/country/route.schema.d.ts +1 -1
- package/dist/modules/user/deliveryMethods/interfaces.d.ts +2 -2
- package/dist/modules/user/deliveryMethods/route.schema.d.ts +1 -1
- package/dist/modules/user/favorites/interfaces.d.ts +2 -2
- package/dist/modules/user/favorites/route.schema.d.ts +3 -3
- package/dist/modules/user/language/interface.d.ts +5 -5
- package/dist/modules/user/language/route.schema.d.ts +1 -1
- package/dist/modules/user/maturityDates/interfaces.d.ts +2 -2
- package/dist/modules/user/maturityDates/route.schema.d.ts +1 -1
- package/dist/modules/user/password/interfaces.d.ts +1 -1
- package/dist/modules/user/password/route.schema.d.ts +1 -1
- package/dist/modules/user/paymentMethods/interfaces.d.ts +16 -16
- package/dist/modules/user/paymentMethods/route.schema.d.ts +1 -1
- package/dist/modules/user/persona/interface.d.ts +3 -3
- package/dist/modules/user/persona/route.schema.d.ts +1 -1
- package/dist/modules/user/providerType/interface.d.ts +5 -5
- package/dist/modules/user/providerType/route.schema.d.ts +1 -1
- package/dist/modules/user/providers/interface.d.ts +10 -12
- package/dist/modules/user/providers/route.schema.d.ts +3 -2
- package/dist/modules/user/purchaseConditions/interface.d.ts +6 -9
- package/dist/modules/user/purchaseConditions/route.schema.d.ts +1 -1
- package/dist/modules/user/reasonForExemption/interface.d.ts +8 -8
- package/dist/modules/user/reasonForExemption/route.schema.d.ts +1 -1
- package/dist/modules/user/refreshToken/interface.d.ts +1 -1
- package/dist/modules/user/refreshToken/route.schema.d.ts +1 -1
- package/dist/modules/user/segmentsArea/interface.d.ts +5 -5
- package/dist/modules/user/segmentsArea/route.schema.d.ts +1 -1
- package/dist/modules/user/sessions/interface.d.ts +1 -1
- package/dist/modules/user/sessions/route.schema.d.ts +1 -1
- package/dist/modules/user/shippings/interface.d.ts +6 -6
- package/dist/modules/user/shippings/route.schema.d.ts +1 -1
- package/dist/modules/user/storeOperator/interface.d.ts +6 -6
- package/dist/modules/user/storeOperator/route.schema.d.ts +1 -1
- package/dist/modules/user/swift/interface.d.ts +5 -5
- package/dist/modules/user/swift/route.schema.d.ts +1 -1
- package/dist/modules/user/systemModule/interface.d.ts +2 -2
- package/dist/modules/user/systemModule/route.schema.d.ts +1 -1
- package/dist/modules/user/tenant/interface.d.ts +2 -2
- package/dist/modules/user/tenant/route.schema.d.ts +1 -1
- package/dist/modules/user/theme/interfaces.d.ts +2 -2
- package/dist/modules/user/theme/route.schema.d.ts +1 -1
- package/dist/modules/user/timeSheet/interfaces.d.ts +5 -5
- package/dist/modules/user/timeSheet/route.schema.d.ts +1 -1
- package/dist/modules/user/userPositions/interface.d.ts +5 -5
- package/dist/modules/user/userPositions/route.schema.d.ts +1 -1
- package/dist/modules/user/userTokens/interface.d.ts +3 -3
- package/dist/modules/user/userTokens/route.schema.d.ts +1 -1
- package/dist/modules/user/users/interface.d.ts +10 -10
- package/dist/modules/user/users/route.schema.d.ts +1 -1
- package/dist/modules/user/vehicles/interfaces.d.ts +3 -3
- package/dist/modules/user/vehicles/route.schema.d.ts +1 -1
- package/dist/modules/view/errorLog/interfaces.d.ts +6 -6
- package/dist/modules/view/errorLog/route.schema.d.ts +1 -1
- package/dist/modules/view/webSocket/interfaces.d.ts +23 -23
- package/dist/shared/entities/integration.d.ts +1 -1
- package/dist/shared/entities/sms.d.ts +17 -1
- package/dist/shared/entities/stock.d.ts +25 -25
- package/dist/shared/entities/user.d.ts +4 -20
- package/dist/shared/interface.d.ts +42 -42
- package/dist/shared/messages.d.ts +1 -1
- package/package.json +27 -12
- package/dist/modules/user/zipCode/interfaces.d.ts +0 -21
- package/dist/modules/user/zipCode/route.schema.d.ts +0 -3
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ProviderType } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = ProviderType;
|
|
4
4
|
export declare const Route = "provider_type";
|
|
5
5
|
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse,
|
|
6
|
+
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
7
|
export type IFindRequest = Record<string, unknown>;
|
|
8
|
-
export type IFindResponse = Omit<IFindDetailedResponse,
|
|
8
|
+
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
9
9
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
10
10
|
}
|
|
11
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse,
|
|
11
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
12
12
|
export interface ICreateRequest {
|
|
13
13
|
name: string;
|
|
14
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import type { DocumentHeader } from "../../../shared/entities/stock";
|
|
2
|
+
import { Country, DeliveryMethods, Language, MaturityDates, PaymentMethods, Persona, Providers, ProviderType, ReasonForExemption, Users, Vehicles } from "../../../shared/entities/user";
|
|
3
|
+
import * as IShared from "../../../shared/interface";
|
|
4
4
|
export type Entity = Providers;
|
|
5
5
|
export declare const Route = "provider";
|
|
6
6
|
interface IMainPersona extends Persona {
|
|
@@ -19,18 +19,16 @@ interface IFindDetailedResponse extends Entity {
|
|
|
19
19
|
default_delivery_method: DeliveryMethods | null;
|
|
20
20
|
default_vehicle: Vehicles | null;
|
|
21
21
|
}
|
|
22
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse,
|
|
23
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse,
|
|
22
|
+
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
23
|
+
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "user" | "main_persona" | "country" | "language" | "support_language" | "provider_type" | "default_payment_method" | "default_maturity_date" | "default_delivery_method" | "default_vehicle">;
|
|
24
24
|
export interface IFindByQueryRequest {
|
|
25
25
|
number?: number[];
|
|
26
26
|
id?: string[];
|
|
27
27
|
}
|
|
28
|
-
export
|
|
29
|
-
}
|
|
30
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
28
|
+
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
31
29
|
export type IFindPaginatedRequest = IShared.IPaginationRequest;
|
|
32
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse,
|
|
33
|
-
export type ICreateMainPersona = Pick<Persona,
|
|
30
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
31
|
+
export type ICreateMainPersona = Pick<Persona, "nif" | "name" | "email" | "telephone">;
|
|
34
32
|
export interface ICreateRequest {
|
|
35
33
|
user_id?: string;
|
|
36
34
|
manufacturer?: boolean;
|
|
@@ -69,7 +67,7 @@ export interface IUpdateRequest {
|
|
|
69
67
|
export interface IFindByNumberRequest {
|
|
70
68
|
number: number;
|
|
71
69
|
}
|
|
72
|
-
export interface IFindByNumberResponse extends Pick<DocumentHeader,
|
|
70
|
+
export interface IFindByNumberResponse extends Pick<DocumentHeader, "owner_id" | "owner_name" | "billing_persona_id" | "billing_persona_name" | "billing_persona_nif" | "billing_persona_email" | "billing_persona_telephone" | "billing_persona_address_street" | "billing_persona_address_postal_code" | "billing_persona_address_locality" | "billing_persona_address_country_id" | "billing_persona_address_country_name" | "reason_for_exemption_id" | "reason_for_exemption" | "delivery_persona_id" | "delivery_persona_name" | "delivery_persona_email" | "delivery_persona_telephone" | "delivery_persona_address_street" | "delivery_persona_address_postal_code" | "delivery_persona_address_locality" | "delivery_persona_address_country_id" | "delivery_persona_address_country_name" | "delivery_method_id" | "delivery_method" | "vehicle_id" | "vehicle" | "payment_method_id" | "payment_method" | "maturity_date_id" | "maturity_date" | "maturity_date_days"> {
|
|
73
71
|
default_discount: number;
|
|
74
72
|
}
|
|
75
73
|
export interface IRepository {
|
|
@@ -78,7 +76,7 @@ export interface IRepository {
|
|
|
78
76
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
79
77
|
findMinifiedManufacturer(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
80
78
|
findByQuery(params: IFindByQueryRequest): Promise<IFindResponse[]>;
|
|
81
|
-
find(
|
|
79
|
+
find(): Promise<IFindResponse[]>;
|
|
82
80
|
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
83
81
|
create(data: ICreateRequest): Promise<IFindResponse>;
|
|
84
82
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindResponse | null>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const createBody: joi.ObjectSchema<any>;
|
|
3
3
|
export declare const updateBody: joi.ObjectSchema<any>;
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const findByQueryQuery: joi.ObjectSchema<any>;
|
|
5
|
+
export declare const findByNumberQuery: joi.ObjectSchema<any>;
|
|
5
6
|
export declare const findWithPaginationQuery: joi.ObjectSchema<any>;
|
|
6
7
|
export declare const findByNumberParams: joi.ObjectSchema<any>;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { PurchaseConditions } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = PurchaseConditions;
|
|
4
4
|
export declare const Route = "purchase_conditions";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, 'product_category'>;
|
|
8
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
5
|
+
export type IFindByIdResponse = Omit<Entity, "product_category">;
|
|
6
|
+
export type IFindByOwnerIdResponse = Omit<Entity, "">;
|
|
9
7
|
export type IFindRequest = Record<string, unknown>;
|
|
10
|
-
export type IFindResponse = Omit<
|
|
8
|
+
export type IFindResponse = Omit<Entity, "">;
|
|
11
9
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
12
10
|
}
|
|
13
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<
|
|
11
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<Entity, "">>;
|
|
14
12
|
export interface ICreateRequest {
|
|
15
13
|
provider_id: string;
|
|
16
14
|
discount: string;
|
|
@@ -32,4 +30,3 @@ export interface IRepository {
|
|
|
32
30
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
33
31
|
}
|
|
34
32
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
35
|
-
export {};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ReasonForExemption } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = ReasonForExemption;
|
|
4
4
|
export declare const Route = "reason_for_exemption";
|
|
5
5
|
export declare const ReasonForExemptionTypeEnum: {
|
|
6
|
-
product:
|
|
7
|
-
client:
|
|
8
|
-
tenant:
|
|
6
|
+
product: "product";
|
|
7
|
+
client: "client";
|
|
8
|
+
tenant: "tenant";
|
|
9
9
|
};
|
|
10
10
|
export type IReasonForExemptionType = (typeof ReasonForExemptionTypeEnum)[keyof typeof ReasonForExemptionTypeEnum];
|
|
11
11
|
export declare const reasonForExemptionTypes: string[];
|
|
12
12
|
type IFindDetailedResponse = Entity;
|
|
13
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse,
|
|
13
|
+
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
14
14
|
export type IFindRequest = Record<string, unknown>;
|
|
15
|
-
export type IFindResponse = Omit<IFindDetailedResponse,
|
|
15
|
+
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
16
16
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
17
17
|
}
|
|
18
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse,
|
|
18
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
19
19
|
export interface ICreateRequest {
|
|
20
20
|
name: string;
|
|
21
21
|
type: IReasonForExemptionType;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const refreshTokenBody: joi.ObjectSchema<any>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { SegmentsArea } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = SegmentsArea;
|
|
4
4
|
export declare const Route = "segments_area";
|
|
5
5
|
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse,
|
|
6
|
+
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
7
|
export type IFindRequest = Record<string, unknown>;
|
|
8
|
-
export type IFindResponse = Omit<IFindDetailedResponse,
|
|
8
|
+
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
9
9
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
10
10
|
}
|
|
11
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse,
|
|
11
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
12
12
|
export interface ICreateRequest {
|
|
13
13
|
type: string;
|
|
14
14
|
name: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const sessionBody: joi.ObjectSchema<any>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Shippings } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Shippings;
|
|
4
4
|
export declare const Route = "shippings";
|
|
5
5
|
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse,
|
|
7
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse,
|
|
6
|
+
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
|
+
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "">;
|
|
8
8
|
export type IFindRequest = Record<string, unknown>;
|
|
9
|
-
export type IFindResponse = Omit<IFindDetailedResponse,
|
|
9
|
+
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
10
10
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
11
11
|
}
|
|
12
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse,
|
|
12
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
13
13
|
export interface ICreateRequest {
|
|
14
14
|
provider_id: string;
|
|
15
15
|
type: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
1
|
+
import type { Persona, StoreOperator, Users } from "../../../shared/entities/user";
|
|
2
|
+
import type * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = StoreOperator;
|
|
4
4
|
export declare const Route = "store_operator";
|
|
5
|
-
export type IFindPaginatedRequest = IShared.IPaginationRequest & Pick<Entity,
|
|
6
|
-
export interface IFindResponse extends Pick<Entity,
|
|
7
|
-
user: Pick<Users,
|
|
8
|
-
main_persona: Pick<Persona,
|
|
5
|
+
export type IFindPaginatedRequest = IShared.IPaginationRequest & Pick<Entity, "inactive">;
|
|
6
|
+
export interface IFindResponse extends Pick<Entity, "id" | "number" | "pin" | "inactive" | "superuser" | "default_theme"> {
|
|
7
|
+
user: Pick<Users, "id">;
|
|
8
|
+
main_persona: Pick<Persona, "id" | "name" | "email">;
|
|
9
9
|
sidemenu_highlights: string[];
|
|
10
10
|
}
|
|
11
11
|
export interface ICreateRequest {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Swift } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Swift;
|
|
4
4
|
export declare const Route = "swift";
|
|
5
5
|
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse,
|
|
6
|
+
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
7
|
export type IFindRequest = Record<string, unknown>;
|
|
8
|
-
export type IFindResponse = Omit<IFindDetailedResponse,
|
|
8
|
+
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
9
9
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
10
10
|
}
|
|
11
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse,
|
|
11
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
12
12
|
export interface ICreateRequest {
|
|
13
13
|
bank: string;
|
|
14
14
|
city: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
1
|
+
import type { SystemModule } from "../../../shared/entities/user";
|
|
2
|
+
import type * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = SystemModule;
|
|
4
4
|
export declare const Route = "system_module";
|
|
5
5
|
export declare enum SystemModuleEnum {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Tenant } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Tenant;
|
|
4
4
|
export declare const Route = "tenant";
|
|
5
5
|
export interface ICreateRequest {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Theme } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Theme;
|
|
4
4
|
export declare const Route = "theme";
|
|
5
5
|
export interface ISessionStorageColor {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const createOrUpdateBody: joi.ObjectSchema<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { TimeSheet } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = TimeSheet;
|
|
4
4
|
export declare const Route = "time_sheet";
|
|
5
5
|
export declare const ITimeSheetRecordTypeEnum: {
|
|
@@ -37,8 +37,8 @@ export interface IDailySummaryResponse {
|
|
|
37
37
|
balance: number;
|
|
38
38
|
record_count: number;
|
|
39
39
|
}
|
|
40
|
-
export type ICreateRequest = Omit<Entity,
|
|
41
|
-
export type IUpdateRequest = Partial<Pick<Entity,
|
|
40
|
+
export type ICreateRequest = Omit<Entity, "id" | "created_at" | "updated_at">;
|
|
41
|
+
export type IUpdateRequest = Partial<Pick<Entity, "type" | "time" | "minutes" | "note" | "updated_by" | "updated_at">>;
|
|
42
42
|
export interface IRepository {
|
|
43
43
|
find(filters?: IFindRequest): Promise<Entity[]>;
|
|
44
44
|
findById(id: string): Promise<Entity | null>;
|
|
@@ -49,4 +49,4 @@ export interface IRepository {
|
|
|
49
49
|
getDailySummary(filters: IDailySummaryRequest): Promise<IDailySummaryResponse[]>;
|
|
50
50
|
}
|
|
51
51
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
52
|
-
export type IApi = Omit<IRepository,
|
|
52
|
+
export type IApi = Omit<IRepository, "findById">;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { UserPositions } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = UserPositions;
|
|
4
4
|
export declare const Route = "user_positions";
|
|
5
5
|
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse,
|
|
6
|
+
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
7
|
export type IFindRequest = Record<string, unknown>;
|
|
8
|
-
export type IFindResponse = Omit<IFindDetailedResponse,
|
|
8
|
+
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
9
9
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
10
10
|
}
|
|
11
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse,
|
|
11
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
12
12
|
export interface ICreateRequest {
|
|
13
13
|
name: string;
|
|
14
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { UserTokens } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = UserTokens;
|
|
4
4
|
export declare const Route = "user_token";
|
|
5
5
|
export type IFindRequest = Record<string, unknown>;
|
|
@@ -24,5 +24,5 @@ export interface IRepository {
|
|
|
24
24
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
25
25
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
26
26
|
}
|
|
27
|
-
export type IApi = Omit<IRepository,
|
|
27
|
+
export type IApi = Omit<IRepository, "generate" | "findByToken" | "update">;
|
|
28
28
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import type { SystemModuleEnum } from
|
|
1
|
+
import { Clients, ClientType, Commissioner, Country, DeliveryMethods, Language, MaturityDates, PaymentMethods, Persona, Providers, ProviderType, ReasonForExemption, SegmentsArea, StoreOperator, Theme, UserPositions, Users, Vehicles } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
|
+
import type { SystemModuleEnum } from "../systemModule/interface";
|
|
4
4
|
export type Entity = Users;
|
|
5
|
-
export type EntityWithoutPassword = Omit<Users,
|
|
5
|
+
export type EntityWithoutPassword = Omit<Users, "password">;
|
|
6
6
|
export declare const Route = "users";
|
|
7
7
|
interface IMainPersona extends Persona {
|
|
8
8
|
country: Country | null;
|
|
9
9
|
reason_for_exemption: ReasonForExemption | null;
|
|
10
10
|
}
|
|
11
|
-
interface IStoreOperator extends Pick<StoreOperator,
|
|
12
|
-
main_persona: Pick<Persona,
|
|
13
|
-
theme: Pick<Theme,
|
|
11
|
+
interface IStoreOperator extends Pick<StoreOperator, "id" | "superuser"> {
|
|
12
|
+
main_persona: Pick<Persona, "name" | "email">;
|
|
13
|
+
theme: Pick<Theme, "colors"> | null;
|
|
14
14
|
system_modules: SystemModuleEnum[];
|
|
15
15
|
}
|
|
16
|
-
export interface IFindByEmailResponse extends Pick<Entity,
|
|
16
|
+
export interface IFindByEmailResponse extends Pick<Entity, "id"> {
|
|
17
17
|
store_operator: IStoreOperator;
|
|
18
18
|
}
|
|
19
19
|
export interface IFindByIdResponse extends EntityWithoutPassword {
|
|
@@ -39,7 +39,7 @@ export interface IFindByIdResponse extends EntityWithoutPassword {
|
|
|
39
39
|
default_vehicle: Vehicles | null;
|
|
40
40
|
main_persona: IMainPersona;
|
|
41
41
|
}) | null;
|
|
42
|
-
store_operator: (Omit<StoreOperator,
|
|
42
|
+
store_operator: (Omit<StoreOperator, "pin"> & {
|
|
43
43
|
user_position: UserPositions | null;
|
|
44
44
|
support_language: Language | null;
|
|
45
45
|
main_persona: IMainPersona;
|
|
@@ -108,5 +108,5 @@ export interface IRepository {
|
|
|
108
108
|
findFromClientOrProviderId(data: IFindFromClientOrProviderRequest): Promise<IFindFromClientOrProviderResponse[]>;
|
|
109
109
|
}
|
|
110
110
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
111
|
-
export type IApi = Omit<IRepository,
|
|
111
|
+
export type IApi = Omit<IRepository, "resetPassword" | "removeAccess">;
|
|
112
112
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Vehicles } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Vehicles;
|
|
4
4
|
export declare const Route = "vehicles";
|
|
5
5
|
export interface ICreateRequest {
|
|
@@ -20,4 +20,4 @@ export interface IRepository {
|
|
|
20
20
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
21
21
|
}
|
|
22
22
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
23
|
-
export type IApi = Omit<IRepository,
|
|
23
|
+
export type IApi = Omit<IRepository, "findById">;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const Route = "error_log";
|
|
2
2
|
export declare const IErrorTypeEnum: {
|
|
3
|
-
prisma:
|
|
4
|
-
unhandled:
|
|
5
|
-
axios:
|
|
6
|
-
webapp:
|
|
7
|
-
kafka:
|
|
8
|
-
npc:
|
|
3
|
+
prisma: "prisma";
|
|
4
|
+
unhandled: "unhandled";
|
|
5
|
+
axios: "axios";
|
|
6
|
+
webapp: "webapp";
|
|
7
|
+
kafka: "kafka";
|
|
8
|
+
npc: "npc";
|
|
9
9
|
};
|
|
10
10
|
export type IErrorType = (typeof IErrorTypeEnum)[keyof typeof IErrorTypeEnum];
|
|
11
11
|
export declare const errorTypes: string[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const createBody: joi.ObjectSchema<any>;
|