@seamapi/types 1.283.0 → 1.285.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 +104 -14
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +430 -82
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +37 -4
- package/lib/seam/connect/models/acs/acs-entrance.js +2 -1
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-system.d.ts +7 -7
- package/lib/seam/connect/models/acs/acs-system.js +2 -0
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/acs/metadata/assa_abloy_vostio.d.ts +21 -0
- package/lib/seam/connect/models/acs/metadata/assa_abloy_vostio.js +9 -0
- package/lib/seam/connect/models/acs/metadata/assa_abloy_vostio.js.map +1 -0
- package/lib/seam/connect/models/acs/metadata/index.d.ts +1 -0
- package/lib/seam/connect/models/acs/metadata/index.js +1 -0
- package/lib/seam/connect/models/acs/metadata/index.js.map +1 -1
- package/lib/seam/connect/models/acs/metadata/latch.d.ts +2 -2
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +62 -2
- package/lib/seam/connect/models/action-attempts/common.d.ts +19 -0
- package/lib/seam/connect/models/action-attempts/common.js +10 -0
- package/lib/seam/connect/models/action-attempts/common.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/encode-card.d.ts +30 -0
- package/lib/seam/connect/models/action-attempts/encode-card.js +2 -1
- package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/scan-card.d.ts +32 -2
- package/lib/seam/connect/models/action-attempts/scan-card.js +6 -2
- package/lib/seam/connect/models/action-attempts/scan-card.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +3 -1
- package/lib/seam/connect/models/devices/device-provider.js +2 -1
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +38 -60
- package/lib/seam/connect/openapi.js +70 -6
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +285 -10
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +3 -0
- package/src/lib/seam/connect/models/acs/acs-system.ts +2 -0
- package/src/lib/seam/connect/models/acs/metadata/assa_abloy_vostio.ts +13 -0
- package/src/lib/seam/connect/models/acs/metadata/index.ts +1 -0
- package/src/lib/seam/connect/models/action-attempts/common.ts +11 -0
- package/src/lib/seam/connect/models/action-attempts/encode-card.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/scan-card.ts +7 -1
- package/src/lib/seam/connect/models/devices/device-provider.ts +2 -1
- package/src/lib/seam/connect/openapi.ts +70 -6
- package/src/lib/seam/connect/route-types.ts +505 -80
|
@@ -22,13 +22,13 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
door_name: string;
|
|
24
24
|
is_connected: boolean;
|
|
25
|
-
accessibility_type: string;
|
|
26
25
|
door_type: string;
|
|
26
|
+
accessibility_type: string;
|
|
27
27
|
}, {
|
|
28
28
|
door_name: string;
|
|
29
29
|
is_connected: boolean;
|
|
30
|
-
accessibility_type: string;
|
|
31
30
|
door_type: string;
|
|
31
|
+
accessibility_type: string;
|
|
32
32
|
}>>;
|
|
33
33
|
visionline_metadata: z.ZodOptional<z.ZodObject<{
|
|
34
34
|
door_name: z.ZodString;
|
|
@@ -93,6 +93,25 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
93
93
|
}, {
|
|
94
94
|
access_point_name: string;
|
|
95
95
|
}>>;
|
|
96
|
+
assa_abloy_vostio_metadata: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
door_type: z.ZodEnum<["CommonDoor", "EntranceDoor", "GuestDoor", "Elevator"]>;
|
|
98
|
+
door_name: z.ZodString;
|
|
99
|
+
door_number: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
stand_open: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
pms_id: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
door_name: string;
|
|
104
|
+
door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
|
|
105
|
+
door_number?: number | undefined;
|
|
106
|
+
stand_open?: boolean | undefined;
|
|
107
|
+
pms_id?: string | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
door_name: string;
|
|
110
|
+
door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
|
|
111
|
+
door_number?: number | undefined;
|
|
112
|
+
stand_open?: boolean | undefined;
|
|
113
|
+
pms_id?: string | undefined;
|
|
114
|
+
}>>;
|
|
96
115
|
}, "strip", z.ZodTypeAny, {
|
|
97
116
|
created_at: string;
|
|
98
117
|
errors: {
|
|
@@ -123,12 +142,19 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
123
142
|
latch_metadata?: {
|
|
124
143
|
door_name: string;
|
|
125
144
|
is_connected: boolean;
|
|
126
|
-
accessibility_type: string;
|
|
127
145
|
door_type: string;
|
|
146
|
+
accessibility_type: string;
|
|
128
147
|
} | undefined;
|
|
129
148
|
dormakaba_community_metadata?: {
|
|
130
149
|
access_point_name: string;
|
|
131
150
|
} | undefined;
|
|
151
|
+
assa_abloy_vostio_metadata?: {
|
|
152
|
+
door_name: string;
|
|
153
|
+
door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
|
|
154
|
+
door_number?: number | undefined;
|
|
155
|
+
stand_open?: boolean | undefined;
|
|
156
|
+
pms_id?: string | undefined;
|
|
157
|
+
} | undefined;
|
|
132
158
|
}, {
|
|
133
159
|
created_at: string;
|
|
134
160
|
errors: {
|
|
@@ -159,11 +185,18 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
159
185
|
latch_metadata?: {
|
|
160
186
|
door_name: string;
|
|
161
187
|
is_connected: boolean;
|
|
162
|
-
accessibility_type: string;
|
|
163
188
|
door_type: string;
|
|
189
|
+
accessibility_type: string;
|
|
164
190
|
} | undefined;
|
|
165
191
|
dormakaba_community_metadata?: {
|
|
166
192
|
access_point_name: string;
|
|
167
193
|
} | undefined;
|
|
194
|
+
assa_abloy_vostio_metadata?: {
|
|
195
|
+
door_name: string;
|
|
196
|
+
door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
|
|
197
|
+
door_number?: number | undefined;
|
|
198
|
+
stand_open?: boolean | undefined;
|
|
199
|
+
pms_id?: string | undefined;
|
|
200
|
+
} | undefined;
|
|
168
201
|
}>;
|
|
169
202
|
export type AcsEntrance = z.infer<typeof acs_entrance>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { acs_entrance_dormakaba_community_metadata, acs_entrance_latch_metadata, acs_entrance_salto_ks_metadata, acs_entrance_visionline_metadata, } from './metadata/index.js';
|
|
2
|
+
import { acs_entrance_assa_abloy_vostio_metadata, acs_entrance_dormakaba_community_metadata, acs_entrance_latch_metadata, acs_entrance_salto_ks_metadata, acs_entrance_visionline_metadata, } from './metadata/index.js';
|
|
3
3
|
export const acs_entrance = z.object({
|
|
4
4
|
acs_system_id: z
|
|
5
5
|
.string()
|
|
@@ -19,5 +19,6 @@ export const acs_entrance = z.object({
|
|
|
19
19
|
visionline_metadata: acs_entrance_visionline_metadata.optional(),
|
|
20
20
|
salto_ks_metadata: acs_entrance_salto_ks_metadata.optional(),
|
|
21
21
|
dormakaba_community_metadata: acs_entrance_dormakaba_community_metadata.optional(),
|
|
22
|
+
assa_abloy_vostio_metadata: acs_entrance_assa_abloy_vostio_metadata.optional(),
|
|
22
23
|
});
|
|
23
24
|
//# 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":"A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AAM,CAAC;IACnC,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,6DAA6D,CAAC;IAC1E,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IAClE,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;IAC/D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IACnE,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;IAChE,iBAAiB,EAAE,8BAA8B,CAAC,QAAQ,EAAE;IAC5D,4BAA4B,EAC1B,yCAAyC,CAAC,QAAQ,EAAE;IACtD,0BAA0B,EACxB,uCAAuC,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAA"}
|
|
@@ -15,7 +15,7 @@ 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 acs_system_external_type: z.ZodEnum<["pti_site", "alta_org", "salto_ks_site", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building", "dormakaba_community", "assa_abloy_vostio"]>;
|
|
18
|
+
export declare const acs_system_external_type: z.ZodEnum<["pti_site", "alta_org", "salto_ks_site", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building", "dormakaba_community", "legic_connect", "assa_abloy_vostio", "vostio_credential_service"]>;
|
|
19
19
|
export type AcsSystemExternalType = z.infer<typeof acs_system_external_type>;
|
|
20
20
|
export declare const acs_system_error_map: z.ZodObject<{
|
|
21
21
|
seam_bridge_disconnected: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -174,7 +174,7 @@ export type AcsSystemWarningMap = z.infer<typeof acs_system_warning_map>;
|
|
|
174
174
|
export declare const acs_system: z.ZodObject<z.objectUtil.extendShape<{
|
|
175
175
|
default_credential_manager_acs_system_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
176
176
|
acs_system_id: z.ZodString;
|
|
177
|
-
external_type: z.ZodOptional<z.ZodEnum<["pti_site", "alta_org", "salto_ks_site", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building", "dormakaba_community", "assa_abloy_vostio"]>>;
|
|
177
|
+
external_type: z.ZodOptional<z.ZodEnum<["pti_site", "alta_org", "salto_ks_site", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building", "dormakaba_community", "legic_connect", "assa_abloy_vostio", "vostio_credential_service"]>>;
|
|
178
178
|
external_type_display_name: z.ZodOptional<z.ZodString>;
|
|
179
179
|
is_credential_manager: z.ZodBoolean;
|
|
180
180
|
visionline_metadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -190,7 +190,7 @@ export declare const acs_system: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
190
190
|
system_id: string;
|
|
191
191
|
lan_address: string;
|
|
192
192
|
}>>;
|
|
193
|
-
system_type: z.ZodOptional<z.ZodEnum<["pti_site", "alta_org", "salto_ks_site", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building", "dormakaba_community", "assa_abloy_vostio"]>>;
|
|
193
|
+
system_type: z.ZodOptional<z.ZodEnum<["pti_site", "alta_org", "salto_ks_site", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building", "dormakaba_community", "legic_connect", "assa_abloy_vostio", "vostio_credential_service"]>>;
|
|
194
194
|
system_type_display_name: z.ZodOptional<z.ZodString>;
|
|
195
195
|
name: z.ZodString;
|
|
196
196
|
created_at: z.ZodString;
|
|
@@ -323,14 +323,14 @@ export declare const acs_system: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
323
323
|
system_id: string;
|
|
324
324
|
lan_address: string;
|
|
325
325
|
} | undefined;
|
|
326
|
-
external_type?: "dormakaba_community" | "assa_abloy_credential_service" | "assa_abloy_vostio" | "pti_site" | "alta_org" | "salto_ks_site" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | undefined;
|
|
326
|
+
external_type?: "dormakaba_community" | "legic_connect" | "assa_abloy_credential_service" | "assa_abloy_vostio" | "vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | undefined;
|
|
327
327
|
external_type_display_name?: string | undefined;
|
|
328
328
|
can_automate_enrollment?: boolean | undefined;
|
|
329
329
|
can_create_acs_access_groups?: boolean | undefined;
|
|
330
330
|
can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
|
|
331
331
|
can_add_acs_users_to_acs_access_groups?: boolean | undefined;
|
|
332
332
|
default_credential_manager_acs_system_id?: string | null | undefined;
|
|
333
|
-
system_type?: "dormakaba_community" | "assa_abloy_credential_service" | "assa_abloy_vostio" | "pti_site" | "alta_org" | "salto_ks_site" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | undefined;
|
|
333
|
+
system_type?: "dormakaba_community" | "legic_connect" | "assa_abloy_credential_service" | "assa_abloy_vostio" | "vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | undefined;
|
|
334
334
|
system_type_display_name?: string | undefined;
|
|
335
335
|
}, {
|
|
336
336
|
name: string;
|
|
@@ -372,14 +372,14 @@ export declare const acs_system: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
372
372
|
system_id: string;
|
|
373
373
|
lan_address: string;
|
|
374
374
|
} | undefined;
|
|
375
|
-
external_type?: "dormakaba_community" | "assa_abloy_credential_service" | "assa_abloy_vostio" | "pti_site" | "alta_org" | "salto_ks_site" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | undefined;
|
|
375
|
+
external_type?: "dormakaba_community" | "legic_connect" | "assa_abloy_credential_service" | "assa_abloy_vostio" | "vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | undefined;
|
|
376
376
|
external_type_display_name?: string | undefined;
|
|
377
377
|
can_automate_enrollment?: boolean | undefined;
|
|
378
378
|
can_create_acs_access_groups?: boolean | undefined;
|
|
379
379
|
can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
|
|
380
380
|
can_add_acs_users_to_acs_access_groups?: boolean | undefined;
|
|
381
381
|
default_credential_manager_acs_system_id?: string | null | undefined;
|
|
382
|
-
system_type?: "dormakaba_community" | "assa_abloy_credential_service" | "assa_abloy_vostio" | "pti_site" | "alta_org" | "salto_ks_site" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | undefined;
|
|
382
|
+
system_type?: "dormakaba_community" | "legic_connect" | "assa_abloy_credential_service" | "assa_abloy_vostio" | "vostio_credential_service" | "pti_site" | "alta_org" | "salto_ks_site" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | undefined;
|
|
383
383
|
system_type_display_name?: string | undefined;
|
|
384
384
|
}>;
|
|
385
385
|
export type AcsSystem = z.output<typeof acs_system>;
|
|
@@ -28,7 +28,9 @@ export const acs_system_external_type = z.enum([
|
|
|
28
28
|
'assa_abloy_credential_service',
|
|
29
29
|
'latch_building',
|
|
30
30
|
'dormakaba_community',
|
|
31
|
+
'legic_connect',
|
|
31
32
|
'assa_abloy_vostio',
|
|
33
|
+
'vostio_credential_service',
|
|
32
34
|
]);
|
|
33
35
|
const common_acs_system_error = z.object({
|
|
34
36
|
created_at: z
|
|
@@ -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;SACvB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,qUAAqU,CACtU;IACH,4BAA4B,EAAE,CAAC;SAC5B,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,oXAAoX,CACrX;IACH,2CAA2C,EAAE,CAAC;SAC3C,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,uaAAua,CACxa;IACH,sCAAsC,EAAE,CAAC;SACtC,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,8ZAA8Z,CAC/Z;CACJ,CAAC,CAAA;AAEF,oEAAoE;AACpE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7C,UAAU;IACV,UAAU;IACV,eAAe;IACf,eAAe;IACf,qCAAqC;IACrC,mBAAmB;IACnB,+BAA+B;IAC/B,gBAAgB;IAChB,qBAAqB;IACrB,mBAAmB;
|
|
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;SACvB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,qUAAqU,CACtU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aACX,MAAM,EAAE;aACR,QAAQ,CACP,wGAAwG,CACzG;KACJ,CAAC;SACD,QAAQ,EAAE;IACb,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,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IACtD,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,sDAAsD,CAAC;IACnE,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,6GAA6G,CAC9G;IACH,qBAAqB,EAAE,CAAC;SACrB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,iIAAiI,CAClI;IACH,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,CAAC,qDAAqD,CAAC;IAClE,cAAc,EAAE,CAAC;SACd,MAAM,EAAE;SACR,QAAQ,CAAC,8CAA8C,CAAC;IAC3D,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,gBAAgB,CAAC;SACvB,QAAQ,CAAC,0CAA0C,CAAC;IACvD,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,kBAAkB,CAAC;SACzB,QAAQ,CAAC,4CAA4C,CAAC;CAC1D,CAAC;KACD,KAAK,CAAC,2BAA2B,CAAC;KAClC,QAAQ,CACP,sGAAsG,CACvG,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const acs_entrance_assa_abloy_vostio_metadata: z.ZodObject<{
|
|
3
|
+
door_type: z.ZodEnum<["CommonDoor", "EntranceDoor", "GuestDoor", "Elevator"]>;
|
|
4
|
+
door_name: z.ZodString;
|
|
5
|
+
door_number: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
stand_open: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
pms_id: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
door_name: string;
|
|
10
|
+
door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
|
|
11
|
+
door_number?: number | undefined;
|
|
12
|
+
stand_open?: boolean | undefined;
|
|
13
|
+
pms_id?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
door_name: string;
|
|
16
|
+
door_type: "CommonDoor" | "EntranceDoor" | "GuestDoor" | "Elevator";
|
|
17
|
+
door_number?: number | undefined;
|
|
18
|
+
stand_open?: boolean | undefined;
|
|
19
|
+
pms_id?: string | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
export type AcsEntranceAssaAbloyVostioMetadata = z.infer<typeof acs_entrance_assa_abloy_vostio_metadata>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const acs_entrance_assa_abloy_vostio_metadata = z.object({
|
|
3
|
+
door_type: z.enum(['CommonDoor', 'EntranceDoor', 'GuestDoor', 'Elevator']),
|
|
4
|
+
door_name: z.string(),
|
|
5
|
+
door_number: z.number().optional(),
|
|
6
|
+
stand_open: z.boolean().optional(),
|
|
7
|
+
pms_id: z.string().optional(),
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=assa_abloy_vostio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assa_abloy_vostio.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/metadata/assa_abloy_vostio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;IAC1E,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAClC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/metadata/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/metadata/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA"}
|
|
@@ -7,12 +7,12 @@ export declare const acs_entrance_latch_metadata: z.ZodObject<{
|
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
door_name: string;
|
|
9
9
|
is_connected: boolean;
|
|
10
|
-
accessibility_type: string;
|
|
11
10
|
door_type: string;
|
|
11
|
+
accessibility_type: string;
|
|
12
12
|
}, {
|
|
13
13
|
door_name: string;
|
|
14
14
|
is_connected: boolean;
|
|
15
|
-
accessibility_type: string;
|
|
16
15
|
door_type: string;
|
|
16
|
+
accessibility_type: string;
|
|
17
17
|
}>;
|
|
18
18
|
export type AcsEntranceLatchMetadata = z.infer<typeof acs_entrance_latch_metadata>;
|
|
@@ -1034,7 +1034,25 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1034
1034
|
result: z.ZodNull;
|
|
1035
1035
|
}>, {
|
|
1036
1036
|
action_type: z.ZodLiteral<"SCAN_CARD">;
|
|
1037
|
-
error: z.ZodObject<{
|
|
1037
|
+
error: z.ZodUnion<[z.ZodObject<{
|
|
1038
|
+
type: z.ZodLiteral<"uncategorized_error">;
|
|
1039
|
+
message: z.ZodString;
|
|
1040
|
+
}, "strip", z.ZodTypeAny, {
|
|
1041
|
+
type: "uncategorized_error";
|
|
1042
|
+
message: string;
|
|
1043
|
+
}, {
|
|
1044
|
+
type: "uncategorized_error";
|
|
1045
|
+
message: string;
|
|
1046
|
+
}>, z.ZodObject<{
|
|
1047
|
+
type: z.ZodLiteral<"action_attempt_expired">;
|
|
1048
|
+
message: z.ZodString;
|
|
1049
|
+
}, "strip", z.ZodTypeAny, {
|
|
1050
|
+
type: "action_attempt_expired";
|
|
1051
|
+
message: string;
|
|
1052
|
+
}, {
|
|
1053
|
+
type: "action_attempt_expired";
|
|
1054
|
+
message: string;
|
|
1055
|
+
}>, z.ZodObject<{
|
|
1038
1056
|
type: z.ZodLiteral<"no_card_on_encoder">;
|
|
1039
1057
|
message: z.ZodString;
|
|
1040
1058
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1043,9 +1061,15 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1043
1061
|
}, {
|
|
1044
1062
|
type: "no_card_on_encoder";
|
|
1045
1063
|
message: string;
|
|
1046
|
-
}>;
|
|
1064
|
+
}>]>;
|
|
1047
1065
|
}>, "strip", z.ZodTypeAny, {
|
|
1048
1066
|
error: {
|
|
1067
|
+
type: "uncategorized_error";
|
|
1068
|
+
message: string;
|
|
1069
|
+
} | {
|
|
1070
|
+
type: "action_attempt_expired";
|
|
1071
|
+
message: string;
|
|
1072
|
+
} | {
|
|
1049
1073
|
type: "no_card_on_encoder";
|
|
1050
1074
|
message: string;
|
|
1051
1075
|
};
|
|
@@ -1055,6 +1079,12 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1055
1079
|
action_type: "SCAN_CARD";
|
|
1056
1080
|
}, {
|
|
1057
1081
|
error: {
|
|
1082
|
+
type: "uncategorized_error";
|
|
1083
|
+
message: string;
|
|
1084
|
+
} | {
|
|
1085
|
+
type: "action_attempt_expired";
|
|
1086
|
+
message: string;
|
|
1087
|
+
} | {
|
|
1058
1088
|
type: "no_card_on_encoder";
|
|
1059
1089
|
message: string;
|
|
1060
1090
|
};
|
|
@@ -1575,6 +1605,24 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1575
1605
|
}>, {
|
|
1576
1606
|
action_type: z.ZodLiteral<"ENCODE_CARD">;
|
|
1577
1607
|
error: z.ZodUnion<[z.ZodObject<{
|
|
1608
|
+
type: z.ZodLiteral<"uncategorized_error">;
|
|
1609
|
+
message: z.ZodString;
|
|
1610
|
+
}, "strip", z.ZodTypeAny, {
|
|
1611
|
+
type: "uncategorized_error";
|
|
1612
|
+
message: string;
|
|
1613
|
+
}, {
|
|
1614
|
+
type: "uncategorized_error";
|
|
1615
|
+
message: string;
|
|
1616
|
+
}>, z.ZodObject<{
|
|
1617
|
+
type: z.ZodLiteral<"action_attempt_expired">;
|
|
1618
|
+
message: z.ZodString;
|
|
1619
|
+
}, "strip", z.ZodTypeAny, {
|
|
1620
|
+
type: "action_attempt_expired";
|
|
1621
|
+
message: string;
|
|
1622
|
+
}, {
|
|
1623
|
+
type: "action_attempt_expired";
|
|
1624
|
+
message: string;
|
|
1625
|
+
}>, z.ZodObject<{
|
|
1578
1626
|
type: z.ZodLiteral<"no_card_on_encoder">;
|
|
1579
1627
|
message: z.ZodString;
|
|
1580
1628
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1595,6 +1643,12 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1595
1643
|
}>]>;
|
|
1596
1644
|
}>, "strip", z.ZodTypeAny, {
|
|
1597
1645
|
error: {
|
|
1646
|
+
type: "uncategorized_error";
|
|
1647
|
+
message: string;
|
|
1648
|
+
} | {
|
|
1649
|
+
type: "action_attempt_expired";
|
|
1650
|
+
message: string;
|
|
1651
|
+
} | {
|
|
1598
1652
|
type: "no_card_on_encoder";
|
|
1599
1653
|
message: string;
|
|
1600
1654
|
} | {
|
|
@@ -1607,6 +1661,12 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1607
1661
|
action_type: "ENCODE_CARD";
|
|
1608
1662
|
}, {
|
|
1609
1663
|
error: {
|
|
1664
|
+
type: "uncategorized_error";
|
|
1665
|
+
message: string;
|
|
1666
|
+
} | {
|
|
1667
|
+
type: "action_attempt_expired";
|
|
1668
|
+
message: string;
|
|
1669
|
+
} | {
|
|
1610
1670
|
type: "no_card_on_encoder";
|
|
1611
1671
|
message: string;
|
|
1612
1672
|
} | {
|
|
@@ -57,3 +57,22 @@ export declare const common_failed_action_attempt: z.ZodObject<z.objectUtil.exte
|
|
|
57
57
|
action_attempt_id: string;
|
|
58
58
|
result: null;
|
|
59
59
|
}>;
|
|
60
|
+
export declare const common_action_attempt_errors: readonly [z.ZodObject<{
|
|
61
|
+
type: z.ZodLiteral<"uncategorized_error">;
|
|
62
|
+
message: z.ZodString;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
type: "uncategorized_error";
|
|
65
|
+
message: string;
|
|
66
|
+
}, {
|
|
67
|
+
type: "uncategorized_error";
|
|
68
|
+
message: string;
|
|
69
|
+
}>, z.ZodObject<{
|
|
70
|
+
type: z.ZodLiteral<"action_attempt_expired">;
|
|
71
|
+
message: z.ZodString;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
type: "action_attempt_expired";
|
|
74
|
+
message: string;
|
|
75
|
+
}, {
|
|
76
|
+
type: "action_attempt_expired";
|
|
77
|
+
message: string;
|
|
78
|
+
}>];
|
|
@@ -21,4 +21,14 @@ export const common_failed_action_attempt = common_action_attempt.extend({
|
|
|
21
21
|
status: z.literal('error'),
|
|
22
22
|
result: z.null(),
|
|
23
23
|
});
|
|
24
|
+
export const common_action_attempt_errors = [
|
|
25
|
+
z.object({
|
|
26
|
+
type: z.literal('uncategorized_error'),
|
|
27
|
+
message: z.string(),
|
|
28
|
+
}),
|
|
29
|
+
z.object({
|
|
30
|
+
type: z.literal('action_attempt_expired'),
|
|
31
|
+
message: z.string(),
|
|
32
|
+
}),
|
|
33
|
+
];
|
|
24
34
|
//# sourceMappingURL=common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC;;;;;GAK7C,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;CAChD,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,qBAAqB,CAAC,MAAM,CAAC;IACxE,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC5B,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE;CAChB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAG,qBAAqB,CAAC,MAAM,CAAC;IAC1E,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC5B,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE;CAChB,CAAC,CAAA;AAEF,MAAM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M,CAAC;QACP,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC;QACtC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC;IACF,CAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC;QACzC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC;CACM,CAAA"}
|
|
@@ -512,6 +512,24 @@ export declare const encode_card_action_attempt: z.ZodDiscriminatedUnion<"status
|
|
|
512
512
|
}>, {
|
|
513
513
|
action_type: z.ZodLiteral<"ENCODE_CARD">;
|
|
514
514
|
error: z.ZodUnion<[z.ZodObject<{
|
|
515
|
+
type: z.ZodLiteral<"uncategorized_error">;
|
|
516
|
+
message: z.ZodString;
|
|
517
|
+
}, "strip", z.ZodTypeAny, {
|
|
518
|
+
type: "uncategorized_error";
|
|
519
|
+
message: string;
|
|
520
|
+
}, {
|
|
521
|
+
type: "uncategorized_error";
|
|
522
|
+
message: string;
|
|
523
|
+
}>, z.ZodObject<{
|
|
524
|
+
type: z.ZodLiteral<"action_attempt_expired">;
|
|
525
|
+
message: z.ZodString;
|
|
526
|
+
}, "strip", z.ZodTypeAny, {
|
|
527
|
+
type: "action_attempt_expired";
|
|
528
|
+
message: string;
|
|
529
|
+
}, {
|
|
530
|
+
type: "action_attempt_expired";
|
|
531
|
+
message: string;
|
|
532
|
+
}>, z.ZodObject<{
|
|
515
533
|
type: z.ZodLiteral<"no_card_on_encoder">;
|
|
516
534
|
message: z.ZodString;
|
|
517
535
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -532,6 +550,12 @@ export declare const encode_card_action_attempt: z.ZodDiscriminatedUnion<"status
|
|
|
532
550
|
}>]>;
|
|
533
551
|
}>, "strip", z.ZodTypeAny, {
|
|
534
552
|
error: {
|
|
553
|
+
type: "uncategorized_error";
|
|
554
|
+
message: string;
|
|
555
|
+
} | {
|
|
556
|
+
type: "action_attempt_expired";
|
|
557
|
+
message: string;
|
|
558
|
+
} | {
|
|
535
559
|
type: "no_card_on_encoder";
|
|
536
560
|
message: string;
|
|
537
561
|
} | {
|
|
@@ -544,6 +568,12 @@ export declare const encode_card_action_attempt: z.ZodDiscriminatedUnion<"status
|
|
|
544
568
|
action_type: "ENCODE_CARD";
|
|
545
569
|
}, {
|
|
546
570
|
error: {
|
|
571
|
+
type: "uncategorized_error";
|
|
572
|
+
message: string;
|
|
573
|
+
} | {
|
|
574
|
+
type: "action_attempt_expired";
|
|
575
|
+
message: string;
|
|
576
|
+
} | {
|
|
547
577
|
type: "no_card_on_encoder";
|
|
548
578
|
message: string;
|
|
549
579
|
} | {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { acs_credential, unmanaged_acs_credential, } from '../acs/acs-credential.js';
|
|
3
|
-
import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
3
|
+
import { common_action_attempt_errors, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
4
4
|
const action_type = z.literal('ENCODE_CARD');
|
|
5
5
|
const no_card_on_encoder_error = z.object({
|
|
6
6
|
type: z.literal('no_card_on_encoder'),
|
|
@@ -11,6 +11,7 @@ const incompatible_card_format_error = z.object({
|
|
|
11
11
|
message: z.string(),
|
|
12
12
|
});
|
|
13
13
|
const error = z.union([
|
|
14
|
+
...common_action_attempt_errors,
|
|
14
15
|
no_card_on_encoder_error,
|
|
15
16
|
incompatible_card_format_error,
|
|
16
17
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encode-card.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/encode-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,wBAAwB,GACzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;AAE5C,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC;IAC3C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;IACpB,wBAAwB;IACxB,8BAA8B;CAC/B,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,cAAc,CAAC,EAAE,CAAC,wBAAwB,CAAC,CAAA;AAE1D,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACvE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,2CAA2C,CAAC;IACxD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,qDAAqD,CAAC;IAClE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,kDAAkD,CAAC;CAChE,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"encode-card.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/encode-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,wBAAwB,GACzB,MAAM,0BAA0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AN_CARD">;
|
|
881
|
-
error: z.ZodObject<{
|
|
881
|
+
error: z.ZodUnion<[z.ZodObject<{
|
|
882
|
+
type: z.ZodLiteral<"uncategorized_error">;
|
|
883
|
+
message: z.ZodString;
|
|
884
|
+
}, "strip", z.ZodTypeAny, {
|
|
885
|
+
type: "uncategorized_error";
|
|
886
|
+
message: string;
|
|
887
|
+
}, {
|
|
888
|
+
type: "uncategorized_error";
|
|
889
|
+
message: string;
|
|
890
|
+
}>, z.ZodObject<{
|
|
891
|
+
type: z.ZodLiteral<"action_attempt_expired">;
|
|
892
|
+
message: z.ZodString;
|
|
893
|
+
}, "strip", z.ZodTypeAny, {
|
|
894
|
+
type: "action_attempt_expired";
|
|
895
|
+
message: string;
|
|
896
|
+
}, {
|
|
897
|
+
type: "action_attempt_expired";
|
|
898
|
+
message: string;
|
|
899
|
+
}>, z.ZodObject<{
|
|
882
900
|
type: z.ZodLiteral<"no_card_on_encoder">;
|
|
883
901
|
message: z.ZodString;
|
|
884
902
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -887,9 +905,15 @@ export declare const scan_card_action_attempt: z.ZodDiscriminatedUnion<"status",
|
|
|
887
905
|
}, {
|
|
888
906
|
type: "no_card_on_encoder";
|
|
889
907
|
message: string;
|
|
890
|
-
}>;
|
|
908
|
+
}>]>;
|
|
891
909
|
}>, "strip", z.ZodTypeAny, {
|
|
892
910
|
error: {
|
|
911
|
+
type: "uncategorized_error";
|
|
912
|
+
message: string;
|
|
913
|
+
} | {
|
|
914
|
+
type: "action_attempt_expired";
|
|
915
|
+
message: string;
|
|
916
|
+
} | {
|
|
893
917
|
type: "no_card_on_encoder";
|
|
894
918
|
message: string;
|
|
895
919
|
};
|
|
@@ -899,6 +923,12 @@ export declare const scan_card_action_attempt: z.ZodDiscriminatedUnion<"status",
|
|
|
899
923
|
action_type: "SCAN_CARD";
|
|
900
924
|
}, {
|
|
901
925
|
error: {
|
|
926
|
+
type: "uncategorized_error";
|
|
927
|
+
message: string;
|
|
928
|
+
} | {
|
|
929
|
+
type: "action_attempt_expired";
|
|
930
|
+
message: string;
|
|
931
|
+
} | {
|
|
902
932
|
type: "no_card_on_encoder";
|
|
903
933
|
message: string;
|
|
904
934
|
};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { acs_credential, acs_credential_on_encoder, unmanaged_acs_credential, } from '../acs/acs-credential.js';
|
|
3
|
-
import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
3
|
+
import { common_action_attempt_errors, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
4
4
|
const action_type = z.literal('SCAN_CARD');
|
|
5
|
-
const
|
|
5
|
+
const no_card_on_encoder_error = z.object({
|
|
6
6
|
type: z.literal('no_card_on_encoder'),
|
|
7
7
|
message: z.string(),
|
|
8
8
|
});
|
|
9
|
+
const error = z.union([
|
|
10
|
+
...common_action_attempt_errors,
|
|
11
|
+
no_card_on_encoder_error,
|
|
12
|
+
]);
|
|
9
13
|
const warning = z.object({
|
|
10
14
|
warning_code: z.literal('acs_credential_on_encoder_out_of_sync'),
|
|
11
15
|
warning_message: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scan-card.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/scan-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;AAE1C,MAAM,
|
|
1
|
+
{"version":3,"file":"scan-card.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action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SACD,QAAQ,CAAC,0CAA0C,CAAC;IACvD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,oDAAoD,CAAC;IACjE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,iDAAiD,CAAC;CAC/D,CAAC,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const DEVICE_PROVIDERS: {
|
|
3
3
|
readonly DORMAKABA_COMMUNITY: "dormakaba_community";
|
|
4
|
+
readonly LEGIC_CONNECT: "legic_connect";
|
|
4
5
|
readonly AKUVOX: "akuvox";
|
|
5
6
|
readonly AUGUST: "august";
|
|
6
7
|
readonly AVIGILON_ALTA: "avigilon_alta";
|
|
@@ -40,6 +41,7 @@ export declare const DEVICE_PROVIDERS: {
|
|
|
40
41
|
readonly LATCH: "latch";
|
|
41
42
|
readonly AKILES: "akiles";
|
|
42
43
|
readonly VOSTIO: "assa_abloy_vostio";
|
|
44
|
+
readonly VOSTIO_CREDENTIAL_SERVICE: "vostio_credential_service";
|
|
43
45
|
};
|
|
44
46
|
export type DeviceProviderName = (typeof DEVICE_PROVIDERS)[keyof typeof DEVICE_PROVIDERS];
|
|
45
47
|
export declare const ALL_DEVICE_PROVIDERS: [
|
|
@@ -52,7 +54,7 @@ export declare const PROVIDER_CATEGORY_MAP: {
|
|
|
52
54
|
readonly consumer_smartlocks: readonly ["august", "schlage", "yale", "smartthings", "nuki", "ttlock", "kwikset", "igloohome", "wyze", "lockly", "tedee"];
|
|
53
55
|
readonly thermostats: readonly ["ecobee", "nest"];
|
|
54
56
|
readonly noise_sensors: readonly ["minut", "noiseaware"];
|
|
55
|
-
readonly access_control_systems: readonly ["pti", "visionline", "assa_abloy_credential_service", "
|
|
57
|
+
readonly access_control_systems: readonly ["pti", "visionline", "assa_abloy_credential_service", "latch", "salto"];
|
|
56
58
|
readonly internal_beta: [DeviceProviderName, ...DeviceProviderName[]];
|
|
57
59
|
};
|
|
58
60
|
export declare const PROVIDER_CATEGORIES: [ProviderCategory, ...ProviderCategory[]];
|
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { device_capability_flags } from './device.js';
|
|
3
3
|
export const DEVICE_PROVIDERS = {
|
|
4
4
|
DORMAKABA_COMMUNITY: 'dormakaba_community',
|
|
5
|
+
LEGIC_CONNECT: 'legic_connect',
|
|
5
6
|
AKUVOX: 'akuvox',
|
|
6
7
|
AUGUST: 'august',
|
|
7
8
|
AVIGILON_ALTA: 'avigilon_alta',
|
|
@@ -41,6 +42,7 @@ export const DEVICE_PROVIDERS = {
|
|
|
41
42
|
LATCH: 'latch',
|
|
42
43
|
AKILES: 'akiles',
|
|
43
44
|
VOSTIO: 'assa_abloy_vostio',
|
|
45
|
+
VOSTIO_CREDENTIAL_SERVICE: 'vostio_credential_service',
|
|
44
46
|
};
|
|
45
47
|
export const ALL_DEVICE_PROVIDERS = Object.values(DEVICE_PROVIDERS);
|
|
46
48
|
export const PROVIDER_CATEGORY_MAP = {
|
|
@@ -91,7 +93,6 @@ export const PROVIDER_CATEGORY_MAP = {
|
|
|
91
93
|
'pti',
|
|
92
94
|
'visionline',
|
|
93
95
|
'assa_abloy_credential_service',
|
|
94
|
-
'dormakaba_community',
|
|
95
96
|
'latch',
|
|
96
97
|
'salto',
|
|
97
98
|
],
|