@seamapi/types 1.601.0 → 1.602.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 +48 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +352 -0
- package/dist/index.cjs +48 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +30 -0
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +15 -0
- package/lib/seam/connect/models/action-attempts/encode-credential.js +11 -0
- package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +15 -0
- package/lib/seam/connect/models/action-attempts/scan-credential.js +11 -0
- package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +84 -0
- package/lib/seam/connect/openapi.js +32 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +280 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/encode-credential.ts +14 -0
- package/src/lib/seam/connect/models/action-attempts/scan-credential.ts +14 -0
- package/src/lib/seam/connect/openapi.ts +38 -0
- package/src/lib/seam/connect/route-types.ts +336 -0
|
@@ -62,11 +62,25 @@ const credential_cannot_be_reissued = z
|
|
|
62
62
|
'Error to indicate that the affected credential cannot be reissued.',
|
|
63
63
|
)
|
|
64
64
|
|
|
65
|
+
const no_card_on_encoder_error = z
|
|
66
|
+
.object({
|
|
67
|
+
type: z
|
|
68
|
+
.literal('no_card_on_encoder')
|
|
69
|
+
.describe('Error type to indicate that there is no card on the encoder.'),
|
|
70
|
+
message: z
|
|
71
|
+
.string()
|
|
72
|
+
.describe(
|
|
73
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
74
|
+
),
|
|
75
|
+
})
|
|
76
|
+
.describe('Error to indicate that there is no card on the encoder.')
|
|
77
|
+
|
|
65
78
|
const error = z.union([
|
|
66
79
|
...common_action_attempt_errors,
|
|
67
80
|
no_credential_on_encoder_error,
|
|
68
81
|
incompatible_card_format_error,
|
|
69
82
|
credential_cannot_be_reissued,
|
|
83
|
+
no_card_on_encoder_error,
|
|
70
84
|
])
|
|
71
85
|
|
|
72
86
|
const result = acs_credential
|
|
@@ -31,9 +31,23 @@ const no_credential_on_encoder_error = z
|
|
|
31
31
|
})
|
|
32
32
|
.describe('Error to indicate that there is no credential on the encoder.')
|
|
33
33
|
|
|
34
|
+
const no_card_on_encoder_error = z
|
|
35
|
+
.object({
|
|
36
|
+
type: z
|
|
37
|
+
.literal('no_card_on_encoder')
|
|
38
|
+
.describe('Error type to indicate that there is no card on the encoder.'),
|
|
39
|
+
message: z
|
|
40
|
+
.string()
|
|
41
|
+
.describe(
|
|
42
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
43
|
+
),
|
|
44
|
+
})
|
|
45
|
+
.describe('Error to indicate that there is no card on the encoder.')
|
|
46
|
+
|
|
34
47
|
const error = z.union([
|
|
35
48
|
...common_action_attempt_errors,
|
|
36
49
|
no_credential_on_encoder_error,
|
|
50
|
+
no_card_on_encoder_error,
|
|
37
51
|
])
|
|
38
52
|
|
|
39
53
|
const warning = z
|
|
@@ -5684,6 +5684,25 @@ export default {
|
|
|
5684
5684
|
required: ['type', 'message'],
|
|
5685
5685
|
type: 'object',
|
|
5686
5686
|
},
|
|
5687
|
+
{
|
|
5688
|
+
description:
|
|
5689
|
+
'Error to indicate that there is no card on the encoder.',
|
|
5690
|
+
properties: {
|
|
5691
|
+
message: {
|
|
5692
|
+
description:
|
|
5693
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
5694
|
+
type: 'string',
|
|
5695
|
+
},
|
|
5696
|
+
type: {
|
|
5697
|
+
description:
|
|
5698
|
+
'Error type to indicate that there is no card on the encoder.',
|
|
5699
|
+
enum: ['no_card_on_encoder'],
|
|
5700
|
+
type: 'string',
|
|
5701
|
+
},
|
|
5702
|
+
},
|
|
5703
|
+
required: ['type', 'message'],
|
|
5704
|
+
type: 'object',
|
|
5705
|
+
},
|
|
5687
5706
|
],
|
|
5688
5707
|
},
|
|
5689
5708
|
result: {
|
|
@@ -6793,6 +6812,25 @@ export default {
|
|
|
6793
6812
|
required: ['type', 'message'],
|
|
6794
6813
|
type: 'object',
|
|
6795
6814
|
},
|
|
6815
|
+
{
|
|
6816
|
+
description:
|
|
6817
|
+
'Error to indicate that there is no card on the encoder.',
|
|
6818
|
+
properties: {
|
|
6819
|
+
message: {
|
|
6820
|
+
description:
|
|
6821
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
6822
|
+
type: 'string',
|
|
6823
|
+
},
|
|
6824
|
+
type: {
|
|
6825
|
+
description:
|
|
6826
|
+
'Error type to indicate that there is no card on the encoder.',
|
|
6827
|
+
enum: ['no_card_on_encoder'],
|
|
6828
|
+
type: 'string',
|
|
6829
|
+
},
|
|
6830
|
+
},
|
|
6831
|
+
required: ['type', 'message'],
|
|
6832
|
+
type: 'object',
|
|
6833
|
+
},
|
|
6796
6834
|
],
|
|
6797
6835
|
},
|
|
6798
6836
|
result: {
|