vr-commons 1.0.126 → 1.0.127
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.
|
@@ -166,50 +166,50 @@ export declare const limitedUpdateSchema: z.ZodObject<{
|
|
|
166
166
|
id: string;
|
|
167
167
|
}>;
|
|
168
168
|
body: z.ZodEffects<z.ZodObject<{
|
|
169
|
-
pricingId: z.ZodString
|
|
170
|
-
productId: z.ZodString
|
|
169
|
+
pricingId: z.ZodOptional<z.ZodString>;
|
|
170
|
+
productId: z.ZodOptional<z.ZodString>;
|
|
171
171
|
deviceIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
172
|
-
userId: z.ZodString
|
|
172
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
userId
|
|
175
|
-
pricingId: string;
|
|
176
|
-
productId: string;
|
|
174
|
+
userId?: string | undefined;
|
|
177
175
|
deviceIds?: string[] | undefined;
|
|
176
|
+
pricingId?: string | undefined;
|
|
177
|
+
productId?: string | undefined;
|
|
178
178
|
}, {
|
|
179
|
-
userId
|
|
180
|
-
pricingId: string;
|
|
181
|
-
productId: string;
|
|
179
|
+
userId?: string | undefined;
|
|
182
180
|
deviceIds?: string[] | undefined;
|
|
181
|
+
pricingId?: string | undefined;
|
|
182
|
+
productId?: string | undefined;
|
|
183
183
|
}>, {
|
|
184
|
-
userId
|
|
185
|
-
pricingId: string;
|
|
186
|
-
productId: string;
|
|
184
|
+
userId?: string | undefined;
|
|
187
185
|
deviceIds?: string[] | undefined;
|
|
186
|
+
pricingId?: string | undefined;
|
|
187
|
+
productId?: string | undefined;
|
|
188
188
|
}, {
|
|
189
|
-
userId
|
|
190
|
-
pricingId: string;
|
|
191
|
-
productId: string;
|
|
189
|
+
userId?: string | undefined;
|
|
192
190
|
deviceIds?: string[] | undefined;
|
|
191
|
+
pricingId?: string | undefined;
|
|
192
|
+
productId?: string | undefined;
|
|
193
193
|
}>;
|
|
194
194
|
}, "strip", z.ZodTypeAny, {
|
|
195
195
|
params: {
|
|
196
196
|
id: string;
|
|
197
197
|
};
|
|
198
198
|
body: {
|
|
199
|
-
userId
|
|
200
|
-
pricingId: string;
|
|
201
|
-
productId: string;
|
|
199
|
+
userId?: string | undefined;
|
|
202
200
|
deviceIds?: string[] | undefined;
|
|
201
|
+
pricingId?: string | undefined;
|
|
202
|
+
productId?: string | undefined;
|
|
203
203
|
};
|
|
204
204
|
}, {
|
|
205
205
|
params: {
|
|
206
206
|
id: string;
|
|
207
207
|
};
|
|
208
208
|
body: {
|
|
209
|
-
userId
|
|
210
|
-
pricingId: string;
|
|
211
|
-
productId: string;
|
|
209
|
+
userId?: string | undefined;
|
|
212
210
|
deviceIds?: string[] | undefined;
|
|
211
|
+
pricingId?: string | undefined;
|
|
212
|
+
productId?: string | undefined;
|
|
213
213
|
};
|
|
214
214
|
}>;
|
|
215
215
|
export declare const recordPaymentSchema: z.ZodObject<{
|
|
@@ -66,16 +66,15 @@ exports.limitedUpdateSchema = zod_1.z.object({
|
|
|
66
66
|
}),
|
|
67
67
|
body: zod_1.z
|
|
68
68
|
.object({
|
|
69
|
-
//
|
|
70
|
-
pricingId: zod_1.z.string().uuid("Invalid pricing ID"),
|
|
71
|
-
productId: zod_1.z.string().uuid("Invalid product ID"),
|
|
69
|
+
// All fields are optional - can update any combination
|
|
70
|
+
pricingId: zod_1.z.string().uuid("Invalid pricing ID").optional(),
|
|
71
|
+
productId: zod_1.z.string().uuid("Invalid product ID").optional(),
|
|
72
72
|
deviceIds: zod_1.z
|
|
73
73
|
.array(zod_1.z.string().uuid("Invalid device ID"))
|
|
74
74
|
.min(1, "At least one device required")
|
|
75
75
|
.max(10, "Maximum 10 devices per plan")
|
|
76
76
|
.optional(),
|
|
77
|
-
|
|
78
|
-
userId: zod_1.z.string().uuid("Invalid user ID"),
|
|
77
|
+
userId: zod_1.z.string().uuid("Invalid user ID").optional(),
|
|
79
78
|
})
|
|
80
79
|
.refine((data) => Object.keys(data).length > 0, {
|
|
81
80
|
message: "At least one field to update is required",
|