@tmlmobilidade/interfaces 20250909.1559.44 → 20250911.1425.9
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
|
+
updated_at: number & {
|
|
17
|
+
__brand: "UnixTimestamp";
|
|
18
|
+
};
|
|
19
|
+
contact_emails_pta: string[];
|
|
20
|
+
contact_emails_pto: string[];
|
|
21
|
+
fare_url: string;
|
|
22
|
+
financials: {
|
|
23
|
+
price_per_km: number;
|
|
24
|
+
total_vkm_per_year: number;
|
|
25
|
+
};
|
|
26
|
+
name: string;
|
|
27
|
+
operation_start_date: string & {
|
|
28
|
+
__brand: "OperationalDate";
|
|
29
|
+
} & z.BRAND<"OperationalDate">;
|
|
30
|
+
phone: string;
|
|
31
|
+
public_email: string;
|
|
32
|
+
short_name: string;
|
|
33
|
+
timezone: string;
|
|
34
|
+
website_url: string;
|
|
35
|
+
created_by?: string | undefined;
|
|
36
|
+
updated_by?: string | undefined;
|
|
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
|
+
updated_at: number & {
|
|
44
|
+
__brand: "UnixTimestamp";
|
|
45
|
+
};
|
|
46
|
+
contact_emails_pta: string[];
|
|
47
|
+
contact_emails_pto: string[];
|
|
48
|
+
fare_url: string;
|
|
49
|
+
financials: {
|
|
50
|
+
price_per_km: number;
|
|
51
|
+
total_vkm_per_year: number;
|
|
52
|
+
};
|
|
53
|
+
name: string;
|
|
54
|
+
operation_start_date: string & {
|
|
55
|
+
__brand: "OperationalDate";
|
|
56
|
+
} & z.BRAND<"OperationalDate">;
|
|
57
|
+
phone: string;
|
|
58
|
+
public_email: string;
|
|
59
|
+
short_name: string;
|
|
60
|
+
timezone: string;
|
|
61
|
+
website_url: string;
|
|
62
|
+
created_by?: string | undefined;
|
|
63
|
+
updated_by?: string | undefined;
|
|
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
|
+
type: "PLANNED" | "REALTIME";
|
|
21
|
+
municipality_ids: string[];
|
|
22
|
+
active_period_start_date: number & {
|
|
23
|
+
__brand: "UnixTimestamp";
|
|
24
|
+
};
|
|
25
|
+
cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_PROBLEM" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
26
|
+
description: string;
|
|
27
|
+
effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_EFFECT" | "NO_SERVICE" | "OTHER_EFFECT" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "UNKNOWN_EFFECT";
|
|
28
|
+
modified_by: string;
|
|
29
|
+
publish_start_date: number & {
|
|
30
|
+
__brand: "UnixTimestamp";
|
|
31
|
+
};
|
|
32
|
+
publish_status: "PUBLISHED" | "ARCHIVED" | "DRAFT";
|
|
33
|
+
reference_type: "LINE" | "STOP" | "AGENCY" | "TRIP";
|
|
34
|
+
references: {
|
|
35
|
+
child_ids: string[];
|
|
36
|
+
parent_id: string;
|
|
37
|
+
}[];
|
|
38
|
+
title: string;
|
|
39
|
+
updated_by?: string | undefined;
|
|
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
|
+
type: "PLANNED" | "REALTIME";
|
|
56
|
+
municipality_ids: string[];
|
|
57
|
+
active_period_start_date: number & {
|
|
58
|
+
__brand: "UnixTimestamp";
|
|
59
|
+
};
|
|
60
|
+
cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_PROBLEM" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
61
|
+
description: string;
|
|
62
|
+
effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_EFFECT" | "NO_SERVICE" | "OTHER_EFFECT" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "UNKNOWN_EFFECT";
|
|
63
|
+
modified_by: string;
|
|
64
|
+
publish_start_date: number & {
|
|
65
|
+
__brand: "UnixTimestamp";
|
|
66
|
+
};
|
|
67
|
+
publish_status: "PUBLISHED" | "ARCHIVED" | "DRAFT";
|
|
68
|
+
reference_type: "LINE" | "STOP" | "AGENCY" | "TRIP";
|
|
69
|
+
references: {
|
|
70
|
+
child_ids: string[];
|
|
71
|
+
parent_id: string;
|
|
72
|
+
}[];
|
|
73
|
+
title: string;
|
|
74
|
+
updated_by?: string | undefined;
|
|
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
|
+
type: "PLANNED" | "REALTIME";
|
|
21
|
+
municipality_ids: string[];
|
|
22
|
+
active_period_start_date: number & {
|
|
23
|
+
__brand: "UnixTimestamp";
|
|
24
|
+
};
|
|
25
|
+
cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_PROBLEM" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
26
|
+
description: string;
|
|
27
|
+
effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_EFFECT" | "NO_SERVICE" | "OTHER_EFFECT" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "UNKNOWN_EFFECT";
|
|
28
|
+
modified_by: string;
|
|
29
|
+
publish_start_date: number & {
|
|
30
|
+
__brand: "UnixTimestamp";
|
|
31
|
+
};
|
|
32
|
+
publish_status: "PUBLISHED" | "ARCHIVED" | "DRAFT";
|
|
33
|
+
reference_type: "LINE" | "STOP" | "AGENCY" | "TRIP";
|
|
34
|
+
references: {
|
|
35
|
+
child_ids: string[];
|
|
36
|
+
parent_id: string;
|
|
37
|
+
}[];
|
|
38
|
+
title: string;
|
|
39
|
+
updated_by?: string | undefined;
|
|
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
|
+
type: "PLANNED" | "REALTIME";
|
|
56
|
+
municipality_ids: string[];
|
|
57
|
+
active_period_start_date: number & {
|
|
58
|
+
__brand: "UnixTimestamp";
|
|
59
|
+
};
|
|
60
|
+
cause: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_PROBLEM" | "UNKNOWN_CAUSE" | "WEATHER";
|
|
61
|
+
description: string;
|
|
62
|
+
effect: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_EFFECT" | "NO_SERVICE" | "OTHER_EFFECT" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "UNKNOWN_EFFECT";
|
|
63
|
+
modified_by: string;
|
|
64
|
+
publish_start_date: number & {
|
|
65
|
+
__brand: "UnixTimestamp";
|
|
66
|
+
};
|
|
67
|
+
publish_status: "PUBLISHED" | "ARCHIVED" | "DRAFT";
|
|
68
|
+
reference_type: "LINE" | "STOP" | "AGENCY" | "TRIP";
|
|
69
|
+
references: {
|
|
70
|
+
child_ids: string[];
|
|
71
|
+
parent_id: string;
|
|
72
|
+
}[];
|
|
73
|
+
title: string;
|
|
74
|
+
updated_by?: string | undefined;
|
|
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
|
+
updated_at: number & {
|
|
23
|
+
__brand: "UnixTimestamp";
|
|
24
|
+
};
|
|
25
|
+
name: string;
|
|
26
|
+
permissions: {
|
|
27
|
+
scope: string;
|
|
28
|
+
action: string;
|
|
29
|
+
resource?: Record<string, any> | null | undefined;
|
|
30
|
+
}[];
|
|
31
|
+
created_by?: string | undefined;
|
|
32
|
+
updated_by?: string | undefined;
|
|
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 | undefined | undefined;
|
|
43
|
+
updated_by?: string | undefined | undefined;
|
|
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 | undefined | undefined;
|
|
74
|
+
updated_by?: string | undefined | undefined;
|
|
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
|
+
updated_at: number & {
|
|
23
|
+
__brand: "UnixTimestamp";
|
|
24
|
+
};
|
|
25
|
+
user_id: string;
|
|
26
|
+
expires_at: number & {
|
|
27
|
+
__brand: "UnixTimestamp";
|
|
28
|
+
};
|
|
29
|
+
token: string;
|
|
30
|
+
created_by?: string | undefined;
|
|
31
|
+
updated_by?: string | undefined;
|
|
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
|
+
updated_at: number & {
|
|
23
|
+
__brand: "UnixTimestamp";
|
|
24
|
+
};
|
|
25
|
+
file_id: string;
|
|
26
|
+
feeder_status: "waiting" | "processing" | "complete" | "error";
|
|
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
|
+
notification_sent: boolean;
|
|
49
|
+
created_by?: string | undefined;
|
|
50
|
+
updated_by?: string | undefined;
|
|
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
|
-
updated_at
|
|
21
|
+
};
|
|
22
|
+
updated_at: number & {
|
|
25
23
|
__brand: "UnixTimestamp";
|
|
26
|
-
}
|
|
24
|
+
};
|
|
25
|
+
code: string;
|
|
26
|
+
name: string;
|
|
27
|
+
created_by?: string | undefined;
|
|
28
|
+
updated_by?: string | undefined;
|
|
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
|
-
updated_at
|
|
41
|
+
};
|
|
42
|
+
updated_at: number & {
|
|
43
43
|
__brand: "UnixTimestamp";
|
|
44
|
-
}
|
|
44
|
+
};
|
|
45
|
+
code: string;
|
|
46
|
+
name: string;
|
|
47
|
+
created_by?: string | undefined;
|
|
48
|
+
updated_by?: string | undefined;
|
|
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
|
+
updated_at: number & {
|
|
23
|
+
__brand: "UnixTimestamp";
|
|
24
|
+
};
|
|
25
|
+
gtfs_agency: {
|
|
26
|
+
agency_id: string;
|
|
27
|
+
agency_name: string;
|
|
28
|
+
agency_timezone: string;
|
|
29
|
+
agency_email?: string | null | undefined;
|
|
30
|
+
agency_fare_url?: string | null | undefined;
|
|
31
|
+
agency_lang?: string | null | undefined;
|
|
32
|
+
agency_phone?: string | null | undefined;
|
|
33
|
+
agency_url?: string | null | undefined;
|
|
34
|
+
};
|
|
35
|
+
gtfs_feed_info: {
|
|
36
|
+
feed_lang: string;
|
|
37
|
+
default_lang?: string | null | undefined;
|
|
38
|
+
feed_contact_email?: string | null | undefined;
|
|
39
|
+
feed_contact_url?: string | null | undefined;
|
|
40
|
+
feed_end_date?: import("@tmlmobilidade/types").OperationalDate | null | undefined;
|
|
41
|
+
feed_publisher_name?: string | null | undefined;
|
|
42
|
+
feed_publisher_url?: string | null | undefined;
|
|
43
|
+
feed_start_date?: import("@tmlmobilidade/types").OperationalDate | null | undefined;
|
|
44
|
+
feed_version?: string | null | undefined;
|
|
45
|
+
};
|
|
46
|
+
controller: {
|
|
47
|
+
status: "waiting" | "processing" | "complete" | "error";
|
|
48
|
+
last_hash: string | null;
|
|
49
|
+
timestamp: import("@tmlmobilidade/types").UnixTimestamp | null;
|
|
50
|
+
};
|
|
51
|
+
hash: string;
|
|
52
|
+
is_locked: boolean;
|
|
53
|
+
operation_file_id: string;
|
|
54
|
+
pcgi_legacy: {
|
|
55
|
+
operation_plan_id: string | null;
|
|
56
|
+
};
|
|
57
|
+
status_merger: "waiting" | "processing" | "complete" | "error";
|
|
58
|
+
created_by?: string | undefined;
|
|
59
|
+
updated_by?: string | undefined;
|
|
60
|
+
}>[]>;
|
|
18
61
|
protected getCollectionIndexes(): IndexDescription[];
|
|
19
62
|
protected getCollectionName(): string;
|
|
20
63
|
protected getEnvName(): string;
|