@nomalism-com/types 1.1.1 → 1.1.2
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 +1518 -1625
- package/package.json +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/main.d.ts +0 -226
- package/dist/modules/document/billOfLading/interfaces.d.ts +0 -22
- package/dist/modules/document/billOfLading/route.schema.d.ts +0 -2
- package/dist/modules/document/inventario/interface.d.ts +0 -15
- package/dist/modules/document/inventario/route.schema.d.ts +0 -2
- package/dist/modules/document/materialEntrance/interfaces.d.ts +0 -134
- package/dist/modules/document/materialEntrance/route.schema.d.ts +0 -7
- package/dist/modules/document/order/interfaces.d.ts +0 -113
- package/dist/modules/document/order/route.schema.d.ts +0 -9
- package/dist/modules/document/productionOrder/interfaces.d.ts +0 -9
- package/dist/modules/document/productionOrder/route.schema.d.ts +0 -2
- package/dist/modules/document/proforma/interfaces.d.ts +0 -12
- package/dist/modules/document/proforma/route.schema.d.ts +0 -3
- package/dist/modules/document/propostaFornecedor/interfaces.d.ts +0 -13
- package/dist/modules/document/propostaFornecedor/route.schema.d.ts +0 -2
- package/dist/modules/document/propostaSheets/interface.d.ts +0 -74
- package/dist/modules/document/propostaSheets/route.schema.d.ts +0 -6
- package/dist/modules/document/providerCreditNoteFromReturn/interfaces.d.ts +0 -38
- package/dist/modules/document/providerCreditNoteFromReturn/route.schema.d.ts +0 -3
- package/dist/modules/document/providerFinancialCreditNote/interfaces.d.ts +0 -27
- package/dist/modules/document/providerFinancialCreditNote/route.schema.d.ts +0 -3
- package/dist/modules/document/providerServiceInvoice/interfaces.d.ts +0 -16
- package/dist/modules/document/providerServiceInvoice/route.schema.d.ts +0 -2
- package/dist/modules/document/purchase/interfaces.d.ts +0 -91
- package/dist/modules/document/purchase/route.schema.d.ts +0 -4
- package/dist/modules/document/quebra/interfaces.d.ts +0 -36
- package/dist/modules/document/quebra/route.schema.d.ts +0 -3
- package/dist/modules/document/returnToProvider/interface.d.ts +0 -40
- package/dist/modules/document/returnToProvider/route.schema.d.ts +0 -2
- package/dist/modules/document/transformado/interfaces.d.ts +0 -19
- package/dist/modules/document/transformado/route.schema.d.ts +0 -2
- package/dist/modules/document/upfrontReturn/interfaces.d.ts +0 -12
- package/dist/modules/document/upfrontReturn/route.schema.d.ts +0 -2
- package/dist/modules/documentManagement/multimedia/interfaces.d.ts +0 -16
- package/dist/modules/documentManagement/multimedia/route.schema.d.ts +0 -2
- package/dist/modules/integration/emailLog/interfaces.d.ts +0 -85
- package/dist/modules/integration/emailLog/route.schema.d.ts +0 -4
- package/dist/modules/integration/emailTemplate/interfaces.d.ts +0 -46
- package/dist/modules/integration/emailTemplate/route.schema.d.ts +0 -4
- package/dist/modules/integration/emailTemplateAttachment/interfaces.d.ts +0 -17
- package/dist/modules/integration/emailTemplateAttachment/route.schema.d.ts +0 -2
- package/dist/modules/integration/emailVerification/interfaces.d.ts +0 -23
- package/dist/modules/integration/emailVerification/route.schema.d.ts +0 -5
- package/dist/modules/integration/googleFilePermission/interfaces.d.ts +0 -26
- package/dist/modules/integration/googleFilePermission/route.schema.d.ts +0 -5
- package/dist/modules/integration/googleSheets/interfaces.d.ts +0 -54
- package/dist/modules/integration/googleSheets/route.schema.d.ts +0 -4
- package/dist/modules/integration/observation/interfaces.d.ts +0 -45
- package/dist/modules/integration/observation/route.schema.d.ts +0 -5
- package/dist/modules/integration/observationType/interfaces.d.ts +0 -27
- package/dist/modules/integration/observationType/route.schema.d.ts +0 -7
- package/dist/modules/integration/projectInfo/interfaces.d.ts +0 -16
- package/dist/modules/integration/projectInfo/route.schema.d.ts +0 -2
- package/dist/modules/integration/settings/interfaces.d.ts +0 -25
- package/dist/modules/integration/settings/route.schema.d.ts +0 -4
- package/dist/modules/print/npc/interfaces.d.ts +0 -30
- package/dist/modules/print/npc/route.schema.d.ts +0 -3
- package/dist/modules/print/printer/interfaces.d.ts +0 -38
- package/dist/modules/print/printer/route.schema.d.ts +0 -4
- package/dist/modules/print/schedulePrintJob/interfaces.d.ts +0 -39
- package/dist/modules/print/schedulePrintJob/route.schema.d.ts +0 -5
- package/dist/modules/stock/chat/interfaces.d.ts +0 -61
- package/dist/modules/stock/chat/route.schema.d.ts +0 -3
- package/dist/modules/stock/chatRapidMessage/interface.d.ts +0 -26
- package/dist/modules/stock/chatRapidMessage/route.schema.d.ts +0 -3
- package/dist/modules/stock/dashboard/interface.d.ts +0 -22
- package/dist/modules/stock/dashboard/route.schema.d.ts +0 -2
- package/dist/modules/stock/file/interface.d.ts +0 -32
- package/dist/modules/stock/file/route.schema.d.ts +0 -5
- package/dist/modules/stock/location/interface.d.ts +0 -58
- package/dist/modules/stock/location/route.schema.d.ts +0 -5
- package/dist/modules/stock/prison/interface.d.ts +0 -49
- package/dist/modules/stock/prison/route.schema.d.ts +0 -4
- package/dist/modules/stock/productGoogleSheets/interface.d.ts +0 -237
- package/dist/modules/stock/productGoogleSheets/route.schema.d.ts +0 -13
- package/dist/modules/stock/productImage/interface.d.ts +0 -44
- package/dist/modules/stock/productImage/route.schema.d.ts +0 -5
- package/dist/modules/stock/promotion/interface.d.ts +0 -42
- package/dist/modules/stock/promotion/route.schema.d.ts +0 -5
- package/dist/modules/stock/promotionAssoc/interface.d.ts +0 -40
- package/dist/modules/stock/promotionAssoc/route.schema.d.ts +0 -5
- package/dist/modules/stock/queryList/interfaces.d.ts +0 -44
- package/dist/modules/stock/queryList/route.schema.d.ts +0 -7
- package/dist/modules/stock/queryParameter/interfaces.d.ts +0 -51
- package/dist/modules/stock/queryParameter/route.schema.d.ts +0 -3
- package/dist/modules/stock/recurrentTasks/interface.d.ts +0 -9
- package/dist/modules/stock/returnReason/interfaces.d.ts +0 -19
- package/dist/modules/stock/returnReason/route.schema.d.ts +0 -3
- package/dist/modules/stock/savedEmPicking/interfaces.d.ts +0 -27
- package/dist/modules/stock/savedEmPicking/route.schema.d.ts +0 -5
- package/dist/modules/stock/savedProviderProposal/interfaces.d.ts +0 -23
- package/dist/modules/stock/savedProviderProposal/route.schema.d.ts +0 -3
- package/dist/modules/stock/sideMenu/interface.d.ts +0 -37
- package/dist/modules/stock/sideMenu/route.schema.d.ts +0 -3
- package/dist/modules/stock/stockMovement/interface.d.ts +0 -49
- package/dist/modules/stock/stockMovement/route.schema.d.ts +0 -3
- package/dist/modules/stock/task/interface.d.ts +0 -82
- package/dist/modules/stock/task/route.schema.d.ts +0 -4
- package/dist/modules/stock/taskMessage/interface.d.ts +0 -14
- package/dist/modules/stock/taskMessage/route.schema.d.ts +0 -3
- package/dist/modules/stock/taskRead/interface.d.ts +0 -13
- package/dist/modules/stock/taskRead/route.schema.d.ts +0 -3
- package/dist/modules/stock/typeOfLocation/interface.d.ts +0 -32
- package/dist/modules/stock/typeOfLocation/route.schema.d.ts +0 -5
- package/dist/modules/stock/unitOfMeasure/interface.d.ts +0 -42
- package/dist/modules/stock/unitOfMeasure/route.schema.d.ts +0 -5
- package/dist/modules/stock/vatTax/interface.d.ts +0 -34
- package/dist/modules/stock/vatTax/route.schema.d.ts +0 -5
- package/dist/modules/stock/vatTaxZone/interface.d.ts +0 -42
- package/dist/modules/stock/vatTaxZone/route.schema.d.ts +0 -5
- package/dist/modules/stock/vatValidation/interfaces.d.ts +0 -8
- package/dist/modules/stock/vatValidation/route.schema.d.ts +0 -2
- package/dist/modules/stock/workflow/interfaces.d.ts +0 -45
- package/dist/modules/stock/workflow/route.schema.d.ts +0 -4
- package/dist/modules/supply/batch/interface.d.ts +0 -0
- package/dist/modules/supply/documentHeader/interfaces.d.ts +0 -364
- package/dist/modules/supply/documentHeader/route.schema.d.ts +0 -15
- package/dist/modules/supply/documentLine/interfaces.d.ts +0 -145
- package/dist/modules/supply/documentLine/route.schema.d.ts +0 -9
- package/dist/modules/supply/documentLineAssoc/interfaces.d.ts +0 -34
- package/dist/modules/supply/documentLineAssoc/route.schema.d.ts +0 -3
- package/dist/modules/supply/documentLineMT/interface.d.ts +0 -19
- package/dist/modules/supply/documentLineMT/route.schema.d.ts +0 -2
- package/dist/modules/supply/documentLineNote/interfaces.d.ts +0 -33
- package/dist/modules/supply/documentLineNote/route.schema.d.ts +0 -6
- package/dist/modules/supply/documentLineRM/interface.d.ts +0 -25
- package/dist/modules/supply/documentLineRM/route.schema.d.ts +0 -2
- package/dist/modules/supply/documentSet/interface.d.ts +0 -27
- package/dist/modules/supply/documentSet/route.schema.d.ts +0 -3
- package/dist/modules/supply/documentType/interfaces.d.ts +0 -131
- package/dist/modules/supply/documentType/route.schema.d.ts +0 -3
- package/dist/modules/supply/externalDocumentHeader/interface.d.ts +0 -92
- package/dist/modules/supply/externalDocumentHeader/route.schema.d.ts +0 -8
- package/dist/modules/supply/externalDocumentType/interface.d.ts +0 -11
- package/dist/modules/supply/orderManagement/interface.d.ts +0 -41
- package/dist/modules/supply/orderManagement/route.schema.d.ts +0 -0
- package/dist/modules/supply/payment/interface.d.ts +0 -164
- package/dist/modules/supply/payment/route.schema.d.ts +0 -11
- package/dist/modules/supply/preSale/interface.d.ts +0 -71
- package/dist/modules/supply/preSale/route.schema.d.ts +0 -8
- package/dist/modules/supply/preSaleProduct/interface.d.ts +0 -12
- package/dist/modules/supply/preSaleProduct/route.schema.d.ts +0 -2
- package/dist/modules/supply/schedule/interface.d.ts +0 -23
- package/dist/modules/supply/schedule/route.schema.d.ts +0 -2
- package/dist/modules/supply/startDocumentHeaderLastUpdate/interface.d.ts +0 -10
- package/dist/modules/tickets/channel/interfaces.d.ts +0 -29
- package/dist/modules/tickets/channel/route.schema.d.ts +0 -3
- package/dist/modules/tickets/clt/interfaces.d.ts +0 -20
- package/dist/modules/tickets/clt/route.schema.d.ts +0 -3
- package/dist/modules/tickets/language/interfaces.d.ts +0 -20
- package/dist/modules/tickets/language/route.schema.d.ts +0 -3
- package/dist/modules/tickets/tickets/interfaces.d.ts +0 -68
- package/dist/modules/tickets/tickets/route.schema.d.ts +0 -3
- package/dist/modules/user/bankData/interface.d.ts +0 -42
- package/dist/modules/user/bankData/route.schema.d.ts +0 -5
- package/dist/modules/user/chatSubscribers/interfaces.d.ts +0 -25
- package/dist/modules/user/chatSubscribers/route.schema.d.ts +0 -2
- package/dist/modules/user/clientType/interface.d.ts +0 -30
- package/dist/modules/user/clientType/route.schema.d.ts +0 -6
- package/dist/modules/user/clients/interface.d.ts +0 -86
- package/dist/modules/user/clients/route.schema.d.ts +0 -5
- package/dist/modules/user/commissioner/interface.d.ts +0 -64
- package/dist/modules/user/commissioner/route.schema.d.ts +0 -5
- package/dist/modules/user/country/interface.d.ts +0 -35
- package/dist/modules/user/country/route.schema.d.ts +0 -5
- package/dist/modules/user/deliveryMethods/interfaces.d.ts +0 -23
- package/dist/modules/user/deliveryMethods/route.schema.d.ts +0 -3
- package/dist/modules/user/favorites/interfaces.d.ts +0 -22
- package/dist/modules/user/favorites/route.schema.d.ts +0 -8
- package/dist/modules/user/groupPermissions/interface.d.ts +0 -25
- package/dist/modules/user/groupPermissions/route.schema.d.ts +0 -2
- package/dist/modules/user/language/interface.d.ts +0 -30
- package/dist/modules/user/language/route.schema.d.ts +0 -5
- package/dist/modules/user/maturityDates/interfaces.d.ts +0 -25
- package/dist/modules/user/maturityDates/route.schema.d.ts +0 -3
- package/dist/modules/user/password/interfaces.d.ts +0 -15
- package/dist/modules/user/password/route.schema.d.ts +0 -3
- package/dist/modules/user/paymentMethods/interfaces.d.ts +0 -49
- package/dist/modules/user/paymentMethods/route.schema.d.ts +0 -3
- package/dist/modules/user/permissions/interface.d.ts +0 -25
- package/dist/modules/user/permissions/route.schema.d.ts +0 -2
- package/dist/modules/user/persona/interface.d.ts +0 -113
- package/dist/modules/user/persona/route.schema.d.ts +0 -7
- package/dist/modules/user/providerType/interface.d.ts +0 -30
- package/dist/modules/user/providerType/route.schema.d.ts +0 -5
- package/dist/modules/user/providers/interface.d.ts +0 -82
- package/dist/modules/user/providers/route.schema.d.ts +0 -5
- package/dist/modules/user/purchaseConditions/interface.d.ts +0 -37
- package/dist/modules/user/purchaseConditions/route.schema.d.ts +0 -5
- package/dist/modules/user/reasonForExemption/interface.d.ts +0 -34
- package/dist/modules/user/reasonForExemption/route.schema.d.ts +0 -5
- package/dist/modules/user/refreshToken/interface.d.ts +0 -15
- package/dist/modules/user/refreshToken/route.schema.d.ts +0 -2
- package/dist/modules/user/segmentsArea/interface.d.ts +0 -32
- package/dist/modules/user/segmentsArea/route.schema.d.ts +0 -5
- package/dist/modules/user/sessions/interface.d.ts +0 -19
- package/dist/modules/user/sessions/route.schema.d.ts +0 -2
- package/dist/modules/user/shippings/interface.d.ts +0 -38
- package/dist/modules/user/shippings/route.schema.d.ts +0 -5
- package/dist/modules/user/storeOperator/interface.d.ts +0 -74
- package/dist/modules/user/storeOperator/route.schema.d.ts +0 -7
- package/dist/modules/user/swift/interface.d.ts +0 -38
- package/dist/modules/user/swift/route.schema.d.ts +0 -5
- package/dist/modules/user/tenant/interface.d.ts +0 -49
- package/dist/modules/user/tenant/route.schema.d.ts +0 -3
- package/dist/modules/user/theme/interfaces.d.ts +0 -18
- package/dist/modules/user/theme/route.schema.d.ts +0 -2
- package/dist/modules/user/userPermissions/interface.d.ts +0 -23
- package/dist/modules/user/userPermissions/route.schema.d.ts +0 -2
- package/dist/modules/user/userPositions/interface.d.ts +0 -30
- package/dist/modules/user/userPositions/route.schema.d.ts +0 -5
- package/dist/modules/user/userTokens/interface.d.ts +0 -30
- package/dist/modules/user/userTokens/route.schema.d.ts +0 -3
- package/dist/modules/user/users/interface.d.ts +0 -114
- package/dist/modules/user/users/route.schema.d.ts +0 -7
- package/dist/modules/user/vehicles/interfaces.d.ts +0 -25
- package/dist/modules/user/vehicles/route.schema.d.ts +0 -3
- package/dist/modules/user/zipCode/interfaces.d.ts +0 -23
- package/dist/modules/user/zipCode/route.schema.d.ts +0 -3
- package/dist/modules/view/adminPanel/interfaces.d.ts +0 -140
- package/dist/modules/view/errorLog/interfaces.d.ts +0 -30
- package/dist/modules/view/errorLog/route.schema.d.ts +0 -2
- package/dist/shared/entities/documentManagement.d.ts +0 -15
- package/dist/shared/entities/integration.d.ts +0 -127
- package/dist/shared/entities/print.d.ts +0 -46
- package/dist/shared/entities/stock.d.ts +0 -1059
- package/dist/shared/entities/tickets.d.ts +0 -78
- package/dist/shared/entities/user.d.ts +0 -507
- package/dist/shared/errors/documentManagementErrors.d.ts +0 -14
- package/dist/shared/errors/integrationErrors.d.ts +0 -45
- package/dist/shared/errors/stockErrors.d.ts +0 -267
- package/dist/shared/errors/userErrors.d.ts +0 -104
- package/dist/shared/errors/viewErrors.d.ts +0 -7
- package/dist/shared/interface.d.ts +0 -343
- package/dist/shared/messages.d.ts +0 -2
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CLT } from '../../../shared/entities/tickets';
|
|
2
|
-
import * as IShared from '../../../shared/interface';
|
|
3
|
-
export type Entity = CLT;
|
|
4
|
-
export declare const Route = "clt";
|
|
5
|
-
export declare const UpperName = "CLT";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
export type ICreateRequest = Omit<Entity, 'id'>;
|
|
8
|
-
export type IUpdateRequest = ICreateRequest;
|
|
9
|
-
export interface IFindMinifiedRequest {
|
|
10
|
-
value?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface IRepository {
|
|
13
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
14
|
-
find(): Promise<Entity[]>;
|
|
15
|
-
findById(id: IShared.IFindByIdNumberRequest): Promise<Entity | null>;
|
|
16
|
-
findMinified(params?: IFindMinifiedRequest): Promise<Entity[]>;
|
|
17
|
-
update(id: IShared.IFindByIdNumberRequest, data: IUpdateRequest): Promise<void>;
|
|
18
|
-
deleteOne(id: IShared.IFindByIdNumberRequest): Promise<void>;
|
|
19
|
-
}
|
|
20
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Language } from '../../../shared/entities/tickets';
|
|
2
|
-
import * as IShared from '../../../shared/interface';
|
|
3
|
-
export type Entity = Language;
|
|
4
|
-
export declare const Route = "tickets_language";
|
|
5
|
-
export declare const UpperName = "TicketsLanguage";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
export type ICreateRequest = Omit<Entity, 'id'>;
|
|
8
|
-
export type IUpdateRequest = ICreateRequest;
|
|
9
|
-
export interface IFindMinifiedRequest {
|
|
10
|
-
value?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface IRepository {
|
|
13
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
14
|
-
find(): Promise<Entity[]>;
|
|
15
|
-
findById(id: IShared.IFindByIdNumberRequest): Promise<Entity | null>;
|
|
16
|
-
findMinified(params?: IFindMinifiedRequest): Promise<Entity[]>;
|
|
17
|
-
update(id: IShared.IFindByIdNumberRequest, data: IUpdateRequest): Promise<void>;
|
|
18
|
-
deleteOne(id: IShared.IFindByIdNumberRequest): Promise<void>;
|
|
19
|
-
}
|
|
20
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { Tickets, Language } from '../../../shared/entities/tickets';
|
|
2
|
-
import { IChannel } from '../channel/interfaces';
|
|
3
|
-
import * as IShared from '../../../shared/interface';
|
|
4
|
-
export type Entity = Tickets;
|
|
5
|
-
export declare const Route = "tickets";
|
|
6
|
-
export declare const UpperName = "Tickets";
|
|
7
|
-
export declare const LowerName: string;
|
|
8
|
-
export interface ILastTicketCalledToday {
|
|
9
|
-
language: Language;
|
|
10
|
-
text_to_read: string;
|
|
11
|
-
}
|
|
12
|
-
export interface ILastTicketCalledTodayByChannel {
|
|
13
|
-
channel_id: number;
|
|
14
|
-
number: number;
|
|
15
|
-
}
|
|
16
|
-
export interface IRemainingTodayTickets {
|
|
17
|
-
id: string;
|
|
18
|
-
channel_id: number;
|
|
19
|
-
number: number;
|
|
20
|
-
language_id: number;
|
|
21
|
-
text_to_read: string;
|
|
22
|
-
created_at: Date;
|
|
23
|
-
}
|
|
24
|
-
export interface ITicketsFindTodayResponse {
|
|
25
|
-
channels: IChannel[];
|
|
26
|
-
languages: Language[];
|
|
27
|
-
remaining_today_tickets_to_call: IRemainingTodayTickets[];
|
|
28
|
-
last_ticket_called_today: ILastTicketCalledToday | null;
|
|
29
|
-
last_tickets_called_today_by_channel?: ILastTicketCalledTodayByChannel[];
|
|
30
|
-
}
|
|
31
|
-
export interface ITicketCreateRequest {
|
|
32
|
-
channel_id: number;
|
|
33
|
-
language_id: number;
|
|
34
|
-
created_by: string;
|
|
35
|
-
}
|
|
36
|
-
export interface ITicketCreateResponse {
|
|
37
|
-
channel_id: number;
|
|
38
|
-
number: number;
|
|
39
|
-
channel_name: string;
|
|
40
|
-
last_ticket_called_today: ILastTicketCalledToday | null;
|
|
41
|
-
remaining_today_tickets_to_call: IRemainingTodayTickets[];
|
|
42
|
-
last_tickets_called_today_by_channel?: ILastTicketCalledTodayByChannel[];
|
|
43
|
-
}
|
|
44
|
-
export interface ITicketUpdateRequest {
|
|
45
|
-
id: string;
|
|
46
|
-
who_attended: string;
|
|
47
|
-
}
|
|
48
|
-
export interface ITicketUpdateResponse {
|
|
49
|
-
number: number;
|
|
50
|
-
channel_id: number;
|
|
51
|
-
language: Language;
|
|
52
|
-
text_to_read: string;
|
|
53
|
-
last_ticket_called_today: ILastTicketCalledToday | null;
|
|
54
|
-
remaining_today_tickets_to_call: IRemainingTodayTickets[];
|
|
55
|
-
last_tickets_called_today_by_channel?: ILastTicketCalledTodayByChannel[];
|
|
56
|
-
}
|
|
57
|
-
export interface ITicketUndoResponse {
|
|
58
|
-
last_ticket_called_today: ILastTicketCalledToday | null;
|
|
59
|
-
remaining_today_tickets_to_call: IRemainingTodayTickets[];
|
|
60
|
-
last_tickets_called_today_by_channel?: ILastTicketCalledTodayByChannel[];
|
|
61
|
-
}
|
|
62
|
-
export interface IRepository {
|
|
63
|
-
create(data: ITicketCreateRequest): Promise<ITicketCreateResponse>;
|
|
64
|
-
findToday(): Promise<ITicketsFindTodayResponse>;
|
|
65
|
-
update(data: ITicketUpdateRequest): Promise<ITicketUpdateResponse>;
|
|
66
|
-
undoLastCall(): Promise<ITicketUndoResponse>;
|
|
67
|
-
}
|
|
68
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { BankData, Country, Swift } from '../../../shared/entities/user';
|
|
3
|
-
export type Entity = BankData;
|
|
4
|
-
export declare const Route = "bank_data";
|
|
5
|
-
export declare const UpperName = "BankData";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
interface IFindDetailedResponse extends Entity {
|
|
8
|
-
swift: Swift | null;
|
|
9
|
-
country: Country;
|
|
10
|
-
}
|
|
11
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, 'swift' | 'country'>;
|
|
12
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
13
|
-
export type IFindRequest = Record<string, unknown>;
|
|
14
|
-
export type IFindResponse = Omit<IFindDetailedResponse, 'swift' | 'country'>;
|
|
15
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
16
|
-
}
|
|
17
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, 'swift' | 'country'>>;
|
|
18
|
-
export interface ICreateRequest {
|
|
19
|
-
provider_id?: string | null;
|
|
20
|
-
client_id?: string | null;
|
|
21
|
-
store_operator_id?: string | null;
|
|
22
|
-
commissioner_id?: string | null;
|
|
23
|
-
iban: string;
|
|
24
|
-
swift_id: string | null;
|
|
25
|
-
country_id: string;
|
|
26
|
-
}
|
|
27
|
-
export interface IUpdateRequest {
|
|
28
|
-
iban?: string;
|
|
29
|
-
swift_id?: string | null;
|
|
30
|
-
country_id?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface IRepository {
|
|
33
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
34
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
35
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
36
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
37
|
-
create(data: ICreateRequest): Promise<IFindByOwnerIdResponse>;
|
|
38
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
39
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
40
|
-
}
|
|
41
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
42
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ChatSubscriber } from './../../../shared/entities/user';
|
|
2
|
-
import * as IShared from '../../../shared/interface';
|
|
3
|
-
export type Entity = ChatSubscriber;
|
|
4
|
-
export declare const Route = "chat_subscriber";
|
|
5
|
-
export declare const UpperName = "ChatSubscriber";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
export interface ICreateOrUpdateRequest {
|
|
8
|
-
owner_id: string;
|
|
9
|
-
document_header_id: string;
|
|
10
|
-
personas_ids: string[];
|
|
11
|
-
}
|
|
12
|
-
export type IFindByIdResponse = {
|
|
13
|
-
persona_id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
email: string;
|
|
16
|
-
phone_number: string | null;
|
|
17
|
-
}[];
|
|
18
|
-
export interface IRepository {
|
|
19
|
-
createOrUpdate(data: ICreateOrUpdateRequest): Promise<Entity[]>;
|
|
20
|
-
findByOwnerId(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse>;
|
|
21
|
-
findByDocumentHeaderId(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse>;
|
|
22
|
-
findByPersonaId(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse>;
|
|
23
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
24
|
-
}
|
|
25
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { ClientType } from '../../../shared/entities/user';
|
|
3
|
-
export type Entity = ClientType;
|
|
4
|
-
export declare const Route = "client_type";
|
|
5
|
-
export declare const UpperName = "ClientType";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
type IFindDetailedResponse = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
|
-
export type IFindRequest = Record<string, unknown>;
|
|
10
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
11
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
12
|
-
}
|
|
13
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
14
|
-
export interface ICreateRequest {
|
|
15
|
-
name: string;
|
|
16
|
-
}
|
|
17
|
-
export interface IUpdateRequest {
|
|
18
|
-
name?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface IRepository {
|
|
21
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
22
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
23
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
24
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
25
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
26
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
27
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
28
|
-
}
|
|
29
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
30
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import joi from 'joi';
|
|
2
|
-
export declare const createBody: joi.ObjectSchema<any>;
|
|
3
|
-
export declare const updateBody: joi.ObjectSchema<any>;
|
|
4
|
-
export declare const findQuery: joi.ObjectSchema<any>;
|
|
5
|
-
export declare const findWithPaginationQuery: joi.ObjectSchema<any>;
|
|
6
|
-
export declare const clientTypePostSchema: joi.ObjectSchema<any>;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { Clients, Users, Country, ReasonForExemption, ClientType, SegmentsArea, Language, Vehicles, DeliveryMethods, MaturityDates, PaymentMethods, Persona } from '../../../shared/entities/user';
|
|
3
|
-
import type { IChatType } from '../../stock/chat/interfaces';
|
|
4
|
-
export type Entity = Clients;
|
|
5
|
-
export declare const Route = "client";
|
|
6
|
-
export declare const UpperName = "Clients";
|
|
7
|
-
export declare const LowerName: string;
|
|
8
|
-
interface IMainPersona extends Persona {
|
|
9
|
-
country: Country | null;
|
|
10
|
-
reason_for_exemption: ReasonForExemption | null;
|
|
11
|
-
}
|
|
12
|
-
interface IFindDetailedResponse extends Entity {
|
|
13
|
-
user: Users;
|
|
14
|
-
main_persona: IMainPersona;
|
|
15
|
-
client_type: ClientType | null;
|
|
16
|
-
segments_area: SegmentsArea | null;
|
|
17
|
-
country: Country | null;
|
|
18
|
-
language: Language | null;
|
|
19
|
-
default_payment_method: PaymentMethods | null;
|
|
20
|
-
default_maturity_date: MaturityDates | null;
|
|
21
|
-
default_delivery_method: DeliveryMethods | null;
|
|
22
|
-
default_vehicle: Vehicles | null;
|
|
23
|
-
}
|
|
24
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
25
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, 'user' | 'main_persona' | 'client_type' | 'segments_area' | 'country' | 'language' | 'default_payment_method' | 'default_maturity_date' | 'default_delivery_method' | 'default_vehicle'>;
|
|
26
|
-
export interface IFindByQueryRequest {
|
|
27
|
-
number?: number[];
|
|
28
|
-
id?: string[];
|
|
29
|
-
nif?: string | null;
|
|
30
|
-
}
|
|
31
|
-
export interface IFindRequest {
|
|
32
|
-
}
|
|
33
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
34
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
35
|
-
}
|
|
36
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
37
|
-
export type ICreateMainPersona = Pick<Persona, 'nif' | 'name' | 'email' | 'telephone'>;
|
|
38
|
-
export interface ICreateRequest {
|
|
39
|
-
user_id?: string;
|
|
40
|
-
main_persona: ICreateMainPersona;
|
|
41
|
-
deferred_payment?: boolean;
|
|
42
|
-
default_discount?: number;
|
|
43
|
-
exemption_reason_id?: string | null;
|
|
44
|
-
newsletter?: boolean;
|
|
45
|
-
inactive?: boolean;
|
|
46
|
-
country_id?: string | null;
|
|
47
|
-
language_id?: string | null;
|
|
48
|
-
client_type_id?: string | null;
|
|
49
|
-
segments_area_id?: string | null;
|
|
50
|
-
default_payment_method_id?: string | null;
|
|
51
|
-
default_maturity_date_id?: string | null;
|
|
52
|
-
default_delivery_method_id?: string | null;
|
|
53
|
-
default_vehicle_id?: string | null;
|
|
54
|
-
}
|
|
55
|
-
export interface IUpdateRequest {
|
|
56
|
-
chat_type?: IChatType;
|
|
57
|
-
nif?: string | null;
|
|
58
|
-
country_id?: string | null;
|
|
59
|
-
language_id?: string | null;
|
|
60
|
-
client_type_id?: string | null;
|
|
61
|
-
newsletter?: boolean;
|
|
62
|
-
inactive?: boolean;
|
|
63
|
-
segments_area_id?: string | null;
|
|
64
|
-
main_persona_id?: string;
|
|
65
|
-
contact_persona_id?: string;
|
|
66
|
-
default_discount?: number;
|
|
67
|
-
default_payment_method_id?: string | null;
|
|
68
|
-
default_maturity_date_id?: string | null;
|
|
69
|
-
default_delivery_method_id?: string | null;
|
|
70
|
-
default_vehicle_id?: string | null;
|
|
71
|
-
deferred_payment?: boolean;
|
|
72
|
-
}
|
|
73
|
-
export interface IRepository {
|
|
74
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
75
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
76
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
77
|
-
findByQuery(params: IFindByQueryRequest): Promise<IFindResponse[]>;
|
|
78
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
79
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
80
|
-
create(data: ICreateRequest): Promise<IFindResponse>;
|
|
81
|
-
createOrUpdate(data: ICreateRequest): Promise<IFindResponse>;
|
|
82
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindResponse | null>;
|
|
83
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindResponse | null>;
|
|
84
|
-
}
|
|
85
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
86
|
-
export {};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
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
|
-
import type { IChatType } from '../../stock/chat/interfaces';
|
|
4
|
-
export type Entity = Commissioner;
|
|
5
|
-
export declare const Route = "commissioner";
|
|
6
|
-
export declare const UpperName = "Commissioner";
|
|
7
|
-
export declare const LowerName: string;
|
|
8
|
-
interface IMainPersona extends Persona {
|
|
9
|
-
country: Country | null;
|
|
10
|
-
reason_for_exemption: ReasonForExemption | null;
|
|
11
|
-
}
|
|
12
|
-
interface IFindDetailedResponse extends Entity {
|
|
13
|
-
user: Users;
|
|
14
|
-
main_persona: IMainPersona;
|
|
15
|
-
country: Country | null;
|
|
16
|
-
language: Language | null;
|
|
17
|
-
default_payment_method: PaymentMethods | null;
|
|
18
|
-
default_maturity_date: MaturityDates | null;
|
|
19
|
-
default_delivery_method: DeliveryMethods | null;
|
|
20
|
-
default_vehicle: Vehicles | null;
|
|
21
|
-
}
|
|
22
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
23
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, 'user' | 'main_persona' | 'country' | 'language' | 'default_payment_method' | 'default_maturity_date' | 'default_delivery_method' | 'default_vehicle'>;
|
|
24
|
-
export type IFindRequest = Record<string, unknown>;
|
|
25
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
26
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
27
|
-
}
|
|
28
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
29
|
-
export type ICreateMainPersona = Pick<Persona, 'nif' | 'name' | 'email' | 'telephone'>;
|
|
30
|
-
export interface ICreateRequest {
|
|
31
|
-
user_id: string;
|
|
32
|
-
default_percentage?: number;
|
|
33
|
-
main_persona: ICreateMainPersona;
|
|
34
|
-
country_id?: string | null;
|
|
35
|
-
language_id?: string | null;
|
|
36
|
-
default_payment_method_id?: string | null;
|
|
37
|
-
default_maturity_date_id?: string | null;
|
|
38
|
-
default_delivery_method_id?: string | null;
|
|
39
|
-
default_vehicle_id?: string | null;
|
|
40
|
-
}
|
|
41
|
-
export interface IUpdateRequest {
|
|
42
|
-
chat_type?: IChatType;
|
|
43
|
-
default_percentage?: number;
|
|
44
|
-
main_persona_id?: string;
|
|
45
|
-
contact_persona_id?: string;
|
|
46
|
-
country_id?: string | null;
|
|
47
|
-
language_id?: string | null;
|
|
48
|
-
default_payment_method_id?: string | null;
|
|
49
|
-
default_maturity_date_id?: string | null;
|
|
50
|
-
default_delivery_method_id?: string | null;
|
|
51
|
-
default_vehicle_id?: string | null;
|
|
52
|
-
}
|
|
53
|
-
export interface IRepository {
|
|
54
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
55
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
56
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
57
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
58
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
59
|
-
create(data: ICreateRequest): Promise<IFindResponse>;
|
|
60
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindResponse | null>;
|
|
61
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindResponse | null>;
|
|
62
|
-
}
|
|
63
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
64
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { Country } from '../../../shared/entities/user';
|
|
3
|
-
export type Entity = Country;
|
|
4
|
-
export declare const Route = "country";
|
|
5
|
-
export declare const UpperName = "Country";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
type IFindDetailedResponse = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
|
-
export type IFindRequest = {
|
|
10
|
-
name?: string;
|
|
11
|
-
};
|
|
12
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
13
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
14
|
-
}
|
|
15
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
16
|
-
export interface ICreateRequest {
|
|
17
|
-
name: string;
|
|
18
|
-
alpha2: string;
|
|
19
|
-
}
|
|
20
|
-
export interface IUpdateRequest {
|
|
21
|
-
name?: string;
|
|
22
|
-
alpha2?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface IRepository {
|
|
25
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
26
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
27
|
-
findByAlpha2(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
28
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
29
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
30
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
31
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
32
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
33
|
-
}
|
|
34
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
35
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { DeliveryMethods } from '../../../shared/entities/user';
|
|
3
|
-
export type Entity = DeliveryMethods;
|
|
4
|
-
export declare const Route = "delivery_methods";
|
|
5
|
-
export declare const UpperName = "DeliveryMethods";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
export interface ICreateRequest {
|
|
8
|
-
delivery_method_id: number;
|
|
9
|
-
name: string;
|
|
10
|
-
}
|
|
11
|
-
export interface IUpdateRequest {
|
|
12
|
-
delivery_method_id?: number;
|
|
13
|
-
name?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface IRepository {
|
|
16
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
17
|
-
find(): Promise<Entity[]>;
|
|
18
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
19
|
-
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
20
|
-
update(selector: IShared.IFindByIdRequest, body: IUpdateRequest): Promise<Entity | null>;
|
|
21
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
22
|
-
}
|
|
23
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { Favorites } from '../../../shared/entities/user';
|
|
3
|
-
export type Entity = Favorites;
|
|
4
|
-
export declare const Route = "favorites";
|
|
5
|
-
export declare const UpperName = "Favorites";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
export interface ICreateRequest {
|
|
8
|
-
url: string;
|
|
9
|
-
}
|
|
10
|
-
export interface IDeleteRequest {
|
|
11
|
-
url: string;
|
|
12
|
-
}
|
|
13
|
-
export interface IFindOneRequest {
|
|
14
|
-
url: string;
|
|
15
|
-
}
|
|
16
|
-
export interface IRepository {
|
|
17
|
-
list(user_id: string): Promise<Entity[]>;
|
|
18
|
-
findByUrl(params: IFindOneRequest): Promise<boolean>;
|
|
19
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
20
|
-
deleteOne(params: IDeleteRequest): Promise<Entity | null>;
|
|
21
|
-
}
|
|
22
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import joi from 'joi';
|
|
2
|
-
import * as IShared from '../../../shared/interface';
|
|
3
|
-
import { IFindOneRequest, ICreateRequest } from './interfaces';
|
|
4
|
-
export declare const findByUrlQueryKeys: IShared.IRouteRequest<IFindOneRequest>;
|
|
5
|
-
export declare const findByUrlQuery: joi.ObjectSchema<any>;
|
|
6
|
-
export declare const createBodyKeys: IShared.IRouteRequest<ICreateRequest>;
|
|
7
|
-
export declare const createBody: joi.ObjectSchema<any>;
|
|
8
|
-
export declare const deleteByUrlQuery: joi.ObjectSchema<any>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { GroupPermissions } from '../../../shared/entities/user';
|
|
3
|
-
export type Entity = GroupPermissions;
|
|
4
|
-
export declare const Route = "group_permissions";
|
|
5
|
-
export declare const UpperName = "GroupPermissions";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
export interface ICreateRequest {
|
|
8
|
-
code: string;
|
|
9
|
-
description: string;
|
|
10
|
-
}
|
|
11
|
-
export interface IUpdateRequest {
|
|
12
|
-
code: string;
|
|
13
|
-
description: string;
|
|
14
|
-
}
|
|
15
|
-
export interface IRepository {
|
|
16
|
-
findByCode(code: string): Promise<Entity | null>;
|
|
17
|
-
findById(selector: IShared.IFindByIdNumberRequest): Promise<Entity | null>;
|
|
18
|
-
changeEnable(selector: IShared.IFindByIdNumberRequest): Promise<boolean>;
|
|
19
|
-
find(): Promise<Entity[]>;
|
|
20
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
21
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
22
|
-
deleteOne(selector: IShared.IFindByIdNumberRequest): Promise<Entity | null>;
|
|
23
|
-
}
|
|
24
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
25
|
-
export type IApi = Omit<IRepository, 'findByCode' | 'findById' | 'changeEnable'>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { Language } from '../../../shared/entities/user';
|
|
3
|
-
export type Entity = Language;
|
|
4
|
-
export declare const Route = "language";
|
|
5
|
-
export declare const UpperName = "Language";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
type IFindDetailedResponse = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
|
|
9
|
-
export type IFindRequest = Record<string, unknown>;
|
|
10
|
-
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
11
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
12
|
-
}
|
|
13
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
|
|
14
|
-
export interface ICreateRequest {
|
|
15
|
-
name: string;
|
|
16
|
-
}
|
|
17
|
-
export interface IUpdateRequest {
|
|
18
|
-
name?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface IRepository {
|
|
21
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
22
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
23
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
24
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
25
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
26
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
27
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
28
|
-
}
|
|
29
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
30
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { MaturityDates } from '../../../shared/entities/user';
|
|
3
|
-
export type Entity = MaturityDates;
|
|
4
|
-
export declare const Route = "maturity_dates";
|
|
5
|
-
export declare const UpperName = "MaturityDates";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
export interface ICreateRequest {
|
|
8
|
-
maturity_date_id: number;
|
|
9
|
-
name: string;
|
|
10
|
-
days: number;
|
|
11
|
-
}
|
|
12
|
-
export interface IUpdateRequest {
|
|
13
|
-
maturity_date_id?: number;
|
|
14
|
-
name?: string;
|
|
15
|
-
days?: number;
|
|
16
|
-
}
|
|
17
|
-
export interface IRepository {
|
|
18
|
-
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
19
|
-
find(): Promise<Entity[]>;
|
|
20
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
21
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
22
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
23
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
24
|
-
}
|
|
25
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
export declare const Route = "password";
|
|
3
|
-
export interface IForgotPassword {
|
|
4
|
-
account: string;
|
|
5
|
-
}
|
|
6
|
-
export interface IResetPassword {
|
|
7
|
-
token: string;
|
|
8
|
-
password: string;
|
|
9
|
-
password_confirmation: string;
|
|
10
|
-
}
|
|
11
|
-
export interface IRepository {
|
|
12
|
-
resetPassword(params: IResetPassword): Promise<void>;
|
|
13
|
-
forgotPassword(params: IForgotPassword): Promise<void>;
|
|
14
|
-
}
|
|
15
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|