@cristian-israel/giganet_lib_conecta 1.0.43 → 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 +58 -27
- package/dist/index.d.ts +58 -27
- package/dist/index.js +60 -0
- package/dist/index.mjs +66 -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;
|
|
@@ -36800,35 +36804,62 @@ declare class SuOssChamadoResource {
|
|
|
36800
36804
|
}): Promise<IxcSuOssChamadoResponse>;
|
|
36801
36805
|
}
|
|
36802
36806
|
|
|
36803
|
-
declare class IXCSoftAPIClient extends APIClient {
|
|
36804
|
-
readonly ordensDeServico: SuOssChamadoResource;
|
|
36805
|
-
constructor(config: APIConfigType);
|
|
36806
|
-
}
|
|
36807
|
-
|
|
36808
36807
|
interface MonthlyFeesForClientInput {
|
|
36809
36808
|
id_contrato: number | string;
|
|
36810
36809
|
id_cliente: number | string;
|
|
36811
36810
|
tipo: string;
|
|
36812
36811
|
}
|
|
36813
|
-
|
|
36814
|
-
type:
|
|
36815
|
-
|
|
36816
|
-
|
|
36817
|
-
|
|
36818
|
-
|
|
36819
|
-
|
|
36820
|
-
|
|
36821
|
-
|
|
36822
|
-
|
|
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>;
|
|
36826
|
+
|
|
36827
|
+
declare class MonthlyFeesForClientResource {
|
|
36828
|
+
private readonly client;
|
|
36829
|
+
private readonly endpoint;
|
|
36830
|
+
constructor(client: APIClient);
|
|
36831
|
+
/**
|
|
36832
|
+
* Gera o financeiro para um contrato.
|
|
36833
|
+
* @param data Dados necessários para a geração (id_contrato, id_cliente, tipo)
|
|
36834
|
+
*/
|
|
36835
|
+
generate(data: MonthlyFeesForClientInput): Promise<MonthlyFeesForClientResponse>;
|
|
36823
36836
|
}
|
|
36824
36837
|
|
|
36838
|
+
declare class IXCSoftAPIClient extends APIClient {
|
|
36839
|
+
readonly ordensDeServico: SuOssChamadoResource;
|
|
36840
|
+
readonly monthlyFeesForClient: MonthlyFeesForClientResource;
|
|
36841
|
+
constructor(config: APIConfigType);
|
|
36842
|
+
}
|
|
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;
|
|
36825
36854
|
type ixcSoftApi_types_IxcSuOssChamadoResponse = IxcSuOssChamadoResponse;
|
|
36855
|
+
declare const ixcSoftApi_types_IxcSuOssChamadoResponseSchema: typeof IxcSuOssChamadoResponseSchema;
|
|
36826
36856
|
type ixcSoftApi_types_MonthlyFeesForClientInput = MonthlyFeesForClientInput;
|
|
36827
36857
|
type ixcSoftApi_types_MonthlyFeesForClientResponse = MonthlyFeesForClientResponse;
|
|
36858
|
+
declare const ixcSoftApi_types_MonthlyFeesForClientResponseSchema: typeof MonthlyFeesForClientResponseSchema;
|
|
36828
36859
|
type ixcSoftApi_types_SuOssChamadoInput = SuOssChamadoInput;
|
|
36829
36860
|
type ixcSoftApi_types_SuOssChamadoListFilters = SuOssChamadoListFilters;
|
|
36830
36861
|
declare namespace ixcSoftApi_types {
|
|
36831
|
-
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 };
|
|
36832
36863
|
}
|
|
36833
36864
|
|
|
36834
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;
|
|
@@ -36800,35 +36804,62 @@ declare class SuOssChamadoResource {
|
|
|
36800
36804
|
}): Promise<IxcSuOssChamadoResponse>;
|
|
36801
36805
|
}
|
|
36802
36806
|
|
|
36803
|
-
declare class IXCSoftAPIClient extends APIClient {
|
|
36804
|
-
readonly ordensDeServico: SuOssChamadoResource;
|
|
36805
|
-
constructor(config: APIConfigType);
|
|
36806
|
-
}
|
|
36807
|
-
|
|
36808
36807
|
interface MonthlyFeesForClientInput {
|
|
36809
36808
|
id_contrato: number | string;
|
|
36810
36809
|
id_cliente: number | string;
|
|
36811
36810
|
tipo: string;
|
|
36812
36811
|
}
|
|
36813
|
-
|
|
36814
|
-
type:
|
|
36815
|
-
|
|
36816
|
-
|
|
36817
|
-
|
|
36818
|
-
|
|
36819
|
-
|
|
36820
|
-
|
|
36821
|
-
|
|
36822
|
-
|
|
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>;
|
|
36826
|
+
|
|
36827
|
+
declare class MonthlyFeesForClientResource {
|
|
36828
|
+
private readonly client;
|
|
36829
|
+
private readonly endpoint;
|
|
36830
|
+
constructor(client: APIClient);
|
|
36831
|
+
/**
|
|
36832
|
+
* Gera o financeiro para um contrato.
|
|
36833
|
+
* @param data Dados necessários para a geração (id_contrato, id_cliente, tipo)
|
|
36834
|
+
*/
|
|
36835
|
+
generate(data: MonthlyFeesForClientInput): Promise<MonthlyFeesForClientResponse>;
|
|
36823
36836
|
}
|
|
36824
36837
|
|
|
36838
|
+
declare class IXCSoftAPIClient extends APIClient {
|
|
36839
|
+
readonly ordensDeServico: SuOssChamadoResource;
|
|
36840
|
+
readonly monthlyFeesForClient: MonthlyFeesForClientResource;
|
|
36841
|
+
constructor(config: APIConfigType);
|
|
36842
|
+
}
|
|
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;
|
|
36825
36854
|
type ixcSoftApi_types_IxcSuOssChamadoResponse = IxcSuOssChamadoResponse;
|
|
36855
|
+
declare const ixcSoftApi_types_IxcSuOssChamadoResponseSchema: typeof IxcSuOssChamadoResponseSchema;
|
|
36826
36856
|
type ixcSoftApi_types_MonthlyFeesForClientInput = MonthlyFeesForClientInput;
|
|
36827
36857
|
type ixcSoftApi_types_MonthlyFeesForClientResponse = MonthlyFeesForClientResponse;
|
|
36858
|
+
declare const ixcSoftApi_types_MonthlyFeesForClientResponseSchema: typeof MonthlyFeesForClientResponseSchema;
|
|
36828
36859
|
type ixcSoftApi_types_SuOssChamadoInput = SuOssChamadoInput;
|
|
36829
36860
|
type ixcSoftApi_types_SuOssChamadoListFilters = SuOssChamadoListFilters;
|
|
36830
36861
|
declare namespace ixcSoftApi_types {
|
|
36831
|
-
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 };
|
|
36832
36863
|
}
|
|
36833
36864
|
|
|
36834
36865
|
declare const RoutinesTasksSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
package/dist/index.js
CHANGED
|
@@ -91278,6 +91278,25 @@ var SuOssChamadoResource = class {
|
|
|
91278
91278
|
}
|
|
91279
91279
|
};
|
|
91280
91280
|
|
|
91281
|
+
// src/apis/clients/ixc-soft/resources/monthly-fees-for-client/ixc-soft-monthly-fees-for-client.resource.ts
|
|
91282
|
+
var MonthlyFeesForClientResource = class {
|
|
91283
|
+
constructor(client) {
|
|
91284
|
+
this.client = client;
|
|
91285
|
+
this.endpoint = "/gerar_financeiro_contrato_15314";
|
|
91286
|
+
}
|
|
91287
|
+
/**
|
|
91288
|
+
* Gera o financeiro para um contrato.
|
|
91289
|
+
* @param data Dados necessários para a geração (id_contrato, id_cliente, tipo)
|
|
91290
|
+
*/
|
|
91291
|
+
async generate(data) {
|
|
91292
|
+
return this.client.post(this.endpoint, data, {
|
|
91293
|
+
headers: {
|
|
91294
|
+
"Content-Type": "application/json"
|
|
91295
|
+
}
|
|
91296
|
+
});
|
|
91297
|
+
}
|
|
91298
|
+
};
|
|
91299
|
+
|
|
91281
91300
|
// src/apis/clients/ixc-soft/ixc-soft-api.client.ts
|
|
91282
91301
|
var IXCSoftAPIClient = class extends APIClient {
|
|
91283
91302
|
constructor(config) {
|
|
@@ -91292,11 +91311,52 @@ var IXCSoftAPIClient = class extends APIClient {
|
|
|
91292
91311
|
}
|
|
91293
91312
|
});
|
|
91294
91313
|
this.ordensDeServico = new SuOssChamadoResource(this);
|
|
91314
|
+
this.monthlyFeesForClient = new MonthlyFeesForClientResource(this);
|
|
91295
91315
|
}
|
|
91296
91316
|
};
|
|
91297
91317
|
|
|
91298
91318
|
// src/apis/clients/ixc-soft/ixc-soft-api.types.ts
|
|
91299
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());
|
|
91300
91360
|
|
|
91301
91361
|
// src/apis/clients/routines/resources/tasks/routines-tasks.resource.ts
|
|
91302
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);
|
|
@@ -91233,6 +91239,25 @@ var SuOssChamadoResource = class {
|
|
|
91233
91239
|
}
|
|
91234
91240
|
};
|
|
91235
91241
|
|
|
91242
|
+
// src/apis/clients/ixc-soft/resources/monthly-fees-for-client/ixc-soft-monthly-fees-for-client.resource.ts
|
|
91243
|
+
var MonthlyFeesForClientResource = class {
|
|
91244
|
+
constructor(client) {
|
|
91245
|
+
this.client = client;
|
|
91246
|
+
this.endpoint = "/gerar_financeiro_contrato_15314";
|
|
91247
|
+
}
|
|
91248
|
+
/**
|
|
91249
|
+
* Gera o financeiro para um contrato.
|
|
91250
|
+
* @param data Dados necessários para a geração (id_contrato, id_cliente, tipo)
|
|
91251
|
+
*/
|
|
91252
|
+
async generate(data) {
|
|
91253
|
+
return this.client.post(this.endpoint, data, {
|
|
91254
|
+
headers: {
|
|
91255
|
+
"Content-Type": "application/json"
|
|
91256
|
+
}
|
|
91257
|
+
});
|
|
91258
|
+
}
|
|
91259
|
+
};
|
|
91260
|
+
|
|
91236
91261
|
// src/apis/clients/ixc-soft/ixc-soft-api.client.ts
|
|
91237
91262
|
var IXCSoftAPIClient = class extends APIClient {
|
|
91238
91263
|
constructor(config) {
|
|
@@ -91247,11 +91272,52 @@ var IXCSoftAPIClient = class extends APIClient {
|
|
|
91247
91272
|
}
|
|
91248
91273
|
});
|
|
91249
91274
|
this.ordensDeServico = new SuOssChamadoResource(this);
|
|
91275
|
+
this.monthlyFeesForClient = new MonthlyFeesForClientResource(this);
|
|
91250
91276
|
}
|
|
91251
91277
|
};
|
|
91252
91278
|
|
|
91253
91279
|
// src/apis/clients/ixc-soft/ixc-soft-api.types.ts
|
|
91254
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());
|
|
91255
91321
|
|
|
91256
91322
|
// src/apis/clients/routines/resources/tasks/routines-tasks.resource.ts
|
|
91257
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
|
}
|