@nomalism-com/types 0.40.5 → 0.40.8
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 +35 -34
- package/dist/index.js +35 -34
- package/dist/main.d.ts +5 -3
- package/dist/modules/supply/externalDocumentHeader/interface.d.ts +12 -42
- package/dist/modules/supply/externalDocumentHeader/route.schema.d.ts +0 -3
- package/dist/modules/ui/portal/interface.d.ts +36 -0
- package/dist/modules/ui/portal/route.schema.d.ts +3 -0
- package/dist/shared/interface.d.ts +12 -6
- package/package.json +1 -1
- /package/dist/modules/{stock → ui}/sideMenu/interface.d.ts +0 -0
- /package/dist/modules/{stock → ui}/sideMenu/route.schema.d.ts +0 -0
package/dist/index.cjs
CHANGED
|
@@ -115,6 +115,8 @@ __export(main_exports, {
|
|
|
115
115
|
PermissionsRoutes: () => route_schema_exports35,
|
|
116
116
|
Persona: () => interface_exports45,
|
|
117
117
|
PersonaRoutes: () => route_schema_exports78,
|
|
118
|
+
Portal: () => interface_exports65,
|
|
119
|
+
PortalRoutes: () => route_schema_exports114,
|
|
118
120
|
PreSale: () => interface_exports40,
|
|
119
121
|
PreSaleProduct: () => interface_exports41,
|
|
120
122
|
PreSaleProductRoutes: () => route_schema_exports63,
|
|
@@ -453,6 +455,7 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
|
|
|
453
455
|
IBrokerTopic2["tickets_change"] = "tickets_change";
|
|
454
456
|
IBrokerTopic2["user_send_email_password"] = "user_send_email_password";
|
|
455
457
|
IBrokerTopic2["user_send_email_document"] = "user_send_email_document";
|
|
458
|
+
IBrokerTopic2["send_provider_payment_order"] = "send_provider_payment_order";
|
|
456
459
|
IBrokerTopic2["grant_access"] = "grant_access";
|
|
457
460
|
IBrokerTopic2["remove_access"] = "remove_access";
|
|
458
461
|
IBrokerTopic2["google_sheet_set_permissions"] = "google_sheet_set_permissions";
|
|
@@ -2042,25 +2045,14 @@ var LowerName15 = UpperName15[0].toLowerCase() + UpperName15.substring(1);
|
|
|
2042
2045
|
|
|
2043
2046
|
// src/modules/supply/externalDocumentHeader/interface.ts
|
|
2044
2047
|
var interface_exports9 = {};
|
|
2045
|
-
__export(interface_exports9, {
|
|
2046
|
-
IPublicDocumentHeaderNoteType: () => IPublicDocumentHeaderNoteType
|
|
2047
|
-
});
|
|
2048
|
-
var IPublicDocumentHeaderNoteType = /* @__PURE__ */ ((IPublicDocumentHeaderNoteType2) => {
|
|
2049
|
-
IPublicDocumentHeaderNoteType2["Provider"] = "Provider";
|
|
2050
|
-
IPublicDocumentHeaderNoteType2["Client"] = "Client";
|
|
2051
|
-
return IPublicDocumentHeaderNoteType2;
|
|
2052
|
-
})(IPublicDocumentHeaderNoteType || {});
|
|
2053
2048
|
|
|
2054
2049
|
// src/modules/supply/externalDocumentHeader/route.schema.ts
|
|
2055
2050
|
var route_schema_exports21 = {};
|
|
2056
2051
|
__export(route_schema_exports21, {
|
|
2057
2052
|
createBody: () => createBody15,
|
|
2058
|
-
createNoteBody: () => createNoteBody,
|
|
2059
2053
|
findQuery: () => findQuery7,
|
|
2060
2054
|
findWithPaginationQuery: () => findWithPaginationQuery6,
|
|
2061
|
-
|
|
2062
|
-
updateBody: () => updateBody13,
|
|
2063
|
-
updateNoteBody: () => updateNoteBody
|
|
2055
|
+
updateBody: () => updateBody13
|
|
2064
2056
|
});
|
|
2065
2057
|
import joi22 from "joi";
|
|
2066
2058
|
var findQueryKeys7 = {};
|
|
@@ -2083,26 +2075,6 @@ var updateBodyKeys13 = {
|
|
|
2083
2075
|
pdf_link: joi22.string()
|
|
2084
2076
|
};
|
|
2085
2077
|
var updateBody13 = joi22.object().keys(updateBodyKeys13).messages(messages);
|
|
2086
|
-
var sendEmailDocumentBodyKeys = {
|
|
2087
|
-
template: joi22.string().valid(...IUserSendEmailDocumentTemplateTypes).required(),
|
|
2088
|
-
document_line_assoc_ids: joi22.array().items(joi22.string().uuid()),
|
|
2089
|
-
external_document_header_ids: joi22.array().items(joi22.string().uuid()),
|
|
2090
|
-
user: joi22.object().keys({
|
|
2091
|
-
name: joi22.string().required(),
|
|
2092
|
-
email: joi22.string().trim(true).lowercase().required()
|
|
2093
|
-
}).optional()
|
|
2094
|
-
};
|
|
2095
|
-
var sendEmailDocumentBody = joi22.object().keys(sendEmailDocumentBodyKeys).xor("document_line_assoc_ids", "external_document_header_ids").messages(messages);
|
|
2096
|
-
var createNoteBodyKeys = {
|
|
2097
|
-
document_header_id: joi22.string().uuid().required(),
|
|
2098
|
-
note: joi22.string().required(),
|
|
2099
|
-
type: joi22.string().required().valid("Client", "Provider")
|
|
2100
|
-
};
|
|
2101
|
-
var createNoteBody = joi22.object().keys(createNoteBodyKeys).messages(messages);
|
|
2102
|
-
var updateNoteBodyKeys = {
|
|
2103
|
-
note: joi22.string().required().allow("")
|
|
2104
|
-
};
|
|
2105
|
-
var updateNoteBody = joi22.object().keys(updateNoteBodyKeys).messages(messages);
|
|
2106
2078
|
|
|
2107
2079
|
// src/modules/user/favorites/interfaces.ts
|
|
2108
2080
|
var interfaces_exports16 = {};
|
|
@@ -5500,10 +5472,10 @@ var updateBodyKeys56 = {
|
|
|
5500
5472
|
};
|
|
5501
5473
|
var updateBody56 = joi103.object().keys(updateBodyKeys56).messages(messages);
|
|
5502
5474
|
|
|
5503
|
-
// src/modules/
|
|
5475
|
+
// src/modules/ui/sideMenu/interface.ts
|
|
5504
5476
|
var interface_exports56 = {};
|
|
5505
5477
|
|
|
5506
|
-
// src/modules/
|
|
5478
|
+
// src/modules/ui/sideMenu/route.schema.ts
|
|
5507
5479
|
var route_schema_exports103 = {};
|
|
5508
5480
|
__export(route_schema_exports103, {
|
|
5509
5481
|
findByDocumentLineStateQuery: () => findByDocumentLineStateQuery,
|
|
@@ -5886,6 +5858,35 @@ var findPaymentsNotExportedQuery2 = joi114.object().keys({
|
|
|
5886
5858
|
whiteList: joi114.array().items(joi114.string().uuid().required()).optional()
|
|
5887
5859
|
}).messages(messages);
|
|
5888
5860
|
|
|
5861
|
+
// src/modules/ui/portal/interface.ts
|
|
5862
|
+
var interface_exports65 = {};
|
|
5863
|
+
__export(interface_exports65, {
|
|
5864
|
+
IPublicDocumentHeaderNoteType: () => IPublicDocumentHeaderNoteType
|
|
5865
|
+
});
|
|
5866
|
+
var IPublicDocumentHeaderNoteType = /* @__PURE__ */ ((IPublicDocumentHeaderNoteType2) => {
|
|
5867
|
+
IPublicDocumentHeaderNoteType2["Provider"] = "Provider";
|
|
5868
|
+
IPublicDocumentHeaderNoteType2["Client"] = "Client";
|
|
5869
|
+
return IPublicDocumentHeaderNoteType2;
|
|
5870
|
+
})(IPublicDocumentHeaderNoteType || {});
|
|
5871
|
+
|
|
5872
|
+
// src/modules/ui/portal/route.schema.ts
|
|
5873
|
+
var route_schema_exports114 = {};
|
|
5874
|
+
__export(route_schema_exports114, {
|
|
5875
|
+
createNoteBody: () => createNoteBody,
|
|
5876
|
+
updateNoteBody: () => updateNoteBody
|
|
5877
|
+
});
|
|
5878
|
+
import joi115 from "joi";
|
|
5879
|
+
var createNoteBodyKeys = {
|
|
5880
|
+
document_header_id: joi115.string().uuid().required(),
|
|
5881
|
+
note: joi115.string().required(),
|
|
5882
|
+
type: joi115.string().required().valid("Client", "Provider")
|
|
5883
|
+
};
|
|
5884
|
+
var createNoteBody = joi115.object().keys(createNoteBodyKeys).messages(messages);
|
|
5885
|
+
var updateNoteBodyKeys = {
|
|
5886
|
+
note: joi115.string().required().allow("")
|
|
5887
|
+
};
|
|
5888
|
+
var updateNoteBody = joi115.object().keys(updateNoteBodyKeys).messages(messages);
|
|
5889
|
+
|
|
5889
5890
|
// src/index.ts
|
|
5890
5891
|
var index_default = main_exports;
|
|
5891
5892
|
export {
|
package/dist/index.js
CHANGED
|
@@ -115,6 +115,8 @@ __export(main_exports, {
|
|
|
115
115
|
PermissionsRoutes: () => route_schema_exports35,
|
|
116
116
|
Persona: () => interface_exports45,
|
|
117
117
|
PersonaRoutes: () => route_schema_exports78,
|
|
118
|
+
Portal: () => interface_exports65,
|
|
119
|
+
PortalRoutes: () => route_schema_exports114,
|
|
118
120
|
PreSale: () => interface_exports40,
|
|
119
121
|
PreSaleProduct: () => interface_exports41,
|
|
120
122
|
PreSaleProductRoutes: () => route_schema_exports63,
|
|
@@ -453,6 +455,7 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
|
|
|
453
455
|
IBrokerTopic2["tickets_change"] = "tickets_change";
|
|
454
456
|
IBrokerTopic2["user_send_email_password"] = "user_send_email_password";
|
|
455
457
|
IBrokerTopic2["user_send_email_document"] = "user_send_email_document";
|
|
458
|
+
IBrokerTopic2["send_provider_payment_order"] = "send_provider_payment_order";
|
|
456
459
|
IBrokerTopic2["grant_access"] = "grant_access";
|
|
457
460
|
IBrokerTopic2["remove_access"] = "remove_access";
|
|
458
461
|
IBrokerTopic2["google_sheet_set_permissions"] = "google_sheet_set_permissions";
|
|
@@ -2042,25 +2045,14 @@ var LowerName15 = UpperName15[0].toLowerCase() + UpperName15.substring(1);
|
|
|
2042
2045
|
|
|
2043
2046
|
// src/modules/supply/externalDocumentHeader/interface.ts
|
|
2044
2047
|
var interface_exports9 = {};
|
|
2045
|
-
__export(interface_exports9, {
|
|
2046
|
-
IPublicDocumentHeaderNoteType: () => IPublicDocumentHeaderNoteType
|
|
2047
|
-
});
|
|
2048
|
-
var IPublicDocumentHeaderNoteType = /* @__PURE__ */ ((IPublicDocumentHeaderNoteType2) => {
|
|
2049
|
-
IPublicDocumentHeaderNoteType2["Provider"] = "Provider";
|
|
2050
|
-
IPublicDocumentHeaderNoteType2["Client"] = "Client";
|
|
2051
|
-
return IPublicDocumentHeaderNoteType2;
|
|
2052
|
-
})(IPublicDocumentHeaderNoteType || {});
|
|
2053
2048
|
|
|
2054
2049
|
// src/modules/supply/externalDocumentHeader/route.schema.ts
|
|
2055
2050
|
var route_schema_exports21 = {};
|
|
2056
2051
|
__export(route_schema_exports21, {
|
|
2057
2052
|
createBody: () => createBody15,
|
|
2058
|
-
createNoteBody: () => createNoteBody,
|
|
2059
2053
|
findQuery: () => findQuery7,
|
|
2060
2054
|
findWithPaginationQuery: () => findWithPaginationQuery6,
|
|
2061
|
-
|
|
2062
|
-
updateBody: () => updateBody13,
|
|
2063
|
-
updateNoteBody: () => updateNoteBody
|
|
2055
|
+
updateBody: () => updateBody13
|
|
2064
2056
|
});
|
|
2065
2057
|
import joi22 from "joi";
|
|
2066
2058
|
var findQueryKeys7 = {};
|
|
@@ -2083,26 +2075,6 @@ var updateBodyKeys13 = {
|
|
|
2083
2075
|
pdf_link: joi22.string()
|
|
2084
2076
|
};
|
|
2085
2077
|
var updateBody13 = joi22.object().keys(updateBodyKeys13).messages(messages);
|
|
2086
|
-
var sendEmailDocumentBodyKeys = {
|
|
2087
|
-
template: joi22.string().valid(...IUserSendEmailDocumentTemplateTypes).required(),
|
|
2088
|
-
document_line_assoc_ids: joi22.array().items(joi22.string().uuid()),
|
|
2089
|
-
external_document_header_ids: joi22.array().items(joi22.string().uuid()),
|
|
2090
|
-
user: joi22.object().keys({
|
|
2091
|
-
name: joi22.string().required(),
|
|
2092
|
-
email: joi22.string().trim(true).lowercase().required()
|
|
2093
|
-
}).optional()
|
|
2094
|
-
};
|
|
2095
|
-
var sendEmailDocumentBody = joi22.object().keys(sendEmailDocumentBodyKeys).xor("document_line_assoc_ids", "external_document_header_ids").messages(messages);
|
|
2096
|
-
var createNoteBodyKeys = {
|
|
2097
|
-
document_header_id: joi22.string().uuid().required(),
|
|
2098
|
-
note: joi22.string().required(),
|
|
2099
|
-
type: joi22.string().required().valid("Client", "Provider")
|
|
2100
|
-
};
|
|
2101
|
-
var createNoteBody = joi22.object().keys(createNoteBodyKeys).messages(messages);
|
|
2102
|
-
var updateNoteBodyKeys = {
|
|
2103
|
-
note: joi22.string().required().allow("")
|
|
2104
|
-
};
|
|
2105
|
-
var updateNoteBody = joi22.object().keys(updateNoteBodyKeys).messages(messages);
|
|
2106
2078
|
|
|
2107
2079
|
// src/modules/user/favorites/interfaces.ts
|
|
2108
2080
|
var interfaces_exports16 = {};
|
|
@@ -5500,10 +5472,10 @@ var updateBodyKeys56 = {
|
|
|
5500
5472
|
};
|
|
5501
5473
|
var updateBody56 = joi103.object().keys(updateBodyKeys56).messages(messages);
|
|
5502
5474
|
|
|
5503
|
-
// src/modules/
|
|
5475
|
+
// src/modules/ui/sideMenu/interface.ts
|
|
5504
5476
|
var interface_exports56 = {};
|
|
5505
5477
|
|
|
5506
|
-
// src/modules/
|
|
5478
|
+
// src/modules/ui/sideMenu/route.schema.ts
|
|
5507
5479
|
var route_schema_exports103 = {};
|
|
5508
5480
|
__export(route_schema_exports103, {
|
|
5509
5481
|
findByDocumentLineStateQuery: () => findByDocumentLineStateQuery,
|
|
@@ -5886,6 +5858,35 @@ var findPaymentsNotExportedQuery2 = joi114.object().keys({
|
|
|
5886
5858
|
whiteList: joi114.array().items(joi114.string().uuid().required()).optional()
|
|
5887
5859
|
}).messages(messages);
|
|
5888
5860
|
|
|
5861
|
+
// src/modules/ui/portal/interface.ts
|
|
5862
|
+
var interface_exports65 = {};
|
|
5863
|
+
__export(interface_exports65, {
|
|
5864
|
+
IPublicDocumentHeaderNoteType: () => IPublicDocumentHeaderNoteType
|
|
5865
|
+
});
|
|
5866
|
+
var IPublicDocumentHeaderNoteType = /* @__PURE__ */ ((IPublicDocumentHeaderNoteType2) => {
|
|
5867
|
+
IPublicDocumentHeaderNoteType2["Provider"] = "Provider";
|
|
5868
|
+
IPublicDocumentHeaderNoteType2["Client"] = "Client";
|
|
5869
|
+
return IPublicDocumentHeaderNoteType2;
|
|
5870
|
+
})(IPublicDocumentHeaderNoteType || {});
|
|
5871
|
+
|
|
5872
|
+
// src/modules/ui/portal/route.schema.ts
|
|
5873
|
+
var route_schema_exports114 = {};
|
|
5874
|
+
__export(route_schema_exports114, {
|
|
5875
|
+
createNoteBody: () => createNoteBody,
|
|
5876
|
+
updateNoteBody: () => updateNoteBody
|
|
5877
|
+
});
|
|
5878
|
+
import joi115 from "joi";
|
|
5879
|
+
var createNoteBodyKeys = {
|
|
5880
|
+
document_header_id: joi115.string().uuid().required(),
|
|
5881
|
+
note: joi115.string().required(),
|
|
5882
|
+
type: joi115.string().required().valid("Client", "Provider")
|
|
5883
|
+
};
|
|
5884
|
+
var createNoteBody = joi115.object().keys(createNoteBodyKeys).messages(messages);
|
|
5885
|
+
var updateNoteBodyKeys = {
|
|
5886
|
+
note: joi115.string().required().allow("")
|
|
5887
|
+
};
|
|
5888
|
+
var updateNoteBody = joi115.object().keys(updateNoteBodyKeys).messages(messages);
|
|
5889
|
+
|
|
5889
5890
|
// src/index.ts
|
|
5890
5891
|
var index_default = main_exports;
|
|
5891
5892
|
export {
|
package/dist/main.d.ts
CHANGED
|
@@ -213,8 +213,8 @@ import * as Dashboard from './modules/stock/dashboard/interface';
|
|
|
213
213
|
import * as DashboardRoutes from './modules/stock/dashboard/route.schema';
|
|
214
214
|
import * as ChatRapidMessage from './modules/stock/chatRapidMessage/interface';
|
|
215
215
|
import * as ChatRapidMessageRoutes from './modules/stock/chatRapidMessage/route.schema';
|
|
216
|
-
import * as SideMenu from './modules/
|
|
217
|
-
import * as SideMenuRoutes from './modules/
|
|
216
|
+
import * as SideMenu from './modules/ui/sideMenu/interface';
|
|
217
|
+
import * as SideMenuRoutes from './modules/ui/sideMenu/route.schema';
|
|
218
218
|
import * as AdminPanel from './modules/view/adminPanel/interfaces';
|
|
219
219
|
import * as ErrorLog from './modules/view/errorLog/interfaces';
|
|
220
220
|
import * as ErrorLogRoutes from './modules/view/errorLog/route.schema';
|
|
@@ -236,4 +236,6 @@ import * as CurrentAccount from './modules/supply/currentAccount/interface';
|
|
|
236
236
|
import * as CurrentAccountRoutes from './modules/supply/currentAccount/route.schema';
|
|
237
237
|
import * as PaymentBatch from './modules/supply/paymentBatch/interface';
|
|
238
238
|
import * as PaymentBatchRoutes from './modules/supply/paymentBatch/route.schema';
|
|
239
|
-
|
|
239
|
+
import * as Portal from './modules/ui/portal/interface';
|
|
240
|
+
import * as PortalRoutes from './modules/ui/portal/route.schema';
|
|
241
|
+
export { shared, viewErrors, stockErrors, userErrors, documentManagementErrors, integrationErrors, ZipCode, ZipCodeRoutes, BankData, BankDataRoutes, Client, ClientRoutes, ClientType, ClientTypeRoutes, Chat, ChatRoutes, Commissioner, CommissionerRoutes, Country, CountryRoutes, DeliveryMethods, DeliveryMethodsRoutes, DocumentHeader, DocumentHeaderRoutes, DocumentHeaderHistory, BillOfLading, BillOfLadingRoutes, ProductionOrder, ProductionOrderRoutes, Proforma, ProformaRoutes, PropostaFornecedor, PropostaFornecedorRoutes, ProviderCreditNoteFromReturn, ProviderCreditNoteFromReturnRoutes, ProviderFinancialCreditNote, ProviderFinancialCreditNoteRoutes, ProviderServiceInvoice, ProviderServiceInvoiceRoutes, DocumentLine, DocumentLineRoutes, DocumentLineAssoc, DocumentLineAssocRoutes, DocumentSet, DocumentSetRoutes, DocumentType, DocumentTypeRoutes, ExternalDocumentType, ExternalDocumentHeader, ExternalDocumentHeaderRoutes, Favorites, FavoritesRoutes, File, FileRoutes, GroupPermissions, GroupPermissionsRoutes, GoogleSheets, GoogleSheetsRoutes, Language, LanguageRoutes, Location, LocationRoutes, MaturityDates, MaturityDatesRoutes, Multimedia, MultimediaRoutes, OrderManagement, Observation, ObservationRoutes, ObservationType, ObservationTypeRoutes, Password, PasswordRoutes, Payment, PaymentRoutes, PaymentMethods, PaymentMethodsRoutes, Permissions, PermissionsRoutes, ProductImage, ProductImageRoutes, Promotion, PromotionRoutes, PromotionAssoc, PromotionAssocRoutes, Providers, ProvidersRoutes, ProviderType, ProviderTypeRoutes, PurchaseConditions, PurchaseConditionsRoutes, ReasonForExemption, ReasonForExemptionRoutes, RefreshToken, RefreshTokenRoutes, SegmentsArea, SegmentsAreaRoutes, Sessions, SessionsRoutes, Shippings, ShippingsRoutes, StoreOperator, StoreOperatorRoutes, Swift, SwiftRoutes, TypeOfLocation, TypeOfLocationRoutes, UnitOfMeasure, UnitOfMeasureRoutes, UserPermissions, UserPermissionsRoutes, UserPositions, UserPositionsRoutes, Users, UsersRoutes, UserTokens, UserTokensRoutes, VatValidation, VatValidationRoutes, VatTax, VatTaxRoutes, VatTaxZone, VatTaxZoneRoutes, Vehicles, VehiclesRoutes, Workflow, WorkflowRoutes, StockMovement, StockMovementRoutes, Tenant, TenantRoutes, PreSale, PreSaleRoutes, PreSaleProduct, PreSaleProductRoutes, Npc, NpcRoutes, Printer, PrinterRoutes, SchedulePrintJob, SchedulePrintJobRoutes, QueryList, QueryListRoutes, QueryParameter, QueryParameterRoutes, ReturnReason, ReturnReasonRoutes, PropostaSheets, PropostaSheetsRoutes, Schedule, ScheduleRoutes, GoogleFilePermission, GoogleFilePermissionRoutes, Settings, SettingsRoutes, Tickets, TicketsRoutes, Channel, ChannelRoutes, TicketsLanguage, TicketsLanguageRoutes, CLT, CLTRoutes, StartDocumentHeaderLastUpdate, Persona, PersonaRoutes, ProjectInfo, ProjectInfoRoutes, EmailVerification, EmailVerificationRoutes, EmailLog, EmailLogRoutes, Purchase, PurchaseRoutes, Order, OrderRoutes, MaterialEntrance, MaterialEntranceRoutes, Transformado, TransformadoRoutes, Quebra, QuebraRoutes, UpfrontReturn, UpfrontReturnRoutes, SavedEmPicking, SavedEmPickingRoutes, EmailTemplate, EmailTemplateRoutes, EmailTemplateAttachment, EmailTemplateAttachmentRoutes, Inventario, InventarioRoutes, ReturnToProvider, ReturnToProviderRoutes, Prison, PrisonRoutes, DocumentLineNote, DocumentLineNoteRoutes, SavedProviderProposal, SavedProviderProposalRoutes, ProductGoogleSheets, ProductGoogleSheetsRoutes, Task, TaskRoutes, TaskMessage, TaskMessageRoutes, RecurrentTasks, TaskRead, TaskReadRoutes, Theme, ThemeRoutes, Dashboard, DashboardRoutes, ChatRapidMessage, ChatRapidMessageRoutes, SideMenu, SideMenuRoutes, AdminPanel, ErrorLog, ErrorLogRoutes, DocumentLineRm, DocumentLineRmRoutes, DocumentLineMt, DocumentLineMtRoutes, ChatSubscriber, ChatSubscriberRoutes, Tag, TagRoutes, Gmails, GmailsRoutes, NPF, NPFRoutes, NRCL, NRCLRoutes, CurrentAccount, CurrentAccountRoutes, PaymentBatch, PaymentBatchRoutes, Portal, PortalRoutes, };
|
|
@@ -6,6 +6,11 @@ export declare const Route = "external_document_header";
|
|
|
6
6
|
export declare const UpperName = "ExternalDocumentHeader";
|
|
7
7
|
export declare const LowerName: string;
|
|
8
8
|
export type IFindByIdResponse = Entity;
|
|
9
|
+
export type IFindRequest = Record<string, unknown>;
|
|
10
|
+
export type IFindResponse = Entity;
|
|
11
|
+
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
12
|
+
}
|
|
13
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Entity>;
|
|
9
14
|
export interface IFindByOwnerIdItem {
|
|
10
15
|
external_document_header_id: string | null;
|
|
11
16
|
document_header_id: string;
|
|
@@ -21,11 +26,6 @@ export interface IFindByOwnerIdItem {
|
|
|
21
26
|
export interface IFindByOwnerIdItemWithVersions extends IFindByOwnerIdItem {
|
|
22
27
|
older_versions: Pick<IFindByOwnerIdItem, 'label' | 'pdf_link'>[];
|
|
23
28
|
}
|
|
24
|
-
export type IFindRequest = Record<string, unknown>;
|
|
25
|
-
export type IFindResponse = Entity;
|
|
26
|
-
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
27
|
-
}
|
|
28
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Entity>;
|
|
29
29
|
export interface ICreateRequest {
|
|
30
30
|
document_header_id: string;
|
|
31
31
|
external_id: string;
|
|
@@ -37,48 +37,21 @@ export interface IUpdateRequest {
|
|
|
37
37
|
external_pdf_link?: string;
|
|
38
38
|
pdf_link?: string;
|
|
39
39
|
}
|
|
40
|
-
export interface
|
|
40
|
+
export interface IAttachment {
|
|
41
|
+
filename: string;
|
|
42
|
+
multimedia_id: string;
|
|
43
|
+
}
|
|
44
|
+
export interface ISendEmailDocumentRequest {
|
|
41
45
|
template: IShared.IUserSendEmailDocumentTemplate;
|
|
42
|
-
|
|
43
|
-
|
|
46
|
+
start_document_header_id: string;
|
|
47
|
+
attachments: IAttachment[];
|
|
44
48
|
user: {
|
|
45
49
|
name: string;
|
|
46
50
|
email: string;
|
|
47
51
|
};
|
|
48
52
|
}
|
|
49
|
-
export declare enum IPublicDocumentHeaderNoteType {
|
|
50
|
-
Provider = "Provider",
|
|
51
|
-
Client = "Client"
|
|
52
|
-
}
|
|
53
|
-
export interface PublicDocumentHeaderNote {
|
|
54
|
-
id: string;
|
|
55
|
-
note: string;
|
|
56
|
-
type: IPublicDocumentHeaderNoteType;
|
|
57
|
-
created_at: Date;
|
|
58
|
-
updated_at: Date;
|
|
59
|
-
created_by: string;
|
|
60
|
-
updated_by: string;
|
|
61
|
-
}
|
|
62
|
-
export type ISendEmailDocumentRequest = IShared.RequireOnlyOne<ISendEmailDocument, 'document_line_assoc_ids' | 'external_document_header_ids'>;
|
|
63
|
-
export interface IPublicFindByOwnerIdResponse {
|
|
64
|
-
start_document_header_id: string;
|
|
65
|
-
label: string;
|
|
66
|
-
emission_date: Date;
|
|
67
|
-
pdf_link: string;
|
|
68
|
-
new_chat_messages: number;
|
|
69
|
-
pc_tags: string[];
|
|
70
|
-
}
|
|
71
|
-
export interface PublicDocumentHeaderNoteCreateRequest {
|
|
72
|
-
document_header_id: string;
|
|
73
|
-
note: string;
|
|
74
|
-
type: IPublicDocumentHeaderNoteType;
|
|
75
|
-
}
|
|
76
|
-
export interface PublicDocumentHeaderNoteUpdateRequest {
|
|
77
|
-
note: string;
|
|
78
|
-
}
|
|
79
53
|
export interface IRepository {
|
|
80
54
|
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
81
|
-
publicFindByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IPublicFindByOwnerIdResponse[]>;
|
|
82
55
|
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdItemWithVersions[]>;
|
|
83
56
|
sendEmailDocument: (data: ISendEmailDocumentRequest) => Promise<void>;
|
|
84
57
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
@@ -86,8 +59,5 @@ export interface IRepository {
|
|
|
86
59
|
create(data: ICreateRequest): Promise<Entity>;
|
|
87
60
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
88
61
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
89
|
-
createPublicDocumentHeaderNote: (data: PublicDocumentHeaderNoteCreateRequest[]) => Promise<PublicDocumentHeaderNote[]>;
|
|
90
|
-
updatePublicDocumentHeaderNote: (selector: IShared.IFindByIdRequest, data: PublicDocumentHeaderNoteUpdateRequest[]) => Promise<PublicDocumentHeaderNote[]>;
|
|
91
62
|
}
|
|
92
63
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
93
|
-
export {};
|
|
@@ -3,6 +3,3 @@ export declare const findQuery: joi.ObjectSchema<any>;
|
|
|
3
3
|
export declare const findWithPaginationQuery: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const createBody: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const updateBody: joi.ObjectSchema<any>;
|
|
6
|
-
export declare const sendEmailDocumentBody: joi.ObjectSchema<any>;
|
|
7
|
-
export declare const createNoteBody: joi.ObjectSchema<any>;
|
|
8
|
-
export declare const updateNoteBody: joi.ObjectSchema<any>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as IShared from '../../../shared/interface';
|
|
2
|
+
export interface IPublicFindByOwnerIdResponse {
|
|
3
|
+
start_document_header_id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
emission_date: Date;
|
|
6
|
+
pdf_link: string;
|
|
7
|
+
new_chat_messages: number;
|
|
8
|
+
pc_tags: string[];
|
|
9
|
+
}
|
|
10
|
+
export declare enum IPublicDocumentHeaderNoteType {
|
|
11
|
+
Provider = "Provider",
|
|
12
|
+
Client = "Client"
|
|
13
|
+
}
|
|
14
|
+
export interface PublicDocumentHeaderNote {
|
|
15
|
+
id: string;
|
|
16
|
+
note: string;
|
|
17
|
+
type: IPublicDocumentHeaderNoteType;
|
|
18
|
+
created_at: Date;
|
|
19
|
+
updated_at: Date;
|
|
20
|
+
created_by: string;
|
|
21
|
+
updated_by: string;
|
|
22
|
+
}
|
|
23
|
+
export interface PublicDocumentHeaderNoteCreateRequest {
|
|
24
|
+
document_header_id: string;
|
|
25
|
+
note: string;
|
|
26
|
+
type: IPublicDocumentHeaderNoteType;
|
|
27
|
+
}
|
|
28
|
+
export interface PublicDocumentHeaderNoteUpdateRequest {
|
|
29
|
+
note: string;
|
|
30
|
+
}
|
|
31
|
+
export interface IRepository {
|
|
32
|
+
publicFindByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IPublicFindByOwnerIdResponse[]>;
|
|
33
|
+
createPublicDocumentHeaderNote: (data: PublicDocumentHeaderNoteCreateRequest[]) => Promise<PublicDocumentHeaderNote[]>;
|
|
34
|
+
updatePublicDocumentHeaderNote: (selector: IShared.IFindByIdRequest, data: PublicDocumentHeaderNoteUpdateRequest[]) => Promise<PublicDocumentHeaderNote[]>;
|
|
35
|
+
}
|
|
36
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -9,6 +9,7 @@ import type { IChat, IEmail, IEncomenda, IMultimedia, IMultimediaSummary, IPostg
|
|
|
9
9
|
import type * as ErrorLog from '../modules/view/errorLog/interfaces';
|
|
10
10
|
import type { File } from './entities/stock';
|
|
11
11
|
import type { ProjectInfo } from './entities/integration';
|
|
12
|
+
import type { IAttachment } from '../modules/supply/externalDocumentHeader/interface';
|
|
12
13
|
export { messages };
|
|
13
14
|
type CreatedAt = 'created_at';
|
|
14
15
|
type UpdatedAt = 'updated_at';
|
|
@@ -131,6 +132,7 @@ export declare enum IBrokerTopic {
|
|
|
131
132
|
tickets_change = "tickets_change",
|
|
132
133
|
user_send_email_password = "user_send_email_password",
|
|
133
134
|
user_send_email_document = "user_send_email_document",
|
|
135
|
+
send_provider_payment_order = "send_provider_payment_order",
|
|
134
136
|
grant_access = "grant_access",
|
|
135
137
|
remove_access = "remove_access",
|
|
136
138
|
google_sheet_set_permissions = "google_sheet_set_permissions",
|
|
@@ -198,12 +200,16 @@ export type IBrokerTopicPayload = {
|
|
|
198
200
|
owner_id: string;
|
|
199
201
|
document_header_id: string;
|
|
200
202
|
start_document_name: string;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
203
|
+
attachments: IAttachment[];
|
|
204
|
+
};
|
|
205
|
+
[IBrokerTopic.send_provider_payment_order]: {
|
|
206
|
+
user: {
|
|
207
|
+
name: string;
|
|
208
|
+
email: string;
|
|
209
|
+
};
|
|
210
|
+
owner_id: string;
|
|
211
|
+
document_header_ids: string[];
|
|
212
|
+
attachments: IAttachment[];
|
|
207
213
|
};
|
|
208
214
|
[IBrokerTopic.grant_access]: {
|
|
209
215
|
email: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/types",
|
|
3
3
|
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
4
|
-
"version": "0.40.
|
|
4
|
+
"version": "0.40.8",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
File without changes
|
|
File without changes
|