@nomalism-com/types 0.49.42 → 0.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +654 -844
- package/dist/index.js +652 -832
- package/dist/main.d.ts +3 -13
- package/dist/modules/document/NRCL/interface.d.ts +0 -2
- package/dist/modules/document/billOfLading/interfaces.d.ts +9 -0
- package/dist/modules/document/materialEntrance/interfaces.d.ts +0 -6
- package/dist/modules/document/order/interfaces.d.ts +0 -14
- package/dist/modules/document/providerCreditNoteFromReturn/interfaces.d.ts +1 -1
- package/dist/modules/document/providerFinancialCreditNote/interfaces.d.ts +1 -1
- package/dist/modules/document/providerServiceInvoice/interfaces.d.ts +1 -1
- 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/chat/interfaces.d.ts +0 -1
- 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 +33 -8
- package/dist/modules/stock/productImage/interface.d.ts +2 -19
- package/dist/modules/stock/promotion/interface.d.ts +0 -39
- 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/saft/interfaces.d.ts +60 -0
- package/dist/modules/stock/stockMovement/interface.d.ts +5 -6
- 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/documentHeader/interfaces.d.ts +78 -1
- 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 -8
- package/dist/modules/supply/documentType/interfaces.d.ts +12 -2
- package/dist/modules/supply/externalDocumentHeader/interface.d.ts +2 -0
- 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/ui/storeOperatorSaftLock/interface.d.ts +9 -0
- package/dist/modules/ui/tenantSaftLock/interface.d.ts +10 -0
- package/dist/modules/user/bankData/interface.d.ts +0 -9
- package/dist/modules/user/clientType/interface.d.ts +0 -16
- package/dist/modules/user/clients/interface.d.ts +1 -7
- package/dist/modules/user/commissioner/interface.d.ts +0 -12
- package/dist/modules/user/country/interface.d.ts +0 -14
- 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 +4 -15
- package/dist/modules/user/persona/interface.d.ts +1 -4
- package/dist/modules/user/providerType/interface.d.ts +0 -13
- package/dist/modules/user/providers/interface.d.ts +0 -8
- 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/sessions/interface.d.ts +1 -0
- package/dist/modules/user/shippings/interface.d.ts +0 -8
- package/dist/modules/user/storeOperator/interface.d.ts +1 -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 +2 -29
- 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 +18 -31
- package/dist/shared/entities/user.d.ts +2 -17
- package/dist/shared/errors/integrationErrors.d.ts +0 -8
- package/dist/shared/errors/stockErrors.d.ts +0 -8
- package/dist/shared/interface.d.ts +2 -34
- package/package.json +2 -2
- package/dist/modules/integration/observationType/interfaces.d.ts +0 -25
- package/dist/modules/stock/typeOfLocation/interface.d.ts +0 -30
- package/dist/modules/user/userPositions/interface.d.ts +0 -28
package/dist/main.d.ts
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import * as Adiantamento from "./modules/document/adiantamento/interfaces";
|
|
2
1
|
import * as BillOfLading from "./modules/document/billOfLading/interfaces";
|
|
3
2
|
import * as Catalogo from "./modules/document/CAT/interfaces";
|
|
4
|
-
import * as FaturaCredito from "./modules/document/faturaCredito/interfaces";
|
|
5
|
-
import * as FaturaRecibo from "./modules/document/faturaRecibo/interfaces";
|
|
6
|
-
import * as FaturaSimplificada from "./modules/document/faturaSimplificada/interfaces";
|
|
7
3
|
import * as Inventario from "./modules/document/inventario/interface";
|
|
8
4
|
import * as MaterialEntrance from "./modules/document/materialEntrance/interfaces";
|
|
9
|
-
import * as NotaCredito from "./modules/document/notaCredito/interfaces";
|
|
10
|
-
import * as NotaCreditoAdiantamento from "./modules/document/notaCreditoAdiantamento/interfaces";
|
|
11
5
|
import * as NPF from "./modules/document/NPF/interface";
|
|
12
6
|
import * as NRCL from "./modules/document/NRCL/interface";
|
|
13
7
|
import * as Order from "./modules/document/order/interfaces";
|
|
14
|
-
import * as ProductionOrder from "./modules/document/productionOrder/interfaces";
|
|
15
8
|
import * as Proforma from "./modules/document/proforma/interfaces";
|
|
16
9
|
import * as PropostaFornecedor from "./modules/document/propostaFornecedor/interfaces";
|
|
17
10
|
import * as PropostaSheets from "./modules/document/propostaSheets/interface";
|
|
@@ -20,7 +13,6 @@ import * as ProviderFinancialCreditNote from "./modules/document/providerFinanci
|
|
|
20
13
|
import * as ProviderServiceInvoice from "./modules/document/providerServiceInvoice/interfaces";
|
|
21
14
|
import * as Purchase from "./modules/document/purchase/interfaces";
|
|
22
15
|
import * as Quebra from "./modules/document/quebra/interfaces";
|
|
23
|
-
import * as Recibo from "./modules/document/recibo/interfaces";
|
|
24
16
|
import * as ReturnToProvider from "./modules/document/returnToProvider/interface";
|
|
25
17
|
import * as Transformado from "./modules/document/transformado/interfaces";
|
|
26
18
|
import * as UpfrontReturn from "./modules/document/upfrontReturn/interfaces";
|
|
@@ -33,7 +25,6 @@ import * as EuPago from "./modules/integration/eupago/interfaces";
|
|
|
33
25
|
import * as GoogleFilePermission from "./modules/integration/googleFilePermission/interfaces";
|
|
34
26
|
import * as GoogleSheets from "./modules/integration/googleSheets/interfaces";
|
|
35
27
|
import * as Observation from "./modules/integration/observation/interfaces";
|
|
36
|
-
import * as ObservationType from "./modules/integration/observationType/interfaces";
|
|
37
28
|
import * as PatchNotes from "./modules/integration/patchNotes/interfaces";
|
|
38
29
|
import * as PersonaMerge from "./modules/integration/personaMerge/interfaces";
|
|
39
30
|
import * as ProjectInfo from "./modules/integration/projectInfo/interfaces";
|
|
@@ -76,8 +67,6 @@ import * as StockMovement from "./modules/stock/stockMovement/interface";
|
|
|
76
67
|
import * as Tag from "./modules/stock/tag/interface";
|
|
77
68
|
import * as Task from "./modules/stock/task/interface";
|
|
78
69
|
import * as TaskMessage from "./modules/stock/taskMessage/interface";
|
|
79
|
-
import * as TaskRead from "./modules/stock/taskRead/interface";
|
|
80
|
-
import * as TypeOfLocation from "./modules/stock/typeOfLocation/interface";
|
|
81
70
|
import * as UnitOfMeasure from "./modules/stock/unitOfMeasure/interface";
|
|
82
71
|
import * as VatTax from "./modules/stock/vatTax/interface";
|
|
83
72
|
import * as VatTaxZone from "./modules/stock/vatTaxZone/interface";
|
|
@@ -111,6 +100,8 @@ import * as Tickets from "./modules/tickets/tickets/interfaces";
|
|
|
111
100
|
import * as Portal from "./modules/ui/portal/interface";
|
|
112
101
|
import * as SideMenu from "./modules/ui/sideMenu/interface";
|
|
113
102
|
import * as SidemenuHighlight from "./modules/ui/sidemenuHighlight/interface";
|
|
103
|
+
import * as StoreOperatorSaftLock from "./modules/ui/storeOperatorSaftLock/interface";
|
|
104
|
+
import * as TenantSaftLock from "./modules/ui/tenantSaftLock/interface";
|
|
114
105
|
import * as BankData from "./modules/user/bankData/interface";
|
|
115
106
|
import * as ChatSubscriber from "./modules/user/chatSubscribers/interfaces";
|
|
116
107
|
import * as Client from "./modules/user/clients/interface";
|
|
@@ -138,7 +129,6 @@ import * as SystemModule from "./modules/user/systemModule/interface";
|
|
|
138
129
|
import * as Tenant from "./modules/user/tenant/interface";
|
|
139
130
|
import * as Theme from "./modules/user/theme/interfaces";
|
|
140
131
|
import * as TimeSheet from "./modules/user/timeSheet/interfaces";
|
|
141
|
-
import * as UserPositions from "./modules/user/userPositions/interface";
|
|
142
132
|
import * as Users from "./modules/user/users/interface";
|
|
143
133
|
import * as UserTokens from "./modules/user/userTokens/interface";
|
|
144
134
|
import * as Vehicles from "./modules/user/vehicles/interfaces";
|
|
@@ -151,4 +141,4 @@ import * as stockErrors from "./shared/errors/stockErrors";
|
|
|
151
141
|
import * as userErrors from "./shared/errors/userErrors";
|
|
152
142
|
import * as viewErrors from "./shared/errors/viewErrors";
|
|
153
143
|
import * as shared from "./shared/interface";
|
|
154
|
-
export { AccountCode,
|
|
144
|
+
export { AccountCode, AdminPanel, AllowedDevice, BankData, BillOfLading, Catalogo, Channel, Chat, ChatRapidMessage, ChatSubscriber, Client, ClientType, CLT, Commissioner, ConferirEncomenda, Country, CurrentAccount, Dashboard, DeliveryMethods, DisplayLabel, DisplayLabels, DocumentHeader, DocumentHeaderHistory, DocumentHeaderSubscriber, DocumentHeaderSurvey, DocumentLine, DocumentLineAssoc, DocumentLineMt, DocumentLineNote, DocumentLineRm, documentManagementErrors, DocumentSet, DocumentType, EmailAccount, EmailLog, EmailTemplate, EmailTemplateAttachment, EmailVerification, ErrorLog, EuPago, ExternalDocumentHeader, ExternalDocumentType, Favorites, File, Gmails, GoogleCalendar, GoogleFilePermission, GoogleSheetPool, GoogleSheets, integrationErrors, Inventario, Language, LLM, Location, MaterialEntrance, MaturityDates, MobilePrint, Multimedia, Npc, NPF, NRCL, Observation, Order, OrderManagement, Password, PatchNotes, Payment, PaymentBatch, PaymentMethods, Persona, PersonaMerge, Portal, PreSale, PreSaleProduct, Printer, Prison, ProductGoogleSheets, ProductImage, ProductLocation, ProductUpdate, Proforma, ProjectInfo, Promotion, PropostaFornecedor, PropostaSheets, ProviderCreditNoteFromReturn, ProviderFinancialCreditNote, Providers, ProviderServiceInvoice, ProviderType, Purchase, PurchaseConditions, Quebra, QueryList, QueryParameter, ReasonForExemption, RecurrentTasks, RefreshToken, ReturnReason, ReturnToProvider, Saft, SavedEmPicking, SavedProviderProposal, Schedule, SchedulePrintJob, SegmentsArea, Sessions, Settings, shared, Shippings, SideMenu, SidemenuHighlight, SmsSender, SmsTemplate, StartDocumentHeaderLastUpdate, stockErrors, StockMovement, StoreOperator, StoreOperatorSaftLock, Swift, SystemModule, Tag, Task, TaskMessage, Tenant, TenantSaftLock, Theme, Tickets, TicketsLanguage, TimeSheet, Transformado, UnitOfMeasure, UpfrontReturn, userErrors, Users, UserTokens, VatTax, VatTaxZone, VatValidation, Vehicles, viewErrors, WebSocket, Workflow, };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { DocumentHeader } from "../../../shared/entities/stock";
|
|
2
1
|
import * as IShared from "../../../shared/interface";
|
|
3
|
-
export type Entity = Omit<DocumentHeader, "external_data">;
|
|
4
2
|
export declare const Route = "document_header";
|
|
5
3
|
export interface IMultipleRegularizationPayments {
|
|
6
4
|
value: number;
|
|
@@ -10,11 +10,20 @@ export interface IDeliveryAddressRequest {
|
|
|
10
10
|
delivery_departure_street: string;
|
|
11
11
|
delivery_departure_country_id: string;
|
|
12
12
|
}
|
|
13
|
+
export interface IHeaderAddressRequest {
|
|
14
|
+
street: string;
|
|
15
|
+
locality: string;
|
|
16
|
+
postal_code: string;
|
|
17
|
+
country_id: string;
|
|
18
|
+
}
|
|
13
19
|
export interface ICreateRequest {
|
|
14
20
|
persona_id: string;
|
|
15
21
|
persona_name: string;
|
|
16
22
|
persona_nif?: string;
|
|
23
|
+
header_address?: IHeaderAddressRequest;
|
|
17
24
|
document_type_id: number;
|
|
25
|
+
show_values?: boolean;
|
|
26
|
+
is_delivery_note?: boolean;
|
|
18
27
|
from_document_header_id: string;
|
|
19
28
|
delivery_addresses: IDeliveryAddressRequest;
|
|
20
29
|
document_line_ids: string[];
|
|
@@ -9,7 +9,6 @@ export declare const ICreateMaterialEntranceClientOrderOptionEnum: {
|
|
|
9
9
|
"Vai desligar a PC da PF": "Vai desligar a PC da PF";
|
|
10
10
|
};
|
|
11
11
|
export type ICreateMaterialEntranceClientOrderOption = (typeof ICreateMaterialEntranceClientOrderOptionEnum)[keyof typeof ICreateMaterialEntranceClientOrderOptionEnum];
|
|
12
|
-
export declare const createMaterialEntranceClientOrderOptions: string[];
|
|
13
12
|
export interface IGetMaterialEntranceInfoClientOrder {
|
|
14
13
|
ef_dla_id: string;
|
|
15
14
|
ordered_quantity: number;
|
|
@@ -31,17 +30,12 @@ export declare const ICreateMaterialEntranceStockWithoutOrderOptionEnum: {
|
|
|
31
30
|
"Vai criar nova linha na PF": "Vai criar nova linha na PF";
|
|
32
31
|
};
|
|
33
32
|
export type ICreateMaterialEntranceStockWithoutOrderOption = (typeof ICreateMaterialEntranceStockWithoutOrderOptionEnum)[keyof typeof ICreateMaterialEntranceStockWithoutOrderOptionEnum];
|
|
34
|
-
export declare const createMaterialEntranceStockWithoutOrderOptions: string[];
|
|
35
33
|
export declare const ICreateMaterialEntranceStockOptionEnum: {
|
|
36
34
|
"Vai desdobrar linha na PF (estado Espera Chegada)": "Vai desdobrar linha na PF (estado Espera Chegada)";
|
|
37
35
|
"Vai desdobrar linha na PF (estado Espera Envio Encomenda)": "Vai desdobrar linha na PF (estado Espera Envio Encomenda)";
|
|
38
36
|
"Vai atualizar quantidade na PF": "Vai atualizar quantidade na PF";
|
|
39
37
|
};
|
|
40
38
|
export type ICreateMaterialEntranceStockOption = (typeof ICreateMaterialEntranceStockOptionEnum)[keyof typeof ICreateMaterialEntranceStockOptionEnum];
|
|
41
|
-
export declare const createMaterialEntranceStockOptions: string[];
|
|
42
|
-
export interface IGetMaterialEntranceInfoRequest {
|
|
43
|
-
ef_dla_ids: string[];
|
|
44
|
-
}
|
|
45
39
|
export interface IGetMaterialEntranceInfoStock {
|
|
46
40
|
ef_dla_id: string | null;
|
|
47
41
|
ordered_quantity: number;
|
|
@@ -24,20 +24,6 @@ export interface IConferirEncomendaClienteRequest {
|
|
|
24
24
|
export interface IConferirEncomendaClienteResponse {
|
|
25
25
|
document_line_id: string;
|
|
26
26
|
}
|
|
27
|
-
export interface IFindStockToOrderResponse {
|
|
28
|
-
document_line_assoc_id: string;
|
|
29
|
-
document_line_id: string;
|
|
30
|
-
document_number: string;
|
|
31
|
-
owner_id: string;
|
|
32
|
-
product: {
|
|
33
|
-
product_id: string;
|
|
34
|
-
reference?: string;
|
|
35
|
-
designation?: string;
|
|
36
|
-
thumbnail_multimedia_id?: string;
|
|
37
|
-
quantity: number;
|
|
38
|
-
unit_of_measure_notation: string;
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
27
|
export interface ISetProviderRequest {
|
|
42
28
|
document_line_assoc_ids: string[];
|
|
43
29
|
id_provider: number;
|
|
@@ -26,7 +26,7 @@ export interface ICreateProviderCreditNoteFromReturnDocumentHeaders {
|
|
|
26
26
|
}
|
|
27
27
|
export interface ICreateProviderCreditNoteFromReturnRequest {
|
|
28
28
|
emission_date: Date;
|
|
29
|
-
|
|
29
|
+
external_reference: string;
|
|
30
30
|
observations: string;
|
|
31
31
|
document_headers: ICreateProviderCreditNoteFromReturnDocumentHeaders[];
|
|
32
32
|
acerto: number;
|
|
@@ -16,7 +16,7 @@ export interface IValueByVatTax {
|
|
|
16
16
|
export interface ICreateProviderFinancialCreditNoteRequest {
|
|
17
17
|
provider_id?: string;
|
|
18
18
|
nif?: string;
|
|
19
|
-
|
|
19
|
+
external_reference: string;
|
|
20
20
|
account_code?: string | null;
|
|
21
21
|
auto_pay?: boolean;
|
|
22
22
|
emission_date: Date;
|
|
@@ -7,7 +7,7 @@ export interface IValueByVatTax {
|
|
|
7
7
|
export interface ICreateProviderServiceInvoiceRequest {
|
|
8
8
|
provider_id?: string;
|
|
9
9
|
nif?: string;
|
|
10
|
-
|
|
10
|
+
external_reference: string;
|
|
11
11
|
account_code?: string | null;
|
|
12
12
|
auto_pay?: boolean;
|
|
13
13
|
emission_date: Date;
|
|
@@ -9,7 +9,4 @@ export interface IRepository {
|
|
|
9
9
|
update(id: string, multipartFormData: unknown, headers?: Record<string, string>): Promise<void>;
|
|
10
10
|
findById(multimedia_id: string): Promise<Entity | null>;
|
|
11
11
|
}
|
|
12
|
-
export interface IController extends Omit<IRepository, "findById"> {
|
|
13
|
-
findById(multimedia_id: string, params: IFindByIdRequest): Promise<void>;
|
|
14
|
-
}
|
|
15
12
|
export type IApi = Omit<IRepository, "findById">;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { EmailLog } from "../../../shared/entities/integration";
|
|
2
1
|
import * as IShared from "../../../shared/interface";
|
|
3
|
-
export type Entity = EmailLog;
|
|
4
2
|
export declare const Route = "email_log";
|
|
5
3
|
export interface IFindRequest {
|
|
6
4
|
date_start: Date;
|
|
@@ -34,7 +32,6 @@ export declare const SendGridCallbackEventEnum: {
|
|
|
34
32
|
bounce: "bounce";
|
|
35
33
|
};
|
|
36
34
|
export type ISendGridCallbackEvent = (typeof SendGridCallbackEventEnum)[keyof typeof SendGridCallbackEventEnum];
|
|
37
|
-
export declare const sendGridCallbackEvents: string[];
|
|
38
35
|
export interface ISendGridCallbacks {
|
|
39
36
|
email: string;
|
|
40
37
|
event: ISendGridCallbackEvent;
|
|
@@ -1,15 +1,2 @@
|
|
|
1
1
|
import { EmailTemplateAttachment } from "../../../shared/entities/integration";
|
|
2
|
-
import * as IShared from "../../../shared/interface";
|
|
3
2
|
export type Entity = EmailTemplateAttachment;
|
|
4
|
-
export declare const Route = "email_template_attachment";
|
|
5
|
-
export interface ICreateRequest {
|
|
6
|
-
email_template_id: string;
|
|
7
|
-
multimedia_id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
}
|
|
10
|
-
export interface IRepository {
|
|
11
|
-
create(data: ICreateRequest): Promise<string>;
|
|
12
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
13
|
-
}
|
|
14
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
15
|
-
export type IApi = IRepository;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { EmailVerification } from "../../../shared/entities/integration";
|
|
2
1
|
import * as IShared from "../../../shared/interface";
|
|
3
|
-
export type Entity = EmailVerification;
|
|
4
2
|
export declare const Route = "email_verification";
|
|
5
3
|
export interface IIsVerifiedRequest {
|
|
6
4
|
email: string;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { GoogleFilePermission } from "../../../shared/entities/integration";
|
|
2
|
-
import * as IShared from "../../../shared/interface";
|
|
3
2
|
export type Entity = GoogleFilePermission;
|
|
4
3
|
export declare const Route = "google_file_permission";
|
|
5
|
-
export type IFindRequest = Record<string, unknown>;
|
|
6
4
|
export interface ICreateRequest {
|
|
7
5
|
file_id: string;
|
|
8
6
|
email: string;
|
|
@@ -12,13 +10,7 @@ export interface ICreateRequestRepository extends ICreateRequest {
|
|
|
12
10
|
}
|
|
13
11
|
export interface IController {
|
|
14
12
|
create(data: ICreateRequest): Promise<Entity>;
|
|
15
|
-
findById(shared: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
16
|
-
find(): Promise<Entity[]>;
|
|
17
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
18
13
|
}
|
|
19
14
|
export interface IRepository {
|
|
20
15
|
create(data: ICreateRequestRepository): Promise<Entity>;
|
|
21
|
-
findById(shared: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
22
|
-
find(): Promise<Entity[]>;
|
|
23
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
24
16
|
}
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import { Observation
|
|
1
|
+
import { Observation } from "../../../shared/entities/integration";
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Observation;
|
|
4
4
|
export declare const Route = "observation";
|
|
5
5
|
export interface ICreateRequest {
|
|
6
6
|
owner_id: string;
|
|
7
|
-
observation_type_id?: string | null;
|
|
8
7
|
description: string;
|
|
9
8
|
internal: boolean;
|
|
10
9
|
}
|
|
11
10
|
export interface IUpdateRequest {
|
|
12
|
-
observation_type_id?: string | null;
|
|
13
11
|
description?: string;
|
|
14
12
|
internal?: boolean;
|
|
15
13
|
}
|
|
16
14
|
export interface IFindByQueryRequest {
|
|
17
15
|
owner_id?: string;
|
|
18
|
-
observation_type_id?: string;
|
|
19
16
|
description?: string;
|
|
20
17
|
internal?: boolean;
|
|
21
18
|
}
|
|
@@ -27,9 +24,7 @@ export interface IFindByOwnersRequest {
|
|
|
27
24
|
owner_ids: string[];
|
|
28
25
|
includeInternal?: boolean;
|
|
29
26
|
}
|
|
30
|
-
export
|
|
31
|
-
observation_type: ObservationType | null;
|
|
32
|
-
}
|
|
27
|
+
export type IFindByOwnerResponse = Entity;
|
|
33
28
|
export interface IRepository {
|
|
34
29
|
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
35
30
|
findByQuery(data: IFindByQueryRequest): Promise<Entity[]>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { PatchNotes } from "../../../shared/entities/integration";
|
|
2
|
-
import * as IShared from "../../../shared/interface";
|
|
3
|
-
export type Entity = PatchNotes;
|
|
4
1
|
export declare const Route = "patch_notes";
|
|
5
2
|
export interface IFindResponse {
|
|
6
3
|
date: string;
|
|
@@ -42,4 +39,3 @@ export interface IRepository {
|
|
|
42
39
|
find(): Promise<IFindResponse[]>;
|
|
43
40
|
createOrUpdate(data: ICreateRequest): Promise<void>;
|
|
44
41
|
}
|
|
45
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -17,7 +17,6 @@ export type IBudgetOptionsType = {
|
|
|
17
17
|
multimedias: IMultimedia[];
|
|
18
18
|
};
|
|
19
19
|
export type IProjectInfoType = (typeof IProjectInfoTypeEnum)[keyof typeof IProjectInfoTypeEnum];
|
|
20
|
-
export declare const projectInfoTypes: string[];
|
|
21
20
|
export interface ICreateRequest extends Omit<Entity, "created_at" | "updated_at" | "document_header_id" | "id" | "email_log" | "persona_id" | "client_id"> {
|
|
22
21
|
persona_id?: string;
|
|
23
22
|
client_id?: string;
|
|
@@ -31,7 +30,6 @@ export declare const IProjectInfoOriginTypeEnum: {
|
|
|
31
30
|
portal: "portal";
|
|
32
31
|
};
|
|
33
32
|
export type IProjectInfoOriginType = (typeof IProjectInfoOriginTypeEnum)[keyof typeof IProjectInfoOriginTypeEnum];
|
|
34
|
-
export declare const ProjectInfoOriginTypes: string[];
|
|
35
33
|
export interface IController {
|
|
36
34
|
sendEmail(data: ICreateRequest): Promise<ICreateResponse>;
|
|
37
35
|
}
|
|
@@ -18,6 +18,5 @@ export interface IRepository {
|
|
|
18
18
|
findByKey(selector: IFindByKeyRequest): Promise<Entity | null>;
|
|
19
19
|
create(data: ICreateRequest): Promise<Entity>;
|
|
20
20
|
update(data: IUpdateRequest): Promise<Entity | null>;
|
|
21
|
-
deleteOne(selector: IShared.IFindByIdNumberRequest): Promise<Entity | null>;
|
|
22
21
|
}
|
|
23
22
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as IShared from "../../../shared/interface";
|
|
2
1
|
export declare const Route = "llm";
|
|
3
2
|
export interface IPromptRequest {
|
|
4
3
|
prompt: string;
|
|
@@ -40,4 +39,3 @@ export interface IRepository {
|
|
|
40
39
|
identifyLanguage(data: IIdentifyLanguageRequest): Promise<string>;
|
|
41
40
|
identifyAndTranslate(data: ITranslateRequest): Promise<IIdentifyAndTranslateResponse>;
|
|
42
41
|
}
|
|
43
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -29,7 +29,6 @@ export interface IUpdateManyRequest {
|
|
|
29
29
|
export interface IRepository {
|
|
30
30
|
find: () => Promise<IFindDetailedResponse[]>;
|
|
31
31
|
findByOwnerId: (selector: IShared.IFindByOwnerIdRequest) => Promise<Entity[]>;
|
|
32
|
-
update: (params: IShared.IFindByIdRequest, data: IUpdateRequest) => Promise<Entity | null>;
|
|
33
32
|
updateMany: (data: IUpdateManyRequest[]) => Promise<void>;
|
|
34
33
|
getOrSetPrinters: (data: IGetOrSetPrintersRequest) => Promise<IGetOrSetPrintersResponse>;
|
|
35
34
|
}
|
|
@@ -9,12 +9,6 @@ export declare const ISmsSenderStatsEnum: {
|
|
|
9
9
|
readonly FAILED: "FAILED";
|
|
10
10
|
};
|
|
11
11
|
export type ISmsSenderStats = (typeof ISmsSenderStatsEnum)[keyof typeof ISmsSenderStatsEnum];
|
|
12
|
-
export declare const timeSheetRecordTypes: ("PENDING" | "PROCESSING" | "SENT" | "FAILED")[];
|
|
13
|
-
export interface ICreateRequest {
|
|
14
|
-
telephone: string;
|
|
15
|
-
message: string;
|
|
16
|
-
google_calendar_id: string;
|
|
17
|
-
}
|
|
18
12
|
export interface IClaimResponse {
|
|
19
13
|
id: string;
|
|
20
14
|
telephone: string;
|
|
@@ -44,4 +38,3 @@ export interface IRepository {
|
|
|
44
38
|
find(): Promise<IFindResponse[]>;
|
|
45
39
|
}
|
|
46
40
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
47
|
-
export type IApi = IRepository;
|
|
@@ -6,12 +6,6 @@ export type SmsTemplateVariables = Record<string, string | number | boolean>;
|
|
|
6
6
|
export interface IFindByKeyRequest {
|
|
7
7
|
key: string;
|
|
8
8
|
}
|
|
9
|
-
export interface ICreateRequest {
|
|
10
|
-
key: string;
|
|
11
|
-
name: string;
|
|
12
|
-
message: string;
|
|
13
|
-
variables?: SmsTemplateVariables;
|
|
14
|
-
}
|
|
15
9
|
export interface IUpdateRequest {
|
|
16
10
|
name?: string;
|
|
17
11
|
key?: string;
|
|
@@ -22,9 +16,6 @@ export interface IRepository {
|
|
|
22
16
|
find(): Promise<Entity[]>;
|
|
23
17
|
findById(id: string): Promise<Entity>;
|
|
24
18
|
findByKey(key: string): Promise<Entity>;
|
|
25
|
-
create(data: ICreateRequest): Promise<string>;
|
|
26
19
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
27
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
28
20
|
}
|
|
29
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
30
21
|
export type IApi = IRepository;
|
|
@@ -61,6 +61,5 @@ export interface IRepository {
|
|
|
61
61
|
markAllAsUnread(params: IShared.IFindByIdRequest): Promise<void>;
|
|
62
62
|
publicMarkAllClientReadUnread(params: IMarkAllClientReadUnreadRequest): Promise<void>;
|
|
63
63
|
resendLast(params: IShared.IFindByIdRequest): Promise<void>;
|
|
64
|
-
translate(data: ITranslateRequest): Promise<string>;
|
|
65
64
|
}
|
|
66
65
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { ConferirEncomenda } from "../../../shared/entities/stock";
|
|
2
|
-
export declare const Route = "conferir_encomenda";
|
|
3
|
-
export type Entity = ConferirEncomenda;
|
|
4
1
|
export declare const EstadoEncomendaEnum: {
|
|
5
2
|
readonly PorConfirmar: "PorConfirmar";
|
|
6
3
|
readonly EsperaDefDetVendedor: "EsperaDefDetVendedor";
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { Gmails } from "../../../shared/entities/stock";
|
|
2
|
-
import * as IShared from "../../../shared/interface";
|
|
3
|
-
export type Entity = Gmails;
|
|
4
1
|
export declare const Route = "gmail";
|
|
5
2
|
export interface IGmailsResponse {
|
|
6
3
|
id: string;
|
|
@@ -27,4 +24,3 @@ export interface IRepository {
|
|
|
27
24
|
auth(): Promise<string>;
|
|
28
25
|
emails(): Promise<IGmailsResponse[]>;
|
|
29
26
|
}
|
|
30
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { GoogleSheetPool } from "../../../shared/entities/stock";
|
|
2
1
|
import * as IShared from "../../../shared/interface";
|
|
3
|
-
export type Entity = GoogleSheetPool;
|
|
4
2
|
export declare const Route = "google_sheet_pool";
|
|
5
3
|
export interface IRepository {
|
|
6
4
|
clearAndFill(): Promise<void>;
|
|
@@ -1,58 +1,10 @@
|
|
|
1
|
-
import { Location
|
|
1
|
+
import { Location } from "../../../shared/entities/stock";
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Location;
|
|
4
4
|
export declare const Route = "location";
|
|
5
|
-
interface IFindDetailedResponse extends Entity {
|
|
6
|
-
type_of_location: TypeOfLocation;
|
|
7
|
-
}
|
|
8
|
-
export type IFindByIdResponse = Omit<IFindDetailedResponse, "type_of_location">;
|
|
9
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "type_of_location">;
|
|
10
5
|
export type IFindRequest = Record<string, unknown>;
|
|
11
|
-
export type IFindResponse =
|
|
12
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
13
|
-
}
|
|
14
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "type_of_location">>;
|
|
15
|
-
export type IGeolocationCreate = {
|
|
16
|
-
lat: number;
|
|
17
|
-
lon: number;
|
|
18
|
-
};
|
|
19
|
-
export type IGeolocationUpdate = {
|
|
20
|
-
lat?: number;
|
|
21
|
-
lon?: number;
|
|
22
|
-
};
|
|
23
|
-
export interface ICreateRequest {
|
|
24
|
-
name: string;
|
|
25
|
-
street: string;
|
|
26
|
-
country_id: string;
|
|
27
|
-
country_name: string;
|
|
28
|
-
locality: string;
|
|
29
|
-
postal_code: string;
|
|
30
|
-
type_of_location_id: string;
|
|
31
|
-
geolocation?: IGeolocationCreate;
|
|
32
|
-
default_billing?: boolean;
|
|
33
|
-
default_delivery?: boolean;
|
|
34
|
-
}
|
|
35
|
-
export interface IUpdateRequest {
|
|
36
|
-
name?: string;
|
|
37
|
-
street?: string;
|
|
38
|
-
locality?: string;
|
|
39
|
-
country_id?: string;
|
|
40
|
-
country_name?: string;
|
|
41
|
-
postal_code?: string;
|
|
42
|
-
type_of_location_id?: string;
|
|
43
|
-
geolocation?: IGeolocationUpdate;
|
|
44
|
-
default_billing?: boolean;
|
|
45
|
-
default_delivery?: boolean;
|
|
46
|
-
}
|
|
6
|
+
export type IFindResponse = Entity;
|
|
47
7
|
export interface IRepository {
|
|
48
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
49
|
-
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
50
|
-
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
51
8
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
52
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
53
|
-
create(data: ICreateRequest): Promise<IFindResponse>;
|
|
54
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindResponse | null>;
|
|
55
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindResponse | null>;
|
|
56
9
|
}
|
|
57
10
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
58
|
-
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as IShared from "../../../shared/interface";
|
|
2
1
|
export declare const Route = "mobile_print";
|
|
3
2
|
export interface IPrintLocations {
|
|
4
3
|
locations_ids: string[];
|
|
@@ -13,4 +12,3 @@ export interface IPrintLocationsRequest {
|
|
|
13
12
|
export interface IRepository {
|
|
14
13
|
printLocationsPdf(data: string[]): Promise<void>;
|
|
15
14
|
}
|
|
16
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ProductBaseVirtuals, type ProductImage, type ProductPromotionVirtuals, type ProductSheet, type ProductVirtuals, type UnitOfMeasure, type VatTax, type VatTaxZone } from "../../../shared/entities/stock";
|
|
1
|
+
import { type ProductBaseVirtuals, type ProductImage, type ProductPromotionVirtuals, type ProductSaftLockVirtuals, type ProductSheet, type ProductVirtuals, type UnitOfMeasure, type VatTax, type VatTaxZone } from "../../../shared/entities/stock";
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
import * as IDocumentLine from "../../supply/documentLine/interfaces";
|
|
4
4
|
export declare const Route = "product_sheets";
|
|
@@ -7,7 +7,6 @@ export type IProductVirtuals = ProductVirtuals;
|
|
|
7
7
|
export type IProductBaseVirtuals = ProductBaseVirtuals;
|
|
8
8
|
export type Entity = ProductSheet;
|
|
9
9
|
export type IProductsForSheetsResponse = Record<string, unknown>;
|
|
10
|
-
export type IProductFromSheetsValues = Record<string, unknown>;
|
|
11
10
|
export type IProductSheetState = "Ativa" | "NaoVemMais" | "VemTemporariamente" | "DescontinuadoFabrica";
|
|
12
11
|
export declare const ProductStateEnum: {
|
|
13
12
|
Ativa: "Ativa";
|
|
@@ -15,7 +14,6 @@ export declare const ProductStateEnum: {
|
|
|
15
14
|
VemTemporariamente: "VemTemporariamente";
|
|
16
15
|
DescontinuadoFabrica: "DescontinuadoFabrica";
|
|
17
16
|
};
|
|
18
|
-
export declare const ProductStateLabels: Record<keyof typeof ProductStateEnum, string>;
|
|
19
17
|
export type IProductState = (typeof ProductStateEnum)[keyof typeof ProductStateEnum];
|
|
20
18
|
export declare const productState: string[];
|
|
21
19
|
export declare const ProductTypeEnum: {
|
|
@@ -26,9 +24,40 @@ export declare const ProductTypeEnum: {
|
|
|
26
24
|
Portes: "Portes";
|
|
27
25
|
RM: "RM";
|
|
28
26
|
Montagem: "Montagem";
|
|
27
|
+
Adiantamento: "Adiantamento";
|
|
29
28
|
};
|
|
30
29
|
export type IProductType = (typeof ProductTypeEnum)[keyof typeof ProductTypeEnum];
|
|
31
30
|
export declare const productTypes: string[];
|
|
31
|
+
/**
|
|
32
|
+
* Indicador de produto ou serviço do SAF-T (PT) — ponto 2.4.1 (ProductType):
|
|
33
|
+
* P - Produtos, S - Serviços, O - Outros (ex.: portes debitados, adiantamentos
|
|
34
|
+
* recebidos ou alienação de ativos).
|
|
35
|
+
*
|
|
36
|
+
* É o valor de `product_sheet.saft_product_type`, coluna gerada a partir de
|
|
37
|
+
* `product_sheet.type` (o mapeamento vive na migração, não em código).
|
|
38
|
+
*/
|
|
39
|
+
export declare const SaftProductTypeEnum: {
|
|
40
|
+
P: "P";
|
|
41
|
+
S: "S";
|
|
42
|
+
O: "O";
|
|
43
|
+
};
|
|
44
|
+
export type ISaftProductType = (typeof SaftProductTypeEnum)[keyof typeof SaftProductTypeEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Categoria do produto na comunicação de inventários à AT
|
|
47
|
+
* (`product_sheet.type_of_inventory`): M - Mercadorias, P - Matérias-primas,
|
|
48
|
+
* A - Produtos acabados, S - Subprodutos, T - Produtos em curso, B - Ativos
|
|
49
|
+
* biológicos. As letras P/S NÃO têm o mesmo significado que no SAF-T de
|
|
50
|
+
* faturação (`ISaftProductType`).
|
|
51
|
+
*/
|
|
52
|
+
export declare const InventoryCategoryEnum: {
|
|
53
|
+
M: "M";
|
|
54
|
+
P: "P";
|
|
55
|
+
A: "A";
|
|
56
|
+
S: "S";
|
|
57
|
+
T: "T";
|
|
58
|
+
B: "B";
|
|
59
|
+
};
|
|
60
|
+
export type IInventoryCategory = (typeof InventoryCategoryEnum)[keyof typeof InventoryCategoryEnum];
|
|
32
61
|
export interface ICreateRequest {
|
|
33
62
|
id?: string;
|
|
34
63
|
reference?: string;
|
|
@@ -40,7 +69,6 @@ export interface ICreateRequest {
|
|
|
40
69
|
short_description?: string | null;
|
|
41
70
|
state?: IProductSheetState;
|
|
42
71
|
type?: IProductType;
|
|
43
|
-
type_of_inventory?: string;
|
|
44
72
|
external_id?: string;
|
|
45
73
|
vat_tax_id?: string;
|
|
46
74
|
reason_for_exemption?: string | null;
|
|
@@ -86,6 +114,7 @@ interface IProductSheetEntityBase extends Omit<Entity, "values"> {
|
|
|
86
114
|
}
|
|
87
115
|
export interface IProductSheetEntity extends IProductSheetEntityBase {
|
|
88
116
|
base_virtual: ProductBaseVirtuals | null;
|
|
117
|
+
saft_lock: ProductSaftLockVirtuals | null;
|
|
89
118
|
}
|
|
90
119
|
export interface IProductCabideColors {
|
|
91
120
|
id: string;
|
|
@@ -221,10 +250,6 @@ export interface IProductLocation {
|
|
|
221
250
|
product_ids: string[];
|
|
222
251
|
created_by: string;
|
|
223
252
|
}
|
|
224
|
-
export interface IProductByOwner {
|
|
225
|
-
id: string;
|
|
226
|
-
reference: string;
|
|
227
|
-
}
|
|
228
253
|
export interface IExpectDeliveryDates {
|
|
229
254
|
quantity: number;
|
|
230
255
|
date: string | null;
|
|
@@ -2,20 +2,13 @@ import { ProductImage } from "../../../shared/entities/stock";
|
|
|
2
2
|
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = ProductImage;
|
|
4
4
|
export declare const Route = "product_image";
|
|
5
|
-
type
|
|
6
|
-
export type
|
|
7
|
-
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "">;
|
|
8
|
-
export type IFindRequest = Record<string, unknown>;
|
|
9
|
-
export type IFindResponse = Omit<IFindDetailedResponse, "">;
|
|
5
|
+
export type IFindByOwnerIdResponse = Entity;
|
|
6
|
+
export type IFindResponse = Entity;
|
|
10
7
|
export declare const ImageTypeEnum: {
|
|
11
8
|
thumbnail: "thumbnail";
|
|
12
9
|
site: "site";
|
|
13
10
|
};
|
|
14
11
|
export type IImageType = (typeof ImageTypeEnum)[keyof typeof ImageTypeEnum];
|
|
15
|
-
export declare const imageTypes: string[];
|
|
16
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
17
|
-
}
|
|
18
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, "">>;
|
|
19
12
|
export interface ICreateRequest {
|
|
20
13
|
product_id: string;
|
|
21
14
|
product_sheet_id?: string;
|
|
@@ -24,19 +17,9 @@ export interface ICreateRequest {
|
|
|
24
17
|
created_by?: string | null;
|
|
25
18
|
updated_by?: string | null;
|
|
26
19
|
}
|
|
27
|
-
export interface IUpdateRequest {
|
|
28
|
-
product_id?: string;
|
|
29
|
-
multimedia_id?: string;
|
|
30
|
-
type?: IImageType;
|
|
31
|
-
}
|
|
32
20
|
export interface IRepository {
|
|
33
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
34
21
|
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
35
|
-
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
36
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
37
22
|
create(data: ICreateRequest): Promise<Entity>;
|
|
38
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
39
23
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
40
24
|
}
|
|
41
25
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
42
|
-
export {};
|