@findatruck/shared-schemas 0.2.1 → 0.3.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.
package/dist/index.cjs CHANGED
@@ -41,14 +41,12 @@ var UrlSchema = import_zod.z.string().refine(
41
41
  { message: "Invalid URL" }
42
42
  );
43
43
  var NewLoginRequest = import_zod.z.object({
44
- dispatcher_id: import_zod.z.string().min(1),
45
44
  providerUrl: UrlSchema,
46
45
  username: import_zod.z.string().min(1),
47
46
  password: import_zod.z.string().min(1)
48
47
  });
49
48
  var PublicUser = import_zod.z.object({
50
49
  id: import_zod.z.string(),
51
- dispatcher_id: import_zod.z.string(),
52
50
  username: import_zod.z.string(),
53
51
  created_at: import_zod.z.coerce.date(),
54
52
  updated_at: import_zod.z.coerce.date()
package/dist/index.d.cts CHANGED
@@ -1,17 +1,14 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  declare const NewLoginRequest: z.ZodObject<{
4
- dispatcher_id: z.ZodString;
5
4
  providerUrl: z.ZodEffects<z.ZodString, string, string>;
6
5
  username: z.ZodString;
7
6
  password: z.ZodString;
8
7
  }, "strip", z.ZodTypeAny, {
9
- dispatcher_id: string;
10
8
  providerUrl: string;
11
9
  username: string;
12
10
  password: string;
13
11
  }, {
14
- dispatcher_id: string;
15
12
  providerUrl: string;
16
13
  username: string;
17
14
  password: string;
@@ -21,18 +18,15 @@ declare const NewLoginResponseSuccess: z.ZodObject<{
21
18
  message: z.ZodString;
22
19
  user: z.ZodObject<{
23
20
  id: z.ZodString;
24
- dispatcher_id: z.ZodString;
25
21
  username: z.ZodString;
26
22
  created_at: z.ZodDate;
27
23
  updated_at: z.ZodDate;
28
24
  }, "strip", z.ZodTypeAny, {
29
- dispatcher_id: string;
30
25
  username: string;
31
26
  id: string;
32
27
  created_at: Date;
33
28
  updated_at: Date;
34
29
  }, {
35
- dispatcher_id: string;
36
30
  username: string;
37
31
  id: string;
38
32
  created_at: Date;
@@ -52,7 +46,6 @@ declare const NewLoginResponseSuccess: z.ZodObject<{
52
46
  message: string;
53
47
  success: true;
54
48
  user: {
55
- dispatcher_id: string;
56
49
  username: string;
57
50
  id: string;
58
51
  created_at: Date;
@@ -66,7 +59,6 @@ declare const NewLoginResponseSuccess: z.ZodObject<{
66
59
  message: string;
67
60
  success: true;
68
61
  user: {
69
- dispatcher_id: string;
70
62
  username: string;
71
63
  id: string;
72
64
  created_at: Date;
@@ -92,18 +84,15 @@ declare const NewLoginResponse: z.ZodUnion<[z.ZodObject<{
92
84
  message: z.ZodString;
93
85
  user: z.ZodObject<{
94
86
  id: z.ZodString;
95
- dispatcher_id: z.ZodString;
96
87
  username: z.ZodString;
97
88
  created_at: z.ZodDate;
98
89
  updated_at: z.ZodDate;
99
90
  }, "strip", z.ZodTypeAny, {
100
- dispatcher_id: string;
101
91
  username: string;
102
92
  id: string;
103
93
  created_at: Date;
104
94
  updated_at: Date;
105
95
  }, {
106
- dispatcher_id: string;
107
96
  username: string;
108
97
  id: string;
109
98
  created_at: Date;
@@ -123,7 +112,6 @@ declare const NewLoginResponse: z.ZodUnion<[z.ZodObject<{
123
112
  message: string;
124
113
  success: true;
125
114
  user: {
126
- dispatcher_id: string;
127
115
  username: string;
128
116
  id: string;
129
117
  created_at: Date;
@@ -137,7 +125,6 @@ declare const NewLoginResponse: z.ZodUnion<[z.ZodObject<{
137
125
  message: string;
138
126
  success: true;
139
127
  user: {
140
- dispatcher_id: string;
141
128
  username: string;
142
129
  id: string;
143
130
  created_at: Date;
package/dist/index.d.ts CHANGED
@@ -1,17 +1,14 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  declare const NewLoginRequest: z.ZodObject<{
4
- dispatcher_id: z.ZodString;
5
4
  providerUrl: z.ZodEffects<z.ZodString, string, string>;
6
5
  username: z.ZodString;
7
6
  password: z.ZodString;
8
7
  }, "strip", z.ZodTypeAny, {
9
- dispatcher_id: string;
10
8
  providerUrl: string;
11
9
  username: string;
12
10
  password: string;
13
11
  }, {
14
- dispatcher_id: string;
15
12
  providerUrl: string;
16
13
  username: string;
17
14
  password: string;
@@ -21,18 +18,15 @@ declare const NewLoginResponseSuccess: z.ZodObject<{
21
18
  message: z.ZodString;
22
19
  user: z.ZodObject<{
23
20
  id: z.ZodString;
24
- dispatcher_id: z.ZodString;
25
21
  username: z.ZodString;
26
22
  created_at: z.ZodDate;
27
23
  updated_at: z.ZodDate;
28
24
  }, "strip", z.ZodTypeAny, {
29
- dispatcher_id: string;
30
25
  username: string;
31
26
  id: string;
32
27
  created_at: Date;
33
28
  updated_at: Date;
34
29
  }, {
35
- dispatcher_id: string;
36
30
  username: string;
37
31
  id: string;
38
32
  created_at: Date;
@@ -52,7 +46,6 @@ declare const NewLoginResponseSuccess: z.ZodObject<{
52
46
  message: string;
53
47
  success: true;
54
48
  user: {
55
- dispatcher_id: string;
56
49
  username: string;
57
50
  id: string;
58
51
  created_at: Date;
@@ -66,7 +59,6 @@ declare const NewLoginResponseSuccess: z.ZodObject<{
66
59
  message: string;
67
60
  success: true;
68
61
  user: {
69
- dispatcher_id: string;
70
62
  username: string;
71
63
  id: string;
72
64
  created_at: Date;
@@ -92,18 +84,15 @@ declare const NewLoginResponse: z.ZodUnion<[z.ZodObject<{
92
84
  message: z.ZodString;
93
85
  user: z.ZodObject<{
94
86
  id: z.ZodString;
95
- dispatcher_id: z.ZodString;
96
87
  username: z.ZodString;
97
88
  created_at: z.ZodDate;
98
89
  updated_at: z.ZodDate;
99
90
  }, "strip", z.ZodTypeAny, {
100
- dispatcher_id: string;
101
91
  username: string;
102
92
  id: string;
103
93
  created_at: Date;
104
94
  updated_at: Date;
105
95
  }, {
106
- dispatcher_id: string;
107
96
  username: string;
108
97
  id: string;
109
98
  created_at: Date;
@@ -123,7 +112,6 @@ declare const NewLoginResponse: z.ZodUnion<[z.ZodObject<{
123
112
  message: string;
124
113
  success: true;
125
114
  user: {
126
- dispatcher_id: string;
127
115
  username: string;
128
116
  id: string;
129
117
  created_at: Date;
@@ -137,7 +125,6 @@ declare const NewLoginResponse: z.ZodUnion<[z.ZodObject<{
137
125
  message: string;
138
126
  success: true;
139
127
  user: {
140
- dispatcher_id: string;
141
128
  username: string;
142
129
  id: string;
143
130
  created_at: Date;
package/dist/index.js CHANGED
@@ -12,14 +12,12 @@ var UrlSchema = z.string().refine(
12
12
  { message: "Invalid URL" }
13
13
  );
14
14
  var NewLoginRequest = z.object({
15
- dispatcher_id: z.string().min(1),
16
15
  providerUrl: UrlSchema,
17
16
  username: z.string().min(1),
18
17
  password: z.string().min(1)
19
18
  });
20
19
  var PublicUser = z.object({
21
20
  id: z.string(),
22
- dispatcher_id: z.string(),
23
21
  username: z.string(),
24
22
  created_at: z.coerce.date(),
25
23
  updated_at: z.coerce.date()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@findatruck/shared-schemas",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",