Interface: PatreonMockDataOptions
Defined in: schemas/v2/mock/data.ts:47
Properties
| Property | Type | Description |
|---|---|---|
mockAttributes? | { webhook?: Partial<{ DELETE: (body) => WriteResourceResponse<Webhook>; GET: (body) => WriteResourceResponse<Webhook>; PATCH: (body) => WriteResourceResponse<Webhook>; POST: (body) => WriteResourceResponse<Webhook>; }>; } | - |
mockAttributes.webhook? | Partial<{ DELETE: (body) => WriteResourceResponse<Webhook>; GET: (body) => WriteResourceResponse<Webhook>; PATCH: (body) => WriteResourceResponse<Webhook>; POST: (body) => WriteResourceResponse<Webhook>; }> | - |
random? | Partial<RandomDataGenerator> | Methods to create a random type. Note: I recommend to overwrite it with your own fake data generation methods. |
resources? | Partial<{ address: (id) => Partial<ItemMap[T]>; benefit: (id) => Partial<ItemMap[T]>; campaign: (id) => Partial<ItemMap[T]>; client: (id) => Partial<ItemMap[T]>; deliverable: (id) => Partial<ItemMap[T]>; goal: (id) => Partial<ItemMap[T]>; media: (id) => Partial<ItemMap[T]>; member: (id) => Partial<ItemMap[T]>; pledge-event: (id) => Partial<ItemMap[T]>; post: (id) => Partial<ItemMap[T]>; tier: (id) => Partial<ItemMap[T]>; user: (id) => Partial<ItemMap[T]>; webhook: (id) => Partial<ItemMap[T]>; }> | Overwrite attributes when creating a random resource |