@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,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as IShared from
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { PreSale, PreSaleProduct } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
|
+
import * as DocumentLine from "../documentLine/interfaces";
|
|
4
|
+
import { IProductState } from "./../../stock/productGoogleSheets/interface";
|
|
5
5
|
export type Entity = PreSale;
|
|
6
6
|
export declare const Route = "pre_sale";
|
|
7
7
|
export type IFindRequest = Record<string, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { PreSaleProduct } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = PreSaleProduct;
|
|
4
4
|
export declare const Route = "pre_sale_product";
|
|
5
5
|
export type IFindRequest = Record<string, unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const findQuery: joi.ObjectSchema<any>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as IShared from
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
2
|
export declare const Route = "schedule";
|
|
3
3
|
export declare const ScheduleTypeEnum: {
|
|
4
|
-
executeEncomendasStock:
|
|
5
|
-
executeEncomendasVA:
|
|
6
|
-
executeAvisoTotal:
|
|
7
|
-
executeAvisoParcial:
|
|
8
|
-
executeReAvisoTotal:
|
|
9
|
-
sendErroredEmailsSummary:
|
|
10
|
-
retryErroredEmails:
|
|
4
|
+
executeEncomendasStock: "executeEncomendasStock";
|
|
5
|
+
executeEncomendasVA: "executeEncomendasVA";
|
|
6
|
+
executeAvisoTotal: "executeAvisoTotal";
|
|
7
|
+
executeAvisoParcial: "executeAvisoParcial";
|
|
8
|
+
executeReAvisoTotal: "executeReAvisoTotal";
|
|
9
|
+
sendErroredEmailsSummary: "sendErroredEmailsSummary";
|
|
10
|
+
retryErroredEmails: "retryErroredEmails";
|
|
11
11
|
};
|
|
12
12
|
export type IScheduleType = (typeof ScheduleTypeEnum)[keyof typeof ScheduleTypeEnum];
|
|
13
13
|
export declare const scheduleTypes: string[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const runImmediately: joi.ObjectSchema<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { StartDocumentHeaderLastUpdateVirtuals } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = StartDocumentHeaderLastUpdateVirtuals;
|
|
4
4
|
export declare const Route = "start_document_header_last_update";
|
|
5
5
|
export interface IRepository {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Channel } from
|
|
2
|
-
import * as IShared from
|
|
1
|
+
import { Channel } from "../../../shared/entities/tickets";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Channel;
|
|
4
4
|
export declare const Route = "channel";
|
|
5
5
|
export interface IChannel {
|
|
@@ -14,7 +14,7 @@ export interface IChannel {
|
|
|
14
14
|
export interface IFindMinifiedRequest {
|
|
15
15
|
value?: string;
|
|
16
16
|
}
|
|
17
|
-
export type ICreateRequest = Omit<Entity,
|
|
17
|
+
export type ICreateRequest = Omit<Entity, "id">;
|
|
18
18
|
export type IUpdateRequest = ICreateRequest;
|
|
19
19
|
export interface IRepository {
|
|
20
20
|
create(data: ICreateRequest): Promise<Entity>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CLT } from
|
|
2
|
-
import * as IShared from
|
|
1
|
+
import { CLT } from "../../../shared/entities/tickets";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = CLT;
|
|
4
4
|
export declare const Route = "clt";
|
|
5
|
-
export type ICreateRequest = Omit<Entity,
|
|
5
|
+
export type ICreateRequest = Omit<Entity, "id">;
|
|
6
6
|
export type IUpdateRequest = ICreateRequest;
|
|
7
7
|
export interface IFindMinifiedRequest {
|
|
8
8
|
value?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Language } from
|
|
2
|
-
import * as IShared from
|
|
1
|
+
import { Language } from "../../../shared/entities/tickets";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Language;
|
|
4
4
|
export declare const Route = "tickets_language";
|
|
5
|
-
export type ICreateRequest = Omit<Entity,
|
|
5
|
+
export type ICreateRequest = Omit<Entity, "id">;
|
|
6
6
|
export type IUpdateRequest = ICreateRequest;
|
|
7
7
|
export interface IFindMinifiedRequest {
|
|
8
8
|
value?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Language, Tickets } from "../../../shared/entities/tickets";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
|
+
import { IChannel } from "../channel/interfaces";
|
|
4
4
|
export type Entity = Tickets;
|
|
5
5
|
export declare const Route = "tickets";
|
|
6
6
|
export interface ILastTicketCalledToday {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as IShared from
|
|
2
|
-
import type { IChatBalloon } from
|
|
3
|
-
import type { IDocumentTypeUserType } from
|
|
4
|
-
import type * as ChatSubscriber from
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
import type { IChatBalloon } from "../../stock/chat/interfaces";
|
|
3
|
+
import type { IDocumentTypeUserType } from "../../supply/documentType/interfaces";
|
|
4
|
+
import type * as ChatSubscriber from "../../user/chatSubscribers/interfaces";
|
|
5
5
|
export declare const Route = "portal";
|
|
6
6
|
export interface ITags {
|
|
7
7
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as IShared from
|
|
2
|
-
import type { IDocumentTypeUserType } from
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
import type { IDocumentTypeUserType } from "../../supply/documentType/interfaces";
|
|
3
3
|
export declare const Route = "sidemenu";
|
|
4
4
|
export interface IFindSideMenuCountersResponse {
|
|
5
5
|
counts: Record<string, number>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { SidemenuHightlight } from
|
|
2
|
-
import * as IShared from
|
|
3
|
-
import type { IDocumentTypeUserType } from
|
|
1
|
+
import type { SidemenuHightlight } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
|
+
import type { IDocumentTypeUserType } from "../../supply/documentType/interfaces";
|
|
4
4
|
export declare const Route = "sidemenu_highlight";
|
|
5
5
|
export type Entity = SidemenuHightlight;
|
|
6
6
|
export interface IHighlightItem {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { BankData, Country, Swift } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = BankData;
|
|
4
4
|
export declare const Route = "bank_data";
|
|
5
5
|
interface IFindDetailedResponse extends Entity {
|
|
6
6
|
swift: Swift | null;
|
|
7
7
|
country: Country;
|
|
8
8
|
}
|
|
9
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse,
|
|
10
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse,
|
|
9
|
+
export type IFindByIdResponse = Omit<IFindDetailedResponse, "swift" | "country">;
|
|
10
|
+
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "">;
|
|
11
11
|
export type IFindRequest = Record<string, unknown>;
|
|
12
|
-
export type IFindResponse = Omit<IFindDetailedResponse,
|
|
12
|
+
export type IFindResponse = Omit<IFindDetailedResponse, "swift" | "country">;
|
|
13
13
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
14
14
|
}
|
|
15
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse,
|
|
15
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "swift" | "country">>;
|
|
16
16
|
export interface ICreateRequest {
|
|
17
17
|
provider_id?: string | null;
|
|
18
18
|
client_id?: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
import { ChatSubscriber, Persona } from "./../../../shared/entities/user";
|
|
3
3
|
export type Entity = ChatSubscriber;
|
|
4
4
|
export declare const Route = "chat_subscriber";
|
|
5
5
|
export interface ICreateOrUpdateRequest {
|
|
@@ -23,13 +23,13 @@ export interface IFindByEmailTokenRequest {
|
|
|
23
23
|
export interface IPublicAuthenticateByEmailTokenRequest {
|
|
24
24
|
token: string;
|
|
25
25
|
}
|
|
26
|
-
export type IPersona = Pick<Persona,
|
|
27
|
-
export type IPersonaWithToken = IPersona & Pick<Persona,
|
|
28
|
-
export interface IEntityWithPersona extends Pick<ChatSubscriber,
|
|
26
|
+
export type IPersona = Pick<Persona, "id" | "external" | "name" | "email" | "telephone" | "language_id">;
|
|
27
|
+
export type IPersonaWithToken = IPersona & Pick<Persona, "email_access_token">;
|
|
28
|
+
export interface IEntityWithPersona extends Pick<ChatSubscriber, "id" | "chat_document_header_id"> {
|
|
29
29
|
persona: IPersonaWithToken;
|
|
30
30
|
}
|
|
31
31
|
export interface IEntityWithPersonaAndSubscriptions extends IPersona {
|
|
32
|
-
subscriptions: Pick<Entity,
|
|
32
|
+
subscriptions: Pick<Entity, "id" | "chat_document_header_id">[];
|
|
33
33
|
}
|
|
34
34
|
export interface IRepository {
|
|
35
35
|
findDocumentHeaderSubscribers(selector: IFindDocumentHeaderSubscribersRequest): Promise<IEntityWithPersona[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import { type IFindDocumentHeaderSubscribersByLanguageRequest } from
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { type IFindDocumentHeaderSubscribersByLanguageRequest } from "./interfaces";
|
|
3
3
|
export declare const createOrUpdateBody: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const findDocumentHeaderSubscribersQuery: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const findDocumentHeaderSubscribersByLanguageQuery: joi.ObjectSchema<IFindDocumentHeaderSubscribersByLanguageRequest>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ClientType } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = ClientType;
|
|
4
4
|
export declare const Route = "client_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,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Clients, ClientType, Country, DeliveryMethods, Language, MaturityDates, PaymentMethods, Persona, ReasonForExemption, SegmentsArea, Users, Vehicles } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Clients;
|
|
4
4
|
export declare const Route = "client";
|
|
5
5
|
interface IMainPersona extends Persona {
|
|
@@ -18,20 +18,16 @@ interface IFindDetailedResponse extends Entity {
|
|
|
18
18
|
default_delivery_method: DeliveryMethods | null;
|
|
19
19
|
default_vehicle: Vehicles | null;
|
|
20
20
|
}
|
|
21
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse,
|
|
22
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse,
|
|
21
|
+
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
22
|
+
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "user" | "main_persona" | "client_type" | "segments_area" | "country" | "language" | "default_payment_method" | "default_maturity_date" | "default_delivery_method" | "default_vehicle">;
|
|
23
23
|
export interface IFindByQueryRequest {
|
|
24
24
|
number?: number[];
|
|
25
25
|
id?: string[];
|
|
26
26
|
nif?: string | null;
|
|
27
27
|
}
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
export type
|
|
31
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
32
|
-
}
|
|
33
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
34
|
-
export type ICreateMainPersona = Pick<Persona, 'nif' | 'name' | 'email' | 'telephone'>;
|
|
28
|
+
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
29
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
30
|
+
export type ICreateMainPersona = Pick<Persona, "nif" | "name" | "email" | "telephone">;
|
|
35
31
|
export interface ICreateRequest {
|
|
36
32
|
user_id?: string;
|
|
37
33
|
main_persona: ICreateMainPersona;
|
|
@@ -73,8 +69,8 @@ export interface IRepository {
|
|
|
73
69
|
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
74
70
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
75
71
|
findByQuery(params: IFindByQueryRequest): Promise<IFindResponse[]>;
|
|
76
|
-
find(
|
|
77
|
-
findPaginated(selector:
|
|
72
|
+
find(): Promise<IFindResponse[]>;
|
|
73
|
+
findPaginated(selector: IShared.IPaginationRequest): Promise<IFindWithPaginationResponse>;
|
|
78
74
|
create(data: ICreateRequest): Promise<IFindResponse>;
|
|
79
75
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindResponse | null>;
|
|
80
76
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindResponse | null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { type Commissioner, type Country, type DeliveryMethods, type Language, type MaturityDates, type PaymentMethods, type Persona, type ReasonForExemption, type Users, type Vehicles } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Commissioner;
|
|
4
4
|
export declare const Route = "commissioner";
|
|
5
5
|
interface IMainPersona extends Persona {
|
|
@@ -16,14 +16,14 @@ interface IFindDetailedResponse extends Entity {
|
|
|
16
16
|
default_delivery_method: DeliveryMethods | null;
|
|
17
17
|
default_vehicle: Vehicles | null;
|
|
18
18
|
}
|
|
19
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse,
|
|
20
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse,
|
|
19
|
+
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
20
|
+
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "user" | "main_persona" | "country" | "language" | "default_payment_method" | "default_maturity_date" | "default_delivery_method" | "default_vehicle">;
|
|
21
21
|
export type IFindRequest = Record<string, unknown>;
|
|
22
|
-
export type IFindResponse = Omit<IFindDetailedResponse,
|
|
22
|
+
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
23
23
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
24
24
|
}
|
|
25
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse,
|
|
26
|
-
export type ICreateMainPersona = Pick<Persona,
|
|
25
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
26
|
+
export type ICreateMainPersona = Pick<Persona, "nif" | "name" | "email" | "telephone">;
|
|
27
27
|
export interface ICreateRequest {
|
|
28
28
|
user_id: string;
|
|
29
29
|
default_percentage?: number;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Country } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Country;
|
|
4
4
|
export declare const Route = "country";
|
|
5
5
|
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse,
|
|
6
|
+
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
7
|
export type IFindRequest = {
|
|
8
8
|
name?: string;
|
|
9
9
|
};
|
|
10
|
-
export type IFindResponse = Omit<IFindDetailedResponse,
|
|
10
|
+
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
11
11
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
12
12
|
}
|
|
13
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse,
|
|
13
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
14
14
|
export interface ICreateRequest {
|
|
15
15
|
name: string;
|
|
16
16
|
alpha2: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { DeliveryMethods } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = DeliveryMethods;
|
|
4
4
|
export declare const Route = "delivery_methods";
|
|
5
5
|
export interface ICreateRequest {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Favorites } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Favorites;
|
|
4
4
|
export declare const Route = "favorites";
|
|
5
5
|
export interface ICreateRequest {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import * as IShared from
|
|
3
|
-
import {
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
|
+
import { ICreateRequest, IFindOneRequest } from "./interfaces";
|
|
4
4
|
export declare const findByUrlQueryKeys: IShared.IRouteRequest<IFindOneRequest>;
|
|
5
5
|
export declare const findByUrlQuery: joi.ObjectSchema<any>;
|
|
6
6
|
export declare const createBodyKeys: IShared.IRouteRequest<ICreateRequest>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Language } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Language;
|
|
4
4
|
export declare const Route = "language";
|
|
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
|
native_name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { MaturityDates } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = MaturityDates;
|
|
4
4
|
export declare const Route = "maturity_dates";
|
|
5
5
|
export interface ICreateRequest {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { PaymentMethods } from "../../../shared/entities/user";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = PaymentMethods;
|
|
4
4
|
export declare const Route = "payment_methods";
|
|
5
5
|
export declare const PaymentMethodsSaftCodeEnum: {
|
|
6
|
-
CC:
|
|
7
|
-
CD:
|
|
8
|
-
CH:
|
|
9
|
-
CI:
|
|
10
|
-
CO:
|
|
11
|
-
CS:
|
|
12
|
-
DE:
|
|
13
|
-
LC:
|
|
14
|
-
MB:
|
|
15
|
-
NU:
|
|
16
|
-
OU:
|
|
17
|
-
PR:
|
|
18
|
-
TB:
|
|
19
|
-
TR:
|
|
6
|
+
CC: "CC";
|
|
7
|
+
CD: "CD";
|
|
8
|
+
CH: "CH";
|
|
9
|
+
CI: "CI";
|
|
10
|
+
CO: "CO";
|
|
11
|
+
CS: "CS";
|
|
12
|
+
DE: "DE";
|
|
13
|
+
LC: "LC";
|
|
14
|
+
MB: "MB";
|
|
15
|
+
NU: "NU";
|
|
16
|
+
OU: "OU";
|
|
17
|
+
PR: "PR";
|
|
18
|
+
TB: "TB";
|
|
19
|
+
TR: "TR";
|
|
20
20
|
};
|
|
21
21
|
export type IPaymentMethodsSaftCodeEnum = (typeof PaymentMethodsSaftCodeEnum)[keyof typeof PaymentMethodsSaftCodeEnum];
|
|
22
22
|
export interface ICreateRequest {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
1
|
+
import type { Country, Persona, ReasonForExemption } from "../../../shared/entities/user";
|
|
2
|
+
import type * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Persona;
|
|
4
4
|
export declare const Route = "persona";
|
|
5
5
|
export interface IEntityExtended extends Entity {
|
|
@@ -98,7 +98,7 @@ export interface IFindClientOrProviderRequest {
|
|
|
98
98
|
nif?: string | null;
|
|
99
99
|
email?: string | null;
|
|
100
100
|
telephone?: string | null;
|
|
101
|
-
user_type:
|
|
101
|
+
user_type: "client" | "provider";
|
|
102
102
|
}
|
|
103
103
|
export interface IFindClientOrProviderResponse {
|
|
104
104
|
client_id: string | null;
|