@cristian-israel/giganet_lib_conecta 1.0.46 → 1.0.48

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
@@ -3,8 +3,8 @@ import { Model, Optional, Sequelize as Sequelize$1, Attributes } from 'sequelize
3
3
  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
- import { AxiosRequestConfig, AxiosInstance } from 'axios';
7
6
  import { z } from 'zod';
7
+ import { AxiosRequestConfig, AxiosInstance } from 'axios';
8
8
 
9
9
  type LogLevel = "INFO" | "ERROR" | "WARN";
10
10
  type LoggerParams = {
@@ -36624,52 +36624,6 @@ declare class RoutinesMongoService {
36624
36624
  getCollection<K extends keyof RoutinesMongoCollectionsModels>(key: K): RoutinesMongoCollectionsModels[K];
36625
36625
  }
36626
36626
 
36627
- type APIAuthConfig = {
36628
- type: "bearer";
36629
- token: string;
36630
- } | {
36631
- type: "basic";
36632
- credentials: string;
36633
- } | {
36634
- type: "basic-raw";
36635
- username: string;
36636
- password?: string;
36637
- } | {
36638
- type: "none";
36639
- };
36640
- interface APIClientConfig {
36641
- baseURL: string;
36642
- auth: APIAuthConfig;
36643
- timeout?: number;
36644
- rejectUnauthorized?: boolean;
36645
- /** Interceptor customizado de request — ex: adicionar headers extras */
36646
- onRequest?: (config: AxiosRequestConfig) => AxiosRequestConfig;
36647
- /** Interceptor customizado de erro — ex: logging específico do client */
36648
- onError?: (error: APIClientError) => never;
36649
- }
36650
- interface APIClientError {
36651
- status: number | null;
36652
- message: string;
36653
- raw: unknown;
36654
- }
36655
- interface APIConfigType {
36656
- baseURL: string;
36657
- token?: string;
36658
- }
36659
-
36660
- declare class APIClient {
36661
- private readonly config;
36662
- protected readonly http: AxiosInstance;
36663
- constructor(config: APIClientConfig);
36664
- private applyAuthInterceptor;
36665
- private applyErrorInterceptor;
36666
- get<T>(url: string, config?: AxiosRequestConfig): Promise<T>;
36667
- post<T>(url: string, body?: unknown, config?: AxiosRequestConfig): Promise<T>;
36668
- put<T>(url: string, body?: unknown, config?: AxiosRequestConfig): Promise<T>;
36669
- patch<T>(url: string, body?: unknown, config?: AxiosRequestConfig): Promise<T>;
36670
- delete<T>(url: string, config?: AxiosRequestConfig): Promise<T>;
36671
- }
36672
-
36673
36627
  interface SuOssChamadoInput {
36674
36628
  tipo?: string;
36675
36629
  id_ticket?: string;
@@ -37194,9 +37148,9 @@ declare const IxcSuOssChamadoResponseSchema: z.ZodObject<{
37194
37148
  }[] | undefined;
37195
37149
  }) => unknown | Promise<unknown>>(check: Ch, params?: string | {
37196
37150
  path?: PropertyKey[] | undefined | undefined;
37197
- params?: Record<string, any> | undefined;
37198
37151
  abort?: boolean | undefined | undefined;
37199
37152
  when?: ((payload: z.core.ParsePayload) => boolean) | undefined | undefined;
37153
+ params?: Record<string, any> | undefined;
37200
37154
  error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssue>> | undefined;
37201
37155
  message?: string | undefined | undefined;
37202
37156
  } | undefined) => Ch extends (arg: any) => arg is infer R ? z.ZodObject<{
@@ -37514,6 +37468,93 @@ declare const IxcSuOssChamadoResponseSchema: z.ZodObject<{
37514
37468
  }, z.core.$catchall<z.ZodAny>>;
37515
37469
  type IxcSuOssChamadoResponse = z.infer<typeof IxcSuOssChamadoResponseSchema>;
37516
37470
 
37471
+ interface MonthlyFeesForClientInput {
37472
+ id_contrato: number | string;
37473
+ id_cliente: number | string;
37474
+ tipo: string;
37475
+ }
37476
+ declare const MonthlyFeesForClientResponseSchema: z.ZodObject<{
37477
+ type: z.ZodEnum<{
37478
+ success: "success";
37479
+ error: "error";
37480
+ }>;
37481
+ message: z.ZodString;
37482
+ id: z.ZodOptional<z.ZodString>;
37483
+ id_contrato: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
37484
+ tipo: z.ZodOptional<z.ZodString>;
37485
+ id_cliente: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
37486
+ id_tipo_documento: z.ZodOptional<z.ZodString>;
37487
+ action: z.ZodOptional<z.ZodString>;
37488
+ }, z.core.$catchall<z.ZodAny>>;
37489
+ type MonthlyFeesForClientResponse = z.infer<typeof MonthlyFeesForClientResponseSchema>;
37490
+
37491
+ declare const IXCSoftResponseSchema: z.ZodObject<{
37492
+ type: z.ZodEnum<{
37493
+ success: "success";
37494
+ error: "error";
37495
+ }>;
37496
+ message: z.ZodString;
37497
+ id: z.ZodOptional<z.ZodString>;
37498
+ }, z.core.$catchall<z.ZodAny>>;
37499
+
37500
+ declare const ixcSoftApi_types_IXCSoftResponseSchema: typeof IXCSoftResponseSchema;
37501
+ type ixcSoftApi_types_IxcSuOssChamadoResponse = IxcSuOssChamadoResponse;
37502
+ declare const ixcSoftApi_types_IxcSuOssChamadoResponseSchema: typeof IxcSuOssChamadoResponseSchema;
37503
+ type ixcSoftApi_types_MonthlyFeesForClientInput = MonthlyFeesForClientInput;
37504
+ type ixcSoftApi_types_MonthlyFeesForClientResponse = MonthlyFeesForClientResponse;
37505
+ declare const ixcSoftApi_types_MonthlyFeesForClientResponseSchema: typeof MonthlyFeesForClientResponseSchema;
37506
+ type ixcSoftApi_types_SuOssChamadoInput = SuOssChamadoInput;
37507
+ type ixcSoftApi_types_SuOssChamadoListFilters = SuOssChamadoListFilters;
37508
+ declare namespace ixcSoftApi_types {
37509
+ 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 };
37510
+ }
37511
+
37512
+ type APIAuthConfig = {
37513
+ type: "bearer";
37514
+ token: string;
37515
+ } | {
37516
+ type: "basic";
37517
+ credentials: string;
37518
+ } | {
37519
+ type: "basic-raw";
37520
+ username: string;
37521
+ password?: string;
37522
+ } | {
37523
+ type: "none";
37524
+ };
37525
+ interface APIClientConfig {
37526
+ baseURL: string;
37527
+ auth: APIAuthConfig;
37528
+ timeout?: number;
37529
+ rejectUnauthorized?: boolean;
37530
+ /** Interceptor customizado de request — ex: adicionar headers extras */
37531
+ onRequest?: (config: AxiosRequestConfig) => AxiosRequestConfig;
37532
+ /** Interceptor customizado de erro — ex: logging específico do client */
37533
+ onError?: (error: APIClientError) => never;
37534
+ }
37535
+ interface APIClientError {
37536
+ status: number | null;
37537
+ message: string;
37538
+ raw: unknown;
37539
+ }
37540
+ interface APIConfigType {
37541
+ baseURL: string;
37542
+ token?: string;
37543
+ }
37544
+
37545
+ declare class APIClient {
37546
+ private readonly config;
37547
+ protected readonly http: AxiosInstance;
37548
+ constructor(config: APIClientConfig);
37549
+ private applyAuthInterceptor;
37550
+ private applyErrorInterceptor;
37551
+ get<T>(url: string, config?: AxiosRequestConfig): Promise<T>;
37552
+ post<T>(url: string, body?: unknown, config?: AxiosRequestConfig): Promise<T>;
37553
+ put<T>(url: string, body?: unknown, config?: AxiosRequestConfig): Promise<T>;
37554
+ patch<T>(url: string, body?: unknown, config?: AxiosRequestConfig): Promise<T>;
37555
+ delete<T>(url: string, config?: AxiosRequestConfig): Promise<T>;
37556
+ }
37557
+
37517
37558
  declare class SuOssChamadoResource {
37518
37559
  private readonly client;
37519
37560
  private readonly endpoint;
@@ -37551,26 +37592,6 @@ declare class SuOssChamadoResource {
37551
37592
  }): Promise<IxcSuOssChamadoResponse>;
