@awarevue/api-types 1.0.20 → 1.0.21

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/error.d.ts CHANGED
@@ -42,12 +42,15 @@ export declare const sConflictMeta: z.ZodObject<{
42
42
  subject: z.ZodString;
43
43
  blockingSubject: z.ZodOptional<z.ZodString>;
44
44
  blockingId: z.ZodOptional<z.ZodString>;
45
+ value: z.ZodOptional<z.ZodString>;
45
46
  }, "strip", z.ZodTypeAny, {
46
47
  subject: string;
48
+ value?: string | undefined;
47
49
  blockingSubject?: string | undefined;
48
50
  blockingId?: string | undefined;
49
51
  }, {
50
52
  subject: string;
53
+ value?: string | undefined;
51
54
  blockingSubject?: string | undefined;
52
55
  blockingId?: string | undefined;
53
56
  }>;
@@ -78,6 +81,7 @@ export declare enum AppErrorCode {
78
81
  TOKEN_NOT_SUPPORTED = "TOKEN_NOT_SUPPORTED",
79
82
  TOKEN_INVALID_FORMAT = "TOKEN_INVALID_FORMAT",
80
83
  TOKEN_LIMIT_EXCEEDED = "TOKEN_LIMIT_EXCEEDED",
84
+ TOKEN_IN_USE = "TOKEN_IN_USE",
81
85
  DEVICE_NOT_FOUND = "DEVICE_NOT_FOUND",
82
86
  DEVICE_ALREADY_EXISTS = "DEVICE_ALREADY_EXISTS",
83
87
  DEVICE_INVALID_ID = "DEVICE_INVALID_ID",
@@ -150,12 +154,15 @@ export declare const errorMetadataSchemas: {
150
154
  subject: z.ZodString;
151
155
  blockingSubject: z.ZodOptional<z.ZodString>;
152
156
  blockingId: z.ZodOptional<z.ZodString>;
157
+ value: z.ZodOptional<z.ZodString>;
153
158
  }, "strip", z.ZodTypeAny, {
154
159
  subject: string;
160
+ value?: string | undefined;
155
161
  blockingSubject?: string | undefined;
156
162
  blockingId?: string | undefined;
157
163
  }, {
158
164
  subject: string;
165
+ value?: string | undefined;
159
166
  blockingSubject?: string | undefined;
160
167
  blockingId?: string | undefined;
161
168
  }>;
@@ -270,6 +277,22 @@ export declare const errorMetadataSchemas: {
270
277
  fieldErrors: Record<string, string>;
271
278
  }>;
272
279
  readonly TOKEN_LIMIT_EXCEEDED: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
280
+ readonly TOKEN_IN_USE: z.ZodObject<{
281
+ subject: z.ZodString;
282
+ blockingSubject: z.ZodOptional<z.ZodString>;
283
+ blockingId: z.ZodOptional<z.ZodString>;
284
+ value: z.ZodOptional<z.ZodString>;
285
+ }, "strip", z.ZodTypeAny, {
286
+ subject: string;
287
+ value?: string | undefined;
288
+ blockingSubject?: string | undefined;
289
+ blockingId?: string | undefined;
290
+ }, {
291
+ subject: string;
292
+ value?: string | undefined;
293
+ blockingSubject?: string | undefined;
294
+ blockingId?: string | undefined;
295
+ }>;
273
296
  readonly DEVICE_NOT_FOUND: z.ZodObject<{
274
297
  subject: z.ZodString;
275
298
  field: z.ZodString;
@@ -428,12 +451,15 @@ export declare const errorMetadataSchemas: {
428
451
  subject: z.ZodString;
429
452
  blockingSubject: z.ZodOptional<z.ZodString>;
430
453
  blockingId: z.ZodOptional<z.ZodString>;
454
+ value: z.ZodOptional<z.ZodString>;
431
455
  }, "strip", z.ZodTypeAny, {
432
456
  subject: string;
457
+ value?: string | undefined;
433
458
  blockingSubject?: string | undefined;
434
459
  blockingId?: string | undefined;
435
460
  }, {
436
461
  subject: string;
462
+ value?: string | undefined;
437
463
  blockingSubject?: string | undefined;
438
464
  blockingId?: string | undefined;
439
465
  }>;
@@ -470,12 +496,15 @@ export declare const errorMetadataSchemas: {
470
496
  subject: z.ZodString;
471
497
  blockingSubject: z.ZodOptional<z.ZodString>;
472
498
  blockingId: z.ZodOptional<z.ZodString>;
499
+ value: z.ZodOptional<z.ZodString>;
473
500
  }, "strip", z.ZodTypeAny, {
474
501
  subject: string;
502
+ value?: string | undefined;
475
503
  blockingSubject?: string | undefined;
476
504
  blockingId?: string | undefined;
477
505
  }, {
478
506
  subject: string;
507
+ value?: string | undefined;
479
508
  blockingSubject?: string | undefined;
480
509
  blockingId?: string | undefined;
481
510
  }>;
package/dist/error.js CHANGED
@@ -23,6 +23,7 @@ exports.sConflictMeta = zod_1.z.object({
23
23
  subject: zod_1.z.string(),
24
24
  blockingSubject: zod_1.z.string().optional(),
25
25
  blockingId: zod_1.z.string().optional(),
26
+ value: zod_1.z.string().optional(),
26
27
  });
27
28
  exports.sVoidMeta = zod_1.z.object({}).strict();
28
29
  // ERROR CODES
@@ -53,6 +54,7 @@ var AppErrorCode;
53
54
  AppErrorCode["TOKEN_NOT_SUPPORTED"] = "TOKEN_NOT_SUPPORTED";
54
55
  AppErrorCode["TOKEN_INVALID_FORMAT"] = "TOKEN_INVALID_FORMAT";
55
56
  AppErrorCode["TOKEN_LIMIT_EXCEEDED"] = "TOKEN_LIMIT_EXCEEDED";
57
+ AppErrorCode["TOKEN_IN_USE"] = "TOKEN_IN_USE";
56
58
  // device
57
59
  AppErrorCode["DEVICE_NOT_FOUND"] = "DEVICE_NOT_FOUND";
58
60
  AppErrorCode["DEVICE_ALREADY_EXISTS"] = "DEVICE_ALREADY_EXISTS";
@@ -111,6 +113,7 @@ exports.errorMetadataSchemas = {
111
113
  [AppErrorCode.TOKEN_NOT_SUPPORTED]: exports.sVoidMeta,
112
114
  [AppErrorCode.TOKEN_INVALID_FORMAT]: exports.sInvalidMeta,
113
115
  [AppErrorCode.TOKEN_LIMIT_EXCEEDED]: exports.sVoidMeta,
116
+ [AppErrorCode.TOKEN_IN_USE]: exports.sConflictMeta,
114
117
  // device
115
118
  [AppErrorCode.DEVICE_NOT_FOUND]: exports.sNotFoundMeta,
116
119
  [AppErrorCode.DEVICE_ALREADY_EXISTS]: exports.sDuplicateMeta,
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awarevue/api-types",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Common types between backend, agent(s) and frontend(s)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",