@nomalism-com/types 0.46.37 → 0.46.39
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 +28 -8
- package/dist/index.js +28 -8
- package/dist/main.d.ts +3 -1
- package/dist/modules/sms/allowedDevice/interfaces.d.ts +22 -0
- package/dist/modules/sms/allowedDevice/route.schema.d.ts +3 -0
- package/dist/modules/sms/smsSender/interfaces.d.ts +5 -2
- package/dist/modules/sms/smsTemplate/interfaces.d.ts +2 -2
- package/dist/modules/sms/smsTemplate/route.schema.d.ts +0 -2
- package/dist/shared/entities/sms.d.ts +16 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10,6 +10,8 @@ __export(main_exports, {
|
|
|
10
10
|
AccountCode: () => interface_exports67,
|
|
11
11
|
AccountCodeRoutes: () => route_schema_exports112,
|
|
12
12
|
AdminPanel: () => interfaces_exports54,
|
|
13
|
+
AllowedDevice: () => interfaces_exports65,
|
|
14
|
+
AllowedDeviceRoutes: () => route_schema_exports121,
|
|
13
15
|
BankData: () => interface_exports2,
|
|
14
16
|
BankDataRoutes: () => route_schema_exports,
|
|
15
17
|
BillOfLading: () => interfaces_exports8,
|
|
@@ -6015,8 +6017,6 @@ var Route134 = "sms_template";
|
|
|
6015
6017
|
var route_schema_exports120 = {};
|
|
6016
6018
|
__export(route_schema_exports120, {
|
|
6017
6019
|
createBody: () => createBody67,
|
|
6018
|
-
idParam: () => idParam2,
|
|
6019
|
-
keyParam: () => keyParam,
|
|
6020
6020
|
updateBody: () => updateBody57
|
|
6021
6021
|
});
|
|
6022
6022
|
import joi121 from "joi";
|
|
@@ -6034,12 +6034,32 @@ var updateBodyKeys55 = {
|
|
|
6034
6034
|
variables: joi121.object().pattern(joi121.string(), joi121.alternatives().try(joi121.string(), joi121.number(), joi121.boolean())).optional()
|
|
6035
6035
|
};
|
|
6036
6036
|
var updateBody57 = joi121.object().keys(updateBodyKeys55).messages(messages);
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
}
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
})
|
|
6037
|
+
|
|
6038
|
+
// src/modules/sms/allowedDevice/interfaces.ts
|
|
6039
|
+
var interfaces_exports65 = {};
|
|
6040
|
+
__export(interfaces_exports65, {
|
|
6041
|
+
Route: () => Route135
|
|
6042
|
+
});
|
|
6043
|
+
var Route135 = "allowed_device";
|
|
6044
|
+
|
|
6045
|
+
// src/modules/sms/allowedDevice/route.schema.ts
|
|
6046
|
+
var route_schema_exports121 = {};
|
|
6047
|
+
__export(route_schema_exports121, {
|
|
6048
|
+
createBody: () => createBody68,
|
|
6049
|
+
updateBody: () => updateBody58
|
|
6050
|
+
});
|
|
6051
|
+
import joi122 from "joi";
|
|
6052
|
+
var createBodyKeys66 = {
|
|
6053
|
+
key: joi122.string().required(),
|
|
6054
|
+
apk_name: joi122.string().required()
|
|
6055
|
+
};
|
|
6056
|
+
var createBody68 = joi122.object().keys(createBodyKeys66).messages(messages);
|
|
6057
|
+
var updateBodyKeys56 = {
|
|
6058
|
+
allow_app: joi122.boolean().required(),
|
|
6059
|
+
allow_sms: joi122.boolean().required(),
|
|
6060
|
+
allow_ticket: joi122.boolean().required()
|
|
6061
|
+
};
|
|
6062
|
+
var updateBody58 = joi122.object().keys(updateBodyKeys56).messages(messages);
|
|
6043
6063
|
|
|
6044
6064
|
// src/index.ts
|
|
6045
6065
|
var index_default = main_exports;
|
package/dist/index.js
CHANGED
|
@@ -10,6 +10,8 @@ __export(main_exports, {
|
|
|
10
10
|
AccountCode: () => interface_exports67,
|
|
11
11
|
AccountCodeRoutes: () => route_schema_exports112,
|
|
12
12
|
AdminPanel: () => interfaces_exports54,
|
|
13
|
+
AllowedDevice: () => interfaces_exports65,
|
|
14
|
+
AllowedDeviceRoutes: () => route_schema_exports121,
|
|
13
15
|
BankData: () => interface_exports2,
|
|
14
16
|
BankDataRoutes: () => route_schema_exports,
|
|
15
17
|
BillOfLading: () => interfaces_exports8,
|
|
@@ -6015,8 +6017,6 @@ var Route134 = "sms_template";
|
|
|
6015
6017
|
var route_schema_exports120 = {};
|
|
6016
6018
|
__export(route_schema_exports120, {
|
|
6017
6019
|
createBody: () => createBody67,
|
|
6018
|
-
idParam: () => idParam2,
|
|
6019
|
-
keyParam: () => keyParam,
|
|
6020
6020
|
updateBody: () => updateBody57
|
|
6021
6021
|
});
|
|
6022
6022
|
import joi121 from "joi";
|
|
@@ -6034,12 +6034,32 @@ var updateBodyKeys55 = {
|
|
|
6034
6034
|
variables: joi121.object().pattern(joi121.string(), joi121.alternatives().try(joi121.string(), joi121.number(), joi121.boolean())).optional()
|
|
6035
6035
|
};
|
|
6036
6036
|
var updateBody57 = joi121.object().keys(updateBodyKeys55).messages(messages);
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
}
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
})
|
|
6037
|
+
|
|
6038
|
+
// src/modules/sms/allowedDevice/interfaces.ts
|
|
6039
|
+
var interfaces_exports65 = {};
|
|
6040
|
+
__export(interfaces_exports65, {
|
|
6041
|
+
Route: () => Route135
|
|
6042
|
+
});
|
|
6043
|
+
var Route135 = "allowed_device";
|
|
6044
|
+
|
|
6045
|
+
// src/modules/sms/allowedDevice/route.schema.ts
|
|
6046
|
+
var route_schema_exports121 = {};
|
|
6047
|
+
__export(route_schema_exports121, {
|
|
6048
|
+
createBody: () => createBody68,
|
|
6049
|
+
updateBody: () => updateBody58
|
|
6050
|
+
});
|
|
6051
|
+
import joi122 from "joi";
|
|
6052
|
+
var createBodyKeys66 = {
|
|
6053
|
+
key: joi122.string().required(),
|
|
6054
|
+
apk_name: joi122.string().required()
|
|
6055
|
+
};
|
|
6056
|
+
var createBody68 = joi122.object().keys(createBodyKeys66).messages(messages);
|
|
6057
|
+
var updateBodyKeys56 = {
|
|
6058
|
+
allow_app: joi122.boolean().required(),
|
|
6059
|
+
allow_sms: joi122.boolean().required(),
|
|
6060
|
+
allow_ticket: joi122.boolean().required()
|
|
6061
|
+
};
|
|
6062
|
+
var updateBody58 = joi122.object().keys(updateBodyKeys56).messages(messages);
|
|
6043
6063
|
|
|
6044
6064
|
// src/index.ts
|
|
6045
6065
|
var index_default = main_exports;
|
package/dist/main.d.ts
CHANGED
|
@@ -258,4 +258,6 @@ import * as CatalogoRoutes from './modules/document/CAT/route.schema';
|
|
|
258
258
|
import * as SmsSender from './modules/sms/smsSender/interfaces';
|
|
259
259
|
import * as SmsTemplate from './modules/sms/smsTemplate/interfaces';
|
|
260
260
|
import * as SmsTemplateRoutes from './modules/sms/smsTemplate/route.schema';
|
|
261
|
-
|
|
261
|
+
import * as AllowedDevice from './modules/sms/allowedDevice/interfaces';
|
|
262
|
+
import * as AllowedDeviceRoutes from './modules/sms/allowedDevice/route.schema';
|
|
263
|
+
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, SmsTemplate, SmsTemplateRoutes, AllowedDevice, AllowedDeviceRoutes, };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AllowedDevice } from '../../../shared/entities/sms';
|
|
2
|
+
import * as IShared from '../../../shared/interface';
|
|
3
|
+
export type Entity = AllowedDevice;
|
|
4
|
+
export declare const Route = "allowed_device";
|
|
5
|
+
export interface IEntity extends Entity {
|
|
6
|
+
}
|
|
7
|
+
export type ICreateRequest = Pick<Entity, 'key' | 'apk_name'>;
|
|
8
|
+
export interface IUpdateRequest {
|
|
9
|
+
allow_app?: boolean;
|
|
10
|
+
allow_sms?: boolean;
|
|
11
|
+
allow_ticket?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface IRepository {
|
|
14
|
+
find(): Promise<IEntity[]>;
|
|
15
|
+
findById(id: string): Promise<IEntity>;
|
|
16
|
+
findByKey(key: string): Promise<IEntity>;
|
|
17
|
+
create(data: ICreateRequest): Promise<string>;
|
|
18
|
+
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
19
|
+
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
22
|
+
export type IApi = IRepository;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SmsSender } from '../../../shared/entities/sms';
|
|
2
|
+
import * as IShared from '../../../shared/interface';
|
|
2
3
|
export type Entity = SmsSender;
|
|
3
4
|
export declare const Route = "sms_sender";
|
|
4
5
|
export declare const ISmsSenderStatsEnum: {
|
|
@@ -34,9 +35,11 @@ export interface IFindResponse {
|
|
|
34
35
|
processed_at?: Date;
|
|
35
36
|
sent_at?: Date;
|
|
36
37
|
}
|
|
37
|
-
export interface
|
|
38
|
+
export interface IRepository {
|
|
38
39
|
claim(): Promise<IClaimResponse[]>;
|
|
39
40
|
result(id: string, data: IResultRequest): Promise<void>;
|
|
40
41
|
findById(id: string): Promise<IFindResponse>;
|
|
41
|
-
|
|
42
|
+
find(): Promise<IFindResponse[]>;
|
|
42
43
|
}
|
|
44
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
45
|
+
export type IApi = IRepository;
|
|
@@ -19,8 +19,8 @@ export interface IUpdateRequest {
|
|
|
19
19
|
}
|
|
20
20
|
export interface IRepository {
|
|
21
21
|
find(): Promise<IEntity[]>;
|
|
22
|
-
findById(id: string): Promise<
|
|
23
|
-
findByKey(key: string): Promise<
|
|
22
|
+
findById(id: string): Promise<IEntity>;
|
|
23
|
+
findByKey(key: string): Promise<IEntity>;
|
|
24
24
|
create(data: ICreateRequest): Promise<string>;
|
|
25
25
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
26
26
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
@@ -29,3 +29,19 @@ export type SmsTemplate = {
|
|
|
29
29
|
created_by: string;
|
|
30
30
|
updated_by: string;
|
|
31
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* Model AllowedDevice
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
export type AllowedDevice = {
|
|
37
|
+
id: string;
|
|
38
|
+
key: string;
|
|
39
|
+
apk_name: string;
|
|
40
|
+
allow_app: boolean;
|
|
41
|
+
allow_sms: boolean;
|
|
42
|
+
allow_ticket: boolean;
|
|
43
|
+
created_at: Date;
|
|
44
|
+
updated_at: Date;
|
|
45
|
+
created_by: string;
|
|
46
|
+
updated_by: string;
|
|
47
|
+
};
|
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.39",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|