academe-kit 0.9.9 → 0.10.0
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.cjs +20 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +30 -9
- package/dist/index.esm.js +20 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/types/services/ReportService.d.ts +24 -5
- package/dist/types/types/academe-api.d.ts +6 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10734,7 +10734,12 @@ interface paths {
|
|
|
10734
10734
|
*/
|
|
10735
10735
|
get: {
|
|
10736
10736
|
parameters: {
|
|
10737
|
-
query?:
|
|
10737
|
+
query?: {
|
|
10738
|
+
/** @description UUID do educational_model_period. Quando omitido, o backend resolve para o período corrente (NOW). Ignorado quando allPeriods=true. */
|
|
10739
|
+
periodId?: string;
|
|
10740
|
+
/** @description Quando 'true', desliga o recorte por período em Jornada/Classes/TopTeachers — passa a refletir o ano letivo inteiro. SubmissionsCard continua sempre no bimestre corrente. */
|
|
10741
|
+
allPeriods?: "true";
|
|
10742
|
+
};
|
|
10738
10743
|
header?: never;
|
|
10739
10744
|
path: {
|
|
10740
10745
|
/** @description ID da instituição */
|
|
@@ -14757,9 +14762,6 @@ interface components {
|
|
|
14757
14762
|
createdAt: string;
|
|
14758
14763
|
/** Format: date-time */
|
|
14759
14764
|
updatedAt: string;
|
|
14760
|
-
organization?: components["schemas"]["Organization"] | null;
|
|
14761
|
-
address?: components["schemas"]["Address"] | null;
|
|
14762
|
-
institutionReward?: Record<string, never> | null;
|
|
14763
14765
|
};
|
|
14764
14766
|
Organization: {
|
|
14765
14767
|
/** Format: uuid */
|
|
@@ -20199,14 +20201,29 @@ declare function createReportService(apiClient: AcademeApiClient): {
|
|
|
20199
20201
|
/**
|
|
20200
20202
|
* Get encourage dashboard for an institution
|
|
20201
20203
|
* Retorna o payload agregado da tela /new-dashboard:
|
|
20202
|
-
* overview
|
|
20203
|
-
*
|
|
20204
|
+
* overview (com lista de períodos do ano letivo + flag isAllPeriods),
|
|
20205
|
+
* KPIs, licenças (alunos), jornada (cursos do bimestre selecionado ou do
|
|
20206
|
+
* ano letivo quando allPeriods), submissões do bimestre corrente,
|
|
20207
|
+
* desempenho por turma, top alunos e top professores do bimestre.
|
|
20204
20208
|
*
|
|
20205
|
-
* @param id
|
|
20209
|
+
* @param id UUID da instituição.
|
|
20210
|
+
* @param params.periodId UUID do educational_model_period. Quando omitido,
|
|
20211
|
+
* o backend resolve para o período corrente (NOW).
|
|
20212
|
+
* Ignorado quando allPeriods=true.
|
|
20213
|
+
* @param params.allPeriods Quando true, desliga o recorte por período em
|
|
20214
|
+
* Jornada/Classes/TopTeachers — passa a refletir
|
|
20215
|
+
* o ano letivo inteiro. SubmissionsCard continua
|
|
20216
|
+
* sempre no bimestre corrente.
|
|
20206
20217
|
*/
|
|
20207
|
-
getEncourageDashboardByInstitution(id: string
|
|
20218
|
+
getEncourageDashboardByInstitution(id: string, params?: {
|
|
20219
|
+
periodId?: string;
|
|
20220
|
+
allPeriods?: boolean;
|
|
20221
|
+
}): Promise<openapi_fetch.FetchResponse<{
|
|
20208
20222
|
parameters: {
|
|
20209
|
-
query?:
|
|
20223
|
+
query?: {
|
|
20224
|
+
periodId?: string;
|
|
20225
|
+
allPeriods?: "true";
|
|
20226
|
+
};
|
|
20210
20227
|
header?: never;
|
|
20211
20228
|
path: {
|
|
20212
20229
|
id: string;
|
|
@@ -20250,6 +20267,10 @@ declare function createReportService(apiClient: AcademeApiClient): {
|
|
|
20250
20267
|
path: {
|
|
20251
20268
|
id: string;
|
|
20252
20269
|
};
|
|
20270
|
+
query: {
|
|
20271
|
+
periodId?: string;
|
|
20272
|
+
allPeriods?: "true";
|
|
20273
|
+
} | undefined;
|
|
20253
20274
|
};
|
|
20254
20275
|
}, `${string}/${string}`>>;
|
|
20255
20276
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -4942,15 +4942,30 @@ function createReportService(apiClient) {
|
|
|
4942
4942
|
/**
|
|
4943
4943
|
* Get encourage dashboard for an institution
|
|
4944
4944
|
* Retorna o payload agregado da tela /new-dashboard:
|
|
4945
|
-
* overview
|
|
4946
|
-
*
|
|
4945
|
+
* overview (com lista de períodos do ano letivo + flag isAllPeriods),
|
|
4946
|
+
* KPIs, licenças (alunos), jornada (cursos do bimestre selecionado ou do
|
|
4947
|
+
* ano letivo quando allPeriods), submissões do bimestre corrente,
|
|
4948
|
+
* desempenho por turma, top alunos e top professores do bimestre.
|
|
4947
4949
|
*
|
|
4948
|
-
* @param id
|
|
4949
|
-
|
|
4950
|
-
|
|
4950
|
+
* @param id UUID da instituição.
|
|
4951
|
+
* @param params.periodId UUID do educational_model_period. Quando omitido,
|
|
4952
|
+
* o backend resolve para o período corrente (NOW).
|
|
4953
|
+
* Ignorado quando allPeriods=true.
|
|
4954
|
+
* @param params.allPeriods Quando true, desliga o recorte por período em
|
|
4955
|
+
* Jornada/Classes/TopTeachers — passa a refletir
|
|
4956
|
+
* o ano letivo inteiro. SubmissionsCard continua
|
|
4957
|
+
* sempre no bimestre corrente.
|
|
4958
|
+
*/
|
|
4959
|
+
getEncourageDashboardByInstitution(id, params) {
|
|
4960
|
+
const query = {};
|
|
4961
|
+
if (params?.allPeriods)
|
|
4962
|
+
query.allPeriods = 'true';
|
|
4963
|
+
else if (params?.periodId)
|
|
4964
|
+
query.periodId = params.periodId;
|
|
4951
4965
|
return apiClient.GET('/reports/encourage-dashboard/{id}', {
|
|
4952
4966
|
params: {
|
|
4953
4967
|
path: { id },
|
|
4968
|
+
query: Object.keys(query).length > 0 ? query : undefined,
|
|
4954
4969
|
},
|
|
4955
4970
|
});
|
|
4956
4971
|
},
|