@nomalism-com/types 1.3.36 → 1.3.38

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.js CHANGED
@@ -80,6 +80,7 @@ __export(main_exports, {
80
80
  FileRoutes: () => route_schema_exports22,
81
81
  Gmails: () => interface_exports58,
82
82
  GoogleCalendar: () => interface_exports67,
83
+ GoogleCalendarRoutes: () => route_schema_exports114,
83
84
  GoogleFilePermission: () => interfaces_exports34,
84
85
  GoogleFilePermissionRoutes: () => route_schema_exports68,
85
86
  GoogleSheetPool: () => interface_exports64,
@@ -1358,6 +1359,7 @@ __export(route_schema_exports9, {
1358
1359
  documentLineQuery: () => documentLineQuery,
1359
1360
  documentPdfQuery: () => documentPdfQuery,
1360
1361
  findByTypeQuery: () => findByTypeQuery,
1362
+ findCountByOwnersIds: () => findCountByOwnersIds,
1361
1363
  findQuery: () => findQuery6,
1362
1364
  sendClientNotificationBody: () => sendClientNotificationBody,
1363
1365
  transferClientOwnershipBody: () => transferClientOwnershipBody,
@@ -1629,7 +1631,8 @@ var updateBodyKeys8 = {
1629
1631
  confirmed_date: joi10.date().optional(),
1630
1632
  who_handles: joi10.string().allow(null).optional(),
1631
1633
  warning: joi10.string().optional().valid(...Object.values(IWarningType)),
1632
- created_by: joi10.string().uuid().allow(null).optional()
1634
+ created_by: joi10.string().uuid().allow(null).optional(),
1635
+ seller: joi10.string().uuid().allow(null).optional()
1633
1636
  };
1634
1637
  var updateBody8 = joi10.object().keys(updateBodyKeys8).and("reason_for_exemption_id", "reason_for_exemption").and("persona_id", "contact_name", "email", "phone_number").and(
1635
1638
  "delivery_country_name",
@@ -1710,6 +1713,10 @@ var createSiteProposalBody = joi10.object().keys({
1710
1713
  created_at: joi10.string().isoDate().required(),
1711
1714
  updated_at: joi10.string().isoDate().required()
1712
1715
  }).messages(messages);
1716
+ var findCountByOwnersIdsKeys = {
1717
+ owner_ids: joi10.array().items(joi10.string().uuid().required()).required()
1718
+ };
1719
+ var findCountByOwnersIds = joi10.object().keys(findCountByOwnersIdsKeys).messages(messages);
1713
1720
 
1714
1721
  // src/modules/supply/documentHeaderHistory/interfaces.ts
1715
1722
  var interfaces_exports7 = {};
@@ -2491,10 +2498,11 @@ var Route27 = "password";
2491
2498
  var route_schema_exports30 = {};
2492
2499
  __export(route_schema_exports30, {
2493
2500
  forgotBody: () => forgotBody,
2501
+ forgotWithoutMailBody: () => forgotWithoutMailBody,
2494
2502
  resetBody: () => resetBody
2495
2503
  });
2496
2504
  var forgotBodyKeys = {
2497
- account: joi10.string().email({ tlds: { allow: false } }).required()
2505
+ email: joi10.string().email({ tlds: { allow: false } }).required()
2498
2506
  };
2499
2507
  var forgotBody = joi10.object().keys(forgotBodyKeys).messages(messages);
2500
2508
  var resetBodyKeys = {
@@ -2503,6 +2511,10 @@ var resetBodyKeys = {
2503
2511
  password_confirmation: joi10.string().valid(joi10.ref("password"))
2504
2512
  };
2505
2513
  var resetBody = joi10.object().keys(resetBodyKeys).messages(messages);
2514
+ var forgotWithoutMailBodyKeys = {
2515
+ user_id: joi10.string().uuid().required()
2516
+ };
2517
+ var forgotWithoutMailBody = joi10.object().keys(forgotWithoutMailBodyKeys).messages(messages);
2506
2518
 
2507
2519
  // src/modules/supply/payment/interface.ts
2508
2520
  var interface_exports14 = {};
@@ -2991,7 +3003,6 @@ __export(route_schema_exports42, {
2991
3003
  sessionBody: () => sessionBody
2992
3004
  });
2993
3005
  var sessionBodyKeys = {
2994
- account: joi10.string().required(),
2995
3006
  password: joi10.string().required()
2996
3007
  };
2997
3008
  var sessionBody = joi10.object().keys(sessionBodyKeys).messages(messages);
@@ -3060,7 +3071,6 @@ __export(route_schema_exports44, {
3060
3071
  var createBodyKeys31 = {
3061
3072
  main_persona_name: joi10.string().required(),
3062
3073
  main_persona_email: joi10.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
3063
- user_account: joi10.string().allow(null, "").optional(),
3064
3074
  password: joi10.string().required(),
3065
3075
  superuser: joi10.boolean().required(),
3066
3076
  default_theme: joi10.boolean().required()
@@ -3069,7 +3079,6 @@ var createBody32 = joi10.object().keys(createBodyKeys31).messages(messages);
3069
3079
  var updateStoreOperatorQueryKeys = {
3070
3080
  main_persona_name: joi10.string().allow(null, "").optional(),
3071
3081
  main_persona_email: joi10.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
3072
- user_account: joi10.string().allow(null, "").optional(),
3073
3082
  password: joi10.string().allow(null, "").optional(),
3074
3083
  pin: joi10.string().optional(),
3075
3084
  inactive: joi10.boolean().optional(),
@@ -3269,12 +3278,10 @@ __export(route_schema_exports49, {
3269
3278
  updateBody: () => updateBody32
3270
3279
  });
3271
3280
  var createBodyKeys36 = {
3272
- account: joi10.string().allow(null).required(),
3273
3281
  password: joi10.string().required()
3274
3282
  };
3275
3283
  var createBody37 = joi10.object().keys(createBodyKeys36).messages(messages);
3276
3284
  var updateBodyKeys32 = {
3277
- account: joi10.string().optional(),
3278
3285
  old_password: joi10.string().optional(),
3279
3286
  password: joi10.string().optional()
3280
3287
  };
@@ -4777,6 +4784,7 @@ var entradaDeMaterialStockBodyKeys = {
4777
4784
  ordered_quantity: joi10.number().positive().allow(0).required(),
4778
4785
  document_line_id: joi10.string().uuid().allow(null).required(),
4779
4786
  quantity: joi10.number().positive().allow(0).required(),
4787
+ real_quantity: joi10.number().positive().allow(0).required(),
4780
4788
  option: joi10.string().valid(...createMaterialEntranceStockOptions, ...createMaterialEntranceStockWithoutOrderOptions).allow(null).required(),
4781
4789
  note: joi10.string().allow(null),
4782
4790
  printed: joi10.string().allow(null)
@@ -5789,8 +5797,10 @@ var findPaymentsNotExportedQuery2 = joi10.object().keys({
5789
5797
  // src/modules/ui/portal/interface.ts
5790
5798
  var interface_exports63 = {};
5791
5799
  __export(interface_exports63, {
5792
- IPublicDocumentHeaderNoteType: () => IPublicDocumentHeaderNoteType
5800
+ IPublicDocumentHeaderNoteType: () => IPublicDocumentHeaderNoteType,
5801
+ Route: () => Route107
5793
5802
  });
5803
+ var Route107 = "portal";
5794
5804
  var IPublicDocumentHeaderNoteType = /* @__PURE__ */ ((IPublicDocumentHeaderNoteType2) => {
5795
5805
  IPublicDocumentHeaderNoteType2["Provider"] = "Provider";
5796
5806
  IPublicDocumentHeaderNoteType2["Client"] = "Client";
@@ -5818,10 +5828,10 @@ var updateNoteBody = joi10.object().keys(updateNoteBodyKeys).messages(messages);
5818
5828
  var interface_exports64 = {};
5819
5829
  __export(interface_exports64, {
5820
5830
  LowerName: () => LowerName105,
5821
- Route: () => Route107,
5831
+ Route: () => Route108,
5822
5832
  UpperName: () => UpperName105
5823
5833
  });
5824
- var Route107 = "google_sheet_pool";
5834
+ var Route108 = "google_sheet_pool";
5825
5835
  var UpperName105 = "GoogleSheetPool";
5826
5836
  var LowerName105 = UpperName105[0].toLowerCase() + UpperName105.substring(1);
5827
5837
 
@@ -5829,10 +5839,10 @@ var LowerName105 = UpperName105[0].toLowerCase() + UpperName105.substring(1);
5829
5839
  var interface_exports65 = {};
5830
5840
  __export(interface_exports65, {
5831
5841
  LowerName: () => LowerName106,
5832
- Route: () => Route108,
5842
+ Route: () => Route109,
5833
5843
  UpperName: () => UpperName106
5834
5844
  });
5835
- var Route108 = "account_code";
5845
+ var Route109 = "account_code";
5836
5846
  var UpperName106 = "AccountCode";
5837
5847
  var LowerName106 = UpperName106[0].toLowerCase() + UpperName106.substring(1);
5838
5848
 
@@ -5849,9 +5859,9 @@ var findByCode = joi10.object().keys(findByCodeParams).messages(messages);
5849
5859
  // src/modules/llm/llm/interfaces.ts
5850
5860
  var interfaces_exports57 = {};
5851
5861
  __export(interfaces_exports57, {
5852
- Route: () => Route109
5862
+ Route: () => Route110
5853
5863
  });
5854
- var Route109 = "llm";
5864
+ var Route110 = "llm";
5855
5865
 
5856
5866
  // src/modules/llm/llm/route.schema.ts
5857
5867
  var route_schema_exports111 = {};
@@ -5878,10 +5888,10 @@ var identifyLanguageSchema = joi10.object({
5878
5888
  var interfaces_exports58 = {};
5879
5889
  __export(interfaces_exports58, {
5880
5890
  LowerName: () => LowerName107,
5881
- Route: () => Route110,
5891
+ Route: () => Route111,
5882
5892
  UpperName: () => UpperName107
5883
5893
  });
5884
- var Route110 = "patch_notes";
5894
+ var Route111 = "patch_notes";
5885
5895
  var UpperName107 = "PatchNotes";
5886
5896
  var LowerName107 = UpperName107[0].toLowerCase() + UpperName107.substring(1);
5887
5897
 
@@ -5889,10 +5899,10 @@ var LowerName107 = UpperName107[0].toLowerCase() + UpperName107.substring(1);
5889
5899
  var interfaces_exports59 = {};
5890
5900
  __export(interfaces_exports59, {
5891
5901
  LowerName: () => LowerName108,
5892
- Route: () => Route111,
5902
+ Route: () => Route112,
5893
5903
  UpperName: () => UpperName108
5894
5904
  });
5895
- var Route111 = "documentHeaderSurvey";
5905
+ var Route112 = "documentHeaderSurvey";
5896
5906
  var UpperName108 = "DocumentHeaderSurvey";
5897
5907
  var LowerName108 = UpperName108[0].toLowerCase() + UpperName108.substring(1);
5898
5908
 
@@ -5918,10 +5928,10 @@ var updateSurveyBody = joi10.object().keys(updateSurveyBodyKeys).messages(messag
5918
5928
  var interface_exports66 = {};
5919
5929
  __export(interface_exports66, {
5920
5930
  LowerName: () => LowerName109,
5921
- Route: () => Route112,
5931
+ Route: () => Route113,
5922
5932
  UpperName: () => UpperName109
5923
5933
  });
5924
- var Route112 = "file";
5934
+ var Route113 = "file";
5925
5935
  var UpperName109 = "DocumentHeaderSubscriber";
5926
5936
  var LowerName109 = UpperName109[0].toLowerCase() + UpperName109.substring(1);
5927
5937
 
@@ -5940,13 +5950,24 @@ var createBody64 = joi10.object().keys(createBodyKeys63).messages(messages);
5940
5950
  var interface_exports67 = {};
5941
5951
  __export(interface_exports67, {
5942
5952
  LowerName: () => LowerName110,
5943
- Route: () => Route113,
5953
+ Route: () => Route114,
5944
5954
  UpperName: () => UpperName110
5945
5955
  });
5946
- var Route113 = "google_calendar";
5956
+ var Route114 = "google_calendar";
5947
5957
  var UpperName110 = "GoogleCalendar";
5948
5958
  var LowerName110 = UpperName110[0].toLowerCase() + UpperName110.substring(1);
5949
5959
 
5960
+ // src/modules/stock/googleCalendar/route.schema.ts
5961
+ var route_schema_exports114 = {};
5962
+ __export(route_schema_exports114, {
5963
+ listEventsInRangeQuery: () => listEventsInRangeQuery
5964
+ });
5965
+ var listEventsInRangeQuery = joi10.object().keys({
5966
+ calendarId: joi10.string().required(),
5967
+ from: joi10.string().required(),
5968
+ to: joi10.string().required()
5969
+ }).messages(messages);
5970
+
5950
5971
  // src/index.ts
5951
5972
  var index_default = main_exports;
5952
5973
 
package/dist/main.d.ts CHANGED
@@ -242,4 +242,5 @@ import * as DocumentHeaderSurveyRoutes from './modules/supply/documentHeaderSurv
242
242
  import * as DocumentHeaderSubscriber from './modules/supply/documentHeaderSubscriber/interface';
243
243
  import * as DocumentHeaderSubscriberRoutes from './modules/supply/documentHeaderSubscriber/route.schema';
244
244
  import * as GoogleCalendar from './modules/stock/googleCalendar/interface';
245
- 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, 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, 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, };
245
+ import * as GoogleCalendarRoutes from './modules/stock/googleCalendar/route.schema';
246
+ 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, 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, 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, };
@@ -1,6 +1,7 @@
1
1
  import type { DocumentHeader, DocumentLineNote } from '../../../shared/entities/stock';
2
2
  import * as IShared from '../../../shared/interface';
3
3
  import { type IProductType } from '../../stock/productGoogleSheets/interface';
4
+ import type { ISavedEmPickingData } from '../../stock/savedEmPicking/interfaces';
4
5
  export declare const Route = "material_entrance";
5
6
  export declare const UpperName = "MaterialEntrance";
6
7
  export declare const LowerName: string;
@@ -51,6 +52,7 @@ export interface IGetMaterialEntranceInfoStock {
51
52
  export interface IEntradaDeMaterialStock extends IGetMaterialEntranceInfoStock {
52
53
  document_line_id: string | null;
53
54
  quantity: number;
55
+ real_quantity: number;
54
56
  option: ICreateMaterialEntranceStockOption | ICreateMaterialEntranceStockWithoutOrderOption | null;
55
57
  note: string | null;
56
58
  printed: string | null;
@@ -127,6 +129,7 @@ interface IRepository {
127
129
  undoEntradaMaterial(data: IUndoEntradaDeMaterialRequest): Promise<void>;
128
130
  findUnfinishedPickings(selector: IShared.IFindByIdRequest): Promise<IUnfinishedPickingsResponse[]>;
129
131
  findMaterialEntranceProviders(): Promise<IShared.IFindMinifiedResponse[]>;
132
+ findDoneById(params: IShared.IFindByIdRequest): Promise<ISavedEmPickingData | null>;
130
133
  }
131
134
  export type IApi = Omit<IRepository, 'finalizarEntradaMaterial'> & {
132
135
  finalizarEntradaMaterial(data: IFinalizarEntradaDeMaterialRequest): Promise<IFinalizarEntradaDeMaterialResponse>;
@@ -4,7 +4,8 @@ export declare const LowerName: string;
4
4
  export type IDashboardSalesNames = 'dia' | 'mes' | 'ano';
5
5
  export interface IDashboardSalesRowValue {
6
6
  sheets: number;
7
- outros: number;
7
+ stock: number;
8
+ encomenda: number;
8
9
  }
9
10
  export interface IDashboardSalesRow {
10
11
  chave: number;
@@ -3,6 +3,25 @@ export type Entity = GoogleCalendar;
3
3
  export declare const Route = "google_calendar";
4
4
  export declare const UpperName = "GoogleCalendar";
5
5
  export declare const LowerName: string;
6
+ export interface IListEventsInRangeRequest {
7
+ calendarId: string;
8
+ from: string;
9
+ to: string;
10
+ }
11
+ export interface IListEventsInRangeResponse {
12
+ id: string;
13
+ title: string;
14
+ start: string;
15
+ end?: string;
16
+ allDay: boolean;
17
+ url?: string;
18
+ extendedProps: {
19
+ description: string | null;
20
+ location: string | null;
21
+ colorId: string | null;
22
+ };
23
+ }
6
24
  export interface IRepository {
7
25
  find(): Promise<Entity[]>;
26
+ listEventsInRange(params: IListEventsInRangeRequest): Promise<IListEventsInRangeResponse[]>;
8
27
  }
@@ -0,0 +1,3 @@
1
+ import joi from 'joi';
2
+ import { IListEventsInRangeRequest } from './interface';
3
+ export declare const listEventsInRangeQuery: joi.ObjectSchema<IListEventsInRangeRequest>;
@@ -220,6 +220,10 @@ export interface IProductByOwner {
220
220
  id: string;
221
221
  reference: string;
222
222
  }
223
+ export interface IExpectDeliveryDates {
224
+ quantity: number;
225
+ date: string | null;
226
+ }
223
227
  export interface IRepository {
224
228
  basicSearch(params: IBasicSearchRequest): Promise<IShared.IPaginationResponse<IBasicSearchResponse>>;
225
229
  findReferenceAndIdForMobile(params: IFindForMobileRequest): Promise<IFindReferenceAndIdForMobileResponse | null>;
@@ -186,6 +186,7 @@ export interface IUpdateRequest {
186
186
  created_by?: string;
187
187
  confirmed?: boolean;
188
188
  confirmed_date?: Date;
189
+ seller?: string | null;
189
190
  }
190
191
  export type IGetActionsDocumentType = Pick<DocumentType, 'user_type' | 'allow_create_from_header_without_lines' | 'pay' | 'credit' | 'debit' | 'invoice' | 'code' | 'return' | 'id' | 'description'>;
191
192
  export interface IGetActionsResponse {
@@ -288,6 +289,14 @@ export interface IFindStartDocumentHeaderSiblingsResponse {
288
289
  next: string | null;
289
290
  previous: string | null;
290
291
  }
292
+ export interface IFindCountByOwnersIdsRequest {
293
+ owner_ids: string[];
294
+ }
295
+ export interface IFindCountByOwnersIdsResponse {
296
+ owner_id: string;
297
+ open: number;
298
+ closed: number;
299
+ }
291
300
  export interface IRepository {
292
301
  findOne(selector: IShared.IFindByIdRequest): Promise<IFindOneBase | null>;
293
302
  findStartVirtual(selector: IShared.IFindByIdRequest): Promise<IStartDocumentHeaderVirtuals | null>;
@@ -308,5 +317,6 @@ export interface IRepository {
308
317
  documentList(selector: IShared.IFindByIdRequest, params: IDocumentListRequest): Promise<IDocumentListResponse[]>;
309
318
  findStartDocumentHeaderSiblings(params: IShared.IFindByIdRequest): Promise<IFindStartDocumentHeaderSiblingsResponse>;
310
319
  createSiteProposal(data: IShared.IBrokerTopicPayload[typeof IShared.IBrokerTopic.create_site_proposal]): Promise<IProjectInfo.ICreateResponse>;
320
+ findCountByOwnerIds(data: IFindCountByOwnersIdsRequest): Promise<IFindCountByOwnersIdsResponse[]>;
311
321
  }
312
322
  export type IController = IShared.IEntityWithUserToken<IRepository>;
@@ -13,3 +13,4 @@ export declare const findByTypeQuery: joi.ObjectSchema<any>;
13
13
  export declare const documentPdfQuery: joi.ObjectSchema<any>;
14
14
  export declare const documentLineQuery: joi.ObjectSchema<IShared.IRouteRequest<IDocumentListRequest>>;
15
15
  export declare const createSiteProposalBody: joi.ObjectSchema<import("../../../shared/entities/integration").ProjectInfo>;
16
+ export declare const findCountByOwnersIds: joi.ObjectSchema<any>;
@@ -2,6 +2,7 @@ import * as IShared from '../../../shared/interface';
2
2
  import type { IChatBalloon } from '../../stock/chat/interfaces';
3
3
  import type { IDocumentTypeUserType } from '../../supply/documentType/interfaces';
4
4
  import type * as ChatSubscriber from '../../user/chatSubscribers/interfaces';
5
+ export declare const Route = "portal";
5
6
  export interface ITags {
6
7
  id: string;
7
8
  text: string;
@@ -1,15 +1,22 @@
1
1
  import * as IShared from '../../../shared/interface';
2
2
  export declare const Route = "password";
3
3
  export interface IForgotPassword {
4
- account: string;
4
+ email: string;
5
+ }
6
+ export interface IForgotPasswordWithoutMailRequest {
7
+ user_id: string;
5
8
  }
6
9
  export interface IResetPassword {
7
10
  token: string;
8
11
  password: string;
9
12
  password_confirmation: string;
10
13
  }
14
+ export interface IForgotPasswordWithoutMailResponse {
15
+ recover_url: string;
16
+ }
11
17
  export interface IRepository {
12
18
  resetPassword(params: IResetPassword): Promise<void>;
13
19
  forgotPassword(params: IForgotPassword): Promise<void>;
20
+ forgotPasswordWhithoutMail(params: IForgotPasswordWithoutMailRequest): Promise<IForgotPasswordWithoutMailResponse>;
14
21
  }
15
22
  export type IController = IShared.IEntityWithUserToken<IRepository>;
@@ -1,3 +1,4 @@
1
1
  import joi from 'joi';
2
2
  export declare const forgotBody: joi.ObjectSchema<any>;
3
3
  export declare const resetBody: joi.ObjectSchema<any>;
4
+ export declare const forgotWithoutMailBody: joi.ObjectSchema<any>;
@@ -105,6 +105,8 @@ export interface IFindClientOrProviderRequest {
105
105
  export interface IFindClientOrProviderResponse {
106
106
  client_id: string | null;
107
107
  provider_id: string | null;
108
+ client_number: number | null;
109
+ provider_number: number | null;
108
110
  nif: string | null;
109
111
  name: string | null;
110
112
  email: string | null;
@@ -1,10 +1,9 @@
1
1
  import * as Users from '../users/interface';
2
2
  export interface ICreateRequest {
3
- account: string;
4
3
  password: string;
5
4
  }
6
5
  export interface ICreateResponse {
7
- user: Users.IFindByAccountResponse;
6
+ user: Users.IFindByEmailResponse;
8
7
  access_token: string;
9
8
  refresh_token: string;
10
9
  expiresInToken: number;
@@ -6,13 +6,12 @@ export declare const UpperName = "StoreOperator";
6
6
  export declare const LowerName: string;
7
7
  export type IFindPaginatedRequest = IShared.IPaginationRequest & Pick<Entity, 'inactive'>;
8
8
  export interface IFindResponse extends Pick<Entity, 'id' | 'number' | 'pin' | 'inactive' | 'superuser' | 'default_theme'> {
9
- user: Pick<Users, 'id' | 'account'>;
9
+ user: Pick<Users, 'id'>;
10
10
  main_persona: Pick<Persona, 'id' | 'name' | 'email'>;
11
11
  }
12
12
  export interface ICreateRequest {
13
13
  main_persona_name: string;
14
14
  main_persona_email: string | null;
15
- user_account: string | null;
16
15
  password: string;
17
16
  superuser: boolean;
18
17
  default_theme: boolean;
@@ -20,7 +19,6 @@ export interface ICreateRequest {
20
19
  export interface IUpdateRequest {
21
20
  main_persona_name?: string | null;
22
21
  main_persona_email?: string | null;
23
- user_account?: string | null;
24
22
  password?: string | null;
25
23
  pin?: string;
26
24
  inactive?: boolean;
@@ -13,7 +13,7 @@ interface IStoreOperator extends Pick<StoreOperator, 'id' | 'location_id' | 'sup
13
13
  main_persona: Pick<Persona, 'name' | 'email'>;
14
14
  theme: Pick<Theme, 'colors'> | null;
15
15
  }
16
- export interface IFindByAccountResponse extends Pick<Entity, 'id' | 'account'> {
16
+ export interface IFindByEmailResponse extends Pick<Entity, 'id'> {
17
17
  store_operator: IStoreOperator;
18
18
  }
19
19
  export interface IFindByIdResponse extends EntityWithoutPassword {
@@ -68,11 +68,9 @@ export interface IFindProvidersWithClientIdRequest {
68
68
  provider_ids: string[];
69
69
  }
70
70
  export interface ICreateRequest {
71
- account: string | null;
72
71
  password: string;
73
72
  }
74
73
  export interface IUpdateRequest {
75
- account?: string | null;
76
74
  old_password?: string;
77
75
  password?: string;
78
76
  }
@@ -1,7 +1,7 @@
1
1
  import { IConflict } from '../../modules/document/propostaSheets/interface';
2
2
  import { IDocumentTypeUserType, IDocumentTypeCodeType } from '../../modules/supply/documentType/interfaces';
3
3
  import { IBatchType } from '../../modules/supply/paymentBatch/interface';
4
- import { IProductType } from '../../modules/stock/productGoogleSheets/interface';
4
+ import { IExpectDeliveryDates, IProductType } from '../../modules/stock/productGoogleSheets/interface';
5
5
  import { IImageType } from '../../modules/stock/productImage/interface';
6
6
  import { ITagType } from '../../modules/stock/tag/interface';
7
7
  import { IQueryParameterDatatype } from '../../modules/stock/queryParameter/interfaces';
@@ -341,6 +341,7 @@ export type DocumentHeader = {
341
341
  document_name: string;
342
342
  external_document_name: string | null;
343
343
  qrcode: string | null;
344
+ seller: string | null;
344
345
  created_at: Date;
345
346
  updated_at: Date;
346
347
  created_by: string;
@@ -855,6 +856,7 @@ export type ProductVirtuals = {
855
856
  available: number;
856
857
  ordered_quantity: number;
857
858
  inativa: boolean;
859
+ expected_delivery_dates: IExpectDeliveryDates[];
858
860
  };
859
861
  /**
860
862
  * Model DocumentLineBaseVirtuals
@@ -6,7 +6,6 @@ import type { IReasonForExemptionType } from '../../modules/user/reasonForExempt
6
6
  */
7
7
  export type Users = {
8
8
  id: string;
9
- account: string | null;
10
9
  password: string | null;
11
10
  created_at: Date;
12
11
  updated_at: Date;
@@ -192,7 +192,6 @@ export type IBrokerTopicPayload = {
192
192
  token: string;
193
193
  user: {
194
194
  name: string | null;
195
- account: string;
196
195
  email: string;
197
196
  };
198
197
  };
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": "1.3.36",
4
+ "version": "1.3.38",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -23,13 +23,13 @@
23
23
  "prepack": "npm run lint && npm run build"
24
24
  },
25
25
  "dependencies": {
26
- "joi": "^18.1.2"
26
+ "joi": "^18.2.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@swc/core": "^1.15.26",
30
- "@types/node": "^24.12.2",
31
- "@typescript-eslint/eslint-plugin": "^8.58.2",
32
- "@typescript-eslint/parser": "^8.58.2",
29
+ "@swc/core": "^1.15.33",
30
+ "@types/node": "^24.12.4",
31
+ "@typescript-eslint/eslint-plugin": "^8.59.3",
32
+ "@typescript-eslint/parser": "^8.59.3",
33
33
  "eslint": "^9.39.4",
34
34
  "eslint-config-prettier": "^10.1.8",
35
35
  "eslint-import-resolver-typescript": "^4.4.4",