@nomalism-com/types 1.3.61 → 1.3.63
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 +678 -893
- package/dist/index.js +570 -774
- package/dist/main.d.ts +1 -12
- package/dist/modules/document/NRCL/interface.d.ts +0 -2
- package/dist/modules/document/materialEntrance/interfaces.d.ts +0 -6
- package/dist/modules/document/order/interfaces.d.ts +0 -14
- package/dist/modules/document/upfrontReturn/interfaces.d.ts +0 -1
- package/dist/modules/documentManagement/multimedia/interfaces.d.ts +0 -3
- package/dist/modules/integration/emailLog/interfaces.d.ts +0 -3
- package/dist/modules/integration/emailTemplateAttachment/interfaces.d.ts +0 -13
- package/dist/modules/integration/emailVerification/interfaces.d.ts +0 -2
- package/dist/modules/integration/googleFilePermission/interfaces.d.ts +0 -8
- package/dist/modules/integration/observation/interfaces.d.ts +2 -7
- package/dist/modules/integration/patchNotes/interfaces.d.ts +0 -4
- package/dist/modules/integration/projectInfo/interfaces.d.ts +0 -2
- package/dist/modules/integration/settings/interfaces.d.ts +0 -1
- package/dist/modules/llm/llm/interfaces.d.ts +0 -2
- package/dist/modules/print/printer/interfaces.d.ts +0 -1
- package/dist/modules/sms/smsSender/interfaces.d.ts +0 -7
- package/dist/modules/sms/smsTemplate/interfaces.d.ts +0 -9
- package/dist/modules/stock/conferirEncomenda/interface.d.ts +0 -3
- package/dist/modules/stock/emailAccount/interface.d.ts +0 -1
- package/dist/modules/stock/gmails/interface.d.ts +0 -4
- package/dist/modules/stock/googleSheetPool/interface.d.ts +0 -2
- package/dist/modules/stock/location/interface.d.ts +2 -50
- package/dist/modules/stock/mobilePrint/interface.d.ts +0 -2
- package/dist/modules/stock/productGoogleSheets/interface.d.ts +0 -7
- package/dist/modules/stock/productImage/interface.d.ts +3 -1
- package/dist/modules/stock/promotion/interface.d.ts +0 -2
- package/dist/modules/stock/queryList/interfaces.d.ts +0 -18
- package/dist/modules/stock/queryParameter/interfaces.d.ts +0 -34
- package/dist/modules/stock/recurrentTasks/interface.d.ts +0 -2
- package/dist/modules/stock/returnReason/interfaces.d.ts +0 -9
- package/dist/modules/stock/stockMovement/interface.d.ts +0 -3
- package/dist/modules/stock/task/interface.d.ts +0 -2
- package/dist/modules/stock/unitOfMeasure/interface.d.ts +0 -9
- package/dist/modules/stock/vatTax/interface.d.ts +0 -9
- package/dist/modules/stock/vatTaxZone/interface.d.ts +0 -9
- package/dist/modules/supply/currentAccount/interface.d.ts +0 -88
- package/dist/modules/supply/documentHeaderHistory/interfaces.d.ts +0 -1
- package/dist/modules/supply/documentHeaderSurvey/interfaces.d.ts +0 -2
- package/dist/modules/supply/documentLine/interfaces.d.ts +0 -5
- package/dist/modules/supply/documentSet/interface.d.ts +0 -7
- package/dist/modules/supply/documentType/interfaces.d.ts +0 -2
- package/dist/modules/supply/externalDocumentType/interface.d.ts +0 -7
- package/dist/modules/supply/payment/interface.d.ts +0 -5
- package/dist/modules/supply/paymentBatch/interface.d.ts +0 -2
- package/dist/modules/supply/preSale/interface.d.ts +0 -1
- package/dist/modules/supply/preSaleProduct/interface.d.ts +0 -1
- package/dist/modules/supply/schedule/interface.d.ts +0 -1
- package/dist/modules/tickets/tickets/interfaces.d.ts +1 -2
- package/dist/modules/ui/sidemenuHighlight/interface.d.ts +0 -11
- package/dist/modules/user/bankData/interface.d.ts +0 -9
- package/dist/modules/user/clientType/interface.d.ts +0 -16
- package/dist/modules/user/country/interface.d.ts +0 -12
- package/dist/modules/user/deliveryMethods/interfaces.d.ts +0 -1
- package/dist/modules/user/favorites/interfaces.d.ts +0 -3
- package/dist/modules/user/language/interface.d.ts +0 -9
- package/dist/modules/user/maturityDates/interfaces.d.ts +0 -1
- package/dist/modules/user/paymentMethods/interfaces.d.ts +0 -1
- package/dist/modules/user/providerType/interface.d.ts +0 -13
- package/dist/modules/user/purchaseConditions/interface.d.ts +0 -9
- package/dist/modules/user/reasonForExemption/interface.d.ts +0 -3
- package/dist/modules/user/segmentsArea/interface.d.ts +0 -17
- package/dist/modules/user/shippings/interface.d.ts +0 -8
- package/dist/modules/user/storeOperator/interface.d.ts +0 -2
- package/dist/modules/user/swift/interface.d.ts +0 -17
- package/dist/modules/user/systemModule/interface.d.ts +0 -11
- package/dist/modules/user/timeSheet/interfaces.d.ts +0 -3
- package/dist/modules/user/userTokens/interface.d.ts +0 -6
- package/dist/modules/user/users/interface.d.ts +1 -9
- package/dist/modules/view/adminPanel/interfaces.d.ts +0 -3
- package/dist/modules/view/errorLog/interfaces.d.ts +0 -1
- package/dist/modules/view/webSocket/interfaces.d.ts +0 -1
- package/dist/shared/entities/integration.d.ts +0 -13
- package/dist/shared/entities/stock.d.ts +0 -14
- package/dist/shared/entities/user.d.ts +0 -14
- package/dist/shared/errors/integrationErrors.d.ts +0 -8
- package/dist/shared/errors/stockErrors.d.ts +0 -8
- package/dist/shared/interface.d.ts +0 -31
- package/package.json +2 -2
- package/dist/modules/document/adiantamento/interfaces.d.ts +0 -24
- package/dist/modules/document/faturaCredito/interfaces.d.ts +0 -26
- package/dist/modules/document/faturaRecibo/interfaces.d.ts +0 -25
- package/dist/modules/document/faturaSimplificada/interfaces.d.ts +0 -24
- package/dist/modules/document/notaCredito/interfaces.d.ts +0 -29
- package/dist/modules/document/notaCreditoAdiantamento/interfaces.d.ts +0 -25
- package/dist/modules/document/productionOrder/interfaces.d.ts +0 -10
- package/dist/modules/document/recibo/interfaces.d.ts +0 -21
- package/dist/modules/integration/observationType/interfaces.d.ts +0 -25
- package/dist/modules/stock/typeOfLocation/interface.d.ts +0 -30
- package/dist/modules/supply/batch/interface.d.ts +0 -0
- package/dist/modules/user/userPositions/interface.d.ts +0 -28
|
@@ -3,13 +3,8 @@ import * as IShared from "../../../shared/interface";
|
|
|
3
3
|
export type Entity = UnitOfMeasure;
|
|
4
4
|
export declare const Route = "unit_of_measure";
|
|
5
5
|
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "">;
|
|
8
6
|
export type IFindRequest = Record<string, unknown>;
|
|
9
7
|
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
10
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
11
|
-
}
|
|
12
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
13
8
|
export interface ICreateRequest {
|
|
14
9
|
name: string;
|
|
15
10
|
notation: string;
|
|
@@ -27,11 +22,7 @@ export interface IUpdateRequest {
|
|
|
27
22
|
divisible?: boolean;
|
|
28
23
|
}
|
|
29
24
|
export interface IRepository {
|
|
30
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
31
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
32
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
33
25
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
34
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
35
26
|
create(data: ICreateRequest): Promise<Entity>;
|
|
36
27
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
37
28
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
@@ -3,13 +3,8 @@ import * as IShared from "../../../shared/interface";
|
|
|
3
3
|
export type Entity = VatTax;
|
|
4
4
|
export declare const Route = "vat_tax";
|
|
5
5
|
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "">;
|
|
8
6
|
export type IFindRequest = Record<string, unknown>;
|
|
9
7
|
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
10
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
11
|
-
}
|
|
12
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
13
8
|
export interface ICreateRequest {
|
|
14
9
|
name: string;
|
|
15
10
|
saft_code: string;
|
|
@@ -19,11 +14,7 @@ export interface IUpdateRequest {
|
|
|
19
14
|
saft_code?: string;
|
|
20
15
|
}
|
|
21
16
|
export interface IRepository {
|
|
22
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
23
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
24
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
25
17
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
26
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
27
18
|
create(data: ICreateRequest): Promise<Entity>;
|
|
28
19
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
29
20
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
@@ -5,13 +5,8 @@ export declare const Route = "vat_tax_zone";
|
|
|
5
5
|
interface IFindDetailedResponse extends Entity {
|
|
6
6
|
vat_tax: VatTax;
|
|
7
7
|
}
|
|
8
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "vat_tax">;
|
|
9
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "vat_tax">;
|
|
10
8
|
export type IFindRequest = Record<string, unknown>;
|
|
11
9
|
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
12
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
13
|
-
}
|
|
14
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "vat_tax">>;
|
|
15
10
|
export interface ICreateRequest {
|
|
16
11
|
name: string;
|
|
17
12
|
value: number;
|
|
@@ -27,11 +22,7 @@ export interface IUpdateRequest {
|
|
|
27
22
|
saft_code?: string;
|
|
28
23
|
}
|
|
29
24
|
export interface IRepository {
|
|
30
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
31
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
32
|
-
findMinified(selector: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
33
25
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
34
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
35
26
|
create(data: ICreateRequest): Promise<IFindResponse>;
|
|
36
27
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindResponse | null>;
|
|
37
28
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindResponse | null>;
|
|
@@ -1,28 +1,6 @@
|
|
|
1
|
-
import { DocumentHeader, Payment } from "../../../shared/entities/stock";
|
|
2
1
|
import * as IShared from "../../../shared/interface";
|
|
3
|
-
import * as IObservation from "../../integration/observation/interfaces";
|
|
4
2
|
import { type ICreateFromHeaderRequest } from "../documentHeader/interfaces";
|
|
5
|
-
export type Entity = Payment;
|
|
6
3
|
export declare const Route = "current_account";
|
|
7
|
-
type IEntityExtended = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IEntityExtended, "">;
|
|
9
|
-
export type IFindByOwnerIdResponse = Omit<IEntityExtended, "">;
|
|
10
|
-
export type IFindRequest = Record<string, unknown>;
|
|
11
|
-
export type IFindResponse = Omit<IEntityExtended, "">;
|
|
12
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
13
|
-
}
|
|
14
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IEntityExtended, "">>;
|
|
15
|
-
export interface ICreateForThisDocumentHeaderRequest {
|
|
16
|
-
date: Date;
|
|
17
|
-
debit: number;
|
|
18
|
-
credit: number;
|
|
19
|
-
payment_method_id?: string | null;
|
|
20
|
-
payment_method?: string | null;
|
|
21
|
-
notes: string | null;
|
|
22
|
-
}
|
|
23
|
-
export interface ICreateRequest extends ICreateForThisDocumentHeaderRequest {
|
|
24
|
-
document_header_id: string;
|
|
25
|
-
}
|
|
26
4
|
export interface ICurrentAccountNotes {
|
|
27
5
|
date: string;
|
|
28
6
|
credit: number | null;
|
|
@@ -59,76 +37,11 @@ export interface IFindCurrentAccountByOwnerIdResponse {
|
|
|
59
37
|
href?: string | null;
|
|
60
38
|
affected: ICurrentAccountAffected[];
|
|
61
39
|
}
|
|
62
|
-
export interface IUnpaidPurchasesRequest {
|
|
63
|
-
provider_id: string;
|
|
64
|
-
client_id: string | null;
|
|
65
|
-
}
|
|
66
|
-
export interface IUnpaidByDatePurchasesRequest {
|
|
67
|
-
due_date: Date;
|
|
68
|
-
}
|
|
69
|
-
export type IPaymentOrigin = "CC Fornecedor" | "CC Cliente" | "CC Fornecedor (Descontinuado)" | "CC Cliente (Descontinuado)";
|
|
70
|
-
export interface IUnpaidPurchasesResponse extends Pick<Entity, "date" | "debit" | "credit"> {
|
|
71
|
-
document_header: Pick<DocumentHeader, "emission_date" | "pdf_link" | "id">;
|
|
72
|
-
origin: IPaymentOrigin;
|
|
73
|
-
document_type_code: string | null;
|
|
74
|
-
document_name: string;
|
|
75
|
-
user?: {
|
|
76
|
-
user_name: string;
|
|
77
|
-
provider_id: string;
|
|
78
|
-
client_id?: string | null;
|
|
79
|
-
};
|
|
80
|
-
maturity_days: number;
|
|
81
|
-
observations: IObservation.IFindByOwnerResponse[];
|
|
82
|
-
}
|
|
83
|
-
export interface IPaymentsNotExportedRequest {
|
|
84
|
-
whiteList?: string[];
|
|
85
|
-
}
|
|
86
|
-
export interface IPaymentsNotExportedResponse {
|
|
87
|
-
iban: string;
|
|
88
|
-
payment_ids: string[];
|
|
89
|
-
npf_dh: {
|
|
90
|
-
id: string;
|
|
91
|
-
name: string;
|
|
92
|
-
pdf_link: string | null;
|
|
93
|
-
total: number;
|
|
94
|
-
}[];
|
|
95
|
-
provider: string;
|
|
96
|
-
value: number;
|
|
97
|
-
}
|
|
98
|
-
export interface IExportPaymentsRequest {
|
|
99
|
-
provider: string;
|
|
100
|
-
value: number;
|
|
101
|
-
npf_ids?: string[];
|
|
102
|
-
}
|
|
103
|
-
export type IBatchType = "national" | "international" | "null";
|
|
104
|
-
export interface IPaymentsBatchNpfDh {
|
|
105
|
-
id: string;
|
|
106
|
-
name: string;
|
|
107
|
-
sent: string | null;
|
|
108
|
-
owner_id: string;
|
|
109
|
-
owner_number: number;
|
|
110
|
-
owner_name: string;
|
|
111
|
-
external_document_header_id: string | null;
|
|
112
|
-
pdf_link: string | null;
|
|
113
|
-
total: number;
|
|
114
|
-
}
|
|
115
|
-
export interface IPaymentsBatchResponse {
|
|
116
|
-
batch_id: string;
|
|
117
|
-
batch_value: number;
|
|
118
|
-
batch_type: IBatchType | null;
|
|
119
|
-
multimedia_id: string | null;
|
|
120
|
-
times_downloaded: number;
|
|
121
|
-
npf_dh: IPaymentsBatchNpfDh[];
|
|
122
|
-
updated_at: Date;
|
|
123
|
-
updated_by: string;
|
|
124
|
-
created_at: Date;
|
|
125
|
-
}
|
|
126
40
|
export declare const IExportCurrentAccountOutputEnum: {
|
|
127
41
|
csv: "csv";
|
|
128
42
|
pdf: "pdf";
|
|
129
43
|
};
|
|
130
44
|
export type IExportCurrentAccountOutput = (typeof IExportCurrentAccountOutputEnum)[keyof typeof IExportCurrentAccountOutputEnum];
|
|
131
|
-
export declare const IExportCurrentAccountOutputOptions: string[];
|
|
132
45
|
export interface IExportCurrentAccountRequest {
|
|
133
46
|
token: string;
|
|
134
47
|
owner_id: string;
|
|
@@ -153,4 +66,3 @@ export interface IRepository {
|
|
|
153
66
|
findClientUnpaidDebit(params: IShared.IFindByOwnerIdRequest): Promise<IDocumentResponse[]>;
|
|
154
67
|
}
|
|
155
68
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
156
|
-
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DocumentHeaderHistory } from "../../../shared/entities/stock";
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
|
-
export type Entity = DocumentHeaderHistory;
|
|
4
3
|
export declare const Route = "document_header_history";
|
|
5
4
|
export type IFindByOwnerIdResponse = Omit<DocumentHeaderHistory, "id" | "document_header_id">;
|
|
6
5
|
export interface IRepository {
|
|
@@ -2,8 +2,6 @@ import Nomalism from "../../..";
|
|
|
2
2
|
import { DocumentHeaderSurvey } from "../../../shared/entities/stock";
|
|
3
3
|
export type IEntity = DocumentHeaderSurvey;
|
|
4
4
|
export declare const Route = "document_header_survey";
|
|
5
|
-
export type ICreateRequest = Pick<IEntity, "owner_id" | "document_header_id" | "persona_id">;
|
|
6
|
-
export type IResponse = IEntity;
|
|
7
5
|
export interface IFindRequest {
|
|
8
6
|
date_start: Date;
|
|
9
7
|
date_end: Date;
|
|
@@ -122,11 +122,6 @@ export interface IUpdateManyByDocumentHeaderRequest {
|
|
|
122
122
|
sent_to_provider?: boolean;
|
|
123
123
|
sent_to_client?: IWarningType;
|
|
124
124
|
}
|
|
125
|
-
export interface IUpdateLineStatesTriggerResponse {
|
|
126
|
-
document_header_id: string;
|
|
127
|
-
trigger_event: boolean;
|
|
128
|
-
broker_topic?: IShared.IBrokerTopic;
|
|
129
|
-
}
|
|
130
125
|
export interface IPrintLabelParamsRequest {
|
|
131
126
|
document_line_ids: string;
|
|
132
127
|
}
|
|
@@ -5,15 +5,8 @@ export declare const Route = "document_set";
|
|
|
5
5
|
export interface ICreateRequest {
|
|
6
6
|
name: string;
|
|
7
7
|
}
|
|
8
|
-
export interface IUpdateRequest {
|
|
9
|
-
name?: string;
|
|
10
|
-
}
|
|
11
8
|
export interface IRepository {
|
|
12
|
-
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
13
|
-
find(): Promise<Entity[]>;
|
|
14
9
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
15
10
|
create(data: ICreateRequest): Promise<Entity>;
|
|
16
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
17
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
18
11
|
}
|
|
19
12
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -10,7 +10,6 @@ export declare const DocumentTypeUserTypeEnum: {
|
|
|
10
10
|
self: "self";
|
|
11
11
|
};
|
|
12
12
|
export type IDocumentTypeUserType = (typeof DocumentTypeUserTypeEnum)[keyof typeof DocumentTypeUserTypeEnum];
|
|
13
|
-
export declare const documentTypeUserTypes: string[];
|
|
14
13
|
export declare const DocumentTypeCodeTypeEnum: {
|
|
15
14
|
PC: "PC";
|
|
16
15
|
FTPF: "FTPF";
|
|
@@ -84,7 +83,6 @@ export declare const DocumentTypeCodeTypeEnum: {
|
|
|
84
83
|
CAT: "CAT";
|
|
85
84
|
};
|
|
86
85
|
export type IDocumentTypeCodeType = (typeof DocumentTypeCodeTypeEnum)[keyof typeof DocumentTypeCodeTypeEnum];
|
|
87
|
-
export declare const documentTypeCodeTypes: string[];
|
|
88
86
|
export interface IEntityExtended extends DocumentType {
|
|
89
87
|
external_document_type: ExternalDocumentType | null;
|
|
90
88
|
}
|
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
import { ExternalDocumentType } from "../../../shared/entities/stock";
|
|
2
|
-
import * as IShared from "../../../shared/interface";
|
|
3
2
|
export type Entity = ExternalDocumentType;
|
|
4
|
-
export declare const Route = "external_document_type";
|
|
5
|
-
export interface IRepository {
|
|
6
|
-
find(): Promise<Entity[]>;
|
|
7
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
8
|
-
}
|
|
9
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -5,8 +5,6 @@ import * as IUser from "../../user/users/interface";
|
|
|
5
5
|
export type Entity = Payment;
|
|
6
6
|
export declare const Route = "payment";
|
|
7
7
|
export type IEntityExtended = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IEntityExtended, "">;
|
|
9
|
-
export type IFindByOwnerIdResponse = Omit<IEntityExtended, "">;
|
|
10
8
|
export type IFindRequest = Record<string, unknown>;
|
|
11
9
|
export type IFindResponse = Omit<IEntityExtended, "">;
|
|
12
10
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
@@ -50,9 +48,6 @@ export interface IUnpaidPurchasesResponse extends Pick<Entity, "date" | "debit"
|
|
|
50
48
|
internal_regularization?: boolean;
|
|
51
49
|
}
|
|
52
50
|
export interface IRepository {
|
|
53
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
54
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
55
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
56
51
|
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
57
52
|
findSettledMaterialEntrance(params: IUnpaidPurchasesRequest): Promise<IUnpaidPurchasesResponse[]>;
|
|
58
53
|
findSettledMaterialEntranceByDate(params: IUnpaidByDatePurchasesRequest): Promise<IUnpaidPurchasesResponse[]>;
|
|
@@ -4,7 +4,6 @@ import * as DocumentLine from "../documentLine/interfaces";
|
|
|
4
4
|
import { IProductState } from "./../../stock/productGoogleSheets/interface";
|
|
5
5
|
export type Entity = PreSale;
|
|
6
6
|
export declare const Route = "pre_sale";
|
|
7
|
-
export type IFindRequest = Record<string, unknown>;
|
|
8
7
|
export type IFindResponse = Entity;
|
|
9
8
|
export interface IFindResponseWithCount extends Entity {
|
|
10
9
|
count_products: number;
|
|
@@ -2,7 +2,6 @@ import { PreSaleProduct } from "../../../shared/entities/stock";
|
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = PreSaleProduct;
|
|
4
4
|
export declare const Route = "pre_sale_product";
|
|
5
|
-
export type IFindRequest = Record<string, unknown>;
|
|
6
5
|
export type IFindResponse = Entity;
|
|
7
6
|
export interface IRepository {
|
|
8
7
|
find(user_id: string): Promise<PreSaleProduct[]>;
|
|
@@ -10,7 +10,6 @@ export declare const ScheduleTypeEnum: {
|
|
|
10
10
|
retryErroredEmails: "retryErroredEmails";
|
|
11
11
|
};
|
|
12
12
|
export type IScheduleType = (typeof ScheduleTypeEnum)[keyof typeof ScheduleTypeEnum];
|
|
13
|
-
export declare const scheduleTypes: string[];
|
|
14
13
|
export declare const ScheduleTypeLabel: Record<IScheduleType, string>;
|
|
15
14
|
export interface IRunImmediatelyRequest {
|
|
16
15
|
scheduleType: IScheduleType;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Language
|
|
1
|
+
import { Language } from "../../../shared/entities/tickets";
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
import { IChannel } from "../channel/interfaces";
|
|
4
|
-
export type Entity = Tickets;
|
|
5
4
|
export declare const Route = "tickets";
|
|
6
5
|
export interface ILastTicketCalledToday {
|
|
7
6
|
language: Language;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { SidemenuHightlight } from "../../../shared/entities/stock";
|
|
2
1
|
import * as IShared from "../../../shared/interface";
|
|
3
2
|
import type { IDocumentTypeUserType } from "../../supply/documentType/interfaces";
|
|
4
3
|
export declare const Route = "sidemenu_highlight";
|
|
5
|
-
export type Entity = SidemenuHightlight;
|
|
6
4
|
export interface IHighlightItem {
|
|
7
5
|
user_type: IDocumentTypeUserType;
|
|
8
6
|
state: string;
|
|
@@ -10,25 +8,16 @@ export interface IHighlightItem {
|
|
|
10
8
|
export declare const highlightValueSeparator = "|:|";
|
|
11
9
|
/** Serialize / parse helpers for the composite "user_type|:|state" value. */
|
|
12
10
|
export declare const buildHighlightValue: (item: IHighlightItem) => string;
|
|
13
|
-
export declare const parseHighlightValue: (value: string) => IHighlightItem | null;
|
|
14
11
|
export interface IFindResponseItem {
|
|
15
12
|
store_operator_id: string;
|
|
16
13
|
values: string[];
|
|
17
14
|
}
|
|
18
|
-
export interface IFindByStoreOperatorIdRequest {
|
|
19
|
-
store_operator_id: string;
|
|
20
|
-
}
|
|
21
|
-
export interface IFindByStoreOperatorIdResponse {
|
|
22
|
-
store_operator_id: string;
|
|
23
|
-
values: string[];
|
|
24
|
-
}
|
|
25
15
|
export interface ISetStoreOperatorHighlightsRequest {
|
|
26
16
|
store_operator_id: string;
|
|
27
17
|
values: string[];
|
|
28
18
|
}
|
|
29
19
|
export interface IRepository {
|
|
30
20
|
find(): Promise<IFindResponseItem[]>;
|
|
31
|
-
findByStoreOperatorId(selector: IFindByStoreOperatorIdRequest): Promise<IFindByStoreOperatorIdResponse>;
|
|
32
21
|
setStoreOperatorHighlights(data: ISetStoreOperatorHighlightsRequest): Promise<void>;
|
|
33
22
|
}
|
|
34
23
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -6,13 +6,7 @@ interface IFindDetailedResponse extends Entity {
|
|
|
6
6
|
swift: Swift | null;
|
|
7
7
|
country: Country;
|
|
8
8
|
}
|
|
9
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "swift" | "country">;
|
|
10
9
|
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "">;
|
|
11
|
-
export type IFindRequest = Record<string, unknown>;
|
|
12
|
-
export type IFindResponse = Omit<IFindDetailedResponse, "swift" | "country">;
|
|
13
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
14
|
-
}
|
|
15
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "swift" | "country">>;
|
|
16
10
|
export interface ICreateRequest {
|
|
17
11
|
provider_id?: string | null;
|
|
18
12
|
client_id?: string | null;
|
|
@@ -28,10 +22,7 @@ export interface IUpdateRequest {
|
|
|
28
22
|
country_id?: string;
|
|
29
23
|
}
|
|
30
24
|
export interface IRepository {
|
|
31
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
32
25
|
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
33
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
34
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
35
26
|
create(data: ICreateRequest): Promise<IFindByOwnerIdResponse>;
|
|
36
27
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
37
28
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
@@ -2,27 +2,11 @@ import { ClientType } from "../../../shared/entities/user";
|
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = ClientType;
|
|
4
4
|
export declare const Route = "client_type";
|
|
5
|
-
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
|
-
export type IFindRequest = Record<string, unknown>;
|
|
8
|
-
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
9
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
10
|
-
}
|
|
11
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
12
5
|
export interface ICreateRequest {
|
|
13
6
|
name: string;
|
|
14
7
|
}
|
|
15
|
-
export interface IUpdateRequest {
|
|
16
|
-
name?: string;
|
|
17
|
-
}
|
|
18
8
|
export interface IRepository {
|
|
19
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
20
9
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
21
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
22
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
23
10
|
create(data: ICreateRequest): Promise<Entity>;
|
|
24
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
25
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
26
11
|
}
|
|
27
12
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
28
|
-
export {};
|
|
@@ -8,26 +8,14 @@ export type IFindRequest = {
|
|
|
8
8
|
name?: string;
|
|
9
9
|
};
|
|
10
10
|
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
11
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
12
|
-
}
|
|
13
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
14
11
|
export interface ICreateRequest {
|
|
15
12
|
name: string;
|
|
16
13
|
alpha2: string;
|
|
17
14
|
}
|
|
18
|
-
export interface IUpdateRequest {
|
|
19
|
-
name?: string;
|
|
20
|
-
alpha2?: string;
|
|
21
|
-
}
|
|
22
15
|
export interface IRepository {
|
|
23
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
24
16
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
25
|
-
findByAlpha2(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
26
17
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
27
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
28
18
|
create(data: ICreateRequest): Promise<Entity>;
|
|
29
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
30
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
31
19
|
}
|
|
32
20
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
33
21
|
export {};
|
|
@@ -12,7 +12,6 @@ export interface IRepository {
|
|
|
12
12
|
create(data: ICreateRequest): Promise<Entity>;
|
|
13
13
|
find(): Promise<Entity[]>;
|
|
14
14
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
15
|
-
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
16
15
|
update(selector: IShared.IFindByIdRequest, body: IUpdateRequest): Promise<Entity | null>;
|
|
17
16
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
18
17
|
}
|
|
@@ -13,8 +13,5 @@ export interface IFindOneRequest {
|
|
|
13
13
|
}
|
|
14
14
|
export interface IRepository {
|
|
15
15
|
list(user_id: string): Promise<Entity[]>;
|
|
16
|
-
findByUrl(params: IFindOneRequest): Promise<boolean>;
|
|
17
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
18
|
-
deleteOne(params: IDeleteRequest): Promise<Entity | null>;
|
|
19
16
|
}
|
|
20
17
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -6,26 +6,17 @@ type IFindDetailedResponse = Entity;
|
|
|
6
6
|
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
7
|
export type IFindRequest = Record<string, unknown>;
|
|
8
8
|
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
9
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
10
|
-
}
|
|
11
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
12
9
|
export interface ICreateRequest {
|
|
13
10
|
name: string;
|
|
14
11
|
native_name: string;
|
|
15
12
|
iso_code: string;
|
|
16
13
|
short_list: boolean;
|
|
17
14
|
}
|
|
18
|
-
export interface IUpdateRequest {
|
|
19
|
-
name?: string;
|
|
20
|
-
}
|
|
21
15
|
export interface IRepository {
|
|
22
16
|
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
23
17
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
24
18
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
25
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
26
19
|
create(data: ICreateRequest): Promise<Entity>;
|
|
27
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
28
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
29
20
|
}
|
|
30
21
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
31
22
|
export {};
|
|
@@ -11,7 +11,6 @@ export interface IUpdateRequest {
|
|
|
11
11
|
days?: number;
|
|
12
12
|
}
|
|
13
13
|
export interface IRepository {
|
|
14
|
-
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
15
14
|
find(): Promise<Entity[]>;
|
|
16
15
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
17
16
|
create(data: ICreateRequest): Promise<Entity>;
|
|
@@ -25,7 +25,6 @@ export interface IUpdateRequest {
|
|
|
25
25
|
incluir_no_apuro_caixa?: boolean;
|
|
26
26
|
}
|
|
27
27
|
export interface IRepository {
|
|
28
|
-
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
29
28
|
find(): Promise<Entity[]>;
|
|
30
29
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
31
30
|
create(data: ICreateRequest): Promise<Entity>;
|
|
@@ -3,26 +3,13 @@ import * as IShared from "../../../shared/interface";
|
|
|
3
3
|
export type Entity = ProviderType;
|
|
4
4
|
export declare const Route = "provider_type";
|
|
5
5
|
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
|
-
export type IFindRequest = Record<string, unknown>;
|
|
8
6
|
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
9
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
10
|
-
}
|
|
11
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
12
7
|
export interface ICreateRequest {
|
|
13
8
|
name: string;
|
|
14
9
|
}
|
|
15
|
-
export interface IUpdateRequest {
|
|
16
|
-
name?: string;
|
|
17
|
-
}
|
|
18
10
|
export interface IRepository {
|
|
19
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
20
11
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
21
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
22
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
23
12
|
create(data: ICreateRequest): Promise<Entity>;
|
|
24
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
25
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
26
13
|
}
|
|
27
14
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
28
15
|
export {};
|
|
@@ -2,13 +2,7 @@ import { PurchaseConditions } from "../../../shared/entities/user";
|
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = PurchaseConditions;
|
|
4
4
|
export declare const Route = "purchase_conditions";
|
|
5
|
-
export type IFindByIdResponse = Omit<Entity, "product_category">;
|
|
6
5
|
export type IFindByOwnerIdResponse = Omit<Entity, "">;
|
|
7
|
-
export type IFindRequest = Record<string, unknown>;
|
|
8
|
-
export type IFindResponse = Omit<Entity, "">;
|
|
9
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
10
|
-
}
|
|
11
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<Entity, "">>;
|
|
12
6
|
export interface ICreateRequest {
|
|
13
7
|
provider_id: string;
|
|
14
8
|
discount: string;
|
|
@@ -21,10 +15,7 @@ export interface IUpdateRequest {
|
|
|
21
15
|
minimum_quantity?: string;
|
|
22
16
|
}
|
|
23
17
|
export interface IRepository {
|
|
24
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
25
18
|
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
26
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
27
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
28
19
|
create(data: ICreateRequest): Promise<Entity>;
|
|
29
20
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
30
21
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindByOwnerIdResponse | null>;
|
|
@@ -8,9 +8,7 @@ export declare const ReasonForExemptionTypeEnum: {
|
|
|
8
8
|
tenant: "tenant";
|
|
9
9
|
};
|
|
10
10
|
export type IReasonForExemptionType = (typeof ReasonForExemptionTypeEnum)[keyof typeof ReasonForExemptionTypeEnum];
|
|
11
|
-
export declare const reasonForExemptionTypes: string[];
|
|
12
11
|
type IFindDetailedResponse = Entity;
|
|
13
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
14
12
|
export type IFindRequest = Record<string, unknown>;
|
|
15
13
|
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
16
14
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
@@ -29,7 +27,6 @@ export interface IUpdateRequest {
|
|
|
29
27
|
saft_code?: string;
|
|
30
28
|
}
|
|
31
29
|
export interface IRepository {
|
|
32
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
33
30
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
34
31
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
35
32
|
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
@@ -2,29 +2,12 @@ import { SegmentsArea } from "../../../shared/entities/user";
|
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = SegmentsArea;
|
|
4
4
|
export declare const Route = "segments_area";
|
|
5
|
-
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
|
-
export type IFindRequest = Record<string, unknown>;
|
|
8
|
-
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
9
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
10
|
-
}
|
|
11
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
12
5
|
export interface ICreateRequest {
|
|
13
6
|
type: string;
|
|
14
7
|
name: string;
|
|
15
8
|
}
|
|
16
|
-
export interface IUpdateRequest {
|
|
17
|
-
type?: string;
|
|
18
|
-
name?: string;
|
|
19
|
-
}
|
|
20
9
|
export interface IRepository {
|
|
21
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
22
10
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
23
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
24
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
25
11
|
create(data: ICreateRequest): Promise<Entity>;
|
|
26
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
27
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
28
12
|
}
|
|
29
13
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
30
|
-
export {};
|
|
@@ -3,13 +3,8 @@ import * as IShared from "../../../shared/interface";
|
|
|
3
3
|
export type Entity = Shippings;
|
|
4
4
|
export declare const Route = "shippings";
|
|
5
5
|
type IFindDetailedResponse = Entity;
|
|
6
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
7
6
|
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "">;
|
|
8
|
-
export type IFindRequest = Record<string, unknown>;
|
|
9
7
|
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
10
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
11
|
-
}
|
|
12
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
13
8
|
export interface ICreateRequest {
|
|
14
9
|
provider_id: string;
|
|
15
10
|
type: string;
|
|
@@ -24,10 +19,7 @@ export interface IUpdateRequest {
|
|
|
24
19
|
unit?: string;
|
|
25
20
|
}
|
|
26
21
|
export interface IRepository {
|
|
27
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
28
22
|
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
29
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
30
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
31
23
|
create(data: ICreateRequest): Promise<Entity>;
|
|
32
24
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
33
25
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|