@tmlmobilidade/types 20251217.1540.37 → 20251218.110.37
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/_common/comment.js +15 -6
- package/dist/_common/document.d.ts +3 -0
- package/dist/_common/document.js +4 -3
- package/dist/_common/status.d.ts +15 -1
- package/dist/_common/status.js +24 -6
- package/dist/_common/unix-timestamp.d.ts +1 -1
- package/dist/_common/unix-timestamp.js +1 -1
- package/dist/agency.d.ts +18 -13
- package/dist/agency.js +1 -1
- package/dist/alert.d.ts +101 -112
- package/dist/alert.js +18 -19
- package/dist/apex/simplified-apex-location.d.ts +5 -4
- package/dist/apex/simplified-apex-location.js +6 -4
- package/dist/apex/simplified-apex-on-board-refund.d.ts +5 -4
- package/dist/apex/simplified-apex-on-board-refund.js +6 -4
- package/dist/apex/simplified-apex-on-board-sale.d.ts +5 -4
- package/dist/apex/simplified-apex-on-board-sale.js +6 -4
- package/dist/apex/simplified-apex-validation.d.ts +9 -8
- package/dist/apex/simplified-apex-validation.js +6 -4
- package/dist/auth/login.d.ts +1 -1
- package/dist/auth/login.js +1 -1
- package/dist/auth/role.d.ts +260 -149
- package/dist/auth/role.js +1 -1
- package/dist/auth/session.d.ts +9 -7
- package/dist/auth/session.js +6 -4
- package/dist/auth/user.d.ts +737 -207
- package/dist/auth/user.js +12 -9
- package/dist/auth/verification-token.d.ts +9 -7
- package/dist/auth/verification-token.js +6 -4
- package/dist/dates/annotation.d.ts +94 -0
- package/dist/dates/annotation.js +14 -0
- package/dist/dates/index.d.ts +1 -0
- package/dist/dates/index.js +1 -0
- package/dist/file-exports/{common.d.ts → base.d.ts} +6 -5
- package/dist/file-exports/{common.js → base.js} +7 -4
- package/dist/file-exports/file-exports.d.ts +124 -0
- package/dist/file-exports/file-exports.js +7 -0
- package/dist/file-exports/index.d.ts +3 -126
- package/dist/file-exports/index.js +3 -9
- package/dist/file-exports/ride-export.d.ts +13 -13
- package/dist/file-exports/ride-export.js +5 -5
- package/dist/file.d.ts +3 -3
- package/dist/file.js +4 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/notification.d.ts +9 -7
- package/dist/notification.js +4 -2
- package/dist/organization.d.ts +24 -15
- package/dist/organization.js +3 -3
- package/dist/permissions/agencies.d.ts +3 -3
- package/dist/permissions/agencies.js +1 -1
- package/dist/permissions/alerts.d.ts +6 -6
- package/dist/permissions/alerts.js +2 -2
- package/dist/permissions/dates.d.ts +25 -0
- package/dist/permissions/dates.js +16 -0
- package/dist/permissions/gtfs-validations.d.ts +3 -3
- package/dist/permissions/gtfs-validations.js +1 -0
- package/dist/permissions/index.d.ts +49 -27
- package/dist/permissions/index.js +2 -0
- package/dist/permissions/organizations.d.ts +3 -3
- package/dist/permissions/organizations.js +1 -0
- package/dist/permissions/plans.d.ts +3 -3
- package/dist/permissions/plans.js +1 -1
- package/dist/permissions/roles.d.ts +3 -3
- package/dist/permissions/roles.js +1 -0
- package/dist/permissions/stops.d.ts +3 -3
- package/dist/permissions/stops.js +1 -1
- package/dist/permissions/users.d.ts +3 -3
- package/dist/permissions/users.js +1 -0
- package/dist/plans/gtfs-validation.d.ts +12 -3
- package/dist/plans/gtfs-validation.js +1 -1
- package/dist/plans/plan-app-status.js +2 -2
- package/dist/plans/plan-pcgi-legacy.d.ts +1 -1
- package/dist/plans/plan-pcgi-legacy.js +1 -1
- package/dist/plans/plan.d.ts +9 -9
- package/dist/proposed-change.d.ts +12 -3
- package/dist/proposed-change.js +1 -1
- package/dist/rides/ride-acceptance.d.ts +23 -19
- package/dist/rides/ride-acceptance.js +5 -3
- package/dist/rides/ride-analysis.d.ts +16 -16
- package/dist/rides/ride-analysis.js +16 -16
- package/dist/rides/ride-audit.d.ts +11 -11
- package/dist/rides/ride-audit.js +1 -1
- package/dist/rides/ride-overrides.d.ts +1 -1
- package/dist/rides/ride-overrides.js +1 -1
- package/dist/rides/ride.d.ts +56 -55
- package/dist/rides/ride.js +10 -8
- package/dist/sams/sam-analysis.d.ts +1 -1
- package/dist/sams/sam-analysis.js +4 -4
- package/dist/sams/sam.d.ts +13 -13
- package/dist/sams/sam.js +7 -5
- package/dist/stops/connections.d.ts +3 -0
- package/dist/stops/connections.js +15 -0
- package/dist/stops/equipment.d.ts +3 -0
- package/dist/stops/equipment.js +9 -0
- package/dist/stops/facilities.d.ts +4 -0
- package/dist/stops/facilities.js +16 -0
- package/dist/stops/index.d.ts +9 -0
- package/dist/stops/index.js +9 -0
- package/dist/stops/jurisdiction.d.ts +4 -0
- package/dist/stops/jurisdiction.js +10 -0
- package/dist/stops/name-abbreviations.d.ts +11 -0
- package/dist/stops/name-abbreviations.js +117 -0
- package/dist/stops/parent-station.d.ts +76 -0
- package/dist/stops/parent-station.js +11 -0
- package/dist/stops/road-type.d.ts +3 -0
- package/dist/stops/road-type.js +13 -0
- package/dist/stops/stop-area.d.ts +67 -0
- package/dist/stops/stop-area.js +10 -0
- package/dist/{stop.d.ts → stops/stop.d.ts} +271 -345
- package/dist/stops/stop.js +78 -0
- package/dist/vehicle-events/gtfs-rt-vehicle-event-extended.d.ts +1 -21
- package/dist/vehicle-events/gtfs-rt-vehicle-event-extended.js +4 -5
- package/dist/vehicle-events/simplified-vehicle-event.d.ts +4 -3
- package/dist/vehicle-events/simplified-vehicle-event.js +6 -4
- package/dist/zone.d.ts +10 -10
- package/dist/zone.js +1 -1
- package/package.json +2 -2
- package/dist/stop.js +0 -102
package/dist/_common/comment.js
CHANGED
|
@@ -7,21 +7,30 @@ export const CommentTypeSchema = z.enum(COMMENT_TYPE_OPTIONS);
|
|
|
7
7
|
const CRUD_COMMENT_ACTION_OPTIONS = ['create', 'update', 'delete', 'archive', 'restore'];
|
|
8
8
|
export const CrudCommentSchemaActionSchema = z.enum(CRUD_COMMENT_ACTION_OPTIONS);
|
|
9
9
|
/* * */
|
|
10
|
-
export const NoteCommentSchema = DocumentSchema
|
|
10
|
+
export const NoteCommentSchema = DocumentSchema
|
|
11
|
+
.omit({ is_locked: true })
|
|
12
|
+
.extend({
|
|
11
13
|
message: z.string(),
|
|
12
14
|
type: z.literal(CommentTypeSchema.enum.note),
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
+
})
|
|
16
|
+
.partial({ _id: true });
|
|
17
|
+
export const FieldChangedCommentSchema = DocumentSchema
|
|
18
|
+
.omit({ is_locked: true })
|
|
19
|
+
.extend({
|
|
15
20
|
curr_value: z.any(),
|
|
16
21
|
field: z.string(),
|
|
17
22
|
metadata: z.record(z.unknown()).nullish(),
|
|
18
23
|
prev_value: z.any(),
|
|
19
24
|
type: z.literal(CommentTypeSchema.enum.field_changed),
|
|
20
|
-
})
|
|
21
|
-
|
|
25
|
+
})
|
|
26
|
+
.partial({ _id: true });
|
|
27
|
+
export const CrudCommentSchema = DocumentSchema
|
|
28
|
+
.omit({ is_locked: true })
|
|
29
|
+
.extend({
|
|
22
30
|
action: CrudCommentSchemaActionSchema,
|
|
23
31
|
type: z.literal(CommentTypeSchema.enum.crud),
|
|
24
|
-
})
|
|
32
|
+
})
|
|
33
|
+
.partial({ _id: true });
|
|
25
34
|
/* * */
|
|
26
35
|
function validateFieldChanged(data, ctx) {
|
|
27
36
|
if (data.curr_value === data.prev_value) {
|
|
@@ -3,6 +3,7 @@ export declare const DocumentSchema: z.ZodObject<{
|
|
|
3
3
|
_id: z.ZodString;
|
|
4
4
|
created_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
5
5
|
created_by: z.ZodOptional<z.ZodString>;
|
|
6
|
+
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
6
7
|
updated_at: z.ZodEffects<z.ZodNumber, import("./unix-timestamp.js").UnixTimestamp, number>;
|
|
7
8
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
8
9
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -10,6 +11,7 @@ export declare const DocumentSchema: z.ZodObject<{
|
|
|
10
11
|
created_at: number & {
|
|
11
12
|
__brand: "UnixTimestamp";
|
|
12
13
|
};
|
|
14
|
+
is_locked: boolean;
|
|
13
15
|
updated_at: number & {
|
|
14
16
|
__brand: "UnixTimestamp";
|
|
15
17
|
};
|
|
@@ -20,5 +22,6 @@ export declare const DocumentSchema: z.ZodObject<{
|
|
|
20
22
|
created_at: number;
|
|
21
23
|
updated_at: number;
|
|
22
24
|
created_by?: string | undefined;
|
|
25
|
+
is_locked?: boolean | undefined;
|
|
23
26
|
updated_by?: string | undefined;
|
|
24
27
|
}>;
|
package/dist/_common/document.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/* * */
|
|
2
|
-
import {
|
|
2
|
+
import { UnixTimeStampSchema } from './unix-timestamp.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
/* * */
|
|
5
5
|
export const DocumentSchema = z.object({
|
|
6
6
|
_id: z.string(),
|
|
7
|
-
created_at:
|
|
7
|
+
created_at: UnixTimeStampSchema,
|
|
8
8
|
created_by: z.string().optional(),
|
|
9
|
-
|
|
9
|
+
is_locked: z.boolean().default(false),
|
|
10
|
+
updated_at: UnixTimeStampSchema,
|
|
10
11
|
updated_by: z.string().optional(),
|
|
11
12
|
});
|
package/dist/_common/status.d.ts
CHANGED
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const ProcessingStatusValues: readonly ["waiting", "processing", "complete", "error", "skipped"];
|
|
2
3
|
export declare const ProcessingStatusSchema: z.ZodEnum<["waiting", "processing", "complete", "error", "skipped"]>;
|
|
3
4
|
export type ProcessingStatus = z.infer<typeof ProcessingStatusSchema>;
|
|
5
|
+
export declare const DelayStatusValues: readonly ["delayed", "early", "ontime", "none"];
|
|
4
6
|
export declare const DelayStatusSchema: z.ZodEnum<["delayed", "early", "ontime", "none"]>;
|
|
5
7
|
export type DelayStatus = z.infer<typeof DelayStatusSchema>;
|
|
6
|
-
export declare const
|
|
8
|
+
export declare const SeenStatusValues: readonly ["unseen", "seen", "gone"];
|
|
9
|
+
export declare const SeenStatusSchema: z.ZodEnum<["unseen", "seen", "gone"]>;
|
|
7
10
|
export type SeenStatus = z.infer<typeof SeenStatusSchema>;
|
|
11
|
+
export declare const OperationalStatusValues: readonly ["ended", "missed", "running", "scheduled"];
|
|
8
12
|
export declare const OperationalStatusSchema: z.ZodEnum<["ended", "missed", "running", "scheduled"]>;
|
|
9
13
|
export type OperationalStatus = z.infer<typeof OperationalStatusSchema>;
|
|
14
|
+
export declare const PublishStatusValues: readonly ["PUBLISHED", "ARCHIVED", "DRAFT"];
|
|
10
15
|
export declare const PublishStatusSchema: z.ZodEnum<["PUBLISHED", "ARCHIVED", "DRAFT"]>;
|
|
11
16
|
export type PublishStatus = z.infer<typeof PublishStatusSchema>;
|
|
17
|
+
export declare const ApprovalStatusValues: readonly ["pending", "approved", "rejected", "none"];
|
|
12
18
|
export declare const ApprovalStatusSchema: z.ZodEnum<["pending", "approved", "rejected", "none"]>;
|
|
13
19
|
export type ApprovalStatus = z.infer<typeof ApprovalStatusSchema>;
|
|
20
|
+
export declare const ConditionStatusSchema: z.ZodEnum<["not_applicable", "unknown", "missing", "damaged", "ok"]>;
|
|
21
|
+
export type ConditionStatus = z.infer<typeof ConditionStatusSchema>;
|
|
22
|
+
export declare const LifecycleStatusValues: readonly ["draft", "active", "inactive", "provisional", "seasonal", "voided"];
|
|
23
|
+
export declare const LifecycleStatusSchema: z.ZodEnum<["draft", "active", "inactive", "provisional", "seasonal", "voided"]>;
|
|
24
|
+
export type LifecycleStatus = z.infer<typeof LifecycleStatusSchema>;
|
|
25
|
+
export declare const AvailabilityStatusValues: readonly ["available", "unavailable", "unknown"];
|
|
26
|
+
export declare const AvailabilityStatusSchema: z.ZodEnum<["available", "unavailable", "unknown"]>;
|
|
27
|
+
export type AvailabilityStatus = z.infer<typeof AvailabilityStatusSchema>;
|
package/dist/_common/status.js
CHANGED
|
@@ -1,20 +1,38 @@
|
|
|
1
1
|
/* * */
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
+
/* * */
|
|
3
4
|
/* PROCESSING STATUS */
|
|
5
|
+
export const ProcessingStatusValues = ['waiting', 'processing', 'complete', 'error', 'skipped'];
|
|
6
|
+
export const ProcessingStatusSchema = z.enum(ProcessingStatusValues);
|
|
4
7
|
/* * */
|
|
5
|
-
export const ProcessingStatusSchema = z.enum(['waiting', 'processing', 'complete', 'error', 'skipped']);
|
|
6
8
|
/* DELAY STATUS */
|
|
9
|
+
export const DelayStatusValues = ['delayed', 'early', 'ontime', 'none'];
|
|
10
|
+
export const DelayStatusSchema = z.enum(DelayStatusValues);
|
|
7
11
|
/* * */
|
|
8
|
-
export const DelayStatusSchema = z.enum(['delayed', 'early', 'ontime', 'none']);
|
|
9
12
|
/* SEEN STATUS */
|
|
13
|
+
export const SeenStatusValues = ['unseen', 'seen', 'gone'];
|
|
14
|
+
export const SeenStatusSchema = z.enum(SeenStatusValues);
|
|
10
15
|
/* * */
|
|
11
|
-
export const SeenStatusSchema = z.enum(['gone', 'seen', 'unseen']);
|
|
12
16
|
/* OPERATIONAL STATUS */
|
|
17
|
+
export const OperationalStatusValues = ['ended', 'missed', 'running', 'scheduled'];
|
|
18
|
+
export const OperationalStatusSchema = z.enum(OperationalStatusValues);
|
|
13
19
|
/* * */
|
|
14
|
-
export const OperationalStatusSchema = z.enum(['ended', 'missed', 'running', 'scheduled']);
|
|
15
20
|
/* PUBLISH STATUS */
|
|
21
|
+
export const PublishStatusValues = ['PUBLISHED', 'ARCHIVED', 'DRAFT'];
|
|
22
|
+
export const PublishStatusSchema = z.enum(PublishStatusValues);
|
|
16
23
|
/* * */
|
|
17
|
-
export const PublishStatusSchema = z.enum(['PUBLISHED', 'ARCHIVED', 'DRAFT']);
|
|
18
24
|
/* APPROVAL STATUS */
|
|
25
|
+
export const ApprovalStatusValues = ['pending', 'approved', 'rejected', 'none'];
|
|
26
|
+
export const ApprovalStatusSchema = z.enum(ApprovalStatusValues);
|
|
27
|
+
/* * */
|
|
28
|
+
/* CONDITION STATUS */
|
|
29
|
+
const ConditionStatusValues = ['not_applicable', 'unknown', 'missing', 'damaged', 'ok'];
|
|
30
|
+
export const ConditionStatusSchema = z.enum(ConditionStatusValues);
|
|
31
|
+
/* * */
|
|
32
|
+
/* LIFECYCLE STATUS */
|
|
33
|
+
export const LifecycleStatusValues = ['draft', 'active', 'inactive', 'provisional', 'seasonal', 'voided'];
|
|
34
|
+
export const LifecycleStatusSchema = z.enum(LifecycleStatusValues);
|
|
19
35
|
/* * */
|
|
20
|
-
|
|
36
|
+
/* AVAILABILITY STATUS */
|
|
37
|
+
export const AvailabilityStatusValues = ['available', 'unavailable', 'unknown'];
|
|
38
|
+
export const AvailabilityStatusSchema = z.enum(AvailabilityStatusValues);
|
|
@@ -6,7 +6,7 @@ import { z } from 'zod';
|
|
|
6
6
|
export type UnixTimestamp = number & {
|
|
7
7
|
__brand: 'UnixTimestamp';
|
|
8
8
|
};
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const UnixTimeStampSchema: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
|
|
10
10
|
/**
|
|
11
11
|
* This function validates if a number is a valid Unix Timestamp, in milliseconds.
|
|
12
12
|
* It is assumed the number will always be greater than 10^10 (1e10) to ensure it is in milliseconds.
|
package/dist/agency.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export declare const AgencySchema: z.ZodObject<{
|
|
|
3
3
|
_id: z.ZodString;
|
|
4
4
|
created_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
|
|
5
5
|
created_by: z.ZodOptional<z.ZodString>;
|
|
6
|
+
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
6
7
|
updated_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
|
|
7
8
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
8
9
|
} & {
|
|
@@ -20,7 +21,7 @@ export declare const AgencySchema: z.ZodObject<{
|
|
|
20
21
|
vkm_per_month: number[];
|
|
21
22
|
}>;
|
|
22
23
|
name: z.ZodString;
|
|
23
|
-
operation_start_date: z.ZodEffects<z.ZodString, import("./_common/operational-date.js").OperationalDate, string
|
|
24
|
+
operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("./_common/operational-date.js").OperationalDate, string>>>;
|
|
24
25
|
phone: z.ZodString;
|
|
25
26
|
public_email: z.ZodString;
|
|
26
27
|
short_name: z.ZodString;
|
|
@@ -31,6 +32,7 @@ export declare const AgencySchema: z.ZodObject<{
|
|
|
31
32
|
created_at: number & {
|
|
32
33
|
__brand: "UnixTimestamp";
|
|
33
34
|
};
|
|
35
|
+
is_locked: boolean;
|
|
34
36
|
updated_at: number & {
|
|
35
37
|
__brand: "UnixTimestamp";
|
|
36
38
|
};
|
|
@@ -42,9 +44,7 @@ export declare const AgencySchema: z.ZodObject<{
|
|
|
42
44
|
vkm_per_month: number[];
|
|
43
45
|
};
|
|
44
46
|
name: string;
|
|
45
|
-
operation_start_date:
|
|
46
|
-
__brand: "OperationalDate";
|
|
47
|
-
};
|
|
47
|
+
operation_start_date: import("./_common/operational-date.js").OperationalDate | null;
|
|
48
48
|
phone: string;
|
|
49
49
|
public_email: string;
|
|
50
50
|
short_name: string;
|
|
@@ -62,21 +62,23 @@ export declare const AgencySchema: z.ZodObject<{
|
|
|
62
62
|
vkm_per_month: number[];
|
|
63
63
|
};
|
|
64
64
|
name: string;
|
|
65
|
-
operation_start_date: string;
|
|
66
65
|
phone: string;
|
|
67
66
|
public_email: string;
|
|
68
67
|
short_name: string;
|
|
69
68
|
website_url: string;
|
|
70
69
|
created_by?: string | undefined;
|
|
70
|
+
is_locked?: boolean | undefined;
|
|
71
71
|
updated_by?: string | undefined;
|
|
72
72
|
contact_emails_pta?: string[] | undefined;
|
|
73
73
|
contact_emails_pto?: string[] | undefined;
|
|
74
|
+
operation_start_date?: string | null | undefined;
|
|
74
75
|
timezone?: string | undefined;
|
|
75
76
|
}>;
|
|
76
77
|
export declare const CreateAgencySchema: z.ZodObject<Omit<{
|
|
77
78
|
_id: z.ZodString;
|
|
78
79
|
created_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
|
|
79
80
|
created_by: z.ZodOptional<z.ZodString>;
|
|
81
|
+
is_locked: z.ZodDefault<z.ZodBoolean>;
|
|
80
82
|
updated_at: z.ZodEffects<z.ZodNumber, import("./index.js").UnixTimestamp, number>;
|
|
81
83
|
updated_by: z.ZodOptional<z.ZodString>;
|
|
82
84
|
} & {
|
|
@@ -94,7 +96,7 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
|
|
|
94
96
|
vkm_per_month: number[];
|
|
95
97
|
}>;
|
|
96
98
|
name: z.ZodString;
|
|
97
|
-
operation_start_date: z.ZodEffects<z.ZodString, import("./_common/operational-date.js").OperationalDate, string
|
|
99
|
+
operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("./_common/operational-date.js").OperationalDate, string>>>;
|
|
98
100
|
phone: z.ZodString;
|
|
99
101
|
public_email: z.ZodString;
|
|
100
102
|
short_name: z.ZodString;
|
|
@@ -102,6 +104,7 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
|
|
|
102
104
|
website_url: z.ZodString;
|
|
103
105
|
}, "created_at" | "updated_at">, "strip", z.ZodTypeAny, {
|
|
104
106
|
_id: string;
|
|
107
|
+
is_locked: boolean;
|
|
105
108
|
contact_emails_pta: string[];
|
|
106
109
|
contact_emails_pto: string[];
|
|
107
110
|
fare_url: string;
|
|
@@ -110,9 +113,7 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
|
|
|
110
113
|
vkm_per_month: number[];
|
|
111
114
|
};
|
|
112
115
|
name: string;
|
|
113
|
-
operation_start_date:
|
|
114
|
-
__brand: "OperationalDate";
|
|
115
|
-
};
|
|
116
|
+
operation_start_date: import("./_common/operational-date.js").OperationalDate | null;
|
|
116
117
|
phone: string;
|
|
117
118
|
public_email: string;
|
|
118
119
|
short_name: string;
|
|
@@ -128,19 +129,21 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
|
|
|
128
129
|
vkm_per_month: number[];
|
|
129
130
|
};
|
|
130
131
|
name: string;
|
|
131
|
-
operation_start_date: string;
|
|
132
132
|
phone: string;
|
|
133
133
|
public_email: string;
|
|
134
134
|
short_name: string;
|
|
135
135
|
website_url: string;
|
|
136
136
|
created_by?: string | undefined;
|
|
137
|
+
is_locked?: boolean | undefined;
|
|
137
138
|
updated_by?: string | undefined;
|
|
138
139
|
contact_emails_pta?: string[] | undefined;
|
|
139
140
|
contact_emails_pto?: string[] | undefined;
|
|
141
|
+
operation_start_date?: string | null | undefined;
|
|
140
142
|
timezone?: string | undefined;
|
|
141
143
|
}>;
|
|
142
144
|
export declare const UpdateAgencySchema: z.ZodObject<{
|
|
143
145
|
_id: z.ZodOptional<z.ZodString>;
|
|
146
|
+
is_locked: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
144
147
|
updated_by: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
145
148
|
contact_emails_pta: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
146
149
|
contact_emails_pto: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
@@ -156,7 +159,7 @@ export declare const UpdateAgencySchema: z.ZodObject<{
|
|
|
156
159
|
vkm_per_month: number[];
|
|
157
160
|
}>>;
|
|
158
161
|
name: z.ZodOptional<z.ZodString>;
|
|
159
|
-
operation_start_date: z.ZodOptional<z.ZodEffects<z.ZodString, import("./_common/operational-date.js").OperationalDate, string
|
|
162
|
+
operation_start_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("./_common/operational-date.js").OperationalDate, string>>>>;
|
|
160
163
|
phone: z.ZodOptional<z.ZodString>;
|
|
161
164
|
public_email: z.ZodOptional<z.ZodString>;
|
|
162
165
|
short_name: z.ZodOptional<z.ZodString>;
|
|
@@ -164,6 +167,7 @@ export declare const UpdateAgencySchema: z.ZodObject<{
|
|
|
164
167
|
website_url: z.ZodOptional<z.ZodString>;
|
|
165
168
|
}, "strip", z.ZodTypeAny, {
|
|
166
169
|
_id?: string | undefined;
|
|
170
|
+
is_locked?: boolean | undefined;
|
|
167
171
|
updated_by?: string | undefined;
|
|
168
172
|
contact_emails_pta?: string[] | undefined;
|
|
169
173
|
contact_emails_pto?: string[] | undefined;
|
|
@@ -173,7 +177,7 @@ export declare const UpdateAgencySchema: z.ZodObject<{
|
|
|
173
177
|
vkm_per_month: number[];
|
|
174
178
|
} | undefined;
|
|
175
179
|
name?: string | undefined;
|
|
176
|
-
operation_start_date?: import("./_common/operational-date.js").OperationalDate | undefined;
|
|
180
|
+
operation_start_date?: import("./_common/operational-date.js").OperationalDate | null | undefined;
|
|
177
181
|
phone?: string | undefined;
|
|
178
182
|
public_email?: string | undefined;
|
|
179
183
|
short_name?: string | undefined;
|
|
@@ -181,6 +185,7 @@ export declare const UpdateAgencySchema: z.ZodObject<{
|
|
|
181
185
|
website_url?: string | undefined;
|
|
182
186
|
}, {
|
|
183
187
|
_id?: string | undefined;
|
|
188
|
+
is_locked?: boolean | undefined;
|
|
184
189
|
updated_by?: string | undefined;
|
|
185
190
|
contact_emails_pta?: string[] | undefined;
|
|
186
191
|
contact_emails_pto?: string[] | undefined;
|
|
@@ -190,7 +195,7 @@ export declare const UpdateAgencySchema: z.ZodObject<{
|
|
|
190
195
|
vkm_per_month: number[];
|
|
191
196
|
} | undefined;
|
|
192
197
|
name?: string | undefined;
|
|
193
|
-
operation_start_date?: string | undefined;
|
|
198
|
+
operation_start_date?: string | null | undefined;
|
|
194
199
|
phone?: string | undefined;
|
|
195
200
|
public_email?: string | undefined;
|
|
196
201
|
short_name?: string | undefined;
|
package/dist/agency.js
CHANGED
|
@@ -12,7 +12,7 @@ export const AgencySchema = DocumentSchema.extend({
|
|
|
12
12
|
vkm_per_month: z.array(z.coerce.number()).length(12),
|
|
13
13
|
}),
|
|
14
14
|
name: z.string(),
|
|
15
|
-
operation_start_date: operationalDateSchema,
|
|
15
|
+
operation_start_date: operationalDateSchema.nullable().default(null),
|
|
16
16
|
phone: z.string(),
|
|
17
17
|
public_email: z.string().email(),
|
|
18
18
|
short_name: z.string(),
|