chore(automate): mocks for new function queries (#3848)

This commit is contained in:
Chuck Driesler
2025-01-20 14:16:36 +00:00
committed by GitHub
parent d77af226fc
commit 5fa5e22ff9
@@ -85,6 +85,28 @@ const mocks: SpeckleModuleMocksConfig = FF_AUTOMATE_MODULE_ENABLED
return store.get('AutomateFunction', { id }) as any
}
},
User: {
automateFunctions: () => {
const count = faker.number.int({ min: 0, max: 20 })
return {
cursor: null,
totalCount: count,
items: times(count, () => store.get('AutomateFunction'))
} as any
}
},
Workspace: {
automateFunctions: () => {
const count = faker.number.int({ min: 0, max: 20 })
return {
cursor: null,
totalCount: count,
items: times(count, () => store.get('AutomateFunction'))
} as any
}
},
Project: {
automations: () => {
const forceAutomations = false