@deepintel-ltd/farmpro-contracts 1.9.0 → 1.10.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.
@@ -8,6 +8,7 @@ export declare const userAttributesSchema: z.ZodObject<{
8
8
  phone: z.ZodNullable<z.ZodString>;
9
9
  emailVerified: z.ZodBoolean;
10
10
  avatar: z.ZodNullable<z.ZodString>;
11
+ isPlatformAdmin: z.ZodOptional<z.ZodBoolean>;
11
12
  } & {
12
13
  createdAt: z.ZodString;
13
14
  updatedAt: z.ZodString;
@@ -19,6 +20,7 @@ export declare const userAttributesSchema: z.ZodObject<{
19
20
  phone: string | null;
20
21
  emailVerified: boolean;
21
22
  avatar: string | null;
23
+ isPlatformAdmin?: boolean | undefined;
22
24
  }, {
23
25
  email: string;
24
26
  createdAt: string;
@@ -27,6 +29,7 @@ export declare const userAttributesSchema: z.ZodObject<{
27
29
  phone: string | null;
28
30
  emailVerified: boolean;
29
31
  avatar: string | null;
32
+ isPlatformAdmin?: boolean | undefined;
30
33
  }>;
31
34
  export declare const updateUserAttributesSchema: z.ZodObject<{
32
35
  name: z.ZodOptional<z.ZodString>;
@@ -83,6 +86,7 @@ export declare const userResourceSchema: z.ZodObject<{
83
86
  phone: z.ZodNullable<z.ZodString>;
84
87
  emailVerified: z.ZodBoolean;
85
88
  avatar: z.ZodNullable<z.ZodString>;
89
+ isPlatformAdmin: z.ZodOptional<z.ZodBoolean>;
86
90
  } & {
87
91
  createdAt: z.ZodString;
88
92
  updatedAt: z.ZodString;
@@ -94,6 +98,7 @@ export declare const userResourceSchema: z.ZodObject<{
94
98
  phone: string | null;
95
99
  emailVerified: boolean;
96
100
  avatar: string | null;
101
+ isPlatformAdmin?: boolean | undefined;
97
102
  }, {
98
103
  email: string;
99
104
  createdAt: string;
@@ -102,6 +107,7 @@ export declare const userResourceSchema: z.ZodObject<{
102
107
  phone: string | null;
103
108
  emailVerified: boolean;
104
109
  avatar: string | null;
110
+ isPlatformAdmin?: boolean | undefined;
105
111
  }>;
106
112
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
107
113
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -117,6 +123,7 @@ export declare const userResourceSchema: z.ZodObject<{
117
123
  phone: string | null;
118
124
  emailVerified: boolean;
119
125
  avatar: string | null;
126
+ isPlatformAdmin?: boolean | undefined;
120
127
  };
121
128
  relationships?: Record<string, unknown> | undefined;
122
129
  links?: Record<string, string> | undefined;
@@ -132,6 +139,7 @@ export declare const userResourceSchema: z.ZodObject<{
132
139
  phone: string | null;
133
140
  emailVerified: boolean;
134
141
  avatar: string | null;
142
+ isPlatformAdmin?: boolean | undefined;
135
143
  };
136
144
  relationships?: Record<string, unknown> | undefined;
137
145
  links?: Record<string, string> | undefined;
@@ -147,6 +155,7 @@ export declare const userResponseSchema: z.ZodObject<{
147
155
  phone: z.ZodNullable<z.ZodString>;
148
156
  emailVerified: z.ZodBoolean;
149
157
  avatar: z.ZodNullable<z.ZodString>;
158
+ isPlatformAdmin: z.ZodOptional<z.ZodBoolean>;
150
159
  } & {
151
160
  createdAt: z.ZodString;
152
161
  updatedAt: z.ZodString;
@@ -158,6 +167,7 @@ export declare const userResponseSchema: z.ZodObject<{
158
167
  phone: string | null;
159
168
  emailVerified: boolean;
160
169
  avatar: string | null;
170
+ isPlatformAdmin?: boolean | undefined;
161
171
  }, {
162
172
  email: string;
163
173
  createdAt: string;
@@ -166,6 +176,7 @@ export declare const userResponseSchema: z.ZodObject<{
166
176
  phone: string | null;
167
177
  emailVerified: boolean;
168
178
  avatar: string | null;
179
+ isPlatformAdmin?: boolean | undefined;
169
180
  }>;
170
181
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
171
182
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -181,6 +192,7 @@ export declare const userResponseSchema: z.ZodObject<{
181
192
  phone: string | null;
182
193
  emailVerified: boolean;
183
194
  avatar: string | null;
195
+ isPlatformAdmin?: boolean | undefined;
184
196
  };
185
197
  relationships?: Record<string, unknown> | undefined;
186
198
  links?: Record<string, string> | undefined;
@@ -196,6 +208,7 @@ export declare const userResponseSchema: z.ZodObject<{
196
208
  phone: string | null;
197
209
  emailVerified: boolean;
198
210
  avatar: string | null;
211
+ isPlatformAdmin?: boolean | undefined;
199
212
  };
200
213
  relationships?: Record<string, unknown> | undefined;
201
214
  links?: Record<string, string> | undefined;
@@ -237,6 +250,7 @@ export declare const userResponseSchema: z.ZodObject<{
237
250
  phone: string | null;
238
251
  emailVerified: boolean;
239
252
  avatar: string | null;
253
+ isPlatformAdmin?: boolean | undefined;
240
254
  };
241
255
  relationships?: Record<string, unknown> | undefined;
242
256
  links?: Record<string, string> | undefined;
@@ -264,6 +278,7 @@ export declare const userResponseSchema: z.ZodObject<{
264
278
  phone: string | null;
265
279
  emailVerified: boolean;
266
280
  avatar: string | null;
281
+ isPlatformAdmin?: boolean | undefined;
267
282
  };
268
283
  relationships?: Record<string, unknown> | undefined;
269
284
  links?: Record<string, string> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"users.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/users.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB;;GAEG;AAGH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;EAMP,CAAC;AAG3B,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAIrC,CAAC;AAGH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9B,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6D,CAAC;AAG7F,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;EAGnC,CAAC;AAGH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAIpC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG1B,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;;;;EAEtC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;EAI5B,CAAC;AAGH,eAAO,MAAM,+BAA+B;;;;;;;;;EAG1C,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIhC,CAAC;AAGH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC7D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACjE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -10,6 +10,7 @@ export const userAttributesSchema = z.object({
10
10
  phone: z.string().nullable(),
11
11
  emailVerified: z.boolean(),
12
12
  avatar: z.string().url().nullable(),
13
+ isPlatformAdmin: z.boolean().optional(),
13
14
  }).merge(timestampsSchema);
14
15
  // Update user profile attributes
15
16
  export const updateUserAttributesSchema = z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepintel-ltd/farmpro-contracts",
3
- "version": "1.9.0",
3
+ "version": "1.10.1",
4
4
  "description": "Type-safe API contracts for FarmPro API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",