@silkwebdev/gaffer-types 1.0.5 → 1.0.6

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.
@@ -0,0 +1,3 @@
1
+ import { z } from "zod";
2
+ export declare const EmailSchema: z.core.$ZodBranded<z.ZodEmail, "Email", "out">;
3
+ export type Email = z.infer<typeof EmailSchema>;
@@ -0,0 +1,2 @@
1
+ import { z } from "zod";
2
+ export const EmailSchema = z.email().brand("Email");
package/dist/index.d.ts CHANGED
@@ -1,7 +1,10 @@
1
+ export * from "./email/email.schema.js";
1
2
  export * from "./project-type/project-type.schema.js";
2
3
  export * from "./quote/quote-status.schema.js";
3
4
  export * from "./quote/quote.schema.js";
5
+ export * from "./scheduled-quote-summary/scheduled-quote-summary-response.schema.js";
4
6
  export * from "./testimonial/create-testimonial.schema.js";
5
7
  export * from "./testimonial/get-testimonials.schema.js";
6
8
  export * from "./testimonial/testimonial.schema.js";
9
+ export * from "./vat/vat.schema.js";
7
10
  export * from "./version/version.schema.js";
package/dist/index.js CHANGED
@@ -1,7 +1,10 @@
1
+ export * from "./email/email.schema.js";
1
2
  export * from "./project-type/project-type.schema.js";
2
3
  export * from "./quote/quote-status.schema.js";
3
4
  export * from "./quote/quote.schema.js";
5
+ export * from "./scheduled-quote-summary/scheduled-quote-summary-response.schema.js";
4
6
  export * from "./testimonial/create-testimonial.schema.js";
5
7
  export * from "./testimonial/get-testimonials.schema.js";
6
8
  export * from "./testimonial/testimonial.schema.js";
9
+ export * from "./vat/vat.schema.js";
7
10
  export * from "./version/version.schema.js";
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+ export declare const ScheduledQuoteSummaryResponseSchema: z.ZodArray<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 type ScheduledQuoteSummaryResponse = z.infer<typeof ScheduledQuoteSummaryResponseSchema>;
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ export const ScheduledQuoteSummaryResponseSchema = z.array(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
+ }));
@@ -0,0 +1,3 @@
1
+ import { z } from "zod";
2
+ export declare const ValueAddedTaxSchema: z.core.$ZodBranded<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<5>, z.ZodLiteral<20>]>, "ValueAddedTax", "out">;
3
+ export type ValueAddedTax = z.infer<typeof ValueAddedTaxSchema>;
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ export const ValueAddedTaxSchema = z
3
+ .union([z.literal(0), z.literal(5), z.literal(20)])
4
+ .brand("ValueAddedTax");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silkwebdev/gaffer-types",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Shared types and Zod schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",