@constructive-io/react 0.20.3 → 0.20.5
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.
- package/admin/hooks/index.d.ts +1 -1
- package/admin/hooks/index.js +1 -1
- package/admin/hooks/invalidation.d.ts +18 -30
- package/admin/hooks/invalidation.js +48 -80
- package/admin/hooks/mutation-keys.d.ts +36 -60
- package/admin/hooks/mutation-keys.js +22 -36
- package/admin/hooks/mutations/index.d.ts +9 -15
- package/admin/hooks/mutations/index.js +9 -15
- package/admin/hooks/mutations/useCreateAppLimitWarningMutation.d.ts +34 -0
- package/admin/hooks/mutations/{useCreateAppLevelMutation.js → useCreateAppLimitWarningMutation.js} +6 -6
- package/admin/hooks/mutations/useCreateOrgLimitWarningMutation.d.ts +34 -0
- package/admin/hooks/mutations/{useCreateAppAchievementMutation.js → useCreateOrgLimitWarningMutation.js} +6 -6
- package/admin/hooks/mutations/useDeleteAppLimitWarningMutation.d.ts +38 -0
- package/admin/hooks/mutations/{useDeleteAppAchievementMutation.js → useDeleteAppLimitWarningMutation.js} +7 -7
- package/admin/hooks/mutations/useDeleteOrgLimitWarningMutation.d.ts +38 -0
- package/{public/hooks/mutations/useDeleteSecretsModuleMutation.js → admin/hooks/mutations/useDeleteOrgLimitWarningMutation.js} +7 -7
- package/admin/hooks/mutations/useUpdateAppLimitWarningMutation.d.ts +40 -0
- package/admin/hooks/mutations/{useUpdateAppAchievementMutation.js → useUpdateAppLimitWarningMutation.js} +9 -9
- package/admin/hooks/mutations/useUpdateOrgLimitWarningMutation.d.ts +40 -0
- package/admin/hooks/mutations/{useUpdateAppLevelRequirementMutation.js → useUpdateOrgLimitWarningMutation.js} +9 -9
- package/admin/hooks/queries/index.d.ts +6 -12
- package/admin/hooks/queries/index.js +6 -12
- package/admin/hooks/queries/useAppLimitWarningQuery.d.ts +65 -0
- package/admin/hooks/queries/{useAppAchievementQuery.js → useAppLimitWarningQuery.js} +14 -14
- package/admin/hooks/queries/useAppLimitWarningsQuery.d.ts +69 -0
- package/{public/hooks/queries/useAppStepsQuery.js → admin/hooks/queries/useAppLimitWarningsQuery.js} +14 -14
- package/admin/hooks/queries/useOrgLimitWarningQuery.d.ts +65 -0
- package/admin/hooks/queries/{useAppStepQuery.js → useOrgLimitWarningQuery.js} +14 -14
- package/admin/hooks/queries/useOrgLimitWarningsQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgLimitWarningsQuery.js +38 -0
- package/admin/hooks/query-keys.d.ts +42 -74
- package/admin/hooks/query-keys.js +25 -43
- package/admin/orm/index.d.ts +6 -20
- package/admin/orm/index.js +6 -10
- package/admin/orm/input-types.d.ts +488 -768
- package/admin/orm/models/appLimitWarning.d.ts +54 -0
- package/{public/orm/models/secretsModule.js → admin/orm/models/appLimitWarning.js} +27 -27
- package/admin/orm/models/index.d.ts +3 -5
- package/admin/orm/models/index.js +7 -11
- package/admin/orm/models/orgLimitWarning.d.ts +54 -0
- package/admin/orm/models/{appAchievement.js → orgLimitWarning.js} +27 -27
- package/admin/orm/query/index.d.ts +1 -28
- package/admin/orm/query/index.js +0 -44
- package/admin/schema-types.d.ts +372 -572
- package/admin/types.d.ts +28 -48
- package/esm/admin/hooks/index.d.ts +1 -1
- package/esm/admin/hooks/index.js +1 -1
- package/esm/admin/hooks/invalidation.d.ts +18 -30
- package/esm/admin/hooks/invalidation.js +49 -81
- package/esm/admin/hooks/mutation-keys.d.ts +36 -60
- package/esm/admin/hooks/mutation-keys.js +21 -35
- package/esm/admin/hooks/mutations/index.d.ts +9 -15
- package/esm/admin/hooks/mutations/index.js +9 -15
- package/esm/admin/hooks/mutations/useCreateAppLimitWarningMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/{useCreateAppAchievementMutation.js → useCreateAppLimitWarningMutation.js} +7 -7
- package/esm/admin/hooks/mutations/useCreateOrgLimitWarningMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/{useCreateAppLevelRequirementMutation.js → useCreateOrgLimitWarningMutation.js} +7 -7
- package/esm/admin/hooks/mutations/useDeleteAppLimitWarningMutation.d.ts +38 -0
- package/esm/admin/hooks/mutations/{useDeleteAppAchievementMutation.js → useDeleteAppLimitWarningMutation.js} +8 -8
- package/esm/admin/hooks/mutations/useDeleteOrgLimitWarningMutation.d.ts +38 -0
- package/esm/admin/hooks/mutations/{useDeleteAppLevelRequirementMutation.js → useDeleteOrgLimitWarningMutation.js} +8 -8
- package/esm/admin/hooks/mutations/useUpdateAppLimitWarningMutation.d.ts +40 -0
- package/esm/admin/hooks/mutations/{useUpdateAppAchievementMutation.js → useUpdateAppLimitWarningMutation.js} +10 -10
- package/esm/admin/hooks/mutations/useUpdateOrgLimitWarningMutation.d.ts +40 -0
- package/esm/admin/hooks/mutations/{useUpdateAppLevelRequirementMutation.js → useUpdateOrgLimitWarningMutation.js} +10 -10
- package/esm/admin/hooks/queries/index.d.ts +6 -12
- package/esm/admin/hooks/queries/index.js +6 -12
- package/esm/admin/hooks/queries/useAppLimitWarningQuery.d.ts +65 -0
- package/esm/admin/hooks/queries/{useAppLevelRequirementQuery.js → useAppLimitWarningQuery.js} +11 -11
- package/esm/admin/hooks/queries/useAppLimitWarningsQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useAppLimitWarningsQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgLimitWarningQuery.d.ts +65 -0
- package/esm/admin/hooks/queries/{useAppStepQuery.js → useOrgLimitWarningQuery.js} +11 -11
- package/esm/admin/hooks/queries/useOrgLimitWarningsQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgLimitWarningsQuery.js +32 -0
- package/esm/admin/hooks/query-keys.d.ts +42 -74
- package/esm/admin/hooks/query-keys.js +24 -42
- package/esm/admin/orm/index.d.ts +6 -20
- package/esm/admin/orm/index.js +6 -10
- package/esm/admin/orm/input-types.d.ts +488 -768
- package/esm/admin/orm/models/appLimitWarning.d.ts +54 -0
- package/esm/admin/orm/models/{appLevel.js → appLimitWarning.js} +25 -25
- package/esm/admin/orm/models/index.d.ts +3 -5
- package/esm/admin/orm/models/index.js +3 -5
- package/esm/admin/orm/models/orgLimitWarning.d.ts +54 -0
- package/esm/admin/orm/models/{appAchievement.js → orgLimitWarning.js} +25 -25
- package/esm/admin/orm/query/index.d.ts +1 -28
- package/esm/admin/orm/query/index.js +0 -44
- package/esm/admin/schema-types.d.ts +372 -572
- package/esm/admin/types.d.ts +28 -48
- package/esm/public/hooks/index.d.ts +1 -1
- package/esm/public/hooks/index.js +1 -1
- package/esm/public/hooks/invalidation.d.ts +27 -33
- package/esm/public/hooks/invalidation.js +60 -76
- package/esm/public/hooks/mutation-keys.d.ts +54 -66
- package/esm/public/hooks/mutation-keys.js +35 -39
- package/esm/public/hooks/mutations/index.d.ts +15 -18
- package/esm/public/hooks/mutations/index.js +15 -18
- package/esm/public/hooks/mutations/useCreateAppLimitWarningMutation.d.ts +34 -0
- package/esm/{admin/hooks/mutations/useCreateAppStepMutation.js → public/hooks/mutations/useCreateAppLimitWarningMutation.js} +7 -7
- package/esm/public/hooks/mutations/useCreateEventsModuleMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/{useCreateLevelsModuleMutation.js → useCreateEventsModuleMutation.js} +7 -7
- package/esm/public/hooks/mutations/useCreateOrgLimitWarningMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateOrgLimitWarningMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateRateLimitMetersModuleMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/{useCreateAppLevelMutation.js → useCreateRateLimitMetersModuleMutation.js} +7 -7
- package/esm/public/hooks/mutations/useCreateUserStateModuleMutation.d.ts +34 -0
- package/esm/{admin/hooks/mutations/useCreateAppLevelMutation.js → public/hooks/mutations/useCreateUserStateModuleMutation.js} +7 -7
- package/esm/public/hooks/mutations/useDeleteAppLimitWarningMutation.d.ts +38 -0
- package/esm/{admin/hooks/mutations/useDeleteAppStepMutation.js → public/hooks/mutations/useDeleteAppLimitWarningMutation.js} +8 -8
- package/esm/public/hooks/mutations/useDeleteEventsModuleMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/{useDeleteLevelsModuleMutation.js → useDeleteEventsModuleMutation.js} +8 -8
- package/esm/public/hooks/mutations/useDeleteOrgLimitWarningMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteOrgLimitWarningMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteRateLimitMetersModuleMutation.d.ts +38 -0
- package/esm/{admin/hooks/mutations/useDeleteAppLevelMutation.js → public/hooks/mutations/useDeleteRateLimitMetersModuleMutation.js} +8 -8
- package/esm/public/hooks/mutations/useDeleteUserStateModuleMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/{useDeleteAppLevelMutation.js → useDeleteUserStateModuleMutation.js} +8 -8
- package/esm/public/hooks/mutations/useUpdateAppLimitWarningMutation.d.ts +40 -0
- package/esm/{admin/hooks/mutations/useUpdateAppStepMutation.js → public/hooks/mutations/useUpdateAppLimitWarningMutation.js} +10 -10
- package/esm/public/hooks/mutations/useUpdateEventsModuleMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/{useUpdateLevelsModuleMutation.js → useUpdateEventsModuleMutation.js} +10 -10
- package/esm/public/hooks/mutations/useUpdateOrgLimitWarningMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateOrgLimitWarningMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateRateLimitMetersModuleMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/{useUpdateSecretsModuleMutation.js → useUpdateRateLimitMetersModuleMutation.js} +10 -10
- package/esm/public/hooks/mutations/useUpdateUserStateModuleMutation.d.ts +40 -0
- package/esm/{admin/hooks/mutations/useUpdateAppLevelMutation.js → public/hooks/mutations/useUpdateUserStateModuleMutation.js} +10 -10
- package/esm/public/hooks/queries/index.d.ts +10 -14
- package/esm/public/hooks/queries/index.js +10 -14
- package/esm/public/hooks/queries/useAppLimitWarningQuery.d.ts +65 -0
- package/esm/{admin/hooks/queries/useAppAchievementQuery.js → public/hooks/queries/useAppLimitWarningQuery.js} +11 -11
- package/esm/public/hooks/queries/useAppLimitWarningsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useAppLimitWarningsQuery.js +32 -0
- package/esm/public/hooks/queries/useEventsModuleQuery.d.ts +65 -0
- package/esm/public/hooks/queries/{useLevelsModuleQuery.js → useEventsModuleQuery.js} +11 -11
- package/esm/public/hooks/queries/useEventsModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/{useLevelsModulesQuery.js → useEventsModulesQuery.js} +11 -11
- package/esm/public/hooks/queries/useOrgLimitWarningQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useOrgLimitWarningQuery.js +47 -0
- package/esm/public/hooks/queries/useOrgLimitWarningsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useOrgLimitWarningsQuery.js +32 -0
- package/esm/public/hooks/queries/useRateLimitMetersModuleQuery.d.ts +65 -0
- package/esm/public/hooks/queries/{useAppLevelQuery.js → useRateLimitMetersModuleQuery.js} +11 -11
- package/esm/public/hooks/queries/useRateLimitMetersModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useRateLimitMetersModulesQuery.js +32 -0
- package/esm/public/hooks/queries/useUserStateModuleQuery.d.ts +65 -0
- package/esm/{admin/hooks/queries/useAppLevelQuery.js → public/hooks/queries/useUserStateModuleQuery.js} +11 -11
- package/esm/public/hooks/queries/useUserStateModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/{useAppLevelsQuery.js → useUserStateModulesQuery.js} +11 -11
- package/esm/public/hooks/query-keys.d.ts +64 -82
- package/esm/public/hooks/query-keys.js +37 -47
- package/esm/public/orm/index.d.ts +10 -22
- package/esm/public/orm/index.js +10 -12
- package/esm/public/orm/input-types.d.ts +1024 -919
- package/esm/public/orm/input-types.js +3 -5
- package/esm/public/orm/models/appLimitWarning.d.ts +54 -0
- package/esm/public/orm/models/{appAchievement.js → appLimitWarning.js} +25 -25
- package/esm/public/orm/models/eventsModule.d.ts +54 -0
- package/esm/public/orm/models/{levelsModule.js → eventsModule.js} +25 -25
- package/esm/public/orm/models/index.d.ts +5 -6
- package/esm/public/orm/models/index.js +5 -6
- package/esm/public/orm/models/orgLimitWarning.d.ts +54 -0
- package/esm/{admin/orm/models/appStep.js → public/orm/models/orgLimitWarning.js} +25 -25
- package/esm/public/orm/models/rateLimitMetersModule.d.ts +54 -0
- package/esm/{admin/orm/models/appLevelRequirement.js → public/orm/models/rateLimitMetersModule.js} +25 -25
- package/esm/public/orm/models/userStateModule.d.ts +54 -0
- package/esm/public/orm/models/userStateModule.js +100 -0
- package/esm/public/orm/mutation/index.d.ts +2 -2
- package/esm/public/orm/query/index.d.ts +1 -28
- package/esm/public/orm/query/index.js +0 -44
- package/esm/public/schema-types.d.ts +750 -731
- package/esm/public/types.d.ts +65 -50
- package/package.json +4 -4
- package/public/hooks/index.d.ts +1 -1
- package/public/hooks/index.js +1 -1
- package/public/hooks/invalidation.d.ts +27 -33
- package/public/hooks/invalidation.js +59 -75
- package/public/hooks/mutation-keys.d.ts +54 -66
- package/public/hooks/mutation-keys.js +38 -43
- package/public/hooks/mutations/index.d.ts +15 -18
- package/public/hooks/mutations/index.js +15 -18
- package/public/hooks/mutations/useCreateAppLimitWarningMutation.d.ts +34 -0
- package/{admin/hooks/mutations/useCreateAppStepMutation.js → public/hooks/mutations/useCreateAppLimitWarningMutation.js} +6 -6
- package/public/hooks/mutations/useCreateEventsModuleMutation.d.ts +34 -0
- package/public/hooks/mutations/{useCreateLevelsModuleMutation.js → useCreateEventsModuleMutation.js} +6 -6
- package/public/hooks/mutations/useCreateOrgLimitWarningMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateOrgLimitWarningMutation.js +34 -0
- package/public/hooks/mutations/useCreateRateLimitMetersModuleMutation.d.ts +34 -0
- package/public/hooks/mutations/{useCreateAppStepMutation.js → useCreateRateLimitMetersModuleMutation.js} +6 -6
- package/public/hooks/mutations/useCreateUserStateModuleMutation.d.ts +34 -0
- package/public/hooks/mutations/{useCreateAppLevelMutation.js → useCreateUserStateModuleMutation.js} +6 -6
- package/public/hooks/mutations/useDeleteAppLimitWarningMutation.d.ts +38 -0
- package/{admin/hooks/mutations/useDeleteAppLevelRequirementMutation.js → public/hooks/mutations/useDeleteAppLimitWarningMutation.js} +7 -7
- package/public/hooks/mutations/useDeleteEventsModuleMutation.d.ts +38 -0
- package/public/hooks/mutations/{useDeleteLevelsModuleMutation.js → useDeleteEventsModuleMutation.js} +7 -7
- package/public/hooks/mutations/useDeleteOrgLimitWarningMutation.d.ts +38 -0
- package/{admin/hooks/mutations/useDeleteAppStepMutation.js → public/hooks/mutations/useDeleteOrgLimitWarningMutation.js} +7 -7
- package/public/hooks/mutations/useDeleteRateLimitMetersModuleMutation.d.ts +38 -0
- package/{admin/hooks/mutations/useDeleteAppLevelMutation.js → public/hooks/mutations/useDeleteRateLimitMetersModuleMutation.js} +7 -7
- package/public/hooks/mutations/useDeleteUserStateModuleMutation.d.ts +38 -0
- package/public/hooks/mutations/{useDeleteAppLevelMutation.js → useDeleteUserStateModuleMutation.js} +7 -7
- package/public/hooks/mutations/useUpdateAppLimitWarningMutation.d.ts +40 -0
- package/{admin/hooks/mutations/useUpdateAppStepMutation.js → public/hooks/mutations/useUpdateAppLimitWarningMutation.js} +9 -9
- package/public/hooks/mutations/useUpdateEventsModuleMutation.d.ts +40 -0
- package/public/hooks/mutations/{useUpdateLevelsModuleMutation.js → useUpdateEventsModuleMutation.js} +9 -9
- package/public/hooks/mutations/useUpdateOrgLimitWarningMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateOrgLimitWarningMutation.js +40 -0
- package/public/hooks/mutations/useUpdateRateLimitMetersModuleMutation.d.ts +40 -0
- package/public/hooks/mutations/{useUpdateAppLevelMutation.js → useUpdateRateLimitMetersModuleMutation.js} +9 -9
- package/public/hooks/mutations/useUpdateUserStateModuleMutation.d.ts +40 -0
- package/{admin/hooks/mutations/useUpdateAppLevelMutation.js → public/hooks/mutations/useUpdateUserStateModuleMutation.js} +9 -9
- package/public/hooks/queries/index.d.ts +10 -14
- package/public/hooks/queries/index.js +10 -14
- package/public/hooks/queries/useAppLimitWarningQuery.d.ts +65 -0
- package/{admin/hooks/queries/useAppLevelQuery.js → public/hooks/queries/useAppLimitWarningQuery.js} +14 -14
- package/public/hooks/queries/useAppLimitWarningsQuery.d.ts +69 -0
- package/{admin/hooks/queries/useAppStepsQuery.js → public/hooks/queries/useAppLimitWarningsQuery.js} +14 -14
- package/public/hooks/queries/useEventsModuleQuery.d.ts +65 -0
- package/public/hooks/queries/{useLevelsModuleQuery.js → useEventsModuleQuery.js} +14 -14
- package/public/hooks/queries/useEventsModulesQuery.d.ts +69 -0
- package/public/hooks/queries/{useLevelsModulesQuery.js → useEventsModulesQuery.js} +14 -14
- package/public/hooks/queries/useOrgLimitWarningQuery.d.ts +65 -0
- package/public/hooks/queries/{useAppAchievementQuery.js → useOrgLimitWarningQuery.js} +14 -14
- package/public/hooks/queries/useOrgLimitWarningsQuery.d.ts +69 -0
- package/public/hooks/queries/useOrgLimitWarningsQuery.js +38 -0
- package/public/hooks/queries/useRateLimitMetersModuleQuery.d.ts +65 -0
- package/public/hooks/queries/{useAppLevelRequirementQuery.js → useRateLimitMetersModuleQuery.js} +14 -14
- package/public/hooks/queries/useRateLimitMetersModulesQuery.d.ts +69 -0
- package/public/hooks/queries/useRateLimitMetersModulesQuery.js +38 -0
- package/public/hooks/queries/useUserStateModuleQuery.d.ts +65 -0
- package/public/hooks/queries/{useAppLevelQuery.js → useUserStateModuleQuery.js} +14 -14
- package/public/hooks/queries/useUserStateModulesQuery.d.ts +69 -0
- package/public/hooks/queries/useUserStateModulesQuery.js +38 -0
- package/public/hooks/query-keys.d.ts +64 -82
- package/public/hooks/query-keys.js +40 -51
- package/public/orm/index.d.ts +10 -22
- package/public/orm/index.js +10 -12
- package/public/orm/input-types.d.ts +1024 -919
- package/public/orm/input-types.js +3 -5
- package/public/orm/models/appLimitWarning.d.ts +54 -0
- package/{admin/orm/models/appStep.js → public/orm/models/appLimitWarning.js} +27 -27
- package/public/orm/models/eventsModule.d.ts +54 -0
- package/public/orm/models/{levelsModule.js → eventsModule.js} +27 -27
- package/public/orm/models/index.d.ts +5 -6
- package/public/orm/models/index.js +13 -15
- package/public/orm/models/orgLimitWarning.d.ts +54 -0
- package/{admin/orm/models/appLevel.js → public/orm/models/orgLimitWarning.js} +27 -27
- package/public/orm/models/rateLimitMetersModule.d.ts +54 -0
- package/public/orm/models/{appLevel.js → rateLimitMetersModule.js} +27 -27
- package/public/orm/models/userStateModule.d.ts +54 -0
- package/public/orm/models/{appAchievement.js → userStateModule.js} +27 -27
- package/public/orm/mutation/index.d.ts +2 -2
- package/public/orm/query/index.d.ts +1 -28
- package/public/orm/query/index.js +0 -44
- package/public/schema-types.d.ts +750 -731
- package/public/types.d.ts +65 -50
- package/admin/hooks/mutations/useCreateAppAchievementMutation.d.ts +0 -34
- package/admin/hooks/mutations/useCreateAppLevelMutation.d.ts +0 -34
- package/admin/hooks/mutations/useCreateAppLevelRequirementMutation.d.ts +0 -34
- package/admin/hooks/mutations/useCreateAppLevelRequirementMutation.js +0 -34
- package/admin/hooks/mutations/useCreateAppStepMutation.d.ts +0 -34
- package/admin/hooks/mutations/useDeleteAppAchievementMutation.d.ts +0 -38
- package/admin/hooks/mutations/useDeleteAppLevelMutation.d.ts +0 -38
- package/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.d.ts +0 -38
- package/admin/hooks/mutations/useDeleteAppStepMutation.d.ts +0 -38
- package/admin/hooks/mutations/useUpdateAppAchievementMutation.d.ts +0 -40
- package/admin/hooks/mutations/useUpdateAppLevelMutation.d.ts +0 -40
- package/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.d.ts +0 -40
- package/admin/hooks/mutations/useUpdateAppStepMutation.d.ts +0 -40
- package/admin/hooks/queries/useAppAchievementQuery.d.ts +0 -65
- package/admin/hooks/queries/useAppAchievementsQuery.d.ts +0 -69
- package/admin/hooks/queries/useAppAchievementsQuery.js +0 -38
- package/admin/hooks/queries/useAppLevelQuery.d.ts +0 -65
- package/admin/hooks/queries/useAppLevelRequirementQuery.d.ts +0 -65
- package/admin/hooks/queries/useAppLevelRequirementQuery.js +0 -53
- package/admin/hooks/queries/useAppLevelRequirementsQuery.d.ts +0 -69
- package/admin/hooks/queries/useAppLevelRequirementsQuery.js +0 -38
- package/admin/hooks/queries/useAppLevelsQuery.d.ts +0 -69
- package/admin/hooks/queries/useAppLevelsQuery.js +0 -38
- package/admin/hooks/queries/useAppStepQuery.d.ts +0 -65
- package/admin/hooks/queries/useAppStepsQuery.d.ts +0 -69
- package/admin/hooks/queries/useStepsAchievedQuery.d.ts +0 -53
- package/admin/hooks/queries/useStepsAchievedQuery.js +0 -53
- package/admin/hooks/queries/useStepsRequiredQuery.d.ts +0 -54
- package/admin/hooks/queries/useStepsRequiredQuery.js +0 -53
- package/admin/orm/models/appAchievement.d.ts +0 -54
- package/admin/orm/models/appLevel.d.ts +0 -54
- package/admin/orm/models/appLevelRequirement.d.ts +0 -54
- package/admin/orm/models/appLevelRequirement.js +0 -104
- package/admin/orm/models/appStep.d.ts +0 -54
- package/esm/admin/hooks/mutations/useCreateAppAchievementMutation.d.ts +0 -34
- package/esm/admin/hooks/mutations/useCreateAppLevelMutation.d.ts +0 -34
- package/esm/admin/hooks/mutations/useCreateAppLevelRequirementMutation.d.ts +0 -34
- package/esm/admin/hooks/mutations/useCreateAppStepMutation.d.ts +0 -34
- package/esm/admin/hooks/mutations/useDeleteAppAchievementMutation.d.ts +0 -38
- package/esm/admin/hooks/mutations/useDeleteAppLevelMutation.d.ts +0 -38
- package/esm/admin/hooks/mutations/useDeleteAppLevelRequirementMutation.d.ts +0 -38
- package/esm/admin/hooks/mutations/useDeleteAppStepMutation.d.ts +0 -38
- package/esm/admin/hooks/mutations/useUpdateAppAchievementMutation.d.ts +0 -40
- package/esm/admin/hooks/mutations/useUpdateAppLevelMutation.d.ts +0 -40
- package/esm/admin/hooks/mutations/useUpdateAppLevelRequirementMutation.d.ts +0 -40
- package/esm/admin/hooks/mutations/useUpdateAppStepMutation.d.ts +0 -40
- package/esm/admin/hooks/queries/useAppAchievementQuery.d.ts +0 -65
- package/esm/admin/hooks/queries/useAppAchievementsQuery.d.ts +0 -69
- package/esm/admin/hooks/queries/useAppAchievementsQuery.js +0 -32
- package/esm/admin/hooks/queries/useAppLevelQuery.d.ts +0 -65
- package/esm/admin/hooks/queries/useAppLevelRequirementQuery.d.ts +0 -65
- package/esm/admin/hooks/queries/useAppLevelRequirementsQuery.d.ts +0 -69
- package/esm/admin/hooks/queries/useAppLevelRequirementsQuery.js +0 -32
- package/esm/admin/hooks/queries/useAppLevelsQuery.d.ts +0 -69
- package/esm/admin/hooks/queries/useAppLevelsQuery.js +0 -32
- package/esm/admin/hooks/queries/useAppStepQuery.d.ts +0 -65
- package/esm/admin/hooks/queries/useAppStepsQuery.d.ts +0 -69
- package/esm/admin/hooks/queries/useAppStepsQuery.js +0 -32
- package/esm/admin/hooks/queries/useStepsAchievedQuery.d.ts +0 -53
- package/esm/admin/hooks/queries/useStepsAchievedQuery.js +0 -47
- package/esm/admin/hooks/queries/useStepsRequiredQuery.d.ts +0 -54
- package/esm/admin/hooks/queries/useStepsRequiredQuery.js +0 -47
- package/esm/admin/orm/models/appAchievement.d.ts +0 -54
- package/esm/admin/orm/models/appLevel.d.ts +0 -54
- package/esm/admin/orm/models/appLevelRequirement.d.ts +0 -54
- package/esm/admin/orm/models/appStep.d.ts +0 -54
- package/esm/public/hooks/mutations/useCreateAppAchievementMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useCreateAppAchievementMutation.js +0 -31
- package/esm/public/hooks/mutations/useCreateAppLevelMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useCreateAppLevelRequirementMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useCreateAppLevelRequirementMutation.js +0 -31
- package/esm/public/hooks/mutations/useCreateAppStepMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useCreateAppStepMutation.js +0 -31
- package/esm/public/hooks/mutations/useCreateLevelsModuleMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useCreateSecretsModuleMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useCreateSecretsModuleMutation.js +0 -31
- package/esm/public/hooks/mutations/useDeleteAppAchievementMutation.d.ts +0 -38
- package/esm/public/hooks/mutations/useDeleteAppAchievementMutation.js +0 -36
- package/esm/public/hooks/mutations/useDeleteAppLevelMutation.d.ts +0 -38
- package/esm/public/hooks/mutations/useDeleteAppLevelRequirementMutation.d.ts +0 -38
- package/esm/public/hooks/mutations/useDeleteAppLevelRequirementMutation.js +0 -36
- package/esm/public/hooks/mutations/useDeleteAppStepMutation.d.ts +0 -38
- package/esm/public/hooks/mutations/useDeleteAppStepMutation.js +0 -36
- package/esm/public/hooks/mutations/useDeleteLevelsModuleMutation.d.ts +0 -38
- package/esm/public/hooks/mutations/useDeleteSecretsModuleMutation.d.ts +0 -38
- package/esm/public/hooks/mutations/useDeleteSecretsModuleMutation.js +0 -36
- package/esm/public/hooks/mutations/useUpdateAppAchievementMutation.d.ts +0 -40
- package/esm/public/hooks/mutations/useUpdateAppAchievementMutation.js +0 -37
- package/esm/public/hooks/mutations/useUpdateAppLevelMutation.d.ts +0 -40
- package/esm/public/hooks/mutations/useUpdateAppLevelMutation.js +0 -37
- package/esm/public/hooks/mutations/useUpdateAppLevelRequirementMutation.d.ts +0 -40
- package/esm/public/hooks/mutations/useUpdateAppLevelRequirementMutation.js +0 -37
- package/esm/public/hooks/mutations/useUpdateAppStepMutation.d.ts +0 -40
- package/esm/public/hooks/mutations/useUpdateAppStepMutation.js +0 -37
- package/esm/public/hooks/mutations/useUpdateLevelsModuleMutation.d.ts +0 -40
- package/esm/public/hooks/mutations/useUpdateSecretsModuleMutation.d.ts +0 -40
- package/esm/public/hooks/queries/useAppAchievementQuery.d.ts +0 -65
- package/esm/public/hooks/queries/useAppAchievementQuery.js +0 -47
- package/esm/public/hooks/queries/useAppAchievementsQuery.d.ts +0 -69
- package/esm/public/hooks/queries/useAppAchievementsQuery.js +0 -32
- package/esm/public/hooks/queries/useAppLevelQuery.d.ts +0 -65
- package/esm/public/hooks/queries/useAppLevelRequirementQuery.d.ts +0 -65
- package/esm/public/hooks/queries/useAppLevelRequirementQuery.js +0 -47
- package/esm/public/hooks/queries/useAppLevelRequirementsQuery.d.ts +0 -69
- package/esm/public/hooks/queries/useAppLevelRequirementsQuery.js +0 -32
- package/esm/public/hooks/queries/useAppLevelsQuery.d.ts +0 -69
- package/esm/public/hooks/queries/useAppStepQuery.d.ts +0 -65
- package/esm/public/hooks/queries/useAppStepQuery.js +0 -47
- package/esm/public/hooks/queries/useAppStepsQuery.d.ts +0 -69
- package/esm/public/hooks/queries/useAppStepsQuery.js +0 -32
- package/esm/public/hooks/queries/useLevelsModuleQuery.d.ts +0 -65
- package/esm/public/hooks/queries/useLevelsModulesQuery.d.ts +0 -69
- package/esm/public/hooks/queries/useSecretsModuleQuery.d.ts +0 -65
- package/esm/public/hooks/queries/useSecretsModuleQuery.js +0 -47
- package/esm/public/hooks/queries/useSecretsModulesQuery.d.ts +0 -69
- package/esm/public/hooks/queries/useSecretsModulesQuery.js +0 -32
- package/esm/public/hooks/queries/useStepsAchievedQuery.d.ts +0 -53
- package/esm/public/hooks/queries/useStepsAchievedQuery.js +0 -47
- package/esm/public/hooks/queries/useStepsRequiredQuery.d.ts +0 -54
- package/esm/public/hooks/queries/useStepsRequiredQuery.js +0 -47
- package/esm/public/orm/models/appAchievement.d.ts +0 -54
- package/esm/public/orm/models/appLevel.d.ts +0 -54
- package/esm/public/orm/models/appLevel.js +0 -100
- package/esm/public/orm/models/appLevelRequirement.d.ts +0 -54
- package/esm/public/orm/models/appLevelRequirement.js +0 -100
- package/esm/public/orm/models/appStep.d.ts +0 -54
- package/esm/public/orm/models/appStep.js +0 -100
- package/esm/public/orm/models/levelsModule.d.ts +0 -54
- package/esm/public/orm/models/secretsModule.d.ts +0 -54
- package/esm/public/orm/models/secretsModule.js +0 -100
- package/public/hooks/mutations/useCreateAppAchievementMutation.d.ts +0 -34
- package/public/hooks/mutations/useCreateAppAchievementMutation.js +0 -34
- package/public/hooks/mutations/useCreateAppLevelMutation.d.ts +0 -34
- package/public/hooks/mutations/useCreateAppLevelRequirementMutation.d.ts +0 -34
- package/public/hooks/mutations/useCreateAppLevelRequirementMutation.js +0 -34
- package/public/hooks/mutations/useCreateAppStepMutation.d.ts +0 -34
- package/public/hooks/mutations/useCreateLevelsModuleMutation.d.ts +0 -34
- package/public/hooks/mutations/useCreateSecretsModuleMutation.d.ts +0 -34
- package/public/hooks/mutations/useCreateSecretsModuleMutation.js +0 -34
- package/public/hooks/mutations/useDeleteAppAchievementMutation.d.ts +0 -38
- package/public/hooks/mutations/useDeleteAppAchievementMutation.js +0 -39
- package/public/hooks/mutations/useDeleteAppLevelMutation.d.ts +0 -38
- package/public/hooks/mutations/useDeleteAppLevelRequirementMutation.d.ts +0 -38
- package/public/hooks/mutations/useDeleteAppLevelRequirementMutation.js +0 -39
- package/public/hooks/mutations/useDeleteAppStepMutation.d.ts +0 -38
- package/public/hooks/mutations/useDeleteAppStepMutation.js +0 -39
- package/public/hooks/mutations/useDeleteLevelsModuleMutation.d.ts +0 -38
- package/public/hooks/mutations/useDeleteSecretsModuleMutation.d.ts +0 -38
- package/public/hooks/mutations/useUpdateAppAchievementMutation.d.ts +0 -40
- package/public/hooks/mutations/useUpdateAppAchievementMutation.js +0 -40
- package/public/hooks/mutations/useUpdateAppLevelMutation.d.ts +0 -40
- package/public/hooks/mutations/useUpdateAppLevelRequirementMutation.d.ts +0 -40
- package/public/hooks/mutations/useUpdateAppLevelRequirementMutation.js +0 -40
- package/public/hooks/mutations/useUpdateAppStepMutation.d.ts +0 -40
- package/public/hooks/mutations/useUpdateAppStepMutation.js +0 -40
- package/public/hooks/mutations/useUpdateLevelsModuleMutation.d.ts +0 -40
- package/public/hooks/mutations/useUpdateSecretsModuleMutation.d.ts +0 -40
- package/public/hooks/mutations/useUpdateSecretsModuleMutation.js +0 -40
- package/public/hooks/queries/useAppAchievementQuery.d.ts +0 -65
- package/public/hooks/queries/useAppAchievementsQuery.d.ts +0 -69
- package/public/hooks/queries/useAppAchievementsQuery.js +0 -38
- package/public/hooks/queries/useAppLevelQuery.d.ts +0 -65
- package/public/hooks/queries/useAppLevelRequirementQuery.d.ts +0 -65
- package/public/hooks/queries/useAppLevelRequirementsQuery.d.ts +0 -69
- package/public/hooks/queries/useAppLevelRequirementsQuery.js +0 -38
- package/public/hooks/queries/useAppLevelsQuery.d.ts +0 -69
- package/public/hooks/queries/useAppLevelsQuery.js +0 -38
- package/public/hooks/queries/useAppStepQuery.d.ts +0 -65
- package/public/hooks/queries/useAppStepQuery.js +0 -53
- package/public/hooks/queries/useAppStepsQuery.d.ts +0 -69
- package/public/hooks/queries/useLevelsModuleQuery.d.ts +0 -65
- package/public/hooks/queries/useLevelsModulesQuery.d.ts +0 -69
- package/public/hooks/queries/useSecretsModuleQuery.d.ts +0 -65
- package/public/hooks/queries/useSecretsModuleQuery.js +0 -53
- package/public/hooks/queries/useSecretsModulesQuery.d.ts +0 -69
- package/public/hooks/queries/useSecretsModulesQuery.js +0 -38
- package/public/hooks/queries/useStepsAchievedQuery.d.ts +0 -53
- package/public/hooks/queries/useStepsAchievedQuery.js +0 -53
- package/public/hooks/queries/useStepsRequiredQuery.d.ts +0 -54
- package/public/hooks/queries/useStepsRequiredQuery.js +0 -53
- package/public/orm/models/appAchievement.d.ts +0 -54
- package/public/orm/models/appLevel.d.ts +0 -54
- package/public/orm/models/appLevelRequirement.d.ts +0 -54
- package/public/orm/models/appLevelRequirement.js +0 -104
- package/public/orm/models/appStep.d.ts +0 -54
- package/public/orm/models/appStep.js +0 -104
- package/public/orm/models/levelsModule.d.ts +0 -54
- package/public/orm/models/secretsModule.d.ts +0 -54
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Log of individual user actions toward level requirements; every single step ever taken is recorded here
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
-
import type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { AppStepSelect, AppStepWithRelations } from '../../orm/input-types';
|
|
10
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export declare const appStepQueryKey: (id: string | number) => readonly ["appstep", "detail", string | number];
|
|
12
|
-
/**
|
|
13
|
-
* Log of individual user actions toward level requirements; every single step ever taken is recorded here
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```tsx
|
|
17
|
-
* const { data, isLoading } = useAppStepQuery({
|
|
18
|
-
* id: 'some-id',
|
|
19
|
-
* selection: { fields: { id: true, name: true } },
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare function useAppStepQuery<S extends AppStepSelect, TData = {
|
|
24
|
-
appStep: InferSelectResult<AppStepWithRelations, S> | null;
|
|
25
|
-
}>(params: {
|
|
26
|
-
id: string;
|
|
27
|
-
selection: {
|
|
28
|
-
fields: S;
|
|
29
|
-
} & HookStrictSelect<NoInfer<S>, AppStepSelect>;
|
|
30
|
-
} & Omit<UseQueryOptions<{
|
|
31
|
-
appStep: InferSelectResult<AppStepWithRelations, S> | null;
|
|
32
|
-
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
-
/**
|
|
34
|
-
* Log of individual user actions toward level requirements; every single step ever taken is recorded here
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* const data = await fetchAppStepQuery({
|
|
39
|
-
* id: 'some-id',
|
|
40
|
-
* selection: { fields: { id: true } },
|
|
41
|
-
* });
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export declare function fetchAppStepQuery<S extends AppStepSelect>(params: {
|
|
45
|
-
id: string;
|
|
46
|
-
selection: {
|
|
47
|
-
fields: S;
|
|
48
|
-
} & HookStrictSelect<NoInfer<S>, AppStepSelect>;
|
|
49
|
-
}): Promise<{
|
|
50
|
-
appStep: InferSelectResult<AppStepWithRelations, S> | null;
|
|
51
|
-
}>;
|
|
52
|
-
/**
|
|
53
|
-
* Log of individual user actions toward level requirements; every single step ever taken is recorded here
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* await prefetchAppStepQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
export declare function prefetchAppStepQuery<S extends AppStepSelect>(queryClient: QueryClient, params: {
|
|
61
|
-
id: string;
|
|
62
|
-
selection: {
|
|
63
|
-
fields: S;
|
|
64
|
-
} & HookStrictSelect<NoInfer<S>, AppStepSelect>;
|
|
65
|
-
}): Promise<void>;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Log of individual user actions toward level requirements; every single step ever taken is recorded here
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import { useQuery } from '@tanstack/react-query';
|
|
7
|
-
import { getClient } from '../client';
|
|
8
|
-
import { buildSelectionArgs } from '../selection';
|
|
9
|
-
import { appStepKeys } from '../query-keys';
|
|
10
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export const appStepQueryKey = appStepKeys.detail;
|
|
12
|
-
export function useAppStepQuery(params) {
|
|
13
|
-
const args = buildSelectionArgs(params.selection);
|
|
14
|
-
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
-
void _selection;
|
|
16
|
-
return useQuery({
|
|
17
|
-
queryKey: appStepKeys.detail(params.id),
|
|
18
|
-
queryFn: () => getClient()
|
|
19
|
-
.appStep.findOne({
|
|
20
|
-
id: params.id,
|
|
21
|
-
select: args.select,
|
|
22
|
-
})
|
|
23
|
-
.unwrap(),
|
|
24
|
-
...queryOptions,
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
export async function fetchAppStepQuery(params) {
|
|
28
|
-
const args = buildSelectionArgs(params.selection);
|
|
29
|
-
return getClient()
|
|
30
|
-
.appStep.findOne({
|
|
31
|
-
id: params.id,
|
|
32
|
-
select: args.select,
|
|
33
|
-
})
|
|
34
|
-
.unwrap();
|
|
35
|
-
}
|
|
36
|
-
export async function prefetchAppStepQuery(queryClient, params) {
|
|
37
|
-
const args = buildSelectionArgs(params.selection);
|
|
38
|
-
await queryClient.prefetchQuery({
|
|
39
|
-
queryKey: appStepKeys.detail(params.id),
|
|
40
|
-
queryFn: () => getClient()
|
|
41
|
-
.appStep.findOne({
|
|
42
|
-
id: params.id,
|
|
43
|
-
select: args.select,
|
|
44
|
-
})
|
|
45
|
-
.unwrap(),
|
|
46
|
-
});
|
|
47
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Log of individual user actions toward level requirements; every single step ever taken is recorded here
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
-
import type { ListSelectionConfig } from '../selection';
|
|
8
|
-
import type { AppStepSelect, AppStepWithRelations, AppStepFilter, AppStepOrderBy } from '../../orm/input-types';
|
|
9
|
-
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
-
export type { AppStepSelect, AppStepWithRelations, AppStepFilter, AppStepOrderBy, } from '../../orm/input-types';
|
|
11
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
-
export declare const appStepsQueryKey: (variables?: object) => readonly ["appstep", "list", object];
|
|
13
|
-
/**
|
|
14
|
-
* Log of individual user actions toward level requirements; every single step ever taken is recorded here
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* const { data, isLoading } = useAppStepsQuery({
|
|
19
|
-
* selection: {
|
|
20
|
-
* fields: { id: true, name: true },
|
|
21
|
-
* where: { name: { equalTo: "example" } },
|
|
22
|
-
* orderBy: ['CREATED_AT_DESC'],
|
|
23
|
-
* first: 10,
|
|
24
|
-
* },
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export declare function useAppStepsQuery<S extends AppStepSelect, TData = {
|
|
29
|
-
appSteps: ConnectionResult<InferSelectResult<AppStepWithRelations, S>>;
|
|
30
|
-
}>(params: {
|
|
31
|
-
selection: {
|
|
32
|
-
fields: S;
|
|
33
|
-
} & Omit<ListSelectionConfig<S, AppStepFilter, AppStepOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppStepSelect>;
|
|
34
|
-
} & Omit<UseQueryOptions<{
|
|
35
|
-
appSteps: ConnectionResult<InferSelectResult<AppStepWithRelations, S>>;
|
|
36
|
-
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
-
/**
|
|
38
|
-
* Log of individual user actions toward level requirements; every single step ever taken is recorded here
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* const data = await fetchAppStepsQuery({
|
|
43
|
-
* selection: {
|
|
44
|
-
* fields: { id: true },
|
|
45
|
-
* first: 10,
|
|
46
|
-
* },
|
|
47
|
-
* });
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
export declare function fetchAppStepsQuery<S extends AppStepSelect>(params: {
|
|
51
|
-
selection: {
|
|
52
|
-
fields: S;
|
|
53
|
-
} & Omit<ListSelectionConfig<S, AppStepFilter, AppStepOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppStepSelect>;
|
|
54
|
-
}): Promise<{
|
|
55
|
-
appSteps: ConnectionResult<InferSelectResult<AppStepWithRelations, S>>;
|
|
56
|
-
}>;
|
|
57
|
-
/**
|
|
58
|
-
* Log of individual user actions toward level requirements; every single step ever taken is recorded here
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* await prefetchAppStepsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
export declare function prefetchAppStepsQuery<S extends AppStepSelect>(queryClient: QueryClient, params: {
|
|
66
|
-
selection: {
|
|
67
|
-
fields: S;
|
|
68
|
-
} & Omit<ListSelectionConfig<S, AppStepFilter, AppStepOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppStepSelect>;
|
|
69
|
-
}): Promise<void>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Log of individual user actions toward level requirements; every single step ever taken is recorded here
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import { useQuery } from '@tanstack/react-query';
|
|
7
|
-
import { getClient } from '../client';
|
|
8
|
-
import { buildListSelectionArgs } from '../selection';
|
|
9
|
-
import { appStepKeys } from '../query-keys';
|
|
10
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export const appStepsQueryKey = appStepKeys.list;
|
|
12
|
-
export function useAppStepsQuery(params) {
|
|
13
|
-
const args = buildListSelectionArgs(params.selection);
|
|
14
|
-
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
-
void _selection;
|
|
16
|
-
return useQuery({
|
|
17
|
-
queryKey: appStepKeys.list(args),
|
|
18
|
-
queryFn: () => getClient().appStep.findMany(args).unwrap(),
|
|
19
|
-
...queryOptions,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
export async function fetchAppStepsQuery(params) {
|
|
23
|
-
const args = buildListSelectionArgs(params.selection);
|
|
24
|
-
return getClient().appStep.findMany(args).unwrap();
|
|
25
|
-
}
|
|
26
|
-
export async function prefetchAppStepsQuery(queryClient, params) {
|
|
27
|
-
const args = buildListSelectionArgs(params.selection);
|
|
28
|
-
await queryClient.prefetchQuery({
|
|
29
|
-
queryKey: appStepKeys.list(args),
|
|
30
|
-
queryFn: () => getClient().appStep.findMany(args).unwrap(),
|
|
31
|
-
});
|
|
32
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Single item query hook for LevelsModule
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
-
import type { LevelsModuleSelect, LevelsModuleWithRelations } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { LevelsModuleSelect, LevelsModuleWithRelations } from '../../orm/input-types';
|
|
10
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export declare const levelsModuleQueryKey: (id: string | number) => readonly ["levelsmodule", "detail", string | number];
|
|
12
|
-
/**
|
|
13
|
-
* Query hook for fetching a single LevelsModule
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```tsx
|
|
17
|
-
* const { data, isLoading } = useLevelsModuleQuery({
|
|
18
|
-
* id: 'some-id',
|
|
19
|
-
* selection: { fields: { id: true, name: true } },
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare function useLevelsModuleQuery<S extends LevelsModuleSelect, TData = {
|
|
24
|
-
levelsModule: InferSelectResult<LevelsModuleWithRelations, S> | null;
|
|
25
|
-
}>(params: {
|
|
26
|
-
id: string;
|
|
27
|
-
selection: {
|
|
28
|
-
fields: S;
|
|
29
|
-
} & HookStrictSelect<NoInfer<S>, LevelsModuleSelect>;
|
|
30
|
-
} & Omit<UseQueryOptions<{
|
|
31
|
-
levelsModule: InferSelectResult<LevelsModuleWithRelations, S> | null;
|
|
32
|
-
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
-
/**
|
|
34
|
-
* Fetch a single LevelsModule without React hooks
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* const data = await fetchLevelsModuleQuery({
|
|
39
|
-
* id: 'some-id',
|
|
40
|
-
* selection: { fields: { id: true } },
|
|
41
|
-
* });
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export declare function fetchLevelsModuleQuery<S extends LevelsModuleSelect>(params: {
|
|
45
|
-
id: string;
|
|
46
|
-
selection: {
|
|
47
|
-
fields: S;
|
|
48
|
-
} & HookStrictSelect<NoInfer<S>, LevelsModuleSelect>;
|
|
49
|
-
}): Promise<{
|
|
50
|
-
levelsModule: InferSelectResult<LevelsModuleWithRelations, S> | null;
|
|
51
|
-
}>;
|
|
52
|
-
/**
|
|
53
|
-
* Prefetch a single LevelsModule for SSR or cache warming
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* await prefetchLevelsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
export declare function prefetchLevelsModuleQuery<S extends LevelsModuleSelect>(queryClient: QueryClient, params: {
|
|
61
|
-
id: string;
|
|
62
|
-
selection: {
|
|
63
|
-
fields: S;
|
|
64
|
-
} & HookStrictSelect<NoInfer<S>, LevelsModuleSelect>;
|
|
65
|
-
}): Promise<void>;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List query hook for LevelsModule
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
-
import type { ListSelectionConfig } from '../selection';
|
|
8
|
-
import type { LevelsModuleSelect, LevelsModuleWithRelations, LevelsModuleFilter, LevelsModuleOrderBy } from '../../orm/input-types';
|
|
9
|
-
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
-
export type { LevelsModuleSelect, LevelsModuleWithRelations, LevelsModuleFilter, LevelsModuleOrderBy, } from '../../orm/input-types';
|
|
11
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
-
export declare const levelsModulesQueryKey: (variables?: object) => readonly ["levelsmodule", "list", object];
|
|
13
|
-
/**
|
|
14
|
-
* Query hook for fetching LevelsModule list
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* const { data, isLoading } = useLevelsModulesQuery({
|
|
19
|
-
* selection: {
|
|
20
|
-
* fields: { id: true, name: true },
|
|
21
|
-
* where: { name: { equalTo: "example" } },
|
|
22
|
-
* orderBy: ['CREATED_AT_DESC'],
|
|
23
|
-
* first: 10,
|
|
24
|
-
* },
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export declare function useLevelsModulesQuery<S extends LevelsModuleSelect, TData = {
|
|
29
|
-
levelsModules: ConnectionResult<InferSelectResult<LevelsModuleWithRelations, S>>;
|
|
30
|
-
}>(params: {
|
|
31
|
-
selection: {
|
|
32
|
-
fields: S;
|
|
33
|
-
} & Omit<ListSelectionConfig<S, LevelsModuleFilter, LevelsModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, LevelsModuleSelect>;
|
|
34
|
-
} & Omit<UseQueryOptions<{
|
|
35
|
-
levelsModules: ConnectionResult<InferSelectResult<LevelsModuleWithRelations, S>>;
|
|
36
|
-
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
-
/**
|
|
38
|
-
* Fetch LevelsModule list without React hooks
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* const data = await fetchLevelsModulesQuery({
|
|
43
|
-
* selection: {
|
|
44
|
-
* fields: { id: true },
|
|
45
|
-
* first: 10,
|
|
46
|
-
* },
|
|
47
|
-
* });
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
export declare function fetchLevelsModulesQuery<S extends LevelsModuleSelect>(params: {
|
|
51
|
-
selection: {
|
|
52
|
-
fields: S;
|
|
53
|
-
} & Omit<ListSelectionConfig<S, LevelsModuleFilter, LevelsModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, LevelsModuleSelect>;
|
|
54
|
-
}): Promise<{
|
|
55
|
-
levelsModules: ConnectionResult<InferSelectResult<LevelsModuleWithRelations, S>>;
|
|
56
|
-
}>;
|
|
57
|
-
/**
|
|
58
|
-
* Prefetch LevelsModule list for SSR or cache warming
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* await prefetchLevelsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
export declare function prefetchLevelsModulesQuery<S extends LevelsModuleSelect>(queryClient: QueryClient, params: {
|
|
66
|
-
selection: {
|
|
67
|
-
fields: S;
|
|
68
|
-
} & Omit<ListSelectionConfig<S, LevelsModuleFilter, LevelsModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, LevelsModuleSelect>;
|
|
69
|
-
}): Promise<void>;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Single item query hook for SecretsModule
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
-
import type { SecretsModuleSelect, SecretsModuleWithRelations } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { SecretsModuleSelect, SecretsModuleWithRelations } from '../../orm/input-types';
|
|
10
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export declare const secretsModuleQueryKey: (id: string | number) => readonly ["secretsmodule", "detail", string | number];
|
|
12
|
-
/**
|
|
13
|
-
* Query hook for fetching a single SecretsModule
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```tsx
|
|
17
|
-
* const { data, isLoading } = useSecretsModuleQuery({
|
|
18
|
-
* id: 'some-id',
|
|
19
|
-
* selection: { fields: { id: true, name: true } },
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare function useSecretsModuleQuery<S extends SecretsModuleSelect, TData = {
|
|
24
|
-
secretsModule: InferSelectResult<SecretsModuleWithRelations, S> | null;
|
|
25
|
-
}>(params: {
|
|
26
|
-
id: string;
|
|
27
|
-
selection: {
|
|
28
|
-
fields: S;
|
|
29
|
-
} & HookStrictSelect<NoInfer<S>, SecretsModuleSelect>;
|
|
30
|
-
} & Omit<UseQueryOptions<{
|
|
31
|
-
secretsModule: InferSelectResult<SecretsModuleWithRelations, S> | null;
|
|
32
|
-
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
-
/**
|
|
34
|
-
* Fetch a single SecretsModule without React hooks
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* const data = await fetchSecretsModuleQuery({
|
|
39
|
-
* id: 'some-id',
|
|
40
|
-
* selection: { fields: { id: true } },
|
|
41
|
-
* });
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export declare function fetchSecretsModuleQuery<S extends SecretsModuleSelect>(params: {
|
|
45
|
-
id: string;
|
|
46
|
-
selection: {
|
|
47
|
-
fields: S;
|
|
48
|
-
} & HookStrictSelect<NoInfer<S>, SecretsModuleSelect>;
|
|
49
|
-
}): Promise<{
|
|
50
|
-
secretsModule: InferSelectResult<SecretsModuleWithRelations, S> | null;
|
|
51
|
-
}>;
|
|
52
|
-
/**
|
|
53
|
-
* Prefetch a single SecretsModule for SSR or cache warming
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* await prefetchSecretsModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
export declare function prefetchSecretsModuleQuery<S extends SecretsModuleSelect>(queryClient: QueryClient, params: {
|
|
61
|
-
id: string;
|
|
62
|
-
selection: {
|
|
63
|
-
fields: S;
|
|
64
|
-
} & HookStrictSelect<NoInfer<S>, SecretsModuleSelect>;
|
|
65
|
-
}): Promise<void>;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Single item query hook for SecretsModule
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import { useQuery } from '@tanstack/react-query';
|
|
7
|
-
import { getClient } from '../client';
|
|
8
|
-
import { buildSelectionArgs } from '../selection';
|
|
9
|
-
import { secretsModuleKeys } from '../query-keys';
|
|
10
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export const secretsModuleQueryKey = secretsModuleKeys.detail;
|
|
12
|
-
export function useSecretsModuleQuery(params) {
|
|
13
|
-
const args = buildSelectionArgs(params.selection);
|
|
14
|
-
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
-
void _selection;
|
|
16
|
-
return useQuery({
|
|
17
|
-
queryKey: secretsModuleKeys.detail(params.id),
|
|
18
|
-
queryFn: () => getClient()
|
|
19
|
-
.secretsModule.findOne({
|
|
20
|
-
id: params.id,
|
|
21
|
-
select: args.select,
|
|
22
|
-
})
|
|
23
|
-
.unwrap(),
|
|
24
|
-
...queryOptions,
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
export async function fetchSecretsModuleQuery(params) {
|
|
28
|
-
const args = buildSelectionArgs(params.selection);
|
|
29
|
-
return getClient()
|
|
30
|
-
.secretsModule.findOne({
|
|
31
|
-
id: params.id,
|
|
32
|
-
select: args.select,
|
|
33
|
-
})
|
|
34
|
-
.unwrap();
|
|
35
|
-
}
|
|
36
|
-
export async function prefetchSecretsModuleQuery(queryClient, params) {
|
|
37
|
-
const args = buildSelectionArgs(params.selection);
|
|
38
|
-
await queryClient.prefetchQuery({
|
|
39
|
-
queryKey: secretsModuleKeys.detail(params.id),
|
|
40
|
-
queryFn: () => getClient()
|
|
41
|
-
.secretsModule.findOne({
|
|
42
|
-
id: params.id,
|
|
43
|
-
select: args.select,
|
|
44
|
-
})
|
|
45
|
-
.unwrap(),
|
|
46
|
-
});
|
|
47
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List query hook for SecretsModule
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
-
import type { ListSelectionConfig } from '../selection';
|
|
8
|
-
import type { SecretsModuleSelect, SecretsModuleWithRelations, SecretsModuleFilter, SecretsModuleOrderBy } from '../../orm/input-types';
|
|
9
|
-
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
-
export type { SecretsModuleSelect, SecretsModuleWithRelations, SecretsModuleFilter, SecretsModuleOrderBy, } from '../../orm/input-types';
|
|
11
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
-
export declare const secretsModulesQueryKey: (variables?: object) => readonly ["secretsmodule", "list", object];
|
|
13
|
-
/**
|
|
14
|
-
* Query hook for fetching SecretsModule list
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* const { data, isLoading } = useSecretsModulesQuery({
|
|
19
|
-
* selection: {
|
|
20
|
-
* fields: { id: true, name: true },
|
|
21
|
-
* where: { name: { equalTo: "example" } },
|
|
22
|
-
* orderBy: ['CREATED_AT_DESC'],
|
|
23
|
-
* first: 10,
|
|
24
|
-
* },
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export declare function useSecretsModulesQuery<S extends SecretsModuleSelect, TData = {
|
|
29
|
-
secretsModules: ConnectionResult<InferSelectResult<SecretsModuleWithRelations, S>>;
|
|
30
|
-
}>(params: {
|
|
31
|
-
selection: {
|
|
32
|
-
fields: S;
|
|
33
|
-
} & Omit<ListSelectionConfig<S, SecretsModuleFilter, SecretsModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SecretsModuleSelect>;
|
|
34
|
-
} & Omit<UseQueryOptions<{
|
|
35
|
-
secretsModules: ConnectionResult<InferSelectResult<SecretsModuleWithRelations, S>>;
|
|
36
|
-
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
-
/**
|
|
38
|
-
* Fetch SecretsModule list without React hooks
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* const data = await fetchSecretsModulesQuery({
|
|
43
|
-
* selection: {
|
|
44
|
-
* fields: { id: true },
|
|
45
|
-
* first: 10,
|
|
46
|
-
* },
|
|
47
|
-
* });
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
export declare function fetchSecretsModulesQuery<S extends SecretsModuleSelect>(params: {
|
|
51
|
-
selection: {
|
|
52
|
-
fields: S;
|
|
53
|
-
} & Omit<ListSelectionConfig<S, SecretsModuleFilter, SecretsModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SecretsModuleSelect>;
|
|
54
|
-
}): Promise<{
|
|
55
|
-
secretsModules: ConnectionResult<InferSelectResult<SecretsModuleWithRelations, S>>;
|
|
56
|
-
}>;
|
|
57
|
-
/**
|
|
58
|
-
* Prefetch SecretsModule list for SSR or cache warming
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* await prefetchSecretsModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
export declare function prefetchSecretsModulesQuery<S extends SecretsModuleSelect>(queryClient: QueryClient, params: {
|
|
66
|
-
selection: {
|
|
67
|
-
fields: S;
|
|
68
|
-
} & Omit<ListSelectionConfig<S, SecretsModuleFilter, SecretsModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, SecretsModuleSelect>;
|
|
69
|
-
}): Promise<void>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List query hook for SecretsModule
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import { useQuery } from '@tanstack/react-query';
|
|
7
|
-
import { getClient } from '../client';
|
|
8
|
-
import { buildListSelectionArgs } from '../selection';
|
|
9
|
-
import { secretsModuleKeys } from '../query-keys';
|
|
10
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export const secretsModulesQueryKey = secretsModuleKeys.list;
|
|
12
|
-
export function useSecretsModulesQuery(params) {
|
|
13
|
-
const args = buildListSelectionArgs(params.selection);
|
|
14
|
-
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
-
void _selection;
|
|
16
|
-
return useQuery({
|
|
17
|
-
queryKey: secretsModuleKeys.list(args),
|
|
18
|
-
queryFn: () => getClient().secretsModule.findMany(args).unwrap(),
|
|
19
|
-
...queryOptions,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
export async function fetchSecretsModulesQuery(params) {
|
|
23
|
-
const args = buildListSelectionArgs(params.selection);
|
|
24
|
-
return getClient().secretsModule.findMany(args).unwrap();
|
|
25
|
-
}
|
|
26
|
-
export async function prefetchSecretsModulesQuery(queryClient, params) {
|
|
27
|
-
const args = buildListSelectionArgs(params.selection);
|
|
28
|
-
await queryClient.prefetchQuery({
|
|
29
|
-
queryKey: secretsModuleKeys.list(args),
|
|
30
|
-
queryFn: () => getClient().secretsModule.findMany(args).unwrap(),
|
|
31
|
-
});
|
|
32
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom query hook for stepsAchieved
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
-
import type { StepsAchievedVariables } from '../../orm/query';
|
|
8
|
-
export type { StepsAchievedVariables } from '../../orm/query';
|
|
9
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
10
|
-
export declare const stepsAchievedQueryKey: (variables?: object) => readonly ["stepsAchieved", object];
|
|
11
|
-
/**
|
|
12
|
-
* Query hook for stepsAchieved
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```tsx
|
|
16
|
-
* const { data, isLoading } = useStepsAchievedQuery({ variables: { level, roleId } });
|
|
17
|
-
*
|
|
18
|
-
* if (data?.stepsAchieved) {
|
|
19
|
-
* console.log(data.stepsAchieved);
|
|
20
|
-
* }
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare function useStepsAchievedQuery<TData = {
|
|
24
|
-
stepsAchieved: boolean | null;
|
|
25
|
-
}>(params?: {
|
|
26
|
-
variables?: StepsAchievedVariables;
|
|
27
|
-
} & Omit<UseQueryOptions<{
|
|
28
|
-
stepsAchieved: boolean | null;
|
|
29
|
-
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
30
|
-
/**
|
|
31
|
-
* Fetch stepsAchieved without React hooks
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```ts
|
|
35
|
-
* const data = await fetchStepsAchievedQuery({ variables: { level, roleId } });
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
export declare function fetchStepsAchievedQuery(params?: {
|
|
39
|
-
variables?: StepsAchievedVariables;
|
|
40
|
-
}): Promise<{
|
|
41
|
-
stepsAchieved: boolean | null;
|
|
42
|
-
}>;
|
|
43
|
-
/**
|
|
44
|
-
* Prefetch stepsAchieved for SSR or cache warming
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* await prefetchStepsAchievedQuery(queryClient, { variables: { level, roleId } });
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
export declare function prefetchStepsAchievedQuery(queryClient: QueryClient, params?: {
|
|
52
|
-
variables?: StepsAchievedVariables;
|
|
53
|
-
}): Promise<void>;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom query hook for stepsAchieved
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import { useQuery } from '@tanstack/react-query';
|
|
7
|
-
import { getClient } from '../client';
|
|
8
|
-
import { customQueryKeys } from '../query-keys';
|
|
9
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
10
|
-
export const stepsAchievedQueryKey = customQueryKeys.stepsAchieved;
|
|
11
|
-
export function useStepsAchievedQuery(params) {
|
|
12
|
-
const variables = params?.variables ?? {};
|
|
13
|
-
const { variables: _variables, ...queryOptions } = params ?? {};
|
|
14
|
-
void _variables;
|
|
15
|
-
return useQuery({
|
|
16
|
-
queryKey: stepsAchievedQueryKey(variables),
|
|
17
|
-
queryFn: () => getClient().query.stepsAchieved(variables).unwrap(),
|
|
18
|
-
...queryOptions,
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Fetch stepsAchieved without React hooks
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* const data = await fetchStepsAchievedQuery({ variables: { level, roleId } });
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
export async function fetchStepsAchievedQuery(params) {
|
|
30
|
-
const variables = params?.variables ?? {};
|
|
31
|
-
return getClient().query.stepsAchieved(variables).unwrap();
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Prefetch stepsAchieved for SSR or cache warming
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* await prefetchStepsAchievedQuery(queryClient, { variables: { level, roleId } });
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
export async function prefetchStepsAchievedQuery(queryClient, params) {
|
|
42
|
-
const variables = params?.variables ?? {};
|
|
43
|
-
await queryClient.prefetchQuery({
|
|
44
|
-
queryKey: stepsAchievedQueryKey(variables),
|
|
45
|
-
queryFn: () => getClient().query.stepsAchieved(variables).unwrap(),
|
|
46
|
-
});
|
|
47
|
-
}
|