@cristian-israel/giganet_lib_conecta 1.0.39 → 1.0.40

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.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model, Optional, Sequelize as Sequelize$1, Attributes } from 'sequelize';
3
3
  import * as mongoose from 'mongoose';
4
- import { Model as Model$1, InferSchemaType, HydratedDocument, Types } from 'mongoose';
4
+ import { Model as Model$1, InferSchemaType, HydratedDocument, Schema, Types } from 'mongoose';
5
5
  import * as bson from 'bson';
6
6
  import { AxiosRequestConfig, AxiosInstance } from 'axios';
7
7
 
@@ -36831,6 +36831,122 @@ declare namespace ixcSoftApi_types {
36831
36831
  export type { ixcSoftApi_types_IxcSuOssChamadoResponse as IxcSuOssChamadoResponse, ixcSoftApi_types_MonthlyFeesForClientInput as MonthlyFeesForClientInput, ixcSoftApi_types_MonthlyFeesForClientResponse as MonthlyFeesForClientResponse, ixcSoftApi_types_SuOssChamadoInput as SuOssChamadoInput, ixcSoftApi_types_SuOssChamadoListFilters as SuOssChamadoListFilters };
36832
36832
  }
36833
36833
 
36834
+ declare const RoutinesTasksSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
36835
+ timestamps: true;
36836
+ }, {
36837
+ status: "running" | "stopped" | "waiting";
36838
+ name: string;
36839
+ description: string;
36840
+ is_active: boolean;
36841
+ cron_expression: string;
36842
+ execution_count: number;
36843
+ status_last_execution?: "success" | "error" | null | undefined;
36844
+ last_execution_at?: NativeDate | null | undefined;
36845
+ next_execution_at?: NativeDate | null | undefined;
36846
+ last_execution_time_ms?: number | null | undefined;
36847
+ } & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
36848
+ status: "running" | "stopped" | "waiting";
36849
+ name: string;
36850
+ description: string;
36851
+ is_active: boolean;
36852
+ cron_expression: string;
36853
+ execution_count: number;
36854
+ status_last_execution?: "success" | "error" | null | undefined;
36855
+ last_execution_at?: NativeDate | null | undefined;
36856
+ next_execution_at?: NativeDate | null | undefined;
36857
+ last_execution_time_ms?: number | null | undefined;
36858
+ } & mongoose.DefaultTimestampProps, {
36859
+ id: string;
36860
+ }, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
36861
+ timestamps: true;
36862
+ }> & Omit<{
36863
+ status: "running" | "stopped" | "waiting";
36864
+ name: string;
36865
+ description: string;
36866
+ is_active: boolean;
36867
+ cron_expression: string;
36868
+ execution_count: number;
36869
+ status_last_execution?: "success" | "error" | null | undefined;
36870
+ last_execution_at?: NativeDate | null | undefined;
36871
+ next_execution_at?: NativeDate | null | undefined;
36872
+ last_execution_time_ms?: number | null | undefined;
36873
+ } & mongoose.DefaultTimestampProps & {
36874
+ _id: mongoose.Types.ObjectId;
36875
+ } & {
36876
+ __v: number;
36877
+ }, "id"> & {
36878
+ id: string;
36879
+ }, unknown, {
36880
+ status: "running" | "stopped" | "waiting";
36881
+ name: string;
36882
+ description: string;
36883
+ is_active: boolean;
36884
+ cron_expression: string;
36885
+ execution_count: number;
36886
+ status_last_execution?: "success" | "error" | null | undefined;
36887
+ last_execution_at?: NativeDate | null | undefined;
36888
+ next_execution_at?: NativeDate | null | undefined;
36889
+ last_execution_time_ms?: number | null | undefined;
36890
+ createdAt: NativeDate;
36891
+ updatedAt: NativeDate;
36892
+ } & {
36893
+ _id: mongoose.Types.ObjectId;
36894
+ } & {
36895
+ __v: number;
36896
+ }>;
36897
+
36898
+ declare const ToolsLogerSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
36899
+ timestamps: true;
36900
+ }, {
36901
+ user: string;
36902
+ status: "success" | "error" | "info" | "warning";
36903
+ ip: string;
36904
+ description: string;
36905
+ action: string;
36906
+ executionTimeMs: number;
36907
+ metadata?: any;
36908
+ } & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
36909
+ user: string;
36910
+ status: "success" | "error" | "info" | "warning";
36911
+ ip: string;
36912
+ description: string;
36913
+ action: string;
36914
+ executionTimeMs: number;
36915
+ metadata?: any;
36916
+ } & mongoose.DefaultTimestampProps, {
36917
+ id: string;
36918
+ }, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
36919
+ timestamps: true;
36920
+ }> & Omit<{
36921
+ user: string;
36922
+ status: "success" | "error" | "info" | "warning";
36923
+ ip: string;
36924
+ description: string;
36925
+ action: string;
36926
+ executionTimeMs: number;
36927
+ metadata?: any;
36928
+ } & mongoose.DefaultTimestampProps & {
36929
+ _id: mongoose.Types.ObjectId;
36930
+ } & {
36931
+ __v: number;
36932
+ }, "id"> & {
36933
+ id: string;
36934
+ }, unknown, {
36935
+ user: string;
36936
+ status: "success" | "error" | "info" | "warning";
36937
+ ip: string;
36938
+ description: string;
36939
+ action: string;
36940
+ executionTimeMs: number;
36941
+ metadata?: any;
36942
+ createdAt: NativeDate;
36943
+ updatedAt: NativeDate;
36944
+ } & {
36945
+ _id: mongoose.Types.ObjectId;
36946
+ } & {
36947
+ __v: number;
36948
+ }>;
36949
+
36834
36950
  interface RoutinesTasksCreateInput {
36835
36951
  name: string;
36836
36952
  description: string;
@@ -36851,22 +36967,9 @@ interface RoutinesTasksToggleActiveInput {
36851
36967
  interface RoutinesTasksExecuteInput {
36852
36968
  triggered_by: string;
36853
36969
  }
36854
- interface RoutinesTasksResponse {
36855
- _id: string;
36856
- name: string;
36857
- description: string;
36858
- cron_expression: string;
36859
- is_active: boolean;
36860
- created_at: string;
36861
- updated_at: string;
36970
+ interface RoutinesTasksResponse extends HydratedDocument<InferSchemaType<typeof RoutinesTasksSchema>> {
36862
36971
  }
36863
- interface RoutinesTasksLogResponse {
36864
- _id: string;
36865
- task_id: string;
36866
- triggered_by: string;
36867
- executed_at: string;
36868
- success: boolean;
36869
- message?: string;
36972
+ interface RoutinesTasksLogResponse extends HydratedDocument<InferSchemaType<typeof ToolsLogerSchema>> {
36870
36973
  }
36871
36974
 
36872
36975
  declare class RoutinesTasksResource {
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model, Optional, Sequelize as Sequelize$1, Attributes } from 'sequelize';
3
3
  import * as mongoose from 'mongoose';
4
- import { Model as Model$1, InferSchemaType, HydratedDocument, Types } from 'mongoose';
4
+ import { Model as Model$1, InferSchemaType, HydratedDocument, Schema, Types } from 'mongoose';
5
5
  import * as bson from 'bson';
6
6
  import { AxiosRequestConfig, AxiosInstance } from 'axios';
7
7
 
@@ -36831,6 +36831,122 @@ declare namespace ixcSoftApi_types {
36831
36831
  export type { ixcSoftApi_types_IxcSuOssChamadoResponse as IxcSuOssChamadoResponse, ixcSoftApi_types_MonthlyFeesForClientInput as MonthlyFeesForClientInput, ixcSoftApi_types_MonthlyFeesForClientResponse as MonthlyFeesForClientResponse, ixcSoftApi_types_SuOssChamadoInput as SuOssChamadoInput, ixcSoftApi_types_SuOssChamadoListFilters as SuOssChamadoListFilters };
36832
36832
  }
36833
36833
 
36834
+ declare const RoutinesTasksSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
36835
+ timestamps: true;
36836
+ }, {
36837
+ status: "running" | "stopped" | "waiting";
36838
+ name: string;
36839
+ description: string;
36840
+ is_active: boolean;
36841
+ cron_expression: string;
36842
+ execution_count: number;
36843
+ status_last_execution?: "success" | "error" | null | undefined;
36844
+ last_execution_at?: NativeDate | null | undefined;
36845
+ next_execution_at?: NativeDate | null | undefined;
36846
+ last_execution_time_ms?: number | null | undefined;
36847
+ } & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
36848
+ status: "running" | "stopped" | "waiting";
36849
+ name: string;
36850
+ description: string;
36851
+ is_active: boolean;
36852
+ cron_expression: string;
36853
+ execution_count: number;
36854
+ status_last_execution?: "success" | "error" | null | undefined;
36855
+ last_execution_at?: NativeDate | null | undefined;
36856
+ next_execution_at?: NativeDate | null | undefined;
36857
+ last_execution_time_ms?: number | null | undefined;
36858
+ } & mongoose.DefaultTimestampProps, {
36859
+ id: string;
36860
+ }, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
36861
+ timestamps: true;
36862
+ }> & Omit<{
36863
+ status: "running" | "stopped" | "waiting";
36864
+ name: string;
36865
+ description: string;
36866
+ is_active: boolean;
36867
+ cron_expression: string;
36868
+ execution_count: number;
36869
+ status_last_execution?: "success" | "error" | null | undefined;
36870
+ last_execution_at?: NativeDate | null | undefined;
36871
+ next_execution_at?: NativeDate | null | undefined;
36872
+ last_execution_time_ms?: number | null | undefined;
36873
+ } & mongoose.DefaultTimestampProps & {
36874
+ _id: mongoose.Types.ObjectId;
36875
+ } & {
36876
+ __v: number;
36877
+ }, "id"> & {
36878
+ id: string;
36879
+ }, unknown, {
36880
+ status: "running" | "stopped" | "waiting";
36881
+ name: string;
36882
+ description: string;
36883
+ is_active: boolean;
36884
+ cron_expression: string;
36885
+ execution_count: number;
36886
+ status_last_execution?: "success" | "error" | null | undefined;
36887
+ last_execution_at?: NativeDate | null | undefined;
36888
+ next_execution_at?: NativeDate | null | undefined;
36889
+ last_execution_time_ms?: number | null | undefined;
36890
+ createdAt: NativeDate;
36891
+ updatedAt: NativeDate;
36892
+ } & {
36893
+ _id: mongoose.Types.ObjectId;
36894
+ } & {
36895
+ __v: number;
36896
+ }>;
36897
+
36898
+ declare const ToolsLogerSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
36899
+ timestamps: true;
36900
+ }, {
36901
+ user: string;
36902
+ status: "success" | "error" | "info" | "warning";
36903
+ ip: string;
36904
+ description: string;
36905
+ action: string;
36906
+ executionTimeMs: number;
36907
+ metadata?: any;
36908
+ } & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
36909
+ user: string;
36910
+ status: "success" | "error" | "info" | "warning";
36911
+ ip: string;
36912
+ description: string;
36913
+ action: string;
36914
+ executionTimeMs: number;
36915
+ metadata?: any;
36916
+ } & mongoose.DefaultTimestampProps, {
36917
+ id: string;
36918
+ }, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
36919
+ timestamps: true;
36920
+ }> & Omit<{
36921
+ user: string;
36922
+ status: "success" | "error" | "info" | "warning";
36923
+ ip: string;
36924
+ description: string;
36925
+ action: string;
36926
+ executionTimeMs: number;
36927
+ metadata?: any;
36928
+ } & mongoose.DefaultTimestampProps & {
36929
+ _id: mongoose.Types.ObjectId;
36930
+ } & {
36931
+ __v: number;
36932
+ }, "id"> & {
36933
+ id: string;
36934
+ }, unknown, {
36935
+ user: string;
36936
+ status: "success" | "error" | "info" | "warning";
36937
+ ip: string;
36938
+ description: string;
36939
+ action: string;
36940
+ executionTimeMs: number;
36941
+ metadata?: any;
36942
+ createdAt: NativeDate;
36943
+ updatedAt: NativeDate;
36944
+ } & {
36945
+ _id: mongoose.Types.ObjectId;
36946
+ } & {
36947
+ __v: number;
36948
+ }>;
36949
+
36834
36950
  interface RoutinesTasksCreateInput {
36835
36951
  name: string;
36836
36952
  description: string;
@@ -36851,22 +36967,9 @@ interface RoutinesTasksToggleActiveInput {
36851
36967
  interface RoutinesTasksExecuteInput {
36852
36968
  triggered_by: string;
36853
36969
  }
36854
- interface RoutinesTasksResponse {
36855
- _id: string;
36856
- name: string;
36857
- description: string;
36858
- cron_expression: string;
36859
- is_active: boolean;
36860
- created_at: string;
36861
- updated_at: string;
36970
+ interface RoutinesTasksResponse extends HydratedDocument<InferSchemaType<typeof RoutinesTasksSchema>> {
36862
36971
  }
36863
- interface RoutinesTasksLogResponse {
36864
- _id: string;
36865
- task_id: string;
36866
- triggered_by: string;
36867
- executed_at: string;
36868
- success: boolean;
36869
- message?: string;
36972
+ interface RoutinesTasksLogResponse extends HydratedDocument<InferSchemaType<typeof ToolsLogerSchema>> {
36870
36973
  }
36871
36974
 
36872
36975
  declare class RoutinesTasksResource {
package/dist/index.js CHANGED
@@ -90828,7 +90828,7 @@ var configToolsMongo = {
90828
90828
 
90829
90829
  // src/databases/mongo/tools/collections/user.ts
90830
90830
  var import_mongoose7 = require("mongoose");
90831
- var UserSchema = new import_mongoose7.Schema(
90831
+ var ToolsUserSchema = new import_mongoose7.Schema(
90832
90832
  {
90833
90833
  id_ixc_soft: {
90834
90834
  type: Number,
@@ -90877,7 +90877,7 @@ var UserSchema = new import_mongoose7.Schema(
90877
90877
 
90878
90878
  // src/databases/mongo/tools/collections/loger.ts
90879
90879
  var import_mongoose8 = require("mongoose");
90880
- var LogerSchema = new import_mongoose8.Schema(
90880
+ var ToolsLogerSchema = new import_mongoose8.Schema(
90881
90881
  {
90882
90882
  action: { type: String, required: true },
90883
90883
  status: {
@@ -90898,8 +90898,8 @@ var LogerSchema = new import_mongoose8.Schema(
90898
90898
 
90899
90899
  // src/databases/mongo/tools/collections/index.ts
90900
90900
  var schemas2 = {
90901
- user: UserSchema,
90902
- loger: LogerSchema
90901
+ user: ToolsUserSchema,
90902
+ loger: ToolsLogerSchema
90903
90903
  };
90904
90904
 
90905
90905
  // src/databases/mongo/tools/tools.mongo.connection.ts
@@ -90976,7 +90976,7 @@ var configRoutinesMongo = {
90976
90976
 
90977
90977
  // src/databases/mongo/routines/collections/tasks.ts
90978
90978
  var import_mongoose9 = require("mongoose");
90979
- var TasksSchema = new import_mongoose9.Schema(
90979
+ var RoutinesTasksSchema = new import_mongoose9.Schema(
90980
90980
  {
90981
90981
  name: { type: String, required: true, unique: true },
90982
90982
  description: { type: String, required: true },
@@ -91004,7 +91004,7 @@ var TasksSchema = new import_mongoose9.Schema(
91004
91004
 
91005
91005
  // src/databases/mongo/routines/collections/loger.ts
91006
91006
  var import_mongoose10 = require("mongoose");
91007
- var LogerSchema2 = new import_mongoose10.Schema(
91007
+ var RoutinesLogerSchema = new import_mongoose10.Schema(
91008
91008
  {
91009
91009
  task: {
91010
91010
  type: import_mongoose10.Types.ObjectId,
@@ -91029,8 +91029,8 @@ var LogerSchema2 = new import_mongoose10.Schema(
91029
91029
 
91030
91030
  // src/databases/mongo/routines/collections/index.ts
91031
91031
  var schemas3 = {
91032
- tasks: TasksSchema,
91033
- loger: LogerSchema2
91032
+ tasks: RoutinesTasksSchema,
91033
+ loger: RoutinesLogerSchema
91034
91034
  };
91035
91035
 
91036
91036
  // src/databases/mongo/routines/routines.mongo.connection.ts
package/dist/index.mjs CHANGED
@@ -90783,7 +90783,7 @@ var configToolsMongo = {
90783
90783
 
90784
90784
  // src/databases/mongo/tools/collections/user.ts
90785
90785
  import { Schema as Schema6 } from "mongoose";
90786
- var UserSchema = new Schema6(
90786
+ var ToolsUserSchema = new Schema6(
90787
90787
  {
90788
90788
  id_ixc_soft: {
90789
90789
  type: Number,
@@ -90832,7 +90832,7 @@ var UserSchema = new Schema6(
90832
90832
 
90833
90833
  // src/databases/mongo/tools/collections/loger.ts
90834
90834
  import { Schema as Schema7 } from "mongoose";
90835
- var LogerSchema = new Schema7(
90835
+ var ToolsLogerSchema = new Schema7(
90836
90836
  {
90837
90837
  action: { type: String, required: true },
90838
90838
  status: {
@@ -90853,8 +90853,8 @@ var LogerSchema = new Schema7(
90853
90853
 
90854
90854
  // src/databases/mongo/tools/collections/index.ts
90855
90855
  var schemas2 = {
90856
- user: UserSchema,
90857
- loger: LogerSchema
90856
+ user: ToolsUserSchema,
90857
+ loger: ToolsLogerSchema
90858
90858
  };
90859
90859
 
90860
90860
  // src/databases/mongo/tools/tools.mongo.connection.ts
@@ -90931,7 +90931,7 @@ var configRoutinesMongo = {
90931
90931
 
90932
90932
  // src/databases/mongo/routines/collections/tasks.ts
90933
90933
  import { Schema as Schema8 } from "mongoose";
90934
- var TasksSchema = new Schema8(
90934
+ var RoutinesTasksSchema = new Schema8(
90935
90935
  {
90936
90936
  name: { type: String, required: true, unique: true },
90937
90937
  description: { type: String, required: true },
@@ -90959,7 +90959,7 @@ var TasksSchema = new Schema8(
90959
90959
 
90960
90960
  // src/databases/mongo/routines/collections/loger.ts
90961
90961
  import { Schema as Schema9, Types as Types2 } from "mongoose";
90962
- var LogerSchema2 = new Schema9(
90962
+ var RoutinesLogerSchema = new Schema9(
90963
90963
  {
90964
90964
  task: {
90965
90965
  type: Types2.ObjectId,
@@ -90984,8 +90984,8 @@ var LogerSchema2 = new Schema9(
90984
90984
 
90985
90985
  // src/databases/mongo/routines/collections/index.ts
90986
90986
  var schemas3 = {
90987
- tasks: TasksSchema,
90988
- loger: LogerSchema2
90987
+ tasks: RoutinesTasksSchema,
90988
+ loger: RoutinesLogerSchema
90989
90989
  };
90990
90990
 
90991
90991
  // src/databases/mongo/routines/routines.mongo.connection.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cristian-israel/giganet_lib_conecta",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "description": "Database Connector Layer",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",