@seamapi/types 1.737.0 → 1.739.0
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/connect.cjs +1867 -18
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +4282 -348
- package/dist/index.cjs +1867 -18
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/acs/acs-access-group.d.ts +590 -0
- package/lib/seam/connect/models/acs/acs-access-group.js +4 -0
- package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-access-groups/index.d.ts +1 -0
- package/lib/seam/connect/models/acs/acs-access-groups/index.js +2 -0
- package/lib/seam/connect/models/acs/acs-access-groups/index.js.map +1 -0
- package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.d.ts +511 -0
- package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js +126 -0
- package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js.map +1 -0
- package/lib/seam/connect/models/acs/acs-credential.d.ts +4 -4
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +2 -2
- package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +4 -4
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.d.ts +12 -12
- package/lib/seam/connect/models/acs/index.d.ts +1 -0
- package/lib/seam/connect/models/acs/index.js +1 -0
- package/lib/seam/connect/models/acs/index.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +20 -20
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +8 -8
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +12 -12
- package/lib/seam/connect/models/batch.d.ts +868 -74
- package/lib/seam/connect/models/events/acs/entrances.d.ts +8 -8
- package/lib/seam/connect/models/events/acs/index.d.ts +8 -8
- package/lib/seam/connect/models/events/acs/users.d.ts +8 -8
- package/lib/seam/connect/models/events/devices.d.ts +4 -4
- package/lib/seam/connect/models/events/seam-event.d.ts +10 -10
- package/lib/seam/connect/models/phones/phone-session.d.ts +30 -30
- package/lib/seam/connect/models/user-identities/user-identity.d.ts +12 -12
- package/lib/seam/connect/openapi.d.ts +1761 -0
- package/lib/seam/connect/openapi.js +1758 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +789 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-access-group.ts +6 -0
- package/src/lib/seam/connect/models/acs/acs-access-groups/index.ts +1 -0
- package/src/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.ts +171 -0
- package/src/lib/seam/connect/models/acs/index.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +1800 -0
- package/src/lib/seam/connect/route-types.ts +902 -0
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const acs_access_group_pending_mutations: z.ZodDiscriminatedUnion<"mutation_code", [z.ZodObject<{
|
|
3
|
+
created_at: z.ZodString;
|
|
4
|
+
message: z.ZodString;
|
|
5
|
+
} & {
|
|
6
|
+
mutation_code: z.ZodLiteral<"creating">;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
message: string;
|
|
9
|
+
created_at: string;
|
|
10
|
+
mutation_code: "creating";
|
|
11
|
+
}, {
|
|
12
|
+
message: string;
|
|
13
|
+
created_at: string;
|
|
14
|
+
mutation_code: "creating";
|
|
15
|
+
}>, z.ZodObject<{
|
|
16
|
+
created_at: z.ZodString;
|
|
17
|
+
message: z.ZodString;
|
|
18
|
+
} & {
|
|
19
|
+
mutation_code: z.ZodLiteral<"deleting">;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
message: string;
|
|
22
|
+
created_at: string;
|
|
23
|
+
mutation_code: "deleting";
|
|
24
|
+
}, {
|
|
25
|
+
message: string;
|
|
26
|
+
created_at: string;
|
|
27
|
+
mutation_code: "deleting";
|
|
28
|
+
}>, z.ZodObject<{
|
|
29
|
+
created_at: z.ZodString;
|
|
30
|
+
message: z.ZodString;
|
|
31
|
+
} & {
|
|
32
|
+
mutation_code: z.ZodLiteral<"updating_group_information">;
|
|
33
|
+
from: z.ZodObject<{
|
|
34
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
name?: string | null | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
name?: string | null | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
to: z.ZodObject<{
|
|
41
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
name?: string | null | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
name?: string | null | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
message: string;
|
|
49
|
+
created_at: string;
|
|
50
|
+
mutation_code: "updating_group_information";
|
|
51
|
+
from: {
|
|
52
|
+
name?: string | null | undefined;
|
|
53
|
+
};
|
|
54
|
+
to: {
|
|
55
|
+
name?: string | null | undefined;
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
message: string;
|
|
59
|
+
created_at: string;
|
|
60
|
+
mutation_code: "updating_group_information";
|
|
61
|
+
from: {
|
|
62
|
+
name?: string | null | undefined;
|
|
63
|
+
};
|
|
64
|
+
to: {
|
|
65
|
+
name?: string | null | undefined;
|
|
66
|
+
};
|
|
67
|
+
}>, z.ZodObject<{
|
|
68
|
+
created_at: z.ZodString;
|
|
69
|
+
message: z.ZodString;
|
|
70
|
+
} & {
|
|
71
|
+
mutation_code: z.ZodLiteral<"updating_access_schedule">;
|
|
72
|
+
from: z.ZodObject<{
|
|
73
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
74
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
starts_at: string | null;
|
|
77
|
+
ends_at: string | null;
|
|
78
|
+
}, {
|
|
79
|
+
starts_at: string | null;
|
|
80
|
+
ends_at: string | null;
|
|
81
|
+
}>;
|
|
82
|
+
to: z.ZodObject<{
|
|
83
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
84
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
starts_at: string | null;
|
|
87
|
+
ends_at: string | null;
|
|
88
|
+
}, {
|
|
89
|
+
starts_at: string | null;
|
|
90
|
+
ends_at: string | null;
|
|
91
|
+
}>;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
message: string;
|
|
94
|
+
created_at: string;
|
|
95
|
+
mutation_code: "updating_access_schedule";
|
|
96
|
+
from: {
|
|
97
|
+
starts_at: string | null;
|
|
98
|
+
ends_at: string | null;
|
|
99
|
+
};
|
|
100
|
+
to: {
|
|
101
|
+
starts_at: string | null;
|
|
102
|
+
ends_at: string | null;
|
|
103
|
+
};
|
|
104
|
+
}, {
|
|
105
|
+
message: string;
|
|
106
|
+
created_at: string;
|
|
107
|
+
mutation_code: "updating_access_schedule";
|
|
108
|
+
from: {
|
|
109
|
+
starts_at: string | null;
|
|
110
|
+
ends_at: string | null;
|
|
111
|
+
};
|
|
112
|
+
to: {
|
|
113
|
+
starts_at: string | null;
|
|
114
|
+
ends_at: string | null;
|
|
115
|
+
};
|
|
116
|
+
}>, z.ZodObject<{
|
|
117
|
+
created_at: z.ZodString;
|
|
118
|
+
message: z.ZodString;
|
|
119
|
+
} & {
|
|
120
|
+
mutation_code: z.ZodLiteral<"updating_user_membership">;
|
|
121
|
+
from: z.ZodObject<{
|
|
122
|
+
acs_user_id: z.ZodNullable<z.ZodString>;
|
|
123
|
+
}, "strip", z.ZodTypeAny, {
|
|
124
|
+
acs_user_id: string | null;
|
|
125
|
+
}, {
|
|
126
|
+
acs_user_id: string | null;
|
|
127
|
+
}>;
|
|
128
|
+
to: z.ZodObject<{
|
|
129
|
+
acs_user_id: z.ZodNullable<z.ZodString>;
|
|
130
|
+
}, "strip", z.ZodTypeAny, {
|
|
131
|
+
acs_user_id: string | null;
|
|
132
|
+
}, {
|
|
133
|
+
acs_user_id: string | null;
|
|
134
|
+
}>;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
message: string;
|
|
137
|
+
created_at: string;
|
|
138
|
+
mutation_code: "updating_user_membership";
|
|
139
|
+
from: {
|
|
140
|
+
acs_user_id: string | null;
|
|
141
|
+
};
|
|
142
|
+
to: {
|
|
143
|
+
acs_user_id: string | null;
|
|
144
|
+
};
|
|
145
|
+
}, {
|
|
146
|
+
message: string;
|
|
147
|
+
created_at: string;
|
|
148
|
+
mutation_code: "updating_user_membership";
|
|
149
|
+
from: {
|
|
150
|
+
acs_user_id: string | null;
|
|
151
|
+
};
|
|
152
|
+
to: {
|
|
153
|
+
acs_user_id: string | null;
|
|
154
|
+
};
|
|
155
|
+
}>, z.ZodObject<{
|
|
156
|
+
created_at: z.ZodString;
|
|
157
|
+
message: z.ZodString;
|
|
158
|
+
} & {
|
|
159
|
+
mutation_code: z.ZodLiteral<"updating_entrance_membership">;
|
|
160
|
+
from: z.ZodObject<{
|
|
161
|
+
acs_entrance_id: z.ZodNullable<z.ZodString>;
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
acs_entrance_id: string | null;
|
|
164
|
+
}, {
|
|
165
|
+
acs_entrance_id: string | null;
|
|
166
|
+
}>;
|
|
167
|
+
to: z.ZodObject<{
|
|
168
|
+
acs_entrance_id: z.ZodNullable<z.ZodString>;
|
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
|
170
|
+
acs_entrance_id: string | null;
|
|
171
|
+
}, {
|
|
172
|
+
acs_entrance_id: string | null;
|
|
173
|
+
}>;
|
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
message: string;
|
|
176
|
+
created_at: string;
|
|
177
|
+
mutation_code: "updating_entrance_membership";
|
|
178
|
+
from: {
|
|
179
|
+
acs_entrance_id: string | null;
|
|
180
|
+
};
|
|
181
|
+
to: {
|
|
182
|
+
acs_entrance_id: string | null;
|
|
183
|
+
};
|
|
184
|
+
}, {
|
|
185
|
+
message: string;
|
|
186
|
+
created_at: string;
|
|
187
|
+
mutation_code: "updating_entrance_membership";
|
|
188
|
+
from: {
|
|
189
|
+
acs_entrance_id: string | null;
|
|
190
|
+
};
|
|
191
|
+
to: {
|
|
192
|
+
acs_entrance_id: string | null;
|
|
193
|
+
};
|
|
194
|
+
}>]>;
|
|
195
|
+
export type AcsAccessGroupPendingMutation = z.infer<typeof acs_access_group_pending_mutations>;
|
|
196
|
+
declare const _acs_access_group_pending_mutations_map: z.ZodObject<{
|
|
197
|
+
creating: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
198
|
+
created_at: z.ZodString;
|
|
199
|
+
message: z.ZodString;
|
|
200
|
+
} & {
|
|
201
|
+
mutation_code: z.ZodLiteral<"creating">;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
message: string;
|
|
204
|
+
created_at: string;
|
|
205
|
+
mutation_code: "creating";
|
|
206
|
+
}, {
|
|
207
|
+
message: string;
|
|
208
|
+
created_at: string;
|
|
209
|
+
mutation_code: "creating";
|
|
210
|
+
}>>>;
|
|
211
|
+
deleting: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
212
|
+
created_at: z.ZodString;
|
|
213
|
+
message: z.ZodString;
|
|
214
|
+
} & {
|
|
215
|
+
mutation_code: z.ZodLiteral<"deleting">;
|
|
216
|
+
}, "strip", z.ZodTypeAny, {
|
|
217
|
+
message: string;
|
|
218
|
+
created_at: string;
|
|
219
|
+
mutation_code: "deleting";
|
|
220
|
+
}, {
|
|
221
|
+
message: string;
|
|
222
|
+
created_at: string;
|
|
223
|
+
mutation_code: "deleting";
|
|
224
|
+
}>>>;
|
|
225
|
+
updating_name: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
226
|
+
created_at: z.ZodString;
|
|
227
|
+
message: z.ZodString;
|
|
228
|
+
} & {
|
|
229
|
+
mutation_code: z.ZodLiteral<"updating_group_information">;
|
|
230
|
+
from: z.ZodObject<{
|
|
231
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
232
|
+
}, "strip", z.ZodTypeAny, {
|
|
233
|
+
name?: string | null | undefined;
|
|
234
|
+
}, {
|
|
235
|
+
name?: string | null | undefined;
|
|
236
|
+
}>;
|
|
237
|
+
to: z.ZodObject<{
|
|
238
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
239
|
+
}, "strip", z.ZodTypeAny, {
|
|
240
|
+
name?: string | null | undefined;
|
|
241
|
+
}, {
|
|
242
|
+
name?: string | null | undefined;
|
|
243
|
+
}>;
|
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
message: string;
|
|
246
|
+
created_at: string;
|
|
247
|
+
mutation_code: "updating_group_information";
|
|
248
|
+
from: {
|
|
249
|
+
name?: string | null | undefined;
|
|
250
|
+
};
|
|
251
|
+
to: {
|
|
252
|
+
name?: string | null | undefined;
|
|
253
|
+
};
|
|
254
|
+
}, {
|
|
255
|
+
message: string;
|
|
256
|
+
created_at: string;
|
|
257
|
+
mutation_code: "updating_group_information";
|
|
258
|
+
from: {
|
|
259
|
+
name?: string | null | undefined;
|
|
260
|
+
};
|
|
261
|
+
to: {
|
|
262
|
+
name?: string | null | undefined;
|
|
263
|
+
};
|
|
264
|
+
}>>>;
|
|
265
|
+
updating_access_schedule: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
266
|
+
created_at: z.ZodString;
|
|
267
|
+
message: z.ZodString;
|
|
268
|
+
} & {
|
|
269
|
+
mutation_code: z.ZodLiteral<"updating_access_schedule">;
|
|
270
|
+
from: z.ZodObject<{
|
|
271
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
272
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
273
|
+
}, "strip", z.ZodTypeAny, {
|
|
274
|
+
starts_at: string | null;
|
|
275
|
+
ends_at: string | null;
|
|
276
|
+
}, {
|
|
277
|
+
starts_at: string | null;
|
|
278
|
+
ends_at: string | null;
|
|
279
|
+
}>;
|
|
280
|
+
to: z.ZodObject<{
|
|
281
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
282
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
283
|
+
}, "strip", z.ZodTypeAny, {
|
|
284
|
+
starts_at: string | null;
|
|
285
|
+
ends_at: string | null;
|
|
286
|
+
}, {
|
|
287
|
+
starts_at: string | null;
|
|
288
|
+
ends_at: string | null;
|
|
289
|
+
}>;
|
|
290
|
+
}, "strip", z.ZodTypeAny, {
|
|
291
|
+
message: string;
|
|
292
|
+
created_at: string;
|
|
293
|
+
mutation_code: "updating_access_schedule";
|
|
294
|
+
from: {
|
|
295
|
+
starts_at: string | null;
|
|
296
|
+
ends_at: string | null;
|
|
297
|
+
};
|
|
298
|
+
to: {
|
|
299
|
+
starts_at: string | null;
|
|
300
|
+
ends_at: string | null;
|
|
301
|
+
};
|
|
302
|
+
}, {
|
|
303
|
+
message: string;
|
|
304
|
+
created_at: string;
|
|
305
|
+
mutation_code: "updating_access_schedule";
|
|
306
|
+
from: {
|
|
307
|
+
starts_at: string | null;
|
|
308
|
+
ends_at: string | null;
|
|
309
|
+
};
|
|
310
|
+
to: {
|
|
311
|
+
starts_at: string | null;
|
|
312
|
+
ends_at: string | null;
|
|
313
|
+
};
|
|
314
|
+
}>>>;
|
|
315
|
+
updating_user_membership: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
316
|
+
created_at: z.ZodString;
|
|
317
|
+
message: z.ZodString;
|
|
318
|
+
} & {
|
|
319
|
+
mutation_code: z.ZodLiteral<"updating_user_membership">;
|
|
320
|
+
from: z.ZodObject<{
|
|
321
|
+
acs_user_id: z.ZodNullable<z.ZodString>;
|
|
322
|
+
}, "strip", z.ZodTypeAny, {
|
|
323
|
+
acs_user_id: string | null;
|
|
324
|
+
}, {
|
|
325
|
+
acs_user_id: string | null;
|
|
326
|
+
}>;
|
|
327
|
+
to: z.ZodObject<{
|
|
328
|
+
acs_user_id: z.ZodNullable<z.ZodString>;
|
|
329
|
+
}, "strip", z.ZodTypeAny, {
|
|
330
|
+
acs_user_id: string | null;
|
|
331
|
+
}, {
|
|
332
|
+
acs_user_id: string | null;
|
|
333
|
+
}>;
|
|
334
|
+
}, "strip", z.ZodTypeAny, {
|
|
335
|
+
message: string;
|
|
336
|
+
created_at: string;
|
|
337
|
+
mutation_code: "updating_user_membership";
|
|
338
|
+
from: {
|
|
339
|
+
acs_user_id: string | null;
|
|
340
|
+
};
|
|
341
|
+
to: {
|
|
342
|
+
acs_user_id: string | null;
|
|
343
|
+
};
|
|
344
|
+
}, {
|
|
345
|
+
message: string;
|
|
346
|
+
created_at: string;
|
|
347
|
+
mutation_code: "updating_user_membership";
|
|
348
|
+
from: {
|
|
349
|
+
acs_user_id: string | null;
|
|
350
|
+
};
|
|
351
|
+
to: {
|
|
352
|
+
acs_user_id: string | null;
|
|
353
|
+
};
|
|
354
|
+
}>>>>;
|
|
355
|
+
updating_entrance_membership: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
356
|
+
created_at: z.ZodString;
|
|
357
|
+
message: z.ZodString;
|
|
358
|
+
} & {
|
|
359
|
+
mutation_code: z.ZodLiteral<"updating_entrance_membership">;
|
|
360
|
+
from: z.ZodObject<{
|
|
361
|
+
acs_entrance_id: z.ZodNullable<z.ZodString>;
|
|
362
|
+
}, "strip", z.ZodTypeAny, {
|
|
363
|
+
acs_entrance_id: string | null;
|
|
364
|
+
}, {
|
|
365
|
+
acs_entrance_id: string | null;
|
|
366
|
+
}>;
|
|
367
|
+
to: z.ZodObject<{
|
|
368
|
+
acs_entrance_id: z.ZodNullable<z.ZodString>;
|
|
369
|
+
}, "strip", z.ZodTypeAny, {
|
|
370
|
+
acs_entrance_id: string | null;
|
|
371
|
+
}, {
|
|
372
|
+
acs_entrance_id: string | null;
|
|
373
|
+
}>;
|
|
374
|
+
}, "strip", z.ZodTypeAny, {
|
|
375
|
+
message: string;
|
|
376
|
+
created_at: string;
|
|
377
|
+
mutation_code: "updating_entrance_membership";
|
|
378
|
+
from: {
|
|
379
|
+
acs_entrance_id: string | null;
|
|
380
|
+
};
|
|
381
|
+
to: {
|
|
382
|
+
acs_entrance_id: string | null;
|
|
383
|
+
};
|
|
384
|
+
}, {
|
|
385
|
+
message: string;
|
|
386
|
+
created_at: string;
|
|
387
|
+
mutation_code: "updating_entrance_membership";
|
|
388
|
+
from: {
|
|
389
|
+
acs_entrance_id: string | null;
|
|
390
|
+
};
|
|
391
|
+
to: {
|
|
392
|
+
acs_entrance_id: string | null;
|
|
393
|
+
};
|
|
394
|
+
}>>>>;
|
|
395
|
+
}, "strip", z.ZodTypeAny, {
|
|
396
|
+
creating?: {
|
|
397
|
+
message: string;
|
|
398
|
+
created_at: string;
|
|
399
|
+
mutation_code: "creating";
|
|
400
|
+
} | null | undefined;
|
|
401
|
+
deleting?: {
|
|
402
|
+
message: string;
|
|
403
|
+
created_at: string;
|
|
404
|
+
mutation_code: "deleting";
|
|
405
|
+
} | null | undefined;
|
|
406
|
+
updating_access_schedule?: {
|
|
407
|
+
message: string;
|
|
408
|
+
created_at: string;
|
|
409
|
+
mutation_code: "updating_access_schedule";
|
|
410
|
+
from: {
|
|
411
|
+
starts_at: string | null;
|
|
412
|
+
ends_at: string | null;
|
|
413
|
+
};
|
|
414
|
+
to: {
|
|
415
|
+
starts_at: string | null;
|
|
416
|
+
ends_at: string | null;
|
|
417
|
+
};
|
|
418
|
+
} | null | undefined;
|
|
419
|
+
updating_user_membership?: Record<string, {
|
|
420
|
+
message: string;
|
|
421
|
+
created_at: string;
|
|
422
|
+
mutation_code: "updating_user_membership";
|
|
423
|
+
from: {
|
|
424
|
+
acs_user_id: string | null;
|
|
425
|
+
};
|
|
426
|
+
to: {
|
|
427
|
+
acs_user_id: string | null;
|
|
428
|
+
};
|
|
429
|
+
}> | null | undefined;
|
|
430
|
+
updating_entrance_membership?: Record<string, {
|
|
431
|
+
message: string;
|
|
432
|
+
created_at: string;
|
|
433
|
+
mutation_code: "updating_entrance_membership";
|
|
434
|
+
from: {
|
|
435
|
+
acs_entrance_id: string | null;
|
|
436
|
+
};
|
|
437
|
+
to: {
|
|
438
|
+
acs_entrance_id: string | null;
|
|
439
|
+
};
|
|
440
|
+
}> | null | undefined;
|
|
441
|
+
updating_name?: {
|
|
442
|
+
message: string;
|
|
443
|
+
created_at: string;
|
|
444
|
+
mutation_code: "updating_group_information";
|
|
445
|
+
from: {
|
|
446
|
+
name?: string | null | undefined;
|
|
447
|
+
};
|
|
448
|
+
to: {
|
|
449
|
+
name?: string | null | undefined;
|
|
450
|
+
};
|
|
451
|
+
} | null | undefined;
|
|
452
|
+
}, {
|
|
453
|
+
creating?: {
|
|
454
|
+
message: string;
|
|
455
|
+
created_at: string;
|
|
456
|
+
mutation_code: "creating";
|
|
457
|
+
} | null | undefined;
|
|
458
|
+
deleting?: {
|
|
459
|
+
message: string;
|
|
460
|
+
created_at: string;
|
|
461
|
+
mutation_code: "deleting";
|
|
462
|
+
} | null | undefined;
|
|
463
|
+
updating_access_schedule?: {
|
|
464
|
+
message: string;
|
|
465
|
+
created_at: string;
|
|
466
|
+
mutation_code: "updating_access_schedule";
|
|
467
|
+
from: {
|
|
468
|
+
starts_at: string | null;
|
|
469
|
+
ends_at: string | null;
|
|
470
|
+
};
|
|
471
|
+
to: {
|
|
472
|
+
starts_at: string | null;
|
|
473
|
+
ends_at: string | null;
|
|
474
|
+
};
|
|
475
|
+
} | null | undefined;
|
|
476
|
+
updating_user_membership?: Record<string, {
|
|
477
|
+
message: string;
|
|
478
|
+
created_at: string;
|
|
479
|
+
mutation_code: "updating_user_membership";
|
|
480
|
+
from: {
|
|
481
|
+
acs_user_id: string | null;
|
|
482
|
+
};
|
|
483
|
+
to: {
|
|
484
|
+
acs_user_id: string | null;
|
|
485
|
+
};
|
|
486
|
+
}> | null | undefined;
|
|
487
|
+
updating_entrance_membership?: Record<string, {
|
|
488
|
+
message: string;
|
|
489
|
+
created_at: string;
|
|
490
|
+
mutation_code: "updating_entrance_membership";
|
|
491
|
+
from: {
|
|
492
|
+
acs_entrance_id: string | null;
|
|
493
|
+
};
|
|
494
|
+
to: {
|
|
495
|
+
acs_entrance_id: string | null;
|
|
496
|
+
};
|
|
497
|
+
}> | null | undefined;
|
|
498
|
+
updating_name?: {
|
|
499
|
+
message: string;
|
|
500
|
+
created_at: string;
|
|
501
|
+
mutation_code: "updating_group_information";
|
|
502
|
+
from: {
|
|
503
|
+
name?: string | null | undefined;
|
|
504
|
+
};
|
|
505
|
+
to: {
|
|
506
|
+
name?: string | null | undefined;
|
|
507
|
+
};
|
|
508
|
+
} | null | undefined;
|
|
509
|
+
}>;
|
|
510
|
+
export type AcsAccessGroupPendingMutationsMap = z.infer<typeof _acs_access_group_pending_mutations_map>;
|
|
511
|
+
export {};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
const common_pending_mutation = z.object({
|
|
3
|
+
created_at: z
|
|
4
|
+
.string()
|
|
5
|
+
.datetime()
|
|
6
|
+
.describe('Date and time at which the mutation was created.'),
|
|
7
|
+
message: z.string().describe('Detailed description of the mutation.'),
|
|
8
|
+
});
|
|
9
|
+
const creating = common_pending_mutation
|
|
10
|
+
.extend({
|
|
11
|
+
mutation_code: z
|
|
12
|
+
.literal('creating')
|
|
13
|
+
.describe('Mutation code to indicate that Seam is in the process of pushing an access group creation to the integrated access system.'),
|
|
14
|
+
})
|
|
15
|
+
.describe('Seam is in the process of pushing an access group creation to the integrated access system.');
|
|
16
|
+
const deleting = common_pending_mutation
|
|
17
|
+
.extend({
|
|
18
|
+
mutation_code: z
|
|
19
|
+
.literal('deleting')
|
|
20
|
+
.describe('Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system.'),
|
|
21
|
+
})
|
|
22
|
+
.describe('Seam is in the process of pushing an access group deletion to the integrated access system.');
|
|
23
|
+
const acs_access_group_info = z.object({
|
|
24
|
+
name: z.string().nullable().describe('Name of the access group.'),
|
|
25
|
+
});
|
|
26
|
+
const updating_group_information = common_pending_mutation
|
|
27
|
+
.extend({
|
|
28
|
+
mutation_code: z
|
|
29
|
+
.literal('updating_group_information')
|
|
30
|
+
.describe('Mutation code to indicate that Seam is in the process of pushing updated access group information to the integrated access system.'),
|
|
31
|
+
from: acs_access_group_info
|
|
32
|
+
.partial()
|
|
33
|
+
.describe('Old access group information.'),
|
|
34
|
+
to: acs_access_group_info
|
|
35
|
+
.partial()
|
|
36
|
+
.describe('New access group information.'),
|
|
37
|
+
})
|
|
38
|
+
.describe('Seam is in the process of pushing an access group information update to the integrated access system.');
|
|
39
|
+
const access_schedule = z
|
|
40
|
+
.object({
|
|
41
|
+
starts_at: z
|
|
42
|
+
.string()
|
|
43
|
+
.datetime()
|
|
44
|
+
.nullable()
|
|
45
|
+
.describe('Starting time for the access schedule.'),
|
|
46
|
+
ends_at: z
|
|
47
|
+
.string()
|
|
48
|
+
.datetime()
|
|
49
|
+
.nullable()
|
|
50
|
+
.describe('Ending time for the access schedule.'),
|
|
51
|
+
})
|
|
52
|
+
.describe('Access schedule involved in the mutation.');
|
|
53
|
+
const updating_access_schedule = common_pending_mutation
|
|
54
|
+
.extend({
|
|
55
|
+
mutation_code: z
|
|
56
|
+
.literal('updating_access_schedule')
|
|
57
|
+
.describe('Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system.'),
|
|
58
|
+
from: access_schedule.describe('Old access schedule information.'),
|
|
59
|
+
to: access_schedule.describe('New access schedule information.'),
|
|
60
|
+
})
|
|
61
|
+
.describe('Seam is in the process of pushing an access schedule update to the integrated access system.');
|
|
62
|
+
const updating_user_membership = common_pending_mutation
|
|
63
|
+
.extend({
|
|
64
|
+
mutation_code: z
|
|
65
|
+
.literal('updating_user_membership')
|
|
66
|
+
.describe('Mutation code to indicate that Seam is in the process of pushing updated user membership information to the integrated access system.'),
|
|
67
|
+
from: z
|
|
68
|
+
.object({
|
|
69
|
+
acs_user_id: z.string().uuid().nullable().describe('Old user ID.'),
|
|
70
|
+
})
|
|
71
|
+
.describe('Old user membership.'),
|
|
72
|
+
to: z
|
|
73
|
+
.object({
|
|
74
|
+
acs_user_id: z.string().uuid().nullable().describe('New user ID.'),
|
|
75
|
+
})
|
|
76
|
+
.describe('New user membership.'),
|
|
77
|
+
})
|
|
78
|
+
.describe('Seam is in the process of pushing a user membership update to the integrated access system.');
|
|
79
|
+
const updating_entrance_membership = common_pending_mutation
|
|
80
|
+
.extend({
|
|
81
|
+
mutation_code: z
|
|
82
|
+
.literal('updating_entrance_membership')
|
|
83
|
+
.describe('Mutation code to indicate that Seam is in the process of pushing updated entrance membership information to the integrated access system.'),
|
|
84
|
+
from: z
|
|
85
|
+
.object({
|
|
86
|
+
acs_entrance_id: z
|
|
87
|
+
.string()
|
|
88
|
+
.uuid()
|
|
89
|
+
.nullable()
|
|
90
|
+
.describe('Old entrance ID.'),
|
|
91
|
+
})
|
|
92
|
+
.describe('Old entrance membership.'),
|
|
93
|
+
to: z
|
|
94
|
+
.object({
|
|
95
|
+
acs_entrance_id: z
|
|
96
|
+
.string()
|
|
97
|
+
.uuid()
|
|
98
|
+
.nullable()
|
|
99
|
+
.describe('New entrance ID.'),
|
|
100
|
+
})
|
|
101
|
+
.describe('New entrance membership.'),
|
|
102
|
+
})
|
|
103
|
+
.describe('Seam is in the process of pushing an entrance membership update to the integrated access system.');
|
|
104
|
+
export const acs_access_group_pending_mutations = z.discriminatedUnion('mutation_code', [
|
|
105
|
+
creating,
|
|
106
|
+
deleting,
|
|
107
|
+
updating_group_information,
|
|
108
|
+
updating_access_schedule,
|
|
109
|
+
updating_user_membership,
|
|
110
|
+
updating_entrance_membership,
|
|
111
|
+
]);
|
|
112
|
+
const _acs_access_group_pending_mutations_map = z.object({
|
|
113
|
+
creating: creating.optional().nullable(),
|
|
114
|
+
deleting: deleting.optional().nullable(),
|
|
115
|
+
updating_name: updating_group_information.optional().nullable(),
|
|
116
|
+
updating_access_schedule: updating_access_schedule.optional().nullable(),
|
|
117
|
+
updating_user_membership: z
|
|
118
|
+
.record(z.string().uuid(), updating_user_membership)
|
|
119
|
+
.optional()
|
|
120
|
+
.nullable(),
|
|
121
|
+
updating_entrance_membership: z
|
|
122
|
+
.record(z.string().uuid(), updating_entrance_membership)
|
|
123
|
+
.optional()
|
|
124
|
+
.nullable(),
|
|
125
|
+
});
|
|
126
|
+
//# sourceMappingURL=pending-mutations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pending-mutations.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;IAC/D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;CACtE,CAAC,CAAA;AAEF,MAAM,QAAQ,GAAG,uBAAuB;KACrC,MAAM,CAAC;IACN,aAAa,EAAE,CAAC;SACb,OAAO,CAAC,UAAU,CAAC;SACnB,QAAQ,CACP,4HAA4H,CAC7H;CACJ,CAAC;KACD,QAAQ,CACP,6FAA6F,CAC9F,CAAA;AAEH,MAAM,QAAQ,GAAG,uBAAuB;KACrC,MAAM,CAAC;IACN,aAAa,EAAE,CAAC;SACb,OAAO,CAAC,UAAU,CAAC;SACnB,QAAQ,CACP,4HAA4H,CAC7H;CACJ,CAAC;KACD,QAAQ,CACP,6FAA6F,CAC9F,CAAA;AAEH,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC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D,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACxC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACxC,aAAa,EAAE,0BAA0B,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC/D,wBAAwB,EAAE,wBAAwB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACxE,wBAAwB,EAAE,CAAC;SACxB,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,wBAAwB,CAAC;SACnD,QAAQ,EAAE;SACV,QAAQ,EAAE;IACb,4BAA4B,EAAE,CAAC;SAC5B,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,4BAA4B,CAAC;SACvD,QAAQ,EAAE;SACV,QAAQ,EAAE;CACd,CAAC,CAAA"}
|
|
@@ -393,9 +393,9 @@ export declare const acs_credential: z.ZodObject<{
|
|
|
393
393
|
user_identity_id?: string | undefined;
|
|
394
394
|
issued_at?: string | null | undefined;
|
|
395
395
|
is_issued?: boolean | undefined;
|
|
396
|
+
acs_user_id?: string | undefined;
|
|
396
397
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | "hotek_card" | undefined;
|
|
397
398
|
external_type_display_name?: string | undefined;
|
|
398
|
-
acs_user_id?: string | undefined;
|
|
399
399
|
acs_credential_pool_id?: string | undefined;
|
|
400
400
|
parent_acs_credential_id?: string | undefined;
|
|
401
401
|
card_number?: string | null | undefined;
|
|
@@ -465,9 +465,9 @@ export declare const acs_credential: z.ZodObject<{
|
|
|
465
465
|
user_identity_id?: string | undefined;
|
|
466
466
|
issued_at?: string | null | undefined;
|
|
467
467
|
is_issued?: boolean | undefined;
|
|
468
|
+
acs_user_id?: string | undefined;
|
|
468
469
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | "hotek_card" | undefined;
|
|
469
470
|
external_type_display_name?: string | undefined;
|
|
470
|
-
acs_user_id?: string | undefined;
|
|
471
471
|
acs_credential_pool_id?: string | undefined;
|
|
472
472
|
parent_acs_credential_id?: string | undefined;
|
|
473
473
|
card_number?: string | null | undefined;
|
|
@@ -703,9 +703,9 @@ export declare const unmanaged_acs_credential: z.ZodObject<{
|
|
|
703
703
|
user_identity_id?: string | undefined;
|
|
704
704
|
issued_at?: string | null | undefined;
|
|
705
705
|
is_issued?: boolean | undefined;
|
|
706
|
+
acs_user_id?: string | undefined;
|
|
706
707
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | "hotek_card" | undefined;
|
|
707
708
|
external_type_display_name?: string | undefined;
|
|
708
|
-
acs_user_id?: string | undefined;
|
|
709
709
|
acs_credential_pool_id?: string | undefined;
|
|
710
710
|
parent_acs_credential_id?: string | undefined;
|
|
711
711
|
card_number?: string | null | undefined;
|
|
@@ -775,9 +775,9 @@ export declare const unmanaged_acs_credential: z.ZodObject<{
|
|
|
775
775
|
user_identity_id?: string | undefined;
|
|
776
776
|
issued_at?: string | null | undefined;
|
|
777
777
|
is_issued?: boolean | undefined;
|
|
778
|
+
acs_user_id?: string | undefined;
|
|
778
779
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | "dormakaba_ambiance_credential" | "hotek_card" | undefined;
|
|
779
780
|
external_type_display_name?: string | undefined;
|
|
780
|
-
acs_user_id?: string | undefined;
|
|
781
781
|
acs_credential_pool_id?: string | undefined;
|
|
782
782
|
parent_acs_credential_id?: string | undefined;
|
|
783
783
|
card_number?: string | null | undefined;
|