@tmlmobilidade/export-data 20260304.1819.11 → 20260421.1523.13
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.js +6 -0
- package/dist/prompts/export-types.js +3 -0
- package/dist/prompts/filter-line-ids.js +7 -13
- package/dist/prompts/filter-stop-ids.js +6 -13
- package/dist/tasks/executive-summary-setup/avg-trips-day.js +58 -0
- package/dist/tasks/executive-summary-setup/empty-runs.js +100 -0
- package/dist/tasks/executive-summary-setup/index.js +248 -0
- package/dist/tasks/executive-summary-setup/km.js +50 -0
- package/dist/tasks/executive-summary-setup/median-speed.js +80 -0
- package/dist/tasks/executive-summary-setup/on-board-sales.js +58 -0
- package/dist/tasks/executive-summary-setup/passenger-impact.js +46 -0
- package/dist/tasks/executive-summary-setup/passengers-transported.js +56 -0
- package/dist/tasks/executive-summary-setup/paxperkm.js +73 -0
- package/dist/tasks/executive-summary-setup/trips.js +132 -0
- package/dist/tasks/executive-summary-setup/tripstatus.js +114 -0
- package/dist/types.js +1 -0
- package/dist/utils/dates-helper.js +3 -0
- package/dist/utils/parse-id-list.js +37 -0
- package/package.json +4 -3
- package/dist/index.d.ts +0 -2
- package/dist/prompts/access-key.d.ts +0 -1
- package/dist/prompts/export-types.d.ts +0 -2
- package/dist/prompts/filter-agency-ids.d.ts +0 -1
- package/dist/prompts/filter-dates.d.ts +0 -5
- package/dist/prompts/filter-line-ids.d.ts +0 -1
- package/dist/prompts/filter-pattern-ids.d.ts +0 -1
- package/dist/prompts/filter-stop-ids.d.ts +0 -1
- package/dist/prompts/filter-types.d.ts +0 -1
- package/dist/prompts/filter-vehicle-ids.d.ts +0 -1
- package/dist/prompts/hashedshape-ids.d.ts +0 -1
- package/dist/prompts/validation-group-fields.d.ts +0 -2
- package/dist/tasks/apex-validations/validations-aggregated.d.ts +0 -18
- package/dist/tasks/apex-validations/validations-raw.d.ts +0 -2
- package/dist/tasks/hashed-shapes/hashed-shapes-geojson.d.ts +0 -4
- package/dist/tasks/rides/rides-raw.d.ts +0 -2
- package/dist/tasks/sams/sams-raw.d.ts +0 -2
- package/dist/tasks/sams/sams-raw.types.d.ts +0 -18
- package/dist/tasks/vehicle-events/vehicle-events-raw.d.ts +0 -2
- package/dist/types.d.ts +0 -35
- package/dist/utils/credential-storage.d.ts +0 -18
- package/dist/utils/hashed-shapes-to-geojson.d.ts +0 -3
- package/dist/utils/init-context.d.ts +0 -2
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface SamExport {
|
|
2
|
-
_id: number;
|
|
3
|
-
agency_id: string;
|
|
4
|
-
apex_version: null | string;
|
|
5
|
-
device_id: null | string;
|
|
6
|
-
end_time: null | string;
|
|
7
|
-
first_transaction_ase_counter_value: null | number;
|
|
8
|
-
first_transaction_id: null | string;
|
|
9
|
-
first_transaction_type: null | string;
|
|
10
|
-
last_transaction_ase_counter_value: null | number;
|
|
11
|
-
last_transaction_id: null | string;
|
|
12
|
-
last_transaction_type: null | string;
|
|
13
|
-
start_time: null | string;
|
|
14
|
-
transactions_expected: null | number;
|
|
15
|
-
transactions_found: null | number;
|
|
16
|
-
transactions_missing: null | number;
|
|
17
|
-
vehicle_id: null | number;
|
|
18
|
-
}
|
package/dist/types.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { type OperationalDate } from '@tmlmobilidade/types';
|
|
2
|
-
export declare const exportTypeLabels: {
|
|
3
|
-
readonly 'hashed-shapes-geojson': "4.0. HashedShapes para GeoJSON";
|
|
4
|
-
readonly 'rides-raw': "2.0. Rides em bruto (SLAs)";
|
|
5
|
-
readonly 'sams-raw': "5.0. SAMs em bruto (Sequencialidade)";
|
|
6
|
-
readonly 'validations-aggregated': "1.1. Validações agregadas (escolher campos)";
|
|
7
|
-
readonly 'validations-raw': "1.0. Validações em bruto";
|
|
8
|
-
readonly 'vehicle-events-raw': "3.0. Vehicle Events em bruto";
|
|
9
|
-
};
|
|
10
|
-
export type ExportType = keyof typeof exportTypeLabels;
|
|
11
|
-
/**
|
|
12
|
-
* Export types that don't require filters or dates.
|
|
13
|
-
* These exports use their own specific input methods (e.g., IDs).
|
|
14
|
-
*/
|
|
15
|
-
export declare const exportTypesWithoutFilters: ExportType[];
|
|
16
|
-
export interface ExportContext {
|
|
17
|
-
_id: string;
|
|
18
|
-
app_version: string;
|
|
19
|
-
dates: {
|
|
20
|
-
end: OperationalDate;
|
|
21
|
-
start: OperationalDate;
|
|
22
|
-
};
|
|
23
|
-
filters: {
|
|
24
|
-
agency_ids: string[];
|
|
25
|
-
line_ids: string[];
|
|
26
|
-
pattern_ids: string[];
|
|
27
|
-
stop_ids: string[];
|
|
28
|
-
vehicle_ids: number[];
|
|
29
|
-
};
|
|
30
|
-
output: string;
|
|
31
|
-
}
|
|
32
|
-
export interface TaskProps {
|
|
33
|
-
context: ExportContext;
|
|
34
|
-
message: (msg: string) => void;
|
|
35
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get a credential from the OS-native secure storage
|
|
3
|
-
* - macOS: Uses Keychain via `security` command
|
|
4
|
-
* - Windows: Uses Credential Manager via PowerShell
|
|
5
|
-
* - Linux: Uses secret-tool or fallback to encrypted file
|
|
6
|
-
*/
|
|
7
|
-
export declare function getCredential(key: string): Promise<null | string>;
|
|
8
|
-
/**
|
|
9
|
-
* Store a credential in the OS-native secure storage
|
|
10
|
-
* - macOS: Uses Keychain via `security` command
|
|
11
|
-
* - Windows: Uses Credential Manager via PowerShell
|
|
12
|
-
* - Linux: Uses secret-tool or fallback to encrypted file
|
|
13
|
-
*/
|
|
14
|
-
export declare function setCredential(key: string, value: string): Promise<void>;
|
|
15
|
-
/**
|
|
16
|
-
* Delete a credential from the OS-native secure storage
|
|
17
|
-
*/
|
|
18
|
-
export declare function deleteCredential(key: string): Promise<void>;
|