@seamapi/types 1.607.0 → 1.609.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.
@@ -59050,6 +59050,8 @@ export type Routes = {
59050
59050
  limit?: number;
59051
59051
  /** Timestamp by which to limit returned reservations. Returns reservations created before this timestamp. */
59052
59052
  created_before?: Date | undefined;
59053
+ /** String for which to search. Filters returned reservations to include all records that satisfy a partial match using `reservation_id`, `reservation_key`, `name`, `guest_name`, or space names. */
59054
+ search?: string | undefined;
59053
59055
  /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */
59054
59056
  page_cursor?: ((string | undefined) | null) | undefined;
59055
59057
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.607.0",
3
+ "version": "1.609.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -0,0 +1 @@
1
+ export * from './pending-mutations.js'
@@ -0,0 +1,51 @@
1
+ import { z } from 'zod'
2
+
3
+ const common_pending_mutation = z.object({
4
+ created_at: z
5
+ .string()
6
+ .datetime()
7
+ .describe('Date and time at which the mutation was created.'),
8
+ message: z.string().describe('Detailed description of the mutation.'),
9
+ })
10
+
11
+ const creating = common_pending_mutation
12
+ .extend({
13
+ mutation_code: z
14
+ .literal('creating')
15
+ .describe(
16
+ 'Mutation code to indicate that Seam is in the process of pushing a credential creation to the integrated access system.',
17
+ ),
18
+ })
19
+ .describe(
20
+ 'Seam is in the process of pushing a credential creation to the integrated access system.',
21
+ )
22
+
23
+ const deleting = common_pending_mutation
24
+ .extend({
25
+ mutation_code: z
26
+ .literal('deleting')
27
+ .describe(
28
+ 'Mutation code to indicate that Seam is in the process of pushing a credential deletion to the integrated access system.',
29
+ ),
30
+ })
31
+ .describe(
32
+ 'Seam is in the process of pushing a credential deletion to the integrated access system.',
33
+ )
34
+
35
+ export const acs_credential_pending_mutations = z.discriminatedUnion(
36
+ 'mutation_code',
37
+ [creating, deleting],
38
+ )
39
+
40
+ export type AcsCredentialPendingMutation = z.infer<
41
+ typeof acs_credential_pending_mutations
42
+ >
43
+
44
+ const _acs_credential_pending_mutations_map = z.object({
45
+ creating: creating.optional().nullable(),
46
+ deleting: deleting.optional().nullable(),
47
+ })
48
+
49
+ export type AcsCredentialPendingMutationsMap = z.infer<
50
+ typeof _acs_credential_pending_mutations_map
51
+ >
@@ -2,6 +2,7 @@ export * from './acs-access-group.js'
2
2
  export * from './acs-credential.js'
3
3
  export * from './acs-credential-pool.js'
4
4
  export * from './acs-credential-provisioning-automation.js'
5
+ export * from './acs-credentials/index.js'
5
6
  export * from './acs-encoder.js'
6
7
  export * from './acs-entrance.js'
7
8
  export * from './acs-system.js'
@@ -53288,6 +53288,16 @@ export default {
53288
53288
  type: 'string',
53289
53289
  },
53290
53290
  },
53291
+ {
53292
+ in: 'query',
53293
+ name: 'search',
53294
+ schema: {
53295
+ description:
53296
+ 'String for which to search. Filters returned reservations to include all records that satisfy a partial match using `reservation_id`, `reservation_key`, `name`, `guest_name`, or space names.',
53297
+ minLength: 1,
53298
+ type: 'string',
53299
+ },
53300
+ },
53291
53301
  {
53292
53302
  in: 'query',
53293
53303
  name: 'page_cursor',
@@ -53409,6 +53419,12 @@ export default {
53409
53419
  nullable: true,
53410
53420
  type: 'string',
53411
53421
  },
53422
+ search: {
53423
+ description:
53424
+ 'String for which to search. Filters returned reservations to include all records that satisfy a partial match using `reservation_id`, `reservation_key`, `name`, `guest_name`, or space names.',
53425
+ minLength: 1,
53426
+ type: 'string',
53427
+ },
53412
53428
  space_id: {
53413
53429
  description: 'Filter reservations by space ID (UUID).',
53414
53430
  format: 'uuid',
@@ -70361,6 +70361,8 @@ export type Routes = {
70361
70361
  limit?: number
70362
70362
  /** Timestamp by which to limit returned reservations. Returns reservations created before this timestamp. */
70363
70363
  created_before?: Date | undefined
70364
+ /** String for which to search. Filters returned reservations to include all records that satisfy a partial match using `reservation_id`, `reservation_key`, `name`, `guest_name`, or space names. */
70365
+ search?: string | undefined
70364
70366
  /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */
70365
70367
  page_cursor?: ((string | undefined) | null) | undefined
70366
70368
  }