@constructive-io/react 0.20.2 → 0.20.4
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,38 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
4
4
|
* @generated by @constructive-io/graphql-codegen
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.useUpdateAppLimitWarningMutation = useUpdateAppLimitWarningMutation;
|
|
9
9
|
const react_query_1 = require("@tanstack/react-query");
|
|
10
10
|
const client_1 = require("../client");
|
|
11
11
|
const selection_1 = require("../selection");
|
|
12
12
|
const query_keys_1 = require("../query-keys");
|
|
13
13
|
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
-
function
|
|
14
|
+
function useUpdateAppLimitWarningMutation(params) {
|
|
15
15
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
16
|
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
17
|
void _selection;
|
|
18
18
|
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
19
|
return (0, react_query_1.useMutation)({
|
|
20
|
-
mutationKey: mutation_keys_1.
|
|
21
|
-
mutationFn: ({ id,
|
|
22
|
-
.
|
|
20
|
+
mutationKey: mutation_keys_1.appLimitWarningMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id, appLimitWarningPatch, }) => (0, client_1.getClient)()
|
|
22
|
+
.appLimitWarning.update({
|
|
23
23
|
where: {
|
|
24
24
|
id,
|
|
25
25
|
},
|
|
26
|
-
data:
|
|
26
|
+
data: appLimitWarningPatch,
|
|
27
27
|
select: args.select,
|
|
28
28
|
})
|
|
29
29
|
.unwrap(),
|
|
30
30
|
onSuccess: (_, variables) => {
|
|
31
31
|
queryClient.invalidateQueries({
|
|
32
|
-
queryKey: query_keys_1.
|
|
32
|
+
queryKey: query_keys_1.appLimitWarningKeys.detail(variables.id),
|
|
33
33
|
});
|
|
34
34
|
queryClient.invalidateQueries({
|
|
35
|
-
queryKey: query_keys_1.
|
|
35
|
+
queryKey: query_keys_1.appLimitWarningKeys.lists(),
|
|
36
36
|
});
|
|
37
37
|
},
|
|
38
38
|
...mutationOptions,
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
|
+
import type { OrgLimitWarningSelect, OrgLimitWarningWithRelations, OrgLimitWarningPatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { OrgLimitWarningSelect, OrgLimitWarningWithRelations, OrgLimitWarningPatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateOrgLimitWarningMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', orgLimitWarningPatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateOrgLimitWarningMutation<S extends OrgLimitWarningSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & OrgLimitWarningSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, OrgLimitWarningSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateOrgLimitWarning: {
|
|
28
|
+
orgLimitWarning: InferSelectResult<OrgLimitWarningWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
orgLimitWarningPatch: OrgLimitWarningPatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateOrgLimitWarning: {
|
|
35
|
+
orgLimitWarning: InferSelectResult<OrgLimitWarningWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
orgLimitWarningPatch: OrgLimitWarningPatch;
|
|
40
|
+
}>;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
4
4
|
* @generated by @constructive-io/graphql-codegen
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.useUpdateOrgLimitWarningMutation = useUpdateOrgLimitWarningMutation;
|
|
9
9
|
const react_query_1 = require("@tanstack/react-query");
|
|
10
10
|
const client_1 = require("../client");
|
|
11
11
|
const selection_1 = require("../selection");
|
|
12
12
|
const query_keys_1 = require("../query-keys");
|
|
13
13
|
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
-
function
|
|
14
|
+
function useUpdateOrgLimitWarningMutation(params) {
|
|
15
15
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
16
|
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
17
|
void _selection;
|
|
18
18
|
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
19
|
return (0, react_query_1.useMutation)({
|
|
20
|
-
mutationKey: mutation_keys_1.
|
|
21
|
-
mutationFn: ({ id,
|
|
22
|
-
.
|
|
20
|
+
mutationKey: mutation_keys_1.orgLimitWarningMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id, orgLimitWarningPatch, }) => (0, client_1.getClient)()
|
|
22
|
+
.orgLimitWarning.update({
|
|
23
23
|
where: {
|
|
24
24
|
id,
|
|
25
25
|
},
|
|
26
|
-
data:
|
|
26
|
+
data: orgLimitWarningPatch,
|
|
27
27
|
select: args.select,
|
|
28
28
|
})
|
|
29
29
|
.unwrap(),
|
|
30
30
|
onSuccess: (_, variables) => {
|
|
31
31
|
queryClient.invalidateQueries({
|
|
32
|
-
queryKey: query_keys_1.
|
|
32
|
+
queryKey: query_keys_1.orgLimitWarningKeys.detail(variables.id),
|
|
33
33
|
});
|
|
34
34
|
queryClient.invalidateQueries({
|
|
35
|
-
queryKey: query_keys_1.
|
|
35
|
+
queryKey: query_keys_1.orgLimitWarningKeys.lists(),
|
|
36
36
|
});
|
|
37
37
|
},
|
|
38
38
|
...mutationOptions,
|
|
@@ -9,8 +9,6 @@ export * from './useAppPermissionsQuery';
|
|
|
9
9
|
export * from './useAppPermissionQuery';
|
|
10
10
|
export * from './useOrgPermissionsQuery';
|
|
11
11
|
export * from './useOrgPermissionQuery';
|
|
12
|
-
export * from './useAppLevelRequirementsQuery';
|
|
13
|
-
export * from './useAppLevelRequirementQuery';
|
|
14
12
|
export * from './useAppLimitCreditRedemptionsQuery';
|
|
15
13
|
export * from './useAppLimitCreditRedemptionQuery';
|
|
16
14
|
export * from './useAppLimitCreditCodeItemsQuery';
|
|
@@ -29,10 +27,6 @@ export * from './useAppAdminGrantsQuery';
|
|
|
29
27
|
export * from './useAppAdminGrantQuery';
|
|
30
28
|
export * from './useAppOwnerGrantsQuery';
|
|
31
29
|
export * from './useAppOwnerGrantQuery';
|
|
32
|
-
export * from './useAppAchievementsQuery';
|
|
33
|
-
export * from './useAppAchievementQuery';
|
|
34
|
-
export * from './useAppStepsQuery';
|
|
35
|
-
export * from './useAppStepQuery';
|
|
36
30
|
export * from './useAppLimitCapsDefaultsQuery';
|
|
37
31
|
export * from './useAppLimitCapsDefaultQuery';
|
|
38
32
|
export * from './useOrgLimitCapsDefaultsQuery';
|
|
@@ -53,6 +47,10 @@ export * from './useOrgLimitDefaultsQuery';
|
|
|
53
47
|
export * from './useOrgLimitDefaultQuery';
|
|
54
48
|
export * from './useOrgLimitCreditsQuery';
|
|
55
49
|
export * from './useOrgLimitCreditQuery';
|
|
50
|
+
export * from './useAppLimitWarningsQuery';
|
|
51
|
+
export * from './useAppLimitWarningQuery';
|
|
52
|
+
export * from './useOrgLimitWarningsQuery';
|
|
53
|
+
export * from './useOrgLimitWarningQuery';
|
|
56
54
|
export * from './useOrgChartEdgeGrantsQuery';
|
|
57
55
|
export * from './useOrgChartEdgeGrantQuery';
|
|
58
56
|
export * from './useAppClaimedInvitesQuery';
|
|
@@ -73,10 +71,6 @@ export * from './useOrgChartEdgesQuery';
|
|
|
73
71
|
export * from './useOrgChartEdgeQuery';
|
|
74
72
|
export * from './useUsageSnapshotsQuery';
|
|
75
73
|
export * from './useUsageSnapshotQuery';
|
|
76
|
-
export * from './useOrgMemberProfilesQuery';
|
|
77
|
-
export * from './useOrgMemberProfileQuery';
|
|
78
|
-
export * from './useAppLevelsQuery';
|
|
79
|
-
export * from './useAppLevelQuery';
|
|
80
74
|
export * from './useAppLimitsQuery';
|
|
81
75
|
export * from './useAppLimitQuery';
|
|
82
76
|
export * from './useAppInvitesQuery';
|
|
@@ -87,6 +81,8 @@ export * from './useOrgLimitAggregatesQuery';
|
|
|
87
81
|
export * from './useOrgLimitAggregateQuery';
|
|
88
82
|
export * from './useOrgLimitsQuery';
|
|
89
83
|
export * from './useOrgLimitQuery';
|
|
84
|
+
export * from './useOrgMemberProfilesQuery';
|
|
85
|
+
export * from './useOrgMemberProfileQuery';
|
|
90
86
|
export * from './useAppMembershipsQuery';
|
|
91
87
|
export * from './useAppMembershipQuery';
|
|
92
88
|
export * from './useOrgInvitesQuery';
|
|
@@ -98,9 +94,7 @@ export * from './useOrgPermissionsGetPaddedMaskQuery';
|
|
|
98
94
|
export * from './useOrgIsManagerOfQuery';
|
|
99
95
|
export * from './useAppPermissionsGetMaskQuery';
|
|
100
96
|
export * from './useOrgPermissionsGetMaskQuery';
|
|
101
|
-
export * from './useStepsAchievedQuery';
|
|
102
97
|
export * from './useAppPermissionsGetMaskByNamesQuery';
|
|
103
98
|
export * from './useOrgPermissionsGetMaskByNamesQuery';
|
|
104
99
|
export * from './useAppPermissionsGetByMaskQuery';
|
|
105
100
|
export * from './useOrgPermissionsGetByMaskQuery';
|
|
106
|
-
export * from './useStepsRequiredQuery';
|
|
@@ -25,8 +25,6 @@ __exportStar(require("./useAppPermissionsQuery"), exports);
|
|
|
25
25
|
__exportStar(require("./useAppPermissionQuery"), exports);
|
|
26
26
|
__exportStar(require("./useOrgPermissionsQuery"), exports);
|
|
27
27
|
__exportStar(require("./useOrgPermissionQuery"), exports);
|
|
28
|
-
__exportStar(require("./useAppLevelRequirementsQuery"), exports);
|
|
29
|
-
__exportStar(require("./useAppLevelRequirementQuery"), exports);
|
|
30
28
|
__exportStar(require("./useAppLimitCreditRedemptionsQuery"), exports);
|
|
31
29
|
__exportStar(require("./useAppLimitCreditRedemptionQuery"), exports);
|
|
32
30
|
__exportStar(require("./useAppLimitCreditCodeItemsQuery"), exports);
|
|
@@ -45,10 +43,6 @@ __exportStar(require("./useAppAdminGrantsQuery"), exports);
|
|
|
45
43
|
__exportStar(require("./useAppAdminGrantQuery"), exports);
|
|
46
44
|
__exportStar(require("./useAppOwnerGrantsQuery"), exports);
|
|
47
45
|
__exportStar(require("./useAppOwnerGrantQuery"), exports);
|
|
48
|
-
__exportStar(require("./useAppAchievementsQuery"), exports);
|
|
49
|
-
__exportStar(require("./useAppAchievementQuery"), exports);
|
|
50
|
-
__exportStar(require("./useAppStepsQuery"), exports);
|
|
51
|
-
__exportStar(require("./useAppStepQuery"), exports);
|
|
52
46
|
__exportStar(require("./useAppLimitCapsDefaultsQuery"), exports);
|
|
53
47
|
__exportStar(require("./useAppLimitCapsDefaultQuery"), exports);
|
|
54
48
|
__exportStar(require("./useOrgLimitCapsDefaultsQuery"), exports);
|
|
@@ -69,6 +63,10 @@ __exportStar(require("./useOrgLimitDefaultsQuery"), exports);
|
|
|
69
63
|
__exportStar(require("./useOrgLimitDefaultQuery"), exports);
|
|
70
64
|
__exportStar(require("./useOrgLimitCreditsQuery"), exports);
|
|
71
65
|
__exportStar(require("./useOrgLimitCreditQuery"), exports);
|
|
66
|
+
__exportStar(require("./useAppLimitWarningsQuery"), exports);
|
|
67
|
+
__exportStar(require("./useAppLimitWarningQuery"), exports);
|
|
68
|
+
__exportStar(require("./useOrgLimitWarningsQuery"), exports);
|
|
69
|
+
__exportStar(require("./useOrgLimitWarningQuery"), exports);
|
|
72
70
|
__exportStar(require("./useOrgChartEdgeGrantsQuery"), exports);
|
|
73
71
|
__exportStar(require("./useOrgChartEdgeGrantQuery"), exports);
|
|
74
72
|
__exportStar(require("./useAppClaimedInvitesQuery"), exports);
|
|
@@ -89,10 +87,6 @@ __exportStar(require("./useOrgChartEdgesQuery"), exports);
|
|
|
89
87
|
__exportStar(require("./useOrgChartEdgeQuery"), exports);
|
|
90
88
|
__exportStar(require("./useUsageSnapshotsQuery"), exports);
|
|
91
89
|
__exportStar(require("./useUsageSnapshotQuery"), exports);
|
|
92
|
-
__exportStar(require("./useOrgMemberProfilesQuery"), exports);
|
|
93
|
-
__exportStar(require("./useOrgMemberProfileQuery"), exports);
|
|
94
|
-
__exportStar(require("./useAppLevelsQuery"), exports);
|
|
95
|
-
__exportStar(require("./useAppLevelQuery"), exports);
|
|
96
90
|
__exportStar(require("./useAppLimitsQuery"), exports);
|
|
97
91
|
__exportStar(require("./useAppLimitQuery"), exports);
|
|
98
92
|
__exportStar(require("./useAppInvitesQuery"), exports);
|
|
@@ -103,6 +97,8 @@ __exportStar(require("./useOrgLimitAggregatesQuery"), exports);
|
|
|
103
97
|
__exportStar(require("./useOrgLimitAggregateQuery"), exports);
|
|
104
98
|
__exportStar(require("./useOrgLimitsQuery"), exports);
|
|
105
99
|
__exportStar(require("./useOrgLimitQuery"), exports);
|
|
100
|
+
__exportStar(require("./useOrgMemberProfilesQuery"), exports);
|
|
101
|
+
__exportStar(require("./useOrgMemberProfileQuery"), exports);
|
|
106
102
|
__exportStar(require("./useAppMembershipsQuery"), exports);
|
|
107
103
|
__exportStar(require("./useAppMembershipQuery"), exports);
|
|
108
104
|
__exportStar(require("./useOrgInvitesQuery"), exports);
|
|
@@ -114,9 +110,7 @@ __exportStar(require("./useOrgPermissionsGetPaddedMaskQuery"), exports);
|
|
|
114
110
|
__exportStar(require("./useOrgIsManagerOfQuery"), exports);
|
|
115
111
|
__exportStar(require("./useAppPermissionsGetMaskQuery"), exports);
|
|
116
112
|
__exportStar(require("./useOrgPermissionsGetMaskQuery"), exports);
|
|
117
|
-
__exportStar(require("./useStepsAchievedQuery"), exports);
|
|
118
113
|
__exportStar(require("./useAppPermissionsGetMaskByNamesQuery"), exports);
|
|
119
114
|
__exportStar(require("./useOrgPermissionsGetMaskByNamesQuery"), exports);
|
|
120
115
|
__exportStar(require("./useAppPermissionsGetByMaskQuery"), exports);
|
|
121
116
|
__exportStar(require("./useOrgPermissionsGetByMaskQuery"), exports);
|
|
122
|
-
__exportStar(require("./useStepsRequiredQuery"), exports);
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
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 { AppLimitWarningSelect, AppLimitWarningWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { AppLimitWarningSelect, AppLimitWarningWithRelations } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const appLimitWarningQueryKey: (id: string | number) => readonly ["applimitwarning", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useAppLimitWarningQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useAppLimitWarningQuery<S extends AppLimitWarningSelect, TData = {
|
|
24
|
+
appLimitWarning: InferSelectResult<AppLimitWarningWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, AppLimitWarningSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
appLimitWarning: InferSelectResult<AppLimitWarningWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchAppLimitWarningQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchAppLimitWarningQuery<S extends AppLimitWarningSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, AppLimitWarningSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
appLimitWarning: InferSelectResult<AppLimitWarningWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchAppLimitWarningQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchAppLimitWarningQuery<S extends AppLimitWarningSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, AppLimitWarningSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
4
4
|
* @generated by @constructive-io/graphql-codegen
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
8
|
+
exports.appLimitWarningQueryKey = void 0;
|
|
9
|
+
exports.useAppLimitWarningQuery = useAppLimitWarningQuery;
|
|
10
|
+
exports.fetchAppLimitWarningQuery = fetchAppLimitWarningQuery;
|
|
11
|
+
exports.prefetchAppLimitWarningQuery = prefetchAppLimitWarningQuery;
|
|
12
12
|
const react_query_1 = require("@tanstack/react-query");
|
|
13
13
|
const client_1 = require("../client");
|
|
14
14
|
const selection_1 = require("../selection");
|
|
15
15
|
const query_keys_1 = require("../query-keys");
|
|
16
16
|
/** Query key factory - re-exported from query-keys.ts */
|
|
17
|
-
exports.
|
|
18
|
-
function
|
|
17
|
+
exports.appLimitWarningQueryKey = query_keys_1.appLimitWarningKeys.detail;
|
|
18
|
+
function useAppLimitWarningQuery(params) {
|
|
19
19
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
20
20
|
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
21
21
|
void _selection;
|
|
22
22
|
return (0, react_query_1.useQuery)({
|
|
23
|
-
queryKey: query_keys_1.
|
|
23
|
+
queryKey: query_keys_1.appLimitWarningKeys.detail(params.id),
|
|
24
24
|
queryFn: () => (0, client_1.getClient)()
|
|
25
|
-
.
|
|
25
|
+
.appLimitWarning.findOne({
|
|
26
26
|
id: params.id,
|
|
27
27
|
select: args.select,
|
|
28
28
|
})
|
|
@@ -30,21 +30,21 @@ function useAppAchievementQuery(params) {
|
|
|
30
30
|
...queryOptions,
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
async function
|
|
33
|
+
async function fetchAppLimitWarningQuery(params) {
|
|
34
34
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
35
35
|
return (0, client_1.getClient)()
|
|
36
|
-
.
|
|
36
|
+
.appLimitWarning.findOne({
|
|
37
37
|
id: params.id,
|
|
38
38
|
select: args.select,
|
|
39
39
|
})
|
|
40
40
|
.unwrap();
|
|
41
41
|
}
|
|
42
|
-
async function
|
|
42
|
+
async function prefetchAppLimitWarningQuery(queryClient, params) {
|
|
43
43
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
44
44
|
await queryClient.prefetchQuery({
|
|
45
|
-
queryKey: query_keys_1.
|
|
45
|
+
queryKey: query_keys_1.appLimitWarningKeys.detail(params.id),
|
|
46
46
|
queryFn: () => (0, client_1.getClient)()
|
|
47
|
-
.
|
|
47
|
+
.appLimitWarning.findOne({
|
|
48
48
|
id: params.id,
|
|
49
49
|
select: args.select,
|
|
50
50
|
})
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
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 { AppLimitWarningSelect, AppLimitWarningWithRelations, AppLimitWarningFilter, AppLimitWarningOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { AppLimitWarningSelect, AppLimitWarningWithRelations, AppLimitWarningFilter, AppLimitWarningOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const appLimitWarningsQueryKey: (variables?: object) => readonly ["applimitwarning", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useAppLimitWarningsQuery({
|
|
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 useAppLimitWarningsQuery<S extends AppLimitWarningSelect, TData = {
|
|
29
|
+
appLimitWarnings: ConnectionResult<InferSelectResult<AppLimitWarningWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, AppLimitWarningFilter, AppLimitWarningOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLimitWarningSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
appLimitWarnings: ConnectionResult<InferSelectResult<AppLimitWarningWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchAppLimitWarningsQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchAppLimitWarningsQuery<S extends AppLimitWarningSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, AppLimitWarningFilter, AppLimitWarningOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLimitWarningSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
appLimitWarnings: ConnectionResult<InferSelectResult<AppLimitWarningWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchAppLimitWarningsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchAppLimitWarningsQuery<S extends AppLimitWarningSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, AppLimitWarningFilter, AppLimitWarningOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppLimitWarningSelect>;
|
|
69
|
+
}): Promise<void>;
|
package/{public/hooks/queries/useAppStepsQuery.js → admin/hooks/queries/useAppLimitWarningsQuery.js}
RENAMED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
4
4
|
* @generated by @constructive-io/graphql-codegen
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
8
|
+
exports.appLimitWarningsQueryKey = void 0;
|
|
9
|
+
exports.useAppLimitWarningsQuery = useAppLimitWarningsQuery;
|
|
10
|
+
exports.fetchAppLimitWarningsQuery = fetchAppLimitWarningsQuery;
|
|
11
|
+
exports.prefetchAppLimitWarningsQuery = prefetchAppLimitWarningsQuery;
|
|
12
12
|
const react_query_1 = require("@tanstack/react-query");
|
|
13
13
|
const client_1 = require("../client");
|
|
14
14
|
const selection_1 = require("../selection");
|
|
15
15
|
const query_keys_1 = require("../query-keys");
|
|
16
16
|
/** Query key factory - re-exported from query-keys.ts */
|
|
17
|
-
exports.
|
|
18
|
-
function
|
|
17
|
+
exports.appLimitWarningsQueryKey = query_keys_1.appLimitWarningKeys.list;
|
|
18
|
+
function useAppLimitWarningsQuery(params) {
|
|
19
19
|
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
20
20
|
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
21
21
|
void _selection;
|
|
22
22
|
return (0, react_query_1.useQuery)({
|
|
23
|
-
queryKey: query_keys_1.
|
|
24
|
-
queryFn: () => (0, client_1.getClient)().
|
|
23
|
+
queryKey: query_keys_1.appLimitWarningKeys.list(args),
|
|
24
|
+
queryFn: () => (0, client_1.getClient)().appLimitWarning.findMany(args).unwrap(),
|
|
25
25
|
...queryOptions,
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
async function
|
|
28
|
+
async function fetchAppLimitWarningsQuery(params) {
|
|
29
29
|
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
30
|
-
return (0, client_1.getClient)().
|
|
30
|
+
return (0, client_1.getClient)().appLimitWarning.findMany(args).unwrap();
|
|
31
31
|
}
|
|
32
|
-
async function
|
|
32
|
+
async function prefetchAppLimitWarningsQuery(queryClient, params) {
|
|
33
33
|
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
34
34
|
await queryClient.prefetchQuery({
|
|
35
|
-
queryKey: query_keys_1.
|
|
36
|
-
queryFn: () => (0, client_1.getClient)().
|
|
35
|
+
queryKey: query_keys_1.appLimitWarningKeys.list(args),
|
|
36
|
+
queryFn: () => (0, client_1.getClient)().appLimitWarning.findMany(args).unwrap(),
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
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 { OrgLimitWarningSelect, OrgLimitWarningWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { OrgLimitWarningSelect, OrgLimitWarningWithRelations } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const orgLimitWarningQueryKey: (id: string | number) => readonly ["orglimitwarning", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useOrgLimitWarningQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useOrgLimitWarningQuery<S extends OrgLimitWarningSelect, TData = {
|
|
24
|
+
orgLimitWarning: InferSelectResult<OrgLimitWarningWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, OrgLimitWarningSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
orgLimitWarning: InferSelectResult<OrgLimitWarningWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchOrgLimitWarningQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchOrgLimitWarningQuery<S extends OrgLimitWarningSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, OrgLimitWarningSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
orgLimitWarning: InferSelectResult<OrgLimitWarningWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchOrgLimitWarningQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchOrgLimitWarningQuery<S extends OrgLimitWarningSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, OrgLimitWarningSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Warning configuration for soft limits. Each row defines a warning threshold and the job task to enqueue when usage approaches it.
|
|
4
4
|
* @generated by @constructive-io/graphql-codegen
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
8
|
+
exports.orgLimitWarningQueryKey = void 0;
|
|
9
|
+
exports.useOrgLimitWarningQuery = useOrgLimitWarningQuery;
|
|
10
|
+
exports.fetchOrgLimitWarningQuery = fetchOrgLimitWarningQuery;
|
|
11
|
+
exports.prefetchOrgLimitWarningQuery = prefetchOrgLimitWarningQuery;
|
|
12
12
|
const react_query_1 = require("@tanstack/react-query");
|
|
13
13
|
const client_1 = require("../client");
|
|
14
14
|
const selection_1 = require("../selection");
|
|
15
15
|
const query_keys_1 = require("../query-keys");
|
|
16
16
|
/** Query key factory - re-exported from query-keys.ts */
|
|
17
|
-
exports.
|
|
18
|
-
function
|
|
17
|
+
exports.orgLimitWarningQueryKey = query_keys_1.orgLimitWarningKeys.detail;
|
|
18
|
+
function useOrgLimitWarningQuery(params) {
|
|
19
19
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
20
20
|
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
21
21
|
void _selection;
|
|
22
22
|
return (0, react_query_1.useQuery)({
|
|
23
|
-
queryKey: query_keys_1.
|
|
23
|
+
queryKey: query_keys_1.orgLimitWarningKeys.detail(params.id),
|
|
24
24
|
queryFn: () => (0, client_1.getClient)()
|
|
25
|
-
.
|
|
25
|
+
.orgLimitWarning.findOne({
|
|
26
26
|
id: params.id,
|
|
27
27
|
select: args.select,
|
|
28
28
|
})
|
|
@@ -30,21 +30,21 @@ function useAppStepQuery(params) {
|
|
|
30
30
|
...queryOptions,
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
async function
|
|
33
|
+
async function fetchOrgLimitWarningQuery(params) {
|
|
34
34
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
35
35
|
return (0, client_1.getClient)()
|
|
36
|
-
.
|
|
36
|
+
.orgLimitWarning.findOne({
|
|
37
37
|
id: params.id,
|
|
38
38
|
select: args.select,
|
|
39
39
|
})
|
|
40
40
|
.unwrap();
|
|
41
41
|
}
|
|
42
|
-
async function
|
|
42
|
+
async function prefetchOrgLimitWarningQuery(queryClient, params) {
|
|
43
43
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
44
44
|
await queryClient.prefetchQuery({
|
|
45
|
-
queryKey: query_keys_1.
|
|
45
|
+
queryKey: query_keys_1.orgLimitWarningKeys.detail(params.id),
|
|
46
46
|
queryFn: () => (0, client_1.getClient)()
|
|
47
|
-
.
|
|
47
|
+
.orgLimitWarning.findOne({
|
|
48
48
|
id: params.id,
|
|
49
49
|
select: args.select,
|
|
50
50
|
})
|