@seamapi/types 1.261.1 → 1.262.1

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.
@@ -216,18 +216,18 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
216
216
  }>, {
217
217
  action_type: z.ZodLiteral<"READ_CARD">;
218
218
  error: z.ZodObject<{
219
- type: z.ZodString;
219
+ type: z.ZodLiteral<"no_card_on_encoder">;
220
220
  message: z.ZodString;
221
221
  }, "strip", z.ZodTypeAny, {
222
- type: string;
222
+ type: "no_card_on_encoder";
223
223
  message: string;
224
224
  }, {
225
- type: string;
225
+ type: "no_card_on_encoder";
226
226
  message: string;
227
227
  }>;
228
228
  }>, "strip", z.ZodTypeAny, {
229
229
  error: {
230
- type: string;
230
+ type: "no_card_on_encoder";
231
231
  message: string;
232
232
  };
233
233
  status: "error";
@@ -236,7 +236,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
236
236
  action_type: "READ_CARD";
237
237
  }, {
238
238
  error: {
239
- type: string;
239
+ type: "no_card_on_encoder";
240
240
  message: string;
241
241
  };
242
242
  status: "error";
@@ -60,18 +60,18 @@ export declare const read_card_action_attempt: z.ZodDiscriminatedUnion<"status",
60
60
  }>, {
61
61
  action_type: z.ZodLiteral<"READ_CARD">;
62
62
  error: z.ZodObject<{
63
- type: z.ZodString;
63
+ type: z.ZodLiteral<"no_card_on_encoder">;
64
64
  message: z.ZodString;
65
65
  }, "strip", z.ZodTypeAny, {
66
- type: string;
66
+ type: "no_card_on_encoder";
67
67
  message: string;
68
68
  }, {
69
- type: string;
69
+ type: "no_card_on_encoder";
70
70
  message: string;
71
71
  }>;
72
72
  }>, "strip", z.ZodTypeAny, {
73
73
  error: {
74
- type: string;
74
+ type: "no_card_on_encoder";
75
75
  message: string;
76
76
  };
77
77
  status: "error";
@@ -80,7 +80,7 @@ export declare const read_card_action_attempt: z.ZodDiscriminatedUnion<"status",
80
80
  action_type: "READ_CARD";
81
81
  }, {
82
82
  error: {
83
- type: string;
83
+ type: "no_card_on_encoder";
84
84
  message: string;
85
85
  };
86
86
  status: "error";
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
3
3
  const action_type = z.literal('READ_CARD');
4
4
  const error = z.object({
5
- type: z.string(), // TODO This should be typed properly with the possible errors
5
+ type: z.literal('no_card_on_encoder'),
6
6
  message: z.string(),
7
7
  });
8
8
  const result = z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"read-card.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/read-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,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,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,8DAA8D;IAChF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,4BAA4B;IAC5B,cAAc;IACd,YAAY;IACZ,gBAAgB;IAChB,0EAA0E;IAC1E,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,0DAA0D,CAAC;IACvE,4DAA4D;CAC7D,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"}
1
+ {"version":3,"file":"read-card.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/read-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,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,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,4BAA4B;IAC5B,cAAc;IACd,YAAY;IACZ,gBAAgB;IAChB,0EAA0E;IAC1E,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,0DAA0D,CAAC;IACvE,4DAA4D;CAC7D,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"}