@nomalism-com/types 0.40.6 → 0.40.9
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 +41 -24
- package/dist/index.js +41 -24
- package/dist/main.d.ts +5 -3
- package/dist/modules/supply/externalDocumentHeader/interface.d.ts +10 -38
- package/dist/modules/supply/externalDocumentHeader/route.schema.d.ts +0 -2
- 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 -4
- 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,15 @@ 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
2055
|
sendEmailDocumentBody: () => sendEmailDocumentBody,
|
|
2062
|
-
updateBody: () => updateBody13
|
|
2063
|
-
updateNoteBody: () => updateNoteBody
|
|
2056
|
+
updateBody: () => updateBody13
|
|
2064
2057
|
});
|
|
2065
2058
|
import joi22 from "joi";
|
|
2066
2059
|
var findQueryKeys7 = {};
|
|
@@ -2083,25 +2076,20 @@ var updateBodyKeys13 = {
|
|
|
2083
2076
|
pdf_link: joi22.string()
|
|
2084
2077
|
};
|
|
2085
2078
|
var updateBody13 = joi22.object().keys(updateBodyKeys13).messages(messages);
|
|
2079
|
+
var attachmentKeys = joi22.object().keys({
|
|
2080
|
+
filename: joi22.string().required(),
|
|
2081
|
+
multimedia_id: joi22.string().uuid().required()
|
|
2082
|
+
});
|
|
2086
2083
|
var sendEmailDocumentBodyKeys = {
|
|
2087
2084
|
template: joi22.string().valid(...IUserSendEmailDocumentTemplateTypes).required(),
|
|
2088
|
-
|
|
2085
|
+
start_document_header_id: joi22.string().uuid().required(),
|
|
2086
|
+
attachments: joi22.array().items(attachmentKeys.required()).required(),
|
|
2089
2087
|
user: joi22.object().keys({
|
|
2090
2088
|
name: joi22.string().required(),
|
|
2091
2089
|
email: joi22.string().trim(true).lowercase().required()
|
|
2092
2090
|
}).optional()
|
|
2093
2091
|
};
|
|
2094
2092
|
var sendEmailDocumentBody = joi22.object().keys(sendEmailDocumentBodyKeys).xor("document_line_assoc_ids", "external_document_header_ids").messages(messages);
|
|
2095
|
-
var createNoteBodyKeys = {
|
|
2096
|
-
document_header_id: joi22.string().uuid().required(),
|
|
2097
|
-
note: joi22.string().required(),
|
|
2098
|
-
type: joi22.string().required().valid("Client", "Provider")
|
|
2099
|
-
};
|
|
2100
|
-
var createNoteBody = joi22.object().keys(createNoteBodyKeys).messages(messages);
|
|
2101
|
-
var updateNoteBodyKeys = {
|
|
2102
|
-
note: joi22.string().required().allow("")
|
|
2103
|
-
};
|
|
2104
|
-
var updateNoteBody = joi22.object().keys(updateNoteBodyKeys).messages(messages);
|
|
2105
2093
|
|
|
2106
2094
|
// src/modules/user/favorites/interfaces.ts
|
|
2107
2095
|
var interfaces_exports16 = {};
|
|
@@ -5499,10 +5487,10 @@ var updateBodyKeys56 = {
|
|
|
5499
5487
|
};
|
|
5500
5488
|
var updateBody56 = joi103.object().keys(updateBodyKeys56).messages(messages);
|
|
5501
5489
|
|
|
5502
|
-
// src/modules/
|
|
5490
|
+
// src/modules/ui/sideMenu/interface.ts
|
|
5503
5491
|
var interface_exports56 = {};
|
|
5504
5492
|
|
|
5505
|
-
// src/modules/
|
|
5493
|
+
// src/modules/ui/sideMenu/route.schema.ts
|
|
5506
5494
|
var route_schema_exports103 = {};
|
|
5507
5495
|
__export(route_schema_exports103, {
|
|
5508
5496
|
findByDocumentLineStateQuery: () => findByDocumentLineStateQuery,
|
|
@@ -5885,6 +5873,35 @@ var findPaymentsNotExportedQuery2 = joi114.object().keys({
|
|
|
5885
5873
|
whiteList: joi114.array().items(joi114.string().uuid().required()).optional()
|
|
5886
5874
|
}).messages(messages);
|
|
5887
5875
|
|
|
5876
|
+
// src/modules/ui/portal/interface.ts
|
|
5877
|
+
var interface_exports65 = {};
|
|
5878
|
+
__export(interface_exports65, {
|
|
5879
|
+
IPublicDocumentHeaderNoteType: () => IPublicDocumentHeaderNoteType
|
|
5880
|
+
});
|
|
5881
|
+
var IPublicDocumentHeaderNoteType = /* @__PURE__ */ ((IPublicDocumentHeaderNoteType2) => {
|
|
5882
|
+
IPublicDocumentHeaderNoteType2["Provider"] = "Provider";
|
|
5883
|
+
IPublicDocumentHeaderNoteType2["Client"] = "Client";
|
|
5884
|
+
return IPublicDocumentHeaderNoteType2;
|
|
5885
|
+
})(IPublicDocumentHeaderNoteType || {});
|
|
5886
|
+
|
|
5887
|
+
// src/modules/ui/portal/route.schema.ts
|
|
5888
|
+
var route_schema_exports114 = {};
|
|
5889
|
+
__export(route_schema_exports114, {
|
|
5890
|
+
createNoteBody: () => createNoteBody,
|
|
5891
|
+
updateNoteBody: () => updateNoteBody
|
|
5892
|
+
});
|
|
5893
|
+
import joi115 from "joi";
|
|
5894
|
+
var createNoteBodyKeys = {
|
|
5895
|
+
document_header_id: joi115.string().uuid().required(),
|
|
5896
|
+
note: joi115.string().required(),
|
|
5897
|
+
type: joi115.string().required().valid("Client", "Provider")
|
|
5898
|
+
};
|
|
5899
|
+
var createNoteBody = joi115.object().keys(createNoteBodyKeys).messages(messages);
|
|
5900
|
+
var updateNoteBodyKeys = {
|
|
5901
|
+
note: joi115.string().required().allow("")
|
|
5902
|
+
};
|
|
5903
|
+
var updateNoteBody = joi115.object().keys(updateNoteBodyKeys).messages(messages);
|
|
5904
|
+
|
|
5888
5905
|
// src/index.ts
|
|
5889
5906
|
var index_default = main_exports;
|
|
5890
5907
|
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,15 @@ 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
2055
|
sendEmailDocumentBody: () => sendEmailDocumentBody,
|
|
2062
|
-
updateBody: () => updateBody13
|
|
2063
|
-
updateNoteBody: () => updateNoteBody
|
|
2056
|
+
updateBody: () => updateBody13
|
|
2064
2057
|
});
|
|
2065
2058
|
import joi22 from "joi";
|
|
2066
2059
|
var findQueryKeys7 = {};
|
|
@@ -2083,25 +2076,20 @@ var updateBodyKeys13 = {
|
|
|
2083
2076
|
pdf_link: joi22.string()
|
|
2084
2077
|
};
|
|
2085
2078
|
var updateBody13 = joi22.object().keys(updateBodyKeys13).messages(messages);
|
|
2079
|
+
var attachmentKeys = joi22.object().keys({
|
|
2080
|
+
filename: joi22.string().required(),
|
|
2081
|
+
multimedia_id: joi22.string().uuid().required()
|
|
2082
|
+
});
|
|
2086
2083
|
var sendEmailDocumentBodyKeys = {
|
|
2087
2084
|
template: joi22.string().valid(...IUserSendEmailDocumentTemplateTypes).required(),
|
|
2088
|
-
|
|
2085
|
+
start_document_header_id: joi22.string().uuid().required(),
|
|
2086
|
+
attachments: joi22.array().items(attachmentKeys.required()).required(),
|
|
2089
2087
|
user: joi22.object().keys({
|
|
2090
2088
|
name: joi22.string().required(),
|
|
2091
2089
|
email: joi22.string().trim(true).lowercase().required()
|
|
2092
2090
|
}).optional()
|
|
2093
2091
|
};
|
|
2094
2092
|
var sendEmailDocumentBody = joi22.object().keys(sendEmailDocumentBodyKeys).xor("document_line_assoc_ids", "external_document_header_ids").messages(messages);
|
|
2095
|
-
var createNoteBodyKeys = {
|
|
2096
|
-
document_header_id: joi22.string().uuid().required(),
|
|
2097
|
-
note: joi22.string().required(),
|
|
2098
|
-
type: joi22.string().required().valid("Client", "Provider")
|
|
2099
|
-
};
|
|
2100
|
-
var createNoteBody = joi22.object().keys(createNoteBodyKeys).messages(messages);
|
|
2101
|
-
var updateNoteBodyKeys = {
|
|
2102
|
-
note: joi22.string().required().allow("")
|
|
2103
|
-
};
|
|
2104
|
-
var updateNoteBody = joi22.object().keys(updateNoteBodyKeys).messages(messages);
|
|
2105
2093
|
|
|
2106
2094
|
// src/modules/user/favorites/interfaces.ts
|
|
2107
2095
|
var interfaces_exports16 = {};
|
|
@@ -5499,10 +5487,10 @@ var updateBodyKeys56 = {
|
|
|
5499
5487
|
};
|
|
5500
5488
|
var updateBody56 = joi103.object().keys(updateBodyKeys56).messages(messages);
|
|
5501
5489
|
|
|
5502
|
-
// src/modules/
|
|
5490
|
+
// src/modules/ui/sideMenu/interface.ts
|
|
5503
5491
|
var interface_exports56 = {};
|
|
5504
5492
|
|
|
5505
|
-
// src/modules/
|
|
5493
|
+
// src/modules/ui/sideMenu/route.schema.ts
|
|
5506
5494
|
var route_schema_exports103 = {};
|
|
5507
5495
|
__export(route_schema_exports103, {
|
|
5508
5496
|
findByDocumentLineStateQuery: () => findByDocumentLineStateQuery,
|
|
@@ -5885,6 +5873,35 @@ var findPaymentsNotExportedQuery2 = joi114.object().keys({
|
|
|
5885
5873
|
whiteList: joi114.array().items(joi114.string().uuid().required()).optional()
|
|
5886
5874
|
}).messages(messages);
|
|
5887
5875
|
|
|
5876
|
+
// src/modules/ui/portal/interface.ts
|
|
5877
|
+
var interface_exports65 = {};
|
|
5878
|
+
__export(interface_exports65, {
|
|
5879
|
+
IPublicDocumentHeaderNoteType: () => IPublicDocumentHeaderNoteType
|
|
5880
|
+
});
|
|
5881
|
+
var IPublicDocumentHeaderNoteType = /* @__PURE__ */ ((IPublicDocumentHeaderNoteType2) => {
|
|
5882
|
+
IPublicDocumentHeaderNoteType2["Provider"] = "Provider";
|
|
5883
|
+
IPublicDocumentHeaderNoteType2["Client"] = "Client";
|
|
5884
|
+
return IPublicDocumentHeaderNoteType2;
|
|
5885
|
+
})(IPublicDocumentHeaderNoteType || {});
|
|
5886
|
+
|
|
5887
|
+
// src/modules/ui/portal/route.schema.ts
|
|
5888
|
+
var route_schema_exports114 = {};
|
|
5889
|
+
__export(route_schema_exports114, {
|
|
5890
|
+
createNoteBody: () => createNoteBody,
|
|
5891
|
+
updateNoteBody: () => updateNoteBody
|
|
5892
|
+
});
|
|
5893
|
+
import joi115 from "joi";
|
|
5894
|
+
var createNoteBodyKeys = {
|
|
5895
|
+
document_header_id: joi115.string().uuid().required(),
|
|
5896
|
+
note: joi115.string().required(),
|
|
5897
|
+
type: joi115.string().required().valid("Client", "Provider")
|
|
5898
|
+
};
|
|
5899
|
+
var createNoteBody = joi115.object().keys(createNoteBodyKeys).messages(messages);
|
|
5900
|
+
var updateNoteBodyKeys = {
|
|
5901
|
+
note: joi115.string().required().allow("")
|
|
5902
|
+
};
|
|
5903
|
+
var updateNoteBody = joi115.object().keys(updateNoteBodyKeys).messages(messages);
|
|
5904
|
+
|
|
5888
5905
|
// src/index.ts
|
|
5889
5906
|
var index_default = main_exports;
|
|
5890
5907
|
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,46 +37,21 @@ export interface IUpdateRequest {
|
|
|
37
37
|
external_pdf_link?: string;
|
|
38
38
|
pdf_link?: string;
|
|
39
39
|
}
|
|
40
|
-
export
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
export interface PublicDocumentHeaderNote {
|
|
45
|
-
id: string;
|
|
46
|
-
note: string;
|
|
47
|
-
type: IPublicDocumentHeaderNoteType;
|
|
48
|
-
created_at: Date;
|
|
49
|
-
updated_at: Date;
|
|
50
|
-
created_by: string;
|
|
51
|
-
updated_by: string;
|
|
40
|
+
export interface IAttachment {
|
|
41
|
+
filename: string;
|
|
42
|
+
multimedia_id: string;
|
|
52
43
|
}
|
|
53
44
|
export interface ISendEmailDocumentRequest {
|
|
54
45
|
template: IShared.IUserSendEmailDocumentTemplate;
|
|
55
|
-
|
|
46
|
+
start_document_header_id: string;
|
|
47
|
+
attachments: IAttachment[];
|
|
56
48
|
user: {
|
|
57
49
|
name: string;
|
|
58
50
|
email: string;
|
|
59
51
|
};
|
|
60
52
|
}
|
|
61
|
-
export interface IPublicFindByOwnerIdResponse {
|
|
62
|
-
start_document_header_id: string;
|
|
63
|
-
label: string;
|
|
64
|
-
emission_date: Date;
|
|
65
|
-
pdf_link: string;
|
|
66
|
-
new_chat_messages: number;
|
|
67
|
-
pc_tags: string[];
|
|
68
|
-
}
|
|
69
|
-
export interface PublicDocumentHeaderNoteCreateRequest {
|
|
70
|
-
document_header_id: string;
|
|
71
|
-
note: string;
|
|
72
|
-
type: IPublicDocumentHeaderNoteType;
|
|
73
|
-
}
|
|
74
|
-
export interface PublicDocumentHeaderNoteUpdateRequest {
|
|
75
|
-
note: string;
|
|
76
|
-
}
|
|
77
53
|
export interface IRepository {
|
|
78
54
|
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
79
|
-
publicFindByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IPublicFindByOwnerIdResponse[]>;
|
|
80
55
|
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdItemWithVersions[]>;
|
|
81
56
|
sendEmailDocument: (data: ISendEmailDocumentRequest) => Promise<void>;
|
|
82
57
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
@@ -84,8 +59,5 @@ export interface IRepository {
|
|
|
84
59
|
create(data: ICreateRequest): Promise<Entity>;
|
|
85
60
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity | null>;
|
|
86
61
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
87
|
-
createPublicDocumentHeaderNote: (data: PublicDocumentHeaderNoteCreateRequest[]) => Promise<PublicDocumentHeaderNote[]>;
|
|
88
|
-
updatePublicDocumentHeaderNote: (selector: IShared.IFindByIdRequest, data: PublicDocumentHeaderNoteUpdateRequest[]) => Promise<PublicDocumentHeaderNote[]>;
|
|
89
62
|
}
|
|
90
63
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
91
|
-
export {};
|
|
@@ -4,5 +4,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
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,10 +200,16 @@ export type IBrokerTopicPayload = {
|
|
|
198
200
|
owner_id: string;
|
|
199
201
|
document_header_id: string;
|
|
200
202
|
start_document_name: string;
|
|
201
|
-
attachments:
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
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[];
|
|
205
213
|
};
|
|
206
214
|
[IBrokerTopic.grant_access]: {
|
|
207
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.9",
|
|
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
|