@nomalism-com/types 0.40.13 → 0.40.15

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
@@ -74,6 +74,7 @@ __export(main_exports, {
74
74
  GmailsRoutes: () => route_schema_exports109,
75
75
  GoogleFilePermission: () => interfaces_exports33,
76
76
  GoogleFilePermissionRoutes: () => route_schema_exports72,
77
+ GoogleSheetPool: () => interface_exports66,
77
78
  GoogleSheets: () => interfaces_exports17,
78
79
  GoogleSheetsRoutes: () => route_schema_exports25,
79
80
  GroupPermissions: () => interface_exports11,
@@ -492,6 +493,7 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
492
493
  IBrokerTopic2["googlesheet_task_log"] = "googlesheet_task_log";
493
494
  IBrokerTopic2["googlesheet_stock_log"] = "googlesheet_stock_log";
494
495
  IBrokerTopic2["googlesheet_encomenda_log"] = "googlesheet_encomenda_log";
496
+ IBrokerTopic2["log_google_api_request"] = "log_google_api_request";
495
497
  return IBrokerTopic2;
496
498
  })(IBrokerTopic || {});
497
499
 
@@ -5902,6 +5904,17 @@ var updateNoteBodyKeys = {
5902
5904
  };
5903
5905
  var updateNoteBody = joi115.object().keys(updateNoteBodyKeys).messages(messages);
5904
5906
 
5907
+ // src/modules/stock/googleSheetPool/interface.ts
5908
+ var interface_exports66 = {};
5909
+ __export(interface_exports66, {
5910
+ LowerName: () => LowerName107,
5911
+ Route: () => Route109,
5912
+ UpperName: () => UpperName107
5913
+ });
5914
+ var Route109 = "google_sheet_pool";
5915
+ var UpperName107 = "GoogleSheetPool";
5916
+ var LowerName107 = UpperName107[0].toLowerCase() + UpperName107.substring(1);
5917
+
5905
5918
  // src/index.ts
5906
5919
  var index_default = main_exports;
5907
5920
  export {
package/dist/index.js CHANGED
@@ -74,6 +74,7 @@ __export(main_exports, {
74
74
  GmailsRoutes: () => route_schema_exports109,
75
75
  GoogleFilePermission: () => interfaces_exports33,
76
76
  GoogleFilePermissionRoutes: () => route_schema_exports72,
77
+ GoogleSheetPool: () => interface_exports66,
77
78
  GoogleSheets: () => interfaces_exports17,
78
79
  GoogleSheetsRoutes: () => route_schema_exports25,
79
80
  GroupPermissions: () => interface_exports11,
@@ -492,6 +493,7 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
492
493
  IBrokerTopic2["googlesheet_task_log"] = "googlesheet_task_log";
493
494
  IBrokerTopic2["googlesheet_stock_log"] = "googlesheet_stock_log";
494
495
  IBrokerTopic2["googlesheet_encomenda_log"] = "googlesheet_encomenda_log";
496
+ IBrokerTopic2["log_google_api_request"] = "log_google_api_request";
495
497
  return IBrokerTopic2;
496
498
  })(IBrokerTopic || {});
497
499
 
@@ -5902,6 +5904,17 @@ var updateNoteBodyKeys = {
5902
5904
  };
5903
5905
  var updateNoteBody = joi115.object().keys(updateNoteBodyKeys).messages(messages);
5904
5906
 
5907
+ // src/modules/stock/googleSheetPool/interface.ts
5908
+ var interface_exports66 = {};
5909
+ __export(interface_exports66, {
5910
+ LowerName: () => LowerName107,
5911
+ Route: () => Route109,
5912
+ UpperName: () => UpperName107
5913
+ });
5914
+ var Route109 = "google_sheet_pool";
5915
+ var UpperName107 = "GoogleSheetPool";
5916
+ var LowerName107 = UpperName107[0].toLowerCase() + UpperName107.substring(1);
5917
+
5905
5918
  // src/index.ts
5906
5919
  var index_default = main_exports;
5907
5920
  export {
package/dist/main.d.ts CHANGED
@@ -238,4 +238,5 @@ import * as PaymentBatch from './modules/supply/paymentBatch/interface';
238
238
  import * as PaymentBatchRoutes from './modules/supply/paymentBatch/route.schema';
239
239
  import * as Portal from './modules/ui/portal/interface';
240
240
  import * as PortalRoutes from './modules/ui/portal/route.schema';
241
- 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, NPF, NPFRoutes, NRCL, NRCLRoutes, CurrentAccount, CurrentAccountRoutes, PaymentBatch, PaymentBatchRoutes, Portal, PortalRoutes, };
241
+ import * as GoogleSheetPool from './modules/stock/googleSheetPool/interface';
242
+ 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, NPF, NPFRoutes, NRCL, NRCLRoutes, CurrentAccount, CurrentAccountRoutes, PaymentBatch, PaymentBatchRoutes, Portal, PortalRoutes, GoogleSheetPool, };
@@ -0,0 +1,10 @@
1
+ import * as IShared from '../../../shared/interface';
2
+ import { GoogleSheetPool } from '../../../shared/entities/stock';
3
+ export type Entity = GoogleSheetPool;
4
+ export declare const Route = "google_sheet_pool";
5
+ export declare const UpperName = "GoogleSheetPool";
6
+ export declare const LowerName: string;
7
+ export interface IRepository {
8
+ clearAndFill(): Promise<void>;
9
+ }
10
+ export type IController = IShared.IEntityWithUserToken<IRepository>;
@@ -3,7 +3,7 @@ export declare const createBody: joi.ArraySchema<any[]>;
3
3
  export declare const updateBody: joi.ObjectSchema<any>;
