@seamapi/types 1.778.0 → 1.780.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.
@@ -12840,8 +12840,8 @@ export type Routes = {
12840
12840
  location_id?: string | undefined;
12841
12841
  /** ID of the space by which you want to filter the list of Access Grants. */
12842
12842
  space_id?: string | undefined;
12843
- /** Filter Access Grants by access_grant_key. */
12844
- access_grant_key?: string | undefined;
12843
+ /** Filter Access Grants by access_grant_key. Use null to filter for Access Grants without an access_grant_key. */
12844
+ access_grant_key?: (string | null) | undefined;
12845
12845
  /** Filter Access Grants by reservation_key. */
12846
12846
  reservation_key?: string | undefined;
12847
12847
  };
@@ -30857,6 +30857,8 @@ export type Routes = {
30857
30857
  name: string;
30858
30858
  /** Your unique identifier for the space. */
30859
30859
  space_key: string;
30860
+ /** Your unique identifier for the site. */
30861
+ parent_site_key?: string | undefined;
30860
30862
  }[] | undefined;
30861
30863
  /** List of general sites or areas. */
30862
30864
  sites?: {
@@ -31225,6 +31227,8 @@ export type Routes = {
31225
31227
  name: string;
31226
31228
  /** Your unique identifier for the space. */
31227
31229
  space_key: string;
31230
+ /** Your unique identifier for the site. */
31231
+ parent_site_key?: string | undefined;
31228
31232
  }[] | undefined;
31229
31233
  /** List of general sites or areas. */
31230
31234
  sites?: {
@@ -86416,6 +86420,8 @@ export type Routes = {
86416
86420
  name: string;
86417
86421
  /** Your unique identifier for the space. */
86418
86422
  space_key: string;
86423
+ /** Your unique identifier for the site. */
86424
+ parent_site_key?: string | undefined;
86419
86425
  }[] | undefined;
86420
86426
  };
86421
86427
  formData: {};
@@ -86485,6 +86491,8 @@ export type Routes = {
86485
86491
  name: string;
86486
86492
  /** Your unique identifier for the space. */
86487
86493
  space_key: string;
86494
+ /** Your unique identifier for the site. */
86495
+ parent_site_key?: string | undefined;
86488
86496
  }[] | undefined;
86489
86497
  };
86490
86498
  formData: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.778.0",
3
+ "version": "1.780.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -26,15 +26,7 @@ import {
26
26
  user_resource,
27
27
  } from './user-identity-resources.js'
28
28
 
