@nomalism-com/types 1.3.38 → 1.3.40
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.js +958 -1023
- package/dist/main.d.ts +16 -1
- package/dist/modules/document/CAT/interfaces.d.ts +12 -0
- package/dist/modules/document/CAT/route.schema.d.ts +3 -0
- package/dist/modules/document/NRCL/interface.d.ts +1 -3
- package/dist/modules/document/billOfLading/interfaces.d.ts +3 -0
- package/dist/modules/document/inventario/interface.d.ts +0 -2
- package/dist/modules/document/materialEntrance/interfaces.d.ts +11 -6
- package/dist/modules/document/order/interfaces.d.ts +5 -2
- package/dist/modules/document/order/route.schema.d.ts +1 -0
- 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 +1 -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/llm/llm/interfaces.d.ts +5 -0
- 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/sms/smsSender/interfaces.d.ts +42 -0
- package/dist/modules/sms/smsTemplate/interfaces.d.ts +29 -0
- package/dist/modules/sms/smsTemplate/route.schema.d.ts +5 -0
- 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 +2 -3
- package/dist/modules/stock/dashboard/interface.d.ts +20 -2
- package/dist/modules/stock/dashboard/route.schema.d.ts +1 -0
- 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/mobilePrint/interface.d.ts +13 -0
- package/dist/modules/stock/mobilePrint/route.schema.d.ts +2 -0
- package/dist/modules/stock/prison/interface.d.ts +0 -2
- package/dist/modules/stock/productGoogleSheets/interface.d.ts +7 -4
- package/dist/modules/stock/productGoogleSheets/route.schema.d.ts +2 -1
- package/dist/modules/stock/productImage/interface.d.ts +0 -2
- package/dist/modules/stock/productLocation/interface.d.ts +18 -0
- 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 +5 -6
- package/dist/modules/supply/documentHeader/interfaces.d.ts +6 -19
- package/dist/modules/supply/documentHeader/route.schema.d.ts +0 -1
- package/dist/modules/supply/documentHeaderHistory/interfaces.d.ts +1 -3
- package/dist/modules/supply/documentHeaderSubscriber/interface.d.ts +2 -4
- package/dist/modules/supply/documentHeaderSurvey/interfaces.d.ts +37 -4
- package/dist/modules/supply/documentHeaderSurvey/route.schema.d.ts +2 -0
- package/dist/modules/supply/documentLine/interfaces.d.ts +5 -4
- package/dist/modules/supply/documentLine/route.schema.d.ts +2 -1
- 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 +3 -3
- package/dist/modules/supply/externalDocumentHeader/interface.d.ts +0 -2
- 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/portal/interface.d.ts +6 -1
- package/dist/modules/ui/portal/route.schema.d.ts +1 -0
- package/dist/modules/ui/sideMenu/interface.d.ts +2 -0
- package/dist/modules/ui/sidemenuHighlight/interface.d.ts +34 -0
- package/dist/modules/ui/sidemenuHighlight/route.schema.d.ts +3 -0
- package/dist/modules/user/bankData/interface.d.ts +0 -2
- package/dist/modules/user/chatSubscribers/interfaces.d.ts +16 -3
- package/dist/modules/user/chatSubscribers/route.schema.d.ts +3 -0
- 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 -1
- package/dist/modules/user/segmentsArea/interface.d.ts +0 -2
- package/dist/modules/user/sessions/interface.d.ts +5 -0
- package/dist/modules/user/shippings/interface.d.ts +0 -2
- package/dist/modules/user/storeOperator/interface.d.ts +5 -2
- package/dist/modules/user/storeOperator/route.schema.d.ts +1 -0
- package/dist/modules/user/swift/interface.d.ts +0 -2
- package/dist/modules/user/systemModule/interface.d.ts +43 -0
- package/dist/modules/user/systemModule/route.schema.d.ts +3 -0
- package/dist/modules/user/tenant/interface.d.ts +0 -2
- package/dist/modules/user/theme/interfaces.d.ts +0 -2
- package/dist/modules/user/timeSheet/interfaces.d.ts +52 -0
- package/dist/modules/user/timeSheet/route.schema.d.ts +6 -0
- 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 +3 -3
- 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/dist/modules/view/webSocket/interfaces.d.ts +117 -0
- package/dist/shared/entities/sms.d.ts +31 -0
- package/dist/shared/entities/stock.d.ts +21 -1
- package/dist/shared/entities/user.d.ts +32 -42
- package/dist/shared/interface.d.ts +55 -13
- package/package.json +9 -9
|
@@ -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';
|
|
@@ -26,6 +24,7 @@ export declare const DocumentTypeCodeTypeEnum: {
|
|
|
26
24
|
GT: 'GT';
|
|
27
25
|
RE: 'RE';
|
|
28
26
|
LNC: 'LNC';
|
|
27
|
+
EST: 'EST';
|
|
29
28
|
NPC: 'NPC';
|
|
30
29
|
QECI: 'QECI';
|
|
31
30
|
OPI: 'OPI';
|
|
@@ -70,6 +69,7 @@ export declare const DocumentTypeCodeTypeEnum: {
|
|
|
70
69
|
FTO: 'FTO';
|
|
71
70
|
FRO: 'FRO';
|
|
72
71
|
REO: 'REO';
|
|
72
|
+
CAT: 'CAT';
|
|
73
73
|
};
|
|
74
74
|
export type IDocumentTypeCodeType = (typeof DocumentTypeCodeTypeEnum)[keyof typeof DocumentTypeCodeTypeEnum];
|
|
75
75
|
export declare const documentTypeCodeTypes: string[];
|
|
@@ -2,8 +2,6 @@ import * as IShared from '../../../shared/interface';
|
|
|
2
2
|
import { ExternalDocumentHeader } from '../../../shared/entities/stock';
|
|
3
3
|
export type Entity = ExternalDocumentHeader;
|
|
4
4
|
export declare const Route = "external_document_header";
|
|
5
|
-
export declare const UpperName = "ExternalDocumentHeader";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
5
|
export interface IFindByOwnerIdItem {
|
|
8
6
|
external_document_header_id: string | null;
|
|
9
7
|
document_header_id: string;
|
|
@@ -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;
|
|
@@ -13,6 +13,7 @@ export interface IPublicDocument {
|
|
|
13
13
|
store_operator_name: string;
|
|
14
14
|
user_type: IDocumentTypeUserType;
|
|
15
15
|
document_total: number;
|
|
16
|
+
document_state: string;
|
|
16
17
|
other_personas: ChatSubscriber.IPersona[];
|
|
17
18
|
}
|
|
18
19
|
export interface IPublicOtherDocument {
|
|
@@ -33,6 +34,10 @@ export interface IPublicFindBySubscriberId {
|
|
|
33
34
|
chat: IChatBalloon[];
|
|
34
35
|
documents: IPublicOtherDocument[];
|
|
35
36
|
}
|
|
37
|
+
export interface IPublicFindBySubscriberIdRequest {
|
|
38
|
+
id: string;
|
|
39
|
+
document_header_id?: string;
|
|
40
|
+
}
|
|
36
41
|
export declare enum IPublicDocumentHeaderNoteType {
|
|
37
42
|
Provider = "Provider",
|
|
38
43
|
Client = "Client"
|
|
@@ -55,7 +60,7 @@ export interface PublicDocumentHeaderNoteUpdateRequest {
|
|
|
55
60
|
note: string;
|
|
56
61
|
}
|
|
57
62
|
export interface IRepository {
|
|
58
|
-
publicFindBySubscriberId(params:
|
|
63
|
+
publicFindBySubscriberId(params: IPublicFindBySubscriberIdRequest): Promise<IPublicFindBySubscriberId>;
|
|
59
64
|
publicCreateDocumentHeaderNote: (data: PublicDocumentHeaderNoteCreateRequest[]) => Promise<PublicDocumentHeaderNote[]>;
|
|
60
65
|
publicUpdateDocumentHeaderNote: (selector: IShared.IFindByIdRequest, data: PublicDocumentHeaderNoteUpdateRequest[]) => Promise<PublicDocumentHeaderNote[]>;
|
|
61
66
|
}
|
|
@@ -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;
|
|
@@ -23,6 +24,7 @@ export interface IFindByDocumentLineStateResponse {
|
|
|
23
24
|
identifier: string | null;
|
|
24
25
|
created_at: Date;
|
|
25
26
|
created_by: string;
|
|
27
|
+
seller: string;
|
|
26
28
|
who_handles: string | null;
|
|
27
29
|
tags: string | null;
|
|
28
30
|
adjudicated: boolean;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { SidemenuHightlight } from '../../../shared/entities/stock';
|
|
2
|
+
import * as IShared from '../../../shared/interface';
|
|
3
|
+
import type { IDocumentTypeUserType } from '../../supply/documentType/interfaces';
|
|
4
|
+
export declare const Route = "sidemenu_highlight";
|
|
5
|
+
export type Entity = SidemenuHightlight;
|
|
6
|
+
export interface IHighlightItem {
|
|
7
|
+
user_type: IDocumentTypeUserType;
|
|
8
|
+
state: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const highlightValueSeparator = "|:|";
|
|
11
|
+
/** Serialize / parse helpers for the composite "user_type|:|state" value. */
|
|
12
|
+
export declare const buildHighlightValue: (item: IHighlightItem) => string;
|
|
13
|
+
export declare const parseHighlightValue: (value: string) => IHighlightItem | null;
|
|
14
|
+
export interface IFindResponseItem {
|
|
15
|
+
store_operator_id: string;
|
|
16
|
+
values: string[];
|
|
17
|
+
}
|
|
18
|
+
export interface IFindByStoreOperatorIdRequest {
|
|
19
|
+
store_operator_id: string;
|
|
20
|
+
}
|
|
21
|
+
export interface IFindByStoreOperatorIdResponse {
|
|
22
|
+
store_operator_id: string;
|
|
23
|
+
values: string[];
|
|
24
|
+
}
|
|
25
|
+
export interface ISetStoreOperatorHighlightsRequest {
|
|
26
|
+
store_operator_id: string;
|
|
27
|
+
values: string[];
|
|
28
|
+
}
|
|
29
|
+
export interface IRepository {
|
|
30
|
+
find(): Promise<IFindResponseItem[]>;
|
|
31
|
+
findByStoreOperatorId(selector: IFindByStoreOperatorIdRequest): Promise<IFindByStoreOperatorIdResponse>;
|
|
32
|
+
setStoreOperatorHighlights(data: ISetStoreOperatorHighlightsRequest): Promise<void>;
|
|
33
|
+
}
|
|
34
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -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[];
|
|
@@ -12,22 +10,37 @@ export interface IFindDocumentHeaderSubscribersRequest {
|
|
|
12
10
|
owner_id?: string;
|
|
13
11
|
chat_document_header_id: string;
|
|
14
12
|
}
|
|
13
|
+
export interface IFindDocumentHeaderSubscribersByLanguageRequest {
|
|
14
|
+
chat_document_header_id: string;
|
|
15
|
+
language_id: string;
|
|
16
|
+
}
|
|
15
17
|
export interface IFindSubscribedDocumentHeadersRequest {
|
|
16
18
|
owner_id: string;
|
|
17
19
|
}
|
|
20
|
+
export interface IFindByEmailTokenRequest {
|
|
21
|
+
token: string;
|
|
22
|
+
}
|
|
23
|
+
export interface IPublicAuthenticateByEmailTokenRequest {
|
|
24
|
+
token: string;
|
|
25
|
+
}
|
|
18
26
|
export type IPersona = Pick<Persona, 'id' | 'external' | 'name' | 'email' | 'telephone' | 'language_id'>;
|
|
27
|
+
export type IPersonaWithToken = IPersona & Pick<Persona, 'email_access_token'>;
|
|
19
28
|
export interface IEntityWithPersona extends Pick<ChatSubscriber, 'id' | 'chat_document_header_id'> {
|
|
20
|
-
persona:
|
|
29
|
+
persona: IPersonaWithToken;
|
|
21
30
|
}
|
|
22
31
|
export interface IEntityWithPersonaAndSubscriptions extends IPersona {
|
|
23
32
|
subscriptions: Pick<Entity, 'id' | 'chat_document_header_id'>[];
|
|
24
33
|
}
|
|
25
34
|
export interface IRepository {
|
|
26
35
|
findDocumentHeaderSubscribers(selector: IFindDocumentHeaderSubscribersRequest): Promise<IEntityWithPersona[]>;
|
|
36
|
+
findDocumentHeaderSubscribersByLanguage(selector: IFindDocumentHeaderSubscribersByLanguageRequest): Promise<string[]>;
|
|
27
37
|
findSubscribedDocumentHeaders(selector: IFindSubscribedDocumentHeadersRequest): Promise<IEntityWithPersonaAndSubscriptions>;
|
|
28
38
|
findById(selector: IShared.IFindByIdRequest): Promise<IEntityWithPersonaAndSubscriptions>;
|
|
39
|
+
findByEmailToken(selector: IFindByEmailTokenRequest): Promise<IEntityWithPersonaAndSubscriptions>;
|
|
40
|
+
publicAuthenticateByEmailToken(selector: IPublicAuthenticateByEmailTokenRequest): Promise<string | null>;
|
|
29
41
|
createOrUpdate(data: ICreateOrUpdateRequest): Promise<string>;
|
|
30
42
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
31
43
|
deleteByDocumentHeader(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
44
|
+
publicAuthenticate(selector: IShared.IFindByIdRequest): Promise<string | null>;
|
|
32
45
|
}
|
|
33
46
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import joi from 'joi';
|
|
2
|
+
import { type IFindDocumentHeaderSubscribersByLanguageRequest } from './interfaces';
|
|
2
3
|
export declare const createOrUpdateBody: joi.ObjectSchema<any>;
|
|
3
4
|
export declare const findDocumentHeaderSubscribersQuery: joi.ObjectSchema<any>;
|
|
5
|
+
export declare const findDocumentHeaderSubscribersByLanguageQuery: joi.ObjectSchema<IFindDocumentHeaderSubscribersByLanguageRequest>;
|
|
4
6
|
export declare const findSubscribedDocumentHeadersQuery: joi.ObjectSchema<any>;
|
|
7
|
+
export declare const emailTokenParam: joi.ObjectSchema<any>;
|
|
@@ -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
|
export declare const ReasonForExemptionTypeEnum: {
|
|
8
6
|
product: 'product';
|
|
9
7
|
client: 'client';
|
|
@@ -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
|
}
|
|
@@ -10,9 +11,13 @@ export interface ICreateResponse {
|
|
|
10
11
|
expiresInRefreshToken: number;
|
|
11
12
|
expired_password_change_limit: boolean;
|
|
12
13
|
}
|
|
14
|
+
export interface ILogoutRequest {
|
|
15
|
+
token: string;
|
|
16
|
+
}
|
|
13
17
|
export interface IRepository {
|
|
14
18
|
create(data: ICreateRequest): Promise<ICreateResponse>;
|
|
15
19
|
}
|
|
16
20
|
export interface IController {
|
|
17
21
|
create(data: ICreateRequest, ip: string): Promise<ICreateResponse>;
|
|
22
|
+
logout(data: ILogoutRequest): Promise<void>;
|
|
18
23
|
}
|
|
@@ -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,12 +2,11 @@ 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'>;
|
|
10
8
|
main_persona: Pick<Persona, 'id' | 'name' | 'email'>;
|
|
9
|
+
sidemenu_highlights: string[];
|
|
11
10
|
}
|
|
12
11
|
export interface ICreateRequest {
|
|
13
12
|
main_persona_name: string;
|
|
@@ -29,6 +28,9 @@ export interface IUpdatePasswordRequest {
|
|
|
29
28
|
password: string;
|
|
30
29
|
oldPassword: string;
|
|
31
30
|
}
|
|
31
|
+
export interface IUpdateOwnPinRequest {
|
|
32
|
+
pin: string;
|
|
33
|
+
}
|
|
32
34
|
export interface IRepository {
|
|
33
35
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
34
36
|
find(): Promise<IFindResponse[]>;
|
|
@@ -37,5 +39,6 @@ export interface IRepository {
|
|
|
37
39
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
38
40
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
39
41
|
updatePassword(selector: IShared.IFindByIdRequest, data: IUpdatePasswordRequest): Promise<void>;
|
|
42
|
+
updateOwnPin(data: IUpdateOwnPinRequest): Promise<void>;
|
|
40
43
|
}
|
|
41
44
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -3,3 +3,4 @@ export declare const createBody: joi.ObjectSchema<any>;
|
|
|
3
3
|
export declare const updateStoreOperatorQuery: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const findWithPaginationQuery: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const updatePasswordBody: joi.ObjectSchema<any>;
|
|
6
|
+
export declare const updateOwnPinBody: joi.ObjectSchema<any>;
|
|
@@ -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>;
|