@seamapi/types 1.360.0 → 1.361.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 +1645 -1159
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +5946 -4573
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +192 -126
- package/lib/seam/connect/models/access-codes/managed-access-code.js +2 -4
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +193 -127
- package/lib/seam/connect/models/acs/acs-access-group.d.ts +4 -4
- package/lib/seam/connect/models/acs/acs-credential-pool.d.ts +2 -2
- package/lib/seam/connect/models/acs/acs-credential.d.ts +6 -6
- package/lib/seam/connect/models/acs/acs-credential.js +94 -51
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-encoder.d.ts +2 -2
- package/lib/seam/connect/models/acs/acs-encoder.js +12 -7
- package/lib/seam/connect/models/acs/acs-encoder.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +2 -2
- package/lib/seam/connect/models/acs/acs-entrance.js +37 -14
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-system.d.ts +2 -2
- package/lib/seam/connect/models/acs/acs-system.js +48 -41
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-user.d.ts +4 -4
- package/lib/seam/connect/models/acs/acs-user.js +45 -32
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +26 -26
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +8 -8
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +18 -18
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +42 -42
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +18 -18
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +18 -18
- package/lib/seam/connect/models/devices/device.d.ts +1760 -389
- package/lib/seam/connect/models/devices/device.js +82 -4
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/phone.d.ts +4 -4
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +236 -58
- package/lib/seam/connect/models/events/access-codes.d.ts +68 -68
- package/lib/seam/connect/models/events/devices.d.ts +152 -152
- package/lib/seam/connect/models/events/phones.d.ts +4 -4
- package/lib/seam/connect/models/events/seam-event.d.ts +112 -112
- package/lib/seam/connect/models/thermostats/climate-preset.js +12 -10
- package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
- package/lib/seam/connect/models/thermostats/thermostat-schedule.d.ts +8 -8
- package/lib/seam/connect/models/thermostats/thermostat-schedule.js +19 -12
- package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -1
- package/lib/seam/connect/models/user-identities/user-identity.d.ts +2 -2
- package/lib/seam/connect/openapi.d.ts +103 -171
- package/lib/seam/connect/openapi.js +1120 -864
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +4421 -3576
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +2 -4
- package/src/lib/seam/connect/models/acs/acs-credential.ts +162 -51
- package/src/lib/seam/connect/models/acs/acs-encoder.ts +22 -7
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +65 -18
- package/src/lib/seam/connect/models/acs/acs-system.ts +81 -52
- package/src/lib/seam/connect/models/acs/acs-user.ts +69 -32
- package/src/lib/seam/connect/models/devices/device.ts +103 -4
- package/src/lib/seam/connect/models/thermostats/climate-preset.ts +28 -10
- package/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts +31 -12
- package/src/lib/seam/connect/openapi.ts +1259 -878
- package/src/lib/seam/connect/route-types.ts +4469 -3648
|
@@ -10,16 +10,16 @@ export declare const acs_credential_pool: z.ZodObject<{
|
|
|
10
10
|
created_at: z.ZodString;
|
|
11
11
|
workspace_id: z.ZodString;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
created_at: string;
|
|
14
13
|
display_name: string;
|
|
14
|
+
created_at: string;
|
|
15
15
|
workspace_id: string;
|
|
16
16
|
acs_system_id: string;
|
|
17
17
|
external_type: "hid_part_number";
|
|
18
18
|
external_type_display_name: string;
|
|
19
19
|
acs_credential_pool_id: string;
|
|
20
20
|
}, {
|
|
21
|
-
created_at: string;
|
|
22
21
|
display_name: string;
|
|
22
|
+
created_at: string;
|
|
23
23
|
workspace_id: string;
|
|
24
24
|
acs_system_id: string;
|
|
25
25
|
external_type: "hid_part_number";
|
|
@@ -326,6 +326,7 @@ export declare const acs_credential: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
326
326
|
}, {
|
|
327
327
|
is_managed: z.ZodLiteral<true>;
|
|
328
328
|
}>, "strip", z.ZodTypeAny, {
|
|
329
|
+
display_name: string;
|
|
329
330
|
created_at: string;
|
|
330
331
|
errors: {
|
|
331
332
|
message: string;
|
|
@@ -356,7 +357,6 @@ export declare const acs_credential: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
356
357
|
created_at: string;
|
|
357
358
|
warning_code: "needs_to_be_reissued";
|
|
358
359
|
})[];
|
|
359
|
-
display_name: string;
|
|
360
360
|
workspace_id: string;
|
|
361
361
|
is_managed: true;
|
|
362
362
|
acs_system_id: string;
|
|
@@ -395,6 +395,7 @@ export declare const acs_credential: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
395
395
|
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
396
396
|
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
397
397
|
}, {
|
|
398
|
+
display_name: string;
|
|
398
399
|
created_at: string;
|
|
399
400
|
errors: {
|
|
400
401
|
message: string;
|
|
@@ -425,7 +426,6 @@ export declare const acs_credential: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
425
426
|
created_at: string;
|
|
426
427
|
warning_code: "needs_to_be_reissued";
|
|
427
428
|
})[];
|
|
428
|
-
display_name: string;
|
|
429
429
|
workspace_id: string;
|
|
430
430
|
is_managed: true;
|
|
431
431
|
acs_system_id: string;
|
|
@@ -625,6 +625,7 @@ export declare const unmanaged_acs_credential: z.ZodObject<z.objectUtil.extendSh
|
|
|
625
625
|
}, {
|
|
626
626
|
is_managed: z.ZodLiteral<false>;
|
|
627
627
|
}>, "strip", z.ZodTypeAny, {
|
|
628
|
+
display_name: string;
|
|
628
629
|
created_at: string;
|
|
629
630
|
errors: {
|
|
630
631
|
message: string;
|
|
@@ -655,7 +656,6 @@ export declare const unmanaged_acs_credential: z.ZodObject<z.objectUtil.extendSh
|
|
|
655
656
|
created_at: string;
|
|
656
657
|
warning_code: "needs_to_be_reissued";
|
|
657
658
|
})[];
|
|
658
|
-
display_name: string;
|
|
659
659
|
workspace_id: string;
|
|
660
660
|
is_managed: false;
|
|
661
661
|
acs_system_id: string;
|
|
@@ -694,6 +694,7 @@ export declare const unmanaged_acs_credential: z.ZodObject<z.objectUtil.extendSh
|
|
|
694
694
|
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
695
695
|
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
696
696
|
}, {
|
|
697
|
+
display_name: string;
|
|
697
698
|
created_at: string;
|
|
698
699
|
errors: {
|
|
699
700
|
message: string;
|
|
@@ -724,7 +725,6 @@ export declare const unmanaged_acs_credential: z.ZodObject<z.objectUtil.extendSh
|
|
|
724
725
|
created_at: string;
|
|
725
726
|
warning_code: "needs_to_be_reissued";
|
|
726
727
|
})[];
|
|
727
|
-
display_name: string;
|
|
728
728
|
workspace_id: string;
|
|
729
729
|
is_managed: false;
|
|
730
730
|
acs_system_id: string;
|
|
@@ -810,9 +810,9 @@ export declare const acs_credential_on_encoder: z.ZodObject<{
|
|
|
810
810
|
card_holder?: string | undefined;
|
|
811
811
|
}>>;
|
|
812
812
|
}, "strip", z.ZodTypeAny, {
|
|
813
|
-
created_at: string | null;
|
|
814
813
|
starts_at: string | null;
|
|
815
814
|
ends_at: string | null;
|
|
815
|
+
created_at: string | null;
|
|
816
816
|
card_number: string | null;
|
|
817
817
|
is_issued: boolean | null;
|
|
818
818
|
visionline_metadata?: {
|
|
@@ -830,9 +830,9 @@ export declare const acs_credential_on_encoder: z.ZodObject<{
|
|
|
830
830
|
card_holder?: string | undefined;
|
|
831
831
|
} | undefined;
|
|
832
832
|
}, {
|
|
833
|
-
created_at: string | null;
|
|
834
833
|
starts_at: string | null;
|
|
835
834
|
ends_at: string | null;
|
|
835
|
+
created_at: string | null;
|
|
836
836
|
card_number: string | null;
|
|
837
837
|
is_issued: boolean | null;
|
|
838
838
|
visionline_metadata?: {
|
|
@@ -31,41 +31,41 @@ const waiting_to_be_issued = common_acs_credential_warning
|
|
|
31
31
|
.literal('waiting_to_be_issued')
|
|
32
32
|
.describe(warning_code_description),
|
|
33
33
|
})
|
|
34
|
-
.describe('Indicates that the credential is waiting to be issued.');
|
|
34
|
+
.describe('Indicates that the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) is waiting to be issued.');
|
|
35
35
|
const schedule_externally_modified = common_acs_credential_warning
|
|
36
36
|
.extend({
|
|
37
37
|
warning_code: z
|
|
38
38
|
.literal('schedule_externally_modified')
|
|
39
39
|
.describe(warning_code_description),
|
|
40
40
|
})
|
|
41
|
-
.describe("Indicates that the schedule of one of the credential's children was modified externally.");
|
|
41
|
+
.describe("Indicates that the schedule of one of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials)'s children was modified externally.");
|
|
42
42
|
const schedule_modified = common_acs_credential_warning
|
|
43
43
|
.extend({
|
|
44
44
|
warning_code: z
|
|
45
45
|
.literal('schedule_modified')
|
|
46
46
|
.describe(warning_code_description),
|
|
47
47
|
})
|
|
48
|
-
.describe('Indicates that the schedule of
|
|
48
|
+
.describe('Indicates that the schedule of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was modified to avoid creating a credential with a start date in the past.');
|
|
49
49
|
const being_deleted = common_acs_credential_warning
|
|
50
50
|
.extend({
|
|
51
51
|
warning_code: z.literal('being_deleted').describe(warning_code_description),
|
|
52
52
|
})
|
|
53
|
-
.describe('Indicates that
|
|
53
|
+
.describe('Indicates that the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) is being deleted.');
|
|
54
54
|
export const unknown_issue_with_acs_credential = common_acs_credential_warning
|
|
55
55
|
.extend({
|
|
56
56
|
warning_code: z
|
|
57
57
|
.literal('unknown_issue_with_acs_credential')
|
|
58
58
|
.describe(warning_code_description),
|
|
59
59
|
})
|
|
60
|
-
.describe('An unknown issue occurred while syncing the state of
|
|
61
|
-
'This issue may affect the proper functioning of
|
|
60
|
+
.describe('An unknown issue occurred while syncing the state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) with the provider. ' +
|
|
61
|
+
'This issue may affect the proper functioning of the credential.');
|
|
62
62
|
const needs_to_be_reissued = common_acs_credential_warning
|
|
63
63
|
.extend({
|
|
64
64
|
warning_code: z
|
|
65
65
|
.literal('needs_to_be_reissued')
|
|
66
66
|
.describe(warning_code_description),
|
|
67
67
|
})
|
|
68
|
-
.describe('Access permissions for
|
|
68
|
+
.describe('Access permissions for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) have changed. [Reissue](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners/creating-and-encoding-card-based-credentials) (re-encode) the credential. This issue may affect the proper functioning of the credential.');
|
|
69
69
|
const acs_credential_warning = z
|
|
70
70
|
.discriminatedUnion('warning_code', [
|
|
71
71
|
waiting_to_be_issued,
|
|
@@ -75,7 +75,7 @@ const acs_credential_warning = z
|
|
|
75
75
|
unknown_issue_with_acs_credential,
|
|
76
76
|
needs_to_be_reissued,
|
|
77
77
|
])
|
|
78
|
-
.describe('Warning associated with the
|
|
78
|
+
.describe('Warning associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).');
|
|
79
79
|
const acs_credential_warning_map = z.object({
|
|
80
80
|
waiting_to_be_issued: waiting_to_be_issued.optional().nullable(),
|
|
81
81
|
schedule_externally_modified: schedule_externally_modified
|
|
@@ -89,92 +89,107 @@ const acs_credential_warning_map = z.object({
|
|
|
89
89
|
needs_to_be_reissued: needs_to_be_reissued.optional().nullable(),
|
|
90
90
|
});
|
|
91
91
|
const common_acs_credential = z.object({
|
|
92
|
-
acs_credential_id: z
|
|
92
|
+
acs_credential_id: z
|
|
93
|
+
.string()
|
|
94
|
+
.uuid()
|
|
95
|
+
.describe('ID of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).'),
|
|
93
96
|
acs_user_id: z
|
|
94
97
|
.string()
|
|
95
98
|
.uuid()
|
|
96
99
|
.optional()
|
|
97
|
-
.describe('ID of the ACS user to whom the credential belongs.'),
|
|
100
|
+
.describe('ID of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs.'),
|
|
98
101
|
acs_credential_pool_id: z.string().uuid().optional(),
|
|
99
102
|
acs_system_id: z
|
|
100
103
|
.string()
|
|
101
104
|
.uuid()
|
|
102
|
-
.describe('ID of the access control system that contains the credential.'),
|
|
105
|
+
.describe('ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).'),
|
|
103
106
|
parent_acs_credential_id: z
|
|
104
107
|
.string()
|
|
105
108
|
.uuid()
|
|
106
109
|
.optional()
|
|
107
|
-
.describe('ID of the parent credential.'),
|
|
110
|
+
.describe('ID of the parent [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).'),
|
|
108
111
|
display_name: z
|
|
109
112
|
.string()
|
|
110
113
|
.min(1)
|
|
111
|
-
.describe('Display name that corresponds to the credential type.'),
|
|
114
|
+
.describe('Display name that corresponds to the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type.'),
|
|
112
115
|
code: z
|
|
113
116
|
.string()
|
|
114
117
|
.optional()
|
|
115
118
|
.nullable()
|
|
116
|
-
.describe('Access (PIN) code for the credential.'),
|
|
119
|
+
.describe('Access (PIN) code for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).'),
|
|
117
120
|
is_one_time_use: z
|
|
118
121
|
.boolean()
|
|
119
122
|
.optional()
|
|
120
|
-
.describe('Indicates whether the credential can only be used once. If
|
|
121
|
-
card_number: z
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
.describe('Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use.'),
|
|
124
|
+
card_number: z
|
|
125
|
+
.string()
|
|
126
|
+
.optional()
|
|
127
|
+
.nullable()
|
|
128
|
+
.describe('Number of the card associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).'),
|
|
129
|
+
is_issued: z
|
|
130
|
+
.boolean()
|
|
131
|
+
.optional()
|
|
132
|
+
.describe('Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) has been encoded onto a card.'),
|
|
133
|
+
issued_at: z
|
|
134
|
+
.string()
|
|
135
|
+
.datetime()
|
|
136
|
+
.optional()
|
|
137
|
+
.nullable()
|
|
138
|
+
.describe('Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was encoded onto a card.'),
|
|
139
|
+
access_method: acs_credential_access_method_type.describe('Access method for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`.'),
|
|
125
140
|
external_type: acs_credential_external_type
|
|
126
141
|
.optional()
|
|
127
|
-
.describe('Brand-specific terminology for the credential type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`.'),
|
|
142
|
+
.describe('Brand-specific terminology for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`.'),
|
|
128
143
|
external_type_display_name: z
|
|
129
144
|
.string()
|
|
130
145
|
.optional()
|
|
131
|
-
.describe('Display name that corresponds to the brand-specific terminology for the credential type.'),
|
|
146
|
+
.describe('Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type.'),
|
|
132
147
|
created_at: z
|
|
133
148
|
.string()
|
|
134
149
|
.datetime()
|
|
135
|
-
.describe('Date and time at which the credential was created.'),
|
|
150
|
+
.describe('Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was created.'),
|
|
136
151
|
workspace_id: z
|
|
137
152
|
.string()
|
|
138
153
|
.uuid()
|
|
139
|
-
.describe('ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the credential.'),
|
|
154
|
+
.describe('ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).'),
|
|
140
155
|
starts_at: z
|
|
141
156
|
.string()
|
|
142
157
|
.optional()
|
|
143
|
-
.describe('Date and time at which the credential validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.'),
|
|
158
|
+
.describe('Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.'),
|
|
144
159
|
ends_at: z
|
|
145
160
|
.string()
|
|
146
161
|
.optional()
|
|
147
|
-
.describe('Date and time at which the credential validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.'),
|
|
162
|
+
.describe('Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.'),
|
|
148
163
|
errors: z
|
|
149
164
|
.array(z.object({
|
|
150
165
|
error_code: z.string(),
|
|
151
166
|
message: z.string(),
|
|
152
167
|
}))
|
|
153
|
-
.describe('Errors associated with the
|
|
168
|
+
.describe('Errors associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).'),
|
|
154
169
|
warnings: z
|
|
155
170
|
.array(acs_credential_warning)
|
|
156
|
-
.describe('Warnings associated with the
|
|
171
|
+
.describe('Warnings associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).'),
|
|
157
172
|
is_multi_phone_sync_credential: z
|
|
158
173
|
.boolean()
|
|
159
174
|
.optional()
|
|
160
|
-
.describe('Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).'),
|
|
175
|
+
.describe('Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).'),
|
|
161
176
|
is_latest_desired_state_synced_with_provider: z
|
|
162
177
|
.boolean()
|
|
163
178
|
.nullable()
|
|
164
179
|
.optional()
|
|
165
|
-
.describe('Indicates whether the latest state of the credential has been synced from Seam to the provider.'),
|
|
180
|
+
.describe('Indicates whether the latest state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) has been synced from Seam to the provider.'),
|
|
166
181
|
latest_desired_state_synced_with_provider_at: z
|
|
167
182
|
.string()
|
|
168
183
|
.datetime()
|
|
169
184
|
.nullable()
|
|
170
185
|
.optional()
|
|
171
|
-
.describe('Date and time at which the state of the credential was most recently synced from Seam to the provider.'),
|
|
186
|
+
.describe('Date and time at which the state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was most recently synced from Seam to the provider.'),
|
|
172
187
|
visionline_metadata: acs_credential_visionline_metadata
|
|
173
188
|
.optional()
|
|
174
|
-
.describe('Visionline-specific metadata for the credential.'),
|
|
189
|
+
.describe('Visionline-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).'),
|
|
175
190
|
assa_abloy_vostio_metadata: acs_credential_vostio_metadata
|
|
176
191
|
.optional()
|
|
177
|
-
.describe('Vostio-specific metadata for the credential.'),
|
|
192
|
+
.describe('Vostio-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).'),
|
|
178
193
|
});
|
|
179
194
|
export const acs_credential = common_acs_credential.merge(z.object({
|
|
180
195
|
is_managed: z.literal(true),
|
|
@@ -182,7 +197,7 @@ export const acs_credential = common_acs_credential.merge(z.object({
|
|
|
182
197
|
---
|
|
183
198
|
route_path: /acs/credentials
|
|
184
199
|
---
|
|
185
|
-
Means by which
|
|
200
|
+
Means by which an [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) gains access at an [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). The \`acs_credential\` object represents a [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) that provides an ACS user access within an [access control system](https://docs.seam.co/latest/capability-guides/access-systems). For each \`acs_credential\` object, you define the access method. You can also specify additional properties, such as a PIN code.
|
|
186
201
|
`);
|
|
187
202
|
export const unmanaged_acs_credential = common_acs_credential.merge(z.object({
|
|
188
203
|
is_managed: z.literal(false),
|
|
@@ -190,46 +205,74 @@ export const unmanaged_acs_credential = common_acs_credential.merge(z.object({
|
|
|
190
205
|
---
|
|
191
206
|
route_path: /acs/credentials/unmanaged
|
|
192
207
|
---
|
|
193
|
-
Means by which
|
|
208
|
+
Means by which an [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) gains access at an [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). The \`unmanaged_acs_credential\` object, which is not managed by Seam, represents a [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) that provides an ACS user access within an [access control system](https://docs.seam.co/latest/capability-guides/access-systems). For each \`acs_credential\` object, you define the access method. You can also specify additional properties, such as a PIN code.
|
|
194
209
|
`);
|
|
195
210
|
export const acs_credential_on_encoder = z.object({
|
|
196
211
|
created_at: z
|
|
197
212
|
.string()
|
|
198
213
|
.datetime()
|
|
199
214
|
.nullable()
|
|
200
|
-
.describe('Date and time the credential was created.'),
|
|
215
|
+
.describe('Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was created.'),
|
|
201
216
|
is_issued: z.boolean().nullable(),
|
|
202
217
|
starts_at: z
|
|
203
218
|
.string()
|
|
204
219
|
.datetime()
|
|
205
220
|
.nullable()
|
|
206
|
-
.describe('Date and time the credential
|
|
221
|
+
.describe('Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) becomes usable.'),
|
|
207
222
|
ends_at: z
|
|
208
223
|
.string()
|
|
209
224
|
.datetime()
|
|
210
225
|
.nullable()
|
|
211
|
-
.describe('Date and time the credential will stop being
|
|
226
|
+
.describe('Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) will stop being usable.'),
|
|
212
227
|
card_number: z
|
|
213
228
|
.string()
|
|
214
229
|
.nullable()
|
|
215
|
-
.describe('A number or string that physically identifies
|
|
230
|
+
.describe('A number or string that physically identifies the card associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).'),
|
|
216
231
|
visionline_metadata: z
|
|
217
232
|
.object({
|
|
218
|
-
card_id: z
|
|
233
|
+
card_id: z
|
|
234
|
+
.string()
|
|
235
|
+
.describe('Card ID for the Visionline card associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).'),
|
|
219
236
|
// TODO card_function_type: z.enum(["guest", "staff"]), // computed, looks at door ops, and checks is guest op is present.
|
|
220
|
-
cancelled: z
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
237
|
+
cancelled: z
|
|
238
|
+
.boolean()
|
|
239
|
+
.describe('Indicates whether the card associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) is cancelled.'),
|
|
240
|
+
discarded: z
|
|
241
|
+
.boolean()
|
|
242
|
+
.describe('Indicates whether the card associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) is discarded.'),
|
|
243
|
+
expired: z
|
|
244
|
+
.boolean()
|
|
245
|
+
.describe('Indicates whether the card associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) is expired.'),
|
|
246
|
+
overwritten: z
|
|
247
|
+
.boolean()
|
|
248
|
+
.describe('Indicates whether the card associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) is overwritten.'),
|
|
249
|
+
overridden: z
|
|
250
|
+
.boolean()
|
|
251
|
+
.optional()
|
|
252
|
+
.describe('Indicates whether the card associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) is overridden.'),
|
|
253
|
+
pending_auto_update: z
|
|
254
|
+
.boolean()
|
|
255
|
+
.describe('Indicates whether the card associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) is pending auto-update.'),
|
|
256
|
+
card_format: z
|
|
257
|
+
.enum(['TLCode', 'rfid48'])
|
|
258
|
+
.describe('Format of the card associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).'),
|
|
259
|
+
card_holder: z
|
|
260
|
+
.string()
|
|
261
|
+
.optional()
|
|
262
|
+
.describe('Holden of the card associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).'),
|
|
263
|
+
number_of_issued_cards: z
|
|
264
|
+
.number()
|
|
265
|
+
.describe('Number of issued cards associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).'),
|
|
266
|
+
guest_acs_entrance_ids: z
|
|
267
|
+
.array(z.string().uuid())
|
|
268
|
+
.optional()
|
|
269
|
+
.describe('IDs of the guest [entrances](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).'),
|
|
270
|
+
common_acs_entrance_ids: z
|
|
271
|
+
.array(z.string().uuid())
|
|
272
|
+
.optional()
|
|
273
|
+
.describe('IDs of the common [entrances](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).'),
|
|
231
274
|
})
|
|
232
275
|
.optional()
|
|
233
|
-
.describe('Visionline-specific metadata for the credential.'),
|
|
276
|
+
.describe('Visionline-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).'),
|
|
234
277
|
});
|
|
235
278
|
//# sourceMappingURL=acs-credential.js.map
|
|
@@ -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,OAAO,EACL,kCAAkC,EAClC,8BAA8B,GAC/B,MAAM,qBAAqB,CAAA;AAE5B,wEAAwE;AACxE,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC;IACjD,UAAU;IACV,kBAAkB;IAClB,gBAAgB;IAChB,iBAAiB;IACjB,qBAAqB;IACrB,uBAAuB;IACvB,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,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;IAC/D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,0GAA0G,CAC3G;CACJ,CAAC,CAAA;AAEF,MAAM,wBAAwB,GAC5B,sGAAsG,CAAA;AAExG,MAAM,oBAAoB,GAAG,6BAA6B;KACvD,MAAM,CAAC;IACN,YAAY,EAAE,CAAC;SACZ,OAAO,CAAC,sBAAsB,CAAC;SAC/B,QAAQ,CAAC,wBAAwB,CAAC;CACtC,CAAC;KACD,QAAQ,
|
|
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,EACL,kCAAkC,EAClC,8BAA8B,GAC/B,MAAM,qBAAqB,CAAA;AAE5B,wEAAwE;AACxE,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC;IACjD,UAAU;IACV,kBAAkB;IAClB,gBAAgB;IAChB,iBAAiB;IACjB,qBAAqB;IACrB,uBAAuB;IACvB,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,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;IAC/D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,0GAA0G,CAC3G;CACJ,CAAC,CAAA;AAEF,MAAM,wBAAwB,GAC5B,sGAAsG,CAAA;AAExG,MAAM,oBAAoB,GAAG,6BAA6B;KACvD,MAAM,CAAC;IACN,YAAY,EAAE,CAAC;SACZ,OAAO,CAAC,sBAAsB,CAAC;SAC/B,QAAQ,CAAC,wBAAwB,CAAC;CACtC,CAAC;KAC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aACV,QAAQ,CACP,iOAAiO,CAClO;QACH,uBAAuB,EAAE,CAAC;aACvB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;aACxB,QAAQ,EAAE;aACV,QAAQ,CACP,kOAAkO,CACnO;KACJ,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,CACP,uIAAuI,CACxI;CACJ,CAAC,CAAA"}
|
|
@@ -49,24 +49,24 @@ export declare const acs_encoder: z.ZodObject<{
|
|
|
49
49
|
created_at: z.ZodString;
|
|
50
50
|
display_name: z.ZodString;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
display_name: string;
|
|
52
53
|
created_at: string;
|
|
53
54
|
errors: {
|
|
54
55
|
message: string;
|
|
55
56
|
created_at: string;
|
|
56
57
|
error_code: "acs_encoder_removed";
|
|
57
58
|
}[];
|
|
58
|
-
display_name: string;
|
|
59
59
|
workspace_id: string;
|
|
60
60
|
acs_system_id: string;
|
|
61
61
|
acs_encoder_id: string;
|
|
62
62
|
}, {
|
|
63
|
+
display_name: string;
|
|
63
64
|
created_at: string;
|
|
64
65
|
errors: {
|
|
65
66
|
message: string;
|
|
66
67
|
created_at: string;
|
|
67
68
|
error_code: "acs_encoder_removed";
|
|
68
69
|
}[];
|
|
69
|
-
display_name: string;
|
|
70
70
|
workspace_id: string;
|
|
71
71
|
acs_system_id: string;
|
|
72
72
|
acs_encoder_id: string;
|
|
@@ -16,28 +16,33 @@ const acs_encoder_error =
|
|
|
16
16
|
// z.union([
|
|
17
17
|
acs_encoder_removed
|
|
18
18
|
// ])
|
|
19
|
-
.describe('Error associated with the
|
|
19
|
+
.describe('Error associated with the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).');
|
|
20
20
|
const acs_encoder_error_map = z.object({
|
|
21
21
|
acs_encoder_removed: acs_encoder_removed.optional().nullable(),
|
|
22
22
|
});
|
|
23
23
|
export const acs_encoder = z.object({
|
|
24
|
-
acs_encoder_id: z
|
|
24
|
+
acs_encoder_id: z
|
|
25
|
+
.string()
|
|
26
|
+
.uuid()
|
|
27
|
+
.describe('ID of the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners.'),
|
|
25
28
|
acs_system_id: z
|
|
26
29
|
.string()
|
|
27
30
|
.uuid()
|
|
28
|
-
.describe('ID of the access control system that contains the
|
|
31
|
+
.describe('ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).'),
|
|
29
32
|
workspace_id: z
|
|
30
33
|
.string()
|
|
31
34
|
.uuid()
|
|
32
|
-
.describe('ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the
|
|
35
|
+
.describe('ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).'),
|
|
33
36
|
errors: z
|
|
34
37
|
.array(acs_encoder_error)
|
|
35
|
-
.describe('Errors associated with the
|
|
38
|
+
.describe('Errors associated with the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).'),
|
|
36
39
|
created_at: z
|
|
37
40
|
.string()
|
|
38
41
|
.datetime()
|
|
39
|
-
.describe('Date and time at which the
|
|
40
|
-
display_name: z
|
|
42
|
+
.describe('Date and time at which the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners) was created.'),
|
|
43
|
+
display_name: z
|
|
44
|
+
.string()
|
|
45
|
+
.describe('Display name for the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).'),
|
|
41
46
|
}).describe(`
|
|
42
47
|
---
|
|
43
48
|
route_path: /acs/encoders
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acs-encoder.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-encoder.ts"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,QAAQ,CACP,4IAA4I,CAC7I,CAAA;AAEL,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,mBAAmB,EAAE,mBAAmB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC/D,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,cAAc,EAAE,CAAC;SACd,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,2HAA2H,CAC5H;IACH,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,oOAAoO,CACrO;IACH,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,gNAAgN,CACjN;IACH,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,iBAAiB,CAAC;SACxB,QAAQ,CACP,6IAA6I,CAC9I;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,yJAAyJ,CAC1J;IACH,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,CACP,uIAAuI,CACxI;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
|
|
@@ -126,12 +126,12 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
126
126
|
door_description?: string | undefined;
|
|
127
127
|
}>>;
|
|
128
128
|
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
display_name: string;
|
|
129
130
|
created_at: string;
|
|
130
131
|
errors: {
|
|
131
132
|
message: string;
|
|
132
133
|
error_code: string;
|
|
133
134
|
}[];
|
|
134
|
-
display_name: string;
|
|
135
135
|
acs_system_id: string;
|
|
136
136
|
acs_entrance_id: string;
|
|
137
137
|
salto_ks_metadata?: {
|
|
@@ -174,12 +174,12 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
174
174
|
door_description?: string | undefined;
|
|
175
175
|
} | undefined;
|
|
176
176
|
}, {
|
|
177
|
+
display_name: string;
|
|
177
178
|
created_at: string;
|
|
178
179
|
errors: {
|
|
179
180
|
message: string;
|
|
180
181
|
error_code: string;
|
|
181
182
|
}[];
|
|
182
|
-
display_name: string;
|
|
183
183
|
acs_system_id: string;
|
|
184
184
|
acs_entrance_id: string;
|
|
185
185
|
salto_ks_metadata?: {
|
|
@@ -5,23 +5,46 @@ export const acs_entrance = z.object({
|
|
|
5
5
|
acs_system_id: z
|
|
6
6
|
.string()
|
|
7
7
|
.uuid()
|
|
8
|
-
.describe('ID of the access control system that contains the entrance.'),
|
|
9
|
-
acs_entrance_id: z
|
|
8
|
+
.describe('ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).'),
|
|
9
|
+
acs_entrance_id: z
|
|
10
|
+
.string()
|
|
11
|
+
.uuid()
|
|
12
|
+
.describe('ID of the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).'),
|
|
10
13
|
created_at: z
|
|
11
14
|
.string()
|
|
12
15
|
.datetime()
|
|
13
|
-
.describe('Date and time at which the entrance was created.'),
|
|
14
|
-
display_name: z
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
.describe('Date and time at which the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) was created.'),
|
|
17
|
+
display_name: z
|
|
18
|
+
.string()
|
|
19
|
+
.describe('Display name for the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).'),
|
|
20
|
+
errors: z
|
|
21
|
+
.array(z.object({
|
|
22
|
+
error_code: z
|
|
23
|
+
.string()
|
|
24
|
+
.describe('Unique identifier of the type of error. Enables quick recognition and categorization of the issue.'),
|
|
25
|
+
message: z
|
|
26
|
+
.string()
|
|
27
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
28
|
+
}))
|
|
29
|
+
.describe('Errors associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).'),
|
|
30
|
+
latch_metadata: acs_entrance_latch_metadata
|
|
31
|
+
.optional()
|
|
32
|
+
.describe('Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).'),
|
|
33
|
+
visionline_metadata: acs_entrance_visionline_metadata
|
|
34
|
+
.optional()
|
|
35
|
+
.describe('Visionline-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).'),
|
|
36
|
+
salto_ks_metadata: acs_entrance_salto_ks_metadata
|
|
37
|
+
.optional()
|
|
38
|
+
.describe('Salto KS-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).'),
|
|
39
|
+
dormakaba_community_metadata: acs_entrance_dormakaba_community_metadata
|
|
40
|
+
.optional()
|
|
41
|
+
.describe('dormakaba Community-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).'),
|
|
42
|
+
assa_abloy_vostio_metadata: acs_entrance_assa_abloy_vostio_metadata
|
|
43
|
+
.optional()
|
|
44
|
+
.describe('ASSA ABLOY Vostio-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).'),
|
|
45
|
+
salto_space_metadata: acs_entrance_salto_space_metadata
|
|
46
|
+
.optional()
|
|
47
|
+
.describe('Salto Space-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).'),
|
|
25
48
|
}).describe(`
|
|
26
49
|
---
|
|
27
50
|
route_path: /acs/entrances
|
|
@@ -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,OAAO,EACL,uCAAuC,EACvC,yCAAyC,EACzC,2BAA2B,EAC3B,8BAA8B,EAC9B,gCAAgC,GACjC,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,iCAAiC,EAAE,MAAM,2BAA2B,CAAA;AAE7E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,
|
|
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,uCAAuC,EACvC,yCAAyC,EACzC,2BAA2B,EAC3B,8BAA8B,EAC9B,gCAAgC,GACjC,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,iCAAiC,EAAE,MAAM,2BAA2B,CAAA;AAE7E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,yNAAyN,CAC1N;IACH,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,iHAAiH,CAClH;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,8IAA8I,CAC/I;IACH,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,CACP,4HAA4H,CAC7H;IACH,MAAM,EAAE,CAAC;SACN,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,QAAQ,CACP,oGAAoG,CACrG;QACH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