4
4
  export declare const updateDataBody: joi.ObjectSchema<any>;
5
5
  export declare const updateManyBody: joi.ObjectSchema<any>;
6
- export declare const updateIndexesBody: joi.ArraySchema<string[]>;
7
- export declare const deleteBody: joi.ArraySchema<string[]>;
6
+ export declare const updateIndexesBody: joi.ArraySchema<any[]>;
7
+ export declare const deleteBody: joi.ArraySchema<any[]>;
8
8
  export declare const printLabelParams: joi.ObjectSchema<any>;
9
9
  export declare const printLabelQuery: joi.ObjectSchema<any>;
@@ -1032,3 +1032,11 @@ export type Gmails = {
1032
1032
  text_to_chat: string | null;
1033
1033
  done: Date | null;
1034
1034
  };
1035
+ /**
1036
+ * Model GoogleSheetPool
1037
+ *
1038
+ */
1039
+ export type GoogleSheetPool = {
1040
+ id: string;
1041
+ sheet_id: string;
1042
+ };
@@ -80,6 +80,12 @@ export interface IFindOptionalByOwnerIdRequest {
80
80
  export interface IUpdateManyResponse {
81
81
  count: number;
82
82
  }
83
+ export interface ILogGoogleApiRequest {
84
+ type: string;
85
+ method: string;
86
+ info: string;
87
+ error?: string;
88
+ }
83
89
  export declare const IDataTypeEnum: {
84
90
  date: 'date';
85
91
  datetime: 'datetime';
@@ -112,12 +118,7 @@ export declare const findByOwnerIdQueryKeys: IRouteRequest<IFindByOwnerIdRequest
112
118
  export declare const findByOwnerIdQuery: joi.ObjectSchema<any>;
113
119
  export declare const idParam: joi.ObjectSchema<any>;
114
120
  export declare const idNumberParam: joi.ObjectSchema<any>;
115
- export declare const findMinifiedReponse: joi.ArraySchema<{
116
- name: unknown;
117
- id: unknown;
118
- group: unknown;
119
- multimedia_id: unknown;
120
- }[]>;
121
+ export declare const findMinifiedReponse: joi.ArraySchema<any[]>;
121
122
  export declare const joiValidateStamps: IRouteResponseWithoutStamps<WithTimestampsOriginID>;
122
123
  export declare const IUserSendEmailDocumentTemplateEnum: {
123
124
  generic: 'generic';
@@ -168,7 +169,8 @@ export declare enum IBrokerTopic {
168
169
  googlesheet_proposta_log = "googlesheet_proposta_log",
169
170
  googlesheet_task_log = "googlesheet_task_log",
170
171
  googlesheet_stock_log = "googlesheet_stock_log",
171
- googlesheet_encomenda_log = "googlesheet_encomenda_log"
172
+ googlesheet_encomenda_log = "googlesheet_encomenda_log",
173
+ log_google_api_request = "log_google_api_request"
172
174
  }
173
175
  export type IBrokerTopicPayload = {
174
176
  [IBrokerTopic.create]: Record<string, unknown>;
@@ -347,6 +349,7 @@ export type IBrokerTopicPayload = {
347
349
  [IBrokerTopic.googlesheet_task_log]: ITask;
348
350
  [IBrokerTopic.googlesheet_stock_log]: IStock;
349
351
  [IBrokerTopic.googlesheet_encomenda_log]: IEncomenda;
352
+ [IBrokerTopic.log_google_api_request]: ILogGoogleApiRequest;
350
353
  };
351
354
  export interface IBrokerMessage<T extends IBrokerTopic = IBrokerTopic> {
352
355
  topic: T;
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.40.13",
4
+ "version": "0.40.15",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",