@silkwebdev/gaffer-types 1.0.6 → 1.0.7
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.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/scheduled-quote-summary/scheduled-quote-summary-response.schema.d.ts +9 -0
- package/dist/scheduled-quote-summary/scheduled-quote-summary-response.schema.js +3 -2
- package/dist/scheduled-quote-summary/scheduled-quote-summary.schema.d.ts +19 -0
- package/dist/scheduled-quote-summary/scheduled-quote-summary.schema.js +10 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export * from "./email/email.schema.js";
|
|
|
2
2
|
export * from "./project-type/project-type.schema.js";
|
|
3
3
|
export * from "./quote/quote-status.schema.js";
|
|
4
4
|
export * from "./quote/quote.schema.js";
|
|
5
|
-
export * from "./scheduled-quote-summary/scheduled-quote-summary
|
|
5
|
+
export * from "./scheduled-quote-summary/scheduled-quote-summary.schema.js";
|
|
6
6
|
export * from "./testimonial/create-testimonial.schema.js";
|
|
7
7
|
export * from "./testimonial/get-testimonials.schema.js";
|
|
8
8
|
export * from "./testimonial/testimonial.schema.js";
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export * from "./email/email.schema.js";
|
|
|
2
2
|
export * from "./project-type/project-type.schema.js";
|
|
3
3
|
export * from "./quote/quote-status.schema.js";
|
|
4
4
|
export * from "./quote/quote.schema.js";
|
|
5
|
-
export * from "./scheduled-quote-summary/scheduled-quote-summary
|
|
5
|
+
export * from "./scheduled-quote-summary/scheduled-quote-summary.schema.js";
|
|
6
6
|
export * from "./testimonial/create-testimonial.schema.js";
|
|
7
7
|
export * from "./testimonial/get-testimonials.schema.js";
|
|
8
8
|
export * from "./testimonial/testimonial.schema.js";
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const ScheduledQuoteSummaryItemSchema: z.ZodObject<{
|
|
3
|
+
quoteId: z.ZodUUID;
|
|
4
|
+
estimatedStart: z.ZodISODateTime;
|
|
5
|
+
client: z.ZodObject<{
|
|
6
|
+
email: z.ZodEmail;
|
|
7
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
}, z.core.$strip>;
|
|
2
10
|
export declare const ScheduledQuoteSummaryResponseSchema: z.ZodArray<z.ZodObject<{
|
|
3
11
|
quoteId: z.ZodUUID;
|
|
4
12
|
estimatedStart: z.ZodISODateTime;
|
|
@@ -7,4 +15,5 @@ export declare const ScheduledQuoteSummaryResponseSchema: z.ZodArray<z.ZodObject
|
|
|
7
15
|
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
16
|
}, z.core.$strip>;
|
|
9
17
|
}, z.core.$strip>>;
|
|
18
|
+
export type ScheduledQuoteSummaryItem = z.infer<typeof ScheduledQuoteSummaryItemSchema>;
|
|
10
19
|
export type ScheduledQuoteSummaryResponse = z.infer<typeof ScheduledQuoteSummaryResponseSchema>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export const
|
|
2
|
+
export const ScheduledQuoteSummaryItemSchema = z.object({
|
|
3
3
|
quoteId: z.uuid(),
|
|
4
4
|
estimatedStart: z.iso.datetime(),
|
|
5
5
|
client: z.object({
|
|
6
6
|
email: z.email(),
|
|
7
7
|
name: z.string().optional().nullable(),
|
|
8
8
|
}),
|
|
9
|
-
})
|
|
9
|
+
});
|
|
10
|
+
export const ScheduledQuoteSummaryResponseSchema = z.array(ScheduledQuoteSummaryItemSchema);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ScheduledQuoteSummaryItemSchema: z.ZodObject<{
|
|
3
|
+
quoteId: z.ZodUUID;
|
|
4
|
+
estimatedStart: z.ZodISODateTime;
|
|
5
|
+
client: z.ZodObject<{
|
|
6
|
+
email: z.ZodEmail;
|
|
7
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const ScheduledQuoteSummaryResponseSchema: z.ZodArray<z.ZodObject<{
|
|
11
|
+
quoteId: z.ZodUUID;
|
|
12
|
+
estimatedStart: z.ZodISODateTime;
|
|
13
|
+
client: z.ZodObject<{
|
|
14
|
+
email: z.ZodEmail;
|
|
15
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
export type ScheduledQuoteSummaryItem = z.infer<typeof ScheduledQuoteSummaryItemSchema>;
|
|
19
|
+
export type ScheduledQuoteSummaryResponse = z.infer<typeof ScheduledQuoteSummaryResponseSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const ScheduledQuoteSummaryItemSchema = z.object({
|
|
3
|
+
quoteId: z.uuid(),
|
|
4
|
+
estimatedStart: z.iso.datetime(),
|
|
5
|
+
client: z.object({
|
|
6
|
+
email: z.email(),
|
|
7
|
+
name: z.string().optional().nullable(),
|
|
8
|
+
}),
|
|
9
|
+
});
|
|
10
|
+
export const ScheduledQuoteSummaryResponseSchema = z.array(ScheduledQuoteSummaryItemSchema);
|