@seamapi/types 1.778.0 → 1.779.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.
@@ -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.779.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({
@@ -50691,6 +50691,12 @@ export default {
50691
50691
  'Your display name for this location resource.',
50692
50692
  type: 'string',
50693
50693
  },
50694
+ parent_site_key: {
50695
+ description:
50696
+ 'Your unique identifier for the site.',
50697
+ minLength: 1,
50698
+ type: 'string',
50699
+ },
50694
50700
  space_key: {
50695
50701
  description:
50696
50702
  'Your unique identifier for the space.',
@@ -51928,6 +51934,11 @@ export default {
51928
51934
  'Your display name for this location resource.',
51929
51935
  type: 'string',
51930
51936
  },
51937
+ parent_site_key: {
51938
+ description: 'Your unique identifier for the site.',
51939
+ minLength: 1,
51940
+ type: 'string',
51941
+ },
51931
51942
  space_key: {
51932
51943
  description: 'Your unique identifier for the space.',
51933
51944
  minLength: 1,
@@ -76832,6 +76843,11 @@ export default {
76832
76843
  'Your display name for this location resource.',
76833
76844
  type: 'string',
76834
76845
  },
76846
+ parent_site_key: {
76847
+ description: 'Your unique identifier for the site.',
76848
+ minLength: 1,
76849
+ type: 'string',
76850
+ },
76835
76851
  space_key: {
76836
76852
  description: 'Your unique identifier for the space.',
76837
76853
  minLength: 1,
@@ -76913,6 +76929,11 @@ export default {
76913
76929
  'Your display name for this location resource.',
76914
76930
  type: 'string',
76915
76931
  },
76932
+ parent_site_key: {
76933
+ description: 'Your unique identifier for the site.',
76934
+ minLength: 1,
76935
+ type: 'string',
76936
+ },
76916
76937
  space_key: {
76917
76938
  description: 'Your unique identifier for the space.',
76918
76939
  minLength: 1,
@@ -77048,6 +77069,11 @@ export default {
77048
77069
  'Your display name for this location resource.',
77049
77070
  type: 'string',
77050
77071
  },
77072
+ parent_site_key: {
77073
+ description: 'Your unique identifier for the site.',
77074
+ minLength: 1,
77075
+ type: 'string',
77076
+ },
77051
77077
  space_key: {
77052
77078
  description: 'Your unique identifier for the space.',
77053
77079
  minLength: 1,
@@ -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
  }