@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,74 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { DocumentLinePendingConflict, DocumentLine } from '../../../shared/entities/stock';
|
|
3
|
-
export type Entity = DocumentLinePendingConflict;
|
|
4
|
-
export declare const Route = "documentLine_pending_conflict";
|
|
5
|
-
export declare const UpperName = "DocumentLinePendingConflict";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
export declare const IConflictEnum: {
|
|
8
|
-
update: 'update';
|
|
9
|
-
delete: 'delete';
|
|
10
|
-
price: 'price';
|
|
11
|
-
};
|
|
12
|
-
export type IConflict = (typeof IConflictEnum)[keyof typeof IConflictEnum];
|
|
13
|
-
export interface IFindByGooglesheetIdResponse {
|
|
14
|
-
document_header_id: string;
|
|
15
|
-
}
|
|
16
|
-
export type IConflictCreateRequest = Omit<Entity, 'id' | 'created_at' | 'created_by' | 'updated_at' | 'updated_by'>;
|
|
17
|
-
export interface IConflictFindByOwnerIdResponse extends Entity {
|
|
18
|
-
document_line: Pick<DocumentLine, 'preco_venda' | 'client_discount' | 'quantity'> & {
|
|
19
|
-
designation: string;
|
|
20
|
-
reference: string;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export interface ICreateSheetFromDocumentResponse {
|
|
24
|
-
google_sheet_id: string;
|
|
25
|
-
}
|
|
26
|
-
export interface ICloneSheetToNewDocumentResponse {
|
|
27
|
-
id: string;
|
|
28
|
-
document_number: number;
|
|
29
|
-
}
|
|
30
|
-
export interface IIsProcessingResponse {
|
|
31
|
-
is_processing: boolean;
|
|
32
|
-
last_error: string | null;
|
|
33
|
-
}
|
|
34
|
-
export interface ICloneSheetToNewDocumentRequest {
|
|
35
|
-
id: string;
|
|
36
|
-
}
|
|
37
|
-
export interface IImportFromSheetRequest {
|
|
38
|
-
id: string;
|
|
39
|
-
original_document_header_id?: string;
|
|
40
|
-
}
|
|
41
|
-
export interface IRmHeaderField {
|
|
42
|
-
group: string;
|
|
43
|
-
field: string;
|
|
44
|
-
label: string;
|
|
45
|
-
type?: string;
|
|
46
|
-
options?: string[];
|
|
47
|
-
}
|
|
48
|
-
export type IData = Record<string, IDataBySheetId | undefined>;
|
|
49
|
-
export interface IDataBySheetId {
|
|
50
|
-
group: string;
|
|
51
|
-
field_name: string;
|
|
52
|
-
value: string | number | boolean | null;
|
|
53
|
-
}
|
|
54
|
-
export interface IRmGetDataBySheetIdResponse {
|
|
55
|
-
headers: IRmHeaderField[];
|
|
56
|
-
data: IData[];
|
|
57
|
-
}
|
|
58
|
-
export interface IRmUpdateDataBySheetIdRequest {
|
|
59
|
-
data: IData[];
|
|
60
|
-
}
|
|
61
|
-
export interface IRepository {
|
|
62
|
-
importFromSheet(params: IImportFromSheetRequest): Promise<IFindByGooglesheetIdResponse>;
|
|
63
|
-
isProcessing(params: IShared.IFindByIdRequest): Promise<IIsProcessingResponse>;
|
|
64
|
-
conflictAccept(params: IShared.IFindByIdRequest): Promise<void>;
|
|
65
|
-
conflictDelete(params: IShared.IFindByIdRequest): Promise<void>;
|
|
66
|
-
conflictFindByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IConflictFindByOwnerIdResponse[]>;
|
|
67
|
-
rmGetDataBySheetId(params: IShared.IFindByIdRequest): Promise<IRmGetDataBySheetIdResponse>;
|
|
68
|
-
rmUpdateDataBySheetId(params: IShared.IFindByIdRequest, body: IRmUpdateDataBySheetIdRequest): Promise<void>;
|
|
69
|
-
}
|
|
70
|
-
export interface IApi extends IRepository {
|
|
71
|
-
createSheetFromDocument(params: IShared.IFindByIdRequest): Promise<ICreateSheetFromDocumentResponse>;
|
|
72
|
-
cloneSheetToNewDocument(params: ICloneSheetToNewDocumentRequest): Promise<ICloneSheetToNewDocumentResponse>;
|
|
73
|
-
}
|
|
74
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import joi from 'joi';
|
|
2
|
-
import { ICloneSheetToNewDocumentRequest, IRmUpdateDataBySheetIdRequest, IImportFromSheetRequest } from './interface';
|
|
3
|
-
export declare const importFromSheetKeys: joi.ObjectSchema<IImportFromSheetRequest>;
|
|
4
|
-
export declare const findByGoogleSheetId: joi.ObjectSchema<any>;
|
|
5
|
-
export declare const cloneSheetToNewDocumentQuery: joi.ObjectSchema<ICloneSheetToNewDocumentRequest>;
|
|
6
|
-
export declare const rmUpdateDataByDocumentLineIdValidation: joi.ObjectSchema<IRmUpdateDataBySheetIdRequest>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
export interface IFindProviderReturnRequest {
|
|
3
|
-
provider_id: string;
|
|
4
|
-
search_value?: string | null;
|
|
5
|
-
}
|
|
6
|
-
export interface IFindProviderReturnOptionValue {
|
|
7
|
-
document_line_id: string;
|
|
8
|
-
product_id: string;
|
|
9
|
-
product_thumbnail: string | null;
|
|
10
|
-
product_reference: string;
|
|
11
|
-
product_designation: string;
|
|
12
|
-
quantity: number;
|
|
13
|
-
unit_of_measure_quantity_notation: string;
|
|
14
|
-
provider_total_without_tax: number;
|
|
15
|
-
provider_total: number;
|
|
16
|
-
}
|
|
17
|
-
export interface IFindProviderReturnResponse {
|
|
18
|
-
id: string;
|
|
19
|
-
label: string;
|
|
20
|
-
value: IFindProviderReturnOptionValue[];
|
|
21
|
-
}
|
|
22
|
-
export interface ICreateProviderCreditNoteFromReturnDocumentHeaders {
|
|
23
|
-
id: string;
|
|
24
|
-
document_line_ids: string[];
|
|
25
|
-
}
|
|
26
|
-
export interface ICreateProviderCreditNoteFromReturnRequest {
|
|
27
|
-
emission_date: Date;
|
|
28
|
-
external_document_name: string;
|
|
29
|
-
observations: string;
|
|
30
|
-
document_headers: ICreateProviderCreditNoteFromReturnDocumentHeaders[];
|
|
31
|
-
acerto: number;
|
|
32
|
-
total: number;
|
|
33
|
-
}
|
|
34
|
-
export interface IRepository {
|
|
35
|
-
findProviderReturn(params: IFindProviderReturnRequest): Promise<IFindProviderReturnResponse[]>;
|
|
36
|
-
createProviderCreditNoteFromReturn(params: ICreateProviderCreditNoteFromReturnRequest): Promise<void>;
|
|
37
|
-
}
|
|
38
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
export interface IFindProviderInvoiceRequest {
|
|
3
|
-
provider_id: string;
|
|
4
|
-
search_value?: string | null;
|
|
5
|
-
}
|
|
6
|
-
export interface IFindProviderInvoiceResponse {
|
|
7
|
-
id: string;
|
|
8
|
-
label: string;
|
|
9
|
-
value: number;
|
|
10
|
-
}
|
|
11
|
-
export interface IValueByVatTax {
|
|
12
|
-
taxPercentage: number;
|
|
13
|
-
total: number;
|
|
14
|
-
}
|
|
15
|
-
export interface ICreateProviderFinancialCreditNoteRequest {
|
|
16
|
-
external_document_name: string;
|
|
17
|
-
provider_id: string;
|
|
18
|
-
parent_document_header_id: string | null;
|
|
19
|
-
emission_date: Date;
|
|
20
|
-
observations: string;
|
|
21
|
-
values: IValueByVatTax[];
|
|
22
|
-
}
|
|
23
|
-
export interface IRepository {
|
|
24
|
-
findProviderInvoice(params: IFindProviderInvoiceRequest): Promise<IFindProviderInvoiceResponse[]>;
|
|
25
|
-
createProviderFinancialCreditNote(params: ICreateProviderFinancialCreditNoteRequest): Promise<void>;
|
|
26
|
-
}
|
|
27
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
export interface IValueByVatTax {
|
|
3
|
-
taxPercentage: number;
|
|
4
|
-
total: number;
|
|
5
|
-
}
|
|
6
|
-
export interface ICreateProviderServiceInvoiceRequest {
|
|
7
|
-
provider_id: string;
|
|
8
|
-
external_document_name: string;
|
|
9
|
-
emission_date: Date;
|
|
10
|
-
observations: string;
|
|
11
|
-
values: IValueByVatTax[];
|
|
12
|
-
}
|
|
13
|
-
export interface IRepository {
|
|
14
|
-
createProviderServiceInvoice(params: ICreateProviderServiceInvoiceRequest): Promise<void>;
|
|
15
|
-
}
|
|
16
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { DocumentLineNote } from '../../../shared/entities/stock';
|
|
3
|
-
export declare const Route = "purchase";
|
|
4
|
-
export declare const UpperName = "Purchase";
|
|
5
|
-
export declare const LowerName: string;
|
|
6
|
-
export type IUnpaidMaterialEntranceLineType = 'Por comprar' | 'Comprado' | 'Devolvido' | 'Prisão';
|
|
7
|
-
export interface IUnpaidMaterialEntranceLineDetails {
|
|
8
|
-
document_line_id: string;
|
|
9
|
-
quantity: number;
|
|
10
|
-
notes: DocumentLineNote[];
|
|
11
|
-
pc_name: string | null;
|
|
12
|
-
pc_id: string | null;
|
|
13
|
-
}
|
|
14
|
-
export interface IUnpaidMaterialEntranceLineResponse {
|
|
15
|
-
group: string;
|
|
16
|
-
document_line_ids: string[];
|
|
17
|
-
product_id: string;
|
|
18
|
-
reference: string;
|
|
19
|
-
designation: string;
|
|
20
|
-
multimedia_id: string | null;
|
|
21
|
-
provider_ref: string | null;
|
|
22
|
-
pf_id: string;
|
|
23
|
-
ef_name: string;
|
|
24
|
-
quantity: number;
|
|
25
|
-
discount: number;
|
|
26
|
-
provider_purchase_discount: number;
|
|
27
|
-
provider_tax_value: number;
|
|
28
|
-
client_tax_value: number;
|
|
29
|
-
global_discount: number;
|
|
30
|
-
preco_custo: number;
|
|
31
|
-
preco_venda: number;
|
|
32
|
-
margin: number | null;
|
|
33
|
-
total_without_tax: number;
|
|
34
|
-
total: number;
|
|
35
|
-
types: IUnpaidMaterialEntranceLineType[];
|
|
36
|
-
created_by: string;
|
|
37
|
-
created_at: Date;
|
|
38
|
-
details: IUnpaidMaterialEntranceLineDetails[];
|
|
39
|
-
consignacao: boolean;
|
|
40
|
-
}
|
|
41
|
-
export interface IUnpaidMaterialEntranceItemResponse {
|
|
42
|
-
name: string;
|
|
43
|
-
lines: IUnpaidMaterialEntranceLineResponse[];
|
|
44
|
-
}
|
|
45
|
-
export interface IUnpaidMaterialEntranceResponse {
|
|
46
|
-
entradaMaterial: IUnpaidMaterialEntranceItemResponse[];
|
|
47
|
-
}
|
|
48
|
-
export interface IPurchaseFromProviderShipping {
|
|
49
|
-
product_id: string;
|
|
50
|
-
price: number;
|
|
51
|
-
}
|
|
52
|
-
export interface IPurchaseFromProviderAdjustment {
|
|
53
|
-
value: number;
|
|
54
|
-
}
|
|
55
|
-
export interface IPurchaseFromProviderTaxRetention {
|
|
56
|
-
value: number;
|
|
57
|
-
}
|
|
58
|
-
export interface IPurchaseFromProviderRequest {
|
|
59
|
-
invoice_number: string;
|
|
60
|
-
invoice_emission_date: Date;
|
|
61
|
-
invoice_due_date: Date;
|
|
62
|
-
document_line_ids: string[];
|
|
63
|
-
global_discount?: number | null;
|
|
64
|
-
shipping?: IPurchaseFromProviderShipping;
|
|
65
|
-
adjustment?: IPurchaseFromProviderAdjustment;
|
|
66
|
-
tax_retention?: IPurchaseFromProviderTaxRetention;
|
|
67
|
-
note?: string;
|
|
68
|
-
vat_self_accounting?: boolean;
|
|
69
|
-
purchase_without_invoice: boolean;
|
|
70
|
-
}
|
|
71
|
-
export interface ISyncRequest {
|
|
72
|
-
provider_id: string;
|
|
73
|
-
document_line_ids: string[];
|
|
74
|
-
}
|
|
75
|
-
export interface ISyncLines {
|
|
76
|
-
document_line_id: string;
|
|
77
|
-
preco_custo: number;
|
|
78
|
-
}
|
|
79
|
-
export interface ISyncResponse {
|
|
80
|
-
provider_discount: number;
|
|
81
|
-
provider_tax: number;
|
|
82
|
-
lines: ISyncLines[];
|
|
83
|
-
}
|
|
84
|
-
export interface IRepository {
|
|
85
|
-
findUnpaidMaterialEntrance(selector: IShared.IFindByIdRequest): Promise<IUnpaidMaterialEntranceResponse>;
|
|
86
|
-
findUnpaidMaterialEntranceProviders(): Promise<IShared.IFindMinifiedResponse[]>;
|
|
87
|
-
purchaseFromProvider(data: IPurchaseFromProviderRequest): Promise<void>;
|
|
88
|
-
sync(data: ISyncRequest): Promise<ISyncResponse>;
|
|
89
|
-
}
|
|
90
|
-
export type IApi = IRepository;
|
|
91
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { DocumentLineNote } from '../../../shared/entities/stock';
|
|
2
|
-
import * as IShared from '../../../shared/interface';
|
|
3
|
-
export declare const Route = "quebra";
|
|
4
|
-
export declare const UpperName = "Quebra";
|
|
5
|
-
export declare const LowerName: string;
|
|
6
|
-
export interface IInventoryLossResponse {
|
|
7
|
-
document_line_id: string;
|
|
8
|
-
id_provider: number;
|
|
9
|
-
product_id: string;
|
|
10
|
-
product_thumbnail: string;
|
|
11
|
-
product_reference: string;
|
|
12
|
-
product_description: string;
|
|
13
|
-
quantity: number;
|
|
14
|
-
unit_of_measure_quantity_notation: string;
|
|
15
|
-
notes: DocumentLineNote[];
|
|
16
|
-
updated_by: string | null;
|
|
17
|
-
updated_at: Date;
|
|
18
|
-
}
|
|
19
|
-
export interface ICreateManyProducts {
|
|
20
|
-
id: string;
|
|
21
|
-
quantity: number;
|
|
22
|
-
note?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface ICreateManyRequest {
|
|
25
|
-
products: ICreateManyProducts[];
|
|
26
|
-
}
|
|
27
|
-
export interface IDeleteInventoryLossRequest {
|
|
28
|
-
document_line_ids: string[];
|
|
29
|
-
}
|
|
30
|
-
export interface IRepository {
|
|
31
|
-
findInventoryLosses(): Promise<IInventoryLossResponse[]>;
|
|
32
|
-
findInventoryLossesProviders(): Promise<IShared.IFindMinifiedResponse[]>;
|
|
33
|
-
createMany(data: ICreateManyRequest): Promise<string>;
|
|
34
|
-
deleteInventoryLosses(data: IDeleteInventoryLossRequest): Promise<void>;
|
|
35
|
-
}
|
|
36
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { DocumentLineNote } from '../../../shared/entities/stock';
|
|
2
|
-
import * as IShared from '../../../shared/interface';
|
|
3
|
-
export declare const Route = "return_to_provider";
|
|
4
|
-
export declare const UpperName = "ReturnToProvider";
|
|
5
|
-
export declare const LowerName: string;
|
|
6
|
-
export interface IFindLinesToReturnResponse {
|
|
7
|
-
document_line_assoc_id: string;
|
|
8
|
-
df_name: string;
|
|
9
|
-
pdf_link: string | null;
|
|
10
|
-
document_line_id: string;
|
|
11
|
-
provider_id: string;
|
|
12
|
-
edh_id: string;
|
|
13
|
-
reference: string;
|
|
14
|
-
designation: string;
|
|
15
|
-
thumbnail: string | null;
|
|
16
|
-
product_id: string;
|
|
17
|
-
quantity: number;
|
|
18
|
-
emails_sent: number;
|
|
19
|
-
already_picked_up: boolean;
|
|
20
|
-
return_to_provider_without_credit_note: boolean;
|
|
21
|
-
notes: DocumentLineNote[];
|
|
22
|
-
updated_by: string | null;
|
|
23
|
-
updated_at: Date;
|
|
24
|
-
}
|
|
25
|
-
export declare const checkLinesToReturnOptions: readonly ["Levantar", "Cancelar Levantamento", "Enviar", "Cancelar Envio", "Quebrar", "Cancelar Devolução"];
|
|
26
|
-
export type ICheckLinesToReturnOptions = (typeof checkLinesToReturnOptions)[number];
|
|
27
|
-
export interface ICheckLinesToReturnLinesRequest {
|
|
28
|
-
document_line_assoc_id: string;
|
|
29
|
-
document_line_id: string;
|
|
30
|
-
}
|
|
31
|
-
export interface ICheckLinesToReturnRequest {
|
|
32
|
-
option: ICheckLinesToReturnOptions;
|
|
33
|
-
lines: ICheckLinesToReturnLinesRequest[];
|
|
34
|
-
}
|
|
35
|
-
export interface IRepository {
|
|
36
|
-
checkLinesToReturn(params: ICheckLinesToReturnRequest): Promise<void>;
|
|
37
|
-
findLinesToReturn(params: IShared.IFindOptionalByOwnerIdRequest): Promise<IFindLinesToReturnResponse[]>;
|
|
38
|
-
findLinesToReturnProviders(): Promise<IShared.IFindMinifiedResponse[]>;
|
|
39
|
-
}
|
|
40
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
export declare const Route = "transformado";
|
|
3
|
-
export declare const UpperName = "Transformado";
|
|
4
|
-
export declare const LowerName: string;
|
|
5
|
-
export interface IProductsCreateTransformado {
|
|
6
|
-
id: string;
|
|
7
|
-
quantity: number;
|
|
8
|
-
}
|
|
9
|
-
export interface ICreateTransformado {
|
|
10
|
-
product_id: string;
|
|
11
|
-
quantity: number;
|
|
12
|
-
price_sale: number;
|
|
13
|
-
price_cost: number;
|
|
14
|
-
products: IProductsCreateTransformado[];
|
|
15
|
-
}
|
|
16
|
-
export interface IRepository {
|
|
17
|
-
create(data: ICreateTransformado): Promise<string>;
|
|
18
|
-
}
|
|
19
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
export declare const Route = "upfrontReturn";
|
|
3
|
-
export declare const UpperName = "UpfrontReturn";
|
|
4
|
-
export declare const LowerName: string;
|
|
5
|
-
export interface ICreateRequest {
|
|
6
|
-
current_account: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface IRepository {
|
|
9
|
-
create(id: IShared.IFindByIdRequest, body: ICreateRequest): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
12
|
-
export type IApi = IRepository;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Multimedia } from '../../../shared/entities/documentManagement';
|
|
2
|
-
export type Entity = Multimedia;
|
|
3
|
-
export declare const Route = "multimedia";
|
|
4
|
-
export declare const UpperName = "Multimedia";
|
|
5
|
-
export declare const LowerName: string;
|
|
6
|
-
export interface IFindByIdRequest {
|
|
7
|
-
download?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface IRepository {
|
|
10
|
-
create(multipartFormData: any, headers?: any): Promise<Entity>;
|
|
11
|
-
findById(multimedia_id: string): Promise<Entity | null>;
|
|
12
|
-
}
|
|
13
|
-
export interface IController extends Omit<IRepository, 'findById'> {
|
|
14
|
-
findById(multimedia_id: string, params: IFindByIdRequest): Promise<void>;
|
|
15
|
-
}
|
|
16
|
-
export type IApi = Omit<IRepository, 'findById'>;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { EmailLog } from '../../../shared/entities/integration';
|
|
3
|
-
export type Entity = EmailLog;
|
|
4
|
-
export declare const Route = "email_log";
|
|
5
|
-
export declare const UpperName = "EmailLog";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
export interface IFindRequest {
|
|
8
|
-
date_start: Date;
|
|
9
|
-
date_end: Date;
|
|
10
|
-
}
|
|
11
|
-
export interface IFindResponse {
|
|
12
|
-
id: string;
|
|
13
|
-
template: string;
|
|
14
|
-
created_at: Date;
|
|
15
|
-
to: string;
|
|
16
|
-
subject: string;
|
|
17
|
-
sent: boolean;
|
|
18
|
-
retried: boolean;
|
|
19
|
-
error: string | null;
|
|
20
|
-
}
|
|
21
|
-
export interface IEmailAddress {
|
|
22
|
-
name: string;
|
|
23
|
-
address: string;
|
|
24
|
-
}
|
|
25
|
-
export interface IEmailAttachment {
|
|
26
|
-
path: string;
|
|
27
|
-
filename: string;
|
|
28
|
-
}
|
|
29
|
-
export declare const SendGridCallbackEventEnum: {
|
|
30
|
-
open: 'open';
|
|
31
|
-
delivered: 'delivered';
|
|
32
|
-
click: 'click';
|
|
33
|
-
processed: 'processed';
|
|
34
|
-
dropped: 'dropped';
|
|
35
|
-
deferred: 'deferred';
|
|
36
|
-
bounce: 'bounce';
|
|
37
|
-
};
|
|
38
|
-
export type ISendGridCallbackEvent = (typeof SendGridCallbackEventEnum)[keyof typeof SendGridCallbackEventEnum];
|
|
39
|
-
export declare const sendGridCallbackEvents: string[];
|
|
40
|
-
export interface ISendGridCallbacks {
|
|
41
|
-
email: string;
|
|
42
|
-
event: ISendGridCallbackEvent;
|
|
43
|
-
event_time: Date;
|
|
44
|
-
ip: string | null;
|
|
45
|
-
useragent: string | null;
|
|
46
|
-
reason: string | null;
|
|
47
|
-
type: string | null;
|
|
48
|
-
status: string | null;
|
|
49
|
-
bounce_classification: string | null;
|
|
50
|
-
response: string | null;
|
|
51
|
-
url: string | null;
|
|
52
|
-
attempt: number | null;
|
|
53
|
-
}
|
|
54
|
-
export interface IFindByIdResponse {
|
|
55
|
-
id: string;
|
|
56
|
-
owner_id: string | null;
|
|
57
|
-
chat_id: string | null;
|
|
58
|
-
template: string;
|
|
59
|
-
created_at: Date;
|
|
60
|
-
sent: boolean;
|
|
61
|
-
retried: boolean;
|
|
62
|
-
accepted: string[];
|
|
63
|
-
rejected: string[];
|
|
64
|
-
from: IEmailAddress;
|
|
65
|
-
to: IEmailAddress[];
|
|
66
|
-
cc: IEmailAddress[];
|
|
67
|
-
bcc: IEmailAddress[];
|
|
68
|
-
subject: string;
|
|
69
|
-
html: string;
|
|
70
|
-
attachments: IEmailAttachment[];
|
|
71
|
-
error: string | null;
|
|
72
|
-
callbacks: ISendGridCallbacks[];
|
|
73
|
-
}
|
|
74
|
-
export interface ICheckSent {
|
|
75
|
-
document_header_ids: string[];
|
|
76
|
-
}
|
|
77
|
-
export interface ICheckSentResponse {
|
|
78
|
-
[document_header_id: string]: string | null;
|
|
79
|
-
}
|
|
80
|
-
export interface IRepository {
|
|
81
|
-
find(params: IFindRequest): Promise<IFindResponse[]>;
|
|
82
|
-
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse>;
|
|
83
|
-
checkSent(data: ICheckSent): Promise<ICheckSentResponse>;
|
|
84
|
-
}
|
|
85
|
-
export type IApi = IRepository;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { EmailTemplate, EmailTemplateAttachment } from '../../../shared/entities/integration';
|
|
3
|
-
import { IEmailAddress, IEmailAttachment } from '../emailLog/interfaces';
|
|
4
|
-
export type Entity = EmailTemplate;
|
|
5
|
-
export declare const Route = "email_template";
|
|
6
|
-
export declare const UpperName = "EmailTemplate";
|
|
7
|
-
export declare const LowerName: string;
|
|
8
|
-
export interface IEntityExtended extends Entity {
|
|
9
|
-
attachments: EmailTemplateAttachment[];
|
|
10
|
-
}
|
|
11
|
-
export interface ICreateAttachments {
|
|
12
|
-
multimedia_id: string;
|
|
13
|
-
name: string;
|
|
14
|
-
}
|
|
15
|
-
export interface ICreateRequest {
|
|
16
|
-
name: string;
|
|
17
|
-
to: string;
|
|
18
|
-
subject: string;
|
|
19
|
-
body: string;
|
|
20
|
-
attachments: ICreateAttachments[];
|
|
21
|
-
}
|
|
22
|
-
export interface IUpdateRequest {
|
|
23
|
-
name?: string;
|
|
24
|
-
to?: string;
|
|
25
|
-
subject?: string;
|
|
26
|
-
body?: string;
|
|
27
|
-
}
|
|
28
|
-
export interface ISendRequest {
|
|
29
|
-
owner_id: string | null;
|
|
30
|
-
from: IEmailAddress;
|
|
31
|
-
to: IEmailAddress[];
|
|
32
|
-
cc: IEmailAddress[];
|
|
33
|
-
bcc: IEmailAddress[];
|
|
34
|
-
subject: string;
|
|
35
|
-
html: string;
|
|
36
|
-
attachments: IEmailAttachment[];
|
|
37
|
-
}
|
|
38
|
-
export interface IRepository {
|
|
39
|
-
find(): Promise<IEntityExtended[]>;
|
|
40
|
-
create(data: ICreateRequest): Promise<string>;
|
|
41
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
42
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
43
|
-
send(data: ISendRequest): Promise<void>;
|
|
44
|
-
}
|
|
45
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
46
|
-
export type IApi = IRepository;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { EmailTemplateAttachment } from '../../../shared/entities/integration';
|
|
3
|
-
export type Entity = EmailTemplateAttachment;
|
|
4
|
-
export declare const Route = "email_template_attachment";
|
|
5
|
-
export declare const UpperName = "EmailTemplateAttachment";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
export interface ICreateRequest {
|
|
8
|
-
email_template_id: string;
|
|
9
|
-
multimedia_id: string;
|
|
10
|
-
name: string;
|
|
11
|
-
}
|
|
12
|
-
export interface IRepository {
|
|
13
|
-
create(data: ICreateRequest): Promise<string>;
|
|
14
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
15
|
-
}
|
|
16
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
17
|
-
export type IApi = IRepository;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { EmailVerification } from '../../../shared/entities/integration';
|
|
2
|
-
import * as IShared from '../../../shared/interface';
|
|
3
|
-
export type Entity = EmailVerification;
|
|
4
|
-
export declare const Route = "email_verification";
|
|
5
|
-
export declare const UpperName = "EmailVerification";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
export interface IIsVerifiedRequest {
|
|
8
|
-
email: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ISendVerificationRequest {
|
|
11
|
-
email: string;
|
|
12
|
-
}
|
|
13
|
-
export interface IMarkAsVerifiedRequest {
|
|
14
|
-
email: string;
|
|
15
|
-
token: string;
|
|
16
|
-
}
|
|
17
|
-
export interface IRepository {
|
|
18
|
-
isVerified(selector: IIsVerifiedRequest): Promise<boolean>;
|
|
19
|
-
sendVerificationEmail(data: ISendVerificationRequest): Promise<void>;
|
|
20
|
-
markAsVerified(data: IMarkAsVerifiedRequest): Promise<void>;
|
|
21
|
-
}
|
|
22
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
23
|
-
export type IApi = IRepository;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import joi from 'joi';
|
|
2
|
-
import { IIsVerifiedRequest, ISendVerificationRequest, IMarkAsVerifiedRequest } from './interfaces';
|
|
3
|
-
export declare const isVerifiedQuery: joi.ObjectSchema<IIsVerifiedRequest>;
|
|
4
|
-
export declare const sendVerificationBody: joi.ObjectSchema<ISendVerificationRequest>;
|
|
5
|
-
export declare const markAsVerifiedBody: joi.ObjectSchema<IMarkAsVerifiedRequest>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { GoogleFilePermission } from '../../../shared/entities/integration';
|
|
3
|
-
export type Entity = GoogleFilePermission;
|
|
4
|
-
export declare const Route = "google_file_permission";
|
|
5
|
-
export declare const UpperName = "GoogleFilePermission";
|
|
6
|
-
export declare const LowerName: string;
|
|
7
|
-
export type IFindRequest = Record<string, unknown>;
|
|
8
|
-
export interface ICreateRequest {
|
|
9
|
-
file_id: string;
|
|
10
|
-
email: string;
|
|
11
|
-
}
|
|
12
|
-
export interface ICreateRequestRepository extends ICreateRequest {
|
|
13
|
-
permission_id: string;
|
|
14
|
-
}
|
|
15
|
-
export interface IController {
|
|
16
|
-
create(data: ICreateRequest): Promise<Entity>;
|
|
17
|
-
findById(shared: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
18
|
-
find(): Promise<Entity[]>;
|
|
19
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
20
|
-
}
|
|
21
|
-
export interface IRepository {
|
|
22
|
-
create(data: ICreateRequestRepository): Promise<Entity>;
|
|
23
|
-
findById(shared: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
24
|
-
find(): Promise<Entity[]>;
|
|
25
|
-
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
26
|
-
}
|