37552
37593
  }
37553
37594
 
37554
- interface MonthlyFeesForClientInput {
37555
- id_contrato: number | string;
37556
- id_cliente: number | string;
37557
- tipo: string;
37558
- }
37559
- declare const MonthlyFeesForClientResponseSchema: z.ZodObject<{
37560
- type: z.ZodEnum<{
37561
- success: "success";
37562
- error: "error";
37563
- }>;
37564
- message: z.ZodString;
37565
- id: z.ZodOptional<z.ZodString>;
37566
- id_contrato: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
37567
- tipo: z.ZodOptional<z.ZodString>;
37568
- id_cliente: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
37569
- id_tipo_documento: z.ZodOptional<z.ZodString>;
37570
- action: z.ZodOptional<z.ZodString>;
37571
- }, z.core.$catchall<z.ZodAny>>;
37572
- type MonthlyFeesForClientResponse = z.infer<typeof MonthlyFeesForClientResponseSchema>;
37573
-
37574
37595
  declare class MonthlyFeesForClientResource {
37575
37596
  private readonly client;
37576
37597
  private readonly endpoint;
@@ -37588,27 +37609,6 @@ declare class IXCSoftAPIClient extends APIClient {
37588
37609
  constructor(config: APIConfigType);
37589
37610
  }
37590
37611
 
37591
- declare const IXCSoftResponseSchema: z.ZodObject<{
37592
- type: z.ZodEnum<{
37593
- success: "success";
37594
- error: "error";
37595
- }>;
37596
- message: z.ZodString;
37597
- id: z.ZodOptional<z.ZodString>;
37598
- }, z.core.$catchall<z.ZodAny>>;
37599
-
37600
- declare const ixcSoftApi_types_IXCSoftResponseSchema: typeof IXCSoftResponseSchema;
37601
- type ixcSoftApi_types_IxcSuOssChamadoResponse = IxcSuOssChamadoResponse;
37602
- declare const ixcSoftApi_types_IxcSuOssChamadoResponseSchema: typeof IxcSuOssChamadoResponseSchema;
37603
- type ixcSoftApi_types_MonthlyFeesForClientInput = MonthlyFeesForClientInput;
37604
- type ixcSoftApi_types_MonthlyFeesForClientResponse = MonthlyFeesForClientResponse;
37605
- declare const ixcSoftApi_types_MonthlyFeesForClientResponseSchema: typeof MonthlyFeesForClientResponseSchema;
37606
- type ixcSoftApi_types_SuOssChamadoInput = SuOssChamadoInput;
37607
- type ixcSoftApi_types_SuOssChamadoListFilters = SuOssChamadoListFilters;
37608
- declare namespace ixcSoftApi_types {
37609
- 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 };
37610
- }
37611
-
37612
37612
  declare const RoutinesTasksSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
