@seamapi/types 1.185.0 → 1.187.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 +365 -30
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +726 -86
- package/lib/seam/connect/model-types.d.ts +1 -1
- package/lib/seam/connect/models/acs/acs-credential.d.ts +0 -17
- package/lib/seam/connect/models/acs/acs-credential.js +1 -6
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +36 -53
- package/lib/seam/connect/models/acs/acs-entrance.js +5 -31
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-system.d.ts +87 -24
- package/lib/seam/connect/models/acs/acs-system.js +33 -18
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- 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/acs/metadata/index.d.ts +2 -0
- package/lib/seam/connect/models/acs/metadata/index.js +3 -0
- package/lib/seam/connect/models/acs/metadata/index.js.map +1 -0
- package/lib/seam/connect/models/acs/metadata/latch.d.ts +18 -0
- package/lib/seam/connect/models/acs/metadata/latch.js +8 -0
- package/lib/seam/connect/models/acs/metadata/latch.js.map +1 -0
- package/lib/seam/connect/models/acs/metadata/visionline.d.ts +47 -0
- package/lib/seam/connect/models/acs/metadata/visionline.js +24 -0
- package/lib/seam/connect/models/acs/metadata/visionline.js.map +1 -0
- package/lib/seam/connect/models/devices/managed-device.d.ts +12 -0
- package/lib/seam/connect/models/devices/managed-device.js +2 -0
- package/lib/seam/connect/models/devices/managed-device.js.map +1 -1
- package/lib/seam/connect/models/devices/phone.d.ts +6 -0
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +6 -0
- package/lib/seam/connect/openapi.d.ts +160 -20
- package/lib/seam/connect/openapi.js +137 -21
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +122 -64
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/model-types.ts +5 -0
- package/src/lib/seam/connect/models/acs/acs-credential.ts +2 -11
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +8 -37
- package/src/lib/seam/connect/models/acs/acs-system.ts +45 -23
- package/src/lib/seam/connect/models/acs/index.ts +1 -0
- package/src/lib/seam/connect/models/acs/metadata/index.ts +2 -0
- package/src/lib/seam/connect/models/acs/metadata/latch.ts +12 -0
- package/src/lib/seam/connect/models/acs/metadata/visionline.ts +35 -0
- package/src/lib/seam/connect/models/devices/managed-device.ts +2 -0
- package/src/lib/seam/connect/openapi.ts +137 -21
- package/src/lib/seam/connect/route-types.ts +226 -124
- package/src/lib/seam/connect/schemas.ts +5 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { ActionAttempt, ClientSession, ConnectedAccount, ConnectWebview, CustomMetadata, SeamEvent, SeamEventType, UserIdentity, Webhook, Workspace, } from './models/index.js';
|
|
1
|
+
export type { AcsAccessGroup, AcsCredential, AcsEntrance, AcsSystem, AcsUser, ActionAttempt, ClientSession, ConnectedAccount, ConnectWebview, CustomMetadata, SeamEvent, SeamEventType, UserIdentity, Webhook, Workspace, } from './models/index.js';
|
|
@@ -2,23 +2,6 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const acs_credential_external_type: z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card"]>;
|
|
3
3
|
export declare const acs_credential_access_method_type: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
4
4
|
export type AcsCredentialExternalType = z.infer<typeof acs_credential_external_type>;
|
|
5
|
-
export declare const acs_credential_visionline_metadata: z.ZodObject<{
|
|
6
|
-
card_function_type: z.ZodEnum<["guest", "staff"]>;
|
|
7
|
-
joiner_acs_credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8
|
-
guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9
|
-
common_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
card_function_type: "guest" | "staff";
|
|
12
|
-
joiner_acs_credential_ids?: string[] | undefined;
|
|
13
|
-
guest_acs_entrance_ids?: string[] | undefined;
|
|
14
|
-
common_acs_entrance_ids?: string[] | undefined;
|
|
15
|
-
}, {
|
|
16
|
-
card_function_type: "guest" | "staff";
|
|
17
|
-
joiner_acs_credential_ids?: string[] | undefined;
|
|
18
|
-
guest_acs_entrance_ids?: string[] | undefined;
|
|
19
|
-
common_acs_entrance_ids?: string[] | undefined;
|
|
20
|
-
}>;
|
|
21
|
-
export type AcsCredentialVisionlineMetadata = z.infer<typeof acs_credential_visionline_metadata>;
|
|
22
5
|
export declare const acs_credential: z.ZodObject<{
|
|
23
6
|
acs_credential_id: z.ZodString;
|
|
24
7
|
acs_user_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { acs_credential_visionline_metadata } from './metadata/index.js';
|
|
2
3
|
// If changed, update seam.acs_credential.external_type generated column
|
|
3
4
|
export const acs_credential_external_type = z.enum([
|
|
4
5
|
'pti_card',
|
|
@@ -11,12 +12,6 @@ export const acs_credential_access_method_type = z.enum([
|
|
|
11
12
|
'card',
|
|
12
13
|
'mobile_key',
|
|
13
14
|
]);
|
|
14
|
-
export const acs_credential_visionline_metadata = z.object({
|
|
15
|
-
card_function_type: z.enum(['guest', 'staff']),
|
|
16
|
-
joiner_acs_credential_ids: z.array(z.string().uuid()).optional(),
|
|
17
|
-
guest_acs_entrance_ids: z.array(z.string().uuid()).optional(),
|
|
18
|
-
common_acs_entrance_ids: z.array(z.string().uuid()).optional(),
|
|
19
|
-
});
|
|
20
15
|
export const acs_credential = z.object({
|
|
21
16
|
acs_credential_id: z.string().uuid(),
|
|
22
17
|
acs_user_id: z.string().uuid().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acs-credential.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,wEAAwE;AACxE,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC;IACjD,UAAU;IACV,kBAAkB;IAClB,gBAAgB;IAChB,iBAAiB;CAClB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,IAAI,CAAC;IACtD,MAAM;IACN,MAAM;IACN,YAAY;CACb,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"acs-credential.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,kCAAkC,EAAE,MAAM,qBAAqB,CAAA;AAExE,wEAAwE;AACxE,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC;IACjD,UAAU;IACV,kBAAkB;IAClB,gBAAgB;IAChB,iBAAiB;CAClB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,IAAI,CAAC;IACtD,MAAM;IACN,MAAM;IACN,YAAY;CACb,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACpC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACzC,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACpD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACtD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACtC,aAAa,EAAE,iCAAiC;IAChD,aAAa,EAAE,4BAA4B,CAAC,QAAQ,EAAE;IACtD,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,MAAM,EAAE,CAAC,CAAC,KAAK,CACb,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;IACD,QAAQ,EAAE,CAAC,CAAC,KAAK,CACf,CAAC,CAAC,MAAM,CAAC;QACP,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;QACxB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;IACD,8BAA8B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACtD,4CAA4C,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACpE,4CAA4C,EAAE,CAAC;SAC5C,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,EAAE;IACb,mBAAmB,EAAE,kCAAkC,CAAC,QAAQ,EAAE;CACnE,CAAC,CAAA"}
|
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const acs_entrance_latch_metadata: z.ZodObject<{
|
|
3
|
-
accessibility_type: z.ZodString;
|
|
4
|
-
door_name: z.ZodString;
|
|
5
|
-
door_type: z.ZodString;
|
|
6
|
-
is_connected: z.ZodBoolean;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
accessibility_type: string;
|
|
9
|
-
door_name: string;
|
|
10
|
-
door_type: string;
|
|
11
|
-
is_connected: boolean;
|
|
12
|
-
}, {
|
|
13
|
-
accessibility_type: string;
|
|
14
|
-
door_name: string;
|
|
15
|
-
door_type: string;
|
|
16
|
-
is_connected: boolean;
|
|
17
|
-
}>;
|
|
18
2
|
export declare const acs_entrance: z.ZodObject<{
|
|
19
|
-
acs_entrance_id: z.ZodString;
|
|
20
|
-
display_name: z.ZodString;
|
|
21
3
|
acs_system_id: z.ZodString;
|
|
4
|
+
acs_entrance_id: z.ZodString;
|
|
22
5
|
created_at: z.ZodString;
|
|
23
|
-
|
|
6
|
+
display_name: z.ZodString;
|
|
7
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
8
|
+
error_code: z.ZodString;
|
|
9
|
+
message: z.ZodString;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
message: string;
|
|
12
|
+
error_code: string;
|
|
13
|
+
}, {
|
|
14
|
+
message: string;
|
|
15
|
+
error_code: string;
|
|
16
|
+
}>, "many">;
|
|
17
|
+
latch_metadata: z.ZodOptional<z.ZodObject<{
|
|
24
18
|
accessibility_type: z.ZodString;
|
|
25
19
|
door_name: z.ZodString;
|
|
26
20
|
door_type: z.ZodString;
|
|
@@ -36,17 +30,7 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
36
30
|
door_type: string;
|
|
37
31
|
is_connected: boolean;
|
|
38
32
|
}>>;
|
|
39
|
-
|
|
40
|
-
error_code: z.ZodString;
|
|
41
|
-
message: z.ZodString;
|
|
42
|
-
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
message: string;
|
|
44
|
-
error_code: string;
|
|
45
|
-
}, {
|
|
46
|
-
message: string;
|
|
47
|
-
error_code: string;
|
|
48
|
-
}>, "many">;
|
|
49
|
-
visionline_metadata: z.ZodNullable<z.ZodObject<{
|
|
33
|
+
visionline_metadata: z.ZodOptional<z.ZodObject<{
|
|
50
34
|
door_name: z.ZodString;
|
|
51
35
|
door_category: z.ZodEnum<["entrance", "guest", "elevator reader", "common", "common (PMS)"]>;
|
|
52
36
|
profiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -61,14 +45,14 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
61
45
|
}>, "many">>;
|
|
62
46
|
}, "strip", z.ZodTypeAny, {
|
|
63
47
|
door_name: string;
|
|
64
|
-
door_category: "
|
|
48
|
+
door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
|
|
65
49
|
profiles?: {
|
|
66
50
|
visionline_door_profile_id: string;
|
|
67
51
|
visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
|
|
68
52
|
}[] | undefined;
|
|
69
53
|
}, {
|
|
70
54
|
door_name: string;
|
|
71
|
-
door_category: "
|
|
55
|
+
door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
|
|
72
56
|
profiles?: {
|
|
73
57
|
visionline_door_profile_id: string;
|
|
74
58
|
visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
|
|
@@ -82,21 +66,21 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
82
66
|
}[];
|
|
83
67
|
acs_system_id: string;
|
|
84
68
|
display_name: string;
|
|
85
|
-
visionline_metadata: {
|
|
86
|
-
door_name: string;
|
|
87
|
-
door_category: "guest" | "entrance" | "elevator reader" | "common" | "common (PMS)";
|
|
88
|
-
profiles?: {
|
|
89
|
-
visionline_door_profile_id: string;
|
|
90
|
-
visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
|
|
91
|
-
}[] | undefined;
|
|
92
|
-
} | null;
|
|
93
69
|
acs_entrance_id: string;
|
|
94
|
-
latch_metadata
|
|
70
|
+
latch_metadata?: {
|
|
95
71
|
accessibility_type: string;
|
|
96
72
|
door_name: string;
|
|
97
73
|
door_type: string;
|
|
98
74
|
is_connected: boolean;
|
|
99
|
-
} |
|
|
75
|
+
} | undefined;
|
|
76
|
+
visionline_metadata?: {
|
|
77
|
+
door_name: string;
|
|
78
|
+
door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
|
|
79
|
+
profiles?: {
|
|
80
|
+
visionline_door_profile_id: string;
|
|
81
|
+
visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
|
|
82
|
+
}[] | undefined;
|
|
83
|
+
} | undefined;
|
|
100
84
|
}, {
|
|
101
85
|
created_at: string;
|
|
102
86
|
errors: {
|
|
@@ -105,21 +89,20 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
105
89
|
}[];
|
|
106
90
|
acs_system_id: string;
|
|
107
91
|
display_name: string;
|
|
108
|
-
visionline_metadata: {
|
|
109
|
-
door_name: string;
|
|
110
|
-
door_category: "guest" | "entrance" | "elevator reader" | "common" | "common (PMS)";
|
|
111
|
-
profiles?: {
|
|
112
|
-
visionline_door_profile_id: string;
|
|
113
|
-
visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
|
|
114
|
-
}[] | undefined;
|
|
115
|
-
} | null;
|
|
116
92
|
acs_entrance_id: string;
|
|
117
|
-
latch_metadata
|
|
93
|
+
latch_metadata?: {
|
|
118
94
|
accessibility_type: string;
|
|
119
95
|
door_name: string;
|
|
120
96
|
door_type: string;
|
|
121
97
|
is_connected: boolean;
|
|
122
|
-
} |
|
|
98
|
+
} | undefined;
|
|
99
|
+
visionline_metadata?: {
|
|
100
|
+
door_name: string;
|
|
101
|
+
door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
|
|
102
|
+
profiles?: {
|
|
103
|
+
visionline_door_profile_id: string;
|
|
104
|
+
visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
|
|
105
|
+
}[] | undefined;
|
|
106
|
+
} | undefined;
|
|
123
107
|
}>;
|
|
124
|
-
export type AcsEntranceLatchMetadata = z.infer<typeof acs_entrance_latch_metadata>;
|
|
125
108
|
export type AcsEntrance = z.infer<typeof acs_entrance>;
|
|
@@ -1,41 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
accessibility_type: z.string(),
|
|
4
|
-
door_name: z.string(),
|
|
5
|
-
door_type: z.string(),
|
|
6
|
-
is_connected: z.boolean(),
|
|
7
|
-
});
|
|
2
|
+
import { acs_entrance_latch_metadata, acs_entrance_visionline_metadata, } from './metadata/index.js';
|
|
8
3
|
export const acs_entrance = z.object({
|
|
9
|
-
acs_entrance_id: z.string().uuid(),
|
|
10
|
-
display_name: z.string(),
|
|
11
4
|
acs_system_id: z.string().uuid(),
|
|
5
|
+
acs_entrance_id: z.string().uuid(),
|
|
12
6
|
created_at: z.string().datetime(),
|
|
13
|
-
|
|
7
|
+
display_name: z.string(),
|
|
14
8
|
errors: z.array(z.object({
|
|
15
9
|
error_code: z.string(),
|
|
16
10
|
message: z.string(),
|
|
17
11
|
})),
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
door_name: z.string(),
|
|
21
|
-
door_category: z.enum([
|
|
22
|
-
'entrance',
|
|
23
|
-
'guest',
|
|
24
|
-
'elevator reader',
|
|
25
|
-
'common',
|
|
26
|
-
'common (PMS)',
|
|
27
|
-
]),
|
|
28
|
-
profiles: z
|
|
29
|
-
.array(z.object({
|
|
30
|
-
visionline_door_profile_id: z.string(),
|
|
31
|
-
visionline_door_profile_type: z.enum([
|
|
32
|
-
'BLE',
|
|
33
|
-
'commonDoor',
|
|
34
|
-
'touch',
|
|
35
|
-
]),
|
|
36
|
-
}))
|
|
37
|
-
.optional(),
|
|
38
|
-
})
|
|
39
|
-
.nullable(),
|
|
12
|
+
latch_metadata: acs_entrance_latch_metadata.optional(),
|
|
13
|
+
visionline_metadata: acs_entrance_visionline_metadata.optional(),
|
|
40
14
|
});
|
|
41
15
|
//# sourceMappingURL=acs-entrance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acs-entrance.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-entrance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,
|
|
1
|
+
{"version":3,"file":"acs-entrance.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-entrance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,2BAA2B,EAC3B,gCAAgC,GACjC,MAAM,qBAAqB,CAAA;AAE5B,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAClC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,MAAM,EAAE,CAAC,CAAC,KAAK,CACb,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;IACD,cAAc,EAAE,2BAA2B,CAAC,QAAQ,EAAE;IACtD,mBAAmB,EAAE,gCAAgC,CAAC,QAAQ,EAAE;CACjE,CAAC,CAAA"}
|
|
@@ -15,32 +15,90 @@ export declare const acs_system_capability_flags: z.ZodObject<{
|
|
|
15
15
|
can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
|
|
16
16
|
can_add_acs_users_to_acs_access_groups?: boolean | undefined;
|
|
17
17
|
}>;
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const acs_system_external_type: z.ZodOptional<z.ZodEnum<["pti_site", "alta_org", "salto_site", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building"]>>;
|
|
18
|
+
export declare const acs_system_external_type: z.ZodEnum<["pti_site", "alta_org", "salto_site", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building"]>;
|
|
20
19
|
export type AcsSystemExternalType = z.infer<typeof acs_system_external_type>;
|
|
20
|
+
declare const acs_system_error_map: z.ZodObject<{
|
|
21
|
+
seam_bridge_disconnected: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
22
|
+
message: z.ZodString;
|
|
23
|
+
created_at: z.ZodString;
|
|
24
|
+
error_code: z.ZodLiteral<"seam_bridge_disconnected">;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
message: string;
|
|
27
|
+
created_at: string;
|
|
28
|
+
error_code: "seam_bridge_disconnected";
|
|
29
|
+
}, {
|
|
30
|
+
message: string;
|
|
31
|
+
created_at: string;
|
|
32
|
+
error_code: "seam_bridge_disconnected";
|
|
33
|
+
}>>>;
|
|
34
|
+
visionline_instance_unreachable: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
35
|
+
message: z.ZodString;
|
|
36
|
+
created_at: z.ZodString;
|
|
37
|
+
error_code: z.ZodLiteral<"visionline_instance_unreachable">;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
message: string;
|
|
40
|
+
created_at: string;
|
|
41
|
+
error_code: "visionline_instance_unreachable";
|
|
42
|
+
}, {
|
|
43
|
+
message: string;
|
|
44
|
+
created_at: string;
|
|
45
|
+
error_code: "visionline_instance_unreachable";
|
|
46
|
+
}>>>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
seam_bridge_disconnected?: {
|
|
49
|
+
message: string;
|
|
50
|
+
created_at: string;
|
|
51
|
+
error_code: "seam_bridge_disconnected";
|
|
52
|
+
} | null | undefined;
|
|
53
|
+
visionline_instance_unreachable?: {
|
|
54
|
+
message: string;
|
|
55
|
+
created_at: string;
|
|
56
|
+
error_code: "visionline_instance_unreachable";
|
|
57
|
+
} | null | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
seam_bridge_disconnected?: {
|
|
60
|
+
message: string;
|
|
61
|
+
created_at: string;
|
|
62
|
+
error_code: "seam_bridge_disconnected";
|
|
63
|
+
} | null | undefined;
|
|
64
|
+
visionline_instance_unreachable?: {
|
|
65
|
+
message: string;
|
|
66
|
+
created_at: string;
|
|
67
|
+
error_code: "visionline_instance_unreachable";
|
|
68
|
+
} | null | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
export type AcsSystemErrorMap = z.infer<typeof acs_system_error_map>;
|
|
71
|
+
declare const acs_system_warning_map: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
72
|
+
export type AcsSystemWarningMap = z.infer<typeof acs_system_warning_map>;
|
|
21
73
|
export declare const acs_system: z.ZodObject<{
|
|
22
74
|
name: z.ZodString;
|
|
23
75
|
created_at: z.ZodString;
|
|
24
|
-
errors: z.ZodArray<z.ZodObject<{
|
|
25
|
-
error_code: z.ZodString;
|
|
76
|
+
errors: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
26
77
|
message: z.ZodString;
|
|
78
|
+
created_at: z.ZodString;
|
|
79
|
+
error_code: z.ZodLiteral<"seam_bridge_disconnected">;
|
|
27
80
|
}, "strip", z.ZodTypeAny, {
|
|
28
81
|
message: string;
|
|
29
|
-
|
|
82
|
+
created_at: string;
|
|
83
|
+
error_code: "seam_bridge_disconnected";
|
|
30
84
|
}, {
|
|
31
85
|
message: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
warning_code: z.ZodString;
|
|
86
|
+
created_at: string;
|
|
87
|
+
error_code: "seam_bridge_disconnected";
|
|
88
|
+
}>, z.ZodObject<{
|
|
36
89
|
message: z.ZodString;
|
|
90
|
+
created_at: z.ZodString;
|
|
91
|
+
error_code: z.ZodLiteral<"visionline_instance_unreachable">;
|
|
37
92
|
}, "strip", z.ZodTypeAny, {
|
|
38
93
|
message: string;
|
|
39
|
-
|
|
94
|
+
created_at: string;
|
|
95
|
+
error_code: "visionline_instance_unreachable";
|
|
40
96
|
}, {
|
|
41
97
|
message: string;
|
|
42
|
-
|
|
43
|
-
|
|
98
|
+
created_at: string;
|
|
99
|
+
error_code: "visionline_instance_unreachable";
|
|
100
|
+
}>]>, "many">;
|
|
101
|
+
warnings: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
44
102
|
acs_system_id: z.ZodString;
|
|
45
103
|
workspace_id: z.ZodString;
|
|
46
104
|
external_type: z.ZodOptional<z.ZodEnum<["pti_site", "alta_org", "salto_site", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building"]>>;
|
|
@@ -57,14 +115,16 @@ export declare const acs_system: z.ZodObject<{
|
|
|
57
115
|
}, "strip", z.ZodTypeAny, {
|
|
58
116
|
name: string;
|
|
59
117
|
created_at: string;
|
|
60
|
-
errors: {
|
|
118
|
+
errors: ({
|
|
61
119
|
message: string;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
120
|
+
created_at: string;
|
|
121
|
+
error_code: "seam_bridge_disconnected";
|
|
122
|
+
} | {
|
|
65
123
|
message: string;
|
|
66
|
-
|
|
67
|
-
|
|
124
|
+
created_at: string;
|
|
125
|
+
error_code: "visionline_instance_unreachable";
|
|
126
|
+
})[];
|
|
127
|
+
warnings: {}[];
|
|
68
128
|
acs_system_id: string;
|
|
69
129
|
workspace_id: string;
|
|
70
130
|
connected_account_ids: string[];
|
|
@@ -81,14 +141,16 @@ export declare const acs_system: z.ZodObject<{
|
|
|
81
141
|
}, {
|
|
82
142
|
name: string;
|
|
83
143
|
created_at: string;
|
|
84
|
-
errors: {
|
|
144
|
+
errors: ({
|
|
85
145
|
message: string;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
146
|
+
created_at: string;
|
|
147
|
+
error_code: "seam_bridge_disconnected";
|
|
148
|
+
} | {
|
|
89
149
|
message: string;
|
|
90
|
-
|
|
91
|
-
|
|
150
|
+
created_at: string;
|
|
151
|
+
error_code: "visionline_instance_unreachable";
|
|
152
|
+
})[];
|
|
153
|
+
warnings: {}[];
|
|
92
154
|
acs_system_id: string;
|
|
93
155
|
workspace_id: string;
|
|
94
156
|
connected_account_ids: string[];
|
|
@@ -104,3 +166,4 @@ export declare const acs_system: z.ZodObject<{
|
|
|
104
166
|
can_add_acs_users_to_acs_access_groups?: boolean | undefined;
|
|
105
167
|
}>;
|
|
106
168
|
export type AcsSystem = z.output<typeof acs_system>;
|
|
169
|
+
export {};
|
|
@@ -5,7 +5,8 @@ export const acs_system_capability_flags = z.object({
|
|
|
5
5
|
can_remove_acs_users_from_acs_access_groups: z.boolean().optional(),
|
|
6
6
|
can_add_acs_users_to_acs_access_groups: z.boolean().optional(),
|
|
7
7
|
});
|
|
8
|
-
|
|
8
|
+
// If changed, update seam.acs_system.external_type generated column
|
|
9
|
+
export const acs_system_external_type = z.enum([
|
|
9
10
|
'pti_site',
|
|
10
11
|
'alta_org',
|
|
11
12
|
'salto_site',
|
|
@@ -14,21 +15,41 @@ export const acs_system_external_type_values = [
|
|
|
14
15
|
'visionline_system',
|
|
15
16
|
'assa_abloy_credential_service',
|
|
16
17
|
'latch_building',
|
|
17
|
-
];
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
.
|
|
21
|
-
|
|
18
|
+
]);
|
|
19
|
+
const common_acs_system_error = z.object({
|
|
20
|
+
created_at: z.string().datetime(),
|
|
21
|
+
message: z.string(),
|
|
22
|
+
});
|
|
23
|
+
const seam_bridge_disconnected = common_acs_system_error.extend({
|
|
24
|
+
error_code: z.literal('seam_bridge_disconnected'),
|
|
25
|
+
});
|
|
26
|
+
const visionline_instance_unreachable = common_acs_system_error.extend({
|
|
27
|
+
error_code: z.literal('visionline_instance_unreachable'),
|
|
28
|
+
});
|
|
29
|
+
const acs_system_error = z.union([
|
|
30
|
+
seam_bridge_disconnected,
|
|
31
|
+
visionline_instance_unreachable,
|
|
32
|
+
]);
|
|
33
|
+
const acs_system_error_map = z.object({
|
|
34
|
+
seam_bridge_disconnected: seam_bridge_disconnected.optional().nullable(),
|
|
35
|
+
visionline_instance_unreachable: visionline_instance_unreachable
|
|
36
|
+
.optional()
|
|
37
|
+
.nullable(),
|
|
38
|
+
});
|
|
39
|
+
const acs_system_warning = z.object({});
|
|
40
|
+
const acs_system_warning_map = z.object({});
|
|
22
41
|
export const acs_system = z
|
|
23
42
|
.object({
|
|
24
43
|
acs_system_id: z.string().uuid(),
|
|
25
|
-
external_type: acs_system_external_type,
|
|
44
|
+
external_type: acs_system_external_type.optional(),
|
|
26
45
|
external_type_display_name: z.string().optional(),
|
|
27
|
-
system_type: acs_system_external_type
|
|
46
|
+
system_type: acs_system_external_type
|
|
47
|
+
.describe(`
|
|
28
48
|
---
|
|
29
49
|
deprecated: use external_type
|
|
30
50
|
---
|
|
31
|
-
`)
|
|
51
|
+
`)
|
|
52
|
+
.optional(),
|
|
32
53
|
system_type_display_name: z.string().optional().describe(`
|
|
33
54
|
---
|
|
34
55
|
deprecated: use external_type_display_name
|
|
@@ -37,17 +58,11 @@ export const acs_system = z
|
|
|
37
58
|
name: z.string(),
|
|
38
59
|
created_at: z.string().datetime(),
|
|
39
60
|
workspace_id: z.string().uuid(),
|
|
40
|
-
connected_account_ids: z.array(z.string()),
|
|
61
|
+
connected_account_ids: z.array(z.string().uuid()),
|
|
41
62
|
image_url: z.string(),
|
|
42
63
|
image_alt_text: z.string(),
|
|
43
|
-
errors: z.array(
|
|
44
|
-
|
|
45
|
-
message: z.string(),
|
|
46
|
-
})),
|
|
47
|
-
warnings: z.array(z.object({
|
|
48
|
-
warning_code: z.string(),
|
|
49
|
-
message: z.string(),
|
|
50
|
-
})),
|
|
64
|
+
errors: z.array(acs_system_error),
|
|
65
|
+
warnings: z.array(acs_system_warning),
|
|
51
66
|
})
|
|
52
67
|
.merge(acs_system_capability_flags);
|
|
53
68
|
//# sourceMappingURL=acs-system.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acs-system.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/C,4BAA4B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACpD,2CAA2C,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACnE,sCAAsC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC/D,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM
|
|
1
|
+
{"version":3,"file":"acs-system.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/C,4BAA4B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACpD,2CAA2C,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACnE,sCAAsC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC/D,CAAC,CAAA;AAEF,oEAAoE;AACpE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7C,UAAU;IACV,UAAU;IACV,YAAY;IACZ,eAAe;IACf,qCAAqC;IACrC,mBAAmB;IACnB,+BAA+B;IAC/B,gBAAgB;CACjB,CAAC,CAAA;AAIF,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,wBAAwB,GAAG,uBAAuB,CAAC,MAAM,CAAC;IAC9D,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC;CAClD,CAAC,CAAA;AACF,MAAM,+BAA+B,GAAG,uBAAuB,CAAC,MAAM,CAAC;IACrE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,iCAAiC,CAAC;CACzD,CAAC,CAAA;AAEF,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC;IAC/B,wBAAwB;IACxB,+BAA+B;CAChC,CAAC,CAAA;AAEF,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,wBAAwB,EAAE,wBAAwB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACxE,+BAA+B,EAAE,+BAA+B;SAC7D,QAAQ,EAAE;SACV,QAAQ,EAAE;CACd,CAAC,CAAA;AAIF,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAEvC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAI3C,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC;KACxB,MAAM,CAAC;IACN,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,aAAa,EAAE,wBAAwB,CAAC,QAAQ,EAAE;IAClD,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjD,WAAW,EAAE,wBAAwB;SAClC,QAAQ,CACP;;;;OAID,CACA;SACA,QAAQ,EAAE;IACb,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;OAItD,CAAC;IACJ,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,qBAAqB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;IACjD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;IACjC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC;CACtC,CAAC;KACD,KAAK,CAAC,2BAA2B,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6CAA6C,CAAA;AAC3D,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6CAA6C,CAAA;AAC3D,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/metadata/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const acs_entrance_latch_metadata: z.ZodObject<{
|
|
3
|
+
accessibility_type: z.ZodString;
|
|
4
|
+
door_name: z.ZodString;
|
|
5
|
+
door_type: z.ZodString;
|
|
6
|
+
is_connected: z.ZodBoolean;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
accessibility_type: string;
|
|
9
|
+
door_name: string;
|
|
10
|
+
door_type: string;
|
|
11
|
+
is_connected: boolean;
|
|
12
|
+
}, {
|
|
13
|
+
accessibility_type: string;
|
|
14
|
+
door_name: string;
|
|
15
|
+
door_type: string;
|
|
16
|
+
is_connected: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
export type AcsEntranceLatchMetadata = z.infer<typeof acs_entrance_latch_metadata>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"latch.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/metadata/latch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;CAC1B,CAAC,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const acs_entrance_visionline_metadata: z.ZodObject<{
|
|
3
|
+
door_name: z.ZodString;
|
|
4
|
+
door_category: z.ZodEnum<["entrance", "guest", "elevator reader", "common", "common (PMS)"]>;
|
|
5
|
+
profiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
+
visionline_door_profile_id: z.ZodString;
|
|
7
|
+
visionline_door_profile_type: z.ZodEnum<["BLE", "commonDoor", "touch"]>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
visionline_door_profile_id: string;
|
|
10
|
+
visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
|
|
11
|
+
}, {
|
|
12
|
+
visionline_door_profile_id: string;
|
|
13
|
+
visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
|
|
14
|
+
}>, "many">>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
door_name: string;
|
|
17
|
+
door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
|
|
18
|
+
profiles?: {
|
|
19
|
+
visionline_door_profile_id: string;
|
|
20
|
+
visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
|
|
21
|
+
}[] | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
door_name: string;
|
|
24
|
+
door_category: "entrance" | "guest" | "elevator reader" | "common" | "common (PMS)";
|
|
25
|
+
profiles?: {
|
|
26
|
+
visionline_door_profile_id: string;
|
|
27
|
+
visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
|
|
28
|
+
}[] | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const acs_credential_visionline_metadata: z.ZodObject<{
|
|
31
|
+
card_function_type: z.ZodEnum<["guest", "staff"]>;
|
|
32
|
+
joiner_acs_credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
33
|
+
guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
34
|
+
common_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
card_function_type: "guest" | "staff";
|
|
37
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
38
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
39
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
card_function_type: "guest" | "staff";
|
|
42
|
+
joiner_acs_credential_ids?: string[] | undefined;
|
|
43
|
+
guest_acs_entrance_ids?: string[] | undefined;
|
|
44
|
+
common_acs_entrance_ids?: string[] | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
export type AcsCredentialVisionlineMetadata = z.infer<typeof acs_credential_visionline_metadata>;
|
|
47
|
+
export type AcsEntranceVisionlineMetadata = z.infer<typeof acs_entrance_visionline_metadata>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const acs_entrance_visionline_metadata = z.object({
|
|
3
|
+
door_name: z.string(),
|
|
4
|
+
door_category: z.enum([
|
|
5
|
+
'entrance',
|
|
6
|
+
'guest',
|
|
7
|
+
'elevator reader',
|
|
8
|
+
'common',
|
|
9
|
+
'common (PMS)',
|
|
10
|
+
]),
|
|
11
|
+
profiles: z
|
|
12
|
+
.array(z.object({
|
|
13
|
+
visionline_door_profile_id: z.string(),
|
|
14
|
+
visionline_door_profile_type: z.enum(['BLE', 'commonDoor', 'touch']),
|
|
15
|
+
}))
|
|
16
|
+
.optional(),
|
|
17
|
+
});
|
|
18
|
+
export const acs_credential_visionline_metadata = z.object({
|
|
19
|
+
card_function_type: z.enum(['guest', 'staff']),
|
|
20
|
+
joiner_acs_credential_ids: z.array(z.string().uuid()).optional(),
|
|
21
|
+
guest_acs_entrance_ids: z.array(z.string().uuid()).optional(),
|
|
22
|
+
common_acs_entrance_ids: z.array(z.string().uuid()).optional(),
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=visionline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visionline.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/metadata/visionline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC;QACpB,UAAU;QACV,OAAO;QACP,iBAAiB;QACjB,QAAQ;QACR,cAAc;KACf,CAAC;IACF,QAAQ,EAAE,CAAC;SACR,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;QACP,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE;QACtC,4BAA4B,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;KACrE,CAAC,CACH;SACA,QAAQ,EAAE;CACd,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD,kBAAkB,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC9C,yBAAyB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChE,sBAAsB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7D,uBAAuB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC/D,CAAC,CAAA"}
|