@cristian-israel/giganet_lib_conecta 1.0.95 → 1.0.97
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 +136 -1
- package/dist/index.d.ts +136 -1
- package/dist/index.js +94 -24
- package/dist/index.mjs +88 -18
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -11411,6 +11411,97 @@ declare class RoutinesLogsResource {
|
|
|
11411
11411
|
findAll(): Promise<RoutinesLogsResponse[]>;
|
|
11412
11412
|
}
|
|
11413
11413
|
|
|
11414
|
+
declare const RoutinesProblemsIssuesOSSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
11415
|
+
timestamps: true;
|
|
11416
|
+
}, {
|
|
11417
|
+
id_assunto: number;
|
|
11418
|
+
name: string;
|
|
11419
|
+
description: string;
|
|
11420
|
+
is_active: boolean;
|
|
11421
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
11422
|
+
id_assunto: number;
|
|
11423
|
+
name: string;
|
|
11424
|
+
description: string;
|
|
11425
|
+
is_active: boolean;
|
|
11426
|
+
} & mongoose.DefaultTimestampProps, {
|
|
11427
|
+
id: string;
|
|
11428
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
11429
|
+
timestamps: true;
|
|
11430
|
+
}> & Omit<{
|
|
11431
|
+
id_assunto: number;
|
|
11432
|
+
name: string;
|
|
11433
|
+
description: string;
|
|
11434
|
+
is_active: boolean;
|
|
11435
|
+
} & mongoose.DefaultTimestampProps & {
|
|
11436
|
+
_id: mongoose.Types.ObjectId;
|
|
11437
|
+
} & {
|
|
11438
|
+
__v: number;
|
|
11439
|
+
}, "id"> & {
|
|
11440
|
+
id: string;
|
|
11441
|
+
}, unknown, {
|
|
11442
|
+
id_assunto: number;
|
|
11443
|
+
name: string;
|
|
11444
|
+
description: string;
|
|
11445
|
+
is_active: boolean;
|
|
11446
|
+
createdAt: NativeDate;
|
|
11447
|
+
updatedAt: NativeDate;
|
|
11448
|
+
} & {
|
|
11449
|
+
_id: mongoose.Types.ObjectId;
|
|
11450
|
+
} & {
|
|
11451
|
+
__v: number;
|
|
11452
|
+
}>;
|
|
11453
|
+
interface RoutinesProblemsIssuesOSSResponse extends HydratedDocument<InferSchemaType<typeof RoutinesProblemsIssuesOSSchema>> {
|
|
11454
|
+
}
|
|
11455
|
+
|
|
11456
|
+
interface RoutinesProblemsIssuesOSInput {
|
|
11457
|
+
triggered_by: Types.ObjectId;
|
|
11458
|
+
}
|
|
11459
|
+
interface RoutinesProblemsIssuesOSCreateInput extends RoutinesProblemsIssuesOSInput {
|
|
11460
|
+
name: string;
|
|
11461
|
+
description: string;
|
|
11462
|
+
id_assunto: number;
|
|
11463
|
+
}
|
|
11464
|
+
interface RoutinesProblemsIssuesOSUpdateInput extends RoutinesProblemsIssuesOSInput {
|
|
11465
|
+
name?: string;
|
|
11466
|
+
description?: string;
|
|
11467
|
+
id_assunto?: number;
|
|
11468
|
+
is_active?: boolean;
|
|
11469
|
+
}
|
|
11470
|
+
interface RoutinesProblemsIssuesOSToggleActiveInput extends RoutinesProblemsIssuesOSInput {
|
|
11471
|
+
is_active: boolean;
|
|
11472
|
+
}
|
|
11473
|
+
|
|
11474
|
+
declare class RoutinesProblemsIssuesOSResource {
|
|
11475
|
+
private readonly client;
|
|
11476
|
+
private readonly endpoint;
|
|
11477
|
+
constructor(client: APIClient);
|
|
11478
|
+
/**
|
|
11479
|
+
* POST /v1/problems-issues-os
|
|
11480
|
+
* Cria um novo assunto de OS de problemas.
|
|
11481
|
+
*/
|
|
11482
|
+
create(data: RoutinesProblemsIssuesOSCreateInput): Promise<RoutinesProblemsIssuesOSSResponse>;
|
|
11483
|
+
/**
|
|
11484
|
+
* GET /v1/problems-issues-os
|
|
11485
|
+
* Lista todos os assuntos de OS de problemas.
|
|
11486
|
+
*/
|
|
11487
|
+
findAll(): Promise<RoutinesProblemsIssuesOSSResponse[]>;
|
|
11488
|
+
/**
|
|
11489
|
+
* GET /v1/problems-issues-os/:_id
|
|
11490
|
+
* Busca um assunto de OS de problemas pelo ID.
|
|
11491
|
+
*/
|
|
11492
|
+
findById(_id: Types.ObjectId): Promise<RoutinesProblemsIssuesOSSResponse>;
|
|
11493
|
+
/**
|
|
11494
|
+
* PATCH /v1/problems-issues-os/:_id
|
|
11495
|
+
* Atualiza um assunto de OS de problemas existente.
|
|
11496
|
+
*/
|
|
11497
|
+
update(_id: Types.ObjectId, data: RoutinesProblemsIssuesOSUpdateInput): Promise<RoutinesProblemsIssuesOSSResponse>;
|
|
11498
|
+
/**
|
|
11499
|
+
* PATCH /v1/problems-issues-os/:_id/toggle-active
|
|
11500
|
+
* Ativa ou desativa um assunto de OS de problemas.
|
|
11501
|
+
*/
|
|
11502
|
+
toggleActive(_id: Types.ObjectId, data: RoutinesProblemsIssuesOSToggleActiveInput): Promise<RoutinesProblemsIssuesOSSResponse>;
|
|
11503
|
+
}
|
|
11504
|
+
|
|
11414
11505
|
interface RoutinesTasksInput {
|
|
11415
11506
|
triggered_by: Types.ObjectId;
|
|
11416
11507
|
}
|
|
@@ -11557,6 +11648,7 @@ declare class RoutinesTasksResource {
|
|
|
11557
11648
|
declare class RoutinesAPIClient extends APIClient {
|
|
11558
11649
|
readonly routinesTasksResource: RoutinesTasksResource;
|
|
11559
11650
|
readonly routinesLogsResource: RoutinesLogsResource;
|
|
11651
|
+
readonly routinesProblemsIssuesOSResource: RoutinesProblemsIssuesOSResource;
|
|
11560
11652
|
readonly routinesCancellationAnalysisResource: RoutinesCancellationAnalysisResource;
|
|
11561
11653
|
constructor(config: APIConfigType);
|
|
11562
11654
|
}
|
|
@@ -11579,13 +11671,17 @@ type routinesApi_types_CancellationAnalysisTipo = CancellationAnalysisTipo;
|
|
|
11579
11671
|
type routinesApi_types_CancellationAnalysisWeeklyReportQuery = CancellationAnalysisWeeklyReportQuery;
|
|
11580
11672
|
type routinesApi_types_CancellationAnalysisWeeklyReportQueryMode = CancellationAnalysisWeeklyReportQueryMode;
|
|
11581
11673
|
type routinesApi_types_ListCancellationAnalysisQuery = ListCancellationAnalysisQuery;
|
|
11674
|
+
type routinesApi_types_RoutinesProblemsIssuesOSCreateInput = RoutinesProblemsIssuesOSCreateInput;
|
|
11675
|
+
type routinesApi_types_RoutinesProblemsIssuesOSInput = RoutinesProblemsIssuesOSInput;
|
|
11676
|
+
type routinesApi_types_RoutinesProblemsIssuesOSToggleActiveInput = RoutinesProblemsIssuesOSToggleActiveInput;
|
|
11677
|
+
type routinesApi_types_RoutinesProblemsIssuesOSUpdateInput = RoutinesProblemsIssuesOSUpdateInput;
|
|
11582
11678
|
type routinesApi_types_RoutinesTasksCreateInput = RoutinesTasksCreateInput;
|
|
11583
11679
|
type routinesApi_types_RoutinesTasksInput = RoutinesTasksInput;
|
|
11584
11680
|
type routinesApi_types_RoutinesTasksSyncJobsResponse = RoutinesTasksSyncJobsResponse;
|
|
11585
11681
|
type routinesApi_types_RoutinesTasksToggleActiveInput = RoutinesTasksToggleActiveInput;
|
|
11586
11682
|
type routinesApi_types_RoutinesTasksUpdateInput = RoutinesTasksUpdateInput;
|
|
11587
11683
|
declare namespace routinesApi_types {
|
|
11588
|
-
export type { routinesApi_types_CancellationAnalysisAttendantSnapshot as CancellationAnalysisAttendantSnapshot, routinesApi_types_CancellationAnalysisDailyReportQuery as CancellationAnalysisDailyReportQuery, routinesApi_types_CancellationAnalysisDashboardResponse as CancellationAnalysisDashboardResponse, routinesApi_types_CancellationAnalysisDashboardSummary as CancellationAnalysisDashboardSummary, routinesApi_types_CancellationAnalysisDetailResponse as CancellationAnalysisDetailResponse, routinesApi_types_CancellationAnalysisListItem as CancellationAnalysisListItem, routinesApi_types_CancellationAnalysisListResponse as CancellationAnalysisListResponse, routinesApi_types_CancellationAnalysisMonthlyReportQuery as CancellationAnalysisMonthlyReportQuery, routinesApi_types_CancellationAnalysisOrderBy as CancellationAnalysisOrderBy, routinesApi_types_CancellationAnalysisOrderDirection as CancellationAnalysisOrderDirection, routinesApi_types_CancellationAnalysisRegionSnapshot as CancellationAnalysisRegionSnapshot, routinesApi_types_CancellationAnalysisRequestLog as CancellationAnalysisRequestLog, routinesApi_types_CancellationAnalysisRequestLogStatus as CancellationAnalysisRequestLogStatus, routinesApi_types_CancellationAnalysisStatus as CancellationAnalysisStatus, routinesApi_types_CancellationAnalysisTipo as CancellationAnalysisTipo, routinesApi_types_CancellationAnalysisWeeklyReportQuery as CancellationAnalysisWeeklyReportQuery, routinesApi_types_CancellationAnalysisWeeklyReportQueryMode as CancellationAnalysisWeeklyReportQueryMode, routinesApi_types_ListCancellationAnalysisQuery as ListCancellationAnalysisQuery, routinesApi_types_RoutinesTasksCreateInput as RoutinesTasksCreateInput, routinesApi_types_RoutinesTasksInput as RoutinesTasksInput, routinesApi_types_RoutinesTasksSyncJobsResponse as RoutinesTasksSyncJobsResponse, routinesApi_types_RoutinesTasksToggleActiveInput as RoutinesTasksToggleActiveInput, routinesApi_types_RoutinesTasksUpdateInput as RoutinesTasksUpdateInput };
|
|
11684
|
+
export type { routinesApi_types_CancellationAnalysisAttendantSnapshot as CancellationAnalysisAttendantSnapshot, routinesApi_types_CancellationAnalysisDailyReportQuery as CancellationAnalysisDailyReportQuery, routinesApi_types_CancellationAnalysisDashboardResponse as CancellationAnalysisDashboardResponse, routinesApi_types_CancellationAnalysisDashboardSummary as CancellationAnalysisDashboardSummary, routinesApi_types_CancellationAnalysisDetailResponse as CancellationAnalysisDetailResponse, routinesApi_types_CancellationAnalysisListItem as CancellationAnalysisListItem, routinesApi_types_CancellationAnalysisListResponse as CancellationAnalysisListResponse, routinesApi_types_CancellationAnalysisMonthlyReportQuery as CancellationAnalysisMonthlyReportQuery, routinesApi_types_CancellationAnalysisOrderBy as CancellationAnalysisOrderBy, routinesApi_types_CancellationAnalysisOrderDirection as CancellationAnalysisOrderDirection, routinesApi_types_CancellationAnalysisRegionSnapshot as CancellationAnalysisRegionSnapshot, routinesApi_types_CancellationAnalysisRequestLog as CancellationAnalysisRequestLog, routinesApi_types_CancellationAnalysisRequestLogStatus as CancellationAnalysisRequestLogStatus, routinesApi_types_CancellationAnalysisStatus as CancellationAnalysisStatus, routinesApi_types_CancellationAnalysisTipo as CancellationAnalysisTipo, routinesApi_types_CancellationAnalysisWeeklyReportQuery as CancellationAnalysisWeeklyReportQuery, routinesApi_types_CancellationAnalysisWeeklyReportQueryMode as CancellationAnalysisWeeklyReportQueryMode, routinesApi_types_ListCancellationAnalysisQuery as ListCancellationAnalysisQuery, routinesApi_types_RoutinesProblemsIssuesOSCreateInput as RoutinesProblemsIssuesOSCreateInput, routinesApi_types_RoutinesProblemsIssuesOSInput as RoutinesProblemsIssuesOSInput, routinesApi_types_RoutinesProblemsIssuesOSToggleActiveInput as RoutinesProblemsIssuesOSToggleActiveInput, routinesApi_types_RoutinesProblemsIssuesOSUpdateInput as RoutinesProblemsIssuesOSUpdateInput, routinesApi_types_RoutinesTasksCreateInput as RoutinesTasksCreateInput, routinesApi_types_RoutinesTasksInput as RoutinesTasksInput, routinesApi_types_RoutinesTasksSyncJobsResponse as RoutinesTasksSyncJobsResponse, routinesApi_types_RoutinesTasksToggleActiveInput as RoutinesTasksToggleActiveInput, routinesApi_types_RoutinesTasksUpdateInput as RoutinesTasksUpdateInput };
|
|
11589
11685
|
}
|
|
11590
11686
|
|
|
11591
11687
|
type NtfyPriority = "max" | "high" | "default" | "low" | "min";
|
|
@@ -37774,6 +37870,45 @@ declare const schemas$3: {
|
|
|
37774
37870
|
} & {
|
|
37775
37871
|
__v: number;
|
|
37776
37872
|
}>;
|
|
37873
|
+
problems_issues_os: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37874
|
+
timestamps: true;
|
|
37875
|
+
}, {
|
|
37876
|
+
id_assunto: number;
|
|
37877
|
+
name: string;
|
|
37878
|
+
description: string;
|
|
37879
|
+
is_active: boolean;
|
|
37880
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
37881
|
+
id_assunto: number;
|
|
37882
|
+
name: string;
|
|
37883
|
+
description: string;
|
|
37884
|
+
is_active: boolean;
|
|
37885
|
+
} & mongoose.DefaultTimestampProps, {
|
|
37886
|
+
id: string;
|
|
37887
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
37888
|
+
timestamps: true;
|
|
37889
|
+
}> & Omit<{
|
|
37890
|
+
id_assunto: number;
|
|
37891
|
+
name: string;
|
|
37892
|
+
description: string;
|
|
37893
|
+
is_active: boolean;
|
|
37894
|
+
} & mongoose.DefaultTimestampProps & {
|
|
37895
|
+
_id: mongoose.Types.ObjectId;
|
|
37896
|
+
} & {
|
|
37897
|
+
__v: number;
|
|
37898
|
+
}, "id"> & {
|
|
37899
|
+
id: string;
|
|
37900
|
+
}, unknown, {
|
|
37901
|
+
id_assunto: number;
|
|
37902
|
+
name: string;
|
|
37903
|
+
description: string;
|
|
37904
|
+
is_active: boolean;
|
|
37905
|
+
createdAt: NativeDate;
|
|
37906
|
+
updatedAt: NativeDate;
|
|
37907
|
+
} & {
|
|
37908
|
+
_id: mongoose.Types.ObjectId;
|
|
37909
|
+
} & {
|
|
37910
|
+
__v: number;
|
|
37911
|
+
}>;
|
|
37777
37912
|
logs: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37778
37913
|
timestamps: true;
|
|
37779
37914
|
}, {
|
package/dist/index.d.ts
CHANGED
|
@@ -11411,6 +11411,97 @@ declare class RoutinesLogsResource {
|
|
|
11411
11411
|
findAll(): Promise<RoutinesLogsResponse[]>;
|
|
11412
11412
|
}
|
|
11413
11413
|
|
|
11414
|
+
declare const RoutinesProblemsIssuesOSSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
11415
|
+
timestamps: true;
|
|
11416
|
+
}, {
|
|
11417
|
+
id_assunto: number;
|
|
11418
|
+
name: string;
|
|
11419
|
+
description: string;
|
|
11420
|
+
is_active: boolean;
|
|
11421
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
11422
|
+
id_assunto: number;
|
|
11423
|
+
name: string;
|
|
11424
|
+
description: string;
|
|
11425
|
+
is_active: boolean;
|
|
11426
|
+
} & mongoose.DefaultTimestampProps, {
|
|
11427
|
+
id: string;
|
|
11428
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
11429
|
+
timestamps: true;
|
|
11430
|
+
}> & Omit<{
|
|
11431
|
+
id_assunto: number;
|
|
11432
|
+
name: string;
|
|
11433
|
+
description: string;
|
|
11434
|
+
is_active: boolean;
|
|
11435
|
+
} & mongoose.DefaultTimestampProps & {
|
|
11436
|
+
_id: mongoose.Types.ObjectId;
|
|
11437
|
+
} & {
|
|
11438
|
+
__v: number;
|
|
11439
|
+
}, "id"> & {
|
|
11440
|
+
id: string;
|
|
11441
|
+
}, unknown, {
|
|
11442
|
+
id_assunto: number;
|
|
11443
|
+
name: string;
|
|
11444
|
+
description: string;
|
|
11445
|
+
is_active: boolean;
|
|
11446
|
+
createdAt: NativeDate;
|
|
11447
|
+
updatedAt: NativeDate;
|
|
11448
|
+
} & {
|
|
11449
|
+
_id: mongoose.Types.ObjectId;
|
|
11450
|
+
} & {
|
|
11451
|
+
__v: number;
|
|
11452
|
+
}>;
|
|
11453
|
+
interface RoutinesProblemsIssuesOSSResponse extends HydratedDocument<InferSchemaType<typeof RoutinesProblemsIssuesOSSchema>> {
|
|
11454
|
+
}
|
|
11455
|
+
|
|
11456
|
+
interface RoutinesProblemsIssuesOSInput {
|
|
11457
|
+
triggered_by: Types.ObjectId;
|
|
11458
|
+
}
|
|
11459
|
+
interface RoutinesProblemsIssuesOSCreateInput extends RoutinesProblemsIssuesOSInput {
|
|
11460
|
+
name: string;
|
|
11461
|
+
description: string;
|
|
11462
|
+
id_assunto: number;
|
|
11463
|
+
}
|
|
11464
|
+
interface RoutinesProblemsIssuesOSUpdateInput extends RoutinesProblemsIssuesOSInput {
|
|
11465
|
+
name?: string;
|
|
11466
|
+
description?: string;
|
|
11467
|
+
id_assunto?: number;
|
|
11468
|
+
is_active?: boolean;
|
|
11469
|
+
}
|
|
11470
|
+
interface RoutinesProblemsIssuesOSToggleActiveInput extends RoutinesProblemsIssuesOSInput {
|
|
11471
|
+
is_active: boolean;
|
|
11472
|
+
}
|
|
11473
|
+
|
|
11474
|
+
declare class RoutinesProblemsIssuesOSResource {
|
|
11475
|
+
private readonly client;
|
|
11476
|
+
private readonly endpoint;
|
|
11477
|
+
constructor(client: APIClient);
|
|
11478
|
+
/**
|
|
11479
|
+
* POST /v1/problems-issues-os
|
|
11480
|
+
* Cria um novo assunto de OS de problemas.
|
|
11481
|
+
*/
|
|
11482
|
+
create(data: RoutinesProblemsIssuesOSCreateInput): Promise<RoutinesProblemsIssuesOSSResponse>;
|
|
11483
|
+
/**
|
|
11484
|
+
* GET /v1/problems-issues-os
|
|
11485
|
+
* Lista todos os assuntos de OS de problemas.
|
|
11486
|
+
*/
|
|
11487
|
+
findAll(): Promise<RoutinesProblemsIssuesOSSResponse[]>;
|
|
11488
|
+
/**
|
|
11489
|
+
* GET /v1/problems-issues-os/:_id
|
|
11490
|
+
* Busca um assunto de OS de problemas pelo ID.
|
|
11491
|
+
*/
|
|
11492
|
+
findById(_id: Types.ObjectId): Promise<RoutinesProblemsIssuesOSSResponse>;
|
|
11493
|
+
/**
|
|
11494
|
+
* PATCH /v1/problems-issues-os/:_id
|
|
11495
|
+
* Atualiza um assunto de OS de problemas existente.
|
|
11496
|
+
*/
|
|
11497
|
+
update(_id: Types.ObjectId, data: RoutinesProblemsIssuesOSUpdateInput): Promise<RoutinesProblemsIssuesOSSResponse>;
|
|
11498
|
+
/**
|
|
11499
|
+
* PATCH /v1/problems-issues-os/:_id/toggle-active
|
|
11500
|
+
* Ativa ou desativa um assunto de OS de problemas.
|
|
11501
|
+
*/
|
|
11502
|
+
toggleActive(_id: Types.ObjectId, data: RoutinesProblemsIssuesOSToggleActiveInput): Promise<RoutinesProblemsIssuesOSSResponse>;
|
|
11503
|
+
}
|
|
11504
|
+
|
|
11414
11505
|
interface RoutinesTasksInput {
|
|
11415
11506
|
triggered_by: Types.ObjectId;
|
|
11416
11507
|
}
|
|
@@ -11557,6 +11648,7 @@ declare class RoutinesTasksResource {
|
|
|
11557
11648
|
declare class RoutinesAPIClient extends APIClient {
|
|
11558
11649
|
readonly routinesTasksResource: RoutinesTasksResource;
|
|
11559
11650
|
readonly routinesLogsResource: RoutinesLogsResource;
|
|
11651
|
+
readonly routinesProblemsIssuesOSResource: RoutinesProblemsIssuesOSResource;
|
|
11560
11652
|
readonly routinesCancellationAnalysisResource: RoutinesCancellationAnalysisResource;
|
|
11561
11653
|
constructor(config: APIConfigType);
|
|
11562
11654
|
}
|
|
@@ -11579,13 +11671,17 @@ type routinesApi_types_CancellationAnalysisTipo = CancellationAnalysisTipo;
|
|
|
11579
11671
|
type routinesApi_types_CancellationAnalysisWeeklyReportQuery = CancellationAnalysisWeeklyReportQuery;
|
|
11580
11672
|
type routinesApi_types_CancellationAnalysisWeeklyReportQueryMode = CancellationAnalysisWeeklyReportQueryMode;
|
|
11581
11673
|
type routinesApi_types_ListCancellationAnalysisQuery = ListCancellationAnalysisQuery;
|
|
11674
|
+
type routinesApi_types_RoutinesProblemsIssuesOSCreateInput = RoutinesProblemsIssuesOSCreateInput;
|
|
11675
|
+
type routinesApi_types_RoutinesProblemsIssuesOSInput = RoutinesProblemsIssuesOSInput;
|
|
11676
|
+
type routinesApi_types_RoutinesProblemsIssuesOSToggleActiveInput = RoutinesProblemsIssuesOSToggleActiveInput;
|
|
11677
|
+
type routinesApi_types_RoutinesProblemsIssuesOSUpdateInput = RoutinesProblemsIssuesOSUpdateInput;
|
|
11582
11678
|
type routinesApi_types_RoutinesTasksCreateInput = RoutinesTasksCreateInput;
|
|
11583
11679
|
type routinesApi_types_RoutinesTasksInput = RoutinesTasksInput;
|
|
11584
11680
|
type routinesApi_types_RoutinesTasksSyncJobsResponse = RoutinesTasksSyncJobsResponse;
|
|
11585
11681
|
type routinesApi_types_RoutinesTasksToggleActiveInput = RoutinesTasksToggleActiveInput;
|
|
11586
11682
|
type routinesApi_types_RoutinesTasksUpdateInput = RoutinesTasksUpdateInput;
|
|
11587
11683
|
declare namespace routinesApi_types {
|
|
11588
|
-
export type { routinesApi_types_CancellationAnalysisAttendantSnapshot as CancellationAnalysisAttendantSnapshot, routinesApi_types_CancellationAnalysisDailyReportQuery as CancellationAnalysisDailyReportQuery, routinesApi_types_CancellationAnalysisDashboardResponse as CancellationAnalysisDashboardResponse, routinesApi_types_CancellationAnalysisDashboardSummary as CancellationAnalysisDashboardSummary, routinesApi_types_CancellationAnalysisDetailResponse as CancellationAnalysisDetailResponse, routinesApi_types_CancellationAnalysisListItem as CancellationAnalysisListItem, routinesApi_types_CancellationAnalysisListResponse as CancellationAnalysisListResponse, routinesApi_types_CancellationAnalysisMonthlyReportQuery as CancellationAnalysisMonthlyReportQuery, routinesApi_types_CancellationAnalysisOrderBy as CancellationAnalysisOrderBy, routinesApi_types_CancellationAnalysisOrderDirection as CancellationAnalysisOrderDirection, routinesApi_types_CancellationAnalysisRegionSnapshot as CancellationAnalysisRegionSnapshot, routinesApi_types_CancellationAnalysisRequestLog as CancellationAnalysisRequestLog, routinesApi_types_CancellationAnalysisRequestLogStatus as CancellationAnalysisRequestLogStatus, routinesApi_types_CancellationAnalysisStatus as CancellationAnalysisStatus, routinesApi_types_CancellationAnalysisTipo as CancellationAnalysisTipo, routinesApi_types_CancellationAnalysisWeeklyReportQuery as CancellationAnalysisWeeklyReportQuery, routinesApi_types_CancellationAnalysisWeeklyReportQueryMode as CancellationAnalysisWeeklyReportQueryMode, routinesApi_types_ListCancellationAnalysisQuery as ListCancellationAnalysisQuery, routinesApi_types_RoutinesTasksCreateInput as RoutinesTasksCreateInput, routinesApi_types_RoutinesTasksInput as RoutinesTasksInput, routinesApi_types_RoutinesTasksSyncJobsResponse as RoutinesTasksSyncJobsResponse, routinesApi_types_RoutinesTasksToggleActiveInput as RoutinesTasksToggleActiveInput, routinesApi_types_RoutinesTasksUpdateInput as RoutinesTasksUpdateInput };
|
|
11684
|
+
export type { routinesApi_types_CancellationAnalysisAttendantSnapshot as CancellationAnalysisAttendantSnapshot, routinesApi_types_CancellationAnalysisDailyReportQuery as CancellationAnalysisDailyReportQuery, routinesApi_types_CancellationAnalysisDashboardResponse as CancellationAnalysisDashboardResponse, routinesApi_types_CancellationAnalysisDashboardSummary as CancellationAnalysisDashboardSummary, routinesApi_types_CancellationAnalysisDetailResponse as CancellationAnalysisDetailResponse, routinesApi_types_CancellationAnalysisListItem as CancellationAnalysisListItem, routinesApi_types_CancellationAnalysisListResponse as CancellationAnalysisListResponse, routinesApi_types_CancellationAnalysisMonthlyReportQuery as CancellationAnalysisMonthlyReportQuery, routinesApi_types_CancellationAnalysisOrderBy as CancellationAnalysisOrderBy, routinesApi_types_CancellationAnalysisOrderDirection as CancellationAnalysisOrderDirection, routinesApi_types_CancellationAnalysisRegionSnapshot as CancellationAnalysisRegionSnapshot, routinesApi_types_CancellationAnalysisRequestLog as CancellationAnalysisRequestLog, routinesApi_types_CancellationAnalysisRequestLogStatus as CancellationAnalysisRequestLogStatus, routinesApi_types_CancellationAnalysisStatus as CancellationAnalysisStatus, routinesApi_types_CancellationAnalysisTipo as CancellationAnalysisTipo, routinesApi_types_CancellationAnalysisWeeklyReportQuery as CancellationAnalysisWeeklyReportQuery, routinesApi_types_CancellationAnalysisWeeklyReportQueryMode as CancellationAnalysisWeeklyReportQueryMode, routinesApi_types_ListCancellationAnalysisQuery as ListCancellationAnalysisQuery, routinesApi_types_RoutinesProblemsIssuesOSCreateInput as RoutinesProblemsIssuesOSCreateInput, routinesApi_types_RoutinesProblemsIssuesOSInput as RoutinesProblemsIssuesOSInput, routinesApi_types_RoutinesProblemsIssuesOSToggleActiveInput as RoutinesProblemsIssuesOSToggleActiveInput, routinesApi_types_RoutinesProblemsIssuesOSUpdateInput as RoutinesProblemsIssuesOSUpdateInput, routinesApi_types_RoutinesTasksCreateInput as RoutinesTasksCreateInput, routinesApi_types_RoutinesTasksInput as RoutinesTasksInput, routinesApi_types_RoutinesTasksSyncJobsResponse as RoutinesTasksSyncJobsResponse, routinesApi_types_RoutinesTasksToggleActiveInput as RoutinesTasksToggleActiveInput, routinesApi_types_RoutinesTasksUpdateInput as RoutinesTasksUpdateInput };
|
|
11589
11685
|
}
|
|
11590
11686
|
|
|
11591
11687
|
type NtfyPriority = "max" | "high" | "default" | "low" | "min";
|
|
@@ -37774,6 +37870,45 @@ declare const schemas$3: {
|
|
|
37774
37870
|
} & {
|
|
37775
37871
|
__v: number;
|
|
37776
37872
|
}>;
|
|
37873
|
+
problems_issues_os: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37874
|
+
timestamps: true;
|
|
37875
|
+
}, {
|
|
37876
|
+
id_assunto: number;
|
|
37877
|
+
name: string;
|
|
37878
|
+
description: string;
|
|
37879
|
+
is_active: boolean;
|
|
37880
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
37881
|
+
id_assunto: number;
|
|
37882
|
+
name: string;
|
|
37883
|
+
description: string;
|
|
37884
|
+
is_active: boolean;
|
|
37885
|
+
} & mongoose.DefaultTimestampProps, {
|
|
37886
|
+
id: string;
|
|
37887
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
37888
|
+
timestamps: true;
|
|
37889
|
+
}> & Omit<{
|
|
37890
|
+
id_assunto: number;
|
|
37891
|
+
name: string;
|
|
37892
|
+
description: string;
|
|
37893
|
+
is_active: boolean;
|
|
37894
|
+
} & mongoose.DefaultTimestampProps & {
|
|
37895
|
+
_id: mongoose.Types.ObjectId;
|
|
37896
|
+
} & {
|
|
37897
|
+
__v: number;
|
|
37898
|
+
}, "id"> & {
|
|
37899
|
+
id: string;
|
|
37900
|
+
}, unknown, {
|
|
37901
|
+
id_assunto: number;
|
|
37902
|
+
name: string;
|
|
37903
|
+
description: string;
|
|
37904
|
+
is_active: boolean;
|
|
37905
|
+
createdAt: NativeDate;
|
|
37906
|
+
updatedAt: NativeDate;
|
|
37907
|
+
} & {
|
|
37908
|
+
_id: mongoose.Types.ObjectId;
|
|
37909
|
+
} & {
|
|
37910
|
+
__v: number;
|
|
37911
|
+
}>;
|
|
37777
37912
|
logs: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37778
37913
|
timestamps: true;
|
|
37779
37914
|
}, {
|
package/dist/index.js
CHANGED
|
@@ -706,6 +706,60 @@ var RoutinesLogsResource = class {
|
|
|
706
706
|
}
|
|
707
707
|
};
|
|
708
708
|
|
|
709
|
+
// src/apis/clients/routines/resources/problems-issues-os/routines-problems-issues-os.resource.ts
|
|
710
|
+
var RoutinesProblemsIssuesOSResource = class {
|
|
711
|
+
constructor(client) {
|
|
712
|
+
this.client = client;
|
|
713
|
+
this.endpoint = "/v1/problems-issues-os";
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* POST /v1/problems-issues-os
|
|
717
|
+
* Cria um novo assunto de OS de problemas.
|
|
718
|
+
*/
|
|
719
|
+
async create(data) {
|
|
720
|
+
return this.client.post(
|
|
721
|
+
this.endpoint,
|
|
722
|
+
data
|
|
723
|
+
);
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* GET /v1/problems-issues-os
|
|
727
|
+
* Lista todos os assuntos de OS de problemas.
|
|
728
|
+
*/
|
|
729
|
+
async findAll() {
|
|
730
|
+
return this.client.get(this.endpoint);
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* GET /v1/problems-issues-os/:_id
|
|
734
|
+
* Busca um assunto de OS de problemas pelo ID.
|
|
735
|
+
*/
|
|
736
|
+
async findById(_id) {
|
|
737
|
+
return this.client.get(
|
|
738
|
+
`${this.endpoint}/${_id}`
|
|
739
|
+
);
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* PATCH /v1/problems-issues-os/:_id
|
|
743
|
+
* Atualiza um assunto de OS de problemas existente.
|
|
744
|
+
*/
|
|
745
|
+
async update(_id, data) {
|
|
746
|
+
return this.client.patch(
|
|
747
|
+
`${this.endpoint}/${_id}`,
|
|
748
|
+
data
|
|
749
|
+
);
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* PATCH /v1/problems-issues-os/:_id/toggle-active
|
|
753
|
+
* Ativa ou desativa um assunto de OS de problemas.
|
|
754
|
+
*/
|
|
755
|
+
async toggleActive(_id, data) {
|
|
756
|
+
return this.client.patch(
|
|
757
|
+
`${this.endpoint}/${_id}/toggle-active`,
|
|
758
|
+
data
|
|
759
|
+
);
|
|
760
|
+
}
|
|
761
|
+
};
|
|
762
|
+
|
|
709
763
|
// src/apis/clients/routines/resources/tasks/routines-tasks.resource.ts
|
|
710
764
|
var RoutinesTasksResource = class {
|
|
711
765
|
constructor(client) {
|
|
@@ -796,6 +850,7 @@ var RoutinesAPIClient = class extends APIClient {
|
|
|
796
850
|
});
|
|
797
851
|
this.routinesTasksResource = new RoutinesTasksResource(this);
|
|
798
852
|
this.routinesLogsResource = new RoutinesLogsResource(this);
|
|
853
|
+
this.routinesProblemsIssuesOSResource = new RoutinesProblemsIssuesOSResource(this);
|
|
799
854
|
this.routinesCancellationAnalysisResource = new RoutinesCancellationAnalysisResource(this);
|
|
800
855
|
}
|
|
801
856
|
};
|
|
@@ -92356,12 +92411,26 @@ var RoutinesTasksSchema = new import_mongoose12.Schema(
|
|
|
92356
92411
|
}
|
|
92357
92412
|
);
|
|
92358
92413
|
|
|
92359
|
-
// src/databases/mongo/routines/collections/
|
|
92414
|
+
// src/databases/mongo/routines/collections/problems-issues-os.ts
|
|
92360
92415
|
var import_mongoose13 = require("mongoose");
|
|
92361
|
-
var
|
|
92416
|
+
var RoutinesProblemsIssuesOSSchema = new import_mongoose13.Schema(
|
|
92417
|
+
{
|
|
92418
|
+
name: { type: String, required: true, unique: true },
|
|
92419
|
+
description: { type: String, required: true },
|
|
92420
|
+
id_assunto: { type: Number, required: true },
|
|
92421
|
+
is_active: { type: Boolean, default: true }
|
|
92422
|
+
},
|
|
92423
|
+
{
|
|
92424
|
+
timestamps: true
|
|
92425
|
+
}
|
|
92426
|
+
);
|
|
92427
|
+
|
|
92428
|
+
// src/databases/mongo/routines/collections/logs.ts
|
|
92429
|
+
var import_mongoose14 = require("mongoose");
|
|
92430
|
+
var RoutinesLogsSchema = new import_mongoose14.Schema(
|
|
92362
92431
|
{
|
|
92363
92432
|
task: {
|
|
92364
|
-
type:
|
|
92433
|
+
type: import_mongoose14.Types.ObjectId,
|
|
92365
92434
|
ref: "Task"
|
|
92366
92435
|
},
|
|
92367
92436
|
action: { type: String, required: true },
|
|
@@ -92370,10 +92439,10 @@ var RoutinesLogsSchema = new import_mongoose13.Schema(
|
|
|
92370
92439
|
enum: ["success", "error", "warning", "info"],
|
|
92371
92440
|
required: true
|
|
92372
92441
|
},
|
|
92373
|
-
triggered_by: { type:
|
|
92442
|
+
triggered_by: { type: import_mongoose14.Types.ObjectId, default: null },
|
|
92374
92443
|
description: { type: String, required: true },
|
|
92375
92444
|
executionTimeMs: { type: Number, default: null },
|
|
92376
|
-
metadata: { type:
|
|
92445
|
+
metadata: { type: import_mongoose14.Schema.Types.Mixed }
|
|
92377
92446
|
},
|
|
92378
92447
|
{
|
|
92379
92448
|
timestamps: true
|
|
@@ -92383,6 +92452,7 @@ var RoutinesLogsSchema = new import_mongoose13.Schema(
|
|
|
92383
92452
|
// src/databases/mongo/routines/collections/index.ts
|
|
92384
92453
|
var schemas3 = {
|
|
92385
92454
|
tasks: RoutinesTasksSchema,
|
|
92455
|
+
problems_issues_os: RoutinesProblemsIssuesOSSchema,
|
|
92386
92456
|
logs: RoutinesLogsSchema
|
|
92387
92457
|
};
|
|
92388
92458
|
|
|
@@ -92459,8 +92529,8 @@ var configMCPGiganetMongo = {
|
|
|
92459
92529
|
};
|
|
92460
92530
|
|
|
92461
92531
|
// src/databases/mongo/mcp-giganet/collections/api-keys.ts
|
|
92462
|
-
var
|
|
92463
|
-
var MCPGiganetAPIKeysSchema = new
|
|
92532
|
+
var import_mongoose15 = require("mongoose");
|
|
92533
|
+
var MCPGiganetAPIKeysSchema = new import_mongoose15.Schema(
|
|
92464
92534
|
{
|
|
92465
92535
|
name: { type: String, required: true, trim: true, unique: true },
|
|
92466
92536
|
keyPrefix: { type: String, required: true },
|
|
@@ -92474,8 +92544,8 @@ var MCPGiganetAPIKeysSchema = new import_mongoose14.Schema(
|
|
|
92474
92544
|
);
|
|
92475
92545
|
|
|
92476
92546
|
// src/databases/mongo/mcp-giganet/collections/logs.ts
|
|
92477
|
-
var
|
|
92478
|
-
var MCPGiganetLogsSchema = new
|
|
92547
|
+
var import_mongoose16 = require("mongoose");
|
|
92548
|
+
var MCPGiganetLogsSchema = new import_mongoose16.Schema(
|
|
92479
92549
|
{
|
|
92480
92550
|
action: { type: String, required: true },
|
|
92481
92551
|
status: {
|
|
@@ -92483,11 +92553,11 @@ var MCPGiganetLogsSchema = new import_mongoose15.Schema(
|
|
|
92483
92553
|
required: true,
|
|
92484
92554
|
enum: ["success", "error", "warning", "info"]
|
|
92485
92555
|
},
|
|
92486
|
-
apiKeyId: { type:
|
|
92556
|
+
apiKeyId: { type: import_mongoose16.Types.ObjectId, required: false, default: null },
|
|
92487
92557
|
description: { type: String, required: true },
|
|
92488
92558
|
ip: { type: String, required: true },
|
|
92489
92559
|
executionTimeMs: { type: Number, required: true },
|
|
92490
|
-
metadata: { type:
|
|
92560
|
+
metadata: { type: import_mongoose16.Schema.Types.Mixed, required: false }
|
|
92491
92561
|
},
|
|
92492
92562
|
{
|
|
92493
92563
|
timestamps: true
|
|
@@ -92573,8 +92643,8 @@ var configExpensesFleetMongo = {
|
|
|
92573
92643
|
};
|
|
92574
92644
|
|
|
92575
92645
|
// src/databases/mongo/expenses-fleet/collections/categories.ts
|
|
92576
|
-
var
|
|
92577
|
-
var ExpensesFleetCategoriesSchema = new
|
|
92646
|
+
var import_mongoose17 = require("mongoose");
|
|
92647
|
+
var ExpensesFleetCategoriesSchema = new import_mongoose17.Schema(
|
|
92578
92648
|
{
|
|
92579
92649
|
name: { type: String, required: true },
|
|
92580
92650
|
description: { type: String, required: true },
|
|
@@ -92587,8 +92657,8 @@ var ExpensesFleetCategoriesSchema = new import_mongoose16.Schema(
|
|
|
92587
92657
|
);
|
|
92588
92658
|
|
|
92589
92659
|
// src/databases/mongo/expenses-fleet/collections/tickets.ts
|
|
92590
|
-
var
|
|
92591
|
-
var TicketImageSchema = new
|
|
92660
|
+
var import_mongoose18 = require("mongoose");
|
|
92661
|
+
var TicketImageSchema = new import_mongoose18.Schema(
|
|
92592
92662
|
{
|
|
92593
92663
|
key: { type: String, required: true },
|
|
92594
92664
|
file_path: { type: String, required: true },
|
|
@@ -92596,7 +92666,7 @@ var TicketImageSchema = new import_mongoose17.Schema(
|
|
|
92596
92666
|
},
|
|
92597
92667
|
{ _id: false }
|
|
92598
92668
|
);
|
|
92599
|
-
var ExpensesFleetTicketsSchema = new
|
|
92669
|
+
var ExpensesFleetTicketsSchema = new import_mongoose18.Schema(
|
|
92600
92670
|
{
|
|
92601
92671
|
status: {
|
|
92602
92672
|
type: String,
|
|
@@ -92604,7 +92674,7 @@ var ExpensesFleetTicketsSchema = new import_mongoose17.Schema(
|
|
|
92604
92674
|
default: "pendente",
|
|
92605
92675
|
required: true
|
|
92606
92676
|
},
|
|
92607
|
-
id_category: { type:
|
|
92677
|
+
id_category: { type: import_mongoose18.Types.ObjectId, ref: "categories", required: true },
|
|
92608
92678
|
id_veiculo: { type: Number, required: true },
|
|
92609
92679
|
placa: { type: String, required: true },
|
|
92610
92680
|
id_condutor: { type: Number, required: true },
|
|
@@ -92627,11 +92697,11 @@ var ExpensesFleetTicketsSchema = new import_mongoose17.Schema(
|
|
|
92627
92697
|
);
|
|
92628
92698
|
|
|
92629
92699
|
// src/databases/mongo/expenses-fleet/collections/logs.ts
|
|
92630
|
-
var
|
|
92631
|
-
var ExpensesFleetLogsSchema = new
|
|
92700
|
+
var import_mongoose19 = require("mongoose");
|
|
92701
|
+
var ExpensesFleetLogsSchema = new import_mongoose19.Schema(
|
|
92632
92702
|
{
|
|
92633
92703
|
ticket: {
|
|
92634
|
-
type:
|
|
92704
|
+
type: import_mongoose19.Types.ObjectId,
|
|
92635
92705
|
ref: "Ticket"
|
|
92636
92706
|
},
|
|
92637
92707
|
action: { type: String, required: true },
|
|
@@ -92640,10 +92710,10 @@ var ExpensesFleetLogsSchema = new import_mongoose18.Schema(
|
|
|
92640
92710
|
enum: ["success", "error", "warning", "info"],
|
|
92641
92711
|
required: true
|
|
92642
92712
|
},
|
|
92643
|
-
triggered_by: { type:
|
|
92713
|
+
triggered_by: { type: import_mongoose19.Types.ObjectId, default: null },
|
|
92644
92714
|
description: { type: String, required: true },
|
|
92645
92715
|
executionTimeMs: { type: Number, default: null },
|
|
92646
|
-
metadata: { type:
|
|
92716
|
+
metadata: { type: import_mongoose19.Schema.Types.Mixed }
|
|
92647
92717
|
},
|
|
92648
92718
|
{
|
|
92649
92719
|
timestamps: true
|
|
@@ -92730,8 +92800,8 @@ var configGigacenterMongo = {
|
|
|
92730
92800
|
};
|
|
92731
92801
|
|
|
92732
92802
|
// src/databases/mongo/gigacenter/collections/financeiro-fechamento.ts
|
|
92733
|
-
var
|
|
92734
|
-
var FinanceiroFechamentoSchema = new
|
|
92803
|
+
var import_mongoose20 = require("mongoose");
|
|
92804
|
+
var FinanceiroFechamentoSchema = new import_mongoose20.Schema(
|
|
92735
92805
|
{
|
|
92736
92806
|
observacao: { type: String, default: "" },
|
|
92737
92807
|
lacre: { type: String, default: "" },
|
package/dist/index.mjs
CHANGED
|
@@ -658,6 +658,60 @@ var RoutinesLogsResource = class {
|
|
|
658
658
|
}
|
|
659
659
|
};
|
|
660
660
|
|
|
661
|
+
// src/apis/clients/routines/resources/problems-issues-os/routines-problems-issues-os.resource.ts
|
|
662
|
+
var RoutinesProblemsIssuesOSResource = class {
|
|
663
|
+
constructor(client) {
|
|
664
|
+
this.client = client;
|
|
665
|
+
this.endpoint = "/v1/problems-issues-os";
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* POST /v1/problems-issues-os
|
|
669
|
+
* Cria um novo assunto de OS de problemas.
|
|
670
|
+
*/
|
|
671
|
+
async create(data) {
|
|
672
|
+
return this.client.post(
|
|
673
|
+
this.endpoint,
|
|
674
|
+
data
|
|
675
|
+
);
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* GET /v1/problems-issues-os
|
|
679
|
+
* Lista todos os assuntos de OS de problemas.
|
|
680
|
+
*/
|
|
681
|
+
async findAll() {
|
|
682
|
+
return this.client.get(this.endpoint);
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
685
|
+
* GET /v1/problems-issues-os/:_id
|
|
686
|
+
* Busca um assunto de OS de problemas pelo ID.
|
|
687
|
+
*/
|
|
688
|
+
async findById(_id) {
|
|
689
|
+
return this.client.get(
|
|
690
|
+
`${this.endpoint}/${_id}`
|
|
691
|
+
);
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* PATCH /v1/problems-issues-os/:_id
|
|
695
|
+
* Atualiza um assunto de OS de problemas existente.
|
|
696
|
+
*/
|
|
697
|
+
async update(_id, data) {
|
|
698
|
+
return this.client.patch(
|
|
699
|
+
`${this.endpoint}/${_id}`,
|
|
700
|
+
data
|
|
701
|
+
);
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* PATCH /v1/problems-issues-os/:_id/toggle-active
|
|
705
|
+
* Ativa ou desativa um assunto de OS de problemas.
|
|
706
|
+
*/
|
|
707
|
+
async toggleActive(_id, data) {
|
|
708
|
+
return this.client.patch(
|
|
709
|
+
`${this.endpoint}/${_id}/toggle-active`,
|
|
710
|
+
data
|
|
711
|
+
);
|
|
712
|
+
}
|
|
713
|
+
};
|
|
714
|
+
|
|
661
715
|
// src/apis/clients/routines/resources/tasks/routines-tasks.resource.ts
|
|
662
716
|
var RoutinesTasksResource = class {
|
|
663
717
|
constructor(client) {
|
|
@@ -748,6 +802,7 @@ var RoutinesAPIClient = class extends APIClient {
|
|
|
748
802
|
});
|
|
749
803
|
this.routinesTasksResource = new RoutinesTasksResource(this);
|
|
750
804
|
this.routinesLogsResource = new RoutinesLogsResource(this);
|
|
805
|
+
this.routinesProblemsIssuesOSResource = new RoutinesProblemsIssuesOSResource(this);
|
|
751
806
|
this.routinesCancellationAnalysisResource = new RoutinesCancellationAnalysisResource(this);
|
|
752
807
|
}
|
|
753
808
|
};
|
|
@@ -92308,9 +92363,23 @@ var RoutinesTasksSchema = new Schema11(
|
|
|
92308
92363
|
}
|
|
92309
92364
|
);
|
|
92310
92365
|
|
|
92366
|
+
// src/databases/mongo/routines/collections/problems-issues-os.ts
|
|
92367
|
+
import { Schema as Schema12 } from "mongoose";
|
|
92368
|
+
var RoutinesProblemsIssuesOSSchema = new Schema12(
|
|
92369
|
+
{
|
|
92370
|
+
name: { type: String, required: true, unique: true },
|
|
92371
|
+
description: { type: String, required: true },
|
|
92372
|
+
id_assunto: { type: Number, required: true },
|
|
92373
|
+
is_active: { type: Boolean, default: true }
|
|
92374
|
+
},
|
|
92375
|
+
{
|
|
92376
|
+
timestamps: true
|
|
92377
|
+
}
|
|
92378
|
+
);
|
|
92379
|
+
|
|
92311
92380
|
// src/databases/mongo/routines/collections/logs.ts
|
|
92312
|
-
import { Schema as
|
|
92313
|
-
var RoutinesLogsSchema = new
|
|
92381
|
+
import { Schema as Schema13, Types as Types5 } from "mongoose";
|
|
92382
|
+
var RoutinesLogsSchema = new Schema13(
|
|
92314
92383
|
{
|
|
92315
92384
|
task: {
|
|
92316
92385
|
type: Types5.ObjectId,
|
|
@@ -92325,7 +92394,7 @@ var RoutinesLogsSchema = new Schema12(
|
|
|
92325
92394
|
triggered_by: { type: Types5.ObjectId, default: null },
|
|
92326
92395
|
description: { type: String, required: true },
|
|
92327
92396
|
executionTimeMs: { type: Number, default: null },
|
|
92328
|
-
metadata: { type:
|
|
92397
|
+
metadata: { type: Schema13.Types.Mixed }
|
|
92329
92398
|
},
|
|
92330
92399
|
{
|
|
92331
92400
|
timestamps: true
|
|
@@ -92335,6 +92404,7 @@ var RoutinesLogsSchema = new Schema12(
|
|
|
92335
92404
|
// src/databases/mongo/routines/collections/index.ts
|
|
92336
92405
|
var schemas3 = {
|
|
92337
92406
|
tasks: RoutinesTasksSchema,
|
|
92407
|
+
problems_issues_os: RoutinesProblemsIssuesOSSchema,
|
|
92338
92408
|
logs: RoutinesLogsSchema
|
|
92339
92409
|
};
|
|
92340
92410
|
|
|
@@ -92411,8 +92481,8 @@ var configMCPGiganetMongo = {
|
|
|
92411
92481
|
};
|
|
92412
92482
|
|
|
92413
92483
|
// src/databases/mongo/mcp-giganet/collections/api-keys.ts
|
|
92414
|
-
import { Schema as
|
|
92415
|
-
var MCPGiganetAPIKeysSchema = new
|
|
92484
|
+
import { Schema as Schema14 } from "mongoose";
|
|
92485
|
+
var MCPGiganetAPIKeysSchema = new Schema14(
|
|
92416
92486
|
{
|
|
92417
92487
|
name: { type: String, required: true, trim: true, unique: true },
|
|
92418
92488
|
keyPrefix: { type: String, required: true },
|
|
@@ -92426,8 +92496,8 @@ var MCPGiganetAPIKeysSchema = new Schema13(
|
|
|
92426
92496
|
);
|
|
92427
92497
|
|
|
92428
92498
|
// src/databases/mongo/mcp-giganet/collections/logs.ts
|
|
92429
|
-
import { Schema as
|
|
92430
|
-
var MCPGiganetLogsSchema = new
|
|
92499
|
+
import { Schema as Schema15, Types as Types7 } from "mongoose";
|
|
92500
|
+
var MCPGiganetLogsSchema = new Schema15(
|
|
92431
92501
|
{
|
|
92432
92502
|
action: { type: String, required: true },
|
|
92433
92503
|
status: {
|
|
@@ -92439,7 +92509,7 @@ var MCPGiganetLogsSchema = new Schema14(
|
|
|
92439
92509
|
description: { type: String, required: true },
|
|
92440
92510
|
ip: { type: String, required: true },
|
|
92441
92511
|
executionTimeMs: { type: Number, required: true },
|
|
92442
|
-
metadata: { type:
|
|
92512
|
+
metadata: { type: Schema15.Types.Mixed, required: false }
|
|
92443
92513
|
},
|
|
92444
92514
|
{
|
|
92445
92515
|
timestamps: true
|
|
@@ -92525,8 +92595,8 @@ var configExpensesFleetMongo = {
|
|
|
92525
92595
|
};
|
|
92526
92596
|
|
|
92527
92597
|
// src/databases/mongo/expenses-fleet/collections/categories.ts
|
|
92528
|
-
import { Schema as
|
|
92529
|
-
var ExpensesFleetCategoriesSchema = new
|
|
92598
|
+
import { Schema as Schema16 } from "mongoose";
|
|
92599
|
+
var ExpensesFleetCategoriesSchema = new Schema16(
|
|
92530
92600
|
{
|
|
92531
92601
|
name: { type: String, required: true },
|
|
92532
92602
|
description: { type: String, required: true },
|
|
@@ -92539,8 +92609,8 @@ var ExpensesFleetCategoriesSchema = new Schema15(
|
|
|
92539
92609
|
);
|
|
92540
92610
|
|
|
92541
92611
|
// src/databases/mongo/expenses-fleet/collections/tickets.ts
|
|
92542
|
-
import { Schema as
|
|
92543
|
-
var TicketImageSchema = new
|
|
92612
|
+
import { Schema as Schema17, Types as Types9 } from "mongoose";
|
|
92613
|
+
var TicketImageSchema = new Schema17(
|
|
92544
92614
|
{
|
|
92545
92615
|
key: { type: String, required: true },
|
|
92546
92616
|
file_path: { type: String, required: true },
|
|
@@ -92548,7 +92618,7 @@ var TicketImageSchema = new Schema16(
|
|
|
92548
92618
|
},
|
|
92549
92619
|
{ _id: false }
|
|
92550
92620
|
);
|
|
92551
|
-
var ExpensesFleetTicketsSchema = new
|
|
92621
|
+
var ExpensesFleetTicketsSchema = new Schema17(
|
|
92552
92622
|
{
|
|
92553
92623
|
status: {
|
|
92554
92624
|
type: String,
|
|
@@ -92579,8 +92649,8 @@ var ExpensesFleetTicketsSchema = new Schema16(
|
|
|
92579
92649
|
);
|
|
92580
92650
|
|
|
92581
92651
|
// src/databases/mongo/expenses-fleet/collections/logs.ts
|
|
92582
|
-
import { Schema as
|
|
92583
|
-
var ExpensesFleetLogsSchema = new
|
|
92652
|
+
import { Schema as Schema18, Types as Types10 } from "mongoose";
|
|
92653
|
+
var ExpensesFleetLogsSchema = new Schema18(
|
|
92584
92654
|
{
|
|
92585
92655
|
ticket: {
|
|
92586
92656
|
type: Types10.ObjectId,
|
|
@@ -92595,7 +92665,7 @@ var ExpensesFleetLogsSchema = new Schema17(
|
|
|
92595
92665
|
triggered_by: { type: Types10.ObjectId, default: null },
|
|
92596
92666
|
description: { type: String, required: true },
|
|
92597
92667
|
executionTimeMs: { type: Number, default: null },
|
|
92598
|
-
metadata: { type:
|
|
92668
|
+
metadata: { type: Schema18.Types.Mixed }
|
|
92599
92669
|
},
|
|
92600
92670
|
{
|
|
92601
92671
|
timestamps: true
|
|
@@ -92682,8 +92752,8 @@ var configGigacenterMongo = {
|
|
|
92682
92752
|
};
|
|
92683
92753
|
|
|
92684
92754
|
// src/databases/mongo/gigacenter/collections/financeiro-fechamento.ts
|
|
92685
|
-
import { Schema as
|
|
92686
|
-
var FinanceiroFechamentoSchema = new
|
|
92755
|
+
import { Schema as Schema19 } from "mongoose";
|
|
92756
|
+
var FinanceiroFechamentoSchema = new Schema19(
|
|
92687
92757
|
{
|
|
92688
92758
|
observacao: { type: String, default: "" },
|
|
92689
92759
|
lacre: { type: String, default: "" },
|