@cristian-israel/giganet_lib_conecta 1.0.28 → 1.0.30
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 +33 -7
- package/dist/index.d.ts +33 -7
- package/dist/index.js +29 -26
- package/dist/index.mjs +27 -24
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -36450,29 +36450,29 @@ declare const schemas: {
|
|
|
36450
36450
|
}>;
|
|
36451
36451
|
};
|
|
36452
36452
|
|
|
36453
|
-
type
|
|
36453
|
+
type ToolsMongoDocuments = {
|
|
36454
36454
|
[K in keyof typeof schemas]: InferSchemaType<(typeof schemas)[K]>;
|
|
36455
36455
|
};
|
|
36456
|
-
type
|
|
36456
|
+
type ToolsMongoCollectionsModels = {
|
|
36457
36457
|
[K in keyof typeof schemas]: Model$1<InferSchemaType<(typeof schemas)[K]>>;
|
|
36458
36458
|
};
|
|
36459
36459
|
|
|
36460
|
-
declare class
|
|
36460
|
+
declare class ToolsMongoService {
|
|
36461
36461
|
private static instance;
|
|
36462
36462
|
private connection;
|
|
36463
36463
|
private initialized;
|
|
36464
36464
|
private constructor();
|
|
36465
36465
|
private notInitialized;
|
|
36466
36466
|
/** Retorna a instância singleton */
|
|
36467
|
-
static getInstance():
|
|
36467
|
+
static getInstance(): ToolsMongoService;
|
|
36468
36468
|
/** Inicializa a conexão e collections */
|
|
36469
36469
|
init(config: MongoConnectionConfig): Promise<void>;
|
|
36470
36470
|
/** Retorna Mongoose connection */
|
|
36471
36471
|
getConnection(): mongoose.Connection;
|
|
36472
36472
|
/** Retorna collections tipadas */
|
|
36473
|
-
get collections():
|
|
36473
|
+
get collections(): ToolsMongoCollectionsModels;
|
|
36474
36474
|
/** Retorna uma collection específica tipada */
|
|
36475
|
-
getCollection<K extends keyof
|
|
36475
|
+
getCollection<K extends keyof ToolsMongoCollectionsModels>(key: K): ToolsMongoCollectionsModels[K];
|
|
36476
36476
|
}
|
|
36477
36477
|
|
|
36478
36478
|
type HttpAuthConfig = {
|
|
@@ -36665,4 +36665,30 @@ declare class IXCSoftApiClient extends HttpClient {
|
|
|
36665
36665
|
constructor(config: IXCSoftApiConfig);
|
|
36666
36666
|
}
|
|
36667
36667
|
|
|
36668
|
-
|
|
36668
|
+
interface MonthlyFeesForClientInput {
|
|
36669
|
+
id_contrato: number | string;
|
|
36670
|
+
id_cliente: number | string;
|
|
36671
|
+
tipo: string;
|
|
36672
|
+
}
|
|
36673
|
+
interface MonthlyFeesForClientResponse {
|
|
36674
|
+
type: "success" | "error";
|
|
36675
|
+
message: string;
|
|
36676
|
+
id?: string;
|
|
36677
|
+
id_contrato?: string | number;
|
|
36678
|
+
tipo?: string;
|
|
36679
|
+
id_cliente?: string | number;
|
|
36680
|
+
id_tipo_documento?: string;
|
|
36681
|
+
action?: string;
|
|
36682
|
+
[key: string]: any;
|
|
36683
|
+
}
|
|
36684
|
+
|
|
36685
|
+
type ixcSoftApi_types_IxcSuOssChamadoResponse = IxcSuOssChamadoResponse;
|
|
36686
|
+
type ixcSoftApi_types_MonthlyFeesForClientInput = MonthlyFeesForClientInput;
|
|
36687
|
+
type ixcSoftApi_types_MonthlyFeesForClientResponse = MonthlyFeesForClientResponse;
|
|
36688
|
+
type ixcSoftApi_types_SuOssChamadoInput = SuOssChamadoInput;
|
|
36689
|
+
type ixcSoftApi_types_SuOssChamadoListFilters = SuOssChamadoListFilters;
|
|
36690
|
+
declare namespace ixcSoftApi_types {
|
|
36691
|
+
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 };
|
|
36692
|
+
}
|
|
36693
|
+
|
|
36694
|
+
export { IXCSoftApiClient, type IXCSoftMysqlModels, type IXCSoftMysqlModelsAttributes, IXCSoftMysqlService, ixcSoftApi_types as IXCSoftTypes, type OPASuiteMongoCollectionsModels, type OPASuiteMongoDocuments, OPASuiteMongoService, type ToolsMongoCollectionsModels, type ToolsMongoDocuments, ToolsMongoService, logger };
|
package/dist/index.d.ts
CHANGED
|
@@ -36450,29 +36450,29 @@ declare const schemas: {
|
|
|
36450
36450
|
}>;
|
|
36451
36451
|
};
|
|
36452
36452
|
|
|
36453
|
-
type
|
|
36453
|
+
type ToolsMongoDocuments = {
|
|
36454
36454
|
[K in keyof typeof schemas]: InferSchemaType<(typeof schemas)[K]>;
|
|
36455
36455
|
};
|
|
36456
|
-
type
|
|
36456
|
+
type ToolsMongoCollectionsModels = {
|
|
36457
36457
|
[K in keyof typeof schemas]: Model$1<InferSchemaType<(typeof schemas)[K]>>;
|
|
36458
36458
|
};
|
|
36459
36459
|
|
|
36460
|
-
declare class
|
|
36460
|
+
declare class ToolsMongoService {
|
|
36461
36461
|
private static instance;
|
|
36462
36462
|
private connection;
|
|
36463
36463
|
private initialized;
|
|
36464
36464
|
private constructor();
|
|
36465
36465
|
private notInitialized;
|
|
36466
36466
|
/** Retorna a instância singleton */
|
|
36467
|
-
static getInstance():
|
|
36467
|
+
static getInstance(): ToolsMongoService;
|
|
36468
36468
|
/** Inicializa a conexão e collections */
|
|
36469
36469
|
init(config: MongoConnectionConfig): Promise<void>;
|
|
36470
36470
|
/** Retorna Mongoose connection */
|
|
36471
36471
|
getConnection(): mongoose.Connection;
|
|
36472
36472
|
/** Retorna collections tipadas */
|
|
36473
|
-
get collections():
|
|
36473
|
+
get collections(): ToolsMongoCollectionsModels;
|
|
36474
36474
|
/** Retorna uma collection específica tipada */
|
|
36475
|
-
getCollection<K extends keyof
|
|
36475
|
+
getCollection<K extends keyof ToolsMongoCollectionsModels>(key: K): ToolsMongoCollectionsModels[K];
|
|
36476
36476
|
}
|
|
36477
36477
|
|
|
36478
36478
|
type HttpAuthConfig = {
|
|
@@ -36665,4 +36665,30 @@ declare class IXCSoftApiClient extends HttpClient {
|
|
|
36665
36665
|
constructor(config: IXCSoftApiConfig);
|
|
36666
36666
|
}
|
|
36667
36667
|
|
|
36668
|
-
|
|
36668
|
+
interface MonthlyFeesForClientInput {
|
|
36669
|
+
id_contrato: number | string;
|
|
36670
|
+
id_cliente: number | string;
|
|
36671
|
+
tipo: string;
|
|
36672
|
+
}
|
|
36673
|
+
interface MonthlyFeesForClientResponse {
|
|
36674
|
+
type: "success" | "error";
|
|
36675
|
+
message: string;
|
|
36676
|
+
id?: string;
|
|
36677
|
+
id_contrato?: string | number;
|
|
36678
|
+
tipo?: string;
|
|
36679
|
+
id_cliente?: string | number;
|
|
36680
|
+
id_tipo_documento?: string;
|
|
36681
|
+
action?: string;
|
|
36682
|
+
[key: string]: any;
|
|
36683
|
+
}
|
|
36684
|
+
|
|
36685
|
+
type ixcSoftApi_types_IxcSuOssChamadoResponse = IxcSuOssChamadoResponse;
|
|
36686
|
+
type ixcSoftApi_types_MonthlyFeesForClientInput = MonthlyFeesForClientInput;
|
|
36687
|
+
type ixcSoftApi_types_MonthlyFeesForClientResponse = MonthlyFeesForClientResponse;
|
|
36688
|
+
type ixcSoftApi_types_SuOssChamadoInput = SuOssChamadoInput;
|
|
36689
|
+
type ixcSoftApi_types_SuOssChamadoListFilters = SuOssChamadoListFilters;
|
|
36690
|
+
declare namespace ixcSoftApi_types {
|
|
36691
|
+
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 };
|
|
36692
|
+
}
|
|
36693
|
+
|
|
36694
|
+
export { IXCSoftApiClient, type IXCSoftMysqlModels, type IXCSoftMysqlModelsAttributes, IXCSoftMysqlService, ixcSoftApi_types as IXCSoftTypes, type OPASuiteMongoCollectionsModels, type OPASuiteMongoDocuments, OPASuiteMongoService, type ToolsMongoCollectionsModels, type ToolsMongoDocuments, ToolsMongoService, logger };
|
package/dist/index.js
CHANGED
|
@@ -30,11 +30,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
|
-
FerramentasMongoService: () => FerramentasMongoService,
|
|
34
33
|
IXCSoftApiClient: () => IXCSoftApiClient,
|
|
35
34
|
IXCSoftMysqlService: () => IXCSoftMysqlService,
|
|
35
|
+
IXCSoftTypes: () => ixc_soft_api_types_exports,
|
|
36
36
|
OPASuiteMongoService: () => OPASuiteMongoService,
|
|
37
|
-
|
|
37
|
+
ToolsMongoService: () => ToolsMongoService,
|
|
38
38
|
logger: () => logger
|
|
39
39
|
});
|
|
40
40
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -90790,13 +90790,13 @@ var OPASuiteMongoService = class _OPASuiteMongoService {
|
|
|
90790
90790
|
}
|
|
90791
90791
|
};
|
|
90792
90792
|
|
|
90793
|
-
// src/databases/mongo/
|
|
90794
|
-
var
|
|
90795
|
-
context: "
|
|
90793
|
+
// src/databases/mongo/tools/tools.mongo.types.ts
|
|
90794
|
+
var configToolsMongo = {
|
|
90795
|
+
context: "TOOLS_MONGO",
|
|
90796
90796
|
domain: "MONGO"
|
|
90797
90797
|
};
|
|
90798
90798
|
|
|
90799
|
-
// src/databases/mongo/
|
|
90799
|
+
// src/databases/mongo/tools/collections/user.ts
|
|
90800
90800
|
var import_mongoose7 = require("mongoose");
|
|
90801
90801
|
var UserSchema = new import_mongoose7.Schema(
|
|
90802
90802
|
{
|
|
@@ -90845,7 +90845,7 @@ var UserSchema = new import_mongoose7.Schema(
|
|
|
90845
90845
|
}
|
|
90846
90846
|
);
|
|
90847
90847
|
|
|
90848
|
-
// src/databases/mongo/
|
|
90848
|
+
// src/databases/mongo/tools/collections/loger.ts
|
|
90849
90849
|
var import_mongoose8 = require("mongoose");
|
|
90850
90850
|
var LogerSchema = new import_mongoose8.Schema(
|
|
90851
90851
|
{
|
|
@@ -90866,18 +90866,18 @@ var LogerSchema = new import_mongoose8.Schema(
|
|
|
90866
90866
|
}
|
|
90867
90867
|
);
|
|
90868
90868
|
|
|
90869
|
-
// src/databases/mongo/
|
|
90869
|
+
// src/databases/mongo/tools/collections/index.ts
|
|
90870
90870
|
var schemas2 = {
|
|
90871
90871
|
user: UserSchema,
|
|
90872
90872
|
loger: LogerSchema
|
|
90873
90873
|
};
|
|
90874
90874
|
|
|
90875
|
-
// src/databases/mongo/
|
|
90876
|
-
async function
|
|
90875
|
+
// src/databases/mongo/tools/tools.mongo.connection.ts
|
|
90876
|
+
async function createToolsMongoConnection(config) {
|
|
90877
90877
|
const connection = await createMongoConnection({
|
|
90878
90878
|
...config,
|
|
90879
|
-
database: "
|
|
90880
|
-
context:
|
|
90879
|
+
database: "tools",
|
|
90880
|
+
context: configToolsMongo.context
|
|
90881
90881
|
});
|
|
90882
90882
|
const collections = Object.entries(schemas2).reduce((acc, [name, schema]) => {
|
|
90883
90883
|
acc[name] = connection.model(name, schema);
|
|
@@ -90888,37 +90888,37 @@ async function createFerramentasMongoConnection(config) {
|
|
|
90888
90888
|
collections
|
|
90889
90889
|
};
|
|
90890
90890
|
}
|
|
90891
|
-
var
|
|
90891
|
+
var connectToolsMongo = createConnectionFactory(createToolsMongoConnection);
|
|
90892
90892
|
|
|
90893
|
-
// src/databases/mongo/
|
|
90894
|
-
var
|
|
90893
|
+
// src/databases/mongo/tools/tools.mongo.service.ts
|
|
90894
|
+
var ToolsMongoService = class _ToolsMongoService {
|
|
90895
90895
|
constructor() {
|
|
90896
90896
|
this.initialized = false;
|
|
90897
90897
|
}
|
|
90898
90898
|
notInitialized() {
|
|
90899
90899
|
if (!this.initialized)
|
|
90900
90900
|
throw new Error(
|
|
90901
|
-
"
|
|
90901
|
+
"ToolsMongoService n\xE3o inicializado! Chame init() antes."
|
|
90902
90902
|
);
|
|
90903
90903
|
}
|
|
90904
90904
|
/** Retorna a instância singleton */
|
|
90905
90905
|
static getInstance() {
|
|
90906
|
-
if (!
|
|
90907
|
-
|
|
90908
|
-
return
|
|
90906
|
+
if (!_ToolsMongoService.instance)
|
|
90907
|
+
_ToolsMongoService.instance = new _ToolsMongoService();
|
|
90908
|
+
return _ToolsMongoService.instance;
|
|
90909
90909
|
}
|
|
90910
90910
|
/** Inicializa a conexão e collections */
|
|
90911
90911
|
async init(config) {
|
|
90912
90912
|
if (this.initialized) return;
|
|
90913
90913
|
logger({
|
|
90914
|
-
...
|
|
90915
|
-
message: "Inicializando
|
|
90914
|
+
...configToolsMongo,
|
|
90915
|
+
message: "Inicializando ToolsMongoService..."
|
|
90916
90916
|
});
|
|
90917
|
-
this.connection = await
|
|
90917
|
+
this.connection = await connectToolsMongo(config);
|
|
90918
90918
|
this.initialized = true;
|
|
90919
90919
|
logger({
|
|
90920
|
-
...
|
|
90921
|
-
message: "
|
|
90920
|
+
...configToolsMongo,
|
|
90921
|
+
message: "ToolsMongoService inicializado!"
|
|
90922
90922
|
});
|
|
90923
90923
|
}
|
|
90924
90924
|
/** Retorna Mongoose connection */
|
|
@@ -91134,12 +91134,15 @@ var IXCSoftApiClient = class extends HttpClient {
|
|
|
91134
91134
|
this.ordensDeServico = new SuOssChamadoResource(this);
|
|
91135
91135
|
}
|
|
91136
91136
|
};
|
|
91137
|
+
|
|
91138
|
+
// src/apis/clients/ixc-soft/ixc-soft-api.types.ts
|
|
91139
|
+
var ixc_soft_api_types_exports = {};
|
|
91137
91140
|
// Annotate the CommonJS export names for ESM import in node:
|
|
91138
91141
|
0 && (module.exports = {
|
|
91139
|
-
FerramentasMongoService,
|
|
91140
91142
|
IXCSoftApiClient,
|
|
91141
91143
|
IXCSoftMysqlService,
|
|
91144
|
+
IXCSoftTypes,
|
|
91142
91145
|
OPASuiteMongoService,
|
|
91143
|
-
|
|
91146
|
+
ToolsMongoService,
|
|
91144
91147
|
logger
|
|
91145
91148
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -90749,13 +90749,13 @@ var OPASuiteMongoService = class _OPASuiteMongoService {
|
|
|
90749
90749
|
}
|
|
90750
90750
|
};
|
|
90751
90751
|
|
|
90752
|
-
// src/databases/mongo/
|
|
90753
|
-
var
|
|
90754
|
-
context: "
|
|
90752
|
+
// src/databases/mongo/tools/tools.mongo.types.ts
|
|
90753
|
+
var configToolsMongo = {
|
|
90754
|
+
context: "TOOLS_MONGO",
|
|
90755
90755
|
domain: "MONGO"
|
|
90756
90756
|
};
|
|
90757
90757
|
|
|
90758
|
-
// src/databases/mongo/
|
|
90758
|
+
// src/databases/mongo/tools/collections/user.ts
|
|
90759
90759
|
import { Schema as Schema6 } from "mongoose";
|
|
90760
90760
|
var UserSchema = new Schema6(
|
|
90761
90761
|
{
|
|
@@ -90804,7 +90804,7 @@ var UserSchema = new Schema6(
|
|
|
90804
90804
|
}
|
|
90805
90805
|
);
|
|
90806
90806
|
|
|
90807
|
-
// src/databases/mongo/
|
|
90807
|
+
// src/databases/mongo/tools/collections/loger.ts
|
|
90808
90808
|
import { Schema as Schema7 } from "mongoose";
|
|
90809
90809
|
var LogerSchema = new Schema7(
|
|
90810
90810
|
{
|
|
@@ -90825,18 +90825,18 @@ var LogerSchema = new Schema7(
|
|
|
90825
90825
|
}
|
|
90826
90826
|
);
|
|
90827
90827
|
|
|
90828
|
-
// src/databases/mongo/
|
|
90828
|
+
// src/databases/mongo/tools/collections/index.ts
|
|
90829
90829
|
var schemas2 = {
|
|
90830
90830
|
user: UserSchema,
|
|
90831
90831
|
loger: LogerSchema
|
|
90832
90832
|
};
|
|
90833
90833
|
|
|
90834
|
-
// src/databases/mongo/
|
|
90835
|
-
async function
|
|
90834
|
+
// src/databases/mongo/tools/tools.mongo.connection.ts
|
|
90835
|
+
async function createToolsMongoConnection(config) {
|
|
90836
90836
|
const connection = await createMongoConnection({
|
|
90837
90837
|
...config,
|
|
90838
|
-
database: "
|
|
90839
|
-
context:
|
|
90838
|
+
database: "tools",
|
|
90839
|
+
context: configToolsMongo.context
|
|
90840
90840
|
});
|
|
90841
90841
|
const collections = Object.entries(schemas2).reduce((acc, [name, schema]) => {
|
|
90842
90842
|
acc[name] = connection.model(name, schema);
|
|
@@ -90847,37 +90847,37 @@ async function createFerramentasMongoConnection(config) {
|
|
|
90847
90847
|
collections
|
|
90848
90848
|
};
|
|
90849
90849
|
}
|
|
90850
|
-
var
|
|
90850
|
+
var connectToolsMongo = createConnectionFactory(createToolsMongoConnection);
|
|
90851
90851
|
|
|
90852
|
-
// src/databases/mongo/
|
|
90853
|
-
var
|
|
90852
|
+
// src/databases/mongo/tools/tools.mongo.service.ts
|
|
90853
|
+
var ToolsMongoService = class _ToolsMongoService {
|
|
90854
90854
|
constructor() {
|
|
90855
90855
|
this.initialized = false;
|
|
90856
90856
|
}
|
|
90857
90857
|
notInitialized() {
|
|
90858
90858
|
if (!this.initialized)
|
|
90859
90859
|
throw new Error(
|
|
90860
|
-
"
|
|
90860
|
+
"ToolsMongoService n\xE3o inicializado! Chame init() antes."
|
|
90861
90861
|
);
|
|
90862
90862
|
}
|
|
90863
90863
|
/** Retorna a instância singleton */
|
|
90864
90864
|
static getInstance() {
|
|
90865
|
-
if (!
|
|
90866
|
-
|
|
90867
|
-
return
|
|
90865
|
+
if (!_ToolsMongoService.instance)
|
|
90866
|
+
_ToolsMongoService.instance = new _ToolsMongoService();
|
|
90867
|
+
return _ToolsMongoService.instance;
|
|
90868
90868
|
}
|
|
90869
90869
|
/** Inicializa a conexão e collections */
|
|
90870
90870
|
async init(config) {
|
|
90871
90871
|
if (this.initialized) return;
|
|
90872
90872
|
logger({
|
|
90873
|
-
...
|
|
90874
|
-
message: "Inicializando
|
|
90873
|
+
...configToolsMongo,
|
|
90874
|
+
message: "Inicializando ToolsMongoService..."
|
|
90875
90875
|
});
|
|
90876
|
-
this.connection = await
|
|
90876
|
+
this.connection = await connectToolsMongo(config);
|
|
90877
90877
|
this.initialized = true;
|
|
90878
90878
|
logger({
|
|
90879
|
-
...
|
|
90880
|
-
message: "
|
|
90879
|
+
...configToolsMongo,
|
|
90880
|
+
message: "ToolsMongoService inicializado!"
|
|
90881
90881
|
});
|
|
90882
90882
|
}
|
|
90883
90883
|
/** Retorna Mongoose connection */
|
|
@@ -91093,11 +91093,14 @@ var IXCSoftApiClient = class extends HttpClient {
|
|
|
91093
91093
|
this.ordensDeServico = new SuOssChamadoResource(this);
|
|
91094
91094
|
}
|
|
91095
91095
|
};
|
|
91096
|
+
|
|
91097
|
+
// src/apis/clients/ixc-soft/ixc-soft-api.types.ts
|
|
91098
|
+
var ixc_soft_api_types_exports = {};
|
|
91096
91099
|
export {
|
|
91097
|
-
FerramentasMongoService,
|
|
91098
91100
|
IXCSoftApiClient,
|
|
91099
91101
|
IXCSoftMysqlService,
|
|
91102
|
+
ixc_soft_api_types_exports as IXCSoftTypes,
|
|
91100
91103
|
OPASuiteMongoService,
|
|
91101
|
-
|
|
91104
|
+
ToolsMongoService,
|
|
91102
91105
|
logger
|
|
91103
91106
|
};
|