@marketrix.ai/widget 3.8.465 → 3.8.467
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.
|
@@ -29,7 +29,7 @@ export declare const ApplicationUpdateSchema: z.ZodObject<{
|
|
|
29
29
|
url: z.ZodOptional<z.ZodString>;
|
|
30
30
|
password: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
31
31
|
username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
32
|
-
allowed_domains: z.ZodOptional<z.
|
|
32
|
+
allowed_domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
34
|
export type ApplicationUpdateData = z.infer<typeof ApplicationUpdateSchema>;
|
|
35
35
|
export declare const applicationCreate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -263,7 +263,7 @@ export declare const applicationUpdate: import("@orpc/contract").ContractProcedu
|
|
|
263
263
|
url: z.ZodOptional<z.ZodString>;
|
|
264
264
|
password: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
265
265
|
username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
266
|
-
allowed_domains: z.ZodOptional<z.
|
|
266
|
+
allowed_domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
267
267
|
application_id: z.ZodCoercedNumber<unknown>;
|
|
268
268
|
}, z.core.$strip>, z.ZodObject<{
|
|
269
269
|
id: z.ZodOptional<z.ZodNumber>;
|
|
@@ -517,7 +517,7 @@ export declare const applicationRoutes: {
|
|
|
517
517
|
url: z.ZodOptional<z.ZodString>;
|
|
518
518
|
password: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
519
519
|
username: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
520
|
-
allowed_domains: z.ZodOptional<z.
|
|
520
|
+
allowed_domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
521
521
|
application_id: z.ZodCoercedNumber<unknown>;
|
|
522
522
|
}, z.core.$strip>, z.ZodObject<{
|
|
523
523
|
id: z.ZodOptional<z.ZodNumber>;
|
|
@@ -31,6 +31,18 @@ export declare const PaginationSchema: z.ZodObject<{
|
|
|
31
31
|
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
32
32
|
offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
|
+
type StripDefault<T> = T extends z.ZodDefault<infer Inner> ? Inner : T;
|
|
35
|
+
/**
|
|
36
|
+
* The ONE way to build a PATCH schema from an entity/input schema. Zod's `.partial()` makes every
|
|
37
|
+
* field optional but does NOT stop a `.default(...)` field from being backfilled when omitted — an
|
|
38
|
+
* update caller who sends only `{ title }` gets `options: []`/`config: {}` re-applied by parsing, so a
|
|
39
|
+
* `field !== undefined` merge guard downstream never sees the omission and silently wipes the column.
|
|
40
|
+
* This strips each field's default before making it optional, so "not sent" really does parse to
|
|
41
|
+
* `undefined`.
|
|
42
|
+
*/
|
|
43
|
+
export declare function partialPatch<Shape extends z.ZodRawShape>(schema: z.ZodObject<Shape>): z.ZodObject<{
|
|
44
|
+
[K in keyof Shape]: z.ZodOptional<StripDefault<Shape[K]>>;
|
|
45
|
+
}>;
|
|
34
46
|
export declare const booleanQueryParam: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>, z.ZodTransform<boolean | undefined, string | boolean>>>;
|
|
35
47
|
export declare const paginatedListOf: <T extends z.ZodType>(schema: T) => z.ZodObject<{
|
|
36
48
|
items: z.ZodArray<T>;
|
|
@@ -115,3 +127,10 @@ export declare const GraphSchema: z.ZodObject<{
|
|
|
115
127
|
}, z.core.$loose>>;
|
|
116
128
|
}, z.core.$strip>;
|
|
117
129
|
export type GraphData = z.infer<typeof GraphSchema>;
|
|
130
|
+
export declare const NotificationResolvedReasonSchema: z.ZodEnum<{
|
|
131
|
+
answered: "answered";
|
|
132
|
+
dismissed: "dismissed";
|
|
133
|
+
cancelled: "cancelled";
|
|
134
|
+
}>;
|
|
135
|
+
export type NotificationResolvedReason = z.infer<typeof NotificationResolvedReasonSchema>;
|
|
136
|
+
export {};
|