@nomalism-com/types 0.45.56 → 0.45.58

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
@@ -227,6 +227,8 @@ __export(main_exports, {
227
227
  TicketsLanguage: () => interfaces_exports38,
228
228
  TicketsLanguageRoutes: () => route_schema_exports73,
229
229
  TicketsRoutes: () => route_schema_exports71,
230
+ TimeSheet: () => interfaces_exports61,
231
+ TimeSheetRoutes: () => route_schema_exports118,
230
232
  Transformado: () => interfaces_exports45,
231
233
  TransformadoRoutes: () => route_schema_exports82,
232
234
  TypeOfLocation: () => interface_exports29,
@@ -5800,6 +5802,76 @@ var printLocationsQuery = joi118.object({
5800
5802
  locations_ids: joi118.string().required()
5801
5803
  }).messages(messages);
5802
5804
 
5805
+ // src/modules/user/timeSheet/interfaces.ts
5806
+ var interfaces_exports61 = {};
5807
+ __export(interfaces_exports61, {
5808
+ ClockRoute: () => ClockRoute,
5809
+ DayRoute: () => DayRoute,
5810
+ IClockTypeEnum: () => IClockTypeEnum,
5811
+ IRegistryTypeEnum: () => IRegistryTypeEnum,
5812
+ ITimesheetStateEnum: () => ITimesheetStateEnum,
5813
+ Route: () => Route130,
5814
+ clockTypes: () => clockTypes,
5815
+ registryTypes: () => registryTypes,
5816
+ timesheetStates: () => timesheetStates
5817
+ });
5818
+ var Route130 = "time_sheet";
5819
+ var IClockTypeEnum = {
5820
+ ENTRY: "ENTRY",
5821
+ EXIT: "EXIT"
5822
+ };
5823
+ var clockTypes = Object.keys(IClockTypeEnum);
5824
+ var IRegistryTypeEnum = {
5825
+ AUTOMATIC: "AUTOMATIC",
5826
+ MANUAL: "MANUAL"
5827
+ };
5828
+ var registryTypes = Object.keys(IRegistryTypeEnum);
5829
+ var ITimesheetStateEnum = {
5830
+ CONFIRMED: "CONFIRMED",
5831
+ PENDING: "PENDING",
5832
+ ERROR: "ERROR"
5833
+ };
5834
+ var timesheetStates = Object.keys(ITimesheetStateEnum);
5835
+ var DayRoute = "timesheet-days";
5836
+ var ClockRoute = "timesheet-clocks";
5837
+
5838
+ // src/modules/user/timeSheet/route.schema.ts
5839
+ var route_schema_exports118 = {};
5840
+ __export(route_schema_exports118, {
5841
+ createClockBody: () => createClockBody,
5842
+ createDayBody: () => createDayBody,
5843
+ updateClockBody: () => updateClockBody,
5844
+ updateDayBody: () => updateDayBody
5845
+ });
5846
+ import joi119 from "joi";
5847
+ var createDayBodyKeys = {
5848
+ date: joi119.date().required(),
5849
+ persona_id: joi119.string().uuid().required(),
5850
+ total_worked: joi119.number().integer().min(0),
5851
+ balance: joi119.number().integer(),
5852
+ state: joi119.string().valid(...Object.values(ITimesheetStateEnum))
5853
+ };
5854
+ var createDayBody = joi119.object().keys(createDayBodyKeys).messages(messages);
5855
+ var updateDayBodyKeys = {
5856
+ total_worked: joi119.number().integer().min(0),
5857
+ balance: joi119.number().integer(),
5858
+ state: joi119.string().valid(...Object.values(ITimesheetStateEnum))
5859
+ };
5860
+ var updateDayBody = joi119.object().keys(updateDayBodyKeys).messages(messages);
5861
+ var createClockBodyKeys = {
5862
+ timesheet_day_id: joi119.string().uuid().required(),
5863
+ time: joi119.date(),
5864
+ type: joi119.string().valid(...Object.values(IClockTypeEnum)).required(),
5865
+ registry_type: joi119.string().valid(...Object.values(IRegistryTypeEnum)).required()
5866
+ };
5867
+ var createClockBody = joi119.object().keys(createClockBodyKeys).messages(messages);
5868
+ var updateClockBodyKeys = {
5869
+ time: joi119.date(),
5870
+ type: joi119.string().valid(...Object.values(IClockTypeEnum)),
5871
+ registry_type: joi119.string().valid(...Object.values(IRegistryTypeEnum))
5872
+ };
5873
+ var updateClockBody = joi119.object().keys(updateClockBodyKeys).messages(messages);
5874
+
5803
5875
  // src/index.ts
5804
5876
  var index_default = main_exports;
5805
5877
  export {
package/dist/index.js CHANGED
@@ -227,6 +227,8 @@ __export(main_exports, {
227
227
  TicketsLanguage: () => interfaces_exports38,
228
228
  TicketsLanguageRoutes: () => route_schema_exports73,
229
229
  TicketsRoutes: () => route_schema_exports71,
230
+ TimeSheet: () => interfaces_exports61,
231
+ TimeSheetRoutes: () => route_schema_exports118,
230
232
  Transformado: () => interfaces_exports45,
231
233
  TransformadoRoutes: () => route_schema_exports82,
232
234
  TypeOfLocation: () => interface_exports29,
@@ -5800,6 +5802,76 @@ var printLocationsQuery = joi118.object({
5800
5802
  locations_ids: joi118.string().required()
5801
5803
  }).messages(messages);
5802
5804
 
5805
+ // src/modules/user/timeSheet/interfaces.ts
5806
+ var interfaces_exports61 = {};
5807
+ __export(interfaces_exports61, {
5808
+ ClockRoute: () => ClockRoute,
5809
+ DayRoute: () => DayRoute,
5810
+ IClockTypeEnum: () => IClockTypeEnum,
5811
+ IRegistryTypeEnum: () => IRegistryTypeEnum,
5812
+ ITimesheetStateEnum: () => ITimesheetStateEnum,
5813
+ Route: () => Route130,
5814
+ clockTypes: () => clockTypes,
5815
+ registryTypes: () => registryTypes,
5816
+ timesheetStates: () => timesheetStates
5817
+ });
5818
+ var Route130 = "time_sheet";
5819
+ var IClockTypeEnum = {
5820
+ ENTRY: "ENTRY",
5821
+ EXIT: "EXIT"
5822
+ };
5823
+ var clockTypes = Object.keys(IClockTypeEnum);
5824
+ var IRegistryTypeEnum = {
5825
+ AUTOMATIC: "AUTOMATIC",
5826
+ MANUAL: "MANUAL"
5827
+ };
5828
+ var registryTypes = Object.keys(IRegistryTypeEnum);
5829
+ var ITimesheetStateEnum = {
5830
+ CONFIRMED: "CONFIRMED",
5831
+ PENDING: "PENDING",
5832
+ ERROR: "ERROR"
5833
+ };
5834
+ var timesheetStates = Object.keys(ITimesheetStateEnum);
5835
+ var DayRoute = "timesheet-days";
5836
+ var ClockRoute = "timesheet-clocks";
5837
+
5838
+ // src/modules/user/timeSheet/route.schema.ts
5839
+ var route_schema_exports118 = {};
5840
+ __export(route_schema_exports118, {
5841
+ createClockBody: () => createClockBody,
5842
+ createDayBody: () => createDayBody,
5843
+ updateClockBody: () => updateClockBody,
5844
+ updateDayBody: () => updateDayBody
5845
+ });
5846
+ import joi119 from "joi";
5847
+ var createDayBodyKeys = {
5848
+ date: joi119.date().required(),
5849
+ persona_id: joi119.string().uuid().required(),
5850
+ total_worked: joi119.number().integer().min(0),
5851
+ balance: joi119.number().integer(),
5852
+ state: joi119.string().valid(...Object.values(ITimesheetStateEnum))
5853
+ };
5854
+ var createDayBody = joi119.object().keys(createDayBodyKeys).messages(messages);
5855
+ var updateDayBodyKeys = {
5856
+ total_worked: joi119.number().integer().min(0),
5857
+ balance: joi119.number().integer(),
5858
+ state: joi119.string().valid(...Object.values(ITimesheetStateEnum))
5859
+ };
5860
+ var updateDayBody = joi119.object().keys(updateDayBodyKeys).messages(messages);
5861
+ var createClockBodyKeys = {
5862
+ timesheet_day_id: joi119.string().uuid().required(),
5863
+ time: joi119.date(),
5864
+ type: joi119.string().valid(...Object.values(IClockTypeEnum)).required(),
5865
+ registry_type: joi119.string().valid(...Object.values(IRegistryTypeEnum)).required()
5866
+ };
5867
+ var createClockBody = joi119.object().keys(createClockBodyKeys).messages(messages);
5868
+ var updateClockBodyKeys = {
5869
+ time: joi119.date(),
5870
+ type: joi119.string().valid(...Object.values(IClockTypeEnum)),
5871
+ registry_type: joi119.string().valid(...Object.values(IRegistryTypeEnum))
5872
+ };
5873
+ var updateClockBody = joi119.object().keys(updateClockBodyKeys).messages(messages);
5874
+
5803
5875
  // src/index.ts
5804
5876
  var index_default = main_exports;
5805
5877
  export {
package/dist/main.d.ts CHANGED
@@ -251,4 +251,6 @@ import * as WebSocket from './modules/view/webSocket/interfaces';
251
251
  import * as ProductLocation from './modules/stock/productLocation/interface';
252
252
  import * as MobilePrint from './modules/stock/mobilePrint/interface';
253
253
  import * as MobilePrintRoutes from './modules/stock/mobilePrint/route.schema';
254
- 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, };
254
+ import * as TimeSheet from './modules/user/timeSheet/interfaces';
255
+ import * as TimeSheetRoutes from './modules/user/timeSheet/route.schema';
256
+ 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, };
@@ -1,5 +1,6 @@
1
1
  import * as IShared from '../../../shared/interface';
2
2
  import { TimeSheetDay, TimeSheetClock } from '../../../shared/entities/user';
3
+ export declare const Route = "time_sheet";
3
4
  export declare const IClockTypeEnum: {
4
5
  ENTRY: 'ENTRY';
5
6
  EXIT: 'EXIT';
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.56",
4
+ "version": "0.45.58",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",