Skip to content

Commit 484dddf

Browse files
authored
fix: Description typos (#1234)
1 parent 7fa107a commit 484dddf

File tree

7 files changed

+162
-129
lines changed

7 files changed

+162
-129
lines changed

src/lib/seam/connect/models/acs/acs-access-group.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ const common_acs_access_group = z.object({
2929
name: z.string().describe('Name of the access group.'),
3030
access_group_type: acs_access_group_external_type.describe(`
3131
---
32-
deprecated: use external_type
32+
deprecated: Use \`external_type\`.
3333
---
3434
`),
3535
access_group_type_display_name: z.string().describe(`
3636
---
37-
deprecated: use external_type_display_name
37+
deprecated: Use \`external_type_display_name\`.
3838
---
3939
`),
4040
display_name: z.string(),
@@ -54,11 +54,9 @@ const common_acs_access_group = z.object({
5454

5555
export const acs_access_group = common_acs_access_group.extend({
5656
is_managed: z.literal(true),
57-
}).describe(`
58-
Group that defines the entrances to which a set of users has access and, in some cases, the access schedule for these entrances and users.
59-
60-
The \`acs_access_group\` object represents an [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups) within an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).
61-
`)
57+
})
58+
.describe(`Group that defines the entrances to which a set of users has access and, in some cases, the access schedule for these entrances and users.
59+
The \`acs_access_group\` object represents an [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups) within an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).`)
6260
export const unmanaged_acs_access_group = common_acs_access_group.extend({
6361
is_managed: z.literal(false),
6462
})

src/lib/seam/connect/models/acs/acs-credential.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,8 @@ function getAcsCredentialDescription(is_managed = true): string {
144144
: 'unmanaged_acs_credential'
145145
const management_clause = is_managed ? '' : ', which is not managed by Seam,'
146146

147-
return `
148-
Means by which a user gains access at an entrance.
149-
150-
The \`${resource_name}\` object${management_clause} represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.`.trim()
147+
return `Means by which a user gains access at an entrance.
148+
The \`${resource_name}\` object${management_clause} represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.`.trim()
151149
}
152150

153151
export const acs_credential_on_encoder = z.object({

src/lib/seam/connect/models/acs/acs-entrance.ts

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,34 @@ import {
88
acs_entrance_visionline_metadata,
99
} from './metadata/index.js'
1010

11-
export const acs_entrance = z.object({
12-
acs_system_id: z
13-
.string()
14-
.uuid()
15-
.describe('ID of the access control system that contains the entrance.'),
16-
acs_entrance_id: z.string().uuid().describe('ID of the entrance.'),
17-
created_at: z
18-
.string()
19-
.datetime()
20-
.describe('Date and time at which the entrance was created.'),
21-
display_name: z.string().describe('Display name for the entrance.'),
22-
errors: z.array(
23-
z.object({
24-
error_code: z.string(),
25-
message: z.string(),
26-
}),
27-
),
28-
latch_metadata: acs_entrance_latch_metadata.optional(),
29-
visionline_metadata: acs_entrance_visionline_metadata.optional(),
30-
salto_ks_metadata: acs_entrance_salto_ks_metadata.optional(),
31-
dormakaba_community_metadata:
32-
acs_entrance_dormakaba_community_metadata.optional(),
33-
assa_abloy_vostio_metadata:
34-
acs_entrance_assa_abloy_vostio_metadata.optional(),
35-
})
11+
export const acs_entrance = z
12+
.object({
13+
acs_system_id: z
14+
.string()
15+
.uuid()
16+
.describe('ID of the access control system that contains the entrance.'),
17+
acs_entrance_id: z.string().uuid().describe('ID of the entrance.'),
18+
created_at: z
19+
.string()
20+
.datetime()
21+
.describe('Date and time at which the entrance was created.'),
22+
display_name: z.string().describe('Display name for the entrance.'),
23+
errors: z.array(
24+
z.object({
25+
error_code: z.string(),
26+
message: z.string(),
27+
}),
28+
),
29+
latch_metadata: acs_entrance_latch_metadata.optional(),
30+
visionline_metadata: acs_entrance_visionline_metadata.optional(),
31+
salto_ks_metadata: acs_entrance_salto_ks_metadata.optional(),
32+
dormakaba_community_metadata:
33+
acs_entrance_dormakaba_community_metadata.optional(),
34+
assa_abloy_vostio_metadata:
35+
acs_entrance_assa_abloy_vostio_metadata.optional(),
36+
})
37+
.describe(
38+
'Represents an [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) within an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
39+
)
3640

3741
export type AcsEntrance = z.infer<typeof acs_entrance>

src/lib/seam/connect/models/acs/acs-user.ts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,15 +235,23 @@ const common_acs_user = z
235235
.merge(user_fields)
236236

237237
export const acs_user = common_acs_user.merge(
238-
z.object({
239-
is_managed: z.literal(true),
240-
}),
238+
z
239+
.object({
240+
is_managed: z.literal(true),
241+
})
242+
.describe(
243+
'Represents a [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
244+
),
241245
)
242246

243247
export const unmanaged_acs_user = common_acs_user.merge(
244-
z.object({
245-
is_managed: z.literal(false),
246-
}),
248+
z
249+
.object({
250+
is_managed: z.literal(false),
251+
})
252+
.describe(
253+
'Represents an unmanaged [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
254+
),
247255
)
248256

249257
export type AcsUser = z.output<typeof acs_user>

src/lib/seam/connect/models/schedule.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
import { z } from 'zod'
22

33
export const start_end_schedule = z.object({
4-
starts_at: z.string().datetime(),
5-
ends_at: z.string().datetime(),
4+
starts_at: z
5+
.string()
6+
.datetime()
7+
.describe(
8+
"Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
9+
),
10+
ends_at: z
11+
.string()
12+
.datetime()
13+
.describe(
14+
"Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
15+
),
616
})
717

818
// export const schedule = z.union([

0 commit comments

Comments
 (0)