@nomalism-com/types 1.3.43 → 1.3.44
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 +5950 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4946 -4900
- package/dist/main.d.ts +263 -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/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 +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 -4
- package/dist/shared/interface.d.ts +42 -42
- package/dist/shared/messages.d.ts +1 -1
- package/package.json +27 -12
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import { type ICreateRequest } from
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { type ICreateRequest } from "./interfaces";
|
|
3
3
|
export declare const createBody: joi.ObjectSchema<ICreateRequest>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const providerPaymentBody: joi.ArraySchema<any[]>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
export type Entity = Omit<DocumentHeader,
|
|
1
|
+
import { DocumentHeader } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
|
+
export type Entity = Omit<DocumentHeader, "external_data">;
|
|
4
4
|
export declare const Route = "document_header";
|
|
5
5
|
export interface IMultipleRegularizationPayments {
|
|
6
6
|
value: number;
|
|
7
7
|
payment_method_id: string;
|
|
8
8
|
payment_method: string;
|
|
9
9
|
}
|
|
10
|
-
export type IMultipleRegularizationPaymentsType =
|
|
10
|
+
export type IMultipleRegularizationPaymentsType = "credit" | "debit";
|
|
11
11
|
export interface IMultipleRegularizationDocuments {
|
|
12
12
|
owner_id: string;
|
|
13
13
|
document_header_id: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const regularizarMultiplosBody: joi.ObjectSchema<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as IShared from
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
2
|
export declare const Route = "bill_of_lading";
|
|
3
3
|
export interface IDeliveryAddressRequest {
|
|
4
4
|
delivery_street: string;
|
|
@@ -14,9 +14,9 @@ export interface ICreateRequest {
|
|
|
14
14
|
persona_id: string;
|
|
15
15
|
persona_name: string;
|
|
16
16
|
persona_nif: string;
|
|
17
|
-
delivery_addresses: IDeliveryAddressRequest;
|
|
18
17
|
document_type_id: number;
|
|
19
18
|
from_document_header_id: string;
|
|
19
|
+
delivery_addresses: IDeliveryAddressRequest;
|
|
20
20
|
document_line_ids: string[];
|
|
21
21
|
}
|
|
22
22
|
export interface IRepository {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { ICreateRequest } from "./interfaces";
|
|
3
|
+
export declare const createBillOfLadingBody: joi.ObjectSchema<ICreateRequest>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { DocumentHeader, DocumentLineNote, SavedEmPicking } from
|
|
2
|
-
import * as IShared from
|
|
3
|
-
import { type IProductType } from
|
|
1
|
+
import type { DocumentHeader, DocumentLineNote, SavedEmPicking } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
|
+
import { type IProductType } from "../../stock/productGoogleSheets/interface";
|
|
4
4
|
export declare const Route = "material_entrance";
|
|
5
5
|
export declare const ICreateMaterialEntranceClientOrderOptionEnum: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
"Vai desdobrar linha na PC (estado Espera Chegada)": "Vai desdobrar linha na PC (estado Espera Chegada)";
|
|
7
|
+
"Vai desdobrar linha na PC (estado Espera Envio Encomenda)": "Vai desdobrar linha na PC (estado Espera Envio Encomenda)";
|
|
8
|
+
"Vai atualizar quantidade na PC": "Vai atualizar quantidade na PC";
|
|
9
|
+
"Vai desligar a PC da PF": "Vai desligar a PC da PF";
|
|
10
10
|
};
|
|
11
11
|
export type ICreateMaterialEntranceClientOrderOption = (typeof ICreateMaterialEntranceClientOrderOptionEnum)[keyof typeof ICreateMaterialEntranceClientOrderOptionEnum];
|
|
12
12
|
export declare const createMaterialEntranceClientOrderOptions: string[];
|
|
@@ -28,14 +28,14 @@ export interface IEntradaDeMaterialClientOrder extends IGetMaterialEntranceInfoC
|
|
|
28
28
|
printed: string | null;
|
|
29
29
|
}
|
|
30
30
|
export declare const ICreateMaterialEntranceStockWithoutOrderOptionEnum: {
|
|
31
|
-
|
|
31
|
+
"Vai criar nova linha na PF": "Vai criar nova linha na PF";
|
|
32
32
|
};
|
|
33
33
|
export type ICreateMaterialEntranceStockWithoutOrderOption = (typeof ICreateMaterialEntranceStockWithoutOrderOptionEnum)[keyof typeof ICreateMaterialEntranceStockWithoutOrderOptionEnum];
|
|
34
34
|
export declare const createMaterialEntranceStockWithoutOrderOptions: string[];
|
|
35
35
|
export declare const ICreateMaterialEntranceStockOptionEnum: {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
"Vai desdobrar linha na PF (estado Espera Chegada)": "Vai desdobrar linha na PF (estado Espera Chegada)";
|
|
37
|
+
"Vai desdobrar linha na PF (estado Espera Envio Encomenda)": "Vai desdobrar linha na PF (estado Espera Envio Encomenda)";
|
|
38
|
+
"Vai atualizar quantidade na PF": "Vai atualizar quantidade na PF";
|
|
39
39
|
};
|
|
40
40
|
export type ICreateMaterialEntranceStockOption = (typeof ICreateMaterialEntranceStockOptionEnum)[keyof typeof ICreateMaterialEntranceStockOptionEnum];
|
|
41
41
|
export declare const createMaterialEntranceStockOptions: string[];
|
|
@@ -85,7 +85,7 @@ export interface IUnfinishedPickingLineGroup {
|
|
|
85
85
|
ef_dla_ids: string[];
|
|
86
86
|
}
|
|
87
87
|
export type IUnfinishedPickingLineGroupExtended = IUnfinishedPickingLineGroup & IGetMaterialEntranceInfoResponse;
|
|
88
|
-
export interface IUnfinishedPickingsResponse extends Pick<DocumentHeader,
|
|
88
|
+
export interface IUnfinishedPickingsResponse extends Pick<DocumentHeader, "id" | "owner_id"> {
|
|
89
89
|
identifier: string;
|
|
90
90
|
start_document_header_id: string | null;
|
|
91
91
|
order_date: Date;
|
|
@@ -114,7 +114,7 @@ export interface IPrintLabelQueryRequest {
|
|
|
114
114
|
quantity: number;
|
|
115
115
|
note?: string;
|
|
116
116
|
}
|
|
117
|
-
export type IInclude =
|
|
117
|
+
export type IInclude = "selectedOnly" | "all" | "none";
|
|
118
118
|
export interface IPrintOptions {
|
|
119
119
|
groupLabel: boolean;
|
|
120
120
|
stockOrders: IInclude;
|
|
@@ -128,7 +128,7 @@ export interface IPrintBulkLabelRequest extends IPrintOptions {
|
|
|
128
128
|
export interface IPrintLabelQueryWithTokenRequest extends IPrintLabelQueryRequest {
|
|
129
129
|
token: string;
|
|
130
130
|
}
|
|
131
|
-
export type IFindDoneByIdResponse = Pick<SavedEmPicking,
|
|
131
|
+
export type IFindDoneByIdResponse = Pick<SavedEmPicking, "data" | "created_at" | "created_by" | "updated_at" | "updated_by">;
|
|
132
132
|
interface IRepository {
|
|
133
133
|
finalizarEntradaMaterial(data: IFinalizarEntradaDeMaterialRequest): Promise<IFinalizarEntradaDeMaterialResponse>;
|
|
134
134
|
undoEntradaMaterial(data: IUndoEntradaDeMaterialRequest): Promise<void>;
|
|
@@ -136,7 +136,7 @@ interface IRepository {
|
|
|
136
136
|
findMaterialEntranceProviders(): Promise<IShared.IFindMinifiedResponse[]>;
|
|
137
137
|
findDoneById(params: IShared.IFindByIdRequest): Promise<IFindDoneByIdResponse[]>;
|
|
138
138
|
}
|
|
139
|
-
export type IApi = Omit<IRepository,
|
|
139
|
+
export type IApi = Omit<IRepository, "finalizarEntradaMaterial"> & {
|
|
140
140
|
finalizarEntradaMaterial(data: IFinalizarEntradaDeMaterialRequest): Promise<IFinalizarEntradaDeMaterialResponse>;
|
|
141
141
|
};
|
|
142
142
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import { IPrintBulkLabelRequest } from
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { IPrintBulkLabelRequest } from "./interfaces";
|
|
3
3
|
export declare const finalizarEntradaDeMaterialBody: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const undoEntradaDeMaterialBody: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const printLabelParams: joi.ObjectSchema<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as IShared from
|
|
2
|
-
import type { IEstadoEncomenda } from
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
import type { IEstadoEncomenda } from "../../stock/conferirEncomenda/interface";
|
|
3
3
|
export declare const Route = "order";
|
|
4
4
|
export interface IUndoProviderOrderRequest {
|
|
5
5
|
document_line_ids: string[];
|
|
@@ -49,7 +49,7 @@ export interface IFindRequest {
|
|
|
49
49
|
date_start: Date;
|
|
50
50
|
date_end: Date;
|
|
51
51
|
}
|
|
52
|
-
export type IOrderType =
|
|
52
|
+
export type IOrderType = "VA" | "Stock";
|
|
53
53
|
export interface IFindResponse {
|
|
54
54
|
order_type: IOrderType;
|
|
55
55
|
pc_id?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import { IConferirEncomendaClienteRequest,
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { IConferirEncomendaClienteRequest, IFindByIdsRequest, IFindRequest } from "./interfaces";
|
|
3
3
|
export declare const undoProviderOrderBody: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const createProviderOrderChatBody: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const conferirEncomendaClienteBody: joi.ObjectSchema<IConferirEncomendaClienteRequest>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const createProductionOrderBody: joi.ObjectSchema<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import { type ICreateFromLinesRequest, type ICreateRequest } from
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { type ICreateFromLinesRequest, type ICreateRequest } from "./interfaces";
|
|
3
3
|
export declare const createBody: joi.ObjectSchema<ICreateRequest>;
|
|
4
4
|
export declare const createFromLinesBody: joi.ObjectSchema<ICreateFromLinesRequest>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const providerProposalBody: joi.ObjectSchema<any>;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { DocumentLine, DocumentLinePendingConflict } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = DocumentLinePendingConflict;
|
|
4
4
|
export declare const Route = "proposta_sheets";
|
|
5
5
|
export declare const IConflictEnum: {
|
|
6
|
-
update:
|
|
7
|
-
delete:
|
|
8
|
-
price:
|
|
6
|
+
update: "update";
|
|
7
|
+
delete: "delete";
|
|
8
|
+
price: "price";
|
|
9
9
|
};
|
|
10
10
|
export type IConflict = (typeof IConflictEnum)[keyof typeof IConflictEnum];
|
|
11
11
|
export interface IFindByGooglesheetIdResponse {
|
|
12
12
|
document_header_id: string;
|
|
13
13
|
}
|
|
14
|
-
export type IConflictCreateRequest = Omit<Entity,
|
|
14
|
+
export type IConflictCreateRequest = Omit<Entity, "id" | "created_at" | "created_by" | "updated_at" | "updated_by">;
|
|
15
15
|
export interface IConflictFindByOwnerIdResponse extends Entity {
|
|
16
|
-
document_line: Pick<DocumentLine,
|
|
16
|
+
document_line: Pick<DocumentLine, "preco_venda" | "client_discount" | "quantity"> & {
|
|
17
17
|
designation: string;
|
|
18
18
|
reference: string;
|
|
19
19
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import { ICloneSheetToNewDocumentRequest,
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { ICloneSheetToNewDocumentRequest, IImportFromSheetRequest, IRmUpdateDataBySheetIdRequest } from "./interface";
|
|
3
3
|
export declare const importFromSheetKeys: joi.ObjectSchema<IImportFromSheetRequest>;
|
|
4
4
|
export declare const findByGoogleSheetId: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const cloneSheetToNewDocumentQuery: joi.ObjectSchema<ICloneSheetToNewDocumentRequest>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const createProviderServiceInvoiceBody: joi.ObjectSchema<any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { DocumentLineNote } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export declare const Route = "purchase";
|
|
4
|
-
export type IUnpaidMaterialEntranceLineType =
|
|
4
|
+
export type IUnpaidMaterialEntranceLineType = "Por comprar" | "Comprado" | "Devolvido" | "Prisão";
|
|
5
5
|
export interface IUnpaidMaterialEntranceLineDetails {
|
|
6
6
|
document_line_id: string;
|
|
7
7
|
quantity: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import { ISyncRequest } from
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { ISyncRequest } from "./interfaces";
|
|
3
3
|
export declare const purchaseFromProviderBody: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const syncBody: joi.ObjectSchema<ISyncRequest>;
|
|
@@ -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 = "quebra";
|
|
4
4
|
export interface IInventoryLossResponse {
|
|
5
5
|
document_line_id: string;
|
|
@@ -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 = "return_to_provider";
|
|
4
4
|
export interface IFindLinesToReturnResponse {
|
|
5
5
|
document_line_assoc_id: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const checkLinesToReturnBody: joi.ObjectSchema<any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const createBody: joi.ObjectSchema<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Multimedia } from
|
|
1
|
+
import { Multimedia } from "../../../shared/entities/documentManagement";
|
|
2
2
|
export type Entity = Multimedia;
|
|
3
3
|
export declare const Route = "multimedia";
|
|
4
4
|
export interface IFindByIdRequest {
|
|
@@ -9,7 +9,7 @@ export interface IRepository {
|
|
|
9
9
|
update(id: string, multipartFormData: any, headers?: any): Promise<void>;
|
|
10
10
|
findById(multimedia_id: string): Promise<Entity | null>;
|
|
11
11
|
}
|
|
12
|
-
export interface IController extends Omit<IRepository,
|
|
12
|
+
export interface IController extends Omit<IRepository, "findById"> {
|
|
13
13
|
findById(multimedia_id: string, params: IFindByIdRequest): Promise<void>;
|
|
14
14
|
}
|
|
15
|
-
export type IApi = Omit<IRepository,
|
|
15
|
+
export type IApi = Omit<IRepository, "findById">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const findByIdQuery: joi.ObjectSchema<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { EmailLog } from "../../../shared/entities/integration";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = EmailLog;
|
|
4
4
|
export declare const Route = "email_log";
|
|
5
5
|
export interface IFindRequest {
|
|
@@ -25,13 +25,13 @@ export interface IEmailAttachment {
|
|
|
25
25
|
filename: string;
|
|
26
26
|
}
|
|
27
27
|
export declare const SendGridCallbackEventEnum: {
|
|
28
|
-
open:
|
|
29
|
-
delivered:
|
|
30
|
-
click:
|
|
31
|
-
processed:
|
|
32
|
-
dropped:
|
|
33
|
-
deferred:
|
|
34
|
-
bounce:
|
|
28
|
+
open: "open";
|
|
29
|
+
delivered: "delivered";
|
|
30
|
+
click: "click";
|
|
31
|
+
processed: "processed";
|
|
32
|
+
dropped: "dropped";
|
|
33
|
+
deferred: "deferred";
|
|
34
|
+
bounce: "bounce";
|
|
35
35
|
};
|
|
36
36
|
export type ISendGridCallbackEvent = (typeof SendGridCallbackEventEnum)[keyof typeof SendGridCallbackEventEnum];
|
|
37
37
|
export declare const sendGridCallbackEvents: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import {
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { ICheckSent, IFindRequest } from "./interfaces";
|
|
3
3
|
export declare const findQuery: joi.ObjectSchema<IFindRequest>;
|
|
4
4
|
export declare const checkSentBody: joi.ObjectSchema<ICheckSent>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { IEmailAddress, IEmailAttachment } from
|
|
1
|
+
import { EmailTemplate, EmailTemplateAttachment } from "../../../shared/entities/integration";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
|
+
import { IEmailAddress, IEmailAttachment } from "../emailLog/interfaces";
|
|
4
4
|
export type Entity = EmailTemplate;
|
|
5
5
|
export declare const Route = "email_template";
|
|
6
6
|
export interface IEntityExtended extends Entity {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import { EmailPreviewRequest } from
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { EmailPreviewRequest } 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 sendBody: joi.ObjectSchema<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { EmailTemplateAttachment } from "../../../shared/entities/integration";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = EmailTemplateAttachment;
|
|
4
4
|
export declare const Route = "email_template_attachment";
|
|
5
5
|
export interface ICreateRequest {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const createBody: joi.ObjectSchema<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EmailVerification } from
|
|
2
|
-
import * as IShared from
|
|
1
|
+
import { EmailVerification } from "../../../shared/entities/integration";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = EmailVerification;
|
|
4
4
|
export declare const Route = "email_verification";
|
|
5
5
|
export interface IIsVerifiedRequest {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import { IIsVerifiedRequest,
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { IIsVerifiedRequest, IMarkAsVerifiedRequest, ISendVerificationRequest } from "./interfaces";
|
|
3
3
|
export declare const isVerifiedQuery: joi.ObjectSchema<IIsVerifiedRequest>;
|
|
4
4
|
export declare const sendVerificationBody: joi.ObjectSchema<ISendVerificationRequest>;
|
|
5
5
|
export declare const markAsVerifiedBody: joi.ObjectSchema<IMarkAsVerifiedRequest>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { GoogleFilePermission } from "../../../shared/entities/integration";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = GoogleFilePermission;
|
|
4
4
|
export declare const Route = "google_file_permission";
|
|
5
5
|
export type IFindRequest = Record<string, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
|
+
import { ICreateRequest } from "./interfaces";
|
|
4
4
|
export declare const createBodyKeys: IShared.IRouteRequest<ICreateRequest>;
|
|
5
5
|
export declare const createBody: joi.ObjectSchema<any>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { DocumentHeader } from
|
|
2
|
-
import { Persona } from
|
|
3
|
-
import * as IShared from
|
|
1
|
+
import { DocumentHeader } from "../../../shared/entities/stock";
|
|
2
|
+
import { Persona } from "../../../shared/entities/user";
|
|
3
|
+
import * as IShared from "../../../shared/interface";
|
|
4
4
|
export declare const Route = "google";
|
|
5
|
-
export interface IGetUserData extends Pick<DocumentHeader,
|
|
5
|
+
export interface IGetUserData extends Pick<DocumentHeader, "document_number" | "owner_number" | "billing_persona_nif" | "billing_persona_name" | "billing_persona_email" | "billing_persona_telephone" | "billing_persona_address_street" | "billing_persona_address_locality" | "billing_persona_address_postal_code" | "billing_persona_address_country_name" | "delivery_persona_name" | "delivery_persona_email" | "delivery_persona_telephone" | "delivery_persona_address_street" | "delivery_persona_address_locality" | "delivery_persona_address_postal_code" | "delivery_persona_address_country_name"> {
|
|
6
6
|
emission_date: string;
|
|
7
7
|
store_operator_id: string | null;
|
|
8
8
|
store_operator_name: string | null;
|
|
9
9
|
store_operator_number: number | null;
|
|
10
10
|
reason_for_exemption_name: string | null;
|
|
11
|
-
contact_persona_name: Persona[
|
|
12
|
-
contact_persona_email: Persona[
|
|
13
|
-
contact_persona_telephone: Persona[
|
|
11
|
+
contact_persona_name: Persona["name"];
|
|
12
|
+
contact_persona_email: Persona["email"];
|
|
13
|
+
contact_persona_telephone: Persona["telephone"];
|
|
14
14
|
}
|
|
15
15
|
export interface IUpdateRequest {
|
|
16
16
|
document_name: string;
|
|
@@ -22,8 +22,8 @@ export interface ICloneRequest {
|
|
|
22
22
|
export interface ICloneResponse {
|
|
23
23
|
spreadsheetId: string;
|
|
24
24
|
}
|
|
25
|
-
export type IGetProductGroup =
|
|
26
|
-
export type IGetProductType =
|
|
25
|
+
export type IGetProductGroup = "cortinado" | "tapete" | "estore" | "estofo" | "almofada" | "outros" | "calhas&varões" | "papel" | "varoes" | "terceiros";
|
|
26
|
+
export type IGetProductType = "confecção" | "calha" | "tecido 1" | "tecido 2" | "varoes" | "livre" | "papel";
|
|
27
27
|
export interface IGetProduct {
|
|
28
28
|
index: number;
|
|
29
29
|
group: IGetProductGroup;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Observation, ObservationType } from "../../../shared/entities/integration";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Observation;
|
|
4
4
|
export declare const Route = "observation";
|
|
5
5
|
export interface ICreateRequest {
|
|
@@ -40,4 +40,4 @@ export interface IRepository {
|
|
|
40
40
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
41
41
|
}
|
|
42
42
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
43
|
-
export type IApi = Omit<IRepository,
|
|
43
|
+
export type IApi = Omit<IRepository, "findById" | "findByQuery">;
|