@nomalism-com/types 0.39.11 → 0.39.13
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 +12 -3
- package/dist/index.js +12 -3
- package/dist/main.d.ts +2 -1
- package/dist/modules/document/billOfLading/interfaces.d.ts +1 -1
- package/dist/modules/document/proforma/interfaces.d.ts +1 -1
- package/dist/modules/stock/gmails/interface.d.ts +1 -2
- package/dist/modules/stock/gmails/route.schema.d.ts +2 -0
- package/dist/modules/stock/prison/interface.d.ts +1 -4
- package/dist/modules/supply/documentHeader/interfaces.d.ts +1 -1
- package/dist/shared/entities/stock.d.ts +0 -49
- package/dist/shared/interface.d.ts +0 -26
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -69,6 +69,7 @@ __export(main_exports, {
|
|
|
69
69
|
File: () => interface_exports10,
|
|
70
70
|
FileRoutes: () => route_schema_exports23,
|
|
71
71
|
Gmails: () => interface_exports60,
|
|
72
|
+
GmailsRoutes: () => route_schema_exports109,
|
|
72
73
|
GoogleFilePermission: () => interfaces_exports33,
|
|
73
74
|
GoogleFilePermissionRoutes: () => route_schema_exports72,
|
|
74
75
|
GoogleSheets: () => interfaces_exports17,
|
|
@@ -441,8 +442,6 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
|
|
|
441
442
|
IBrokerTopic2["create"] = "create";
|
|
442
443
|
IBrokerTopic2["update"] = "update";
|
|
443
444
|
IBrokerTopic2["delete"] = "delete";
|
|
444
|
-
IBrokerTopic2["moloni_create_document"] = "moloni_create_document";
|
|
445
|
-
IBrokerTopic2["moloni_backup_pdf"] = "moloni_backup_pdf";
|
|
446
445
|
IBrokerTopic2["tickets_change"] = "tickets_change";
|
|
447
446
|
IBrokerTopic2["user_send_email_password"] = "user_send_email_password";
|
|
448
447
|
IBrokerTopic2["user_send_email_document"] = "user_send_email_document";
|
|
@@ -462,7 +461,6 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
|
|
|
462
461
|
IBrokerTopic2["dispatch_chat_message"] = "dispatch_chat_message";
|
|
463
462
|
IBrokerTopic2["perform_task"] = "perform_task";
|
|
464
463
|
IBrokerTopic2["create_site_proposal"] = "create_site_proposal";
|
|
465
|
-
IBrokerTopic2["task_done"] = "task_done";
|
|
466
464
|
IBrokerTopic2["push_notification"] = "push_notification";
|
|
467
465
|
IBrokerTopic2["error_log"] = "error_log";
|
|
468
466
|
IBrokerTopic2["kafka_log"] = "kafka_log";
|
|
@@ -5763,6 +5761,17 @@ var Route104 = "gmails";
|
|
|
5763
5761
|
var UpperName103 = "Gmails";
|
|
5764
5762
|
var LowerName103 = UpperName103[0].toLowerCase() + UpperName103.substring(1);
|
|
5765
5763
|
|
|
5764
|
+
// src/modules/stock/gmails/route.schema.ts
|
|
5765
|
+
var route_schema_exports109 = {};
|
|
5766
|
+
__export(route_schema_exports109, {
|
|
5767
|
+
editPreviewChatMessageRequest: () => editPreviewChatMessageRequest
|
|
5768
|
+
});
|
|
5769
|
+
import joi110 from "joi";
|
|
5770
|
+
var editPreviewChatMessageRequestBody = {
|
|
5771
|
+
text_to_chat: joi110.string().required()
|
|
5772
|
+
};
|
|
5773
|
+
var editPreviewChatMessageRequest = joi110.object().keys(editPreviewChatMessageRequestBody).messages(messages);
|
|
5774
|
+
|
|
5766
5775
|
// src/index.ts
|
|
5767
5776
|
var index_default = main_exports;
|
|
5768
5777
|
export {
|
package/dist/index.js
CHANGED
|
@@ -69,6 +69,7 @@ __export(main_exports, {
|
|
|
69
69
|
File: () => interface_exports10,
|
|
70
70
|
FileRoutes: () => route_schema_exports23,
|
|
71
71
|
Gmails: () => interface_exports60,
|
|
72
|
+
GmailsRoutes: () => route_schema_exports109,
|
|
72
73
|
GoogleFilePermission: () => interfaces_exports33,
|
|
73
74
|
GoogleFilePermissionRoutes: () => route_schema_exports72,
|
|
74
75
|
GoogleSheets: () => interfaces_exports17,
|
|
@@ -441,8 +442,6 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
|
|
|
441
442
|
IBrokerTopic2["create"] = "create";
|
|
442
443
|
IBrokerTopic2["update"] = "update";
|
|
443
444
|
IBrokerTopic2["delete"] = "delete";
|
|
444
|
-
IBrokerTopic2["moloni_create_document"] = "moloni_create_document";
|
|
445
|
-
IBrokerTopic2["moloni_backup_pdf"] = "moloni_backup_pdf";
|
|
446
445
|
IBrokerTopic2["tickets_change"] = "tickets_change";
|
|
447
446
|
IBrokerTopic2["user_send_email_password"] = "user_send_email_password";
|
|
448
447
|
IBrokerTopic2["user_send_email_document"] = "user_send_email_document";
|
|
@@ -462,7 +461,6 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
|
|
|
462
461
|
IBrokerTopic2["dispatch_chat_message"] = "dispatch_chat_message";
|
|
463
462
|
IBrokerTopic2["perform_task"] = "perform_task";
|
|
464
463
|
IBrokerTopic2["create_site_proposal"] = "create_site_proposal";
|
|
465
|
-
IBrokerTopic2["task_done"] = "task_done";
|
|
466
464
|
IBrokerTopic2["push_notification"] = "push_notification";
|
|
467
465
|
IBrokerTopic2["error_log"] = "error_log";
|
|
468
466
|
IBrokerTopic2["kafka_log"] = "kafka_log";
|
|
@@ -5763,6 +5761,17 @@ var Route104 = "gmails";
|
|
|
5763
5761
|
var UpperName103 = "Gmails";
|
|
5764
5762
|
var LowerName103 = UpperName103[0].toLowerCase() + UpperName103.substring(1);
|
|
5765
5763
|
|
|
5764
|
+
// src/modules/stock/gmails/route.schema.ts
|
|
5765
|
+
var route_schema_exports109 = {};
|
|
5766
|
+
__export(route_schema_exports109, {
|
|
5767
|
+
editPreviewChatMessageRequest: () => editPreviewChatMessageRequest
|
|
5768
|
+
});
|
|
5769
|
+
import joi110 from "joi";
|
|
5770
|
+
var editPreviewChatMessageRequestBody = {
|
|
5771
|
+
text_to_chat: joi110.string().required()
|
|
5772
|
+
};
|
|
5773
|
+
var editPreviewChatMessageRequest = joi110.object().keys(editPreviewChatMessageRequestBody).messages(messages);
|
|
5774
|
+
|
|
5766
5775
|
// src/index.ts
|
|
5767
5776
|
var index_default = main_exports;
|
|
5768
5777
|
export {
|
package/dist/main.d.ts
CHANGED
|
@@ -227,4 +227,5 @@ import * as ChatSubscriberRoutes from './modules/user/chatSubscribers/route.sche
|
|
|
227
227
|
import * as Tag from './modules/stock/tag/interface';
|
|
228
228
|
import * as TagRoutes from './modules/stock/tag/route.schema';
|
|
229
229
|
import * as Gmails from './modules/stock/gmails/interface';
|
|
230
|
-
|
|
230
|
+
import * as GmailsRoutes from './modules/stock/gmails/route.schema';
|
|
231
|
+
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, DocumentLineAssocRoutes, DocumentSet, DocumentSetRoutes, DocumentType, DocumentTypeRoutes, ExternalDocumentType, ExternalDocumentHeader, ExternalDocumentHeaderRoutes, Favorites, FavoritesRoutes, File, FileRoutes, GroupPermissions, GroupPermissionsRoutes, GoogleSheets, GoogleSheetsRoutes, Language, LanguageRoutes, Location, LocationRoutes, MaturityDates, MaturityDatesRoutes, Multimedia, MultimediaRoutes, OrderManagement, Observation, ObservationRoutes, ObservationType, ObservationTypeRoutes, Password, PasswordRoutes, Payment, PaymentRoutes, PaymentMethods, PaymentMethodsRoutes, Permissions, PermissionsRoutes, 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, UserPermissions, UserPermissionsRoutes, 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, GmailsRoutes, };
|
|
@@ -17,6 +17,6 @@ export interface ICreateRequest {
|
|
|
17
17
|
document_line_ids: string[];
|
|
18
18
|
}
|
|
19
19
|
export interface IRepository {
|
|
20
|
-
create(data: ICreateRequest): Promise<
|
|
20
|
+
create(data: ICreateRequest): Promise<void>;
|
|
21
21
|
}
|
|
22
22
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -7,6 +7,6 @@ export interface ICreateRequest {
|
|
|
7
7
|
price_sale: number;
|
|
8
8
|
}
|
|
9
9
|
export interface IRepository {
|
|
10
|
-
create(params: ICreateRequest): Promise<
|
|
10
|
+
create(params: ICreateRequest): Promise<void>;
|
|
11
11
|
}
|
|
12
12
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -50,7 +50,6 @@ export interface IGmailsResponse {
|
|
|
50
50
|
type ChatTypeEnum = readonly ['por_proposta', 'global'];
|
|
51
51
|
type IChatType = ChatTypeEnum[number];
|
|
52
52
|
export interface IEditPreviewChatMessageRequest {
|
|
53
|
-
id: string;
|
|
54
53
|
text_to_chat: string;
|
|
55
54
|
}
|
|
56
55
|
export interface IEditPreviewChatMessageResponse {
|
|
@@ -61,7 +60,7 @@ export interface IRepository {
|
|
|
61
60
|
auth(): Promise<string>;
|
|
62
61
|
emails(): Promise<IGmailsResponse[]>;
|
|
63
62
|
executeGmailCommand(selector: IShared.IFindByIdRequest): Promise<IGmailsResponse | null>;
|
|
64
|
-
editPreviewChatMessage(selector: IEditPreviewChatMessageRequest): Promise<IEditPreviewChatMessageResponse | null>;
|
|
63
|
+
editPreviewChatMessage(selector: IShared.IFindByIdRequest, data: IEditPreviewChatMessageRequest): Promise<IEditPreviewChatMessageResponse | null>;
|
|
65
64
|
}
|
|
66
65
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
67
66
|
export {};
|
|
@@ -43,10 +43,7 @@ export interface IRepository {
|
|
|
43
43
|
findLinesInPrisonProviders(): Promise<IShared.IFindMinifiedResponse[]>;
|
|
44
44
|
putLineInPrison(params: IShared.IFindByIdRequest): Promise<void>;
|
|
45
45
|
removeLineFromPrison(params: IShared.IFindByIdRequest): Promise<void>;
|
|
46
|
-
checkLinesInPrison(params: ICheckLinesInPrisonRequest): Promise<
|
|
46
|
+
checkLinesInPrison(params: ICheckLinesInPrisonRequest): Promise<void>;
|
|
47
47
|
createLinesInPrison(params: ICreateLinesInPrisonRequest): Promise<string[]>;
|
|
48
48
|
}
|
|
49
|
-
export type IApi = Omit<IRepository, 'checkLinesInPrison'> & {
|
|
50
|
-
checkLinesInPrison(params: ICheckLinesInPrisonRequest): Promise<void>;
|
|
51
|
-
};
|
|
52
49
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -333,7 +333,7 @@ export interface IRepository {
|
|
|
333
333
|
findClientUnpaidDebit(params: IShared.IFindByOwnerIdRequest): Promise<IUnpaidDocumentResponse[]>;
|
|
334
334
|
getActions(selector: IShared.IFindByIdRequest): Promise<IGetActionsResponse[]>;
|
|
335
335
|
create(data: ICreateRequest): Promise<ICreateResponse>;
|
|
336
|
-
createFromHeader(data: ICreateFromHeaderRequest): Promise<
|
|
336
|
+
createFromHeader(data: ICreateFromHeaderRequest): Promise<void>;
|
|
337
337
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
338
338
|
updateManyWithPersona(params: IUpdateManyWithPersona): Promise<void>;
|
|
339
339
|
transferClientOwnership(params: ITransferOwnershipRequest): Promise<void>;
|
|
@@ -493,55 +493,6 @@ export type BankPaymentsBatch = {
|
|
|
493
493
|
created_at: Date;
|
|
494
494
|
updated_at: Date;
|
|
495
495
|
};
|
|
496
|
-
/**
|
|
497
|
-
* Model ClientCurrentAccount
|
|
498
|
-
*
|
|
499
|
-
*/
|
|
500
|
-
export type ClientCurrentAccount = {
|
|
501
|
-
id: string;
|
|
502
|
-
owner_id: string;
|
|
503
|
-
origin_id: string;
|
|
504
|
-
numero_cliente: number;
|
|
505
|
-
data_documento: Date;
|
|
506
|
-
data_vencimento: Date;
|
|
507
|
-
nome_documento: string;
|
|
508
|
-
numero_documento: string;
|
|
509
|
-
debito: number;
|
|
510
|
-
credito: number;
|
|
511
|
-
observacoes: string;
|
|
512
|
-
saldo: number;
|
|
513
|
-
nao_regularizado: number;
|
|
514
|
-
ordem: number;
|
|
515
|
-
created_at: Date;
|
|
516
|
-
updated_at: Date;
|
|
517
|
-
created_by: string;
|
|
518
|
-
updated_by: string;
|
|
519
|
-
};
|
|
520
|
-
/**
|
|
521
|
-
* Model ProviderCurrentAccount
|
|
522
|
-
*
|
|
523
|
-
*/
|
|
524
|
-
export type ProviderCurrentAccount = {
|
|
525
|
-
id: string;
|
|
526
|
-
owner_id: string;
|
|
527
|
-
origin_id: string;
|
|
528
|
-
numero_fornecedor: number;
|
|
529
|
-
data_compra: Date;
|
|
530
|
-
data_documento: Date;
|
|
531
|
-
data_vencimento: Date;
|
|
532
|
-
nome_documento: string;
|
|
533
|
-
numero_documento: string;
|
|
534
|
-
debito: number;
|
|
535
|
-
credito: number;
|
|
536
|
-
observacoes: string;
|
|
537
|
-
ordem: number;
|
|
538
|
-
saldo: number;
|
|
539
|
-
nao_regularizado: number;
|
|
540
|
-
created_at: Date;
|
|
541
|
-
updated_at: Date;
|
|
542
|
-
created_by: string;
|
|
543
|
-
updated_by: string;
|
|
544
|
-
};
|
|
545
496
|
/**
|
|
546
497
|
* Model VatValidation
|
|
547
498
|
*
|
|
@@ -113,14 +113,6 @@ export declare const idParam: joi.ObjectSchema<any>;
|
|
|
113
113
|
export declare const idNumberParam: joi.ObjectSchema<any>;
|
|
114
114
|
export declare const findMinifiedReponse: joi.ArraySchema<any[]>;
|
|
115
115
|
export declare const joiValidateStamps: IRouteResponseWithoutStamps<WithTimestampsOriginID>;
|
|
116
|
-
export interface ITaskClusterLoading {
|
|
117
|
-
task_id: string;
|
|
118
|
-
description: string;
|
|
119
|
-
}
|
|
120
|
-
export interface ITaskCluster {
|
|
121
|
-
owner_id: string;
|
|
122
|
-
loading: ITaskClusterLoading[];
|
|
123
|
-
}
|
|
124
116
|
export declare const IUserSendEmailDocumentTemplateEnum: {
|
|
125
117
|
generic: 'generic';
|
|
126
118
|
provider_payment_order: 'provider_payment_order';
|
|
@@ -131,8 +123,6 @@ export declare enum IBrokerTopic {
|
|
|
131
123
|
create = "create",
|
|
132
124
|
update = "update",
|
|
133
125
|
delete = "delete",
|
|
134
|
-
moloni_create_document = "moloni_create_document",
|
|
135
|
-
moloni_backup_pdf = "moloni_backup_pdf",
|
|
136
126
|
tickets_change = "tickets_change",
|
|
137
127
|
user_send_email_password = "user_send_email_password",
|
|
138
128
|
user_send_email_document = "user_send_email_document",
|
|
@@ -152,7 +142,6 @@ export declare enum IBrokerTopic {
|
|
|
152
142
|
dispatch_chat_message = "dispatch_chat_message",
|
|
153
143
|
perform_task = "perform_task",
|
|
154
144
|
create_site_proposal = "create_site_proposal",
|
|
155
|
-
task_done = "task_done",
|
|
156
145
|
push_notification = "push_notification",
|
|
157
146
|
error_log = "error_log",
|
|
158
147
|
kafka_log = "kafka_log",
|
|
@@ -179,11 +168,6 @@ export type IBrokerTopicPayload = {
|
|
|
179
168
|
[IBrokerTopic.create]: Record<string, unknown>;
|
|
180
169
|
[IBrokerTopic.update]: Record<string, unknown>;
|
|
181
170
|
[IBrokerTopic.delete]: Record<string, unknown>;
|
|
182
|
-
[IBrokerTopic.task_done]: {
|
|
183
|
-
owner_id: string;
|
|
184
|
-
task_id: string;
|
|
185
|
-
description: string;
|
|
186
|
-
};
|
|
187
171
|
[IBrokerTopic.google_sheet_import]: {
|
|
188
172
|
google_sheet_import_id: string;
|
|
189
173
|
google_sheet_id: string;
|
|
@@ -191,16 +175,6 @@ export type IBrokerTopicPayload = {
|
|
|
191
175
|
user_id: string;
|
|
192
176
|
location_id: string;
|
|
193
177
|
};
|
|
194
|
-
[IBrokerTopic.moloni_create_document]: {
|
|
195
|
-
document_header_id: string;
|
|
196
|
-
user_id: string;
|
|
197
|
-
location_id: string;
|
|
198
|
-
};
|
|
199
|
-
[IBrokerTopic.moloni_backup_pdf]: {
|
|
200
|
-
document_header_id: string;
|
|
201
|
-
user_id: string;
|
|
202
|
-
location_id: string;
|
|
203
|
-
};
|
|
204
178
|
[IBrokerTopic.user_send_email_password]: {
|
|
205
179
|
token: string;
|
|
206
180
|
user: {
|
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.39.
|
|
4
|
+
"version": "0.39.13",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|