@cristian-israel/giganet_lib_conecta 1.0.44 → 1.0.45
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 +42 -23
- package/dist/index.d.ts +42 -23
- package/dist/index.js +40 -0
- package/dist/index.mjs +46 -0
- package/package.json +6 -4
package/dist/index.d.mts
CHANGED
|
@@ -4,6 +4,7 @@ import * as mongoose from 'mongoose';
|
|
|
4
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
|
+
import { z } from 'zod';
|
|
7
8
|
|
|
8
9
|
type LogLevel = "INFO" | "ERROR" | "WARN";
|
|
9
10
|
type LoggerParams = {
|
|
@@ -36751,17 +36752,20 @@ interface SuOssChamadoListFilters {
|
|
|
36751
36752
|
sortname: string;
|
|
36752
36753
|
sortorder: "asc" | "desc";
|
|
36753
36754
|
}
|
|
36754
|
-
|
|
36755
|
-
type:
|
|
36756
|
-
|
|
36757
|
-
|
|
36758
|
-
|
|
36759
|
-
|
|
36760
|
-
|
|
36761
|
-
|
|
36762
|
-
|
|
36763
|
-
|
|
36764
|
-
|
|
36755
|
+
declare const IxcSuOssChamadoResponseSchema: z.ZodObject<{
|
|
36756
|
+
type: z.ZodEnum<{
|
|
36757
|
+
success: "success";
|
|
36758
|
+
error: "error";
|
|
36759
|
+
}>;
|
|
36760
|
+
message: z.ZodString;
|
|
36761
|
+
id: z.ZodOptional<z.ZodString>;
|
|
36762
|
+
atualiza_campos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
36763
|
+
tipo: z.ZodString;
|
|
36764
|
+
campo: z.ZodString;
|
|
36765
|
+
valor: z.ZodString;
|
|
36766
|
+
}, z.core.$strip>>>;
|
|
36767
|
+
}, z.core.$strip>;
|
|
36768
|
+
type IxcSuOssChamadoResponse = z.infer<typeof IxcSuOssChamadoResponseSchema>;
|
|
36765
36769
|
|
|
36766
36770
|
declare class SuOssChamadoResource {
|
|
36767
36771
|
private readonly client;
|
|
@@ -36805,17 +36809,20 @@ interface MonthlyFeesForClientInput {
|
|
|
36805
36809
|
id_cliente: number | string;
|
|
36806
36810
|
tipo: string;
|
|
36807
36811
|
}
|
|
36808
|
-
|
|
36809
|
-
type:
|
|
36810
|
-
|
|
36811
|
-
|
|
36812
|
-
|
|
36813
|
-
|
|
36814
|
-
|
|
36815
|
-
|
|
36816
|
-
|
|
36817
|
-
|
|
36818
|
-
|
|
36812
|
+
declare const MonthlyFeesForClientResponseSchema: z.ZodObject<{
|
|
36813
|
+
type: z.ZodEnum<{
|
|
36814
|
+
success: "success";
|
|
36815
|
+
error: "error";
|
|
36816
|
+
}>;
|
|
36817
|
+
message: z.ZodString;
|
|
36818
|
+
id: z.ZodOptional<z.ZodString>;
|
|
36819
|
+
id_contrato: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
36820
|
+
tipo: z.ZodOptional<z.ZodString>;
|
|
36821
|
+
id_cliente: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
36822
|
+
id_tipo_documento: z.ZodOptional<z.ZodString>;
|
|
36823
|
+
action: z.ZodOptional<z.ZodString>;
|
|
36824
|
+
}, z.core.$strip>;
|
|
36825
|
+
type MonthlyFeesForClientResponse = z.infer<typeof MonthlyFeesForClientResponseSchema>;
|
|
36819
36826
|
|
|
36820
36827
|
declare class MonthlyFeesForClientResource {
|
|
36821
36828
|
private readonly client;
|
|
@@ -36834,13 +36841,25 @@ declare class IXCSoftAPIClient extends APIClient {
|
|
|
36834
36841
|
constructor(config: APIConfigType);
|
|
36835
36842
|
}
|
|
36836
36843
|
|
|
36844
|
+
declare const IXCSoftResponseSchema: z.ZodObject<{
|
|
36845
|
+
type: z.ZodEnum<{
|
|
36846
|
+
success: "success";
|
|
36847
|
+
error: "error";
|
|
36848
|
+
}>;
|
|
36849
|
+
message: z.ZodString;
|
|
36850
|
+
id: z.ZodOptional<z.ZodString>;
|
|
36851
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
36852
|
+
|
|
36853
|
+
declare const ixcSoftApi_types_IXCSoftResponseSchema: typeof IXCSoftResponseSchema;
|
|
36837
36854
|
type ixcSoftApi_types_IxcSuOssChamadoResponse = IxcSuOssChamadoResponse;
|
|
36855
|
+
declare const ixcSoftApi_types_IxcSuOssChamadoResponseSchema: typeof IxcSuOssChamadoResponseSchema;
|
|
36838
36856
|
type ixcSoftApi_types_MonthlyFeesForClientInput = MonthlyFeesForClientInput;
|
|
36839
36857
|
type ixcSoftApi_types_MonthlyFeesForClientResponse = MonthlyFeesForClientResponse;
|
|
36858
|
+
declare const ixcSoftApi_types_MonthlyFeesForClientResponseSchema: typeof MonthlyFeesForClientResponseSchema;
|
|
36840
36859
|
type ixcSoftApi_types_SuOssChamadoInput = SuOssChamadoInput;
|
|
36841
36860
|
type ixcSoftApi_types_SuOssChamadoListFilters = SuOssChamadoListFilters;
|
|
36842
36861
|
declare namespace ixcSoftApi_types {
|
|
36843
|
-
export type
|
|
36862
|
+
export { ixcSoftApi_types_IXCSoftResponseSchema as IXCSoftResponseSchema, type ixcSoftApi_types_IxcSuOssChamadoResponse as IxcSuOssChamadoResponse, ixcSoftApi_types_IxcSuOssChamadoResponseSchema as IxcSuOssChamadoResponseSchema, type ixcSoftApi_types_MonthlyFeesForClientInput as MonthlyFeesForClientInput, type ixcSoftApi_types_MonthlyFeesForClientResponse as MonthlyFeesForClientResponse, ixcSoftApi_types_MonthlyFeesForClientResponseSchema as MonthlyFeesForClientResponseSchema, type ixcSoftApi_types_SuOssChamadoInput as SuOssChamadoInput, type ixcSoftApi_types_SuOssChamadoListFilters as SuOssChamadoListFilters };
|
|
36844
36863
|
}
|
|
36845
36864
|
|
|
36846
36865
|
declare const RoutinesTasksSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import * as mongoose from 'mongoose';
|
|
|
4
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
|
+
import { z } from 'zod';
|
|
7
8
|
|
|
8
9
|
type LogLevel = "INFO" | "ERROR" | "WARN";
|
|
9
10
|
type LoggerParams = {
|
|
@@ -36751,17 +36752,20 @@ interface SuOssChamadoListFilters {
|
|
|
36751
36752
|
sortname: string;
|
|
36752
36753
|
sortorder: "asc" | "desc";
|
|
36753
36754
|
}
|
|
36754
|
-
|
|
36755
|
-
type:
|
|
36756
|
-
|
|
36757
|
-
|
|
36758
|
-
|
|
36759
|
-
|
|
36760
|
-
|
|
36761
|
-
|
|
36762
|
-
|
|
36763
|
-
|
|
36764
|
-
|
|
36755
|
+
declare const IxcSuOssChamadoResponseSchema: z.ZodObject<{
|
|
36756
|
+
type: z.ZodEnum<{
|
|
36757
|
+
success: "success";
|
|
36758
|
+
error: "error";
|
|
36759
|
+
}>;
|
|
36760
|
+
message: z.ZodString;
|
|
36761
|
+
id: z.ZodOptional<z.ZodString>;
|
|
36762
|
+
atualiza_campos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
36763
|
+
tipo: z.ZodString;
|
|
36764
|
+
campo: z.ZodString;
|
|
36765
|
+
valor: z.ZodString;
|
|
36766
|
+
}, z.core.$strip>>>;
|
|
36767
|
+
}, z.core.$strip>;
|
|
36768
|
+
type IxcSuOssChamadoResponse = z.infer<typeof IxcSuOssChamadoResponseSchema>;
|
|
36765
36769
|
|
|
36766
36770
|
declare class SuOssChamadoResource {
|
|
36767
36771
|
private readonly client;
|
|
@@ -36805,17 +36809,20 @@ interface MonthlyFeesForClientInput {
|
|
|
36805
36809
|
id_cliente: number | string;
|
|
36806
36810
|
tipo: string;
|
|
36807
36811
|
}
|
|
36808
|
-
|
|
36809
|
-
type:
|
|
36810
|
-
|
|
36811
|
-
|
|
36812
|
-
|
|
36813
|
-
|
|
36814
|
-
|
|
36815
|
-
|
|
36816
|
-
|
|
36817
|
-
|
|
36818
|
-
|
|
36812
|
+
declare const MonthlyFeesForClientResponseSchema: z.ZodObject<{
|
|
36813
|
+
type: z.ZodEnum<{
|
|
36814
|
+
success: "success";
|
|
36815
|
+
error: "error";
|
|
36816
|
+
}>;
|
|
36817
|
+
message: z.ZodString;
|
|
36818
|
+
id: z.ZodOptional<z.ZodString>;
|
|
36819
|
+
id_contrato: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
36820
|
+
tipo: z.ZodOptional<z.ZodString>;
|
|
36821
|
+
id_cliente: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
36822
|
+
id_tipo_documento: z.ZodOptional<z.ZodString>;
|
|
36823
|
+
action: z.ZodOptional<z.ZodString>;
|
|
36824
|
+
}, z.core.$strip>;
|
|
36825
|
+
type MonthlyFeesForClientResponse = z.infer<typeof MonthlyFeesForClientResponseSchema>;
|
|
36819
36826
|
|
|
36820
36827
|
declare class MonthlyFeesForClientResource {
|
|
36821
36828
|
private readonly client;
|
|
@@ -36834,13 +36841,25 @@ declare class IXCSoftAPIClient extends APIClient {
|
|
|
36834
36841
|
constructor(config: APIConfigType);
|
|
36835
36842
|
}
|
|
36836
36843
|
|
|
36844
|
+
declare const IXCSoftResponseSchema: z.ZodObject<{
|
|
36845
|
+
type: z.ZodEnum<{
|
|
36846
|
+
success: "success";
|
|
36847
|
+
error: "error";
|
|
36848
|
+
}>;
|
|
36849
|
+
message: z.ZodString;
|
|
36850
|
+
id: z.ZodOptional<z.ZodString>;
|
|
36851
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
36852
|
+
|
|
36853
|
+
declare const ixcSoftApi_types_IXCSoftResponseSchema: typeof IXCSoftResponseSchema;
|
|
36837
36854
|
type ixcSoftApi_types_IxcSuOssChamadoResponse = IxcSuOssChamadoResponse;
|
|
36855
|
+
declare const ixcSoftApi_types_IxcSuOssChamadoResponseSchema: typeof IxcSuOssChamadoResponseSchema;
|
|
36838
36856
|
type ixcSoftApi_types_MonthlyFeesForClientInput = MonthlyFeesForClientInput;
|
|
36839
36857
|
type ixcSoftApi_types_MonthlyFeesForClientResponse = MonthlyFeesForClientResponse;
|
|
36858
|
+
declare const ixcSoftApi_types_MonthlyFeesForClientResponseSchema: typeof MonthlyFeesForClientResponseSchema;
|
|
36840
36859
|
type ixcSoftApi_types_SuOssChamadoInput = SuOssChamadoInput;
|
|
36841
36860
|
type ixcSoftApi_types_SuOssChamadoListFilters = SuOssChamadoListFilters;
|
|
36842
36861
|
declare namespace ixcSoftApi_types {
|
|
36843
|
-
export type
|
|
36862
|
+
export { ixcSoftApi_types_IXCSoftResponseSchema as IXCSoftResponseSchema, type ixcSoftApi_types_IxcSuOssChamadoResponse as IxcSuOssChamadoResponse, ixcSoftApi_types_IxcSuOssChamadoResponseSchema as IxcSuOssChamadoResponseSchema, type ixcSoftApi_types_MonthlyFeesForClientInput as MonthlyFeesForClientInput, type ixcSoftApi_types_MonthlyFeesForClientResponse as MonthlyFeesForClientResponse, ixcSoftApi_types_MonthlyFeesForClientResponseSchema as MonthlyFeesForClientResponseSchema, type ixcSoftApi_types_SuOssChamadoInput as SuOssChamadoInput, type ixcSoftApi_types_SuOssChamadoListFilters as SuOssChamadoListFilters };
|
|
36844
36863
|
}
|
|
36845
36864
|
|
|
36846
36865
|
declare const RoutinesTasksSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
package/dist/index.js
CHANGED
|
@@ -91317,6 +91317,46 @@ var IXCSoftAPIClient = class extends APIClient {
|
|
|
91317
91317
|
|
|
91318
91318
|
// src/apis/clients/ixc-soft/ixc-soft-api.types.ts
|
|
91319
91319
|
var ixc_soft_api_types_exports = {};
|
|
91320
|
+
__export(ixc_soft_api_types_exports, {
|
|
91321
|
+
IXCSoftResponseSchema: () => IXCSoftResponseSchema,
|
|
91322
|
+
IxcSuOssChamadoResponseSchema: () => IxcSuOssChamadoResponseSchema,
|
|
91323
|
+
MonthlyFeesForClientResponseSchema: () => MonthlyFeesForClientResponseSchema
|
|
91324
|
+
});
|
|
91325
|
+
var import_zod3 = require("zod");
|
|
91326
|
+
|
|
91327
|
+
// src/apis/clients/ixc-soft/resources/su-oss-chamado/ixc-soft-su-oss-chamado.types.ts
|
|
91328
|
+
var import_zod = require("zod");
|
|
91329
|
+
var IxcSuOssChamadoResponseSchema = IXCSoftResponseSchema.merge(
|
|
91330
|
+
import_zod.z.object({
|
|
91331
|
+
atualiza_campos: import_zod.z.array(
|
|
91332
|
+
import_zod.z.object({
|
|
91333
|
+
tipo: import_zod.z.string(),
|
|
91334
|
+
campo: import_zod.z.string(),
|
|
91335
|
+
valor: import_zod.z.string()
|
|
91336
|
+
})
|
|
91337
|
+
).optional()
|
|
91338
|
+
})
|
|
91339
|
+
);
|
|
91340
|
+
|
|
91341
|
+
// src/apis/clients/ixc-soft/resources/monthly-fees-for-client/ixc-soft-monthly-fees-for-client.types.ts
|
|
91342
|
+
var import_zod2 = require("zod");
|
|
91343
|
+
var MonthlyFeesForClientResponseSchema = IXCSoftResponseSchema.merge(
|
|
91344
|
+
import_zod2.z.object({
|
|
91345
|
+
id_contrato: import_zod2.z.union([import_zod2.z.string(), import_zod2.z.number()]).optional(),
|
|
91346
|
+
tipo: import_zod2.z.string().optional(),
|
|
91347
|
+
id_cliente: import_zod2.z.union([import_zod2.z.string(), import_zod2.z.number()]).optional(),
|
|
91348
|
+
id_tipo_documento: import_zod2.z.string().optional(),
|
|
91349
|
+
action: import_zod2.z.string().optional()
|
|
91350
|
+
})
|
|
91351
|
+
);
|
|
91352
|
+
|
|
91353
|
+
// src/apis/clients/ixc-soft/ixc-soft-api.types.ts
|
|
91354
|
+
var IXCSoftResponseSchema = import_zod3.z.object({
|
|
91355
|
+
type: import_zod3.z.enum(["success", "error"]),
|
|
91356
|
+
message: import_zod3.z.string(),
|
|
91357
|
+
id: import_zod3.z.string().optional()
|
|
91358
|
+
// [key: string]: any;
|
|
91359
|
+
}).catchall(import_zod3.z.any());
|
|
91320
91360
|
|
|
91321
91361
|
// src/apis/clients/routines/resources/tasks/routines-tasks.resource.ts
|
|
91322
91362
|
var RoutinesTasksResource = class {
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __export = (target, all) => {
|
|
3
|
+
for (var name in all)
|
|
4
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
+
};
|
|
6
|
+
|
|
1
7
|
// src/databases/core/env.ts
|
|
2
8
|
function toNumber(value, fallback) {
|
|
3
9
|
const parsed = Number(value);
|
|
@@ -91272,6 +91278,46 @@ var IXCSoftAPIClient = class extends APIClient {
|
|
|
91272
91278
|
|
|
91273
91279
|
// src/apis/clients/ixc-soft/ixc-soft-api.types.ts
|
|
91274
91280
|
var ixc_soft_api_types_exports = {};
|
|
91281
|
+
__export(ixc_soft_api_types_exports, {
|
|
91282
|
+
IXCSoftResponseSchema: () => IXCSoftResponseSchema,
|
|
91283
|
+
IxcSuOssChamadoResponseSchema: () => IxcSuOssChamadoResponseSchema,
|
|
91284
|
+
MonthlyFeesForClientResponseSchema: () => MonthlyFeesForClientResponseSchema
|
|
91285
|
+
});
|
|
91286
|
+
import { z as z3 } from "zod";
|
|
91287
|
+
|
|
91288
|
+
// src/apis/clients/ixc-soft/resources/su-oss-chamado/ixc-soft-su-oss-chamado.types.ts
|
|
91289
|
+
import { z } from "zod";
|
|
91290
|
+
var IxcSuOssChamadoResponseSchema = IXCSoftResponseSchema.merge(
|
|
91291
|
+
z.object({
|
|
91292
|
+
atualiza_campos: z.array(
|
|
91293
|
+
z.object({
|
|
91294
|
+
tipo: z.string(),
|
|
91295
|
+
campo: z.string(),
|
|
91296
|
+
valor: z.string()
|
|
91297
|
+
})
|
|
91298
|
+
).optional()
|
|
91299
|
+
})
|
|
91300
|
+
);
|
|
91301
|
+
|
|
91302
|
+
// src/apis/clients/ixc-soft/resources/monthly-fees-for-client/ixc-soft-monthly-fees-for-client.types.ts
|
|
91303
|
+
import { z as z2 } from "zod";
|
|
91304
|
+
var MonthlyFeesForClientResponseSchema = IXCSoftResponseSchema.merge(
|
|
91305
|
+
z2.object({
|
|
91306
|
+
id_contrato: z2.union([z2.string(), z2.number()]).optional(),
|
|
91307
|
+
tipo: z2.string().optional(),
|
|
91308
|
+
id_cliente: z2.union([z2.string(), z2.number()]).optional(),
|
|
91309
|
+
id_tipo_documento: z2.string().optional(),
|
|
91310
|
+
action: z2.string().optional()
|
|
91311
|
+
})
|
|
91312
|
+
);
|
|
91313
|
+
|
|
91314
|
+
// src/apis/clients/ixc-soft/ixc-soft-api.types.ts
|
|
91315
|
+
var IXCSoftResponseSchema = z3.object({
|
|
91316
|
+
type: z3.enum(["success", "error"]),
|
|
91317
|
+
message: z3.string(),
|
|
91318
|
+
id: z3.string().optional()
|
|
91319
|
+
// [key: string]: any;
|
|
91320
|
+
}).catchall(z3.any());
|
|
91275
91321
|
|
|
91276
91322
|
// src/apis/clients/routines/resources/tasks/routines-tasks.resource.ts
|
|
91277
91323
|
var RoutinesTasksResource = class {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cristian-israel/giganet_lib_conecta",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.45",
|
|
4
4
|
"description": "Database Connector Layer",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "tsup src/index.ts --format cjs,esm --dts --clean --external mongoose,sequelize,mysql2",
|
|
12
|
+
"build": "tsup src/index.ts --format cjs,esm --dts --clean --external mongoose,sequelize,mysql2,zod",
|
|
13
13
|
"release": "npm version patch && npm publish && npm view @cristian-israel/giganet_lib_conecta",
|
|
14
14
|
"type-check": "tsc --noEmit > type-check.log 2>&1",
|
|
15
15
|
"dev": "tsup src/index.ts --watch"
|
|
@@ -48,7 +48,8 @@
|
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"mongoose": "^9.3.3",
|
|
50
50
|
"mysql2": "^3.20.0",
|
|
51
|
-
"sequelize": "^6.37.8"
|
|
51
|
+
"sequelize": "^6.37.8",
|
|
52
|
+
"zod": "^4.3.6"
|
|
52
53
|
},
|
|
53
54
|
"publishConfig": {
|
|
54
55
|
"access": "public"
|
|
@@ -59,6 +60,7 @@
|
|
|
59
60
|
"sideEffects": false,
|
|
60
61
|
"dependencies": {
|
|
61
62
|
"axios": "^1.15.1",
|
|
62
|
-
"https": "^1.0.0"
|
|
63
|
+
"https": "^1.0.0",
|
|
64
|
+
"zod": "^4.3.6"
|
|
63
65
|
}
|
|
64
66
|
}
|