@tmlmobilidade/interfaces 20250909.1538.52 → 20250911.1325.18
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/src/interfaces/agencies/agencies.d.ts +54 -2
- package/dist/src/interfaces/alerts/alerts-realtime.d.ts +70 -2
- package/dist/src/interfaces/alerts/alerts.d.ts +70 -2
- package/dist/src/interfaces/auth/roles.d.ts +17 -1
- package/dist/src/interfaces/auth/users.d.ts +26 -14
- package/dist/src/interfaces/auth/verification-tokens.d.ts +16 -1
- package/dist/src/interfaces/gtfs-validations/gtfs-validations.d.ts +47 -1
- package/dist/src/interfaces/organizations/organizations.d.ts +16 -12
- package/dist/src/interfaces/plans/plans.d.ts +44 -1
- package/dist/src/interfaces/rides/index.d.ts +0 -1
- package/dist/src/interfaces/rides/index.js +0 -1
- package/dist/src/interfaces/rides/rides.d.ts +858 -6
- package/dist/src/interfaces/stops/stops.d.ts +182 -2
- package/dist/src/providers/auth/auth.js +4 -0
- package/package.json +1 -1
- package/dist/src/interfaces/rides/ride-annotations.d.ts +0 -63
- package/dist/src/interfaces/rides/ride-annotations.js +0 -48
|
@@ -8,8 +8,60 @@ declare class AgenciesClass extends MongoCollectionClass<Agency, CreateAgencyDto
|
|
|
8
8
|
protected updateSchema: z.ZodSchema;
|
|
9
9
|
private constructor();
|
|
10
10
|
static getInstance(): Promise<AgenciesClass>;
|
|
11
|
-
findByCode(code: string): Promise<import("mongodb").WithId<
|
|
12
|
-
|
|
11
|
+
findByCode(code: string): Promise<import("mongodb").WithId<{
|
|
12
|
+
_id: string;
|
|
13
|
+
created_at: number & {
|
|
14
|
+
__brand: "UnixTimestamp";
|
|
15
|
+
};
|
|
16
|
+
created_by: string;
|
|
17
|
+
updated_at: number & {
|
|
18
|
+
__brand: "UnixTimestamp";
|
|
19
|
+
};
|
|
20
|
+
updated_by: string;
|
|
21
|
+
contact_emails_pta: string[];
|
|
22
|
+
contact_emails_pto: string[];
|
|
23
|
+
fare_url: string;
|
|
24
|
+
financials: {
|
|
25
|
+
price_per_km: number;
|
|
26
|
+
total_vkm_per_year: number;
|
|
27
|
+
};
|
|
28
|
+
name: string;
|
|
29
|
+
operation_start_date: string & {
|
|
30
|
+
__brand: "OperationalDate";
|
|
31
|
+
} & z.BRAND<"OperationalDate">;
|
|
32
|
+
phone: string;
|
|
33
|
+
public_email: string;
|
|
34
|
+
short_name: string;
|
|
35
|
+
timezone: string;
|
|
36
|
+
website_url: string;
|
|
37
|
+
}> | null>;
|
|
38
|
+
updateByCode(code: string, fields: Partial<Agency>): Promise<import("mongodb").UpdateResult<{
|
|
39
|
+
_id: string;
|
|
40
|
+
created_at: number & {
|
|
41
|
+
__brand: "UnixTimestamp";
|
|
42
|
+
};
|
|
43
|
+
created_by: string;
|
|
44
|
+
updated_at: number & {
|
|
45
|
+
__brand: "UnixTimestamp";
|
|
46
|
+
};
|
|
47
|
+
updated_by: string;
|
|
48
|
+
contact_emails_pta: string[];
|
|
49
|
+
contact_emails_pto: string[];
|
|
50
|
+
fare_url: string;
|
|
51
|
+
financials: {
|
|
52
|
+
price_per_km: number;
|
|
53
|
+
total_vkm_per_year: number;
|
|
54
|
+
};
|
|
55
|
+
name: string;
|
|
56
|
+
operation_start_date: string & {
|
|
57
|
+
__brand: "OperationalDate";
|
|
58
|
+
} & z.BRAND<"OperationalDate">;
|
|
59
|
+
phone: string;
|
|
60
|
+
public_email: string;
|
|
61
|
+
short_name: string;
|
|
62
|
+
timezone: string;
|
|
63
|
+
website_url: string;
|
|
64
|
+
}>>;
|
|
13
65
|
protected getCollectionIndexes(): IndexDescription[];
|
|
14
66
|
protected getCollectionName(): string;
|
|
15
67
|
protected getCreateSchema(): z.ZodSchema;
|
|
@@ -8,8 +8,76 @@ declare class AlertsRealtimeClass extends MongoCollectionClass<Alert, CreateAler
|
|
|
8
8
|
protected updateSchema: z.ZodSchema;
|
|
9
9
|
private constructor();
|
|
10
10
|
static getInstance(): Promise<AlertsRealtimeClass>;
|
|
11
|
-
findByMunicipalityId(municipality_id: string): Promise<import("mongodb").WithId<
|
|
12
|
-
|
|
11
|
+
findByMunicipalityId(municipality_id: string): Promise<import("mongodb").WithId<{
|
|
12
|
+
_id: string;
|
|
13
|
+
created_at: number & {
|
|
14
|
+
__brand: "UnixTimestamp";
|
|
15
|
+
};
|
|
16
|
+
created_by: string;
|
|
17
|
+
updated_at: number & {
|
|
18
|
+
__brand: "UnixTimestamp";
|
|
19
|
+
};
|
|
20
|
+
updated_by: string;
|
|
21
|
+
type: "PLANNED" | "REALTIME";
|
|
22
|
+
municipality_ids: string[];
|
|
23
|
+
active_period_start_date: number & {
|
|
24
|
+
__brand: "UnixTimestamp";
|
|
25
|
+
};
|
|
26
|
+
cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_PROBLEM" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
27
|
+
description: string;
|
|
28
|
+
effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_EFFECT" | "NO_SERVICE" | "OTHER_EFFECT" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "UNKNOWN_EFFECT";
|
|
29
|
+
modified_by: string;
|
|
30
|
+
publish_start_date: number & {
|
|
31
|
+
__brand: "UnixTimestamp";
|
|
32
|
+
};
|
|
33
|
+
publish_status: "PUBLISHED" | "ARCHIVED" | "DRAFT";
|
|
34
|
+
reference_type: "LINE" | "STOP" | "AGENCY" | "TRIP";
|
|
35
|
+
references: {
|
|
36
|
+
child_ids: string[];
|
|
37
|
+
parent_id: string;
|
|
38
|
+
}[];
|
|
39
|
+
title: string;
|
|
40
|
+
active_period_end_date?: import("@tmlmobilidade/types").UnixTimestamp | null | undefined;
|
|
41
|
+
coordinates?: [number, number] | null | undefined;
|
|
42
|
+
file_id?: string | null | undefined;
|
|
43
|
+
info_url?: string | undefined;
|
|
44
|
+
publish_end_date?: import("@tmlmobilidade/types").UnixTimestamp | null | undefined;
|
|
45
|
+
}>[]>;
|
|
46
|
+
findByTitle(title: string): Promise<import("mongodb").WithId<{
|
|
47
|
+
_id: string;
|
|
48
|
+
created_at: number & {
|
|
49
|
+
__brand: "UnixTimestamp";
|
|
50
|
+
};
|
|
51
|
+
created_by: string;
|
|
52
|
+
updated_at: number & {
|
|
53
|
+
__brand: "UnixTimestamp";
|
|
54
|
+
};
|
|
55
|
+
updated_by: string;
|
|
56
|
+
type: "PLANNED" | "REALTIME";
|
|
57
|
+
municipality_ids: string[];
|
|
58
|
+
active_period_start_date: number & {
|
|
59
|
+
__brand: "UnixTimestamp";
|
|
60
|
+
};
|
|
61
|
+
cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_PROBLEM" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
62
|
+
description: string;
|
|
63
|
+
effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_EFFECT" | "NO_SERVICE" | "OTHER_EFFECT" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "UNKNOWN_EFFECT";
|
|
64
|
+
modified_by: string;
|
|
65
|
+
publish_start_date: number & {
|
|
66
|
+
__brand: "UnixTimestamp";
|
|
67
|
+
};
|
|
68
|
+
publish_status: "PUBLISHED" | "ARCHIVED" | "DRAFT";
|
|
69
|
+
reference_type: "LINE" | "STOP" | "AGENCY" | "TRIP";
|
|
70
|
+
references: {
|
|
71
|
+
child_ids: string[];
|
|
72
|
+
parent_id: string;
|
|
73
|
+
}[];
|
|
74
|
+
title: string;
|
|
75
|
+
active_period_end_date?: import("@tmlmobilidade/types").UnixTimestamp | null | undefined;
|
|
76
|
+
coordinates?: [number, number] | null | undefined;
|
|
77
|
+
file_id?: string | null | undefined;
|
|
78
|
+
info_url?: string | undefined;
|
|
79
|
+
publish_end_date?: import("@tmlmobilidade/types").UnixTimestamp | null | undefined;
|
|
80
|
+
}> | null>;
|
|
13
81
|
protected getCollectionIndexes(): IndexDescription[];
|
|
14
82
|
protected getCollectionName(): string;
|
|
15
83
|
protected getEnvName(): string;
|
|
@@ -8,8 +8,76 @@ declare class AlertsClass extends MongoCollectionClass<Alert, CreateAlertDto, Up
|
|
|
8
8
|
protected updateSchema: z.ZodSchema;
|
|
9
9
|
private constructor();
|
|
10
10
|
static getInstance(): Promise<AlertsClass>;
|
|
11
|
-
findByMunicipalityId(municipality_id: string): Promise<import("mongodb").WithId<
|
|
12
|
-
|
|
11
|
+
findByMunicipalityId(municipality_id: string): Promise<import("mongodb").WithId<{
|
|
12
|
+
_id: string;
|
|
13
|
+
created_at: number & {
|
|
14
|
+
__brand: "UnixTimestamp";
|
|
15
|
+
};
|
|
16
|
+
created_by: string;
|
|
17
|
+
updated_at: number & {
|
|
18
|
+
__brand: "UnixTimestamp";
|
|
19
|
+
};
|
|
20
|
+
updated_by: string;
|
|
21
|
+
type: "PLANNED" | "REALTIME";
|
|
22
|
+
municipality_ids: string[];
|
|
23
|
+
active_period_start_date: number & {
|
|
24
|
+
__brand: "UnixTimestamp";
|
|
25
|
+
};
|
|
26
|
+
cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_PROBLEM" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
27
|
+
description: string;
|
|
28
|
+
effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_EFFECT" | "NO_SERVICE" | "OTHER_EFFECT" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "UNKNOWN_EFFECT";
|
|
29
|
+
modified_by: string;
|
|
30
|
+
publish_start_date: number & {
|
|
31
|
+
__brand: "UnixTimestamp";
|
|
32
|
+
};
|
|
33
|
+
publish_status: "PUBLISHED" | "ARCHIVED" | "DRAFT";
|
|
34
|
+
reference_type: "LINE" | "STOP" | "AGENCY" | "TRIP";
|
|
35
|
+
references: {
|
|
36
|
+
child_ids: string[];
|
|
37
|
+
parent_id: string;
|
|
38
|
+
}[];
|
|
39
|
+
title: string;
|
|
40
|
+
active_period_end_date?: import("@tmlmobilidade/types").UnixTimestamp | null | undefined;
|
|
41
|
+
coordinates?: [number, number] | null | undefined;
|
|
42
|
+
file_id?: string | null | undefined;
|
|
43
|
+
info_url?: string | undefined;
|
|
44
|
+
publish_end_date?: import("@tmlmobilidade/types").UnixTimestamp | null | undefined;
|
|
45
|
+
}>[]>;
|
|
46
|
+
findByTitle(title: string): Promise<import("mongodb").WithId<{
|
|
47
|
+
_id: string;
|
|
48
|
+
created_at: number & {
|
|
49
|
+
__brand: "UnixTimestamp";
|
|
50
|
+
};
|
|
51
|
+
created_by: string;
|
|
52
|
+
updated_at: number & {
|
|
53
|
+
__brand: "UnixTimestamp";
|
|
54
|
+
};
|
|
55
|
+
updated_by: string;
|
|
56
|
+
type: "PLANNED" | "REALTIME";
|
|
57
|
+
municipality_ids: string[];
|
|
58
|
+
active_period_start_date: number & {
|
|
59
|
+
__brand: "UnixTimestamp";
|
|
60
|
+
};
|
|
61
|
+
cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_PROBLEM" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
62
|
+
description: string;
|
|
63
|
+
effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_EFFECT" | "NO_SERVICE" | "OTHER_EFFECT" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "UNKNOWN_EFFECT";
|
|
64
|
+
modified_by: string;
|
|
65
|
+
publish_start_date: number & {
|
|
66
|
+
__brand: "UnixTimestamp";
|
|
67
|
+
};
|
|
68
|
+
publish_status: "PUBLISHED" | "ARCHIVED" | "DRAFT";
|
|
69
|
+
reference_type: "LINE" | "STOP" | "AGENCY" | "TRIP";
|
|
70
|
+
references: {
|
|
71
|
+
child_ids: string[];
|
|
72
|
+
parent_id: string;
|
|
73
|
+
}[];
|
|
74
|
+
title: string;
|
|
75
|
+
active_period_end_date?: import("@tmlmobilidade/types").UnixTimestamp | null | undefined;
|
|
76
|
+
coordinates?: [number, number] | null | undefined;
|
|
77
|
+
file_id?: string | null | undefined;
|
|
78
|
+
info_url?: string | undefined;
|
|
79
|
+
publish_end_date?: import("@tmlmobilidade/types").UnixTimestamp | null | undefined;
|
|
80
|
+
}> | null>;
|
|
13
81
|
protected getCollectionIndexes(): IndexDescription[];
|
|
14
82
|
protected getCollectionName(): string;
|
|
15
83
|
protected getEnvName(): string;
|
|
@@ -14,7 +14,23 @@ declare class RolesClass extends MongoCollectionClass<Role, CreateRoleDto, Updat
|
|
|
14
14
|
* @param name - The name of the role to find
|
|
15
15
|
* @returns A promise that resolves to the matching role document or null if not found
|
|
16
16
|
*/
|
|
17
|
-
findByName(name: string): Promise<import("mongodb").WithId<
|
|
17
|
+
findByName(name: string): Promise<import("mongodb").WithId<{
|
|
18
|
+
_id: string;
|
|
19
|
+
created_at: number & {
|
|
20
|
+
__brand: "UnixTimestamp";
|
|
21
|
+
};
|
|
22
|
+
created_by: string;
|
|
23
|
+
updated_at: number & {
|
|
24
|
+
__brand: "UnixTimestamp";
|
|
25
|
+
};
|
|
26
|
+
updated_by: string;
|
|
27
|
+
name: string;
|
|
28
|
+
permissions: {
|
|
29
|
+
scope: string;
|
|
30
|
+
action: string;
|
|
31
|
+
resource?: Record<string, any> | null | undefined;
|
|
32
|
+
}[];
|
|
33
|
+
}> | null>;
|
|
18
34
|
protected getCollectionIndexes(): IndexDescription[];
|
|
19
35
|
protected getCollectionName(): string;
|
|
20
36
|
protected getEnvName(): string;
|
|
@@ -33,22 +33,28 @@ declare class UsersClass extends MongoCollectionClass<User, CreateUserDto, Updat
|
|
|
33
33
|
* @returns A promise that resolves to the matching user documents or null if not found
|
|
34
34
|
*/
|
|
35
35
|
findByOrganization(id: NewType, includePasswordHash?: boolean): Promise<{
|
|
36
|
-
created_at:
|
|
37
|
-
|
|
36
|
+
created_at: number & {
|
|
37
|
+
__brand: "UnixTimestamp";
|
|
38
|
+
};
|
|
39
|
+
updated_at: number & {
|
|
40
|
+
__brand: "UnixTimestamp";
|
|
41
|
+
};
|
|
42
|
+
created_by: string;
|
|
43
|
+
updated_by: string;
|
|
38
44
|
phone?: string | null | undefined | undefined;
|
|
39
45
|
email: string;
|
|
40
46
|
permissions: import("@tmlmobilidade/types").Permission<unknown>[];
|
|
41
|
-
|
|
47
|
+
avatar?: string | null | undefined | undefined;
|
|
48
|
+
bio?: string | null | undefined | undefined;
|
|
49
|
+
email_verified?: import("@tmlmobilidade/types").UnixTimestamp | null | undefined;
|
|
42
50
|
first_name: string;
|
|
43
51
|
last_name: string;
|
|
44
52
|
organization_ids: string[];
|
|
53
|
+
preferences?: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null | undefined;
|
|
45
54
|
role_ids: string[];
|
|
46
55
|
session_ids: string[];
|
|
47
|
-
verification_token_ids: string[];
|
|
48
|
-
avatar?: string | null | undefined | undefined;
|
|
49
|
-
bio?: string | null | undefined | undefined;
|
|
50
|
-
preferences?: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null | undefined;
|
|
51
56
|
theme_id?: string | null | undefined | undefined;
|
|
57
|
+
verification_token_ids: string[];
|
|
52
58
|
_id: string;
|
|
53
59
|
}[]>;
|
|
54
60
|
/**
|
|
@@ -58,22 +64,28 @@ declare class UsersClass extends MongoCollectionClass<User, CreateUserDto, Updat
|
|
|
58
64
|
* @returns A promise that resolves to the matching user document or null if not found
|
|
59
65
|
*/
|
|
60
66
|
findByRole(role: string, includePasswordHash?: boolean): Promise<{
|
|
61
|
-
created_at:
|
|
62
|
-
|
|
67
|
+
created_at: number & {
|
|
68
|
+
__brand: "UnixTimestamp";
|
|
69
|
+
};
|
|
70
|
+
updated_at: number & {
|
|
71
|
+
__brand: "UnixTimestamp";
|
|
72
|
+
};
|
|
73
|
+
created_by: string;
|
|
74
|
+
updated_by: string;
|
|
63
75
|
phone?: string | null | undefined | undefined;
|
|
64
76
|
email: string;
|
|
65
77
|
permissions: import("@tmlmobilidade/types").Permission<unknown>[];
|
|
66
|
-
|
|
78
|
+
avatar?: string | null | undefined | undefined;
|
|
79
|
+
bio?: string | null | undefined | undefined;
|
|
80
|
+
email_verified?: import("@tmlmobilidade/types").UnixTimestamp | null | undefined;
|
|
67
81
|
first_name: string;
|
|
68
82
|
last_name: string;
|
|
69
83
|
organization_ids: string[];
|
|
84
|
+
preferences?: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null | undefined;
|
|
70
85
|
role_ids: string[];
|
|
71
86
|
session_ids: string[];
|
|
72
|
-
verification_token_ids: string[];
|
|
73
|
-
avatar?: string | null | undefined | undefined;
|
|
74
|
-
bio?: string | null | undefined | undefined;
|
|
75
|
-
preferences?: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null | undefined;
|
|
76
87
|
theme_id?: string | null | undefined | undefined;
|
|
88
|
+
verification_token_ids: string[];
|
|
77
89
|
_id: string;
|
|
78
90
|
}[]>;
|
|
79
91
|
/**
|
|
@@ -14,7 +14,22 @@ declare class VerificationTokensClass extends MongoCollectionClass<VerificationT
|
|
|
14
14
|
* @param token - The token to find
|
|
15
15
|
* @returns The verification token or null if not found
|
|
16
16
|
*/
|
|
17
|
-
findByToken(token: string): Promise<import("mongodb").WithId<
|
|
17
|
+
findByToken(token: string): Promise<import("mongodb").WithId<{
|
|
18
|
+
_id: string;
|
|
19
|
+
created_at: number & {
|
|
20
|
+
__brand: "UnixTimestamp";
|
|
21
|
+
};
|
|
22
|
+
created_by: string;
|
|
23
|
+
updated_at: number & {
|
|
24
|
+
__brand: "UnixTimestamp";
|
|
25
|
+
};
|
|
26
|
+
updated_by: string;
|
|
27
|
+
user_id: string;
|
|
28
|
+
expires_at: number & {
|
|
29
|
+
__brand: "UnixTimestamp";
|
|
30
|
+
};
|
|
31
|
+
token: string;
|
|
32
|
+
}> | null>;
|
|
18
33
|
protected getCollectionIndexes(): IndexDescription[];
|
|
19
34
|
protected getCollectionName(): string;
|
|
20
35
|
protected getEnvName(): string;
|
|
@@ -14,7 +14,53 @@ declare class GtfValidationsClass extends MongoCollectionClass<GtfsValidation, C
|
|
|
14
14
|
* @param id - The agency ID to search for
|
|
15
15
|
* @returns A promise that resolves to an array of matching documents
|
|
16
16
|
*/
|
|
17
|
-
findByAgencyId(id: string): Promise<import("mongodb").WithId<
|
|
17
|
+
findByAgencyId(id: string): Promise<import("mongodb").WithId<{
|
|
18
|
+
_id: string;
|
|
19
|
+
created_at: number & {
|
|
20
|
+
__brand: "UnixTimestamp";
|
|
21
|
+
};
|
|
22
|
+
created_by: string;
|
|
23
|
+
updated_at: number & {
|
|
24
|
+
__brand: "UnixTimestamp";
|
|
25
|
+
};
|
|
26
|
+
updated_by: string;
|
|
27
|
+
file_id: string;
|
|
28
|
+
feeder_status: "waiting" | "processing" | "complete" | "error";
|
|
29
|
+
gtfs_agency: {
|
|
30
|
+
agency_id: string;
|
|
31
|
+
agency_name: string;
|
|
32
|
+
agency_timezone: string;
|
|
33
|
+
agency_email?: string | null | undefined;
|
|
34
|
+
agency_fare_url?: string | null | undefined;
|
|
35
|
+
agency_lang?: string | null | undefined;
|
|
36
|
+
agency_phone?: string | null | undefined;
|
|
37
|
+
agency_url?: string | null | undefined;
|
|
38
|
+
};
|
|
39
|
+
gtfs_feed_info: {
|
|
40
|
+
feed_lang: string;
|
|
41
|
+
default_lang?: string | null | undefined;
|
|
42
|
+
feed_contact_email?: string | null | undefined;
|
|
43
|
+
feed_contact_url?: string | null | undefined;
|
|
44
|
+
feed_end_date?: import("@tmlmobilidade/types").OperationalDate | null | undefined;
|
|
45
|
+
feed_publisher_name?: string | null | undefined;
|
|
46
|
+
feed_publisher_url?: string | null | undefined;
|
|
47
|
+
feed_start_date?: import("@tmlmobilidade/types").OperationalDate | null | undefined;
|
|
48
|
+
feed_version?: string | null | undefined;
|
|
49
|
+
};
|
|
50
|
+
notification_sent: boolean;
|
|
51
|
+
summary?: {
|
|
52
|
+
messages: {
|
|
53
|
+
message: string;
|
|
54
|
+
field: string;
|
|
55
|
+
file_name: string;
|
|
56
|
+
rows: number[];
|
|
57
|
+
severity: "error" | "warning" | "ignore" | "forbidden";
|
|
58
|
+
validation_id: string;
|
|
59
|
+
}[];
|
|
60
|
+
total_errors: number;
|
|
61
|
+
total_warnings: number;
|
|
62
|
+
} | null | undefined;
|
|
63
|
+
}>[]>;
|
|
18
64
|
protected getCollectionIndexes(): IndexDescription[];
|
|
19
65
|
protected getCollectionName(): string;
|
|
20
66
|
protected getEnvName(): string;
|
|
@@ -16,14 +16,16 @@ declare class OrganizationsClass extends MongoCollectionClass<Organization, Crea
|
|
|
16
16
|
*/
|
|
17
17
|
findByCode(code: string): Promise<import("mongodb").WithId<{
|
|
18
18
|
_id: string;
|
|
19
|
-
|
|
20
|
-
name: string;
|
|
21
|
-
created_at?: (number & {
|
|
19
|
+
created_at: number & {
|
|
22
20
|
__brand: "UnixTimestamp";
|
|
23
|
-
}
|
|
24
|
-
|
|
21
|
+
};
|
|
22
|
+
created_by: string;
|
|
23
|
+
updated_at: number & {
|
|
25
24
|
__brand: "UnixTimestamp";
|
|
26
|
-
}
|
|
25
|
+
};
|
|
26
|
+
updated_by: string;
|
|
27
|
+
code: string;
|
|
28
|
+
name: string;
|
|
27
29
|
}> | null>;
|
|
28
30
|
/**
|
|
29
31
|
* Updates an organization by its code
|
|
@@ -34,14 +36,16 @@ declare class OrganizationsClass extends MongoCollectionClass<Organization, Crea
|
|
|
34
36
|
*/
|
|
35
37
|
updateByCode(code: string, fields: Partial<Organization>): Promise<import("mongodb").UpdateResult<{
|
|
36
38
|
_id: string;
|
|
37
|
-
|
|
38
|
-
name: string;
|
|
39
|
-
created_at?: (number & {
|
|
39
|
+
created_at: number & {
|
|
40
40
|
__brand: "UnixTimestamp";
|
|
41
|
-
}
|
|
42
|
-
|
|
41
|
+
};
|
|
42
|
+
created_by: string;
|
|
43
|
+
updated_at: number & {
|
|
43
44
|
__brand: "UnixTimestamp";
|
|
44
|
-
}
|
|
45
|
+
};
|
|
46
|
+
updated_by: string;
|
|
47
|
+
code: string;
|
|
48
|
+
name: string;
|
|
45
49
|
}>>;
|
|
46
50
|
protected getCollectionIndexes(): IndexDescription[];
|
|
47
51
|
protected getCollectionName(): string;
|
|
@@ -14,7 +14,50 @@ declare class PlansClass extends MongoCollectionClass<Plan, CreatePlanDto, Updat
|
|
|
14
14
|
* @param id - The agency ID to search for
|
|
15
15
|
* @returns A promise that resolves to an array of matching documents
|
|
16
16
|
*/
|
|
17
|
-
findByAgencyId(id: string): Promise<import("mongodb").WithId<
|
|
17
|
+
findByAgencyId(id: string): Promise<import("mongodb").WithId<{
|
|
18
|
+
_id: string;
|
|
19
|
+
created_at: number & {
|
|
20
|
+
__brand: "UnixTimestamp";
|
|
21
|
+
};
|
|
22
|
+
created_by: string;
|
|
23
|
+
updated_at: number & {
|
|
24
|
+
__brand: "UnixTimestamp";
|
|
25
|
+
};
|
|
26
|
+
updated_by: string;
|
|
27
|
+
gtfs_agency: {
|
|
28
|
+
agency_id: string;
|
|
29
|
+
agency_name: string;
|
|
30
|
+
agency_timezone: string;
|
|
31
|
+
agency_email?: string | null | undefined;
|
|
32
|
+
agency_fare_url?: string | null | undefined;
|
|
33
|
+
agency_lang?: string | null | undefined;
|
|
34
|
+
agency_phone?: string | null | undefined;
|
|
35
|
+
agency_url?: string | null | undefined;
|
|
36
|
+
};
|
|
37
|
+
gtfs_feed_info: {
|
|
38
|
+
feed_lang: string;
|
|
39
|
+
default_lang?: string | null | undefined;
|
|
40
|
+
feed_contact_email?: string | null | undefined;
|
|
41
|
+
feed_contact_url?: string | null | undefined;
|
|
42
|
+
feed_end_date?: import("@tmlmobilidade/types").OperationalDate | null | undefined;
|
|
43
|
+
feed_publisher_name?: string | null | undefined;
|
|
44
|
+
feed_publisher_url?: string | null | undefined;
|
|
45
|
+
feed_start_date?: import("@tmlmobilidade/types").OperationalDate | null | undefined;
|
|
46
|
+
feed_version?: string | null | undefined;
|
|
47
|
+
};
|
|
48
|
+
controller: {
|
|
49
|
+
status: "waiting" | "processing" | "complete" | "error";
|
|
50
|
+
last_hash: string | null;
|
|
51
|
+
timestamp: import("@tmlmobilidade/types").UnixTimestamp | null;
|
|
52
|
+
};
|
|
53
|
+
hash: string;
|
|
54
|
+
is_locked: boolean;
|
|
55
|
+
operation_file_id: string;
|
|
56
|
+
pcgi_legacy: {
|
|
57
|
+
operation_plan_id: string | null;
|
|
58
|
+
};
|
|
59
|
+
status_merger: "waiting" | "processing" | "complete" | "error";
|
|
60
|
+
}>[]>;
|
|
18
61
|
protected getCollectionIndexes(): IndexDescription[];
|
|
19
62
|
protected getCollectionName(): string;
|
|
20
63
|
protected getEnvName(): string;
|