@seamapi/types 1.287.3 → 1.288.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 +50 -54
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +189 -172
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +18 -18
- package/lib/seam/connect/models/action-attempts/action-attempt.js +4 -4
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/{encode-credential.d.ts → encode-card.d.ts} +11 -11
- package/lib/seam/connect/models/action-attempts/{encode-credential.js → encode-card.js} +6 -6
- package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/{scan-credential.d.ts → scan-card.d.ts} +11 -11
- package/lib/seam/connect/models/action-attempts/{scan-credential.js → scan-card.js} +7 -7
- package/lib/seam/connect/models/action-attempts/scan-card.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +21 -6
- package/lib/seam/connect/openapi.js +37 -41
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +150 -148
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +4 -4
- package/src/lib/seam/connect/models/action-attempts/{encode-credential.ts → encode-card.ts} +6 -8
- package/src/lib/seam/connect/models/action-attempts/{scan-credential.ts → scan-card.ts} +7 -9
- package/src/lib/seam/connect/openapi.ts +38 -46
- package/src/lib/seam/connect/route-types.ts +152 -148
- package/lib/seam/connect/models/action-attempts/encode-credential.js.map +0 -1
- package/lib/seam/connect/models/action-attempts/scan-credential.js.map +0 -1
|
@@ -163,19 +163,19 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
163
163
|
result: z.ZodNull;
|
|
164
164
|
error: z.ZodNull;
|
|
165
165
|
}>, {
|
|
166
|
-
action_type: z.ZodLiteral<"
|
|
166
|
+
action_type: z.ZodLiteral<"SCAN_CARD">;
|
|
167
167
|
}>, "strip", z.ZodTypeAny, {
|
|
168
168
|
error: null;
|
|
169
169
|
status: "pending";
|
|
170
170
|
action_attempt_id: string;
|
|
171
171
|
result: null;
|
|
172
|
-
action_type: "
|
|
172
|
+
action_type: "SCAN_CARD";
|
|
173
173
|
}, {
|
|
174
174
|
error: null;
|
|
175
175
|
status: "pending";
|
|
176
176
|
action_attempt_id: string;
|
|
177
177
|
result: null;
|
|
178
|
-
action_type: "
|
|
178
|
+
action_type: "SCAN_CARD";
|
|
179
179
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
180
180
|
action_attempt_id: z.ZodString;
|
|
181
181
|
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
@@ -183,7 +183,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
183
183
|
status: z.ZodLiteral<"success">;
|
|
184
184
|
error: z.ZodNull;
|
|
185
185
|
}>, {
|
|
186
|
-
action_type: z.ZodLiteral<"
|
|
186
|
+
action_type: z.ZodLiteral<"SCAN_CARD">;
|
|
187
187
|
result: z.ZodObject<{
|
|
188
188
|
acs_credential_on_encoder: z.ZodObject<{
|
|
189
189
|
created_at: z.ZodNullable<z.ZodString>;
|
|
@@ -912,7 +912,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
912
912
|
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
913
913
|
} | null;
|
|
914
914
|
};
|
|
915
|
-
action_type: "
|
|
915
|
+
action_type: "SCAN_CARD";
|
|
916
916
|
}, {
|
|
917
917
|
error: null;
|
|
918
918
|
status: "success";
|
|
@@ -1025,7 +1025,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1025
1025
|
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
1026
1026
|
} | null;
|
|
1027
1027
|
};
|
|
1028
|
-
action_type: "
|
|
1028
|
+
action_type: "SCAN_CARD";
|
|
1029
1029
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1030
1030
|
action_attempt_id: z.ZodString;
|
|
1031
1031
|
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
@@ -1033,7 +1033,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1033
1033
|
status: z.ZodLiteral<"error">;
|
|
1034
1034
|
result: z.ZodNull;
|
|
1035
1035
|
}>, {
|
|
1036
|
-
action_type: z.ZodLiteral<"
|
|
1036
|
+
action_type: z.ZodLiteral<"SCAN_CARD">;
|
|
1037
1037
|
error: z.ZodUnion<[z.ZodObject<{
|
|
1038
1038
|
type: z.ZodLiteral<"uncategorized_error">;
|
|
1039
1039
|
message: z.ZodString;
|
|
@@ -1076,7 +1076,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1076
1076
|
status: "error";
|
|
1077
1077
|
action_attempt_id: string;
|
|
1078
1078
|
result: null;
|
|
1079
|
-
action_type: "
|
|
1079
|
+
action_type: "SCAN_CARD";
|
|
1080
1080
|
}, {
|
|
1081
1081
|
error: {
|
|
1082
1082
|
type: "uncategorized_error";
|
|
@@ -1091,7 +1091,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1091
1091
|
status: "error";
|
|
1092
1092
|
action_attempt_id: string;
|
|
1093
1093
|
result: null;
|
|
1094
|
-
action_type: "
|
|
1094
|
+
action_type: "SCAN_CARD";
|
|
1095
1095
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1096
1096
|
action_attempt_id: z.ZodString;
|
|
1097
1097
|
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
@@ -1100,19 +1100,19 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1100
1100
|
result: z.ZodNull;
|
|
1101
1101
|
error: z.ZodNull;
|
|
1102
1102
|
}>, {
|
|
1103
|
-
action_type: z.ZodLiteral<"
|
|
1103
|
+
action_type: z.ZodLiteral<"ENCODE_CARD">;
|
|
1104
1104
|
}>, "strip", z.ZodTypeAny, {
|
|
1105
1105
|
error: null;
|
|
1106
1106
|
status: "pending";
|
|
1107
1107
|
action_attempt_id: string;
|
|
1108
1108
|
result: null;
|
|
1109
|
-
action_type: "
|
|
1109
|
+
action_type: "ENCODE_CARD";
|
|
1110
1110
|
}, {
|
|
1111
1111
|
error: null;
|
|
1112
1112
|
status: "pending";
|
|
1113
1113
|
action_attempt_id: string;
|
|
1114
1114
|
result: null;
|
|
1115
|
-
action_type: "
|
|
1115
|
+
action_type: "ENCODE_CARD";
|
|
1116
1116
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1117
1117
|
action_attempt_id: z.ZodString;
|
|
1118
1118
|
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
@@ -1120,7 +1120,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1120
1120
|
status: z.ZodLiteral<"success">;
|
|
1121
1121
|
error: z.ZodNull;
|
|
1122
1122
|
}>, {
|
|
1123
|
-
action_type: z.ZodLiteral<"
|
|
1123
|
+
action_type: z.ZodLiteral<"ENCODE_CARD">;
|
|
1124
1124
|
result: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
1125
1125
|
acs_credential_id: z.ZodString;
|
|
1126
1126
|
acs_user_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1509,7 +1509,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1509
1509
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
1510
1510
|
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
1511
1511
|
};
|
|
1512
|
-
action_type: "
|
|
1512
|
+
action_type: "ENCODE_CARD";
|
|
1513
1513
|
}, {
|
|
1514
1514
|
error: null;
|
|
1515
1515
|
status: "success";
|
|
@@ -1595,7 +1595,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1595
1595
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
1596
1596
|
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
1597
1597
|
};
|
|
1598
|
-
action_type: "
|
|
1598
|
+
action_type: "ENCODE_CARD";
|
|
1599
1599
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1600
1600
|
action_attempt_id: z.ZodString;
|
|
1601
1601
|
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
@@ -1603,7 +1603,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1603
1603
|
status: z.ZodLiteral<"error">;
|
|
1604
1604
|
result: z.ZodNull;
|
|
1605
1605
|
}>, {
|
|
1606
|
-
action_type: z.ZodLiteral<"
|
|
1606
|
+
action_type: z.ZodLiteral<"ENCODE_CARD">;
|
|
1607
1607
|
error: z.ZodUnion<[z.ZodObject<{
|
|
1608
1608
|
type: z.ZodLiteral<"uncategorized_error">;
|
|
1609
1609
|
message: z.ZodString;
|
|
@@ -1658,7 +1658,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1658
1658
|
status: "error";
|
|
1659
1659
|
action_attempt_id: string;
|
|
1660
1660
|
result: null;
|
|
1661
|
-
action_type: "
|
|
1661
|
+
action_type: "ENCODE_CARD";
|
|
1662
1662
|
}, {
|
|
1663
1663
|
error: {
|
|
1664
1664
|
type: "uncategorized_error";
|
|
@@ -1676,7 +1676,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
1676
1676
|
status: "error";
|
|
1677
1677
|
action_attempt_id: string;
|
|
1678
1678
|
result: null;
|
|
1679
|
-
action_type: "
|
|
1679
|
+
action_type: "ENCODE_CARD";
|
|
1680
1680
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1681
1681
|
action_attempt_id: z.ZodString;
|
|
1682
1682
|
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { activate_climate_preset_action_attempt } from './activate-climate-preset.js';
|
|
3
3
|
import { deprecated_action_attempts } from './deprecated.js';
|
|
4
|
-
import {
|
|
4
|
+
import { encode_card_action_attempt } from './encode-card.js';
|
|
5
5
|
import { lock_door_action_attempt } from './lock-door.js';
|
|
6
6
|
import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js';
|
|
7
|
-
import {
|
|
7
|
+
import { scan_card_action_attempt } from './scan-card.js';
|
|
8
8
|
import { set_cool_action_attempt } from './set-cool.js';
|
|
9
9
|
import { set_fan_mode_action_attempt } from './set-fan-mode.js';
|
|
10
10
|
import { set_heat_action_attempt } from './set-heat.js';
|
|
@@ -14,8 +14,8 @@ import { unlock_door_action_attempt } from './unlock-door.js';
|
|
|
14
14
|
export const action_attempt = z.union([
|
|
15
15
|
...lock_door_action_attempt.options,
|
|
16
16
|
...unlock_door_action_attempt.options,
|
|
17
|
-
...
|
|
18
|
-
...
|
|
17
|
+
...scan_card_action_attempt.options,
|
|
18
|
+
...encode_card_action_attempt.options,
|
|
19
19
|
...reset_sandbox_workspace_action_attempt.options,
|
|
20
20
|
...set_cool_action_attempt.options,
|
|
21
21
|
...set_heat_action_attempt.options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,0BAA0B;CAC9B,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const encode_card_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3
3
|
action_attempt_id: z.ZodString;
|
|
4
4
|
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
5
5
|
}, {
|
|
@@ -7,19 +7,19 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
7
7
|
result: z.ZodNull;
|
|
8
8
|
error: z.ZodNull;
|
|
9
9
|
}>, {
|
|
10
|
-
action_type: z.ZodLiteral<"
|
|
10
|
+
action_type: z.ZodLiteral<"ENCODE_CARD">;
|
|
11
11
|
}>, "strip", z.ZodTypeAny, {
|
|
12
12
|
error: null;
|
|
13
13
|
status: "pending";
|
|
14
14
|
action_attempt_id: string;
|
|
15
15
|
result: null;
|
|
16
|
-
action_type: "
|
|
16
|
+
action_type: "ENCODE_CARD";
|
|
17
17
|
}, {
|
|
18
18
|
error: null;
|
|
19
19
|
status: "pending";
|
|
20
20
|
action_attempt_id: string;
|
|
21
21
|
result: null;
|
|
22
|
-
action_type: "
|
|
22
|
+
action_type: "ENCODE_CARD";
|
|
23
23
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
24
24
|
action_attempt_id: z.ZodString;
|
|
25
25
|
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
@@ -27,7 +27,7 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
27
27
|
status: z.ZodLiteral<"success">;
|
|
28
28
|
error: z.ZodNull;
|
|
29
29
|
}>, {
|
|
30
|
-
action_type: z.ZodLiteral<"
|
|
30
|
+
action_type: z.ZodLiteral<"ENCODE_CARD">;
|
|
31
31
|
result: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
32
32
|
acs_credential_id: z.ZodString;
|
|
33
33
|
acs_user_id: z.ZodOptional<z.ZodString>;
|
|
@@ -416,7 +416,7 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
416
416
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
417
417
|
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
418
418
|
};
|
|
419
|
-
action_type: "
|
|
419
|
+
action_type: "ENCODE_CARD";
|
|
420
420
|
}, {
|
|
421
421
|
error: null;
|
|
422
422
|
status: "success";
|
|
@@ -502,7 +502,7 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
502
502
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
503
503
|
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
504
504
|
};
|
|
505
|
-
action_type: "
|
|
505
|
+
action_type: "ENCODE_CARD";
|
|
506
506
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
507
507
|
action_attempt_id: z.ZodString;
|
|
508
508
|
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
@@ -510,7 +510,7 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
510
510
|
status: z.ZodLiteral<"error">;
|
|
511
511
|
result: z.ZodNull;
|
|
512
512
|
}>, {
|
|
513
|
-
action_type: z.ZodLiteral<"
|
|
513
|
+
action_type: z.ZodLiteral<"ENCODE_CARD">;
|
|
514
514
|
error: z.ZodUnion<[z.ZodObject<{
|
|
515
515
|
type: z.ZodLiteral<"uncategorized_error">;
|
|
516
516
|
message: z.ZodString;
|
|
@@ -565,7 +565,7 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
565
565
|
status: "error";
|
|
566
566
|
action_attempt_id: string;
|
|
567
567
|
result: null;
|
|
568
|
-
action_type: "
|
|
568
|
+
action_type: "ENCODE_CARD";
|
|
569
569
|
}, {
|
|
570
570
|
error: {
|
|
571
571
|
type: "uncategorized_error";
|
|
@@ -583,6 +583,6 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
583
583
|
status: "error";
|
|
584
584
|
action_attempt_id: string;
|
|
585
585
|
result: null;
|
|
586
|
-
action_type: "
|
|
586
|
+
action_type: "ENCODE_CARD";
|
|
587
587
|
}>]>;
|
|
588
|
-
export type
|
|
588
|
+
export type EncodeCardActionAttempt = z.infer<typeof encode_card_action_attempt>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { acs_credential, unmanaged_acs_credential, } from '../acs/acs-credential.js';
|
|
3
3
|
import { common_action_attempt_errors, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
4
|
-
const action_type = z.literal('
|
|
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'),
|
|
7
7
|
message: z.string(),
|
|
@@ -16,20 +16,20 @@ const error = z.union([
|
|
|
16
16
|
incompatible_card_format_error,
|
|
17
17
|
]);
|
|
18
18
|
const result = acs_credential.or(unmanaged_acs_credential);
|
|
19
|
-
export const
|
|
19
|
+
export const encode_card_action_attempt = z.discriminatedUnion('status', [
|
|
20
20
|
common_pending_action_attempt
|
|
21
21
|
.extend({
|
|
22
22
|
action_type,
|
|
23
23
|
})
|
|
24
|
-
.describe('Encoding
|
|
24
|
+
.describe('Encoding card data from physical encoder.'),
|
|
25
25
|
common_succeeded_action_attempt
|
|
26
26
|
.extend({
|
|
27
27
|
action_type,
|
|
28
28
|
result,
|
|
29
29
|
})
|
|
30
|
-
.describe('Encoding
|
|
30
|
+
.describe('Encoding card data from physical encoder succeeded.'),
|
|
31
31
|
common_failed_action_attempt
|
|
32
32
|
.extend({ action_type, error })
|
|
33
|
-
.describe('Encoding
|
|
33
|
+
.describe('Encoding card data from physical encoder failed.'),
|
|
34
34
|
]);
|
|
35
|
-
//# sourceMappingURL=encode-
|
|
35
|
+
//# sourceMappingURL=encode-card.js.map
|
|
@@ -0,0 +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,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,GAAG,4BAA4B;IAC/B,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,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const scan_card_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3
3
|
action_attempt_id: z.ZodString;
|
|
4
4
|
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
5
5
|
}, {
|
|
@@ -7,19 +7,19 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
|
|
|
7
7
|
result: z.ZodNull;
|
|
8
8
|
error: z.ZodNull;
|
|
9
9
|
}>, {
|
|
10
|
-
action_type: z.ZodLiteral<"
|
|
10
|
+
action_type: z.ZodLiteral<"SCAN_CARD">;
|
|
11
11
|
}>, "strip", z.ZodTypeAny, {
|
|
12
12
|
error: null;
|
|
13
13
|
status: "pending";
|
|
14
14
|
action_attempt_id: string;
|
|
15
15
|
result: null;
|
|
16
|
-
action_type: "
|
|
16
|
+
action_type: "SCAN_CARD";
|
|
17
17
|
}, {
|
|
18
18
|
error: null;
|
|
19
19
|
status: "pending";
|
|
20
20
|
action_attempt_id: string;
|
|
21
21
|
result: null;
|
|
22
|
-
action_type: "
|
|
22
|
+
action_type: "SCAN_CARD";
|
|
23
23
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
24
24
|
action_attempt_id: z.ZodString;
|
|
25
25
|
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
@@ -27,7 +27,7 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
|
|
|
27
27
|
status: z.ZodLiteral<"success">;
|
|
28
28
|
error: z.ZodNull;
|
|
29
29
|
}>, {
|
|
30
|
-
action_type: z.ZodLiteral<"
|
|
30
|
+
action_type: z.ZodLiteral<"SCAN_CARD">;
|
|
31
31
|
result: z.ZodObject<{
|
|
32
32
|
acs_credential_on_encoder: z.ZodObject<{
|
|
33
33
|
created_at: z.ZodNullable<z.ZodString>;
|
|
@@ -756,7 +756,7 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
|
|
|
756
756
|
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
757
757
|
} | null;
|
|
758
758
|
};
|
|
759
|
-
action_type: "
|
|
759
|
+
action_type: "SCAN_CARD";
|
|
760
760
|
}, {
|
|
761
761
|
error: null;
|
|
762
762
|
status: "success";
|
|
@@ -869,7 +869,7 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
|
|
|
869
869
|
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
870
870
|
} | null;
|
|
871
871
|
};
|
|
872
|
-
action_type: "
|
|
872
|
+
action_type: "SCAN_CARD";
|
|
873
873
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
874
874
|
action_attempt_id: z.ZodString;
|
|
875
875
|
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
@@ -877,7 +877,7 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
|
|
|
877
877
|
status: z.ZodLiteral<"error">;
|
|
878
878
|
result: z.ZodNull;
|
|
879
879
|
}>, {
|
|
880
|
-
action_type: z.ZodLiteral<"
|
|
880
|
+
action_type: z.ZodLiteral<"SCAN_CARD">;
|
|
881
881
|
error: z.ZodUnion<[z.ZodObject<{
|
|
882
882
|
type: z.ZodLiteral<"uncategorized_error">;
|
|
883
883
|
message: z.ZodString;
|
|
@@ -920,7 +920,7 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
|
|
|
920
920
|
status: "error";
|
|
921
921
|
action_attempt_id: string;
|
|
922
922
|
result: null;
|
|
923
|
-
action_type: "
|
|
923
|
+
action_type: "SCAN_CARD";
|
|
924
924
|
}, {
|
|
925
925
|
error: {
|
|
926
926
|
type: "uncategorized_error";
|
|
@@ -935,6 +935,6 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
|
|
|
935
935
|
status: "error";
|
|
936
936
|
action_attempt_id: string;
|
|
937
937
|
result: null;
|
|
938
|
-
action_type: "
|
|
938
|
+
action_type: "SCAN_CARD";
|
|
939
939
|
}>]>;
|
|
940
|
-
export type
|
|
940
|
+
export type ScanCardActionAttempt = z.infer<typeof scan_card_action_attempt>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { acs_credential, acs_credential_on_encoder, unmanaged_acs_credential, } from '../acs/acs-credential.js';
|
|
3
3
|
import { common_action_attempt_errors, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
4
|
-
const action_type = z.literal('
|
|
4
|
+
const action_type = z.literal('SCAN_CARD');
|
|
5
5
|
const no_card_on_encoder_error = z.object({
|
|
6
6
|
type: z.literal('no_card_on_encoder'),
|
|
7
7
|
message: z.string(),
|
|
@@ -16,26 +16,26 @@ const warning = z.object({
|
|
|
16
16
|
});
|
|
17
17
|
const acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential);
|
|
18
18
|
const result = z.object({
|
|
19
|
-
acs_credential_on_encoder: acs_credential_on_encoder.describe('Snapshot of
|
|
19
|
+
acs_credential_on_encoder: acs_credential_on_encoder.describe('Snapshot of the card data read from the physical encoder.'),
|
|
20
20
|
acs_credential_on_seam: acs_credential_on_seam
|
|
21
21
|
.nullable()
|
|
22
22
|
.describe('Matching acs_credential currently encoded on this card.'),
|
|
23
23
|
warnings: z.array(warning),
|
|
24
24
|
});
|
|
25
|
-
export const
|
|
25
|
+
export const scan_card_action_attempt = z.discriminatedUnion('status', [
|
|
26
26
|
common_pending_action_attempt
|
|
27
27
|
.extend({
|
|
28
28
|
action_type,
|
|
29
29
|
})
|
|
30
|
-
.describe('Reading
|
|
30
|
+
.describe('Reading card data from physical encoder.'),
|
|
31
31
|
common_succeeded_action_attempt
|
|
32
32
|
.extend({
|
|
33
33
|
action_type,
|
|
34
34
|
result,
|
|
35
35
|
})
|
|
36
|
-
.describe('Reading
|
|
36
|
+
.describe('Reading card data from physical encoder succeeded.'),
|
|
37
37
|
common_failed_action_attempt
|
|
38
38
|
.extend({ action_type, error })
|
|
39
|
-
.describe('Reading
|
|
39
|
+
.describe('Reading card data from physical encoder failed.'),
|
|
40
40
|
]);
|
|
41
|
-
//# sourceMappingURL=scan-
|
|
41
|
+
//# sourceMappingURL=scan-card.js.map
|
|
@@ -0,0 +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,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;AAE1C,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,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;IACpB,GAAG,4BAA4B;IAC/B,wBAAwB;CACzB,CAAC,CAAA;AAEF,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IACvB,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,uCAAuC,CAAC;IAChE,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAA;AAEF,MAAM,sBAAsB,GAAG,cAAc,CAAC,EAAE,CAAC,wBAAwB,CAAC,CAAA;AAE1E,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,yBAAyB,EAAE,yBAAyB,CAAC,QAAQ,CAC3D,2DAA2D,CAC5D;IACD,sBAAsB,EAAE,sBAAsB;SAC3C,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC;CAC3B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACrE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;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"}
|
|
@@ -7735,6 +7735,25 @@ declare const _default: {
|
|
|
7735
7735
|
};
|
|
7736
7736
|
type: string;
|
|
7737
7737
|
};
|
|
7738
|
+
assa_abloy_vostio_metadata: {
|
|
7739
|
+
description: string;
|
|
7740
|
+
properties: {
|
|
7741
|
+
join_all_guest_acs_entrances: {
|
|
7742
|
+
type: string;
|
|
7743
|
+
};
|
|
7744
|
+
override_all_guest_acs_entrances: {
|
|
7745
|
+
type: string;
|
|
7746
|
+
};
|
|
7747
|
+
override_guest_acs_entrance_ids: {
|
|
7748
|
+
items: {
|
|
7749
|
+
format: string;
|
|
7750
|
+
type: string;
|
|
7751
|
+
};
|
|
7752
|
+
type: string;
|
|
7753
|
+
};
|
|
7754
|
+
};
|
|
7755
|
+
type: string;
|
|
7756
|
+
};
|
|
7738
7757
|
code: {
|
|
7739
7758
|
description: string;
|
|
7740
7759
|
pattern: string;
|
|
@@ -9045,7 +9064,7 @@ declare const _default: {
|
|
|
9045
9064
|
'x-title': string;
|
|
9046
9065
|
};
|
|
9047
9066
|
};
|
|
9048
|
-
'/acs/encoders/
|
|
9067
|
+
'/acs/encoders/encode_card': {
|
|
9049
9068
|
post: {
|
|
9050
9069
|
operationId: string;
|
|
9051
9070
|
requestBody: {
|
|
@@ -9054,12 +9073,10 @@ declare const _default: {
|
|
|
9054
9073
|
schema: {
|
|
9055
9074
|
properties: {
|
|
9056
9075
|
acs_credential_id: {
|
|
9057
|
-
description: string;
|
|
9058
9076
|
format: string;
|
|
9059
9077
|
type: string;
|
|
9060
9078
|
};
|
|
9061
9079
|
device_id: {
|
|
9062
|
-
description: string;
|
|
9063
9080
|
format: string;
|
|
9064
9081
|
type: string;
|
|
9065
9082
|
};
|
|
@@ -9243,7 +9260,7 @@ declare const _default: {
|
|
|
9243
9260
|
'x-undocumented': string;
|
|
9244
9261
|
};
|
|
9245
9262
|
};
|
|
9246
|
-
'/acs/encoders/
|
|
9263
|
+
'/acs/encoders/scan_card': {
|
|
9247
9264
|
post: {
|
|
9248
9265
|
operationId: string;
|
|
9249
9266
|
requestBody: {
|
|
@@ -9252,12 +9269,10 @@ declare const _default: {
|
|
|
9252
9269
|
schema: {
|
|
9253
9270
|
properties: {
|
|
9254
9271
|
acs_system_id: {
|
|
9255
|
-
description: string;
|
|
9256
9272
|
format: string;
|
|
9257
9273
|
type: string;
|
|
9258
9274
|
};
|
|
9259
9275
|
device_id: {
|
|
9260
|
-
description: string;
|
|
9261
9276
|
format: string;
|
|
9262
9277
|
type: string;
|
|
9263
9278
|
};
|