37613
37613
  timestamps: true;
37614
37614
  }, {
@@ -37754,6 +37754,17 @@ interface RoutinesTasksResponse extends HydratedDocument<InferSchemaType<typeof
37754
37754
  interface RoutinesTasksLogResponse extends HydratedDocument<InferSchemaType<typeof RoutinesLogerSchema>> {
37755
37755
  }
37756
37756
 
37757
+ type routinesApi_types_RoutinesTasksCreateInput = RoutinesTasksCreateInput;
37758
+ type routinesApi_types_RoutinesTasksInput = RoutinesTasksInput;
37759
+ type routinesApi_types_RoutinesTasksLogResponse = RoutinesTasksLogResponse;
37760
+ type routinesApi_types_RoutinesTasksResponse = RoutinesTasksResponse;
37761
+ type routinesApi_types_RoutinesTasksSyncJobsResponse = RoutinesTasksSyncJobsResponse;
37762
+ type routinesApi_types_RoutinesTasksToggleActiveInput = RoutinesTasksToggleActiveInput;
37763
+ type routinesApi_types_RoutinesTasksUpdateInput = RoutinesTasksUpdateInput;
37764
+ declare namespace routinesApi_types {
37765
+ export type { routinesApi_types_RoutinesTasksCreateInput as RoutinesTasksCreateInput, routinesApi_types_RoutinesTasksInput as RoutinesTasksInput, routinesApi_types_RoutinesTasksLogResponse as RoutinesTasksLogResponse, routinesApi_types_RoutinesTasksResponse as RoutinesTasksResponse, routinesApi_types_RoutinesTasksSyncJobsResponse as RoutinesTasksSyncJobsResponse, routinesApi_types_RoutinesTasksToggleActiveInput as RoutinesTasksToggleActiveInput, routinesApi_types_RoutinesTasksUpdateInput as RoutinesTasksUpdateInput };
37766
+ }
37767
+
37757
37768
  declare class RoutinesTasksResource {
37758
37769
  private readonly client;
37759
37770
  private readonly endpoint;
@@ -37805,15 +37816,4 @@ declare class RoutinesAPIClient extends APIClient {
37805
37816
  constructor(config: APIConfigType);
37806
37817
  }
37807
37818
 
37808
- type routinesApi_types_RoutinesTasksCreateInput = RoutinesTasksCreateInput;
37809
- type routinesApi_types_RoutinesTasksInput = RoutinesTasksInput;
37810
- type routinesApi_types_RoutinesTasksLogResponse = RoutinesTasksLogResponse;
37811
- type routinesApi_types_RoutinesTasksResponse = RoutinesTasksResponse;
37812
- type routinesApi_types_RoutinesTasksSyncJobsResponse = RoutinesTasksSyncJobsResponse;
37813
- type routinesApi_types_RoutinesTasksToggleActiveInput = RoutinesTasksToggleActiveInput;
37814
- type routinesApi_types_RoutinesTasksUpdateInput = RoutinesTasksUpdateInput;
37815
- declare namespace routinesApi_types {
37816
- export type { routinesApi_types_RoutinesTasksCreateInput as RoutinesTasksCreateInput, routinesApi_types_RoutinesTasksInput as RoutinesTasksInput, routinesApi_types_RoutinesTasksLogResponse as RoutinesTasksLogResponse, routinesApi_types_RoutinesTasksResponse as RoutinesTasksResponse, routinesApi_types_RoutinesTasksSyncJobsResponse as RoutinesTasksSyncJobsResponse, routinesApi_types_RoutinesTasksToggleActiveInput as RoutinesTasksToggleActiveInput, routinesApi_types_RoutinesTasksUpdateInput as RoutinesTasksUpdateInput };
37817
- }
37818
-
37819
37819
  export { IXCSoftAPIClient, ixcSoftApi_types as IXCSoftAPITypes, type IXCSoftMysqlModels, type IXCSoftMysqlModelsAttributes, IXCSoftMysqlService, type OPASuiteMongoCollectionsModels, type OPASuiteMongoDocuments, OPASuiteMongoService, RoutinesAPIClient, routinesApi_types as RoutinesAPITypes, type RoutinesMongoCollectionsModels, type RoutinesMongoDocuments, RoutinesMongoService, type ToolsMongoCollectionsModels, type ToolsMongoDocuments, ToolsMongoService, logger, printSignature };
package/dist/index.d.ts CHANGED
@@ -3,8 +3,8 @@ import { Model, Optional, Sequelize as Sequelize$1, Attributes } from 'sequelize
3
3
  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
- import { AxiosRequestConfig, AxiosInstance } from 'axios';
7
6
  import { z } from 'zod';
7
+ import { AxiosRequestConfig, AxiosInstance } from 'axios';
8
8
 
9
9
  type LogLevel = "INFO" | "ERROR" | "WARN";
10
10
  type LoggerParams = {
@@ -36624,52 +36624,6 @@ declare class RoutinesMongoService {
36624
36624
  getCollection<K extends keyof RoutinesMongoCollectionsModels>(key: K): RoutinesMongoCollectionsModels[K];
36625
36625
  }
36626
36626
 
36627
- type APIAuthConfig = {
36628
- type: "bearer";
36629
- token: string;
36630
- } | {
36631
- type: "basic";
36632
- credentials: string;
36633
- } | {
36634
- type: "basic-raw";
36635
- username: string;
36636
- password?: string;
36637
- } | {
36638
- type: "none";
36639
- };
36640
- interface APIClientConfig {
36641
- baseURL: string;
36642
- auth: APIAuthConfig;
36643
- timeout?: number;
36644
- rejectUnauthorized?: boolean;
36645
- /** Interceptor customizado de request — ex: adicionar headers extras */
36646
- onRequest?: (config: AxiosRequestConfig) => AxiosRequestConfig;
36647
- /** Interceptor customizado de erro — ex: logging específico do client */
36648
- onError?: (error: APIClientError) => never;
36649
- }
36650
- interface APIClientError {
36651
- status: number | null;
36652
- message: string;
36653
- raw: unknown;
36654
- }
36655
- interface APIConfigType {
36656
- baseURL: string;
36657
- token?: string;
36658
- }
36659
-
36660
- declare class APIClient {
36661
- private readonly config;
36662
- protected readonly http: AxiosInstance;
36663
- constructor(config: APIClientConfig);
36664
- private applyAuthInterceptor;
36665
- private applyErrorInterceptor;
36666
- get<T>(url: string, config?: AxiosRequestConfig): Promise<T>;
36667
- post<T>(url: string, body?: unknown, config?: AxiosRequestConfig): Promise<T>;
36668
- put<T>(url: string, body?: unknown, config?: AxiosRequestConfig): Promise<T>;
36669
- patch<T>(url: string, body?: unknown, config?: AxiosRequestConfig): Promise<T>;
36670
- delete<T>(url: string, config?: AxiosRequestConfig): Promise<T>;
36671
- }
36672
-
36673
36627
  interface SuOssChamadoInput {
36674
36628
  tipo?: string;
36675
36629
  id_ticket?: string;
@@ -37194,9 +37148,9 @@ declare const IxcSuOssChamadoResponseSchema: z.ZodObject<{
37194
37148
  }[] | undefined;
37195
37149
  }) => unknown | Promise<unknown>>(check: Ch, params?: string | {
37196
37150
  path?: PropertyKey[] | undefined | undefined;
37197
- params?: Record<string, any> | undefined;
37198
37151
  abort?: boolean | undefined | undefined;
37199
37152
  when?: ((payload: z.core.ParsePayload) => boolean) | undefined | undefined;
37153
+ params?: Record<string, any> | undefined;
37200
37154
  error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssue>> | undefined;
37201
37155
  message?: string | undefined | undefined;
37202
37156
  } | undefined) => Ch extends (arg: any) => arg is infer R ? z.ZodObject<{
@@ -37514,6 +37468,93 @@ declare const IxcSuOssChamadoResponseSchema: z.ZodObject<{
37514
37468
  }, z.core.$catchall<z.ZodAny>>;
37515
37469
  type IxcSuOssChamadoResponse = z.infer<typeof IxcSuOssChamadoResponseSchema>;
37516
37470
 
37471
+ interface MonthlyFeesForClientInput {
37472
+ id_contrato: number | string;
37473
+ id_cliente: number | string;
37474
+ tipo: string;
37475
+ }
37476
+ declare const MonthlyFeesForClientResponseSchema: z.ZodObject<{
37477
+ type: z.ZodEnum<{
37478
+ success: "success";
37479
+ error: "error";
37480
+ }>;
37481
+ message: z.ZodString;
37482
+ id: z.ZodOptional<z.ZodString>;
37483
+ id_contrato: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
37484
+ tipo: z.ZodOptional<z.ZodString>;
37485
+ id_cliente: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
37486
+ id_tipo_documento: z.ZodOptional<z.ZodString>;
37487
+ action: z.ZodOptional<z.ZodString>;
37488
+ }, z.core.$catchall<z.ZodAny>>;
37489
+ type MonthlyFeesForClientResponse = z.infer<typeof MonthlyFeesForClientResponseSchema>;
37490
+
37491
+ declare const IXCSoftResponseSchema: z.ZodObject<{
37492
+ type: z.ZodEnum<{
37493
+ success: "success";
37494
+ error: "error";
37495
+ }>;
37496
+ message: z.ZodString;
37497
+ id: z.ZodOptional<z.ZodString>;
37498
+ }, z.core.$catchall<z.ZodAny>>;
37499
+
37500
+ declare const ixcSoftApi_types_IXCSoftResponseSchema: typeof IXCSoftResponseSchema;
37501
+ type ixcSoftApi_types_IxcSuOssChamadoResponse = IxcSuOssChamadoResponse;
37502
+ declare const ixcSoftApi_types_IxcSuOssChamadoResponseSchema: typeof IxcSuOssChamadoResponseSchema;
37503
+ type ixcSoftApi_types_MonthlyFeesForClientInput = MonthlyFeesForClientInput;
37504
+ type ixcSoftApi_types_MonthlyFeesForClientResponse = MonthlyFeesForClientResponse;
37505
+ declare const ixcSoftApi_types_MonthlyFeesForClientResponseSchema: typeof MonthlyFeesForClientResponseSchema;
37506
+ type ixcSoftApi_types_SuOssChamadoInput = SuOssChamadoInput;
37507
+ type ixcSoftApi_types_SuOssChamadoListFilters = SuOssChamadoListFilters;
37508
+ declare namespace ixcSoftApi_types {
37509
+ 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 };
37510
+ }
37511
+
37512
+ type APIAuthConfig = {
37513
+ type: "bearer";
37514
+ token: string;
37515
+ } | {
37516
+ type: "basic";
37517
+ credentials: string;
37518
+ } | {
37519
+ type: "basic-raw";
37520
+ username: string;
37521
+ password?: string;
37522
+ } | {
37523
+ type: "none";
37524
+ };
37525
+ interface APIClientConfig {
37526
+ baseURL: string;
37527
+ auth: APIAuthConfig;
37528
+ timeout?: number;
37529
+ rejectUnauthorized?: boolean;
37530
+ /** Interceptor customizado de request — ex: adicionar headers extras */
37531
+ onRequest?: (config: AxiosRequestConfig) => AxiosRequestConfig;
37532
+ /** Interceptor customizado de erro — ex: logging específico do client */
37533
+ onError?: (error: APIClientError) => never;
37534
+ }
37535
+ interface APIClientError {
37536
+ status: number | null;
37537
+ message: string;
37538
+ raw: unknown;
37539
+ }
37540
+ interface APIConfigType {
37541
+ baseURL: string;
37542
+ token?: string;
37543
+ }
37544
+
37545
+ declare class APIClient {
37546
+ private readonly config;
37547
+ protected readonly http: AxiosInstance;
37548
+ constructor(config: APIClientConfig);
37549
+ private applyAuthInterceptor;
37550
+ private applyErrorInterceptor;
37551
+ get<T>(url: string, config?: AxiosRequestConfig): Promise<T>;
37552
+ post<T>(url: string, body?: unknown, config?: AxiosRequestConfig): Promise<T>;
37553
+ put<T>(url: string, body?: unknown, config?: AxiosRequestConfig): Promise<T>;
37554
+ patch<T>(url: string, body?: unknown, config?: AxiosRequestConfig): Promise<T>;
37555
+ delete<T>(url: string, config?: AxiosRequestConfig): Promise<T>;
37556
+ }
37557
+
37517
37558
  declare class SuOssChamadoResource {
37518
37559
  private readonly client;
37519
37560
  private readonly endpoint;
@@ -37551,26 +37592,6 @@ declare class SuOssChamadoResource {
37551
37592
  }): Promise<IxcSuOssChamadoResponse>;
37552
37593
  }
37553
37594
 
37554
- interface MonthlyFeesForClientInput {
37555
- id_contrato: number | string;
37556
- id_cliente: number | string;
37557
- tipo: string;
37558
- }
37559
- declare const MonthlyFeesForClientResponseSchema: z.ZodObject<{
37560
- type: z.ZodEnum<{
37561
- success: "success";
37562
- error: "error";
37563
- }>;
37564
- message: z.ZodString;
37565
- id: z.ZodOptional<z.ZodString>;
37566
- id_contrato: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
37567
- tipo: z.ZodOptional<z.ZodString>;
37568
- id_cliente: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
37569
- id_tipo_documento: z.ZodOptional<z.ZodString>;
37570
- action: z.ZodOptional<z.ZodString>;
37571
- }, z.core.$catchall<z.ZodAny>>;
37572
- type MonthlyFeesForClientResponse = z.infer<typeof MonthlyFeesForClientResponseSchema>;
37573
-
37574
37595
  declare class MonthlyFeesForClientResource {
37575
37596
  private readonly client;
37576
37597
  private readonly endpoint;
@@ -37588,27 +37609,6 @@ declare class IXCSoftAPIClient extends APIClient {
37588
37609
  constructor(config: APIConfigType);
37589
37610
  }
37590
37611
 
37591
- declare const IXCSoftResponseSchema: z.ZodObject<{
37592
- type: z.ZodEnum<{
37593
- success: "success";
37594
- error: "error";
37595
- }>;
37596
- message: z.ZodString;
37597
- id: z.ZodOptional<z.ZodString>;
37598
- }, z.core.$catchall<z.ZodAny>>;
37599
-
37600
- declare const ixcSoftApi_types_IXCSoftResponseSchema: typeof IXCSoftResponseSchema;
37601
- type ixcSoftApi_types_IxcSuOssChamadoResponse = IxcSuOssChamadoResponse;
37602
- declare const ixcSoftApi_types_IxcSuOssChamadoResponseSchema: typeof IxcSuOssChamadoResponseSchema;
37603
- type ixcSoftApi_types_MonthlyFeesForClientInput = MonthlyFeesForClientInput;
37604
- type ixcSoftApi_types_MonthlyFeesForClientResponse = MonthlyFeesForClientResponse;
37605
- declare const ixcSoftApi_types_MonthlyFeesForClientResponseSchema: typeof MonthlyFeesForClientResponseSchema;
37606
- type ixcSoftApi_types_SuOssChamadoInput = SuOssChamadoInput;
37607
- type ixcSoftApi_types_SuOssChamadoListFilters = SuOssChamadoListFilters;
37608
- declare namespace ixcSoftApi_types {
37609
- 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 };
37610
- }
37611
-
37612
37612
  declare const RoutinesTasksSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
37613
37613
  timestamps: true;
37614
37614
  }, {
@@ -37754,6 +37754,17 @@ interface RoutinesTasksResponse extends HydratedDocument<InferSchemaType<typeof
37754
37754
  interface RoutinesTasksLogResponse extends HydratedDocument<InferSchemaType<typeof RoutinesLogerSchema>> {
37755
37755
  }
37756
37756
 
37757
+ type routinesApi_types_RoutinesTasksCreateInput = RoutinesTasksCreateInput;
37758
+ type routinesApi_types_RoutinesTasksInput = RoutinesTasksInput;
37759
+ type routinesApi_types_RoutinesTasksLogResponse = RoutinesTasksLogResponse;
37760
+ type routinesApi_types_RoutinesTasksResponse = RoutinesTasksResponse;
37761
+ type routinesApi_types_RoutinesTasksSyncJobsResponse = RoutinesTasksSyncJobsResponse;
37762
+ type routinesApi_types_RoutinesTasksToggleActiveInput = RoutinesTasksToggleActiveInput;
37763
+ type routinesApi_types_RoutinesTasksUpdateInput = RoutinesTasksUpdateInput;
37764
+ declare namespace routinesApi_types {
37765
+ export type { routinesApi_types_RoutinesTasksCreateInput as RoutinesTasksCreateInput, routinesApi_types_RoutinesTasksInput as RoutinesTasksInput, routinesApi_types_RoutinesTasksLogResponse as RoutinesTasksLogResponse, routinesApi_types_RoutinesTasksResponse as RoutinesTasksResponse, routinesApi_types_RoutinesTasksSyncJobsResponse as RoutinesTasksSyncJobsResponse, routinesApi_types_RoutinesTasksToggleActiveInput as RoutinesTasksToggleActiveInput, routinesApi_types_RoutinesTasksUpdateInput as RoutinesTasksUpdateInput };
37766
+ }
37767
+
37757
37768
  declare class RoutinesTasksResource {
37758
37769
  private readonly client;
37759
37770
  private readonly endpoint;
@@ -37805,15 +37816,4 @@ declare class RoutinesAPIClient extends APIClient {
37805
37816
  constructor(config: APIConfigType);
37806
37817
  }
37807
37818
 
37808
- type routinesApi_types_RoutinesTasksCreateInput = RoutinesTasksCreateInput;
37809
- type routinesApi_types_RoutinesTasksInput = RoutinesTasksInput;
37810
- type routinesApi_types_RoutinesTasksLogResponse = RoutinesTasksLogResponse;
37811
- type routinesApi_types_RoutinesTasksResponse = RoutinesTasksResponse;
37812
- type routinesApi_types_RoutinesTasksSyncJobsResponse = RoutinesTasksSyncJobsResponse;
37813
- type routinesApi_types_RoutinesTasksToggleActiveInput = RoutinesTasksToggleActiveInput;
37814
- type routinesApi_types_RoutinesTasksUpdateInput = RoutinesTasksUpdateInput;
37815
- declare namespace routinesApi_types {
37816
- export type { routinesApi_types_RoutinesTasksCreateInput as RoutinesTasksCreateInput, routinesApi_types_RoutinesTasksInput as RoutinesTasksInput, routinesApi_types_RoutinesTasksLogResponse as RoutinesTasksLogResponse, routinesApi_types_RoutinesTasksResponse as RoutinesTasksResponse, routinesApi_types_RoutinesTasksSyncJobsResponse as RoutinesTasksSyncJobsResponse, routinesApi_types_RoutinesTasksToggleActiveInput as RoutinesTasksToggleActiveInput, routinesApi_types_RoutinesTasksUpdateInput as RoutinesTasksUpdateInput };
37817
- }
37818
-
37819
37819
  export { IXCSoftAPIClient, ixcSoftApi_types as IXCSoftAPITypes, type IXCSoftMysqlModels, type IXCSoftMysqlModelsAttributes, IXCSoftMysqlService, type OPASuiteMongoCollectionsModels, type OPASuiteMongoDocuments, OPASuiteMongoService, RoutinesAPIClient, routinesApi_types as RoutinesAPITypes, type RoutinesMongoCollectionsModels, type RoutinesMongoDocuments, RoutinesMongoService, type ToolsMongoCollectionsModels, type ToolsMongoDocuments, ToolsMongoService, logger, printSignature };
package/dist/index.js CHANGED
@@ -91098,6 +91098,46 @@ var RoutinesMongoService = class _RoutinesMongoService {
91098
91098
  }
91099
91099
  };
91100
91100
 
91101
+ // src/apis/clients/ixc-soft/ixc-soft-api.types.ts
91102
+ var ixc_soft_api_types_exports = {};
91103
+ __export(ixc_soft_api_types_exports, {
91104
+ IXCSoftResponseSchema: () => IXCSoftResponseSchema,
91105
+ IxcSuOssChamadoResponseSchema: () => IxcSuOssChamadoResponseSchema,
91106
+ MonthlyFeesForClientResponseSchema: () => MonthlyFeesForClientResponseSchema
91107
+ });
91108
+ var import_zod3 = require("zod");
91109
+
91110
+ // src/apis/clients/ixc-soft/resources/su-oss-chamado/ixc-soft-su-oss-chamado.types.ts
91111
+ var import_zod = require("zod");
91112
+ var IxcSuOssChamadoResponseSchema = IXCSoftResponseSchema.extend(
91113
+ import_zod.z.object({
91114
+ atualiza_campos: import_zod.z.array(
91115
+ import_zod.z.object({
91116
+ tipo: import_zod.z.string(),
91117
+ campo: import_zod.z.string(),
91118
+ valor: import_zod.z.string()
91119
+ })
91120
+ ).optional()
91121
+ })
91122
+ );
91123
+
91124
+ // src/apis/clients/ixc-soft/resources/monthly-fees-for-client/ixc-soft-monthly-fees-for-client.types.ts
91125
+ var import_zod2 = require("zod");
91126
+ var MonthlyFeesForClientResponseSchema = IXCSoftResponseSchema.extend({
91127
+ id_contrato: import_zod2.z.union([import_zod2.z.string(), import_zod2.z.number()]).optional(),
91128
+ tipo: import_zod2.z.string().optional(),
91129
+ id_cliente: import_zod2.z.union([import_zod2.z.string(), import_zod2.z.number()]).optional(),
91130
+ id_tipo_documento: import_zod2.z.string().optional(),
91131
+ action: import_zod2.z.string().optional()
91132
+ });
91133
+
91134
+ // src/apis/clients/ixc-soft/ixc-soft-api.types.ts
91135
+ var IXCSoftResponseSchema = import_zod3.z.object({
91136
+ type: import_zod3.z.enum(["success", "error"]),
91137
+ message: import_zod3.z.string(),
91138
+ id: import_zod3.z.string().optional()
91139
+ }).catchall(import_zod3.z.any());
91140
+
91101
91141
  // src/apis/core/api-client.ts
91102
91142
  var import_axios = __toESM(require("axios"));
91103
91143
  var https = __toESM(require("https"));
@@ -91315,46 +91355,8 @@ var IXCSoftAPIClient = class extends APIClient {
91315
91355
  }
91316
91356
  };
