33fb9a8452
- Order confirmation, shipped, and cancelled email templates - Uses @react-email/components for professional HTML emails - Sends admin and customer notifications - Integrates with Resend for email delivery - Webhook handlers for ORDER_CREATED, ORDER_FULFILLED, ORDER_CANCELLED - Docker image optimized for production - Persistent auth data storage via PVC
56 lines
1.4 KiB
TypeScript
56 lines
1.4 KiB
TypeScript
import { CodegenConfig } from "@graphql-codegen/cli";
|
|
|
|
const config: CodegenConfig = {
|
|
schema: "./graphql/schema.graphql",
|
|
documents: ["./graphql/**/*.graphql"],
|
|
generates: {
|
|
"./generated/graphql.ts": {
|
|
plugins: [
|
|
{
|
|
add: {
|
|
content:
|
|
"type JSONValue = string | number | boolean | null | { [key: string]: JSONValue } | JSONValue[];",
|
|
},
|
|
},
|
|
"typescript",
|
|
"typescript-operations",
|
|
"urql-introspection",
|
|
{
|
|
"typescript-urql": {
|
|
documentVariablePrefix: "Untyped",
|
|
fragmentVariablePrefix: "Untyped",
|
|
},
|
|
},
|
|
"typed-document-node",
|
|
],
|
|
config: {
|
|
dedupeFragments: true,
|
|
defaultScalarType: "unknown",
|
|
immutableTypes: true,
|
|
strictScalars: true,
|
|
skipTypename: true,
|
|
scalars: {
|
|
_Any: "unknown",
|
|
Date: "string",
|
|
DateTime: "string",
|
|
Decimal: "number",
|
|
Minute: "number",
|
|
GenericScalar: "JSONValue",
|
|
JSON: "JSONValue",
|
|
JSONString: "string",
|
|
Metadata: "Record<string, string>",
|
|
PositiveDecimal: "number",
|
|
Upload: "unknown",
|
|
UUID: "string",
|
|
WeightScalar: "number",
|
|
Day: "string",
|
|
Hour: "number",
|
|
PositiveInt: "number",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|