@nomalism-com/types 0.44.22 → 0.45.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 +259 -658
- package/dist/index.js +259 -658
- package/dist/modules/document/NRCL/interface.d.ts +1 -3
- package/dist/modules/document/billOfLading/interfaces.d.ts +1 -0
- package/dist/modules/document/inventario/interface.d.ts +0 -2
- package/dist/modules/document/materialEntrance/interfaces.d.ts +0 -2
- package/dist/modules/document/order/interfaces.d.ts +0 -2
- package/dist/modules/document/productionOrder/interfaces.d.ts +1 -0
- package/dist/modules/document/proforma/interfaces.d.ts +1 -0
- package/dist/modules/document/propostaFornecedor/interfaces.d.ts +1 -0
- package/dist/modules/document/propostaSheets/interface.d.ts +1 -3
- package/dist/modules/document/providerCreditNoteFromReturn/interfaces.d.ts +1 -0
- package/dist/modules/document/providerFinancialCreditNote/interfaces.d.ts +1 -0
- package/dist/modules/document/providerServiceInvoice/interfaces.d.ts +1 -0
- package/dist/modules/document/purchase/interfaces.d.ts +0 -2
- package/dist/modules/document/quebra/interfaces.d.ts +0 -2
- package/dist/modules/document/returnToProvider/interface.d.ts +0 -2
- package/dist/modules/document/transformado/interfaces.d.ts +0 -2
- package/dist/modules/document/upfrontReturn/interfaces.d.ts +0 -2
- package/dist/modules/documentManagement/multimedia/interfaces.d.ts +0 -2
- package/dist/modules/integration/emailLog/interfaces.d.ts +0 -2
- package/dist/modules/integration/emailTemplate/interfaces.d.ts +0 -2
- package/dist/modules/integration/emailTemplateAttachment/interfaces.d.ts +0 -2
- package/dist/modules/integration/emailVerification/interfaces.d.ts +0 -2
- package/dist/modules/integration/googleFilePermission/interfaces.d.ts +0 -2
- package/dist/modules/integration/googleSheets/interfaces.d.ts +0 -2
- package/dist/modules/integration/observation/interfaces.d.ts +0 -2
- package/dist/modules/integration/observationType/interfaces.d.ts +1 -3
- package/dist/modules/integration/patchNotes/interfaces.d.ts +0 -2
- package/dist/modules/integration/projectInfo/interfaces.d.ts +0 -2
- package/dist/modules/integration/settings/interfaces.d.ts +0 -2
- package/dist/modules/print/npc/interfaces.d.ts +0 -2
- package/dist/modules/print/printer/interfaces.d.ts +0 -2
- package/dist/modules/print/schedulePrintJob/interfaces.d.ts +0 -2
- package/dist/modules/stock/accountCode/interface.d.ts +0 -2
- package/dist/modules/stock/chat/interfaces.d.ts +0 -2
- package/dist/modules/stock/chatRapidMessage/interface.d.ts +1 -3
- package/dist/modules/stock/conferirEncomenda/interface.d.ts +0 -2
- package/dist/modules/stock/dashboard/interface.d.ts +0 -2
- package/dist/modules/stock/file/interface.d.ts +0 -2
- package/dist/modules/stock/gmails/interface.d.ts +0 -2
- package/dist/modules/stock/googleCalendar/interface.d.ts +0 -2
- package/dist/modules/stock/googleSheetPool/interface.d.ts +0 -2
- package/dist/modules/stock/location/interface.d.ts +0 -2
- package/dist/modules/stock/prison/interface.d.ts +0 -2
- package/dist/modules/stock/productGoogleSheets/interface.d.ts +0 -2
- package/dist/modules/stock/productImage/interface.d.ts +0 -2
- package/dist/modules/stock/promotion/interface.d.ts +0 -2
- package/dist/modules/stock/promotionAssoc/interface.d.ts +0 -2
- package/dist/modules/stock/queryList/interfaces.d.ts +0 -2
- package/dist/modules/stock/queryParameter/interfaces.d.ts +0 -2
- package/dist/modules/stock/recurrentTasks/interface.d.ts +0 -2
- package/dist/modules/stock/returnReason/interfaces.d.ts +0 -2
- package/dist/modules/stock/savedEmPicking/interfaces.d.ts +0 -2
- package/dist/modules/stock/savedProviderProposal/interfaces.d.ts +0 -2
- package/dist/modules/stock/stockMovement/interface.d.ts +0 -2
- package/dist/modules/stock/tag/interface.d.ts +0 -2
- package/dist/modules/stock/task/interface.d.ts +0 -2
- package/dist/modules/stock/taskMessage/interface.d.ts +0 -2
- package/dist/modules/stock/taskRead/interface.d.ts +0 -2
- package/dist/modules/stock/typeOfLocation/interface.d.ts +0 -2
- package/dist/modules/stock/unitOfMeasure/interface.d.ts +0 -2
- package/dist/modules/stock/vatTax/interface.d.ts +0 -2
- package/dist/modules/stock/vatTaxZone/interface.d.ts +0 -2
- package/dist/modules/stock/vatValidation/interfaces.d.ts +0 -2
- package/dist/modules/stock/workflow/interfaces.d.ts +0 -2
- package/dist/modules/supply/currentAccount/interface.d.ts +0 -2
- package/dist/modules/supply/documentHeader/interfaces.d.ts +2 -3
- package/dist/modules/supply/documentHeaderHistory/interfaces.d.ts +1 -3
- package/dist/modules/supply/documentHeaderSubscriber/interface.d.ts +1 -3
- package/dist/modules/supply/documentHeaderSurvey/interfaces.d.ts +1 -3
- package/dist/modules/supply/documentLine/interfaces.d.ts +1 -3
- package/dist/modules/supply/documentLineAssoc/interfaces.d.ts +1 -3
- package/dist/modules/supply/documentLineMT/interface.d.ts +0 -2
- package/dist/modules/supply/documentLineNote/interfaces.d.ts +1 -3
- package/dist/modules/supply/documentLineRM/interface.d.ts +0 -2
- package/dist/modules/supply/documentSet/interface.d.ts +0 -2
- package/dist/modules/supply/documentType/interfaces.d.ts +1 -3
- package/dist/modules/supply/externalDocumentType/interface.d.ts +0 -2
- package/dist/modules/supply/orderManagement/interface.d.ts +0 -2
- package/dist/modules/supply/payment/interface.d.ts +0 -2
- package/dist/modules/supply/paymentBatch/interface.d.ts +1 -3
- package/dist/modules/supply/preSale/interface.d.ts +0 -2
- package/dist/modules/supply/preSaleProduct/interface.d.ts +0 -2
- package/dist/modules/supply/schedule/interface.d.ts +0 -2
- package/dist/modules/supply/startDocumentHeaderLastUpdate/interface.d.ts +0 -2
- package/dist/modules/tickets/channel/interfaces.d.ts +0 -2
- package/dist/modules/tickets/clt/interfaces.d.ts +0 -2
- package/dist/modules/tickets/language/interfaces.d.ts +0 -2
- package/dist/modules/tickets/tickets/interfaces.d.ts +0 -2
- package/dist/modules/ui/sideMenu/interface.d.ts +1 -0
- package/dist/modules/user/bankData/interface.d.ts +0 -2
- package/dist/modules/user/chatSubscribers/interfaces.d.ts +0 -2
- package/dist/modules/user/clientType/interface.d.ts +0 -2
- package/dist/modules/user/clients/interface.d.ts +0 -2
- package/dist/modules/user/commissioner/interface.d.ts +0 -2
- package/dist/modules/user/country/interface.d.ts +0 -2
- package/dist/modules/user/deliveryMethods/interfaces.d.ts +0 -2
- package/dist/modules/user/favorites/interfaces.d.ts +0 -2
- package/dist/modules/user/language/interface.d.ts +0 -2
- package/dist/modules/user/maturityDates/interfaces.d.ts +0 -2
- package/dist/modules/user/paymentMethods/interfaces.d.ts +0 -2
- package/dist/modules/user/persona/interface.d.ts +0 -2
- package/dist/modules/user/providerType/interface.d.ts +0 -2
- package/dist/modules/user/providers/interface.d.ts +0 -2
- package/dist/modules/user/purchaseConditions/interface.d.ts +0 -2
- package/dist/modules/user/reasonForExemption/interface.d.ts +0 -2
- package/dist/modules/user/refreshToken/interface.d.ts +1 -0
- package/dist/modules/user/segmentsArea/interface.d.ts +0 -2
- package/dist/modules/user/sessions/interface.d.ts +2 -0
- package/dist/modules/user/shippings/interface.d.ts +0 -2
- package/dist/modules/user/storeOperator/interface.d.ts +0 -2
- package/dist/modules/user/swift/interface.d.ts +0 -2
- package/dist/modules/user/tenant/interface.d.ts +0 -2
- package/dist/modules/user/theme/interfaces.d.ts +0 -2
- package/dist/modules/user/userPositions/interface.d.ts +0 -2
- package/dist/modules/user/userTokens/interface.d.ts +0 -2
- package/dist/modules/user/users/interface.d.ts +0 -2
- package/dist/modules/user/vehicles/interfaces.d.ts +0 -2
- package/dist/modules/user/zipCode/interfaces.d.ts +0 -2
- package/dist/modules/view/adminPanel/interfaces.d.ts +0 -2
- package/dist/modules/view/errorLog/interfaces.d.ts +1 -3
- package/package.json +3 -3
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { VatValidation } from '../../../shared/entities/stock';
|
|
2
2
|
export type Entity = VatValidation;
|
|
3
3
|
export declare const Route = "vat_validation";
|
|
4
|
-
export declare const UpperName = "VatValidation";
|
|
5
|
-
export declare const LowerName: string;
|
|
6
4
|
export interface IRepository {
|
|
7
5
|
findByLatest(nif: string): Promise<Entity | null>;
|
|
8
6
|
}
|
|
@@ -4,8 +4,6 @@ import * as DocumentType from '../../supply/documentType/interfaces';
|
|
|
4
4
|
import { IDocumentTypeUserType } from '../../supply/documentType/interfaces';
|
|
5
5
|
export type Entity = Workflow;
|
|
6
6
|
export declare const Route = "workflow";
|
|
7
|
-
export declare const UpperName = "Workflow";
|
|
8
|
-
export declare const LowerName: string;
|
|
9
7
|
export type IFindRequest = Record<string, unknown>;
|
|
10
8
|
export interface ICreateRequest {
|
|
11
9
|
from_document_type_id: number;
|
|
@@ -4,8 +4,6 @@ import * as IObservation from '../../integration/observation/interfaces';
|
|
|
4
4
|
import { type ICreateFromHeaderRequest } from '../documentHeader/interfaces';
|
|
5
5
|
export type Entity = Payment;
|
|
6
6
|
export declare const Route = "payment";
|
|
7
|
-
export declare const UpperName = "Payment";
|
|
8
|
-
export declare const LowerName: string;
|
|
9
7
|
type IEntityExtended = Entity;
|
|
10
8
|
export type IFindByIdResponse = Omit<IEntityExtended, ''>;
|
|
11
9
|
export type IFindByOwnerIdResponse = Omit<IEntityExtended, ''>;
|
|
@@ -4,9 +4,7 @@ import * as IDocumentType from '../documentType/interfaces';
|
|
|
4
4
|
import * as IPayment from '../payment/interface';
|
|
5
5
|
import * as IProjectInfo from '../../integration/projectInfo/interfaces';
|
|
6
6
|
export type Entity = Omit<DocumentHeader, 'external_data'>;
|
|
7
|
-
export declare const Route = "
|
|
8
|
-
export declare const UpperName = "DocumentHeader";
|
|
9
|
-
export declare const LowerName: string;
|
|
7
|
+
export declare const Route = "document_header";
|
|
10
8
|
export type IDocumentHeaderVirtuals = DocumentHeaderVirtuals;
|
|
11
9
|
export type IStartDocumentHeaderVirtuals = StartDocumentHeaderVirtuals;
|
|
12
10
|
export interface ITaxEntry extends Pick<VatTax, 'name' | 'saft_code'> {
|
|
@@ -99,6 +97,7 @@ export interface ICreateRequest {
|
|
|
99
97
|
commissioner_id?: string | null;
|
|
100
98
|
commission_percentage?: number;
|
|
101
99
|
return_reason?: string | null;
|
|
100
|
+
seller?: string | null;
|
|
102
101
|
created_by?: string | null;
|
|
103
102
|
updated_by?: string | null;
|
|
104
103
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
2
|
import { DocumentHeaderHistory } from '../../../shared/entities/stock';
|
|
3
3
|
export type Entity = DocumentHeaderHistory;
|
|
4
|
-
export declare const Route = "
|
|
5
|
-
export declare const UpperName = "DocumentHeaderHistory";
|
|
6
|
-
export declare const LowerName: string;
|
|
4
|
+
export declare const Route = "document_header_history";
|
|
7
5
|
export type IFindByOwnerIdResponse = Omit<DocumentHeaderHistory, 'id' | 'document_header_id'>;
|
|
8
6
|
export interface IRepository {
|
|
9
7
|
findByOwnerId(selector: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
2
|
import { DocumentHeaderSubscriber } from '../../../shared/entities/stock';
|
|
3
3
|
export type Entity = DocumentHeaderSubscriber;
|
|
4
|
-
export declare const Route = "
|
|
5
|
-
export declare const UpperName = "DocumentHeaderSubscriber";
|
|
6
|
-
export declare const LowerName: string;
|
|
4
|
+
export declare const Route = "document_header_subscriber";
|
|
7
5
|
export interface IFindByOwnerRequest {
|
|
8
6
|
owner_id: string;
|
|
9
7
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import Nomalism from '../../..';
|
|
2
2
|
import { DocumentHeaderSurvey } from '../../../shared/entities/stock';
|
|
3
3
|
export type IEntity = DocumentHeaderSurvey;
|
|
4
|
-
export declare const Route = "
|
|
5
|
-
export declare const UpperName = "DocumentHeaderSurvey";
|
|
6
|
-
export declare const LowerName: string;
|
|
4
|
+
export declare const Route = "document_header_survey";
|
|
7
5
|
export type ICreateRequest = Pick<IEntity, 'owner_id' | 'document_header_id' | 'persona_id'>;
|
|
8
6
|
export type IResponse = IEntity;
|
|
9
7
|
export type IUpdateSentRequest = Pick<IEntity, 'document_header_id' | 'persona_id'>;
|
|
@@ -6,9 +6,7 @@ import type { IProductType, IProductState } from '../../stock/productGoogleSheet
|
|
|
6
6
|
import type { IGetProductType, IGetProductGroup } from '../../integration/googleSheets/interfaces';
|
|
7
7
|
import type { IMotivosDeEsperaData } from '../../document/order/interfaces';
|
|
8
8
|
export type Entity = DocumentLine;
|
|
9
|
-
export declare const Route = "
|
|
10
|
-
export declare const UpperName = "DocumentLine";
|
|
11
|
-
export declare const LowerName: string;
|
|
9
|
+
export declare const Route = "document_line";
|
|
12
10
|
export type IDocumentLineVirtuals = DocumentLineVirtuals;
|
|
13
11
|
export type IDocumentLineBaseVirtuals = DocumentLineBaseVirtuals;
|
|
14
12
|
export type IPromotions = Pick<ProductPromotionVirtuals, 'exclusive_to_location_id' | 'exclusive_to_client_id' | 'discount'>;
|
|
@@ -3,9 +3,7 @@ import { DocumentLineAssoc } from '../../../shared/entities/stock';
|
|
|
3
3
|
import * as IDocumentLine from '../documentLine/interfaces';
|
|
4
4
|
import { IDocumentLineVirtuals } from '../documentLine/interfaces';
|
|
5
5
|
export type Entity = DocumentLineAssoc;
|
|
6
|
-
export declare const Route = "
|
|
7
|
-
export declare const UpperName = "DocumentLineAssoc";
|
|
8
|
-
export declare const LowerName: string;
|
|
6
|
+
export declare const Route = "document_line_assoc";
|
|
9
7
|
export interface IEntityExtended extends Entity {
|
|
10
8
|
document_line: IDocumentLine.IEntityExtended;
|
|
11
9
|
}
|
|
@@ -2,8 +2,6 @@ import { DocumentLineMT } from '../../../shared/entities/stock';
|
|
|
2
2
|
import * as IShared from '../../../shared/interface';
|
|
3
3
|
export type Entity = DocumentLineMT;
|
|
4
4
|
export declare const Route = "document_line_mt";
|
|
5
|
-
export declare const UpperName = "DocumentLineMT";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export interface IUpdateRequest {
|
|
8
6
|
document_line_ids: string[];
|
|
9
7
|
mt_order_by?: string | null;
|
|
@@ -13,9 +13,7 @@ export declare const IDocumentLineNoteTypeEnum: {
|
|
|
13
13
|
export type IDocumentLineNoteType = (typeof IDocumentLineNoteTypeEnum)[keyof typeof IDocumentLineNoteTypeEnum];
|
|
14
14
|
export declare const documentLineNoteTypes: string[];
|
|
15
15
|
export type Entity = DocumentLineNote;
|
|
16
|
-
export declare const Route = "
|
|
17
|
-
export declare const UpperName = "DocumentLineNote";
|
|
18
|
-
export declare const LowerName: string;
|
|
16
|
+
export declare const Route = "document_line_note";
|
|
19
17
|
export interface IUpsertOrDeleteRequest {
|
|
20
18
|
document_line_id: string;
|
|
21
19
|
type: IDocumentLineNoteType;
|
|
@@ -2,8 +2,6 @@ import { DocumentLineRM } from '../../../shared/entities/stock';
|
|
|
2
2
|
import * as IShared from '../../../shared/interface';
|
|
3
3
|
export type Entity = DocumentLineRM;
|
|
4
4
|
export declare const Route = "document_line_rm";
|
|
5
|
-
export declare const UpperName = "DocumentLineRM";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export interface IUpdateRequest {
|
|
8
6
|
document_line_ids: string[];
|
|
9
7
|
rm_order_by?: string | null;
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { DocumentSet } from '../../../shared/entities/stock';
|
|
3
3
|
export type Entity = DocumentSet;
|
|
4
4
|
export declare const Route = "document_set";
|
|
5
|
-
export declare const UpperName = "DocumentSet";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export interface ICreateRequest {
|
|
8
6
|
document_set_id: number | null;
|
|
9
7
|
name: string;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
2
|
import { DocumentType, ExternalDocumentType } from '../../../shared/entities/stock';
|
|
3
3
|
export type Entity = DocumentType;
|
|
4
|
-
export declare const Route = "
|
|
5
|
-
export declare const UpperName = "DocumentType";
|
|
6
|
-
export declare const LowerName: string;
|
|
4
|
+
export declare const Route = "document_type";
|
|
7
5
|
export declare const DocumentTypeUserTypeEnum: {
|
|
8
6
|
client: 'client';
|
|
9
7
|
provider: 'provider';
|
|
@@ -2,8 +2,6 @@ import { ExternalDocumentType } from '../../../shared/entities/stock';
|
|
|
2
2
|
import * as IShared from '../../../shared/interface';
|
|
3
3
|
export type Entity = ExternalDocumentType;
|
|
4
4
|
export declare const Route = "external_document_type";
|
|
5
|
-
export declare const UpperName = "ExternalDocumentType";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export interface IRepository {
|
|
8
6
|
find(): Promise<Entity[]>;
|
|
9
7
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { IProductType, IProductState } from '../../stock/productGoogleSheets/interface';
|
|
2
2
|
export declare const Route = "order_management";
|
|
3
|
-
export declare const UpperName = "OrderManagement";
|
|
4
|
-
export declare const LowerName: string;
|
|
5
3
|
export interface IFindProviderProductsRequest {
|
|
6
4
|
provider_id: string;
|
|
7
5
|
}
|
|
@@ -4,8 +4,6 @@ import * as IUser from '../../user/users/interface';
|
|
|
4
4
|
import * as IObservation from '../../integration/observation/interfaces';
|
|
5
5
|
export type Entity = Payment;
|
|
6
6
|
export declare const Route = "payment";
|
|
7
|
-
export declare const UpperName = "Payment";
|
|
8
|
-
export declare const LowerName: string;
|
|
9
7
|
export type IEntityExtended = Entity;
|
|
10
8
|
export type IFindByIdResponse = Omit<IEntityExtended, ''>;
|
|
11
9
|
export type IFindByOwnerIdResponse = Omit<IEntityExtended, ''>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
2
|
import { Payment } from '../../../shared/entities/stock';
|
|
3
3
|
export type Entity = Payment;
|
|
4
|
-
export declare const Route = "
|
|
5
|
-
export declare const UpperName = "Payment";
|
|
6
|
-
export declare const LowerName: string;
|
|
4
|
+
export declare const Route = "payment_batch";
|
|
7
5
|
export interface IPaymentsNotExportedRequest {
|
|
8
6
|
whiteList?: string[];
|
|
9
7
|
}
|
|
@@ -4,8 +4,6 @@ import { PreSale, PreSaleProduct } from '../../../shared/entities/stock';
|
|
|
4
4
|
import * as DocumentLine from '../documentLine/interfaces';
|
|
5
5
|
export type Entity = PreSale;
|
|
6
6
|
export declare const Route = "pre_sale";
|
|
7
|
-
export declare const UpperName = "PreSale";
|
|
8
|
-
export declare const LowerName: string;
|
|
9
7
|
export type IFindRequest = Record<string, unknown>;
|
|
10
8
|
export type IFindResponse = Entity;
|
|
11
9
|
export interface IFindResponseWithCount extends Entity {
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { PreSaleProduct } from '../../../shared/entities/stock';
|
|
3
3
|
export type Entity = PreSaleProduct;
|
|
4
4
|
export declare const Route = "pre_sale_product";
|
|
5
|
-
export declare const UpperName = "PreSaleProduct";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export type IFindRequest = Record<string, unknown>;
|
|
8
6
|
export type IFindResponse = Entity;
|
|
9
7
|
export interface IRepository {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
2
|
export declare const Route = "schedule";
|
|
3
|
-
export declare const UpperName = "Schedule";
|
|
4
|
-
export declare const LowerName: string;
|
|
5
3
|
export declare const ScheduleTypeEnum: {
|
|
6
4
|
executeEncomendasStock: 'executeEncomendasStock';
|
|
7
5
|
executeEncomendasVA: 'executeEncomendasVA';
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { StartDocumentHeaderLastUpdateVirtuals } from '../../../shared/entities/stock';
|
|
3
3
|
export type Entity = StartDocumentHeaderLastUpdateVirtuals;
|
|
4
4
|
export declare const Route = "start_document_header_last_update";
|
|
5
|
-
export declare const UpperName = "StartDocumentHeaderLastUpdate";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export interface IRepository {
|
|
8
6
|
findById(selector: IShared.IFindByIdRequest): Promise<StartDocumentHeaderLastUpdateVirtuals | null>;
|
|
9
7
|
}
|
|
@@ -2,8 +2,6 @@ import { Channel } from '../../../shared/entities/tickets';
|
|
|
2
2
|
import * as IShared from '../../../shared/interface';
|
|
3
3
|
export type Entity = Channel;
|
|
4
4
|
export declare const Route = "channel";
|
|
5
|
-
export declare const UpperName = "Channel";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export interface IChannel {
|
|
8
6
|
id: number;
|
|
9
7
|
name: Record<string, string>;
|
|
@@ -2,8 +2,6 @@ import { CLT } from '../../../shared/entities/tickets';
|
|
|
2
2
|
import * as IShared from '../../../shared/interface';
|
|
3
3
|
export type Entity = CLT;
|
|
4
4
|
export declare const Route = "clt";
|
|
5
|
-
export declare const UpperName = "CLT";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export type ICreateRequest = Omit<Entity, 'id'>;
|
|
8
6
|
export type IUpdateRequest = ICreateRequest;
|
|
9
7
|
export interface IFindMinifiedRequest {
|
|
@@ -2,8 +2,6 @@ import { Language } from '../../../shared/entities/tickets';
|
|
|
2
2
|
import * as IShared from '../../../shared/interface';
|
|
3
3
|
export type Entity = Language;
|
|
4
4
|
export declare const Route = "tickets_language";
|
|
5
|
-
export declare const UpperName = "TicketsLanguage";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export type ICreateRequest = Omit<Entity, 'id'>;
|
|
8
6
|
export type IUpdateRequest = ICreateRequest;
|
|
9
7
|
export interface IFindMinifiedRequest {
|
|
@@ -3,8 +3,6 @@ import { IChannel } from '../channel/interfaces';
|
|
|
3
3
|
import * as IShared from '../../../shared/interface';
|
|
4
4
|
export type Entity = Tickets;
|
|
5
5
|
export declare const Route = "tickets";
|
|
6
|
-
export declare const UpperName = "Tickets";
|
|
7
|
-
export declare const LowerName: string;
|
|
8
6
|
export interface ILastTicketCalledToday {
|
|
9
7
|
language: Language;
|
|
10
8
|
text_to_read: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
2
|
import type { IDocumentTypeUserType } from '../../supply/documentType/interfaces';
|
|
3
|
+
export declare const Route = "sidemenu";
|
|
3
4
|
export interface IFindSideMenuCountersResponse {
|
|
4
5
|
counts: Record<string, number>;
|
|
5
6
|
timestamp: string;
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { BankData, Country, Swift } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = BankData;
|
|
4
4
|
export declare const Route = "bank_data";
|
|
5
|
-
export declare const UpperName = "BankData";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
interface IFindDetailedResponse extends Entity {
|
|
8
6
|
swift: Swift | null;
|
|
9
7
|
country: Country;
|
|
@@ -2,8 +2,6 @@ import { ChatSubscriber, Persona } from './../../../shared/entities/user';
|
|
|
2
2
|
import * as IShared from '../../../shared/interface';
|
|
3
3
|
export type Entity = ChatSubscriber;
|
|
4
4
|
export declare const Route = "chat_subscriber";
|
|
5
|
-
export declare const UpperName = "ChatSubscriber";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export interface ICreateOrUpdateRequest {
|
|
8
6
|
chat_document_header_id: string;
|
|
9
7
|
personas_ids: string[];
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { ClientType } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = ClientType;
|
|
4
4
|
export declare const Route = "client_type";
|
|
5
|
-
export declare const UpperName = "ClientType";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
type IFindDetailedResponse = Entity;
|
|
8
6
|
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
7
|
export type IFindRequest = Record<string, unknown>;
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { Clients, Users, Country, ReasonForExemption, ClientType, SegmentsArea, Language, Vehicles, DeliveryMethods, MaturityDates, PaymentMethods, Persona } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = Clients;
|
|
4
4
|
export declare const Route = "client";
|
|
5
|
-
export declare const UpperName = "Clients";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
interface IMainPersona extends Persona {
|
|
8
6
|
country: Country | null;
|
|
9
7
|
reason_for_exemption: ReasonForExemption | null;
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { type Commissioner, type Users, type Country, type Language, type PaymentMethods, type DeliveryMethods, type MaturityDates, type Vehicles, type Persona, type ReasonForExemption } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = Commissioner;
|
|
4
4
|
export declare const Route = "commissioner";
|
|
5
|
-
export declare const UpperName = "Commissioner";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
interface IMainPersona extends Persona {
|
|
8
6
|
country: Country | null;
|
|
9
7
|
reason_for_exemption: ReasonForExemption | null;
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { Country } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = Country;
|
|
4
4
|
export declare const Route = "country";
|
|
5
|
-
export declare const UpperName = "Country";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
type IFindDetailedResponse = Entity;
|
|
8
6
|
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
7
|
export type IFindRequest = {
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { DeliveryMethods } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = DeliveryMethods;
|
|
4
4
|
export declare const Route = "delivery_methods";
|
|
5
|
-
export declare const UpperName = "DeliveryMethods";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export interface ICreateRequest {
|
|
8
6
|
delivery_method_id: number;
|
|
9
7
|
name: string;
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { Favorites } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = Favorites;
|
|
4
4
|
export declare const Route = "favorites";
|
|
5
|
-
export declare const UpperName = "Favorites";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export interface ICreateRequest {
|
|
8
6
|
url: string;
|
|
9
7
|
}
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { Language } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = Language;
|
|
4
4
|
export declare const Route = "language";
|
|
5
|
-
export declare const UpperName = "Language";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
type IFindDetailedResponse = Entity;
|
|
8
6
|
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
7
|
export type IFindRequest = Record<string, unknown>;
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { MaturityDates } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = MaturityDates;
|
|
4
4
|
export declare const Route = "maturity_dates";
|
|
5
|
-
export declare const UpperName = "MaturityDates";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export interface ICreateRequest {
|
|
8
6
|
maturity_date_id: number;
|
|
9
7
|
name: string;
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { PaymentMethods } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = PaymentMethods;
|
|
4
4
|
export declare const Route = "payment_methods";
|
|
5
|
-
export declare const UpperName = "PaymentMethods";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export declare const PaymentMethodsSaftCodeEnum: {
|
|
8
6
|
CC: 'CC';
|
|
9
7
|
CD: 'CD';
|
|
@@ -2,8 +2,6 @@ import type * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import type { Persona, Country, ReasonForExemption } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = Persona;
|
|
4
4
|
export declare const Route = "persona";
|
|
5
|
-
export declare const UpperName = "Persona";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export interface IEntityExtended extends Entity {
|
|
8
6
|
formatted_address: string;
|
|
9
7
|
country: Country | null;
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { ProviderType } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = ProviderType;
|
|
4
4
|
export declare const Route = "provider_type";
|
|
5
|
-
export declare const UpperName = "ProviderType";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
type IFindDetailedResponse = Entity;
|
|
8
6
|
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
7
|
export type IFindRequest = Record<string, unknown>;
|
|
@@ -3,8 +3,6 @@ import { Providers, Users, Country, ReasonForExemption, Language, ProviderType,
|
|
|
3
3
|
import type { DocumentHeader } from '../../../shared/entities/stock';
|
|
4
4
|
export type Entity = Providers;
|
|
5
5
|
export declare const Route = "provider";
|
|
6
|
-
export declare const UpperName = "Providers";
|
|
7
|
-
export declare const LowerName: string;
|
|
8
6
|
interface IMainPersona extends Persona {
|
|
9
7
|
country: Country | null;
|
|
10
8
|
reason_for_exemption: ReasonForExemption | null;
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { PurchaseConditions } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = PurchaseConditions;
|
|
4
4
|
export declare const Route = "purchase_conditions";
|
|
5
|
-
export declare const UpperName = "PurchaseConditions";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
interface IFindDetailedResponse extends Entity {
|
|
8
6
|
}
|
|
9
7
|
export type IFindByIdResponse = Omit<IFindDetailedResponse, 'product_category'>;
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { ReasonForExemption } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = ReasonForExemption;
|
|
4
4
|
export declare const Route = "reason_for_exemption";
|
|
5
|
-
export declare const UpperName = "ReasonForExemption";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
type IFindDetailedResponse = Entity;
|
|
8
6
|
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
7
|
export type IFindRequest = Record<string, unknown>;
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { SegmentsArea } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = SegmentsArea;
|
|
4
4
|
export declare const Route = "segments_area";
|
|
5
|
-
export declare const UpperName = "SegmentsArea";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
type IFindDetailedResponse = Entity;
|
|
8
6
|
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
7
|
export type IFindRequest = Record<string, unknown>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as Users from '../users/interface';
|
|
2
|
+
export declare const Route = "session";
|
|
2
3
|
export interface ICreateRequest {
|
|
3
4
|
password: string;
|
|
4
5
|
}
|
|
@@ -15,4 +16,5 @@ export interface IRepository {
|
|
|
15
16
|
}
|
|
16
17
|
export interface IController {
|
|
17
18
|
create(data: ICreateRequest, ip: string): Promise<ICreateResponse>;
|
|
19
|
+
logout(): Promise<void>;
|
|
18
20
|
}
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { Shippings } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = Shippings;
|
|
4
4
|
export declare const Route = "shippings";
|
|
5
|
-
export declare const UpperName = "Shippings";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
type IFindDetailedResponse = Entity;
|
|
8
6
|
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
7
|
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
@@ -2,8 +2,6 @@ import type * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import type { StoreOperator, Users, Persona } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = StoreOperator;
|
|
4
4
|
export declare const Route = "store_operator";
|
|
5
|
-
export declare const UpperName = "StoreOperator";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export type IFindPaginatedRequest = IShared.IPaginationRequest & Pick<Entity, 'inactive'>;
|
|
8
6
|
export interface IFindResponse extends Pick<Entity, 'id' | 'number' | 'pin' | 'inactive' | 'superuser' | 'default_theme'> {
|
|
9
7
|
user: Pick<Users, 'id'>;
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { Swift } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = Swift;
|
|
4
4
|
export declare const Route = "swift";
|
|
5
|
-
export declare const UpperName = "Swift";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
type IFindDetailedResponse = Entity;
|
|
8
6
|
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
7
|
export type IFindRequest = Record<string, unknown>;
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { Tenant } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = Tenant;
|
|
4
4
|
export declare const Route = "tenant";
|
|
5
|
-
export declare const UpperName = "Tenant";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export interface ICreateRequest {
|
|
8
6
|
name: string;
|
|
9
7
|
customer_id: string;
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { Theme } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = Theme;
|
|
4
4
|
export declare const Route = "theme";
|
|
5
|
-
export declare const UpperName = "Theme";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export interface ISessionStorageColor {
|
|
8
6
|
name: string;
|
|
9
7
|
hex: string;
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { UserPositions } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = UserPositions;
|
|
4
4
|
export declare const Route = "user_positions";
|
|
5
|
-
export declare const UpperName = "UserPositions";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
type IFindDetailedResponse = Entity;
|
|
8
6
|
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
7
|
export type IFindRequest = Record<string, unknown>;
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { UserTokens } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = UserTokens;
|
|
4
4
|
export declare const Route = "user_token";
|
|
5
|
-
export declare const UpperName = "UserTokens";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export type IFindRequest = Record<string, unknown>;
|
|
8
6
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
9
7
|
}
|
|
@@ -3,8 +3,6 @@ import { Providers, Country, Language, ProviderType, ReasonForExemption, Persona
|
|
|
3
3
|
export type Entity = Users;
|
|
4
4
|
export type EntityWithoutPassword = Omit<Users, 'password'>;
|
|
5
5
|
export declare const Route = "users";
|
|
6
|
-
export declare const UpperName = "Users";
|
|
7
|
-
export declare const LowerName: string;
|
|
8
6
|
interface IMainPersona extends Persona {
|
|
9
7
|
country: Country | null;
|
|
10
8
|
reason_for_exemption: ReasonForExemption | null;
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { Vehicles } from '../../../shared/entities/user';
|
|
3
3
|
export type Entity = Vehicles;
|
|
4
4
|
export declare const Route = "vehicles";
|
|
5
|
-
export declare const UpperName = "Vehicles";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export interface ICreateRequest {
|
|
8
6
|
description: string;
|
|
9
7
|
vehicle_id: number;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ZipCode } from '../../../shared/entities/user';
|
|
2
2
|
export type Entity = ZipCode;
|
|
3
3
|
export declare const Route = "zip_code";
|
|
4
|
-
export declare const UpperName = "ZipCode";
|
|
5
|
-
export declare const LowerName: string;
|
|
6
4
|
export interface ICreateRequest {
|
|
7
5
|
postal_code: string;
|
|
8
6
|
address: string;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
export declare const Route = "
|
|
2
|
-
export declare const UpperName = "ErrorHandler";
|
|
3
|
-
export declare const LowerName: string;
|
|
1
|
+
export declare const Route = "error_log";
|
|
4
2
|
export declare const IErrorTypeEnum: {
|
|
5
3
|
prisma: 'prisma';
|
|
6
4
|
unhandled: 'unhandled';
|