@cristian-israel/giganet_lib_conecta 1.0.77 → 1.0.78
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 +177 -1
- package/dist/index.d.ts +177 -1
- package/dist/index.js +66 -0
- package/dist/index.mjs +66 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -10982,6 +10982,163 @@ declare namespace ixcSoftApi_types {
|
|
|
10982
10982
|
export { type ixcSoftApi_types_IXCSoftResponse as IXCSoftResponse, 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 };
|
|
10983
10983
|
}
|
|
10984
10984
|
|
|
10985
|
+
type CancellationAnalysisTipo = "diario" | "semanal" | "mensal";
|
|
10986
|
+
type CancellationAnalysisStatus = "processando" | "concluido" | "erro";
|
|
10987
|
+
type CancellationAnalysisOrderBy = "processadoEm" | "createdAt" | "periodoInicio" | "totalOs";
|
|
10988
|
+
type CancellationAnalysisOrderDirection = "asc" | "desc";
|
|
10989
|
+
interface ListCancellationAnalysisQuery {
|
|
10990
|
+
tipo?: CancellationAnalysisTipo;
|
|
10991
|
+
status?: CancellationAnalysisStatus;
|
|
10992
|
+
/** YYYY-MM-DD */
|
|
10993
|
+
periodoInicio?: string;
|
|
10994
|
+
/** YYYY-MM-DD */
|
|
10995
|
+
periodoFim?: string;
|
|
10996
|
+
/** numeric string (DTO) */
|
|
10997
|
+
page?: string;
|
|
10998
|
+
/** numeric string (DTO) */
|
|
10999
|
+
limit?: string;
|
|
11000
|
+
orderBy?: CancellationAnalysisOrderBy;
|
|
11001
|
+
orderDirection?: CancellationAnalysisOrderDirection;
|
|
11002
|
+
/** boolean string (DTO) */
|
|
11003
|
+
includeResultadoIa?: string;
|
|
11004
|
+
}
|
|
11005
|
+
interface CancellationAnalysisDailyReportQuery {
|
|
11006
|
+
/** YYYY-MM-DD */
|
|
11007
|
+
date: string;
|
|
11008
|
+
}
|
|
11009
|
+
type CancellationAnalysisWeeklyReportQueryMode = "date" | "yearWeek";
|
|
11010
|
+
interface CancellationAnalysisWeeklyReportQuery {
|
|
11011
|
+
mode?: CancellationAnalysisWeeklyReportQueryMode;
|
|
11012
|
+
/** YYYY-MM-DD */
|
|
11013
|
+
date?: string;
|
|
11014
|
+
/** YYYY */
|
|
11015
|
+
year?: string;
|
|
11016
|
+
/** 1-2 digits */
|
|
11017
|
+
week?: string;
|
|
11018
|
+
}
|
|
11019
|
+
interface CancellationAnalysisMonthlyReportQuery {
|
|
11020
|
+
/** YYYY */
|
|
11021
|
+
year: string;
|
|
11022
|
+
/** 1-12 (string, may be 01..12) */
|
|
11023
|
+
month: string;
|
|
11024
|
+
}
|
|
11025
|
+
interface CancellationAnalysisListItem {
|
|
11026
|
+
id: number;
|
|
11027
|
+
tipo: CancellationAnalysisTipo;
|
|
11028
|
+
periodoInicio: string;
|
|
11029
|
+
periodoFim: string;
|
|
11030
|
+
status?: CancellationAnalysisStatus;
|
|
11031
|
+
tentativas?: number;
|
|
11032
|
+
maxTentativas?: number;
|
|
11033
|
+
totalOs?: number | null;
|
|
11034
|
+
totalEvitaveis?: number | null;
|
|
11035
|
+
causaPrincipal?: string | null;
|
|
11036
|
+
resumoExecutivo?: string | null;
|
|
11037
|
+
resultadoIa?: unknown | object | null;
|
|
11038
|
+
/** ISO date string or Date, depending on serializer */
|
|
11039
|
+
processadoEm?: string | Date | null;
|
|
11040
|
+
createdAt?: string | Date;
|
|
11041
|
+
updatedAt?: string | Date;
|
|
11042
|
+
periodoLabel: string;
|
|
11043
|
+
taxaEvitabilidade: number;
|
|
11044
|
+
}
|
|
11045
|
+
interface CancellationAnalysisListResponse {
|
|
11046
|
+
data: CancellationAnalysisListItem[];
|
|
11047
|
+
page: number;
|
|
11048
|
+
limit: number;
|
|
11049
|
+
total: number;
|
|
11050
|
+
totalPages: number;
|
|
11051
|
+
}
|
|
11052
|
+
interface CancellationAnalysisRegionSnapshot {
|
|
11053
|
+
id: number;
|
|
11054
|
+
analysisId: number;
|
|
11055
|
+
regiao: string;
|
|
11056
|
+
totalOs?: number;
|
|
11057
|
+
causaDominante?: string;
|
|
11058
|
+
critico?: boolean;
|
|
11059
|
+
lat?: number | null;
|
|
11060
|
+
lng?: number | null;
|
|
11061
|
+
}
|
|
11062
|
+
interface CancellationAnalysisAttendantSnapshot {
|
|
11063
|
+
id: number;
|
|
11064
|
+
analysisId: number;
|
|
11065
|
+
idAtendente: string;
|
|
11066
|
+
totalOs?: number;
|
|
11067
|
+
respostasInsuficientes?: number;
|
|
11068
|
+
alerta?: boolean;
|
|
11069
|
+
}
|
|
11070
|
+
type CancellationAnalysisRequestLogStatus = string;
|
|
11071
|
+
interface CancellationAnalysisRequestLog {
|
|
11072
|
+
id: number;
|
|
11073
|
+
analysisId: number;
|
|
11074
|
+
modelo?: string;
|
|
11075
|
+
tokensEntrada?: number;
|
|
11076
|
+
tokensSaida?: number;
|
|
11077
|
+
duracaoMs?: number;
|
|
11078
|
+
status?: CancellationAnalysisRequestLogStatus;
|
|
11079
|
+
erroMensagem?: string | null;
|
|
11080
|
+
createdAt?: string | Date;
|
|
11081
|
+
}
|
|
11082
|
+
interface CancellationAnalysisDetailResponse {
|
|
11083
|
+
analysis: CancellationAnalysisListItem;
|
|
11084
|
+
regionSnapshots: CancellationAnalysisRegionSnapshot[];
|
|
11085
|
+
attendantSnapshots: CancellationAnalysisAttendantSnapshot[];
|
|
11086
|
+
requestLogs: CancellationAnalysisRequestLog[];
|
|
11087
|
+
}
|
|
11088
|
+
interface CancellationAnalysisDashboardSummary {
|
|
11089
|
+
totalAnalises: number;
|
|
11090
|
+
concluidas: number;
|
|
11091
|
+
processando: number;
|
|
11092
|
+
erros: number;
|
|
11093
|
+
totalOs: number;
|
|
11094
|
+
totalEvitaveis: number;
|
|
11095
|
+
taxaEvitabilidade: number;
|
|
11096
|
+
ultimoProcessamento?: string | Date | null;
|
|
11097
|
+
}
|
|
11098
|
+
interface CancellationAnalysisDashboardResponse {
|
|
11099
|
+
summary: CancellationAnalysisDashboardSummary;
|
|
11100
|
+
latest: CancellationAnalysisListItem[];
|
|
11101
|
+
criticalRegions: CancellationAnalysisRegionSnapshot[];
|
|
11102
|
+
attendantAlerts: CancellationAnalysisAttendantSnapshot[];
|
|
11103
|
+
recentLogs: CancellationAnalysisRequestLog[];
|
|
11104
|
+
}
|
|
11105
|
+
|
|
11106
|
+
declare class RoutinesCancellationAnalysisResource {
|
|
11107
|
+
private readonly client;
|
|
11108
|
+
private readonly endpoint;
|
|
11109
|
+
constructor(client: APIClient);
|
|
11110
|
+
/**
|
|
11111
|
+
* GET /jobs/cancellation-analysis
|
|
11112
|
+
* Lista análises de cancelamento.
|
|
11113
|
+
*/
|
|
11114
|
+
list(query?: ListCancellationAnalysisQuery): Promise<CancellationAnalysisListResponse>;
|
|
11115
|
+
/**
|
|
11116
|
+
* GET /jobs/cancellation-analysis/dashboard
|
|
11117
|
+
* Retorna dados para dashboard.
|
|
11118
|
+
*/
|
|
11119
|
+
dashboard(): Promise<CancellationAnalysisDashboardResponse>;
|
|
11120
|
+
/**
|
|
11121
|
+
* GET /jobs/cancellation-analysis/reports/daily
|
|
11122
|
+
* Retorna relatório diário.
|
|
11123
|
+
*/
|
|
11124
|
+
reportsDaily(query: CancellationAnalysisDailyReportQuery): Promise<CancellationAnalysisDetailResponse>;
|
|
11125
|
+
/**
|
|
11126
|
+
* GET /jobs/cancellation-analysis/reports/weekly
|
|
11127
|
+
* Retorna relatório semanal.
|
|
11128
|
+
*/
|
|
11129
|
+
reportsWeekly(query: CancellationAnalysisWeeklyReportQuery): Promise<CancellationAnalysisDetailResponse>;
|
|
11130
|
+
/**
|
|
11131
|
+
* GET /jobs/cancellation-analysis/reports/monthly
|
|
11132
|
+
* Retorna relatório mensal.
|
|
11133
|
+
*/
|
|
11134
|
+
reportsMonthly(query: CancellationAnalysisMonthlyReportQuery): Promise<CancellationAnalysisDetailResponse>;
|
|
11135
|
+
/**
|
|
11136
|
+
* GET /jobs/cancellation-analysis/:id
|
|
11137
|
+
* Retorna detalhes de uma análise.
|
|
11138
|
+
*/
|
|
11139
|
+
findById(id: number): Promise<CancellationAnalysisDetailResponse>;
|
|
11140
|
+
}
|
|
11141
|
+
|
|
10985
11142
|
declare const RoutinesLogsSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
10986
11143
|
timestamps: true;
|
|
10987
11144
|
}, {
|
|
@@ -11193,16 +11350,35 @@ declare class RoutinesTasksResource {
|
|
|
11193
11350
|
declare class RoutinesAPIClient extends APIClient {
|
|
11194
11351
|
readonly routinesTasksResource: RoutinesTasksResource;
|
|
11195
11352
|
readonly routinesLogsResource: RoutinesLogsResource;
|
|
11353
|
+
readonly routinesCancellationAnalysisResource: RoutinesCancellationAnalysisResource;
|
|
11196
11354
|
constructor(config: APIConfigType);
|
|
11197
11355
|
}
|
|
11198
11356
|
|
|
11357
|
+
type routinesApi_types_CancellationAnalysisAttendantSnapshot = CancellationAnalysisAttendantSnapshot;
|
|
11358
|
+
type routinesApi_types_CancellationAnalysisDailyReportQuery = CancellationAnalysisDailyReportQuery;
|
|
11359
|
+
type routinesApi_types_CancellationAnalysisDashboardResponse = CancellationAnalysisDashboardResponse;
|
|
11360
|
+
type routinesApi_types_CancellationAnalysisDashboardSummary = CancellationAnalysisDashboardSummary;
|
|
11361
|
+
type routinesApi_types_CancellationAnalysisDetailResponse = CancellationAnalysisDetailResponse;
|
|
11362
|
+
type routinesApi_types_CancellationAnalysisListItem = CancellationAnalysisListItem;
|
|
11363
|
+
type routinesApi_types_CancellationAnalysisListResponse = CancellationAnalysisListResponse;
|
|
11364
|
+
type routinesApi_types_CancellationAnalysisMonthlyReportQuery = CancellationAnalysisMonthlyReportQuery;
|
|
11365
|
+
type routinesApi_types_CancellationAnalysisOrderBy = CancellationAnalysisOrderBy;
|
|
11366
|
+
type routinesApi_types_CancellationAnalysisOrderDirection = CancellationAnalysisOrderDirection;
|
|
11367
|
+
type routinesApi_types_CancellationAnalysisRegionSnapshot = CancellationAnalysisRegionSnapshot;
|
|
11368
|
+
type routinesApi_types_CancellationAnalysisRequestLog = CancellationAnalysisRequestLog;
|
|
11369
|
+
type routinesApi_types_CancellationAnalysisRequestLogStatus = CancellationAnalysisRequestLogStatus;
|
|
11370
|
+
type routinesApi_types_CancellationAnalysisStatus = CancellationAnalysisStatus;
|
|
11371
|
+
type routinesApi_types_CancellationAnalysisTipo = CancellationAnalysisTipo;
|
|
11372
|
+
type routinesApi_types_CancellationAnalysisWeeklyReportQuery = CancellationAnalysisWeeklyReportQuery;
|
|
11373
|
+
type routinesApi_types_CancellationAnalysisWeeklyReportQueryMode = CancellationAnalysisWeeklyReportQueryMode;
|
|
11374
|
+
type routinesApi_types_ListCancellationAnalysisQuery = ListCancellationAnalysisQuery;
|
|
11199
11375
|
type routinesApi_types_RoutinesTasksCreateInput = RoutinesTasksCreateInput;
|
|
11200
11376
|
type routinesApi_types_RoutinesTasksInput = RoutinesTasksInput;
|
|
11201
11377
|
type routinesApi_types_RoutinesTasksSyncJobsResponse = RoutinesTasksSyncJobsResponse;
|
|
11202
11378
|
type routinesApi_types_RoutinesTasksToggleActiveInput = RoutinesTasksToggleActiveInput;
|
|
11203
11379
|
type routinesApi_types_RoutinesTasksUpdateInput = RoutinesTasksUpdateInput;
|
|
11204
11380
|
declare namespace routinesApi_types {
|
|
11205
|
-
export type { 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 };
|
|
11381
|
+
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 };
|
|
11206
11382
|
}
|
|
11207
11383
|
|
|
11208
11384
|
type NtfyPriority = "max" | "high" | "default" | "low" | "min";
|
package/dist/index.d.ts
CHANGED
|
@@ -10982,6 +10982,163 @@ declare namespace ixcSoftApi_types {
|
|
|
10982
10982
|
export { type ixcSoftApi_types_IXCSoftResponse as IXCSoftResponse, 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 };
|
|
10983
10983
|
}
|
|
10984
10984
|
|
|
10985
|
+
type CancellationAnalysisTipo = "diario" | "semanal" | "mensal";
|
|
10986
|
+
type CancellationAnalysisStatus = "processando" | "concluido" | "erro";
|
|
10987
|
+
type CancellationAnalysisOrderBy = "processadoEm" | "createdAt" | "periodoInicio" | "totalOs";
|
|
10988
|
+
type CancellationAnalysisOrderDirection = "asc" | "desc";
|
|
10989
|
+
interface ListCancellationAnalysisQuery {
|
|
10990
|
+
tipo?: CancellationAnalysisTipo;
|
|
10991
|
+
status?: CancellationAnalysisStatus;
|
|
10992
|
+
/** YYYY-MM-DD */
|
|
10993
|
+
periodoInicio?: string;
|
|
10994
|
+
/** YYYY-MM-DD */
|
|
10995
|
+
periodoFim?: string;
|
|
10996
|
+
/** numeric string (DTO) */
|
|
10997
|
+
page?: string;
|
|
10998
|
+
/** numeric string (DTO) */
|
|
10999
|
+
limit?: string;
|
|
11000
|
+
orderBy?: CancellationAnalysisOrderBy;
|
|
11001
|
+
orderDirection?: CancellationAnalysisOrderDirection;
|
|
11002
|
+
/** boolean string (DTO) */
|
|
11003
|
+
includeResultadoIa?: string;
|
|
11004
|
+
}
|
|
11005
|
+
interface CancellationAnalysisDailyReportQuery {
|
|
11006
|
+
/** YYYY-MM-DD */
|
|
11007
|
+
date: string;
|
|
11008
|
+
}
|
|
11009
|
+
type CancellationAnalysisWeeklyReportQueryMode = "date" | "yearWeek";
|
|
11010
|
+
interface CancellationAnalysisWeeklyReportQuery {
|
|
11011
|
+
mode?: CancellationAnalysisWeeklyReportQueryMode;
|
|
11012
|
+
/** YYYY-MM-DD */
|
|
11013
|
+
date?: string;
|
|
11014
|
+
/** YYYY */
|
|
11015
|
+
year?: string;
|
|
11016
|
+
/** 1-2 digits */
|
|
11017
|
+
week?: string;
|
|
11018
|
+
}
|
|
11019
|
+
interface CancellationAnalysisMonthlyReportQuery {
|
|
11020
|
+
/** YYYY */
|
|
11021
|
+
year: string;
|
|
11022
|
+
/** 1-12 (string, may be 01..12) */
|
|
11023
|
+
month: string;
|
|
11024
|
+
}
|
|
11025
|
+
interface CancellationAnalysisListItem {
|
|
11026
|
+
id: number;
|
|
11027
|
+
tipo: CancellationAnalysisTipo;
|
|
11028
|
+
periodoInicio: string;
|
|
11029
|
+
periodoFim: string;
|
|
11030
|
+
status?: CancellationAnalysisStatus;
|
|
11031
|
+
tentativas?: number;
|
|
11032
|
+
maxTentativas?: number;
|
|
11033
|
+
totalOs?: number | null;
|
|
11034
|
+
totalEvitaveis?: number | null;
|
|
11035
|
+
causaPrincipal?: string | null;
|
|
11036
|
+
resumoExecutivo?: string | null;
|
|
11037
|
+
resultadoIa?: unknown | object | null;
|
|
11038
|
+
/** ISO date string or Date, depending on serializer */
|
|
11039
|
+
processadoEm?: string | Date | null;
|
|
11040
|
+
createdAt?: string | Date;
|
|
11041
|
+
updatedAt?: string | Date;
|
|
11042
|
+
periodoLabel: string;
|
|
11043
|
+
taxaEvitabilidade: number;
|
|
11044
|
+
}
|
|
11045
|
+
interface CancellationAnalysisListResponse {
|
|
11046
|
+
data: CancellationAnalysisListItem[];
|
|
11047
|
+
page: number;
|
|
11048
|
+
limit: number;
|
|
11049
|
+
total: number;
|
|
11050
|
+
totalPages: number;
|
|
11051
|
+
}
|
|
11052
|
+
interface CancellationAnalysisRegionSnapshot {
|
|
11053
|
+
id: number;
|
|
11054
|
+
analysisId: number;
|
|
11055
|
+
regiao: string;
|
|
11056
|
+
totalOs?: number;
|
|
11057
|
+
causaDominante?: string;
|
|
11058
|
+
critico?: boolean;
|
|
11059
|
+
lat?: number | null;
|
|
11060
|
+
lng?: number | null;
|
|
11061
|
+
}
|
|
11062
|
+
interface CancellationAnalysisAttendantSnapshot {
|
|
11063
|
+
id: number;
|
|
11064
|
+
analysisId: number;
|
|
11065
|
+
idAtendente: string;
|
|
11066
|
+
totalOs?: number;
|
|
11067
|
+
respostasInsuficientes?: number;
|
|
11068
|
+
alerta?: boolean;
|
|
11069
|
+
}
|
|
11070
|
+
type CancellationAnalysisRequestLogStatus = string;
|
|
11071
|
+
interface CancellationAnalysisRequestLog {
|
|
11072
|
+
id: number;
|
|
11073
|
+
analysisId: number;
|
|
11074
|
+
modelo?: string;
|
|
11075
|
+
tokensEntrada?: number;
|
|
11076
|
+
tokensSaida?: number;
|
|
11077
|
+
duracaoMs?: number;
|
|
11078
|
+
status?: CancellationAnalysisRequestLogStatus;
|
|
11079
|
+
erroMensagem?: string | null;
|
|
11080
|
+
createdAt?: string | Date;
|
|
11081
|
+
}
|
|
11082
|
+
interface CancellationAnalysisDetailResponse {
|
|
11083
|
+
analysis: CancellationAnalysisListItem;
|
|
11084
|
+
regionSnapshots: CancellationAnalysisRegionSnapshot[];
|
|
11085
|
+
attendantSnapshots: CancellationAnalysisAttendantSnapshot[];
|
|
11086
|
+
requestLogs: CancellationAnalysisRequestLog[];
|
|
11087
|
+
}
|
|
11088
|
+
interface CancellationAnalysisDashboardSummary {
|
|
11089
|
+
totalAnalises: number;
|
|
11090
|
+
concluidas: number;
|
|
11091
|
+
processando: number;
|
|
11092
|
+
erros: number;
|
|
11093
|
+
totalOs: number;
|
|
11094
|
+
totalEvitaveis: number;
|
|
11095
|
+
taxaEvitabilidade: number;
|
|
11096
|
+
ultimoProcessamento?: string | Date | null;
|
|
11097
|
+
}
|
|
11098
|
+
interface CancellationAnalysisDashboardResponse {
|
|
11099
|
+
summary: CancellationAnalysisDashboardSummary;
|
|
11100
|
+
latest: CancellationAnalysisListItem[];
|
|
11101
|
+
criticalRegions: CancellationAnalysisRegionSnapshot[];
|
|
11102
|
+
attendantAlerts: CancellationAnalysisAttendantSnapshot[];
|
|
11103
|
+
recentLogs: CancellationAnalysisRequestLog[];
|
|
11104
|
+
}
|
|
11105
|
+
|
|
11106
|
+
declare class RoutinesCancellationAnalysisResource {
|
|
11107
|
+
private readonly client;
|
|
11108
|
+
private readonly endpoint;
|
|
11109
|
+
constructor(client: APIClient);
|
|
11110
|
+
/**
|
|
11111
|
+
* GET /jobs/cancellation-analysis
|
|
11112
|
+
* Lista análises de cancelamento.
|
|
11113
|
+
*/
|
|
11114
|
+
list(query?: ListCancellationAnalysisQuery): Promise<CancellationAnalysisListResponse>;
|
|
11115
|
+
/**
|
|
11116
|
+
* GET /jobs/cancellation-analysis/dashboard
|
|
11117
|
+
* Retorna dados para dashboard.
|
|
11118
|
+
*/
|
|
11119
|
+
dashboard(): Promise<CancellationAnalysisDashboardResponse>;
|
|
11120
|
+
/**
|
|
11121
|
+
* GET /jobs/cancellation-analysis/reports/daily
|
|
11122
|
+
* Retorna relatório diário.
|
|
11123
|
+
*/
|
|
11124
|
+
reportsDaily(query: CancellationAnalysisDailyReportQuery): Promise<CancellationAnalysisDetailResponse>;
|
|
11125
|
+
/**
|
|
11126
|
+
* GET /jobs/cancellation-analysis/reports/weekly
|
|
11127
|
+
* Retorna relatório semanal.
|
|
11128
|
+
*/
|
|
11129
|
+
reportsWeekly(query: CancellationAnalysisWeeklyReportQuery): Promise<CancellationAnalysisDetailResponse>;
|
|
11130
|
+
/**
|
|
11131
|
+
* GET /jobs/cancellation-analysis/reports/monthly
|
|
11132
|
+
* Retorna relatório mensal.
|
|
11133
|
+
*/
|
|
11134
|
+
reportsMonthly(query: CancellationAnalysisMonthlyReportQuery): Promise<CancellationAnalysisDetailResponse>;
|
|
11135
|
+
/**
|
|
11136
|
+
* GET /jobs/cancellation-analysis/:id
|
|
11137
|
+
* Retorna detalhes de uma análise.
|
|
11138
|
+
*/
|
|
11139
|
+
findById(id: number): Promise<CancellationAnalysisDetailResponse>;
|
|
11140
|
+
}
|
|
11141
|
+
|
|
10985
11142
|
declare const RoutinesLogsSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
10986
11143
|
timestamps: true;
|
|
10987
11144
|
}, {
|
|
@@ -11193,16 +11350,35 @@ declare class RoutinesTasksResource {
|
|
|
11193
11350
|
declare class RoutinesAPIClient extends APIClient {
|
|
11194
11351
|
readonly routinesTasksResource: RoutinesTasksResource;
|
|
11195
11352
|
readonly routinesLogsResource: RoutinesLogsResource;
|
|
11353
|
+
readonly routinesCancellationAnalysisResource: RoutinesCancellationAnalysisResource;
|
|
11196
11354
|
constructor(config: APIConfigType);
|
|
11197
11355
|
}
|
|
11198
11356
|
|
|
11357
|
+
type routinesApi_types_CancellationAnalysisAttendantSnapshot = CancellationAnalysisAttendantSnapshot;
|
|
11358
|
+
type routinesApi_types_CancellationAnalysisDailyReportQuery = CancellationAnalysisDailyReportQuery;
|
|
11359
|
+
type routinesApi_types_CancellationAnalysisDashboardResponse = CancellationAnalysisDashboardResponse;
|
|
11360
|
+
type routinesApi_types_CancellationAnalysisDashboardSummary = CancellationAnalysisDashboardSummary;
|
|
11361
|
+
type routinesApi_types_CancellationAnalysisDetailResponse = CancellationAnalysisDetailResponse;
|
|
11362
|
+
type routinesApi_types_CancellationAnalysisListItem = CancellationAnalysisListItem;
|
|
11363
|
+
type routinesApi_types_CancellationAnalysisListResponse = CancellationAnalysisListResponse;
|
|
11364
|
+
type routinesApi_types_CancellationAnalysisMonthlyReportQuery = CancellationAnalysisMonthlyReportQuery;
|
|
11365
|
+
type routinesApi_types_CancellationAnalysisOrderBy = CancellationAnalysisOrderBy;
|
|
11366
|
+
type routinesApi_types_CancellationAnalysisOrderDirection = CancellationAnalysisOrderDirection;
|
|
11367
|
+
type routinesApi_types_CancellationAnalysisRegionSnapshot = CancellationAnalysisRegionSnapshot;
|
|
11368
|
+
type routinesApi_types_CancellationAnalysisRequestLog = CancellationAnalysisRequestLog;
|
|
11369
|
+
type routinesApi_types_CancellationAnalysisRequestLogStatus = CancellationAnalysisRequestLogStatus;
|
|
11370
|
+
type routinesApi_types_CancellationAnalysisStatus = CancellationAnalysisStatus;
|
|
11371
|
+
type routinesApi_types_CancellationAnalysisTipo = CancellationAnalysisTipo;
|
|
11372
|
+
type routinesApi_types_CancellationAnalysisWeeklyReportQuery = CancellationAnalysisWeeklyReportQuery;
|
|
11373
|
+
type routinesApi_types_CancellationAnalysisWeeklyReportQueryMode = CancellationAnalysisWeeklyReportQueryMode;
|
|
11374
|
+
type routinesApi_types_ListCancellationAnalysisQuery = ListCancellationAnalysisQuery;
|
|
11199
11375
|
type routinesApi_types_RoutinesTasksCreateInput = RoutinesTasksCreateInput;
|
|
11200
11376
|
type routinesApi_types_RoutinesTasksInput = RoutinesTasksInput;
|
|
11201
11377
|
type routinesApi_types_RoutinesTasksSyncJobsResponse = RoutinesTasksSyncJobsResponse;
|
|
11202
11378
|
type routinesApi_types_RoutinesTasksToggleActiveInput = RoutinesTasksToggleActiveInput;
|
|
11203
11379
|
type routinesApi_types_RoutinesTasksUpdateInput = RoutinesTasksUpdateInput;
|
|
11204
11380
|
declare namespace routinesApi_types {
|
|
11205
|
-
export type { 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 };
|
|
11381
|
+
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 };
|
|
11206
11382
|
}
|
|
11207
11383
|
|
|
11208
11384
|
type NtfyPriority = "max" | "high" | "default" | "low" | "min";
|
package/dist/index.js
CHANGED
|
@@ -390,6 +390,71 @@ var MonthlyFeesForClientResponseSchema = IXCSoftResponseSchema.extend({
|
|
|
390
390
|
action: import_zod3.z.string().optional()
|
|
391
391
|
});
|
|
392
392
|
|
|
393
|
+
// src/apis/clients/routines/resources/jobs/cancellation-analysis/routines-cancellation-analysis.resource.ts
|
|
394
|
+
var RoutinesCancellationAnalysisResource = class {
|
|
395
|
+
constructor(client) {
|
|
396
|
+
this.client = client;
|
|
397
|
+
this.endpoint = "/jobs/cancellation-analysis";
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* GET /jobs/cancellation-analysis
|
|
401
|
+
* Lista análises de cancelamento.
|
|
402
|
+
*/
|
|
403
|
+
async list(query) {
|
|
404
|
+
return this.client.get(this.endpoint, {
|
|
405
|
+
params: query
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* GET /jobs/cancellation-analysis/dashboard
|
|
410
|
+
* Retorna dados para dashboard.
|
|
411
|
+
*/
|
|
412
|
+
async dashboard() {
|
|
413
|
+
return this.client.get(
|
|
414
|
+
`${this.endpoint}/dashboard`
|
|
415
|
+
);
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* GET /jobs/cancellation-analysis/reports/daily
|
|
419
|
+
* Retorna relatório diário.
|
|
420
|
+
*/
|
|
421
|
+
async reportsDaily(query) {
|
|
422
|
+
return this.client.get(
|
|
423
|
+
`${this.endpoint}/reports/daily`,
|
|
424
|
+
{ params: query }
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* GET /jobs/cancellation-analysis/reports/weekly
|
|
429
|
+
* Retorna relatório semanal.
|
|
430
|
+
*/
|
|
431
|
+
async reportsWeekly(query) {
|
|
432
|
+
return this.client.get(
|
|
433
|
+
`${this.endpoint}/reports/weekly`,
|
|
434
|
+
{ params: query }
|
|
435
|
+
);
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* GET /jobs/cancellation-analysis/reports/monthly
|
|
439
|
+
* Retorna relatório mensal.
|
|
440
|
+
*/
|
|
441
|
+
async reportsMonthly(query) {
|
|
442
|
+
return this.client.get(
|
|
443
|
+
`${this.endpoint}/reports/monthly`,
|
|
444
|
+
{ params: query }
|
|
445
|
+
);
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* GET /jobs/cancellation-analysis/:id
|
|
449
|
+
* Retorna detalhes de uma análise.
|
|
450
|
+
*/
|
|
451
|
+
async findById(id) {
|
|
452
|
+
return this.client.get(
|
|
453
|
+
`${this.endpoint}/${id}`
|
|
454
|
+
);
|
|
455
|
+
}
|
|
456
|
+
};
|
|
457
|
+
|
|
393
458
|
// src/apis/clients/routines/resources/logs/routines-logs.resource.ts
|
|
394
459
|
var RoutinesLogsResource = class {
|
|
395
460
|
constructor(client) {
|
|
@@ -495,6 +560,7 @@ var RoutinesAPIClient = class extends APIClient {
|
|
|
495
560
|
});
|
|
496
561
|
this.routinesTasksResource = new RoutinesTasksResource(this);
|
|
497
562
|
this.routinesLogsResource = new RoutinesLogsResource(this);
|
|
563
|
+
this.routinesCancellationAnalysisResource = new RoutinesCancellationAnalysisResource(this);
|
|
498
564
|
}
|
|
499
565
|
};
|
|
500
566
|
|
package/dist/index.mjs
CHANGED
|
@@ -346,6 +346,71 @@ var MonthlyFeesForClientResponseSchema = IXCSoftResponseSchema.extend({
|
|
|
346
346
|
action: z3.string().optional()
|
|
347
347
|
});
|
|
348
348
|
|
|
349
|
+
// src/apis/clients/routines/resources/jobs/cancellation-analysis/routines-cancellation-analysis.resource.ts
|
|
350
|
+
var RoutinesCancellationAnalysisResource = class {
|
|
351
|
+
constructor(client) {
|
|
352
|
+
this.client = client;
|
|
353
|
+
this.endpoint = "/jobs/cancellation-analysis";
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* GET /jobs/cancellation-analysis
|
|
357
|
+
* Lista análises de cancelamento.
|
|
358
|
+
*/
|
|
359
|
+
async list(query) {
|
|
360
|
+
return this.client.get(this.endpoint, {
|
|
361
|
+
params: query
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* GET /jobs/cancellation-analysis/dashboard
|
|
366
|
+
* Retorna dados para dashboard.
|
|
367
|
+
*/
|
|
368
|
+
async dashboard() {
|
|
369
|
+
return this.client.get(
|
|
370
|
+
`${this.endpoint}/dashboard`
|
|
371
|
+
);
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* GET /jobs/cancellation-analysis/reports/daily
|
|
375
|
+
* Retorna relatório diário.
|
|
376
|
+
*/
|
|
377
|
+
async reportsDaily(query) {
|
|
378
|
+
return this.client.get(
|
|
379
|
+
`${this.endpoint}/reports/daily`,
|
|
380
|
+
{ params: query }
|
|
381
|
+
);
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* GET /jobs/cancellation-analysis/reports/weekly
|
|
385
|
+
* Retorna relatório semanal.
|
|
386
|
+
*/
|
|
387
|
+
async reportsWeekly(query) {
|
|
388
|
+
return this.client.get(
|
|
389
|
+
`${this.endpoint}/reports/weekly`,
|
|
390
|
+
{ params: query }
|
|
391
|
+
);
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* GET /jobs/cancellation-analysis/reports/monthly
|
|
395
|
+
* Retorna relatório mensal.
|
|
396
|
+
*/
|
|
397
|
+
async reportsMonthly(query) {
|
|
398
|
+
return this.client.get(
|
|
399
|
+
`${this.endpoint}/reports/monthly`,
|
|
400
|
+
{ params: query }
|
|
401
|
+
);
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* GET /jobs/cancellation-analysis/:id
|
|
405
|
+
* Retorna detalhes de uma análise.
|
|
406
|
+
*/
|
|
407
|
+
async findById(id) {
|
|
408
|
+
return this.client.get(
|
|
409
|
+
`${this.endpoint}/${id}`
|
|
410
|
+
);
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
|
|
349
414
|
// src/apis/clients/routines/resources/logs/routines-logs.resource.ts
|
|
350
415
|
var RoutinesLogsResource = class {
|
|
351
416
|
constructor(client) {
|
|
@@ -451,6 +516,7 @@ var RoutinesAPIClient = class extends APIClient {
|
|
|
451
516
|
});
|
|
452
517
|
this.routinesTasksResource = new RoutinesTasksResource(this);
|
|
453
518
|
this.routinesLogsResource = new RoutinesLogsResource(this);
|
|
519
|
+
this.routinesCancellationAnalysisResource = new RoutinesCancellationAnalysisResource(this);
|
|
454
520
|
}
|
|
455
521
|
};
|
|
456
522
|
|