@tmlmobilidade/types 20250910.1344.34 → 20250910.1538.31

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.
@@ -1,43 +1,35 @@
1
1
  /* * */
2
- import { CommentSchema } from '../_common/comment.js';
2
+ import { CommentSchema, CommentTypeSchema } from '../_common/comment.js';
3
3
  import { DocumentSchema } from '../_common/document.js';
4
- import { validateUnixTimestamp } from '../_common/unix-timestamp.js';
5
- import { RideAnalysisSchema } from './ride-analysis.js';
6
4
  import { z } from 'zod';
7
5
  /* * */
8
6
  export const RIDE_ACCEPTANCE_STATUS_OPTIONS = ['justification_required', 'under_review', 'accepted', 'rejected'];
9
7
  export const RideAcceptanceStatusSchema = z.enum(RIDE_ACCEPTANCE_STATUS_OPTIONS);
10
8
  /* * */
11
- export const RideJustificationChangelogSchema = z.object({
12
- acceptance_status: RideAcceptanceStatusSchema,
13
- analysis_result: RideAnalysisSchema,
14
- created_at: z.number().transform(validateUnixTimestamp).brand('UnixTimestamp'),
15
- created_by: z.string().min(2).max(100),
16
- }).strict();
17
- /* * */
18
- export const RIDE_JUSTIFICATION_TYPE_OPTIONS = ['traffic_accident', 'traffic_delay', 'accepted', 'rejected'];
19
- export const RideJustificationTypeSchema = z.enum(RIDE_JUSTIFICATION_TYPE_OPTIONS);
9
+ const CommentSchemaWithRideJustificationStatus = CommentSchema.superRefine((data, ctx) => {
10
+ if (data.type === CommentTypeSchema.enum.statusChanged) {
11
+ const d = data;
12
+ if (RideAcceptanceStatusSchema.safeParse(d.curr_status).error) {
13
+ ctx.addIssue({
14
+ code: z.ZodIssueCode.custom,
15
+ message: 'curr_status must be a valid ride acceptance status',
16
+ path: ['curr_status'],
17
+ });
18
+ }
19
+ if (RideAcceptanceStatusSchema.safeParse(d.prev_status).error) {
20
+ ctx.addIssue({
21
+ code: z.ZodIssueCode.custom,
22
+ message: 'prev_status must be a valid ride acceptance status',
23
+ path: ['prev_status'],
24
+ });
25
+ }
26
+ }
27
+ });
20
28
  /* * */
21
29
  export const RideJustificationSchema = DocumentSchema.extend({
22
30
  acceptance_status: RideAcceptanceStatusSchema,
23
- changelog: z.array(RideJustificationChangelogSchema).default([]),
24
- comments: z.array(CommentSchema).default([]),
31
+ comments: z.array(CommentSchemaWithRideJustificationStatus).default([]),
25
32
  pto_message: z.string().min(2).max(5000).default(''),
26
33
  }).strict();
27
34
  export const CreateRideJustificationSchema = RideJustificationSchema.partial({ _id: true }).omit({ created_at: true, updated_at: true });
28
35
  export const UpdateRideJustificationSchema = CreateRideJustificationSchema.partial();
29
- // const example: RideJustification = {
30
- // _id: '64b64f4f8f1d2c001f6e4b8a',
31
- // acceptance_status: 'rejected',
32
- // analysis_result: null,
33
- // changelog: [
34
- // {
35
- // acceptance_status: 'justification_required',
36
- // created_at: 1690400000 as UnixTimestamp,
37
- // created_by: 'joao',
38
- // },
39
- // ],
40
- // comments: [],
41
- // created_by: 'joao',
42
- // pto_message: '',
43
- // };
@@ -3,9 +3,9 @@ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
3
3
  import { z } from 'zod';
4
4
  export declare const RideSchema: z.ZodObject<{
5
5
  _id: z.ZodString;
6
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
6
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
7
7
  created_by: z.ZodDefault<z.ZodString>;
8
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
8
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
9
9
  updated_by: z.ZodDefault<z.ZodString>;
10
10
  } & {
11
11
  agency_id: z.ZodString;
@@ -485,11 +485,11 @@ export declare const RideSchema: z.ZodObject<{
485
485
  _id: string;
486
486
  created_at: number & {
487
487
  __brand: "UnixTimestamp";
488
- } & z.BRAND<"UnixTimestamp">;
488
+ };
489
489
  created_by: string;
490
490
  updated_at: number & {
491
491
  __brand: "UnixTimestamp";
492
- } & z.BRAND<"UnixTimestamp">;
492
+ };
493
493
  updated_by: string;
494
494
  agency_id: string;
495
495
  line_id: number;
@@ -766,9 +766,9 @@ export declare const RideSchema: z.ZodObject<{
766
766
  }>;
