@nomalism-com/types 0.46.43 → 0.47.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5030 -5004
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5030 -5004
- package/dist/main.d.ts +263 -263
- 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 +1 -1
- package/dist/modules/document/billOfLading/route.schema.d.ts +1 -1
- 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 +9 -11
- package/dist/modules/sms/allowedDevice/route.schema.d.ts +1 -1
- package/dist/modules/sms/smsSender/interfaces.d.ts +2 -2
- package/dist/modules/sms/smsTemplate/interfaces.d.ts +5 -7
- package/dist/modules/sms/smsTemplate/route.schema.d.ts +1 -1
- 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 +1 -1
- 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 +3 -3
- 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 +11 -11
- 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 +11 -9
- package/dist/modules/user/providers/route.schema.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/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/user/zipCode/interfaces.d.ts +1 -1
- package/dist/modules/user/zipCode/route.schema.d.ts +1 -1
- package/dist/modules/view/errorLog/interfaces.d.ts +7 -7
- 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 +1 -2
- package/dist/shared/entities/stock.d.ts +25 -25
- package/dist/shared/entities/user.d.ts +4 -4
- package/dist/shared/interface.d.ts +42 -42
- package/dist/shared/messages.d.ts +1 -1
- package/package.json +25 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ObservationType } from "../../../shared/entities/integration";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = ObservationType;
|
|
4
4
|
export declare const Route = "observation_type";
|
|
5
5
|
export interface IFindByQueryRequest {
|
|
@@ -22,4 +22,4 @@ export interface IRepository {
|
|
|
22
22
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
23
23
|
}
|
|
24
24
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
25
|
-
export type IApi = Omit<IRepository,
|
|
25
|
+
export type IApi = Omit<IRepository, "findById" | "findByQuery">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
|
+
import { ICreateRequest, IUpdateRequest } from "./interfaces";
|
|
4
4
|
export declare const createBodyKeys: IShared.IRouteRequest<ICreateRequest>;
|
|
5
5
|
export declare const createBody: joi.ObjectSchema<any>;
|
|
6
6
|
export declare const updateBodyKeys: IShared.IRouteRequest<IUpdateRequest>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { PatchNotes } from "../../../shared/entities/integration";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = PatchNotes;
|
|
4
4
|
export declare const Route = "patch_notes";
|
|
5
5
|
export interface IFindResponse {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ProjectInfo } from
|
|
1
|
+
import { ProjectInfo } from "../../../shared/entities/integration";
|
|
2
2
|
export type Entity = ProjectInfo;
|
|
3
3
|
export declare const Route = "project_info";
|
|
4
4
|
export declare const IProjectInfoTypeEnum: {
|
|
5
|
-
particular:
|
|
6
|
-
professional:
|
|
7
|
-
company:
|
|
5
|
+
particular: "particular";
|
|
6
|
+
professional: "professional";
|
|
7
|
+
company: "company";
|
|
8
8
|
};
|
|
9
9
|
export type IMultimedia = {
|
|
10
10
|
id: string;
|
|
@@ -18,7 +18,7 @@ export type IBudgetOptionsType = {
|
|
|
18
18
|
};
|
|
19
19
|
export type IProjectInfoType = (typeof IProjectInfoTypeEnum)[keyof typeof IProjectInfoTypeEnum];
|
|
20
20
|
export declare const projectInfoTypes: string[];
|
|
21
|
-
export interface ICreateRequest extends Omit<Entity,
|
|
21
|
+
export interface ICreateRequest extends Omit<Entity, "created_at" | "updated_at" | "document_header_id" | "id" | "email_log" | "persona_id" | "client_id"> {
|
|
22
22
|
persona_id?: string;
|
|
23
23
|
client_id?: string;
|
|
24
24
|
}
|
|
@@ -27,8 +27,8 @@ export interface ICreateResponse {
|
|
|
27
27
|
chat_subscriber_id?: string;
|
|
28
28
|
}
|
|
29
29
|
export declare const IProjectInfoOriginTypeEnum: {
|
|
30
|
-
website:
|
|
31
|
-
portal:
|
|
30
|
+
website: "website";
|
|
31
|
+
portal: "portal";
|
|
32
32
|
};
|
|
33
33
|
export type IProjectInfoOriginType = (typeof IProjectInfoOriginTypeEnum)[keyof typeof IProjectInfoOriginTypeEnum];
|
|
34
34
|
export declare const ProjectInfoOriginTypes: string[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const sendEmailBody: joi.ObjectSchema<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Settings } from "../../../shared/entities/integration";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Settings;
|
|
4
4
|
export declare const Route = "settings";
|
|
5
5
|
export interface IFindByKeyRequest {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Npc } from "../../../shared/entities/print";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Npc;
|
|
4
4
|
export declare const Route = "npc";
|
|
5
5
|
export interface IPrintJobs {
|
|
@@ -8,7 +8,7 @@ export interface IPrintJobs {
|
|
|
8
8
|
buffer?: unknown;
|
|
9
9
|
external_url?: string | null;
|
|
10
10
|
printer_id: string;
|
|
11
|
-
orientation:
|
|
11
|
+
orientation: "landscape" | "portrait";
|
|
12
12
|
}
|
|
13
13
|
export interface IFindPrintJobsForComputerIdResponse {
|
|
14
14
|
computer_name?: string | null;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Printer } from "../../../shared/entities/print";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Printer;
|
|
4
4
|
export declare const Route = "printer";
|
|
5
5
|
export type IFindDetailedResponse = Entity & {
|
|
6
|
-
npc: Pick<Entity,
|
|
6
|
+
npc: Pick<Entity, "name">;
|
|
7
7
|
};
|
|
8
|
-
export type IPrinterData = Omit<Printer,
|
|
9
|
-
export type IUpdateRequest = Omit<Printer,
|
|
8
|
+
export type IPrinterData = Omit<Printer, "id" | "npc_id" | "created_at" | "updated_at">;
|
|
9
|
+
export type IUpdateRequest = Omit<Printer, "connected" | "device_os_name" | "npc_id" | "id">;
|
|
10
10
|
export interface IGetOrSetPrintersResponse {
|
|
11
11
|
printers_a4: IPrinterData[];
|
|
12
12
|
printers_pos: IPrinterData[];
|
|
13
13
|
}
|
|
14
|
-
export type IPrinterA4 = Pick<Printer,
|
|
15
|
-
export type IPrinterPos = Pick<Printer,
|
|
14
|
+
export type IPrinterA4 = Pick<Printer, "device_os_name" | "name">;
|
|
15
|
+
export type IPrinterPos = Pick<Printer, "device_os_name">;
|
|
16
16
|
export interface IGetOrSetPrintersRequest {
|
|
17
17
|
computer_id: string;
|
|
18
18
|
printers_a4: IPrinterA4[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ScheduledPrintJob } from "../../../shared/entities/print";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = ScheduledPrintJob;
|
|
4
4
|
export declare const Route = "schedule_print_job";
|
|
5
5
|
export interface ICreateSchedulePrintJobRequest {
|
|
@@ -25,7 +25,7 @@ export interface IDispatchSchedulePrintJobResponse {
|
|
|
25
25
|
buffer?: string | null;
|
|
26
26
|
external_url?: string | null;
|
|
27
27
|
device_id: string;
|
|
28
|
-
orientation:
|
|
28
|
+
orientation: "landscape" | "portrait";
|
|
29
29
|
}[];
|
|
30
30
|
}
|
|
31
31
|
export interface IRepository {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import { ICreateManySchedulePrintJobRequest } from
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { ICreateManySchedulePrintJobRequest } from "./interfaces";
|
|
3
3
|
export declare const dispatchSchedulePrintJobBody: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const createSchedulePrintJobBody: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const createManySchedulePrintJobBody: joi.ObjectSchema<ICreateManySchedulePrintJobRequest>;
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import { AllowedDevice } from
|
|
2
|
-
import * as IShared from
|
|
1
|
+
import { AllowedDevice } from "../../../shared/entities/sms";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = AllowedDevice;
|
|
4
4
|
export declare const Route = "allowed_device";
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
export type
|
|
8
|
-
export type apkType = 'sms' | 'ticket' | 'app';
|
|
9
|
-
export type IUpdateRequest = Pick<Entity, 'name' | 'allow_app' | 'allow_sms' | 'allow_ticket'>;
|
|
5
|
+
export type ICreateRequest = Pick<Entity, "key">;
|
|
6
|
+
export type apkType = "sms" | "ticket" | "app";
|
|
7
|
+
export type IUpdateRequest = Pick<Entity, "name" | "allow_app" | "allow_sms" | "allow_ticket">;
|
|
10
8
|
export interface ICreateResponse {
|
|
11
9
|
name: string;
|
|
12
|
-
allowed:
|
|
10
|
+
allowed: apkType[];
|
|
13
11
|
}
|
|
14
12
|
export interface IRepository {
|
|
15
|
-
find(): Promise<
|
|
16
|
-
findById(id: string): Promise<
|
|
17
|
-
findByKey(key: string): Promise<
|
|
13
|
+
find(): Promise<Entity[]>;
|
|
14
|
+
findById(id: string): Promise<Entity>;
|
|
15
|
+
findByKey(key: string): Promise<Entity>;
|
|
18
16
|
create(data: ICreateRequest): Promise<ICreateResponse>;
|
|
19
17
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
20
18
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SmsSender } from
|
|
2
|
-
import * as IShared from
|
|
1
|
+
import { SmsSender } from "../../../shared/entities/sms";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = SmsSender;
|
|
4
4
|
export declare const Route = "sms_sender";
|
|
5
5
|
export declare const ISmsSenderStatsEnum: {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { SmsTemplate } from
|
|
2
|
-
import * as IShared from
|
|
1
|
+
import { SmsTemplate } from "../../../shared/entities/sms";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = SmsTemplate;
|
|
4
4
|
export declare const Route = "sms_template";
|
|
5
|
-
export interface IEntity extends Entity {
|
|
6
|
-
}
|
|
7
5
|
export type SmsTemplateVariables = Record<string, string | number | boolean>;
|
|
8
6
|
export interface ICreateRequest {
|
|
9
7
|
key: string;
|
|
@@ -18,9 +16,9 @@ export interface IUpdateRequest {
|
|
|
18
16
|
variables?: SmsTemplateVariables;
|
|
19
17
|
}
|
|
20
18
|
export interface IRepository {
|
|
21
|
-
find(): Promise<
|
|
22
|
-
findById(id: string): Promise<
|
|
23
|
-
findByKey(key: string): Promise<
|
|
19
|
+
find(): Promise<Entity[]>;
|
|
20
|
+
findById(id: string): Promise<Entity>;
|
|
21
|
+
findByKey(key: string): Promise<Entity>;
|
|
24
22
|
create(data: ICreateRequest): Promise<string>;
|
|
25
23
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
26
24
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const findByCode: joi.ObjectSchema<any>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Chat, File } from "../../../shared/entities/stock";
|
|
2
|
+
import type * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Chat;
|
|
4
4
|
export declare const Route = "chat";
|
|
5
5
|
export interface IChatBalloon {
|
|
6
|
-
chat?: Pick<Entity,
|
|
6
|
+
chat?: Pick<Entity, "message"> & {
|
|
7
7
|
id?: string;
|
|
8
8
|
read?: boolean;
|
|
9
9
|
client_read?: boolean;
|
|
10
10
|
translation?: string;
|
|
11
11
|
lang?: string;
|
|
12
12
|
};
|
|
13
|
-
file?: Pick<File,
|
|
13
|
+
file?: Pick<File, "multimedia_id" | "filename"> & {
|
|
14
14
|
id?: string;
|
|
15
15
|
read?: boolean;
|
|
16
16
|
client_read?: boolean;
|
|
@@ -20,7 +20,7 @@ export interface IChatBalloon {
|
|
|
20
20
|
is_customer: boolean;
|
|
21
21
|
ghost?: boolean;
|
|
22
22
|
}
|
|
23
|
-
export type IReport = Pick<Entity,
|
|
23
|
+
export type IReport = Pick<Entity, "email_processed" | "email_delivered" | "email_opened" | "email_clicked">;
|
|
24
24
|
export interface IFindActiveByOwnerIdResponse {
|
|
25
25
|
chat: IChatBalloon[];
|
|
26
26
|
last_group_report?: IReport;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import { ITranslateRequest } from
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { ITranslateRequest } from "./interfaces";
|
|
3
3
|
export declare const createBody: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const updateBody: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const markAllClientReadUnreadParams: joi.ObjectSchema<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChatRapidMessage } from
|
|
2
|
-
import * as IShared from
|
|
1
|
+
import { ChatRapidMessage } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export declare const Route = "chat_rapid_message";
|
|
4
4
|
export type Entity = ChatRapidMessage;
|
|
5
5
|
export interface ICreateRequest {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConferirEncomenda } from
|
|
1
|
+
import { ConferirEncomenda } from "../../../shared/entities/stock";
|
|
2
2
|
export declare const Route = "conferir_encomenda";
|
|
3
3
|
export type Entity = ConferirEncomenda;
|
|
4
4
|
export declare const EstadoEncomendaEnum: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { File } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = File;
|
|
4
4
|
export declare const Route = "file";
|
|
5
5
|
export interface IFindByOwnerRequest {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import { IFindByOwnerRequest } from
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { IFindByOwnerRequest } from "./interface";
|
|
3
3
|
export declare const createBody: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const updateBody: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const findByOwnerIdQuery: joi.ObjectSchema<IFindByOwnerRequest>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Gmails } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Gmails;
|
|
4
4
|
export declare const Route = "gmail";
|
|
5
5
|
export interface IGmailsResponse {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import { IListEventsInRangeRequest } from
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { IListEventsInRangeRequest } from "./interface";
|
|
3
3
|
export declare const listEventsInRangeQuery: joi.ObjectSchema<IListEventsInRangeRequest>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { GoogleSheetPool } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = GoogleSheetPool;
|
|
4
4
|
export declare const Route = "google_sheet_pool";
|
|
5
5
|
export interface IRepository {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Location, TypeOfLocation } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Location;
|
|
4
4
|
export declare const Route = "location";
|
|
5
5
|
interface IFindDetailedResponse extends Entity {
|
|
6
6
|
type_of_location: TypeOfLocation;
|
|
7
7
|
}
|
|
8
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse,
|
|
9
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse,
|
|
8
|
+
export type IFindByIdResponse = Omit<IFindDetailedResponse, "type_of_location">;
|
|
9
|
+
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "type_of_location">;
|
|
10
10
|
export type IFindRequest = Record<string, unknown>;
|
|
11
|
-
export type IFindResponse = Omit<IFindDetailedResponse,
|
|
11
|
+
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
12
12
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
13
13
|
}
|
|
14
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse,
|
|
14
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "type_of_location">>;
|
|
15
15
|
export interface ICreateRequest {
|
|
16
16
|
name: string;
|
|
17
17
|
street: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const printLocationsQuery: joi.ObjectSchema<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentLineNote } from
|
|
2
|
-
import * as IShared from
|
|
1
|
+
import { DocumentLineNote } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export declare const Route = "prison";
|
|
4
4
|
export interface IFindLinesInPrisonResponse {
|
|
5
5
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import { ICreateLinesInPrisonRequest } from
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { ICreateLinesInPrisonRequest } from "./interface";
|
|
3
3
|
export declare const checkLinesInPrisonBody: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const createLinesInPrisonBody: joi.ObjectSchema<ICreateLinesInPrisonRequest>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import * as IShared from
|
|
3
|
-
import * as IDocumentLine from
|
|
1
|
+
import { type ProductBaseVirtuals, type ProductImage, type ProductPromotionVirtuals, type ProductSheet, type ProductVirtuals, type UnitOfMeasure, type VatTax, type VatTaxZone } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
|
+
import * as IDocumentLine from "../../supply/documentLine/interfaces";
|
|
4
4
|
export declare const Route = "product_sheets";
|
|
5
5
|
export type IProductPromotionVirtuals = ProductPromotionVirtuals;
|
|
6
6
|
export type IProductVirtuals = ProductVirtuals;
|
|
@@ -8,24 +8,24 @@ export type IProductBaseVirtuals = ProductBaseVirtuals;
|
|
|
8
8
|
export type Entity = ProductSheet;
|
|
9
9
|
export type IProductsForSheetsResponse = Record<string, any>;
|
|
10
10
|
export type IProductFromSheetsValues = Record<string, any>;
|
|
11
|
-
export type IProductSheetState =
|
|
11
|
+
export type IProductSheetState = "Ativa" | "NaoVemMais" | "VemTemporariamente" | "DescontinuadoFabrica";
|
|
12
12
|
export declare const ProductStateEnum: {
|
|
13
|
-
Ativa:
|
|
14
|
-
NaoVemMais:
|
|
15
|
-
VemTemporariamente:
|
|
16
|
-
DescontinuadoFabrica:
|
|
13
|
+
Ativa: "Ativa";
|
|
14
|
+
NaoVemMais: "NaoVemMais";
|
|
15
|
+
VemTemporariamente: "VemTemporariamente";
|
|
16
|
+
DescontinuadoFabrica: "DescontinuadoFabrica";
|
|
17
17
|
};
|
|
18
18
|
export declare const ProductStateLabels: Record<keyof typeof ProductStateEnum, string>;
|
|
19
19
|
export type IProductState = (typeof ProductStateEnum)[keyof typeof ProductStateEnum];
|
|
20
20
|
export declare const productState: string[];
|
|
21
21
|
export declare const ProductTypeEnum: {
|
|
22
|
-
Encomenda:
|
|
23
|
-
Stock:
|
|
24
|
-
Servico:
|
|
25
|
-
Producao:
|
|
26
|
-
Portes:
|
|
27
|
-
RM:
|
|
28
|
-
Montagem:
|
|
22
|
+
Encomenda: "Encomenda";
|
|
23
|
+
Stock: "Stock";
|
|
24
|
+
Servico: "Servico";
|
|
25
|
+
Producao: "Producao";
|
|
26
|
+
Portes: "Portes";
|
|
27
|
+
RM: "RM";
|
|
28
|
+
Montagem: "Montagem";
|
|
29
29
|
};
|
|
30
30
|
export type IProductType = (typeof ProductTypeEnum)[keyof typeof ProductTypeEnum];
|
|
31
31
|
export declare const productTypes: string[];
|
|
@@ -75,7 +75,7 @@ export interface IUpdateRequest {
|
|
|
75
75
|
export interface IFindProductSheetByReference {
|
|
76
76
|
selector: string;
|
|
77
77
|
}
|
|
78
|
-
interface IProductSheetEntityBase extends Omit<Entity,
|
|
78
|
+
interface IProductSheetEntityBase extends Omit<Entity, "values"> {
|
|
79
79
|
unit_of_measure_quantity: UnitOfMeasure;
|
|
80
80
|
vat_tax: VatTax & {
|
|
81
81
|
vat_tax_zones: VatTaxZone[];
|
|
@@ -202,11 +202,11 @@ export interface IFindDataForMobileResponse {
|
|
|
202
202
|
thumbnail: string | null;
|
|
203
203
|
attributes: string;
|
|
204
204
|
compositions: string;
|
|
205
|
-
unit_of_measure_quantity: Pick<UnitOfMeasure,
|
|
205
|
+
unit_of_measure_quantity: Pick<UnitOfMeasure, "notation" | "integer_only">;
|
|
206
206
|
promotions: IDocumentLine.IPromotions[];
|
|
207
207
|
}
|
|
208
208
|
export interface IFindStockForMobileResponse {
|
|
209
|
-
virtual: Pick<IProductVirtuals,
|
|
209
|
+
virtual: Pick<IProductVirtuals, "price_sale" | "available" | "ordered_quantity" | "prison" | "reserved" | "total" | "inativa">;
|
|
210
210
|
}
|
|
211
211
|
export type IFindForMobileRequest = {
|
|
212
212
|
reference: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import {
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { ICheckStockByIdsRequest, IFindForMobileRequest, IFindProductSheetByReference, type IPrintLabelBulkQueryRequest, IProductLocation } from "./interface";
|
|
3
3
|
export declare const printLabelQuery: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const printLabelBulkQuery: joi.ObjectSchema<IPrintLabelBulkQueryRequest>;
|
|
5
5
|
export declare const checkStockByIdsBody: joi.ObjectSchema<ICheckStockByIdsRequest>;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ProductImage } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = ProductImage;
|
|
4
4
|
export declare const Route = "product_image";
|
|
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 declare const ImageTypeEnum: {
|
|
11
|
-
thumbnail:
|
|
12
|
-
site:
|
|
11
|
+
thumbnail: "thumbnail";
|
|
12
|
+
site: "site";
|
|
13
13
|
};
|
|
14
14
|
export type IImageType = (typeof ImageTypeEnum)[keyof typeof ImageTypeEnum];
|
|
15
15
|
export declare const imageTypes: string[];
|
|
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
|
product_id: string;
|
|
21
21
|
product_sheet_id?: string;
|