@nomalism-com/types 0.46.20 → 0.46.21
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 +3 -4
- package/dist/index.js +3 -4
- package/dist/main.d.ts +1 -1
- package/dist/modules/{stock → sms}/smsSender/interfaces.d.ts +1 -1
- package/dist/modules/supply/documentHeaderSubscriber/interface.d.ts +1 -1
- package/dist/modules/ui/sideMenu/interface.d.ts +0 -1
- package/dist/shared/entities/sms.d.ts +16 -0
- package/dist/shared/entities/stock.d.ts +1 -17
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5303,8 +5303,7 @@ __export(route_schema_exports100, {
|
|
|
5303
5303
|
import joi101 from "joi";
|
|
5304
5304
|
var findByDocumentLineStateQueryKeys = {
|
|
5305
5305
|
user_type: joi101.string().valid(...documentTypeUserTypes).required(),
|
|
5306
|
-
document_line_state: joi101.string().required()
|
|
5307
|
-
search_value: joi101.string().allow(null).empty("").optional()
|
|
5306
|
+
document_line_state: joi101.string().required()
|
|
5308
5307
|
};
|
|
5309
5308
|
var findByDocumentLineStateQuery = joi101.object().keys(findByDocumentLineStateQueryKeys).messages(messages);
|
|
5310
5309
|
var findByStateQueryKeys = {
|
|
@@ -5822,7 +5821,7 @@ __export(route_schema_exports115, {
|
|
|
5822
5821
|
import joi116 from "joi";
|
|
5823
5822
|
var createBodyKeys63 = {
|
|
5824
5823
|
document_header_id: joi116.string().uuid().required(),
|
|
5825
|
-
|
|
5824
|
+
user_id: joi116.string().uuid().required()
|
|
5826
5825
|
};
|
|
5827
5826
|
var createBody64 = joi116.object().keys(createBodyKeys63).messages(messages);
|
|
5828
5827
|
|
|
@@ -5983,7 +5982,7 @@ var createBody66 = joi120.object().keys({
|
|
|
5983
5982
|
document_line_ids: joi120.array().items(joi120.string().uuid().required()).required()
|
|
5984
5983
|
}).messages(messages);
|
|
5985
5984
|
|
|
5986
|
-
// src/modules/
|
|
5985
|
+
// src/modules/sms/smsSender/interfaces.ts
|
|
5987
5986
|
var interfaces_exports63 = {};
|
|
5988
5987
|
__export(interfaces_exports63, {
|
|
5989
5988
|
ISmsSenderStatsEnum: () => ISmsSenderStatsEnum,
|
package/dist/index.js
CHANGED
|
@@ -5303,8 +5303,7 @@ __export(route_schema_exports100, {
|
|
|
5303
5303
|
import joi101 from "joi";
|
|
5304
5304
|
var findByDocumentLineStateQueryKeys = {
|
|
5305
5305
|
user_type: joi101.string().valid(...documentTypeUserTypes).required(),
|
|
5306
|
-
document_line_state: joi101.string().required()
|
|
5307
|
-
search_value: joi101.string().allow(null).empty("").optional()
|
|
5306
|
+
document_line_state: joi101.string().required()
|
|
5308
5307
|
};
|
|
5309
5308
|
var findByDocumentLineStateQuery = joi101.object().keys(findByDocumentLineStateQueryKeys).messages(messages);
|
|
5310
5309
|
var findByStateQueryKeys = {
|
|
@@ -5822,7 +5821,7 @@ __export(route_schema_exports115, {
|
|
|
5822
5821
|
import joi116 from "joi";
|
|
5823
5822
|
var createBodyKeys63 = {
|
|
5824
5823
|
document_header_id: joi116.string().uuid().required(),
|
|
5825
|
-
|
|
5824
|
+
user_id: joi116.string().uuid().required()
|
|
5826
5825
|
};
|
|
5827
5826
|
var createBody64 = joi116.object().keys(createBodyKeys63).messages(messages);
|
|
5828
5827
|
|
|
@@ -5983,7 +5982,7 @@ var createBody66 = joi120.object().keys({
|
|
|
5983
5982
|
document_line_ids: joi120.array().items(joi120.string().uuid().required()).required()
|
|
5984
5983
|
}).messages(messages);
|
|
5985
5984
|
|
|
5986
|
-
// src/modules/
|
|
5985
|
+
// src/modules/sms/smsSender/interfaces.ts
|
|
5987
5986
|
var interfaces_exports63 = {};
|
|
5988
5987
|
__export(interfaces_exports63, {
|
|
5989
5988
|
ISmsSenderStatsEnum: () => ISmsSenderStatsEnum,
|
package/dist/main.d.ts
CHANGED
|
@@ -255,5 +255,5 @@ import * as TimeSheet from './modules/user/timeSheet/interfaces';
|
|
|
255
255
|
import * as TimeSheetRoutes from './modules/user/timeSheet/route.schema';
|
|
256
256
|
import * as Catalogo from './modules/document/CAT/interfaces';
|
|
257
257
|
import * as CatalogoRoutes from './modules/document/CAT/route.schema';
|
|
258
|
-
import * as SmsSender from './modules/
|
|
258
|
+
import * as SmsSender from './modules/sms/smsSender/interfaces';
|
|
259
259
|
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, SystemModule, SystemModuleRoutes, 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, SidemenuHighlight, SidemenuHighlightRoutes, 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, DocumentHeaderSubscriber, DocumentHeaderSubscriberRoutes, GoogleCalendar, GoogleCalendarRoutes, WebSocket, ProductLocation, MobilePrint, MobilePrintRoutes, TimeSheet, TimeSheetRoutes, Catalogo, CatalogoRoutes, SmsSender, };
|
|
@@ -17,7 +17,6 @@ export interface IFindByStateResponse {
|
|
|
17
17
|
export interface IFindByDocumentLineStateRequest {
|
|
18
18
|
user_type: IDocumentTypeUserType;
|
|
19
19
|
document_line_state: string;
|
|
20
|
-
search_value?: string | null;
|
|
21
20
|
}
|
|
22
21
|
export interface IFindByDocumentLineStateResponse {
|
|
23
22
|
document_header_id: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ISmsSenderStats } from '../../modules/sms/smsSender/interfaces';
|
|
2
|
+
/**
|
|
3
|
+
* Model SmsSender
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export type SmsSender = {
|
|
7
|
+
id: string;
|
|
8
|
+
document_line_id: string | null;
|
|
9
|
+
telephone: string;
|
|
10
|
+
message: string;
|
|
11
|
+
status: ISmsSenderStats;
|
|
12
|
+
error: string | null;
|
|
13
|
+
created_at: Date;
|
|
14
|
+
processed_at: Date | null;
|
|
15
|
+
sent_at: Date | null;
|
|
16
|
+
};
|
|
@@ -14,7 +14,6 @@ import type { IRsaHashData, ITaxEntry } from '../../modules/supply/documentHeade
|
|
|
14
14
|
import type { ProjectInfo } from './integration';
|
|
15
15
|
import { IEstadoEncomenda } from '../../modules/stock/conferirEncomenda/interface';
|
|
16
16
|
import { IMotivosDeEsperaData } from '../../modules/document/order/interfaces';
|
|
17
|
-
import { ISmsSenderStats } from '../../modules/stock/smsSender/interfaces';
|
|
18
17
|
/**
|
|
19
18
|
* Model AccountCode
|
|
20
19
|
*
|
|
@@ -1107,7 +1106,7 @@ export type DocumentHeaderSurvey = {
|
|
|
1107
1106
|
export type DocumentHeaderSubscriber = {
|
|
1108
1107
|
id: string;
|
|
1109
1108
|
document_header_id: string;
|
|
1110
|
-
|
|
1109
|
+
user_id: string;
|
|
1111
1110
|
created_at: Date;
|
|
1112
1111
|
created_by: string;
|
|
1113
1112
|
updated_at: Date;
|
|
@@ -1146,18 +1145,3 @@ export type SidemenuHightlight = {
|
|
|
1146
1145
|
created_by: string;
|
|
1147
1146
|
updated_by: string;
|
|
1148
1147
|
};
|
|
1149
|
-
/**
|
|
1150
|
-
* Model SmsSender
|
|
1151
|
-
*
|
|
1152
|
-
*/
|
|
1153
|
-
export type SmsSender = {
|
|
1154
|
-
id: string;
|
|
1155
|
-
document_line_id: string | null;
|
|
1156
|
-
telephone: string;
|
|
1157
|
-
message: string;
|
|
1158
|
-
status: ISmsSenderStats;
|
|
1159
|
-
error: string | null;
|
|
1160
|
-
created_at: Date;
|
|
1161
|
-
processed_at: Date | null;
|
|
1162
|
-
sent_at: Date | null;
|
|
1163
|
-
};
|
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.46.
|
|
4
|
+
"version": "0.46.21",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|