767
767
  export declare const CreateRideSchema: z.ZodObject<Omit<{
768
768
  _id: z.ZodOptional<z.ZodString>;
769
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
769
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
770
770
  created_by: z.ZodDefault<z.ZodString>;
771
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
771
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
772
772
  updated_by: z.ZodDefault<z.ZodString>;
773
773
  agency_id: z.ZodString;
774
774
  line_id: z.ZodNumber;
@@ -2,9 +2,9 @@ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
2
2
  import { type SamAnalysis } from './sam-analysis.js';
3
3
  import { z } from 'zod';
4
4
  export declare const SamSchema: z.ZodObject<{
5
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
5
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
6
6
  created_by: z.ZodDefault<z.ZodString>;
7
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
7
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
8
8
  updated_by: z.ZodDefault<z.ZodString>;
9
9
  } & {
10
10
  _id: z.ZodNumber;
@@ -71,11 +71,11 @@ export declare const SamSchema: z.ZodObject<{
71
71
  _id: number;
72
72
  created_at: number & {
73
73
  __brand: "UnixTimestamp";
74
- } & z.BRAND<"UnixTimestamp">;
74
+ };
75
75
  created_by: string;
76
76
  updated_at: number & {
77
77
  __brand: "UnixTimestamp";
78
- } & z.BRAND<"UnixTimestamp">;
78
+ };
79
79
  updated_by: string;
80
80
  agency_id: string;
81
81
  analysis: {
@@ -143,9 +143,9 @@ export declare const SamSchema: z.ZodObject<{
143
143
  remarks?: string | null | undefined;
144
144
  }>;
145
145
  export declare const CreateSamSchema: z.ZodObject<Omit<{
146
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
146
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
147
147
  created_by: z.ZodDefault<z.ZodString>;
148
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
148
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
149
149
  updated_by: z.ZodDefault<z.ZodString>;
150
150
  } & {
151
151
  _id: z.ZodNumber;
@@ -2,9 +2,9 @@ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
2
2
  import { z } from 'zod';
3
3
  export declare const SimplifiedApexLocationSchema: z.ZodObject<{
4
4
  _id: z.ZodString;
5
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
5
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
6
6
  created_by: z.ZodDefault<z.ZodString>;
7
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
7
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
8
8
  updated_by: z.ZodDefault<z.ZodString>;
9
9
  } & {
10
10
  agency_id: z.ZodString;
@@ -22,11 +22,11 @@ export declare const SimplifiedApexLocationSchema: z.ZodObject<{
22
22
  _id: string;
23
23
  created_at: number & {
24
24
  __brand: "UnixTimestamp";
25
- } & z.BRAND<"UnixTimestamp">;
25
+ };
26
26
  created_by: string;
27
27
  updated_at: number & {
28
28
  __brand: "UnixTimestamp";
29
- } & z.BRAND<"UnixTimestamp">;
29
+ };
30
30
  updated_by: string;
31
31
  agency_id: string;
32
32
  line_id: string;
@@ -61,9 +61,9 @@ export declare const SimplifiedApexLocationSchema: z.ZodObject<{
61
61
  }>;
62
62
  export declare const UpdateSimplifiedApexLocationSchema: z.ZodObject<{
63
63
  _id: z.ZodOptional<z.ZodString>;
64
- created_at: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
64
+ created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
65
65
  created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
66
- updated_at: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
66
+ updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
67
67
  updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
68
68
  agency_id: z.ZodOptional<z.ZodString>;
69
69
  apex_version: z.ZodOptional<z.ZodString>;
@@ -78,13 +78,9 @@ export declare const UpdateSimplifiedApexLocationSchema: z.ZodObject<{
78
78
  vehicle_id: z.ZodOptional<z.ZodNumber>;
79
79
  }, "strict", z.ZodTypeAny, {
80
80
  _id?: string | undefined;
81
- created_at?: (number & {
82
- __brand: "UnixTimestamp";
83
- } & z.BRAND<"UnixTimestamp">) | undefined;
81
+ created_at?: UnixTimestamp | undefined;
84
82
  created_by?: string | undefined;
85
- updated_at?: (number & {
86
- __brand: "UnixTimestamp";
87
- } & z.BRAND<"UnixTimestamp">) | undefined;
83
+ updated_at?: UnixTimestamp | undefined;
88
84
  updated_by?: string | undefined;
89
85
  agency_id?: string | undefined;
90
86
  line_id?: string | undefined;
@@ -2,9 +2,9 @@ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
2
2
  import { z } from 'zod';
3
3
  export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
4
4
  _id: z.ZodString;
5
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
5
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
6
6
  created_by: z.ZodDefault<z.ZodString>;
7
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
7
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
8
8
  updated_by: z.ZodDefault<z.ZodString>;
9
9
  } & {
10
10
  agency_id: z.ZodString;
@@ -32,11 +32,11 @@ export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
32
32
  _id: string;
33
33
  created_at: number & {
34
34
  __brand: "UnixTimestamp";
35
- } & z.BRAND<"UnixTimestamp">;
35
+ };
36
36
  created_by: string;
37
37
  updated_at: number & {
38
38
  __brand: "UnixTimestamp";
39
- } & z.BRAND<"UnixTimestamp">;
39
+ };
40
40
  updated_by: string;
41
41
  agency_id: string;
42
42
  line_id: string | null;
@@ -91,9 +91,9 @@ export declare const SimplifiedApexOnBoardRefundSchema: z.ZodObject<{
91
91
  }>;
92
92
  export declare const UpdateSimplifiedApexOnBoardRefundSchema: z.ZodObject<{
93
93
  _id: z.ZodOptional<z.ZodString>;
94
- created_at: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
94
+ created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
95
95
  created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
96
- updated_at: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
96
+ updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
97
97
  updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
98
98
  agency_id: z.ZodOptional<z.ZodString>;
99
99
  apex_version: z.ZodOptional<z.ZodString>;
@@ -118,13 +118,9 @@ export declare const UpdateSimplifiedApexOnBoardRefundSchema: z.ZodObject<{
118
118
  vehicle_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
119
119
  }, "strict", z.ZodTypeAny, {
120
120
  _id?: string | undefined;
121
- created_at?: (number & {
122
- __brand: "UnixTimestamp";
123
- } & z.BRAND<"UnixTimestamp">) | undefined;
121
+ created_at?: UnixTimestamp | undefined;
124
122
  created_by?: string | undefined;
125
- updated_at?: (number & {
126
- __brand: "UnixTimestamp";
127
- } & z.BRAND<"UnixTimestamp">) | undefined;
123
+ updated_at?: UnixTimestamp | undefined;
128
124
  updated_by?: string | undefined;
129
125
  agency_id?: string | undefined;
130
126
  line_id?: string | null | undefined;
@@ -2,9 +2,9 @@ import { type UnixTimestamp } from '../_common/unix-timestamp.js';
2
2
  import { z } from 'zod';
3
3
  export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
4
4
  _id: z.ZodString;
5
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
5
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
6
6
  created_by: z.ZodDefault<z.ZodString>;
7
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
7
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
8
8
  updated_by: z.ZodDefault<z.ZodString>;
9
9
  } & {
10
10
  agency_id: z.ZodString;
@@ -33,11 +33,11 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
33
33
  _id: string;
34
34
  created_at: number & {
35
35
  __brand: "UnixTimestamp";
36
- } & z.BRAND<"UnixTimestamp">;
36
+ };
37
37
  created_by: string;
38
38
  updated_at: number & {
39
39
  __brand: "UnixTimestamp";
40
- } & z.BRAND<"UnixTimestamp">;
40
+ };
41
41
  updated_by: string;
42
42
  agency_id: string;
43
43
  line_id: string | null;
@@ -94,9 +94,9 @@ export declare const SimplifiedApexOnBoardSaleSchema: z.ZodObject<{
94
94
  }>;
95
95
  export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
96
96
  _id: z.ZodOptional<z.ZodString>;
97
- created_at: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
97
+ created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
98
98
  created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
99
- updated_at: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
99
+ updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
100
100
  updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
101
101
  agency_id: z.ZodOptional<z.ZodString>;
102
102
  apex_version: z.ZodOptional<z.ZodString>;
@@ -122,13 +122,9 @@ export declare const UpdateSimplifiedApexOnBoardSaleSchema: z.ZodObject<{
122
122
  vehicle_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
123
123
  }, "strict", z.ZodTypeAny, {
124
124
  _id?: string | undefined;
125
- created_at?: (number & {
126
- __brand: "UnixTimestamp";
127
- } & z.BRAND<"UnixTimestamp">) | undefined;
125
+ created_at?: UnixTimestamp | undefined;
128
126
  created_by?: string | undefined;
129
- updated_at?: (number & {
130
- __brand: "UnixTimestamp";
131
- } & z.BRAND<"UnixTimestamp">) | undefined;
127
+ updated_at?: UnixTimestamp | undefined;
132
128
  updated_by?: string | undefined;
133
129
  agency_id?: string | undefined;
134
130
  line_id?: string | null | undefined;
@@ -146,9 +146,9 @@ export declare const ApexValidationStatusSchema: z.ZodNativeEnum<{
146
146
  }>;
147
147
  export declare const SimplifiedApexValidationSchema: z.ZodObject<{
148
148
  _id: z.ZodString;
149
- created_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
149
+ created_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
150
150
  created_by: z.ZodDefault<z.ZodString>;
151
- updated_at: z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">;
151
+ updated_at: z.ZodEffects<z.ZodNumber, UnixTimestamp, number>;
152
152
  updated_by: z.ZodDefault<z.ZodString>;
153
153
  } & {
154
154
  agency_id: z.ZodString;
@@ -246,11 +246,11 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
246
246
  _id: string;
247
247
  created_at: number & {
248
248
  __brand: "UnixTimestamp";
249
- } & z.BRAND<"UnixTimestamp">;
249
+ };
250
250
  created_by: string;
251
251
  updated_at: number & {
252
252
  __brand: "UnixTimestamp";
253
- } & z.BRAND<"UnixTimestamp">;
253
+ };
254
254
  updated_by: string;
255
255
  agency_id: string;
256
256
  line_id: string;
@@ -273,7 +273,7 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
273
273
  event_type: number;
274
274
  product_id: string;
275
275
  units_qty: number | null;
276
- validation_status: 0 | 1 | 2 | 3 | 12 | 11 | 4 | 8 | 5 | 10 | 6 | 7 | 9 | 13;
276
+ validation_status: 0 | 1 | 2 | 3 | 4 | 5 | 12 | 11 | 8 | 10 | 6 | 7 | 9 | 13;
277
277
  }, {
278
278
  _id: string;
279
279
  created_at: number;
@@ -297,15 +297,15 @@ export declare const SimplifiedApexValidationSchema: z.ZodObject<{
297
297
  event_type: number;
298
298
  product_id: string;
299
299
  units_qty: number | null;
300
- validation_status: 0 | 1 | 2 | 3 | 12 | 11 | 4 | 8 | 5 | 10 | 6 | 7 | 9 | 13;
300
+ validation_status: 0 | 1 | 2 | 3 | 4 | 5 | 12 | 11 | 8 | 10 | 6 | 7 | 9 | 13;
301
301
  created_by?: string | undefined;
302
302
  updated_by?: string | undefined;
303
303
  }>;
304
304
  export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
305
305
  _id: z.ZodOptional<z.ZodString>;
306
- created_at: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
306
+ created_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
307
307
  created_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
308
- updated_at: z.ZodOptional<z.ZodBranded<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>, "UnixTimestamp">>;
308
+ updated_at: z.ZodOptional<z.ZodEffects<z.ZodNumber, UnixTimestamp, number>>;
309
309
  updated_by: z.ZodOptional<z.ZodDefault<z.ZodString>>;
310
310
  agency_id: z.ZodOptional<z.ZodString>;
311
311
  apex_version: z.ZodOptional<z.ZodString>;
@@ -400,13 +400,9 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
400
400
  vehicle_id: z.ZodOptional<z.ZodNumber>;
401
401
  }, "strict", z.ZodTypeAny, {
402
402
  _id?: string | undefined;
403
- created_at?: (number & {
404
- __brand: "UnixTimestamp";
405
- } & z.BRAND<"UnixTimestamp">) | undefined;
403
+ created_at?: UnixTimestamp | undefined;
406
404
  created_by?: string | undefined;
407
- updated_at?: (number & {
408
- __brand: "UnixTimestamp";
409
- } & z.BRAND<"UnixTimestamp">) | undefined;
405
+ updated_at?: UnixTimestamp | undefined;
410
406
  updated_by?: string | undefined;
411
407
  agency_id?: string | undefined;
412
408
  line_id?: string | undefined;
@@ -429,7 +425,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
429
425
  event_type?: number | undefined;
430
426
  product_id?: string | undefined;
431
427
  units_qty?: number | null | undefined;
432
- validation_status?: 0 | 1 | 2 | 3 | 12 | 11 | 4 | 8 | 5 | 10 | 6 | 7 | 9 | 13 | undefined;
428
+ validation_status?: 0 | 1 | 2 | 3 | 4 | 5 | 12 | 11 | 8 | 10 | 6 | 7 | 9 | 13 | undefined;
433
429
  }, {
434
430
  _id?: string | undefined;
435
431
  created_at?: number | undefined;
@@ -455,7 +451,7 @@ export declare const UpdateSimplifiedApexValidationSchema: z.ZodObject<{
455
451
  event_type?: number | undefined;
456
452
  product_id?: string | undefined;
457
453
  units_qty?: number | null | undefined;
458
- validation_status?: 0 | 1 | 2 | 3 | 12 | 11 | 4 | 8 | 5 | 10 | 6 | 7 | 9 | 13 | undefined;
454
+ validation_status?: 0 | 1 | 2 | 3 | 4 | 5 | 12 | 11 | 8 | 10 | 6 | 7 | 9 | 13 | undefined;
459
455
  }>;
460
456
  /**
461
457
  * APEX Validations are APEX transactions of type 11 that are generated when a card holder touches a validator