import { z } from 'zod'; import { WebhookSubscriptionFormat, WebhookSubscriptionTopic } from '../@types/shopify'; export declare const webhookBase: z.ZodObject<{ id: z.ZodNumber; documentId: z.ZodString; shopifyId: z.ZodNullable; format: z.ZodEnum<[WebhookSubscriptionFormat.Json]>; callbackUrl: z.ZodNullable; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; publishedAt: z.ZodOptional>; locale: z.ZodOptional>; errors: z.ZodOptional>>; } & { topic: z.ZodEnum<[WebhookSubscriptionTopic.ProductsCreate, WebhookSubscriptionTopic.ProductsUpdate, WebhookSubscriptionTopic.ProductsDelete]>; method: z.ZodNullable>; service: z.ZodNullable>; }, "strip", z.ZodTypeAny, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; }, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; }>; declare const webhookShopifyCreating: z.ZodObject; format: z.ZodEnum<[WebhookSubscriptionFormat.Json]>; callbackUrl: z.ZodNullable; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; publishedAt: z.ZodOptional>; locale: z.ZodOptional>; errors: z.ZodOptional>>; } & { topic: z.ZodEnum<[WebhookSubscriptionTopic.ProductsCreate, WebhookSubscriptionTopic.ProductsUpdate, WebhookSubscriptionTopic.ProductsDelete]>; method: z.ZodNullable>; service: z.ZodNullable>; }, "id" | "topic" | "format" | "callbackUrl" | "shopifyId" | "errors">, "strip", z.ZodTypeAny, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; shopifyId?: string; errors?: string[]; }, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; shopifyId?: string; errors?: string[]; }>; export declare const webhookValidator: { create: { restData: z.ZodEffects; method: z.ZodNullable>; service: z.ZodNullable>; }, "strip", z.ZodTypeAny, { topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; method?: string; service?: string; }, { topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; method?: string; service?: string; }>, { topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; method?: string; service?: string; }, { topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; method?: string; service?: string; }>; base: z.ZodObject<{ id: z.ZodNumber; documentId: z.ZodString; shopifyId: z.ZodNullable; format: z.ZodEnum<[WebhookSubscriptionFormat.Json]>; callbackUrl: z.ZodNullable; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; publishedAt: z.ZodOptional>; locale: z.ZodOptional>; errors: z.ZodOptional>>; } & { topic: z.ZodEnum<[WebhookSubscriptionTopic.ProductsCreate, WebhookSubscriptionTopic.ProductsUpdate, WebhookSubscriptionTopic.ProductsDelete]>; method: z.ZodNullable>; service: z.ZodNullable>; }, "strip", z.ZodTypeAny, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; }, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; }>; withShopId: z.ZodObject<{ id: z.ZodNumber; documentId: z.ZodString; shopifyId: z.ZodNullable; format: z.ZodEnum<[WebhookSubscriptionFormat.Json]>; callbackUrl: z.ZodNullable; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; publishedAt: z.ZodOptional>; locale: z.ZodOptional>; errors: z.ZodOptional>>; } & { topic: z.ZodEnum<[WebhookSubscriptionTopic.ProductsCreate, WebhookSubscriptionTopic.ProductsUpdate, WebhookSubscriptionTopic.ProductsDelete]>; method: z.ZodNullable>; service: z.ZodNullable>; } & { shop: z.ZodObject<{ id: z.ZodNumber; }, "strip", z.ZodTypeAny, { id?: number; }, { id?: number; }>; }, "strip", z.ZodTypeAny, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; shop?: { id?: number; }; }, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; shop?: { id?: number; }; }>; draft: z.ZodObject; format: z.ZodEnum<[WebhookSubscriptionFormat.Json]>; callbackUrl: z.ZodNullable; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; publishedAt: z.ZodOptional>; locale: z.ZodOptional>; errors: z.ZodOptional>>; } & { topic: z.ZodEnum<[WebhookSubscriptionTopic.ProductsCreate, WebhookSubscriptionTopic.ProductsUpdate, WebhookSubscriptionTopic.ProductsDelete]>; method: z.ZodNullable>; service: z.ZodNullable>; }, "id" | "topic" | "method" | "service" | "documentId">, "strip", z.ZodTypeAny, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; method?: string; service?: string; documentId?: string; }, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; method?: string; service?: string; documentId?: string; }>; }; findOne: { base: z.ZodObject<{ id: z.ZodNumber; documentId: z.ZodString; shopifyId: z.ZodNullable; format: z.ZodEnum<[WebhookSubscriptionFormat.Json]>; callbackUrl: z.ZodNullable; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; publishedAt: z.ZodOptional>; locale: z.ZodOptional>; errors: z.ZodOptional>>; } & { topic: z.ZodEnum<[WebhookSubscriptionTopic.ProductsCreate, WebhookSubscriptionTopic.ProductsUpdate, WebhookSubscriptionTopic.ProductsDelete]>; method: z.ZodNullable>; service: z.ZodNullable>; }, "strip", z.ZodTypeAny, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; }, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; }>; partial: z.ZodObject<{ id: z.ZodNullable; documentId: z.ZodNullable; shopifyId: z.ZodNullable>; format: z.ZodNullable>; callbackUrl: z.ZodNullable>; createdAt: z.ZodNullable>>; updatedAt: z.ZodNullable>>; publishedAt: z.ZodNullable>>; locale: z.ZodNullable>>; errors: z.ZodNullable>>>; topic: z.ZodNullable>; method: z.ZodNullable>>; service: z.ZodNullable>>; }, "strip", z.ZodTypeAny, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; }, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; }>; }; findMany: { base: z.ZodArray; format: z.ZodEnum<[WebhookSubscriptionFormat.Json]>; callbackUrl: z.ZodNullable; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; publishedAt: z.ZodOptional>; locale: z.ZodOptional>; errors: z.ZodOptional>>; } & { topic: z.ZodEnum<[WebhookSubscriptionTopic.ProductsCreate, WebhookSubscriptionTopic.ProductsUpdate, WebhookSubscriptionTopic.ProductsDelete]>; method: z.ZodNullable>; service: z.ZodNullable>; }, "strip", z.ZodTypeAny, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; }, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; }>, "many">; }; }; export type Webhook = z.infer<(typeof webhookValidator)['create']['base']>; export type WebhookWithShopId = z.infer<(typeof webhookValidator)['create']['withShopId']>; export type DraftWebhook = z.infer<(typeof webhookValidator)['create']['draft']>; export type WebhookData = z.infer; export declare const shopValidator: { create: { base: z.ZodObject<{ id: z.ZodEffects]>, number, string | number>; documentId: z.ZodString; address: z.ZodString; vendor: z.ZodString; apiKey: z.ZodNullable>; apiSecretKey: z.ZodString; adminApiAccessToken: z.ZodString; isActive: z.ZodDefault; createdAt: z.ZodString; updatedAt: z.ZodString; publishedAt: z.ZodString; locale: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { id?: number; createdAt?: string; updatedAt?: string; publishedAt?: string; vendor?: string; locale?: string[]; documentId?: string; address?: string; apiKey?: string; apiSecretKey?: string; adminApiAccessToken?: string; isActive?: boolean; }, { id?: string | number; createdAt?: string; updatedAt?: string; publishedAt?: string; vendor?: string; locale?: string[]; documentId?: string; address?: string; apiKey?: string; apiSecretKey?: string; adminApiAccessToken?: string; isActive?: boolean; }>; }; findOne: { shopWithWebhooks: z.ZodLazy]>, number, string | number>; documentId: z.ZodString; address: z.ZodString; vendor: z.ZodString; apiKey: z.ZodNullable>; apiSecretKey: z.ZodString; adminApiAccessToken: z.ZodString; isActive: z.ZodDefault; createdAt: z.ZodString; updatedAt: z.ZodString; publishedAt: z.ZodString; locale: z.ZodOptional>>; } & { webhooks: z.ZodArray; format: z.ZodEnum<[WebhookSubscriptionFormat.Json]>; callbackUrl: z.ZodNullable; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; publishedAt: z.ZodOptional>; locale: z.ZodOptional>; errors: z.ZodOptional>>; } & { topic: z.ZodEnum<[WebhookSubscriptionTopic.ProductsCreate, WebhookSubscriptionTopic.ProductsUpdate, WebhookSubscriptionTopic.ProductsDelete]>; method: z.ZodNullable>; service: z.ZodNullable>; }, "strip", z.ZodTypeAny, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; }, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; }>, "many">; }, "strip", z.ZodTypeAny, { id?: number; createdAt?: string; updatedAt?: string; publishedAt?: string; vendor?: string; locale?: string[]; documentId?: string; address?: string; apiKey?: string; apiSecretKey?: string; adminApiAccessToken?: string; isActive?: boolean; webhooks?: { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; }[]; }, { id?: string | number; createdAt?: string; updatedAt?: string; publishedAt?: string; vendor?: string; locale?: string[]; documentId?: string; address?: string; apiKey?: string; apiSecretKey?: string; adminApiAccessToken?: string; isActive?: boolean; webhooks?: { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; }[]; }>>; base: z.ZodObject<{ id: z.ZodEffects]>, number, string | number>; documentId: z.ZodString; address: z.ZodString; vendor: z.ZodString; apiKey: z.ZodNullable>; apiSecretKey: z.ZodString; adminApiAccessToken: z.ZodString; isActive: z.ZodDefault; createdAt: z.ZodString; updatedAt: z.ZodString; publishedAt: z.ZodString; locale: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { id?: number; createdAt?: string; updatedAt?: string; publishedAt?: string; vendor?: string; locale?: string[]; documentId?: string; address?: string; apiKey?: string; apiSecretKey?: string; adminApiAccessToken?: string; isActive?: boolean; }, { id?: string | number; createdAt?: string; updatedAt?: string; publishedAt?: string; vendor?: string; locale?: string[]; documentId?: string; address?: string; apiKey?: string; apiSecretKey?: string; adminApiAccessToken?: string; isActive?: boolean; }>; }; findMany: { shopWithWebhooks: z.ZodArray]>, number, string | number>; documentId: z.ZodString; address: z.ZodString; vendor: z.ZodString; apiKey: z.ZodNullable>; apiSecretKey: z.ZodString; adminApiAccessToken: z.ZodString; isActive: z.ZodDefault; createdAt: z.ZodString; updatedAt: z.ZodString; publishedAt: z.ZodString; locale: z.ZodOptional>>; } & { webhooks: z.ZodArray; format: z.ZodEnum<[WebhookSubscriptionFormat.Json]>; callbackUrl: z.ZodNullable; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; publishedAt: z.ZodOptional>; locale: z.ZodOptional>; errors: z.ZodOptional>>; } & { topic: z.ZodEnum<[WebhookSubscriptionTopic.ProductsCreate, WebhookSubscriptionTopic.ProductsUpdate, WebhookSubscriptionTopic.ProductsDelete]>; method: z.ZodNullable>; service: z.ZodNullable>; }, "strip", z.ZodTypeAny, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; }, { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; }>, "many">; }, "strip", z.ZodTypeAny, { id?: number; createdAt?: string; updatedAt?: string; publishedAt?: string; vendor?: string; locale?: string[]; documentId?: string; address?: string; apiKey?: string; apiSecretKey?: string; adminApiAccessToken?: string; isActive?: boolean; webhooks?: { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; }[]; }, { id?: string | number; createdAt?: string; updatedAt?: string; publishedAt?: string; vendor?: string; locale?: string[]; documentId?: string; address?: string; apiKey?: string; apiSecretKey?: string; adminApiAccessToken?: string; isActive?: boolean; webhooks?: { id?: number; topic?: WebhookSubscriptionTopic.ProductsCreate | WebhookSubscriptionTopic.ProductsDelete | WebhookSubscriptionTopic.ProductsUpdate; format?: WebhookSubscriptionFormat.Json; callbackUrl?: string; createdAt?: string; updatedAt?: string; publishedAt?: string; locale?: string; method?: string; service?: string; documentId?: string; shopifyId?: string; errors?: string[]; }[]; }>>, "many">; base: z.ZodArray]>, number, string | number>; documentId: z.ZodString; address: z.ZodString; vendor: z.ZodString; apiKey: z.ZodNullable>; apiSecretKey: z.ZodString; adminApiAccessToken: z.ZodString; isActive: z.ZodDefault; createdAt: z.ZodString; updatedAt: z.ZodString; publishedAt: z.ZodString; locale: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { id?: number; createdAt?: string; updatedAt?: string; publishedAt?: string; vendor?: string; locale?: string[]; documentId?: string; address?: string; apiKey?: string; apiSecretKey?: string; adminApiAccessToken?: string; isActive?: boolean; }, { id?: string | number; createdAt?: string; updatedAt?: string; publishedAt?: string; vendor?: string; locale?: string[]; documentId?: string; address?: string; apiKey?: string; apiSecretKey?: string; adminApiAccessToken?: string; isActive?: boolean; }>, "many">; }; }; export type Shop = z.infer<(typeof shopValidator)['create']['base']>; export type ShopWithWebhooks = z.infer<(typeof shopValidator)['findOne']['shopWithWebhooks']>; export {};