@nomalism-com/types 0.45.72 → 0.45.74
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 +17 -0
- package/dist/index.js +17 -0
- package/dist/main.d.ts +2 -1
- package/dist/modules/stock/smsSender/interfaces.d.ts +42 -0
- package/dist/shared/entities/stock.d.ts +16 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -204,6 +204,7 @@ __export(main_exports, {
|
|
|
204
204
|
SideMenuRoutes: () => route_schema_exports100,
|
|
205
205
|
SidemenuHighlight: () => interface_exports56,
|
|
206
206
|
SidemenuHighlightRoutes: () => route_schema_exports101,
|
|
207
|
+
SmsSender: () => interfaces_exports63,
|
|
207
208
|
StartDocumentHeaderLastUpdate: () => interface_exports42,
|
|
208
209
|
StockMovement: () => interface_exports36,
|
|
209
210
|
StockMovementRoutes: () => route_schema_exports57,
|
|
@@ -5916,6 +5917,22 @@ var createBody66 = joi120.object().keys({
|
|
|
5916
5917
|
document_line_ids: joi120.array().items(joi120.string().uuid().required()).required()
|
|
5917
5918
|
}).messages(messages);
|
|
5918
5919
|
|
|
5920
|
+
// src/modules/stock/smsSender/interfaces.ts
|
|
5921
|
+
var interfaces_exports63 = {};
|
|
5922
|
+
__export(interfaces_exports63, {
|
|
5923
|
+
ISmsSenderStatsEnum: () => ISmsSenderStatsEnum,
|
|
5924
|
+
Route: () => Route133,
|
|
5925
|
+
timeSheetRecordTypes: () => timeSheetRecordTypes2
|
|
5926
|
+
});
|
|
5927
|
+
var Route133 = "sms_sender";
|
|
5928
|
+
var ISmsSenderStatsEnum = {
|
|
5929
|
+
PENDING: "PENDING",
|
|
5930
|
+
PROCESSING: "PROCESSING",
|
|
5931
|
+
SENT: "SENT",
|
|
5932
|
+
FAILED: "FAILED"
|
|
5933
|
+
};
|
|
5934
|
+
var timeSheetRecordTypes2 = Object.values(ISmsSenderStatsEnum);
|
|
5935
|
+
|
|
5919
5936
|
// src/index.ts
|
|
5920
5937
|
var index_default = main_exports;
|
|
5921
5938
|
export {
|
package/dist/index.js
CHANGED
|
@@ -204,6 +204,7 @@ __export(main_exports, {
|
|
|
204
204
|
SideMenuRoutes: () => route_schema_exports100,
|
|
205
205
|
SidemenuHighlight: () => interface_exports56,
|
|
206
206
|
SidemenuHighlightRoutes: () => route_schema_exports101,
|
|
207
|
+
SmsSender: () => interfaces_exports63,
|
|
207
208
|
StartDocumentHeaderLastUpdate: () => interface_exports42,
|
|
208
209
|
StockMovement: () => interface_exports36,
|
|
209
210
|
StockMovementRoutes: () => route_schema_exports57,
|
|
@@ -5916,6 +5917,22 @@ var createBody66 = joi120.object().keys({
|
|
|
5916
5917
|
document_line_ids: joi120.array().items(joi120.string().uuid().required()).required()
|
|
5917
5918
|
}).messages(messages);
|
|
5918
5919
|
|
|
5920
|
+
// src/modules/stock/smsSender/interfaces.ts
|
|
5921
|
+
var interfaces_exports63 = {};
|
|
5922
|
+
__export(interfaces_exports63, {
|
|
5923
|
+
ISmsSenderStatsEnum: () => ISmsSenderStatsEnum,
|
|
5924
|
+
Route: () => Route133,
|
|
5925
|
+
timeSheetRecordTypes: () => timeSheetRecordTypes2
|
|
5926
|
+
});
|
|
5927
|
+
var Route133 = "sms_sender";
|
|
5928
|
+
var ISmsSenderStatsEnum = {
|
|
5929
|
+
PENDING: "PENDING",
|
|
5930
|
+
PROCESSING: "PROCESSING",
|
|
5931
|
+
SENT: "SENT",
|
|
5932
|
+
FAILED: "FAILED"
|
|
5933
|
+
};
|
|
5934
|
+
var timeSheetRecordTypes2 = Object.values(ISmsSenderStatsEnum);
|
|
5935
|
+
|
|
5919
5936
|
// src/index.ts
|
|
5920
5937
|
var index_default = main_exports;
|
|
5921
5938
|
export {
|
package/dist/main.d.ts
CHANGED
|
@@ -255,4 +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
|
-
|
|
258
|
+
import * as SmsSender from './modules/stock/smsSender/interfaces';
|
|
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, };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { SmsSender } from '../../../shared/entities/stock';
|
|
2
|
+
export type Entity = SmsSender;
|
|
3
|
+
export declare const Route = "sms_sender";
|
|
4
|
+
export declare const ISmsSenderStatsEnum: {
|
|
5
|
+
readonly PENDING: "PENDING";
|
|
6
|
+
readonly PROCESSING: "PROCESSING";
|
|
7
|
+
readonly SENT: "SENT";
|
|
8
|
+
readonly FAILED: "FAILED";
|
|
9
|
+
};
|
|
10
|
+
export type ISmsSenderStats = (typeof ISmsSenderStatsEnum)[keyof typeof ISmsSenderStatsEnum];
|
|
11
|
+
export declare const timeSheetRecordTypes: ("PENDING" | "PROCESSING" | "SENT" | "FAILED")[];
|
|
12
|
+
export interface ICreateRequest {
|
|
13
|
+
phone: string;
|
|
14
|
+
message: string;
|
|
15
|
+
google_calendar_id: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IClaimResponse {
|
|
18
|
+
id: string;
|
|
19
|
+
phone: string;
|
|
20
|
+
message: string;
|
|
21
|
+
status: string;
|
|
22
|
+
}
|
|
23
|
+
export interface IResultRequest {
|
|
24
|
+
status: ISmsSenderStats;
|
|
25
|
+
error?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface IFindResponse {
|
|
28
|
+
id: string;
|
|
29
|
+
phone: string;
|
|
30
|
+
message: string;
|
|
31
|
+
status: string;
|
|
32
|
+
error?: string;
|
|
33
|
+
created_at: Date;
|
|
34
|
+
processed_at?: Date;
|
|
35
|
+
sent_at?: Date;
|
|
36
|
+
}
|
|
37
|
+
export interface IController {
|
|
38
|
+
claim(): Promise<IClaimResponse>;
|
|
39
|
+
result(id: string, data: IResultRequest): Promise<void>;
|
|
40
|
+
findById(id: string): Promise<IFindResponse>;
|
|
41
|
+
findAll(): Promise<IFindResponse[]>;
|
|
42
|
+
}
|
|
@@ -14,6 +14,7 @@ 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';
|
|
17
18
|
/**
|
|
18
19
|
* Model AccountCode
|
|
19
20
|
*
|
|
@@ -1136,3 +1137,18 @@ export type SidemenuHightlight = {
|
|
|
1136
1137
|
created_by: string;
|
|
1137
1138
|
updated_by: string;
|
|
1138
1139
|
};
|
|
1140
|
+
/**
|
|
1141
|
+
* Model SmsSender
|
|
1142
|
+
*
|
|
1143
|
+
*/
|
|
1144
|
+
export type SmsSender = {
|
|
1145
|
+
id: string;
|
|
1146
|
+
google_calendar_id: string;
|
|
1147
|
+
phone: string;
|
|
1148
|
+
message: string;
|
|
1149
|
+
status: ISmsSenderStats;
|
|
1150
|
+
error: string | null;
|
|
1151
|
+
created_at: Date;
|
|
1152
|
+
processed_at: Date | null;
|
|
1153
|
+
sent_at: Date | null;
|
|
1154
|
+
};
|
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.45.
|
|
4
|
+
"version": "0.45.74",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|