@awarevue/api-types 1.0.59 → 1.0.61

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,17 +1,19 @@
1
1
  import z from 'zod';
2
2
  export declare const sCredentialType: z.ZodEnum<["card", "pin", "fingerprint"]>;
3
+ export declare const sCredentialValue: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
3
4
  export declare const sAssignedCredential: z.ZodObject<{
4
5
  type: z.ZodEnum<["card", "pin", "fingerprint"]>;
5
- value: z.ZodString;
6
+ value: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
6
7
  note: z.ZodNullable<z.ZodString>;
7
8
  }, "strip", z.ZodTypeAny, {
8
9
  type: "card" | "pin" | "fingerprint";
9
- value: string;
10
+ value: string | Record<string, unknown>;
10
11
  note: string | null;
11
12
  }, {
12
13
  type: "card" | "pin" | "fingerprint";
13
- value: string;
14
+ value: string | Record<string, unknown>;
14
15
  note: string | null;
15
16
  }>;
16
17
  export type CredentialType = z.infer<typeof sCredentialType>;
18
+ export type CredentialValue = z.infer<typeof sCredentialValue>;
17
19
  export type AssignedCredential = z.infer<typeof sAssignedCredential>;
@@ -3,11 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.sAssignedCredential = exports.sCredentialType = void 0;
6
+ exports.sAssignedCredential = exports.sCredentialValue = exports.sCredentialType = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
8
  exports.sCredentialType = zod_1.default.enum(['card', 'pin', 'fingerprint']);
9
+ exports.sCredentialValue = zod_1.default.union([
10
+ zod_1.default.string().nonempty(),
11
+ zod_1.default.record(zod_1.default.unknown()),
12
+ ]);
9
13
  exports.sAssignedCredential = zod_1.default.object({
10
14
  type: exports.sCredentialType,
11
- value: zod_1.default.string().nonempty(),
15
+ value: exports.sCredentialValue,
12
16
  note: zod_1.default.string().nullable(),
13
17
  });
@@ -24,15 +24,15 @@ export declare const sPersonDto: z.ZodObject<{
24
24
  avatarId: z.ZodNullable<z.ZodString>;
25
25
  credentials: z.ZodArray<z.ZodObject<{
26
26
  type: z.ZodEnum<["card", "pin", "fingerprint"]>;
27
- value: z.ZodString;
27
+ value: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
28
28
  note: z.ZodNullable<z.ZodString>;
29
29
  }, "strip", z.ZodTypeAny, {
30
30
  type: "card" | "pin" | "fingerprint";
31
- value: string;
31
+ value: string | Record<string, unknown>;
32
32
  note: string | null;
33
33
  }, {
34
34
  type: "card" | "pin" | "fingerprint";
35
- value: string;
35
+ value: string | Record<string, unknown>;
36
36
  note: string | null;
37
37
  }>, "many">;
38
38
  accessRules: z.ZodArray<z.ZodObject<{
@@ -65,7 +65,7 @@ export declare const sPersonDto: z.ZodObject<{
65
65
  staffMember: boolean;
66
66
  credentials: {
67
67
  type: "card" | "pin" | "fingerprint";
68
- value: string;
68
+ value: string | Record<string, unknown>;
69
69
  note: string | null;
70
70
  }[];
71
71
  accessRules: {
@@ -90,7 +90,7 @@ export declare const sPersonDto: z.ZodObject<{
90
90
  staffMember: boolean;
91
91
  credentials: {
92
92
  type: "card" | "pin" | "fingerprint";
93
- value: string;
93
+ value: string | Record<string, unknown>;
94
94
  note: string | null;
95
95
  }[];
96
96
  accessRules: {
@@ -110,15 +110,15 @@ export declare const sCreatePersonRequest: z.ZodObject<{
110
110
  avatarId: z.ZodNullable<z.ZodString>;
111
111
  credentials: z.ZodArray<z.ZodObject<{
112
112
  type: z.ZodEnum<["card", "pin", "fingerprint"]>;
113
- value: z.ZodString;
113
+ value: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
114
114
  note: z.ZodNullable<z.ZodString>;
115
115
  }, "strip", z.ZodTypeAny, {
116
116
  type: "card" | "pin" | "fingerprint";
117
- value: string;
117
+ value: string | Record<string, unknown>;
118
118
  note: string | null;
119
119
  }, {
120
120
  type: "card" | "pin" | "fingerprint";
121
- value: string;
121
+ value: string | Record<string, unknown>;
122
122
  note: string | null;
123
123
  }>, "many">;
124
124
  accessRules: z.ZodArray<z.ZodString, "many">;
@@ -134,7 +134,7 @@ export declare const sCreatePersonRequest: z.ZodObject<{
134
134
  staffMember: boolean;
135
135
  credentials: {
136
136
  type: "card" | "pin" | "fingerprint";
137
- value: string;
137
+ value: string | Record<string, unknown>;
138
138
  note: string | null;
139
139
  }[];
140
140
  accessRules: string[];
@@ -150,7 +150,7 @@ export declare const sCreatePersonRequest: z.ZodObject<{
150
150
  staffMember: boolean;
151
151
  credentials: {
152
152
  type: "card" | "pin" | "fingerprint";
153
- value: string;
153
+ value: string | Record<string, unknown>;
154
154
  note: string | null;
155
155
  }[];
156
156
  accessRules: string[];
@@ -167,15 +167,15 @@ export declare const sUpdatePersonRequest: z.ZodObject<{
167
167
  avatarId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
168
168
  credentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
169
169
  type: z.ZodEnum<["card", "pin", "fingerprint"]>;
170
- value: z.ZodString;
170
+ value: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
171
171
  note: z.ZodNullable<z.ZodString>;
172
172
  }, "strip", z.ZodTypeAny, {
173
173
  type: "card" | "pin" | "fingerprint";
174
- value: string;
174
+ value: string | Record<string, unknown>;
175
175
  note: string | null;
176
176
  }, {
177
177
  type: "card" | "pin" | "fingerprint";
178
- value: string;
178
+ value: string | Record<string, unknown>;
179
179
  note: string | null;
180
180
  }>, "many">>;
181
181
  accessRules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -193,7 +193,7 @@ export declare const sUpdatePersonRequest: z.ZodObject<{
193
193
  staffMember?: boolean | undefined;
194
194
  credentials?: {
195
195
  type: "card" | "pin" | "fingerprint";
196
- value: string;
196
+ value: string | Record<string, unknown>;
197
197
  note: string | null;
198
198
  }[] | undefined;
199
199
  accessRules?: string[] | undefined;
@@ -210,7 +210,7 @@ export declare const sUpdatePersonRequest: z.ZodObject<{
210
210
  staffMember?: boolean | undefined;
211
211
  credentials?: {
212
212
  type: "card" | "pin" | "fingerprint";
213
- value: string;
213
+ value: string | Record<string, unknown>;
214
214
  note: string | null;
215
215
  }[] | undefined;
216
216
  accessRules?: string[] | undefined;