29
- export const customer_data = z.object({
30
- customer_key: z
31
- .string()
32
- .min(1)
33
- .refine((val) => val === val.trim(), {
34
- message: 'Must not have leading or trailing whitespace',
35
- })
36
- .describe('Your unique identifier for the customer.'),
37
-
29
+ export const external_resources = z.object({
38
30
  // Location resources
39
31
  spaces: z
40
32
  .array(neutral_resource)
@@ -106,6 +98,20 @@ export const customer_data = z.object({
106
98
  .describe('List of access grants.'),
107
99
  })
108
100
 
101
+ export type ExternalResources = z.infer<typeof external_resources>
102
+
103
+ export const customer_data = z
104
+ .object({
105
+ customer_key: z
106
+ .string()
107
+ .min(1)
108
+ .refine((val) => val === val.trim(), {
109
+ message: 'Must not have leading or trailing whitespace',
110
+ })
111
+ .describe('Your unique identifier for the customer.'),
112
+ })
113
+ .merge(external_resources)
114
+
109
115
  export type CustomerData = z.infer<typeof customer_data>
110
116
 
111
117
  // Re-export all resource types for convenience
@@ -16,6 +16,14 @@ export const neutral_resource = base_location_resource.extend({
16
16
  message: 'Must not have leading or trailing whitespace',
17
17
  })
18
18
  .describe('Your unique identifier for the space.'),
19
+ parent_site_key: z
20
+ .string()
21
+ .min(1)
22
+ .refine((val) => val === val.trim(), {
23
+ message: 'Must not have leading or trailing whitespace',
24
+ })
25
+ .describe('Your unique identifier for the site.')
26
+ .optional(),
19
27
  })
20
28
 
21
29
  export const property_resource = base_location_resource.extend({
@@ -34920,7 +34920,9 @@ export default {
34920
34920
  in: 'query',
34921
34921
  name: 'access_grant_key',
34922
34922
  schema: {
34923
- description: 'Filter Access Grants by access_grant_key.',
34923
+ description:
34924
+ 'Filter Access Grants by access_grant_key. Use null to filter for Access Grants without an access_grant_key.',
34925
+ nullable: true,
34924
34926
  type: 'string',
34925
34927
  },
34926
34928
  },
@@ -34985,7 +34987,9 @@ export default {
34985
34987
  type: 'array',
34986
34988
  },
34987
34989
  access_grant_key: {
34988
- description: 'Filter Access Grants by access_grant_key.',
34990
+ description:
34991
+ 'Filter Access Grants by access_grant_key. Use null to filter for Access Grants without an access_grant_key.',
34992
+ nullable: true,
34989
34993
  type: 'string',
34990
34994
  },
34991
34995
  acs_entrance_id: {
@@ -50691,6 +50695,12 @@ export default {
50691
50695
  'Your display name for this location resource.',
50692
50696
  type: 'string',
50693
50697
  },
50698
+ parent_site_key: {
50699
+ description:
50700
+ 'Your unique identifier for the site.',
50701
+ minLength: 1,
50702
+ type: 'string',
50703
+ },
50694
50704
  space_key: {
50695
50705
  description:
50696
50706
  'Your unique identifier for the space.',
@@ -51928,6 +51938,11 @@ export default {
51928
51938
  'Your display name for this location resource.',
51929
51939
  type: 'string',
51930
51940
  },
51941
+ parent_site_key: {
51942
+ description: 'Your unique identifier for the site.',
51943
+ minLength: 1,
51944
+ type: 'string',
51945
+ },
51931
51946
  space_key: {
51932
51947
  description: 'Your unique identifier for the space.',
51933
51948
  minLength: 1,
@@ -76832,6 +76847,11 @@ export default {
76832
76847
  'Your display name for this location resource.',
76833
76848
  type: 'string',
76834
76849
  },
76850
+ parent_site_key: {
76851
+ description: 'Your unique identifier for the site.',
76852
+ minLength: 1,
76853
+ type: 'string',
76854
+ },
76835
76855
  space_key: {
76836
76856
  description: 'Your unique identifier for the space.',
76837
76857
  minLength: 1,
@@ -76913,6 +76933,11 @@ export default {
76913
76933
  'Your display name for this location resource.',
76914
76934
  type: 'string',
76915
76935
  },
76936
+ parent_site_key: {
76937
+ description: 'Your unique identifier for the site.',
76938
+ minLength: 1,
76939
+ type: 'string',
76940
+ },
76916
76941
  space_key: {
76917
76942
  description: 'Your unique identifier for the space.',
76918
76943
  minLength: 1,
@@ -77048,6 +77073,11 @@ export default {
77048
77073
  'Your display name for this location resource.',
77049
77074
  type: 'string',
77050
77075
  },
77076
+ parent_site_key: {
77077
+ description: 'Your unique identifier for the site.',
77078
+ minLength: 1,
77079
+ type: 'string',
77080
+ },
77051
77081
  space_key: {
77052
77082
  description: 'Your unique identifier for the space.',
77053
77083
  minLength: 1,
@@ -14783,8 +14783,8 @@ export type Routes = {
14783
14783
  location_id?: string | undefined
14784
14784
  /** ID of the space by which you want to filter the list of Access Grants. */
14785
14785
  space_id?: string | undefined
14786
- /** Filter Access Grants by access_grant_key. */
14787
- access_grant_key?: string | undefined
14786
+ /** Filter Access Grants by access_grant_key. Use null to filter for Access Grants without an access_grant_key. */
14787
+ access_grant_key?: (string | null) | undefined
14788
14788
  /** Filter Access Grants by reservation_key. */
14789
14789
  reservation_key?: string | undefined
14790
14790
  }
@@ -35762,6 +35762,8 @@ export type Routes = {
35762
35762
  name: string
35763
35763
  /** Your unique identifier for the space. */
35764
35764
  space_key: string
35765
+ /** Your unique identifier for the site. */
35766
+ parent_site_key?: string | undefined
35765
35767
  }[]
35766
35768
  | undefined
35767
35769
  /** List of general sites or areas. */
@@ -36173,6 +36175,8 @@ export type Routes = {
36173
36175
  name: string
36174
36176
  /** Your unique identifier for the space. */
36175
36177
  space_key: string
36178
+ /** Your unique identifier for the site. */
36179
+ parent_site_key?: string | undefined
36176
36180
  }[]
36177
36181
  | undefined
36178
36182
  /** List of general sites or areas. */
@@ -102577,6 +102581,8 @@ export type Routes = {
102577
102581
  name: string
102578
102582
  /** Your unique identifier for the space. */
102579
102583
  space_key: string
102584
+ /** Your unique identifier for the site. */
102585
+ parent_site_key?: string | undefined
102580
102586
  }[]
102581
102587
  | undefined
102582
102588
  }
@@ -102648,6 +102654,8 @@ export type Routes = {
102648
102654
  name: string
102649
102655
  /** Your unique identifier for the space. */
102650
102656
  space_key: string
102657
+ /** Your unique identifier for the site. */
102658
+ parent_site_key?: string | undefined
102651
102659
  }[]
102652
102660
  | undefined
102653
102661
  }