@nomalism-com/types 1.3.35 → 1.3.37
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 +41 -21
- package/dist/main.d.ts +2 -1
- package/dist/modules/document/materialEntrance/interfaces.d.ts +3 -0
- package/dist/modules/stock/dashboard/interface.d.ts +2 -1
- package/dist/modules/stock/googleCalendar/interface.d.ts +19 -0
- package/dist/modules/stock/googleCalendar/route.schema.d.ts +3 -0
- package/dist/modules/stock/productGoogleSheets/interface.d.ts +4 -0
- package/dist/modules/supply/documentHeader/interfaces.d.ts +9 -0
- package/dist/modules/supply/documentHeader/route.schema.d.ts +1 -0
- package/dist/modules/ui/portal/interface.d.ts +1 -0
- package/dist/modules/user/password/interfaces.d.ts +8 -1
- package/dist/modules/user/password/route.schema.d.ts +1 -0
- package/dist/modules/user/persona/interface.d.ts +2 -0
- package/dist/modules/user/providers/interface.d.ts +1 -1
- package/dist/modules/user/sessions/interface.d.ts +1 -2
- package/dist/modules/user/storeOperator/interface.d.ts +1 -3
- package/dist/modules/user/users/interface.d.ts +1 -3
- package/dist/shared/entities/stock.d.ts +2 -1
- package/dist/shared/entities/user.d.ts +0 -1
- package/dist/shared/interface.d.ts +0 -1
- package/package.json +7 -7
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,
|
|
@@ -1710,6 +1712,10 @@ var createSiteProposalBody = joi10.object().keys({
|
|
|
1710
1712
|
created_at: joi10.string().isoDate().required(),
|
|
1711
1713
|
updated_at: joi10.string().isoDate().required()
|
|
1712
1714
|
}).messages(messages);
|
|
1715
|
+
var findCountByOwnersIdsKeys = {
|
|
1716
|
+
owner_ids: joi10.array().items(joi10.string().uuid().required()).required()
|
|
1717
|
+
};
|
|
1718
|
+
var findCountByOwnersIds = joi10.object().keys(findCountByOwnersIdsKeys).messages(messages);
|
|
1713
1719
|
|
|
1714
1720
|
// src/modules/supply/documentHeaderHistory/interfaces.ts
|
|
1715
1721
|
var interfaces_exports7 = {};
|
|
@@ -2491,10 +2497,11 @@ var Route27 = "password";
|
|
|
2491
2497
|
var route_schema_exports30 = {};
|
|
2492
2498
|
__export(route_schema_exports30, {
|
|
2493
2499
|
forgotBody: () => forgotBody,
|
|
2500
|
+
forgotWithoutMailBody: () => forgotWithoutMailBody,
|
|
2494
2501
|
resetBody: () => resetBody
|
|
2495
2502
|
});
|
|
2496
2503
|
var forgotBodyKeys = {
|
|
2497
|
-
|
|
2504
|
+
email: joi10.string().email({ tlds: { allow: false } }).required()
|
|
2498
2505
|
};
|
|
2499
2506
|
var forgotBody = joi10.object().keys(forgotBodyKeys).messages(messages);
|
|
2500
2507
|
var resetBodyKeys = {
|
|
@@ -2503,6 +2510,10 @@ var resetBodyKeys = {
|
|
|
2503
2510
|
password_confirmation: joi10.string().valid(joi10.ref("password"))
|
|
2504
2511
|
};
|
|
2505
2512
|
var resetBody = joi10.object().keys(resetBodyKeys).messages(messages);
|
|
2513
|
+
var forgotWithoutMailBodyKeys = {
|
|
2514
|
+
user_id: joi10.string().uuid().required()
|
|
2515
|
+
};
|
|
2516
|
+
var forgotWithoutMailBody = joi10.object().keys(forgotWithoutMailBodyKeys).messages(messages);
|
|
2506
2517
|
|
|
2507
2518
|
// src/modules/supply/payment/interface.ts
|
|
2508
2519
|
var interface_exports14 = {};
|
|
@@ -2991,7 +3002,6 @@ __export(route_schema_exports42, {
|
|
|
2991
3002
|
sessionBody: () => sessionBody
|
|
2992
3003
|
});
|
|
2993
3004
|
var sessionBodyKeys = {
|
|
2994
|
-
account: joi10.string().required(),
|
|
2995
3005
|
password: joi10.string().required()
|
|
2996
3006
|
};
|
|
2997
3007
|
var sessionBody = joi10.object().keys(sessionBodyKeys).messages(messages);
|
|
@@ -3060,7 +3070,6 @@ __export(route_schema_exports44, {
|
|
|
3060
3070
|
var createBodyKeys31 = {
|
|
3061
3071
|
main_persona_name: joi10.string().required(),
|
|
3062
3072
|
main_persona_email: joi10.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
|
|
3063
|
-
user_account: joi10.string().allow(null, "").optional(),
|
|
3064
3073
|
password: joi10.string().required(),
|
|
3065
3074
|
superuser: joi10.boolean().required(),
|
|
3066
3075
|
default_theme: joi10.boolean().required()
|
|
@@ -3069,7 +3078,6 @@ var createBody32 = joi10.object().keys(createBodyKeys31).messages(messages);
|
|
|
3069
3078
|
var updateStoreOperatorQueryKeys = {
|
|
3070
3079
|
main_persona_name: joi10.string().allow(null, "").optional(),
|
|
3071
3080
|
main_persona_email: joi10.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
|
|
3072
|
-
user_account: joi10.string().allow(null, "").optional(),
|
|
3073
3081
|
password: joi10.string().allow(null, "").optional(),
|
|
3074
3082
|
pin: joi10.string().optional(),
|
|
3075
3083
|
inactive: joi10.boolean().optional(),
|
|
@@ -3269,12 +3277,10 @@ __export(route_schema_exports49, {
|
|
|
3269
3277
|
updateBody: () => updateBody32
|
|
3270
3278
|
});
|
|
3271
3279
|
var createBodyKeys36 = {
|
|
3272
|
-
account: joi10.string().allow(null).required(),
|
|
3273
3280
|
password: joi10.string().required()
|
|
3274
3281
|
};
|
|
3275
3282
|
var createBody37 = joi10.object().keys(createBodyKeys36).messages(messages);
|
|
3276
3283
|
var updateBodyKeys32 = {
|
|
3277
|
-
account: joi10.string().optional(),
|
|
3278
3284
|
old_password: joi10.string().optional(),
|
|
3279
3285
|
password: joi10.string().optional()
|
|
3280
3286
|
};
|
|
@@ -4777,6 +4783,7 @@ var entradaDeMaterialStockBodyKeys = {
|
|
|
4777
4783
|
ordered_quantity: joi10.number().positive().allow(0).required(),
|
|
4778
4784
|
document_line_id: joi10.string().uuid().allow(null).required(),
|
|
4779
4785
|
quantity: joi10.number().positive().allow(0).required(),
|
|
4786
|
+
real_quantity: joi10.number().positive().allow(0).required(),
|
|
4780
4787
|
option: joi10.string().valid(...createMaterialEntranceStockOptions, ...createMaterialEntranceStockWithoutOrderOptions).allow(null).required(),
|
|
4781
4788
|
note: joi10.string().allow(null),
|
|
4782
4789
|
printed: joi10.string().allow(null)
|
|
@@ -5789,8 +5796,10 @@ var findPaymentsNotExportedQuery2 = joi10.object().keys({
|
|
|
5789
5796
|
// src/modules/ui/portal/interface.ts
|
|
5790
5797
|
var interface_exports63 = {};
|
|
5791
5798
|
__export(interface_exports63, {
|
|
5792
|
-
IPublicDocumentHeaderNoteType: () => IPublicDocumentHeaderNoteType
|
|
5799
|
+
IPublicDocumentHeaderNoteType: () => IPublicDocumentHeaderNoteType,
|
|
5800
|
+
Route: () => Route107
|
|
5793
5801
|
});
|
|
5802
|
+
var Route107 = "portal";
|
|
5794
5803
|
var IPublicDocumentHeaderNoteType = /* @__PURE__ */ ((IPublicDocumentHeaderNoteType2) => {
|
|
5795
5804
|
IPublicDocumentHeaderNoteType2["Provider"] = "Provider";
|
|
5796
5805
|
IPublicDocumentHeaderNoteType2["Client"] = "Client";
|
|
@@ -5818,10 +5827,10 @@ var updateNoteBody = joi10.object().keys(updateNoteBodyKeys).messages(messages);
|
|
|
5818
5827
|
var interface_exports64 = {};
|
|
5819
5828
|
__export(interface_exports64, {
|
|
5820
5829
|
LowerName: () => LowerName105,
|
|
5821
|
-
Route: () =>
|
|
5830
|
+
Route: () => Route108,
|
|
5822
5831
|
UpperName: () => UpperName105
|
|
5823
5832
|
});
|
|
5824
|
-
var
|
|
5833
|
+
var Route108 = "google_sheet_pool";
|
|
5825
5834
|
var UpperName105 = "GoogleSheetPool";
|
|
5826
5835
|
var LowerName105 = UpperName105[0].toLowerCase() + UpperName105.substring(1);
|
|
5827
5836
|
|
|
@@ -5829,10 +5838,10 @@ var LowerName105 = UpperName105[0].toLowerCase() + UpperName105.substring(1);
|
|
|
5829
5838
|
var interface_exports65 = {};
|
|
5830
5839
|
__export(interface_exports65, {
|
|
5831
5840
|
LowerName: () => LowerName106,
|
|
5832
|
-
Route: () =>
|
|
5841
|
+
Route: () => Route109,
|
|
5833
5842
|
UpperName: () => UpperName106
|
|
5834
5843
|
});
|
|
5835
|
-
var
|
|
5844
|
+
var Route109 = "account_code";
|
|
5836
5845
|
var UpperName106 = "AccountCode";
|
|
5837
5846
|
var LowerName106 = UpperName106[0].toLowerCase() + UpperName106.substring(1);
|
|
5838
5847
|
|
|
@@ -5849,9 +5858,9 @@ var findByCode = joi10.object().keys(findByCodeParams).messages(messages);
|
|
|
5849
5858
|
// src/modules/llm/llm/interfaces.ts
|
|
5850
5859
|
var interfaces_exports57 = {};
|
|
5851
5860
|
__export(interfaces_exports57, {
|
|
5852
|
-
Route: () =>
|
|
5861
|
+
Route: () => Route110
|
|
5853
5862
|
});
|
|
5854
|
-
var
|
|
5863
|
+
var Route110 = "llm";
|
|
5855
5864
|
|
|
5856
5865
|
// src/modules/llm/llm/route.schema.ts
|
|
5857
5866
|
var route_schema_exports111 = {};
|
|
@@ -5878,10 +5887,10 @@ var identifyLanguageSchema = joi10.object({
|
|
|
5878
5887
|
var interfaces_exports58 = {};
|
|
5879
5888
|
__export(interfaces_exports58, {
|
|
5880
5889
|
LowerName: () => LowerName107,
|
|
5881
|
-
Route: () =>
|
|
5890
|
+
Route: () => Route111,
|
|
5882
5891
|
UpperName: () => UpperName107
|
|
5883
5892
|
});
|
|
5884
|
-
var
|
|
5893
|
+
var Route111 = "patch_notes";
|
|
5885
5894
|
var UpperName107 = "PatchNotes";
|
|
5886
5895
|
var LowerName107 = UpperName107[0].toLowerCase() + UpperName107.substring(1);
|
|
5887
5896
|
|
|
@@ -5889,10 +5898,10 @@ var LowerName107 = UpperName107[0].toLowerCase() + UpperName107.substring(1);
|
|
|
5889
5898
|
var interfaces_exports59 = {};
|
|
5890
5899
|
__export(interfaces_exports59, {
|
|
5891
5900
|
LowerName: () => LowerName108,
|
|
5892
|
-
Route: () =>
|
|
5901
|
+
Route: () => Route112,
|
|
5893
5902
|
UpperName: () => UpperName108
|
|
5894
5903
|
});
|
|
5895
|
-
var
|
|
5904
|
+
var Route112 = "documentHeaderSurvey";
|
|
5896
5905
|
var UpperName108 = "DocumentHeaderSurvey";
|
|
5897
5906
|
var LowerName108 = UpperName108[0].toLowerCase() + UpperName108.substring(1);
|
|
5898
5907
|
|
|
@@ -5918,10 +5927,10 @@ var updateSurveyBody = joi10.object().keys(updateSurveyBodyKeys).messages(messag
|
|
|
5918
5927
|
var interface_exports66 = {};
|
|
5919
5928
|
__export(interface_exports66, {
|
|
5920
5929
|
LowerName: () => LowerName109,
|
|
5921
|
-
Route: () =>
|
|
5930
|
+
Route: () => Route113,
|
|
5922
5931
|
UpperName: () => UpperName109
|
|
5923
5932
|
});
|
|
5924
|
-
var
|
|
5933
|
+
var Route113 = "file";
|
|
5925
5934
|
var UpperName109 = "DocumentHeaderSubscriber";
|
|
5926
5935
|
var LowerName109 = UpperName109[0].toLowerCase() + UpperName109.substring(1);
|
|
5927
5936
|
|
|
@@ -5940,13 +5949,24 @@ var createBody64 = joi10.object().keys(createBodyKeys63).messages(messages);
|
|
|
5940
5949
|
var interface_exports67 = {};
|
|
5941
5950
|
__export(interface_exports67, {
|
|
5942
5951
|
LowerName: () => LowerName110,
|
|
5943
|
-
Route: () =>
|
|
5952
|
+
Route: () => Route114,
|
|
5944
5953
|
UpperName: () => UpperName110
|
|
5945
5954
|
});
|
|
5946
|
-
var
|
|
5955
|
+
var Route114 = "google_calendar";
|
|
5947
5956
|
var UpperName110 = "GoogleCalendar";
|
|
5948
5957
|
var LowerName110 = UpperName110[0].toLowerCase() + UpperName110.substring(1);
|
|
5949
5958
|
|
|
5959
|
+
// src/modules/stock/googleCalendar/route.schema.ts
|
|
5960
|
+
var route_schema_exports114 = {};
|
|
5961
|
+
__export(route_schema_exports114, {
|
|
5962
|
+
listEventsInRangeQuery: () => listEventsInRangeQuery
|
|
5963
|
+
});
|
|
5964
|
+
var listEventsInRangeQuery = joi10.object().keys({
|
|
5965
|
+
calendarId: joi10.string().required(),
|
|
5966
|
+
from: joi10.string().required(),
|
|
5967
|
+
to: joi10.string().required()
|
|
5968
|
+
}).messages(messages);
|
|
5969
|
+
|
|
5950
5970
|
// src/index.ts
|
|
5951
5971
|
var index_default = main_exports;
|
|
5952
5972
|
|
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
|
-
|
|
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
|
-
|
|
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
|
}
|
|
@@ -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>;
|
|
@@ -288,6 +288,14 @@ export interface IFindStartDocumentHeaderSiblingsResponse {
|
|
|
288
288
|
next: string | null;
|
|
289
289
|
previous: string | null;
|
|
290
290
|
}
|
|
291
|
+
export interface IFindCountByOwnersIdsRequest {
|
|
292
|
+
owner_ids: string[];
|
|
293
|
+
}
|
|
294
|
+
export interface IFindCountByOwnersIdsResponse {
|
|
295
|
+
owner_id: string;
|
|
296
|
+
open: number;
|
|
297
|
+
closed: number;
|
|
298
|
+
}
|
|
291
299
|
export interface IRepository {
|
|
292
300
|
findOne(selector: IShared.IFindByIdRequest): Promise<IFindOneBase | null>;
|
|
293
301
|
findStartVirtual(selector: IShared.IFindByIdRequest): Promise<IStartDocumentHeaderVirtuals | null>;
|
|
@@ -308,5 +316,6 @@ export interface IRepository {
|
|
|
308
316
|
documentList(selector: IShared.IFindByIdRequest, params: IDocumentListRequest): Promise<IDocumentListResponse[]>;
|
|
309
317
|
findStartDocumentHeaderSiblings(params: IShared.IFindByIdRequest): Promise<IFindStartDocumentHeaderSiblingsResponse>;
|
|
310
318
|
createSiteProposal(data: IShared.IBrokerTopicPayload[typeof IShared.IBrokerTopic.create_site_proposal]): Promise<IProjectInfo.ICreateResponse>;
|
|
319
|
+
findCountByOwnerIds(data: IFindCountByOwnersIdsRequest): Promise<IFindCountByOwnersIdsResponse[]>;
|
|
311
320
|
}
|
|
312
321
|
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
|
-
|
|
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>;
|
|
@@ -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;
|
|
@@ -71,7 +71,7 @@ export interface IUpdateRequest {
|
|
|
71
71
|
export interface IFindByNumberRequest {
|
|
72
72
|
number: number;
|
|
73
73
|
}
|
|
74
|
-
export interface IFindByNumberResponse extends Pick<DocumentHeader, 'owner_id' | 'owner_name' | 'billing_persona_id' | 'billing_persona_name' | 'billing_persona_nif' | 'billing_persona_email' | 'billing_persona_telephone' | 'billing_persona_address_street' | 'billing_persona_address_postal_code' | 'billing_persona_address_locality' | 'billing_persona_address_country_id' | 'billing_persona_address_country_name' | 'reason_for_exemption_id' | 'reason_for_exemption' | 'delivery_persona_id' | 'delivery_persona_name' | 'delivery_persona_email' | 'delivery_persona_telephone' | 'delivery_persona_address_street' | 'delivery_persona_address_postal_code' | 'delivery_persona_address_locality' | 'delivery_persona_address_country_id' | 'delivery_persona_address_country_name' | 'delivery_method_id' | 'delivery_method' | 'vehicle_id' | 'vehicle' | 'payment_method_id' | 'payment_method' | 'maturity_date_id' | 'maturity_date'> {
|
|
74
|
+
export interface IFindByNumberResponse extends Pick<DocumentHeader, 'owner_id' | 'owner_name' | 'billing_persona_id' | 'billing_persona_name' | 'billing_persona_nif' | 'billing_persona_email' | 'billing_persona_telephone' | 'billing_persona_address_street' | 'billing_persona_address_postal_code' | 'billing_persona_address_locality' | 'billing_persona_address_country_id' | 'billing_persona_address_country_name' | 'reason_for_exemption_id' | 'reason_for_exemption' | 'delivery_persona_id' | 'delivery_persona_name' | 'delivery_persona_email' | 'delivery_persona_telephone' | 'delivery_persona_address_street' | 'delivery_persona_address_postal_code' | 'delivery_persona_address_locality' | 'delivery_persona_address_country_id' | 'delivery_persona_address_country_name' | 'delivery_method_id' | 'delivery_method' | 'vehicle_id' | 'vehicle' | 'payment_method_id' | 'payment_method' | 'maturity_date_id' | 'maturity_date' | 'maturity_date_days'> {
|
|
75
75
|
default_discount: number;
|
|
76
76
|
}
|
|
77
77
|
export interface IRepository {
|
|
@@ -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.
|
|
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'
|
|
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
|
|
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';
|
|
@@ -855,6 +855,7 @@ export type ProductVirtuals = {
|
|
|
855
855
|
available: number;
|
|
856
856
|
ordered_quantity: number;
|
|
857
857
|
inativa: boolean;
|
|
858
|
+
expected_delivery_dates: IExpectDeliveryDates[];
|
|
858
859
|
};
|
|
859
860
|
/**
|
|
860
861
|
* Model DocumentLineBaseVirtuals
|
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.
|
|
4
|
+
"version": "1.3.37",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
"prepack": "npm run lint && npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"joi": "^18.1
|
|
26
|
+
"joi": "^18.2.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@swc/core": "^1.15.
|
|
30
|
-
"@types/node": "^24.12.
|
|
31
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
32
|
-
"@typescript-eslint/parser": "^8.
|
|
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",
|
|
36
36
|
"eslint-plugin-prettier": "^5.5.5",
|
|
37
|
-
"prettier": "^3.8.
|
|
37
|
+
"prettier": "^3.8.3",
|
|
38
38
|
"tsup": "^8.5.1"
|
|
39
39
|
},
|
|
40
40
|
"repository": {
|