@nomalism-com/types 0.43.26 → 0.43.28
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
CHANGED
|
@@ -42,6 +42,8 @@ __export(main_exports, {
|
|
|
42
42
|
DocumentHeader: () => interfaces_exports4,
|
|
43
43
|
DocumentHeaderHistory: () => interfaces_exports7,
|
|
44
44
|
DocumentHeaderRoutes: () => route_schema_exports9,
|
|
45
|
+
DocumentHeaderSurvey: () => interfaces_exports59,
|
|
46
|
+
DocumentHeaderSurveyRoutes: () => route_schema_exports112,
|
|
45
47
|
DocumentLine: () => interfaces_exports15,
|
|
46
48
|
DocumentLineAssoc: () => interfaces_exports16,
|
|
47
49
|
DocumentLineMt: () => interface_exports56,
|
|
@@ -5979,6 +5981,28 @@ var Route110 = "patch_notes";
|
|
|
5979
5981
|
var UpperName107 = "PatchNotes";
|
|
5980
5982
|
var LowerName107 = UpperName107[0].toLowerCase() + UpperName107.substring(1);
|
|
5981
5983
|
|
|
5984
|
+
// src/modules/supply/documentHeaderSurvey/interfaces.ts
|
|
5985
|
+
var interfaces_exports59 = {};
|
|
5986
|
+
|
|
5987
|
+
// src/modules/supply/documentHeaderSurvey/route.schema.ts
|
|
5988
|
+
var route_schema_exports112 = {};
|
|
5989
|
+
__export(route_schema_exports112, {
|
|
5990
|
+
updateSentBody: () => updateSentBody,
|
|
5991
|
+
updateSurveyBody: () => updateSurveyBody
|
|
5992
|
+
});
|
|
5993
|
+
import joi113 from "joi";
|
|
5994
|
+
var updateSentBodyKeys = {
|
|
5995
|
+
document_header_id: joi113.string().uuid().required(),
|
|
5996
|
+
persona_id: joi113.string().uuid().required()
|
|
5997
|
+
};
|
|
5998
|
+
var updateSentBody = joi113.object().keys(updateSentBodyKeys).messages(messages);
|
|
5999
|
+
var updateSurveyBodyKeys = {
|
|
6000
|
+
document_header_id: joi113.string().uuid().required(),
|
|
6001
|
+
persona_id: joi113.string().uuid().required(),
|
|
6002
|
+
data: joi113.object().keys({}).required()
|
|
6003
|
+
};
|
|
6004
|
+
var updateSurveyBody = joi113.object().keys(updateSurveyBodyKeys).messages(messages);
|
|
6005
|
+
|
|
5982
6006
|
// src/index.ts
|
|
5983
6007
|
var index_default = main_exports;
|
|
5984
6008
|
export {
|
package/dist/index.js
CHANGED
|
@@ -42,6 +42,8 @@ __export(main_exports, {
|
|
|
42
42
|
DocumentHeader: () => interfaces_exports4,
|
|
43
43
|
DocumentHeaderHistory: () => interfaces_exports7,
|
|
44
44
|
DocumentHeaderRoutes: () => route_schema_exports9,
|
|
45
|
+
DocumentHeaderSurvey: () => interfaces_exports59,
|
|
46
|
+
DocumentHeaderSurveyRoutes: () => route_schema_exports112,
|
|
45
47
|
DocumentLine: () => interfaces_exports15,
|
|
46
48
|
DocumentLineAssoc: () => interfaces_exports16,
|
|
47
49
|
DocumentLineMt: () => interface_exports56,
|
|
@@ -5979,6 +5981,28 @@ var Route110 = "patch_notes";
|
|
|
5979
5981
|
var UpperName107 = "PatchNotes";
|
|
5980
5982
|
var LowerName107 = UpperName107[0].toLowerCase() + UpperName107.substring(1);
|
|
5981
5983
|
|
|
5984
|
+
// src/modules/supply/documentHeaderSurvey/interfaces.ts
|
|
5985
|
+
var interfaces_exports59 = {};
|
|
5986
|
+
|
|
5987
|
+
// src/modules/supply/documentHeaderSurvey/route.schema.ts
|
|
5988
|
+
var route_schema_exports112 = {};
|
|
5989
|
+
__export(route_schema_exports112, {
|
|
5990
|
+
updateSentBody: () => updateSentBody,
|
|
5991
|
+
updateSurveyBody: () => updateSurveyBody
|
|
5992
|
+
});
|
|
5993
|
+
import joi113 from "joi";
|
|
5994
|
+
var updateSentBodyKeys = {
|
|
5995
|
+
document_header_id: joi113.string().uuid().required(),
|
|
5996
|
+
persona_id: joi113.string().uuid().required()
|
|
5997
|
+
};
|
|
5998
|
+
var updateSentBody = joi113.object().keys(updateSentBodyKeys).messages(messages);
|
|
5999
|
+
var updateSurveyBodyKeys = {
|
|
6000
|
+
document_header_id: joi113.string().uuid().required(),
|
|
6001
|
+
persona_id: joi113.string().uuid().required(),
|
|
6002
|
+
data: joi113.object().keys({}).required()
|
|
6003
|
+
};
|
|
6004
|
+
var updateSurveyBody = joi113.object().keys(updateSurveyBodyKeys).messages(messages);
|
|
6005
|
+
|
|
5982
6006
|
// src/index.ts
|
|
5983
6007
|
var index_default = main_exports;
|
|
5984
6008
|
export {
|
package/dist/main.d.ts
CHANGED
|
@@ -237,4 +237,6 @@ import * as LLM from './modules/llm/llm/interfaces';
|
|
|
237
237
|
import * as LLMRoutes from './modules/llm/llm/route.schema';
|
|
238
238
|
import * as PatchNotes from './modules/integration/patchNotes/interfaces';
|
|
239
239
|
import * as ConferirEncomenda from './modules/stock/conferirEncomenda/interface';
|
|
240
|
-
|
|
240
|
+
import * as DocumentHeaderSurvey from './modules/supply/documentHeaderSurvey/interfaces';
|
|
241
|
+
import * as DocumentHeaderSurveyRoutes from './modules/supply/documentHeaderSurvey/route.schema';
|
|
242
|
+
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, DocumentSet, DocumentSetRoutes, DocumentType, DocumentTypeRoutes, ExternalDocumentType, ExternalDocumentHeader, ExternalDocumentHeaderRoutes, Favorites, FavoritesRoutes, File, FileRoutes, GoogleSheets, GoogleSheetsRoutes, Language, LanguageRoutes, Location, LocationRoutes, MaturityDates, MaturityDatesRoutes, Multimedia, MultimediaRoutes, OrderManagement, Observation, ObservationRoutes, ObservationType, ObservationTypeRoutes, Password, PasswordRoutes, Payment, PaymentRoutes, PaymentMethods, PaymentMethodsRoutes, 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, 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, NPF, NPFRoutes, NRCL, NRCLRoutes, CurrentAccount, CurrentAccountRoutes, PaymentBatch, PaymentBatchRoutes, Portal, PortalRoutes, GoogleSheetPool, AccountCode, AccountCodeRoutes, LLM, LLMRoutes, PatchNotes, ConferirEncomenda, DocumentHeaderSurvey, DocumentHeaderSurveyRoutes, };
|
|
@@ -3,11 +3,11 @@ import { DocumentHeaderSurvey } from '../../../shared/entities/stock';
|
|
|
3
3
|
export type IEntity = DocumentHeaderSurvey;
|
|
4
4
|
export type ICreateRequest = Pick<IEntity, 'owner_id' | 'document_header_id' | 'persona_id'>;
|
|
5
5
|
export type IResponse = IEntity;
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
6
|
+
export type IUpdateSentRequest = Pick<IEntity, 'document_header_id' | 'persona_id'>;
|
|
7
|
+
export type IUpdateSurveyRequest = Pick<IEntity, 'document_header_id' | 'persona_id' | 'data'>;
|
|
8
8
|
export interface IRepository {
|
|
9
9
|
find(): Promise<IResponse[]>;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
updateSent(data: IUpdateSentRequest): Promise<void>;
|
|
11
|
+
updateSurvey(data: IUpdateSurveyRequest): Promise<void>;
|
|
12
12
|
}
|
|
13
13
|
export type IController = Nomalism.shared.IEntityWithUserToken<IRepository>;
|
|
@@ -375,7 +375,8 @@ export type IBrokerTopicPayload = {
|
|
|
375
375
|
persona_id: string;
|
|
376
376
|
document_header_id: string;
|
|
377
377
|
document_number: number;
|
|
378
|
-
|
|
378
|
+
persona_name: string;
|
|
379
|
+
persona_email: string;
|
|
379
380
|
};
|
|
380
381
|
};
|
|
381
382
|
export interface IBrokerMessage<T extends IBrokerTopic = IBrokerTopic> {
|
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.43.
|
|
4
|
+
"version": "0.43.28",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|