@nomalism-com/types 0.46.20 → 0.46.22
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 +4 -4
- package/dist/index.js +4 -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/dist/shared/interface.d.ts +11 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -516,6 +516,7 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
|
|
|
516
516
|
IBrokerTopic2["googlesheet_stock_log"] = "googlesheet_stock_log";
|
|
517
517
|
IBrokerTopic2["googlesheet_encomenda_log"] = "googlesheet_encomenda_log";
|
|
518
518
|
IBrokerTopic2["log_google_api_request"] = "log_google_api_request";
|
|
519
|
+
IBrokerTopic2["sms_sender_select_lines"] = "sms_sender_select_lines";
|
|
519
520
|
return IBrokerTopic2;
|
|
520
521
|
})(IBrokerTopic || {});
|
|
521
522
|
|
|
@@ -5303,8 +5304,7 @@ __export(route_schema_exports100, {
|
|
|
5303
5304
|
import joi101 from "joi";
|
|
5304
5305
|
var findByDocumentLineStateQueryKeys = {
|
|
5305
5306
|
user_type: joi101.string().valid(...documentTypeUserTypes).required(),
|
|
5306
|
-
document_line_state: joi101.string().required()
|
|
5307
|
-
search_value: joi101.string().allow(null).empty("").optional()
|
|
5307
|
+
document_line_state: joi101.string().required()
|
|
5308
5308
|
};
|
|
5309
5309
|
var findByDocumentLineStateQuery = joi101.object().keys(findByDocumentLineStateQueryKeys).messages(messages);
|
|
5310
5310
|
var findByStateQueryKeys = {
|
|
@@ -5822,7 +5822,7 @@ __export(route_schema_exports115, {
|
|
|
5822
5822
|
import joi116 from "joi";
|
|
5823
5823
|
var createBodyKeys63 = {
|
|
5824
5824
|
document_header_id: joi116.string().uuid().required(),
|
|
5825
|
-
|
|
5825
|
+
user_id: joi116.string().uuid().required()
|
|
5826
5826
|
};
|
|
5827
5827
|
var createBody64 = joi116.object().keys(createBodyKeys63).messages(messages);
|
|
5828
5828
|
|
|
@@ -5983,7 +5983,7 @@ var createBody66 = joi120.object().keys({
|
|
|
5983
5983
|
document_line_ids: joi120.array().items(joi120.string().uuid().required()).required()
|
|
5984
5984
|
}).messages(messages);
|
|
5985
5985
|
|
|
5986
|
-
// src/modules/
|
|
5986
|
+
// src/modules/sms/smsSender/interfaces.ts
|
|
5987
5987
|
var interfaces_exports63 = {};
|
|
5988
5988
|
__export(interfaces_exports63, {
|
|
5989
5989
|
ISmsSenderStatsEnum: () => ISmsSenderStatsEnum,
|
package/dist/index.js
CHANGED
|
@@ -516,6 +516,7 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
|
|
|
516
516
|
IBrokerTopic2["googlesheet_stock_log"] = "googlesheet_stock_log";
|
|
517
517
|
IBrokerTopic2["googlesheet_encomenda_log"] = "googlesheet_encomenda_log";
|
|
518
518
|
IBrokerTopic2["log_google_api_request"] = "log_google_api_request";
|
|
519
|
+
IBrokerTopic2["sms_sender_select_lines"] = "sms_sender_select_lines";
|
|
519
520
|
return IBrokerTopic2;
|
|
520
521
|
})(IBrokerTopic || {});
|
|
521
522
|
|
|
@@ -5303,8 +5304,7 @@ __export(route_schema_exports100, {
|
|
|
5303
5304
|
import joi101 from "joi";
|
|
5304
5305
|
var findByDocumentLineStateQueryKeys = {
|
|
5305
5306
|
user_type: joi101.string().valid(...documentTypeUserTypes).required(),
|
|
5306
|
-
document_line_state: joi101.string().required()
|
|
5307
|
-
search_value: joi101.string().allow(null).empty("").optional()
|
|
5307
|
+
document_line_state: joi101.string().required()
|
|
5308
5308
|
};
|
|
5309
5309
|
var findByDocumentLineStateQuery = joi101.object().keys(findByDocumentLineStateQueryKeys).messages(messages);
|
|
5310
5310
|
var findByStateQueryKeys = {
|
|
@@ -5822,7 +5822,7 @@ __export(route_schema_exports115, {
|
|
|
5822
5822
|
import joi116 from "joi";
|
|
5823
5823
|
var createBodyKeys63 = {
|
|
5824
5824
|
document_header_id: joi116.string().uuid().required(),
|
|
5825
|
-
|
|
5825
|
+
user_id: joi116.string().uuid().required()
|
|
5826
5826
|
};
|
|
5827
5827
|
var createBody64 = joi116.object().keys(createBodyKeys63).messages(messages);
|
|
5828
5828
|
|
|
@@ -5983,7 +5983,7 @@ var createBody66 = joi120.object().keys({
|
|
|
5983
5983
|
document_line_ids: joi120.array().items(joi120.string().uuid().required()).required()
|
|
5984
5984
|
}).messages(messages);
|
|
5985
5985
|
|
|
5986
|
-
// src/modules/
|
|
5986
|
+
// src/modules/sms/smsSender/interfaces.ts
|
|
5987
5987
|
var interfaces_exports63 = {};
|
|
5988
5988
|
__export(interfaces_exports63, {
|
|
5989
5989
|
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
|
-
};
|
|
@@ -135,6 +135,12 @@ export declare const IUserSendEmailDocumentTemplateEnum: {
|
|
|
135
135
|
};
|
|
136
136
|
export type IUserSendEmailDocumentTemplate = (typeof IUserSendEmailDocumentTemplateEnum)[keyof typeof IUserSendEmailDocumentTemplateEnum];
|
|
137
137
|
export declare const IUserSendEmailDocumentTemplateTypes: string[];
|
|
138
|
+
export interface ISmsSenderSelectLinesData {
|
|
139
|
+
document_line_id: string;
|
|
140
|
+
document_header_id: string;
|
|
141
|
+
execution_date: string;
|
|
142
|
+
type: 'RM' | 'MT';
|
|
143
|
+
}
|
|
138
144
|
export declare enum IBrokerTopic {
|
|
139
145
|
tickets_change = "tickets_change",
|
|
140
146
|
push_notification = "push_notification",
|
|
@@ -184,7 +190,8 @@ export declare enum IBrokerTopic {
|
|
|
184
190
|
googlesheet_task_log = "googlesheet_task_log",
|
|
185
191
|
googlesheet_stock_log = "googlesheet_stock_log",
|
|
186
192
|
googlesheet_encomenda_log = "googlesheet_encomenda_log",
|
|
187
|
-
log_google_api_request = "log_google_api_request"
|
|
193
|
+
log_google_api_request = "log_google_api_request",
|
|
194
|
+
sms_sender_select_lines = "sms_sender_select_lines"
|
|
188
195
|
}
|
|
189
196
|
export type IBrokerTopicPayload = {
|
|
190
197
|
[IBrokerTopic.google_sheet_import]: {
|
|
@@ -399,6 +406,9 @@ export type IBrokerTopicPayload = {
|
|
|
399
406
|
target_subscriber_ids: string[];
|
|
400
407
|
event: ChatSocketEvent;
|
|
401
408
|
};
|
|
409
|
+
[IBrokerTopic.sms_sender_select_lines]: {
|
|
410
|
+
data: ISmsSenderSelectLinesData;
|
|
411
|
+
};
|
|
402
412
|
};
|
|
403
413
|
export interface IBrokerMessage<T extends IBrokerTopic = IBrokerTopic> {
|
|
404
414
|
topic: T;
|
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.22",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|