@seamapi/types 1.261.1 → 1.262.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.
@@ -97,7 +97,7 @@ export interface Routes {
97
97
  result: null;
98
98
  action_type: 'READ_CARD';
99
99
  error: {
100
- type: string;
100
+ type: 'no_card_on_encoder';
101
101
  message: string;
102
102
  };
103
103
  } | {
@@ -701,7 +701,7 @@ export interface Routes {
701
701
  result: null;
702
702
  action_type: 'READ_CARD';
703
703
  error: {
704
- type: string;
704
+ type: 'no_card_on_encoder';
705
705
  message: string;
706
706
  };
707
707
  } | {
@@ -1462,7 +1462,7 @@ export interface Routes {
1462
1462
  result: null;
1463
1463
  action_type: 'READ_CARD';
1464
1464
  error: {
1465
- type: string;
1465
+ type: 'no_card_on_encoder';
1466
1466
  message: string;
1467
1467
  };
1468
1468
  } | {
@@ -2053,7 +2053,7 @@ export interface Routes {
2053
2053
  result: null;
2054
2054
  action_type: 'READ_CARD';
2055
2055
  error: {
2056
- type: string;
2056
+ type: 'no_card_on_encoder';
2057
2057
  message: string;
2058
2058
  };
2059
2059
  } | {
@@ -3370,7 +3370,7 @@ export interface Routes {
3370
3370
  result: null;
3371
3371
  action_type: 'READ_CARD';
3372
3372
  error: {
3373
- type: string;
3373
+ type: 'no_card_on_encoder';
3374
3374
  message: string;
3375
3375
  };
3376
3376
  } | {
@@ -4286,7 +4286,7 @@ export interface Routes {
4286
4286
  result: null;
4287
4287
  action_type: 'READ_CARD';
4288
4288
  error: {
4289
- type: string;
4289
+ type: 'no_card_on_encoder';
4290
4290
  message: string;
4291
4291
  };
4292
4292
  } | {
@@ -5897,7 +5897,7 @@ export interface Routes {
5897
5897
  result: null;
5898
5898
  action_type: 'READ_CARD';
5899
5899
  error: {
5900
- type: string;
5900
+ type: 'no_card_on_encoder';
5901
5901
  message: string;
5902
5902
  };
5903
5903
  } | {
@@ -6350,7 +6350,7 @@ export interface Routes {
6350
6350
  result: null;
6351
6351
  action_type: 'READ_CARD';
6352
6352
  error: {
6353
- type: string;
6353
+ type: 'no_card_on_encoder';
6354
6354
  message: string;
6355
6355
  };
6356
6356
  } | {
@@ -10349,7 +10349,7 @@ export interface Routes {
10349
10349
  result: null;
10350
10350
  action_type: 'READ_CARD';
10351
10351
  error: {
10352
- type: string;
10352
+ type: 'no_card_on_encoder';
10353
10353
  message: string;
10354
10354
  };
10355
10355
  } | {
@@ -10803,7 +10803,7 @@ export interface Routes {
10803
10803
  result: null;
10804
10804
  action_type: 'READ_CARD';
10805
10805
  error: {
10806
- type: string;
10806
+ type: 'no_card_on_encoder';
10807
10807
  message: string;
10808
10808
  };
10809
10809
  } | {
@@ -12199,7 +12199,7 @@ export interface Routes {
12199
12199
  result: null;
12200
12200
  action_type: 'READ_CARD';
12201
12201
  error: {
12202
- type: string;
12202
+ type: 'no_card_on_encoder';
12203
12203
  message: string;
12204
12204
  };
12205
12205
  } | {
@@ -12663,7 +12663,7 @@ export interface Routes {
12663
12663
  result: null;
12664
12664
  action_type: 'READ_CARD';
12665
12665
  error: {
12666
- type: string;
12666
+ type: 'no_card_on_encoder';
12667
12667
  message: string;
12668
12668
  };
12669
12669
  } | {
@@ -13166,7 +13166,7 @@ export interface Routes {
13166
13166
  result: null;
13167
13167
  action_type: 'READ_CARD';
13168
13168
  error: {
13169
- type: string;
13169
+ type: 'no_card_on_encoder';
13170
13170
  message: string;
13171
13171
  };
13172
13172
  } | {
@@ -13802,7 +13802,7 @@ export interface Routes {
13802
13802
  result: null;
13803
13803
  action_type: 'READ_CARD';
13804
13804
  error: {
13805
- type: string;
13805
+ type: 'no_card_on_encoder';
13806
13806
  message: string;
13807
13807
  };
13808
13808
  } | {
@@ -14258,7 +14258,7 @@ export interface Routes {
14258
14258
  result: null;
14259
14259
  action_type: 'READ_CARD';
14260
14260
  error: {
14261
- type: string;
14261
+ type: 'no_card_on_encoder';
14262
14262
  message: string;
14263
14263
  };
14264
14264
  } | {
@@ -15198,7 +15198,7 @@ export interface Routes {
15198
15198
  result: null;
15199
15199
  action_type: 'READ_CARD';
15200
15200
  error: {
15201
- type: string;
15201
+ type: 'no_card_on_encoder';
15202
15202
  message: string;
15203
15203
  };
15204
15204
  } | {
@@ -15656,7 +15656,7 @@ export interface Routes {
15656
15656
  result: null;
15657
15657
  action_type: 'READ_CARD';
15658
15658
  error: {
15659
- type: string;
15659
+ type: 'no_card_on_encoder';
15660
15660
  message: string;
15661
15661
  };
15662
15662
  } | {
@@ -16574,7 +16574,7 @@ export interface Routes {
16574
16574
  result: null;
16575
16575
  action_type: 'READ_CARD';
16576
16576
  error: {
16577
- type: string;
16577
+ type: 'no_card_on_encoder';
16578
16578
  message: string;
16579
16579
  };
16580
16580
  } | {
@@ -17149,7 +17149,7 @@ export interface Routes {
17149
17149
  result: null;
17150
17150
  action_type: 'READ_CARD';
17151
17151
  error: {
17152
- type: string;
17152
+ type: 'no_card_on_encoder';
17153
17153
  message: string;
17154
17154
  };
17155
17155
  } | {
@@ -19072,7 +19072,7 @@ export interface Routes {
19072
19072
  result: null;
19073
19073
  action_type: 'READ_CARD';
19074
19074
  error: {
19075
- type: string;
19075
+ type: 'no_card_on_encoder';
19076
19076
  message: string;
19077
19077
  };
19078
19078
  } | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.261.1",
3
+ "version": "1.262.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -9,7 +9,7 @@ import {
9
9
  const action_type = z.literal('READ_CARD')
10
10
 
11
11
  const error = z.object({
12
- type: z.string(), // TODO This should be typed properly with the possible errors
12
+ type: z.literal('no_card_on_encoder'),
13
13
  message: z.string(),
14
14
  })
15
15
 
@@ -1284,7 +1284,7 @@ export default {
1284
1284
  error: {
1285
1285
  properties: {
1286
1286
  message: { type: 'string' },
1287
- type: { type: 'string' },
1287
+ type: { enum: ['no_card_on_encoder'], type: 'string' },
1288
1288
  },
1289
1289
  required: ['type', 'message'],
1290
1290
  type: 'object',
@@ -106,7 +106,7 @@ export interface Routes {
106
106
  result: null
107
107
  action_type: 'READ_CARD'
108
108
  error: {
109
- type: string
109
+ type: 'no_card_on_encoder'
110
110
  message: string
111
111
  }
112
112
  }
@@ -772,7 +772,7 @@ export interface Routes {
772
772
  result: null
773
773
  action_type: 'READ_CARD'
774
774
  error: {
775
- type: string
775
+ type: 'no_card_on_encoder'
776
776
  message: string
777
777
  }
778
778
  }
@@ -1603,7 +1603,7 @@ export interface Routes {
1603
1603
  result: null
1604
1604
  action_type: 'READ_CARD'
1605
1605
  error: {
1606
- type: string
1606
+ type: 'no_card_on_encoder'
1607
1607
  message: string
1608
1608
  }
1609
1609
  }
@@ -2256,7 +2256,7 @@ export interface Routes {
2256
2256
  result: null
2257
2257
  action_type: 'READ_CARD'
2258
2258
  error: {
2259
- type: string
2259
+ type: 'no_card_on_encoder'
2260
2260
  message: string
2261
2261
  }
2262
2262
  }
@@ -3799,7 +3799,7 @@ export interface Routes {
3799
3799
  result: null
3800
3800
  action_type: 'READ_CARD'
3801
3801
  error: {
3802
- type: string
3802
+ type: 'no_card_on_encoder'
3803
3803
  message: string
3804
3804
  }
3805
3805
  }
@@ -4948,7 +4948,7 @@ export interface Routes {
4948
4948
  result: null
4949
4949
  action_type: 'READ_CARD'
4950
4950
  error: {
4951
- type: string
4951
+ type: 'no_card_on_encoder'
4952
4952
  message: string
4953
4953
  }
4954
4954
  }
@@ -6851,7 +6851,7 @@ export interface Routes {
6851
6851
  result: null
6852
6852
  action_type: 'READ_CARD'
6853
6853
  error: {
6854
- type: string
6854
+ type: 'no_card_on_encoder'
6855
6855
  message: string
6856
6856
  }
6857
6857
  }
@@ -7358,7 +7358,7 @@ export interface Routes {
7358
7358
  result: null
7359
7359
  action_type: 'READ_CARD'
7360
7360
  error: {
7361
- type: string
7361
+ type: 'no_card_on_encoder'
7362
7362
  message: string
7363
7363
  }
7364
7364
  }
@@ -13251,7 +13251,7 @@ export interface Routes {
13251
13251
  result: null
13252
13252
  action_type: 'READ_CARD'
13253
13253
  error: {
13254
- type: string
13254
+ type: 'no_card_on_encoder'
13255
13255
  message: string
13256
13256
  }
13257
13257
  }
@@ -13759,7 +13759,7 @@ export interface Routes {
13759
13759
  result: null
13760
13760
  action_type: 'READ_CARD'
13761
13761
  error: {
13762
- type: string
13762
+ type: 'no_card_on_encoder'
13763
13763
  message: string
13764
13764
  }
13765
13765
  }
@@ -15703,7 +15703,7 @@ export interface Routes {
15703
15703
  result: null
15704
15704
  action_type: 'READ_CARD'
15705
15705
  error: {
15706
- type: string
15706
+ type: 'no_card_on_encoder'
15707
15707
  message: string
15708
15708
  }
15709
15709
  }
@@ -16221,7 +16221,7 @@ export interface Routes {
16221
16221
  result: null
16222
16222
  action_type: 'READ_CARD'
16223
16223
  error: {
16224
- type: string
16224
+ type: 'no_card_on_encoder'
16225
16225
  message: string
16226
16226
  }
16227
16227
  }
@@ -16778,7 +16778,7 @@ export interface Routes {
16778
16778
  result: null
16779
16779
  action_type: 'READ_CARD'
16780
16780
  error: {
16781
- type: string
16781
+ type: 'no_card_on_encoder'
16782
16782
  message: string
16783
16783
  }
16784
16784
  }
@@ -17492,7 +17492,7 @@ export interface Routes {
17492
17492
  result: null
17493
17493
  action_type: 'READ_CARD'
17494
17494
  error: {
17495
- type: string
17495
+ type: 'no_card_on_encoder'
17496
17496
  message: string
17497
17497
  }
17498
17498
  }
@@ -18002,7 +18002,7 @@ export interface Routes {
18002
18002
  result: null
18003
18003
  action_type: 'READ_CARD'
18004
18004
  error: {
18005
- type: string
18005
+ type: 'no_card_on_encoder'
18006
18006
  message: string
18007
18007
  }
18008
18008
  }
@@ -19170,7 +19170,7 @@ export interface Routes {
19170
19170
  result: null
19171
19171
  action_type: 'READ_CARD'
19172
19172
  error: {
19173
- type: string
19173
+ type: 'no_card_on_encoder'
19174
19174
  message: string
19175
19175
  }
19176
19176
  }
@@ -19682,7 +19682,7 @@ export interface Routes {
19682
19682
  result: null
19683
19683
  action_type: 'READ_CARD'
19684
19684
  error: {
19685
- type: string
19685
+ type: 'no_card_on_encoder'
19686
19686
  message: string
19687
19687
  }
19688
19688
  }
@@ -20974,7 +20974,7 @@ export interface Routes {
20974
20974
  result: null
20975
20975
  action_type: 'READ_CARD'
20976
20976
  error: {
20977
- type: string
20977
+ type: 'no_card_on_encoder'
20978
20978
  message: string
20979
20979
  }
20980
20980
  }
@@ -21603,7 +21603,7 @@ export interface Routes {
21603
21603
  result: null
21604
21604
  action_type: 'READ_CARD'
21605
21605
  error: {
21606
- type: string
21606
+ type: 'no_card_on_encoder'
21607
21607
  message: string
21608
21608
  }
21609
21609
  }
@@ -23979,7 +23979,7 @@ export interface Routes {
23979
23979
  result: null
23980
23980
  action_type: 'READ_CARD'
23981
23981
  error: {
23982
- type: string
23982
+ type: 'no_card_on_encoder'
23983
23983
  message: string
23984
23984
  }
23985
23985
  }