@seamapi/types 1.617.0 → 1.619.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 +327 -6
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +387 -0
- package/dist/index.cjs +327 -6
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/customer/access-grant-resources.d.ts +6 -6
- package/lib/seam/connect/models/customer/access-grant-resources.js +15 -1
- package/lib/seam/connect/models/customer/access-grant-resources.js.map +1 -1
- package/lib/seam/connect/models/customer/customer-data.d.ts +22 -22
- package/lib/seam/connect/models/customer/customer-data.js +7 -1
- package/lib/seam/connect/models/customer/customer-data.js.map +1 -1
- package/lib/seam/connect/models/customer/location-resources.d.ts +26 -26
- package/lib/seam/connect/models/customer/location-resources.js +76 -8
- package/lib/seam/connect/models/customer/location-resources.js.map +1 -1
- package/lib/seam/connect/models/customer/user-identity-resources.d.ts +10 -10
- package/lib/seam/connect/models/customer/user-identity-resources.js +32 -4
- package/lib/seam/connect/models/customer/user-identity-resources.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +342 -0
- package/lib/seam/connect/openapi.js +312 -1
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +45 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/customer/access-grant-resources.ts +15 -1
- package/src/lib/seam/connect/models/customer/customer-data.ts +7 -1
- package/src/lib/seam/connect/models/customer/location-resources.ts +76 -8
- package/src/lib/seam/connect/models/customer/user-identity-resources.ts +32 -4
- package/src/lib/seam/connect/openapi.ts +312 -1
- package/src/lib/seam/connect/route-types.ts +67 -0
|
@@ -4,7 +4,7 @@ export declare const guest_resource: z.ZodObject<{
|
|
|
4
4
|
email_address: z.ZodOptional<z.ZodString>;
|
|
5
5
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
6
6
|
} & {
|
|
7
|
-
guest_key: z.ZodString
|
|
7
|
+
guest_key: z.ZodEffects<z.ZodString, string, string>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
name: string;
|
|
10
10
|
guest_key: string;
|
|
@@ -21,7 +21,7 @@ export declare const tenant_resource: z.ZodObject<{
|
|
|
21
21
|
email_address: z.ZodOptional<z.ZodString>;
|
|
22
22
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
23
23
|
} & {
|
|
24
|
-
tenant_key: z.ZodString
|
|
24
|
+
tenant_key: z.ZodEffects<z.ZodString, string, string>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
name: string;
|
|
27
27
|
tenant_key: string;
|
|
@@ -38,7 +38,7 @@ export declare const resident_resource: z.ZodObject<{
|
|
|
38
38
|
email_address: z.ZodOptional<z.ZodString>;
|
|
39
39
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
40
40
|
} & {
|
|
41
|
-
resident_key: z.ZodString
|
|
41
|
+
resident_key: z.ZodEffects<z.ZodString, string, string>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
43
|
name: string;
|
|
44
44
|
resident_key: string;
|
|
@@ -55,7 +55,7 @@ export declare const user_resource: z.ZodObject<{
|
|
|
55
55
|
email_address: z.ZodOptional<z.ZodString>;
|
|
56
56
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
57
57
|
} & {
|
|
58
|
-
user_key: z.ZodString
|
|
58
|
+
user_key: z.ZodEffects<z.ZodString, string, string>;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
60
|
name: string;
|
|
61
61
|
user_key: string;
|
|
@@ -92,7 +92,7 @@ export declare const user_identity_resource: z.ZodObject<{
|
|
|
92
92
|
email_address: z.ZodOptional<z.ZodString>;
|
|
93
93
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
94
94
|
} & {
|
|
95
|
-
user_identity_key: z.ZodString
|
|
95
|
+
user_identity_key: z.ZodEffects<z.ZodString, string, string>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
97
|
name: string;
|
|
98
98
|
user_identity_key: string;
|
|
@@ -109,7 +109,7 @@ export declare const user_identity_resource_union: z.ZodUnion<[z.ZodObject<{
|
|
|
109
109
|
email_address: z.ZodOptional<z.ZodString>;
|
|
110
110
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
111
111
|
} & {
|
|
112
|
-
guest_key: z.ZodString
|
|
112
|
+
guest_key: z.ZodEffects<z.ZodString, string, string>;
|
|
113
113
|
}, "strip", z.ZodTypeAny, {
|
|
114
114
|
name: string;
|
|
115
115
|
guest_key: string;
|
|
@@ -125,7 +125,7 @@ export declare const user_identity_resource_union: z.ZodUnion<[z.ZodObject<{
|
|
|
125
125
|
email_address: z.ZodOptional<z.ZodString>;
|
|
126
126
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
127
127
|
} & {
|
|
128
|
-
tenant_key: z.ZodString
|
|
128
|
+
tenant_key: z.ZodEffects<z.ZodString, string, string>;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
130
|
name: string;
|
|
131
131
|
tenant_key: string;
|
|
@@ -141,7 +141,7 @@ export declare const user_identity_resource_union: z.ZodUnion<[z.ZodObject<{
|
|
|
141
141
|
email_address: z.ZodOptional<z.ZodString>;
|
|
142
142
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
143
143
|
} & {
|
|
144
|
-
resident_key: z.ZodString
|
|
144
|
+
resident_key: z.ZodEffects<z.ZodString, string, string>;
|
|
145
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
146
|
name: string;
|
|
147
147
|
resident_key: string;
|
|
@@ -157,7 +157,7 @@ export declare const user_identity_resource_union: z.ZodUnion<[z.ZodObject<{
|
|
|
157
157
|
email_address: z.ZodOptional<z.ZodString>;
|
|
158
158
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
159
159
|
} & {
|
|
160
|
-
user_key: z.ZodString
|
|
160
|
+
user_key: z.ZodEffects<z.ZodString, string, string>;
|
|
161
161
|
}, "strip", z.ZodTypeAny, {
|
|
162
162
|
name: string;
|
|
163
163
|
user_key: string;
|
|
@@ -173,7 +173,7 @@ export declare const user_identity_resource_union: z.ZodUnion<[z.ZodObject<{
|
|
|
173
173
|
email_address: z.ZodOptional<z.ZodString>;
|
|
174
174
|
phone_number: z.ZodOptional<z.ZodString>;
|
|
175
175
|
} & {
|
|
176
|
-
user_identity_key: z.ZodString
|
|
176
|
+
user_identity_key: z.ZodEffects<z.ZodString, string, string>;
|
|
177
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
178
|
name: string;
|
|
179
179
|
user_identity_key: string;
|
|
@@ -15,16 +15,40 @@ const base_user_identity_resource = z.object({
|
|
|
15
15
|
});
|
|
16
16
|
// User identity resource types with their key aliases
|
|
17
17
|
export const guest_resource = base_user_identity_resource.extend({
|
|
18
|
-
guest_key: z
|
|
18
|
+
guest_key: z
|
|
19
|
+
.string()
|
|
20
|
+
.min(1)
|
|
21
|
+
.refine((val) => val === val.trim(), {
|
|
22
|
+
message: 'Must not have leading or trailing whitespace',
|
|
23
|
+
})
|
|
24
|
+
.describe('Your unique identifier for the guest.'),
|
|
19
25
|
});
|
|
20
26
|
export const tenant_resource = base_user_identity_resource.extend({
|
|
21
|
-
tenant_key: z
|
|
27
|
+
tenant_key: z
|
|
28
|
+
.string()
|
|
29
|
+
.min(1)
|
|
30
|
+
.refine((val) => val === val.trim(), {
|
|
31
|
+
message: 'Must not have leading or trailing whitespace',
|
|
32
|
+
})
|
|
33
|
+
.describe('Your unique identifier for the tenant.'),
|
|
22
34
|
});
|
|
23
35
|
export const resident_resource = base_user_identity_resource.extend({
|
|
24
|
-
resident_key: z
|
|
36
|
+
resident_key: z
|
|
37
|
+
.string()
|
|
38
|
+
.min(1)
|
|
39
|
+
.refine((val) => val === val.trim(), {
|
|
40
|
+
message: 'Must not have leading or trailing whitespace',
|
|
41
|
+
})
|
|
42
|
+
.describe('Your unique identifier for the resident.'),
|
|
25
43
|
});
|
|
26
44
|
export const user_resource = base_user_identity_resource.extend({
|
|
27
|
-
user_key: z
|
|
45
|
+
user_key: z
|
|
46
|
+
.string()
|
|
47
|
+
.min(1)
|
|
48
|
+
.refine((val) => val === val.trim(), {
|
|
49
|
+
message: 'Must not have leading or trailing whitespace',
|
|
50
|
+
})
|
|
51
|
+
.describe('Your unique identifier for the user.'),
|
|
28
52
|
});
|
|
29
53
|
// staff resource
|
|
30
54
|
export const staff_member_resource = base_user_identity_resource.extend({
|
|
@@ -43,6 +67,10 @@ export const staff_member_resource = base_user_identity_resource.extend({
|
|
|
43
67
|
export const user_identity_resource = base_user_identity_resource.extend({
|
|
44
68
|
user_identity_key: z
|
|
45
69
|
.string()
|
|
70
|
+
.min(1)
|
|
71
|
+
.refine((val) => val === val.trim(), {
|
|
72
|
+
message: 'Must not have leading or trailing whitespace',
|
|
73
|
+
})
|
|
46
74
|
.describe('Your unique identifier for the user identity.'),
|
|
47
75
|
});
|
|
48
76
|
// Union of all user identity resource types
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-identity-resources.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/customer/user-identity-resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,iDAAiD;AACjD,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CAAC,oDAAoD,CAAC;IACjE,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;IAC/D,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,iDAAiD,CAAC;CAC/D,CAAC,CAAA;AAEF,sDAAsD;AACtD,MAAM,CAAC,MAAM,cAAc,GAAG,2BAA2B,CAAC,MAAM,CAAC;IAC/D,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"user-identity-resources.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/customer/user-identity-resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,iDAAiD;AACjD,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CAAC,oDAAoD,CAAC;IACjE,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;IAC/D,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,iDAAiD,CAAC;CAC/D,CAAC,CAAA;AAEF,sDAAsD;AACtD,MAAM,CAAC,MAAM,cAAc,GAAG,2BAA2B,CAAC,MAAM,CAAC;IAC/D,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,GAAG,CAAC,IAAI,EAAE,EAAE;QACnC,OAAO,EAAE,8CAA8C;KACxD,CAAC;SACD,QAAQ,CAAC,uCAAuC,CAAC;CACrD,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,2BAA2B,CAAC,MAAM,CAAC;IAChE,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,GAAG,CAAC,IAAI,EAAE,EAAE;QACnC,OAAO,EAAE,8CAA8C;KACxD,CAAC;SACD,QAAQ,CAAC,wCAAwC,CAAC;CACtD,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,2BAA2B,CAAC,MAAM,CAAC;IAClE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