91317
91357
 
91318
- // src/apis/clients/ixc-soft/ixc-soft-api.types.ts
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.extend(
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.extend({
91344
- id_contrato: import_zod2.z.union([import_zod2.z.string(), import_zod2.z.number()]).optional(),
91345
- tipo: import_zod2.z.string().optional(),
91346
- id_cliente: import_zod2.z.union([import_zod2.z.string(), import_zod2.z.number()]).optional(),
91347
- id_tipo_documento: import_zod2.z.string().optional(),
91348
- action: import_zod2.z.string().optional()
91349
- });
91350
-
91351
- // src/apis/clients/ixc-soft/ixc-soft-api.types.ts
91352
- var IXCSoftResponseSchema = import_zod3.z.object({
91353
- type: import_zod3.z.enum(["success", "error"]),
91354
- message: import_zod3.z.string(),
91355
- id: import_zod3.z.string().optional()
91356
- // [key: string]: any;
91357
- }).catchall(import_zod3.z.any());
91358
+ // src/apis/clients/routines/routines-api.types.ts
91359
+ var routines_api_types_exports = {};
91358
91360
 
91359
91361
  // src/apis/clients/routines/resources/tasks/routines-tasks.resource.ts
91360
91362
  var RoutinesTasksResource = class {
@@ -91447,9 +91449,6 @@ var RoutinesAPIClient = class extends APIClient {
91447
91449
  this.routinesTasksResource = new RoutinesTasksResource(this);
91448
91450
  }
91449
91451
  };
91450
-
91451
- // src/apis/clients/routines/routines-api.types.ts
91452
- var routines_api_types_exports = {};
91453
91452
  // Annotate the CommonJS export names for ESM import in node:
91454
91453
  0 && (module.exports = {
91455
91454
  IXCSoftAPIClient,
package/dist/index.mjs CHANGED
@@ -91059,6 +91059,46 @@ var RoutinesMongoService = class _RoutinesMongoService {
91059
91059
  }
91060
91060
  };
91061
91061
 
91062
+ // src/apis/clients/ixc-soft/ixc-soft-api.types.ts
91063
+ var ixc_soft_api_types_exports = {};
91064
+ __export(ixc_soft_api_types_exports, {
91065
+ IXCSoftResponseSchema: () => IXCSoftResponseSchema,
91066
+ IxcSuOssChamadoResponseSchema: () => IxcSuOssChamadoResponseSchema,
91067
+ MonthlyFeesForClientResponseSchema: () => MonthlyFeesForClientResponseSchema
91068
+ });
91069
+ import { z as z3 } from "zod";
91070
+
91071
+ // src/apis/clients/ixc-soft/resources/su-oss-chamado/ixc-soft-su-oss-chamado.types.ts
91072
+ import { z } from "zod";
91073
+ var IxcSuOssChamadoResponseSchema = IXCSoftResponseSchema.extend(
91074
+ z.object({
91075
+ atualiza_campos: z.array(
91076
+ z.object({
91077
+ tipo: z.string(),
91078
+ campo: z.string(),
91079
+ valor: z.string()
91080
+ })
91081
+ ).optional()
91082
+ })
91083
+ );
91084
+
91085
+ // src/apis/clients/ixc-soft/resources/monthly-fees-for-client/ixc-soft-monthly-fees-for-client.types.ts
91086
+ import { z as z2 } from "zod";
91087
+ var MonthlyFeesForClientResponseSchema = IXCSoftResponseSchema.extend({
91088
+ id_contrato: z2.union([z2.string(), z2.number()]).optional(),
91089
+ tipo: z2.string().optional(),
91090
+ id_cliente: z2.union([z2.string(), z2.number()]).optional(),
91091
+ id_tipo_documento: z2.string().optional(),
91092
+ action: z2.string().optional()
91093
+ });
91094
+
91095
+ // src/apis/clients/ixc-soft/ixc-soft-api.types.ts
91096
+ var IXCSoftResponseSchema = z3.object({
91097
+ type: z3.enum(["success", "error"]),
91098
+ message: z3.string(),
91099
+ id: z3.string().optional()
91100
+ }).catchall(z3.any());
91101
+
91062
91102
  // src/apis/core/api-client.ts
91063
91103
  import axios from "axios";
91064
91104
  import * as https from "https";
@@ -91276,46 +91316,8 @@ var IXCSoftAPIClient = class extends APIClient {
91276
91316
  }
91277
91317
  };
91278
91318
 
91279
- // src/apis/clients/ixc-soft/ixc-soft-api.types.ts
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.extend(
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.extend({
91305
- id_contrato: z2.union([z2.string(), z2.number()]).optional(),
91306
- tipo: z2.string().optional(),
91307
- id_cliente: z2.union([z2.string(), z2.number()]).optional(),
91308
- id_tipo_documento: z2.string().optional(),
91309
- action: z2.string().optional()
91310
- });
91311
-
91312
- // src/apis/clients/ixc-soft/ixc-soft-api.types.ts
91313
- var IXCSoftResponseSchema = z3.object({
91314
- type: z3.enum(["success", "error"]),
91315
- message: z3.string(),
91316
- id: z3.string().optional()
91317
- // [key: string]: any;
91318
- }).catchall(z3.any());
91319
+ // src/apis/clients/routines/routines-api.types.ts
91320
+ var routines_api_types_exports = {};
91319
91321
 
91320
91322
  // src/apis/clients/routines/resources/tasks/routines-tasks.resource.ts
91321
91323
  var RoutinesTasksResource = class {
@@ -91408,9 +91410,6 @@ var RoutinesAPIClient = class extends APIClient {
91408
91410
  this.routinesTasksResource = new RoutinesTasksResource(this);
91409
91411
  }
91410
91412
  };
91411
-
91412
- // src/apis/clients/routines/routines-api.types.ts
91413
- var routines_api_types_exports = {};
91414
91413
  export {
91415
91414
  IXCSoftAPIClient,
91416
91415
  ixc_soft_api_types_exports as IXCSoftAPITypes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cristian-israel/giganet_lib_conecta",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "Database Connector Layer",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -11,6 +11,7 @@
11
11
  "scripts": {
12
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
+ "buildandrelease": "pnpm run build && pnpm run release",
14
15
  "type-check": "tsc --noEmit > type-check.log 2>&1",
15
16
  "dev": "tsup src/index.ts --watch"
16
17
  },