Skip to content

Commit 83f4938

Browse files
authored
feat: Sync with Seam API via 89af569bda8d0088abcf7a8c0b3c7b8db0d334c1 (#2768)
1 parent 68adfb5 commit 83f4938

File tree

3 files changed

+132
-1
lines changed

3 files changed

+132
-1
lines changed

src/lib/seam/connect/models/access-codes/pending-mutations.ts

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,24 @@ const creating = common_pending_mutation
1818
})
1919
.describe('Seam is in the process of setting an access code on the device.')
2020

21+
const deferring_creation = common_pending_mutation
22+
.extend({
23+
mutation_code: z
24+
.literal('deferring_creation')
25+
.describe(
26+
"Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device.",
27+
),
28+
scheduled_at: z
29+
.string()
30+
.datetime()
31+
.describe(
32+
'Date and time at which Seam will attempt to program this access code on the device.',
33+
),
34+
})
35+
.describe(
36+
"Seam is waiting until closer to the access code's start time before programming it on the device.",
37+
)
38+
2139
const deleting = common_pending_mutation
2240
.extend({
2341
mutation_code: z
@@ -116,7 +134,14 @@ const updating_time_frame = common_pending_mutation
116134

117135
export const access_code_pending_mutations = z.discriminatedUnion(
118136
'mutation_code',
119-
[creating, deleting, updating_code, updating_name, updating_time_frame],
137+
[
138+
creating,
139+
deferring_creation,
140+
deleting,
141+
updating_code,
142+
updating_name,
143+
updating_time_frame,
144+
],
120145
)
121146

122147
export type AccessCodePendingMutation = z.infer<
@@ -134,6 +159,7 @@ const internal_recreate_fields = z.object({
134159

135160
const _access_code_pending_mutations_map = z.object({
136161
creating: creating.optional().nullable(),
162+
deferring_creation: deferring_creation.optional().nullable(),
137163
deleting: deleting.optional().nullable(),
138164
updating_code: updating_code
139165
.merge(internal_recreate_fields)

src/lib/seam/connect/openapi.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,41 @@ export default {
14061406
required: ['created_at', 'message', 'mutation_code'],
14071407
type: 'object',
14081408
},
1409+
{
1410+
description:
1411+
"Seam is waiting until closer to the access code's start time before programming it on the device.",
1412+
properties: {
1413+
created_at: {
1414+
description:
1415+
'Date and time at which the mutation was created.',
1416+
format: 'date-time',
1417+
type: 'string',
1418+
},
1419+
message: {
1420+
description: 'Detailed description of the mutation.',
1421+
type: 'string',
1422+
},
1423+
mutation_code: {
1424+
description:
1425+
"Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device.",
1426+
enum: ['deferring_creation'],
1427+
type: 'string',
1428+
},
1429+
scheduled_at: {
1430+
description:
1431+
'Date and time at which Seam will attempt to program this access code on the device.',
1432+
format: 'date-time',
1433+
type: 'string',
1434+
},
1435+
},
1436+
required: [
1437+
'created_at',
1438+
'message',
1439+
'mutation_code',
1440+
'scheduled_at',
1441+
],
1442+
type: 'object',
1443+
},
14091444
{
14101445
description:
14111446
'Seam is in the process of removing an access code from the device.',

src/lib/seam/connect/route-types.ts

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2167,6 +2167,16 @@ export type Routes = {
21672167
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
21682168
mutation_code: 'creating'
21692169
}
2170+
| {
2171+
/** Date and time at which the mutation was created. */
2172+
created_at: string
2173+
/** Detailed description of the mutation. */
2174+
message: string
2175+
/** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */
2176+
mutation_code: 'deferring_creation'
2177+
/** Date and time at which Seam will attempt to program this access code on the device. */
2178+
scheduled_at: string
2179+
}
21702180
| {
21712181
/** Date and time at which the mutation was created. */
21722182
created_at: string
@@ -2848,6 +2858,16 @@ export type Routes = {
28482858
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
28492859
mutation_code: 'creating'
28502860
}
2861+
| {
2862+
/** Date and time at which the mutation was created. */
2863+
created_at: string
2864+
/** Detailed description of the mutation. */
2865+
message: string
2866+
/** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */
2867+
mutation_code: 'deferring_creation'
2868+
/** Date and time at which Seam will attempt to program this access code on the device. */
2869+
scheduled_at: string
2870+
}
28512871
| {
28522872
/** Date and time at which the mutation was created. */
28532873
created_at: string
@@ -5089,6 +5109,16 @@ export type Routes = {
50895109
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
50905110
mutation_code: 'creating'
50915111
}
5112+
| {
5113+
/** Date and time at which the mutation was created. */
5114+
created_at: string
5115+
/** Detailed description of the mutation. */
5116+
message: string
5117+
/** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */
5118+
mutation_code: 'deferring_creation'
5119+
/** Date and time at which Seam will attempt to program this access code on the device. */
5120+
scheduled_at: string
5121+
}
50925122
| {
50935123
/** Date and time at which the mutation was created. */
50945124
created_at: string
@@ -5859,6 +5889,16 @@ export type Routes = {
58595889
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
58605890
mutation_code: 'creating'
58615891
}
5892+
| {
5893+
/** Date and time at which the mutation was created. */
5894+
created_at: string
5895+
/** Detailed description of the mutation. */
5896+
message: string
5897+
/** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */
5898+
mutation_code: 'deferring_creation'
5899+
/** Date and time at which Seam will attempt to program this access code on the device. */
5900+
scheduled_at: string
5901+
}
58625902
| {
58635903
/** Date and time at which the mutation was created. */
58645904
created_at: string
@@ -6531,6 +6571,16 @@ export type Routes = {
65316571
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
65326572
mutation_code: 'creating'
65336573
}
6574+
| {
6575+
/** Date and time at which the mutation was created. */
6576+
created_at: string
6577+
/** Detailed description of the mutation. */
6578+
message: string
6579+
/** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */
6580+
mutation_code: 'deferring_creation'
6581+
/** Date and time at which Seam will attempt to program this access code on the device. */
6582+
scheduled_at: string
6583+
}
65346584
| {
65356585
/** Date and time at which the mutation was created. */
65366586
created_at: string
@@ -7180,6 +7230,16 @@ export type Routes = {
71807230
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
71817231
mutation_code: 'creating'
71827232
}
7233+
| {
7234+
/** Date and time at which the mutation was created. */
7235+
created_at: string
7236+
/** Detailed description of the mutation. */
7237+
message: string
7238+
/** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */
7239+
mutation_code: 'deferring_creation'
7240+
/** Date and time at which Seam will attempt to program this access code on the device. */
7241+
scheduled_at: string
7242+
}
71837243
| {
71847244
/** Date and time at which the mutation was created. */
71857245
created_at: string
@@ -118675,6 +118735,16 @@ export type Routes = {
118675118735
/** Mutation code to indicate that Seam is in the process of setting an access code on the device. */
118676118736
mutation_code: 'creating'
118677118737
}
118738+
| {
118739+
/** Date and time at which the mutation was created. */
118740+
created_at: string
118741+
/** Detailed description of the mutation. */
118742+
message: string
118743+
/** Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device. */
118744+
mutation_code: 'deferring_creation'
118745+
/** Date and time at which Seam will attempt to program this access code on the device. */
118746+
scheduled_at: string
118747+
}
118678118748
| {
118679118749
/** Date and time at which the mutation was created. */
118680118750
created_at: string

0 commit comments

Comments
 (0)