@constructive-io/react 0.11.3 → 0.12.0
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 +10 -10
- package/admin/hooks/invalidation.js +18 -18
- package/admin/hooks/mutation-keys.d.ts +22 -22
- package/admin/hooks/mutation-keys.js +16 -16
- package/admin/hooks/mutations/index.d.ts +7 -7
- package/admin/hooks/mutations/index.js +7 -7
- package/admin/hooks/mutations/useCreateAppClaimedInviteMutation.d.ts +34 -0
- package/admin/hooks/mutations/{useCreateClaimedInviteMutation.js → useCreateAppClaimedInviteMutation.js} +5 -5
- package/admin/hooks/mutations/useCreateAppInviteMutation.d.ts +34 -0
- package/{public/hooks/mutations/useCreateInviteMutation.js → admin/hooks/mutations/useCreateAppInviteMutation.js} +5 -5
- package/{esm/admin/hooks/mutations/useDeleteClaimedInviteMutation.d.ts → admin/hooks/mutations/useDeleteAppClaimedInviteMutation.d.ts} +10 -10
- package/admin/hooks/mutations/{useDeleteClaimedInviteMutation.js → useDeleteAppClaimedInviteMutation.js} +6 -6
- package/{esm/public/hooks/mutations/useDeleteInviteMutation.d.ts → admin/hooks/mutations/useDeleteAppInviteMutation.d.ts} +10 -10
- package/{public/hooks/mutations/useDeleteInviteMutation.js → admin/hooks/mutations/useDeleteAppInviteMutation.js} +6 -6
- package/admin/hooks/mutations/useSubmitAppInviteCodeMutation.d.ts +20 -0
- package/admin/hooks/mutations/{useSubmitInviteCodeMutation.js → useSubmitAppInviteCodeMutation.js} +5 -5
- package/admin/hooks/mutations/useUpdateAppClaimedInviteMutation.d.ts +40 -0
- package/{public/hooks/mutations/useUpdateClaimedInviteMutation.js → admin/hooks/mutations/useUpdateAppClaimedInviteMutation.js} +8 -8
- package/admin/hooks/mutations/useUpdateAppInviteMutation.d.ts +40 -0
- package/{public/hooks/mutations/useUpdateInviteMutation.js → admin/hooks/mutations/useUpdateAppInviteMutation.js} +8 -8
- package/admin/hooks/queries/index.d.ts +4 -4
- package/admin/hooks/queries/index.js +4 -4
- package/admin/hooks/queries/useAppClaimedInviteQuery.d.ts +65 -0
- package/{public/hooks/queries/useClaimedInviteQuery.js → admin/hooks/queries/useAppClaimedInviteQuery.js} +13 -13
- package/admin/hooks/queries/useAppClaimedInvitesQuery.d.ts +69 -0
- package/admin/hooks/queries/{useClaimedInvitesQuery.js → useAppClaimedInvitesQuery.js} +13 -13
- package/{esm/admin/hooks/queries/useInviteQuery.d.ts → admin/hooks/queries/useAppInviteQuery.d.ts} +15 -15
- package/admin/hooks/queries/{useInviteQuery.js → useAppInviteQuery.js} +13 -13
- package/{esm/public/hooks/queries/useInvitesQuery.d.ts → admin/hooks/queries/useAppInvitesQuery.d.ts} +15 -15
- package/{public/hooks/queries/useInvitesQuery.js → admin/hooks/queries/useAppInvitesQuery.js} +13 -13
- package/admin/hooks/queries/useStepsAchievedQuery.d.ts +3 -3
- package/admin/hooks/queries/useStepsAchievedQuery.js +2 -2
- package/admin/hooks/queries/useStepsRequiredQuery.d.ts +3 -3
- package/admin/hooks/queries/useStepsRequiredQuery.js +2 -2
- package/admin/hooks/query-keys.d.ts +24 -24
- package/admin/hooks/query-keys.js +15 -15
- package/admin/orm/index.d.ts +7 -7
- package/admin/orm/index.js +4 -4
- package/admin/orm/input-types.d.ts +99 -99
- package/admin/orm/models/appClaimedInvite.d.ts +56 -0
- package/{public/orm/models/claimedInvite.js → admin/orm/models/appClaimedInvite.js} +26 -26
- package/admin/orm/models/appInvite.d.ts +56 -0
- package/admin/orm/models/{invite.js → appInvite.js} +26 -26
- package/admin/orm/models/index.d.ts +2 -2
- package/admin/orm/models/index.js +5 -5
- package/admin/orm/mutation/index.d.ts +6 -6
- package/admin/orm/mutation/index.js +6 -6
- package/admin/orm/query/index.d.ts +4 -4
- package/admin/orm/query/index.js +4 -4
- package/admin/schema-types.d.ts +79 -79
- package/admin/types.d.ts +2 -2
- package/auth/hooks/mutation-keys.d.ts +4 -4
- package/auth/hooks/mutation-keys.js +6 -6
- package/auth/hooks/mutations/index.d.ts +2 -2
- package/auth/hooks/mutations/index.js +2 -2
- package/auth/orm/index.d.ts +10 -10
- package/auth/orm/input-types.d.ts +24 -72
- package/auth/orm/mutation/index.d.ts +17 -17
- package/auth/orm/mutation/index.js +24 -24
- package/auth/schema-types.d.ts +16 -44
- package/esm/admin/hooks/index.d.ts +1 -1
- package/esm/admin/hooks/index.js +1 -1
- package/esm/admin/hooks/invalidation.d.ts +10 -10
- package/esm/admin/hooks/invalidation.js +19 -19
- package/esm/admin/hooks/mutation-keys.d.ts +22 -22
- package/esm/admin/hooks/mutation-keys.js +15 -15
- package/esm/admin/hooks/mutations/index.d.ts +7 -7
- package/esm/admin/hooks/mutations/index.js +7 -7
- package/esm/admin/hooks/mutations/useCreateAppClaimedInviteMutation.d.ts +34 -0
- package/esm/{public/hooks/mutations/useCreateClaimedInviteMutation.js → admin/hooks/mutations/useCreateAppClaimedInviteMutation.js} +6 -6
- package/esm/admin/hooks/mutations/useCreateAppInviteMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/{useCreateInviteMutation.js → useCreateAppInviteMutation.js} +6 -6
- package/esm/{public/hooks/mutations/useDeleteClaimedInviteMutation.d.ts → admin/hooks/mutations/useDeleteAppClaimedInviteMutation.d.ts} +10 -10
- package/esm/{public/hooks/mutations/useDeleteClaimedInviteMutation.js → admin/hooks/mutations/useDeleteAppClaimedInviteMutation.js} +7 -7
- package/esm/admin/hooks/mutations/{useDeleteInviteMutation.d.ts → useDeleteAppInviteMutation.d.ts} +10 -10
- package/esm/{public/hooks/mutations/useDeleteInviteMutation.js → admin/hooks/mutations/useDeleteAppInviteMutation.js} +7 -7
- package/esm/admin/hooks/mutations/useSubmitAppInviteCodeMutation.d.ts +20 -0
- package/esm/{public/hooks/mutations/useSubmitInviteCodeMutation.js → admin/hooks/mutations/useSubmitAppInviteCodeMutation.js} +4 -4
- package/esm/admin/hooks/mutations/useUpdateAppClaimedInviteMutation.d.ts +40 -0
- package/esm/{public/hooks/mutations/useUpdateClaimedInviteMutation.js → admin/hooks/mutations/useUpdateAppClaimedInviteMutation.js} +9 -9
- package/esm/admin/hooks/mutations/useUpdateAppInviteMutation.d.ts +40 -0
- package/esm/{public/hooks/mutations/useUpdateInviteMutation.js → admin/hooks/mutations/useUpdateAppInviteMutation.js} +9 -9
- package/esm/admin/hooks/queries/index.d.ts +4 -4
- package/esm/admin/hooks/queries/index.js +4 -4
- package/esm/admin/hooks/queries/useAppClaimedInviteQuery.d.ts +65 -0
- package/esm/admin/hooks/queries/{useClaimedInviteQuery.js → useAppClaimedInviteQuery.js} +10 -10
- package/esm/admin/hooks/queries/useAppClaimedInvitesQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/{useClaimedInvitesQuery.js → useAppClaimedInvitesQuery.js} +10 -10
- package/esm/{public/hooks/queries/useInviteQuery.d.ts → admin/hooks/queries/useAppInviteQuery.d.ts} +15 -15
- package/esm/{public/hooks/queries/useInviteQuery.js → admin/hooks/queries/useAppInviteQuery.js} +10 -10
- package/{public/hooks/queries/useInvitesQuery.d.ts → esm/admin/hooks/queries/useAppInvitesQuery.d.ts} +15 -15
- package/esm/{public/hooks/queries/useInvitesQuery.js → admin/hooks/queries/useAppInvitesQuery.js} +10 -10
- package/esm/admin/hooks/queries/useStepsAchievedQuery.d.ts +3 -3
- package/esm/admin/hooks/queries/useStepsAchievedQuery.js +2 -2
- package/esm/admin/hooks/queries/useStepsRequiredQuery.d.ts +3 -3
- package/esm/admin/hooks/queries/useStepsRequiredQuery.js +2 -2
- package/esm/admin/hooks/query-keys.d.ts +24 -24
- package/esm/admin/hooks/query-keys.js +14 -14
- package/esm/admin/orm/index.d.ts +7 -7
- package/esm/admin/orm/index.js +4 -4
- package/esm/admin/orm/input-types.d.ts +99 -99
- package/esm/admin/orm/models/appClaimedInvite.d.ts +56 -0
- package/esm/admin/orm/models/{claimedInvite.js → appClaimedInvite.js} +24 -24
- package/esm/admin/orm/models/appInvite.d.ts +56 -0
- package/esm/{public/orm/models/invite.js → admin/orm/models/appInvite.js} +24 -24
- package/esm/admin/orm/models/index.d.ts +2 -2
- package/esm/admin/orm/models/index.js +2 -2
- package/esm/admin/orm/mutation/index.d.ts +6 -6
- package/esm/admin/orm/mutation/index.js +6 -6
- package/esm/admin/orm/query/index.d.ts +4 -4
- package/esm/admin/orm/query/index.js +4 -4
- package/esm/admin/schema-types.d.ts +79 -79
- package/esm/admin/types.d.ts +2 -2
- package/esm/auth/hooks/mutation-keys.d.ts +4 -4
- package/esm/auth/hooks/mutation-keys.js +6 -6
- package/esm/auth/hooks/mutations/index.d.ts +2 -2
- package/esm/auth/hooks/mutations/index.js +2 -2
- package/esm/auth/orm/index.d.ts +10 -10
- package/esm/auth/orm/input-types.d.ts +24 -72
- package/esm/auth/orm/mutation/index.d.ts +17 -17
- package/esm/auth/orm/mutation/index.js +24 -24
- package/esm/auth/schema-types.d.ts +16 -44
- package/esm/public/hooks/index.d.ts +1 -1
- package/esm/public/hooks/index.js +1 -1
- package/esm/public/hooks/invalidation.d.ts +16 -10
- package/esm/public/hooks/invalidation.js +35 -19
- package/esm/public/hooks/mutation-keys.d.ts +39 -27
- package/esm/public/hooks/mutation-keys.js +29 -22
- package/esm/public/hooks/mutations/index.d.ts +12 -9
- package/esm/public/hooks/mutations/index.js +12 -9
- package/esm/public/hooks/mutations/useCreateAppClaimedInviteMutation.d.ts +34 -0
- package/esm/{admin/hooks/mutations/useCreateClaimedInviteMutation.js → public/hooks/mutations/useCreateAppClaimedInviteMutation.js} +6 -6
- package/esm/public/hooks/mutations/useCreateAppInviteMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/{useCreateInviteMutation.js → useCreateAppInviteMutation.js} +6 -6
- package/esm/public/hooks/mutations/useCreateRateLimitsModuleMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateRateLimitsModuleMutation.js +31 -0
- package/{public/hooks/mutations/useDeleteClaimedInviteMutation.d.ts → esm/public/hooks/mutations/useDeleteAppClaimedInviteMutation.d.ts} +10 -10
- package/esm/{admin/hooks/mutations/useDeleteClaimedInviteMutation.js → public/hooks/mutations/useDeleteAppClaimedInviteMutation.js} +7 -7
- package/{public/hooks/mutations/useDeleteInviteMutation.d.ts → esm/public/hooks/mutations/useDeleteAppInviteMutation.d.ts} +10 -10
- package/esm/{admin/hooks/mutations/useDeleteInviteMutation.js → public/hooks/mutations/useDeleteAppInviteMutation.js} +7 -7
- package/esm/public/hooks/mutations/useDeleteRateLimitsModuleMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteRateLimitsModuleMutation.js +36 -0
- package/esm/public/hooks/mutations/useSubmitAppInviteCodeMutation.d.ts +20 -0
- package/esm/{admin/hooks/mutations/useSubmitInviteCodeMutation.js → public/hooks/mutations/useSubmitAppInviteCodeMutation.js} +4 -4
- package/esm/public/hooks/mutations/useUpdateAppClaimedInviteMutation.d.ts +40 -0
- package/esm/{admin/hooks/mutations/useUpdateClaimedInviteMutation.js → public/hooks/mutations/useUpdateAppClaimedInviteMutation.js} +9 -9
- package/esm/public/hooks/mutations/useUpdateAppInviteMutation.d.ts +40 -0
- package/esm/{admin/hooks/mutations/useUpdateInviteMutation.js → public/hooks/mutations/useUpdateAppInviteMutation.js} +9 -9
- package/esm/public/hooks/mutations/useUpdateRateLimitsModuleMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateRateLimitsModuleMutation.js +37 -0
- package/esm/public/hooks/queries/index.d.ts +6 -4
- package/esm/public/hooks/queries/index.js +6 -4
- package/esm/public/hooks/queries/useAppClaimedInviteQuery.d.ts +65 -0
- package/esm/public/hooks/queries/{useClaimedInviteQuery.js → useAppClaimedInviteQuery.js} +10 -10
- package/esm/public/hooks/queries/useAppClaimedInvitesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/{useClaimedInvitesQuery.js → useAppClaimedInvitesQuery.js} +10 -10
- package/{admin/hooks/queries/useInviteQuery.d.ts → esm/public/hooks/queries/useAppInviteQuery.d.ts} +15 -15
- package/esm/{admin/hooks/queries/useInviteQuery.js → public/hooks/queries/useAppInviteQuery.js} +10 -10
- package/{admin/hooks/queries/useInvitesQuery.d.ts → esm/public/hooks/queries/useAppInvitesQuery.d.ts} +15 -15
- package/esm/{admin/hooks/queries/useInvitesQuery.js → public/hooks/queries/useAppInvitesQuery.js} +10 -10
- package/esm/public/hooks/queries/useRateLimitsModuleQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useRateLimitsModuleQuery.js +47 -0
- package/esm/public/hooks/queries/useRateLimitsModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useRateLimitsModulesQuery.js +32 -0
- package/esm/public/hooks/queries/useStepsAchievedQuery.d.ts +3 -3
- package/esm/public/hooks/queries/useStepsAchievedQuery.js +2 -2
- package/esm/public/hooks/queries/useStepsRequiredQuery.d.ts +3 -3
- package/esm/public/hooks/queries/useStepsRequiredQuery.js +2 -2
- package/esm/public/hooks/query-keys.d.ts +39 -25
- package/esm/public/hooks/query-keys.js +23 -15
- package/esm/public/orm/index.d.ts +19 -17
- package/esm/public/orm/index.js +6 -4
- package/esm/public/orm/input-types.d.ts +402 -230
- package/esm/public/orm/input-types.js +3 -3
- package/esm/public/orm/models/appClaimedInvite.d.ts +56 -0
- package/esm/public/orm/models/{claimedInvite.js → appClaimedInvite.js} +24 -24
- package/esm/public/orm/models/appInvite.d.ts +56 -0
- package/esm/{admin/orm/models/invite.js → public/orm/models/appInvite.js} +24 -24
- package/esm/public/orm/models/index.d.ts +3 -2
- package/esm/public/orm/models/index.js +3 -2
- package/esm/public/orm/models/rateLimitsModule.d.ts +56 -0
- package/esm/public/orm/models/rateLimitsModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +22 -22
- package/esm/public/orm/mutation/index.js +30 -30
- package/esm/public/orm/query/index.d.ts +4 -4
- package/esm/public/orm/query/index.js +4 -4
- package/esm/public/schema-types.d.ts +230 -145
- package/esm/public/types.d.ts +13 -2
- package/package.json +5 -5
- package/public/hooks/index.d.ts +1 -1
- package/public/hooks/index.js +1 -1
- package/public/hooks/invalidation.d.ts +16 -10
- package/public/hooks/invalidation.js +34 -18
- package/public/hooks/mutation-keys.d.ts +39 -27
- package/public/hooks/mutation-keys.js +30 -23
- package/public/hooks/mutations/index.d.ts +12 -9
- package/public/hooks/mutations/index.js +12 -9
- package/public/hooks/mutations/useCreateAppClaimedInviteMutation.d.ts +34 -0
- package/public/hooks/mutations/{useCreateClaimedInviteMutation.js → useCreateAppClaimedInviteMutation.js} +5 -5
- package/public/hooks/mutations/useCreateAppInviteMutation.d.ts +34 -0
- package/{admin/hooks/mutations/useCreateInviteMutation.js → public/hooks/mutations/useCreateAppInviteMutation.js} +5 -5
- package/public/hooks/mutations/useCreateRateLimitsModuleMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateRateLimitsModuleMutation.js +34 -0
- package/{admin/hooks/mutations/useDeleteClaimedInviteMutation.d.ts → public/hooks/mutations/useDeleteAppClaimedInviteMutation.d.ts} +10 -10
- package/public/hooks/mutations/{useDeleteClaimedInviteMutation.js → useDeleteAppClaimedInviteMutation.js} +6 -6
- package/{admin/hooks/mutations/useDeleteInviteMutation.d.ts → public/hooks/mutations/useDeleteAppInviteMutation.d.ts} +10 -10
- package/{admin/hooks/mutations/useDeleteInviteMutation.js → public/hooks/mutations/useDeleteAppInviteMutation.js} +6 -6
- package/public/hooks/mutations/useDeleteRateLimitsModuleMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteRateLimitsModuleMutation.js +39 -0
- package/public/hooks/mutations/useSubmitAppInviteCodeMutation.d.ts +20 -0
- package/public/hooks/mutations/{useSubmitInviteCodeMutation.js → useSubmitAppInviteCodeMutation.js} +5 -5
- package/public/hooks/mutations/useUpdateAppClaimedInviteMutation.d.ts +40 -0
- package/{admin/hooks/mutations/useUpdateClaimedInviteMutation.js → public/hooks/mutations/useUpdateAppClaimedInviteMutation.js} +8 -8
- package/public/hooks/mutations/useUpdateAppInviteMutation.d.ts +40 -0
- package/{admin/hooks/mutations/useUpdateInviteMutation.js → public/hooks/mutations/useUpdateAppInviteMutation.js} +8 -8
- package/public/hooks/mutations/useUpdateRateLimitsModuleMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateRateLimitsModuleMutation.js +40 -0
- package/public/hooks/queries/index.d.ts +6 -4
- package/public/hooks/queries/index.js +6 -4
- package/public/hooks/queries/useAppClaimedInviteQuery.d.ts +65 -0
- package/{admin/hooks/queries/useClaimedInviteQuery.js → public/hooks/queries/useAppClaimedInviteQuery.js} +13 -13
- package/public/hooks/queries/useAppClaimedInvitesQuery.d.ts +69 -0
- package/public/hooks/queries/{useClaimedInvitesQuery.js → useAppClaimedInvitesQuery.js} +13 -13
- package/public/hooks/queries/{useInviteQuery.d.ts → useAppInviteQuery.d.ts} +15 -15
- package/public/hooks/queries/{useInviteQuery.js → useAppInviteQuery.js} +13 -13
- package/{esm/admin/hooks/queries/useInvitesQuery.d.ts → public/hooks/queries/useAppInvitesQuery.d.ts} +15 -15
- package/{admin/hooks/queries/useInvitesQuery.js → public/hooks/queries/useAppInvitesQuery.js} +13 -13
- package/public/hooks/queries/useRateLimitsModuleQuery.d.ts +65 -0
- package/public/hooks/queries/useRateLimitsModuleQuery.js +53 -0
- package/public/hooks/queries/useRateLimitsModulesQuery.d.ts +69 -0
- package/public/hooks/queries/useRateLimitsModulesQuery.js +38 -0
- package/public/hooks/queries/useStepsAchievedQuery.d.ts +3 -3
- package/public/hooks/queries/useStepsAchievedQuery.js +2 -2
- package/public/hooks/queries/useStepsRequiredQuery.d.ts +3 -3
- package/public/hooks/queries/useStepsRequiredQuery.js +2 -2
- package/public/hooks/query-keys.d.ts +39 -25
- package/public/hooks/query-keys.js +24 -16
- package/public/orm/index.d.ts +19 -17
- package/public/orm/index.js +6 -4
- package/public/orm/input-types.d.ts +402 -230
- package/public/orm/input-types.js +3 -3
- package/public/orm/models/appClaimedInvite.d.ts +56 -0
- package/{admin/orm/models/claimedInvite.js → public/orm/models/appClaimedInvite.js} +26 -26
- package/public/orm/models/appInvite.d.ts +56 -0
- package/public/orm/models/{invite.js → appInvite.js} +26 -26
- package/public/orm/models/index.d.ts +3 -2
- package/public/orm/models/index.js +8 -6
- package/public/orm/models/rateLimitsModule.d.ts +56 -0
- package/public/orm/models/rateLimitsModule.js +100 -0
- package/public/orm/mutation/index.d.ts +22 -22
- package/public/orm/mutation/index.js +30 -30
- package/public/orm/query/index.d.ts +4 -4
- package/public/orm/query/index.js +4 -4
- package/public/schema-types.d.ts +230 -145
- package/public/types.d.ts +13 -2
- package/admin/hooks/mutations/useCreateClaimedInviteMutation.d.ts +0 -34
- package/admin/hooks/mutations/useCreateInviteMutation.d.ts +0 -34
- package/admin/hooks/mutations/useSubmitInviteCodeMutation.d.ts +0 -20
- package/admin/hooks/mutations/useUpdateClaimedInviteMutation.d.ts +0 -40
- package/admin/hooks/mutations/useUpdateInviteMutation.d.ts +0 -40
- package/admin/hooks/queries/useClaimedInviteQuery.d.ts +0 -65
- package/admin/hooks/queries/useClaimedInvitesQuery.d.ts +0 -69
- package/admin/orm/models/claimedInvite.d.ts +0 -56
- package/admin/orm/models/invite.d.ts +0 -56
- package/esm/admin/hooks/mutations/useCreateClaimedInviteMutation.d.ts +0 -34
- package/esm/admin/hooks/mutations/useCreateInviteMutation.d.ts +0 -34
- package/esm/admin/hooks/mutations/useSubmitInviteCodeMutation.d.ts +0 -20
- package/esm/admin/hooks/mutations/useUpdateClaimedInviteMutation.d.ts +0 -40
- package/esm/admin/hooks/mutations/useUpdateInviteMutation.d.ts +0 -40
- package/esm/admin/hooks/queries/useClaimedInviteQuery.d.ts +0 -65
- package/esm/admin/hooks/queries/useClaimedInvitesQuery.d.ts +0 -69
- package/esm/admin/orm/models/claimedInvite.d.ts +0 -56
- package/esm/admin/orm/models/invite.d.ts +0 -56
- package/esm/public/hooks/mutations/useCreateClaimedInviteMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useCreateInviteMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useSubmitInviteCodeMutation.d.ts +0 -20
- package/esm/public/hooks/mutations/useUpdateClaimedInviteMutation.d.ts +0 -40
- package/esm/public/hooks/mutations/useUpdateInviteMutation.d.ts +0 -40
- package/esm/public/hooks/queries/useClaimedInviteQuery.d.ts +0 -65
- package/esm/public/hooks/queries/useClaimedInvitesQuery.d.ts +0 -69
- package/esm/public/orm/models/claimedInvite.d.ts +0 -56
- package/esm/public/orm/models/invite.d.ts +0 -56
- package/public/hooks/mutations/useCreateClaimedInviteMutation.d.ts +0 -34
- package/public/hooks/mutations/useCreateInviteMutation.d.ts +0 -34
- package/public/hooks/mutations/useSubmitInviteCodeMutation.d.ts +0 -20
- package/public/hooks/mutations/useUpdateClaimedInviteMutation.d.ts +0 -40
- package/public/hooks/mutations/useUpdateInviteMutation.d.ts +0 -40
- package/public/hooks/queries/useClaimedInviteQuery.d.ts +0 -65
- package/public/hooks/queries/useClaimedInvitesQuery.d.ts +0 -69
- package/public/orm/models/claimedInvite.d.ts +0 -56
- package/public/orm/models/invite.d.ts +0 -56
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom mutation hook for submitAppInviteCode
|
|
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 { SubmitAppInviteCodeVariables } from '../../orm/mutation';
|
|
8
|
+
import type { SubmitAppInviteCodePayloadSelect, SubmitAppInviteCodePayload } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { SubmitAppInviteCodeVariables } from '../../orm/mutation';
|
|
11
|
+
export type { SubmitAppInviteCodePayloadSelect } from '../../orm/input-types';
|
|
12
|
+
export declare function useSubmitAppInviteCodeMutation<S extends SubmitAppInviteCodePayloadSelect>(params: {
|
|
13
|
+
selection: {
|
|
14
|
+
fields: S & SubmitAppInviteCodePayloadSelect;
|
|
15
|
+
} & HookStrictSelect<NoInfer<S>, SubmitAppInviteCodePayloadSelect>;
|
|
16
|
+
} & Omit<UseMutationOptions<{
|
|
17
|
+
submitAppInviteCode: InferSelectResult<SubmitAppInviteCodePayload, S> | null;
|
|
18
|
+
}, Error, SubmitAppInviteCodeVariables>, 'mutationFn'>): UseMutationResult<{
|
|
19
|
+
submitAppInviteCode: InferSelectResult<SubmitAppInviteCodePayload, S> | null;
|
|
20
|
+
}, Error, SubmitAppInviteCodeVariables>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Custom mutation hook for
|
|
2
|
+
* Custom mutation hook for submitAppInviteCode
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
@@ -7,14 +7,14 @@ import { useMutation } from '@tanstack/react-query';
|
|
|
7
7
|
import { getClient } from '../client';
|
|
8
8
|
import { buildSelectionArgs } from '../selection';
|
|
9
9
|
import { customMutationKeys } from '../mutation-keys';
|
|
10
|
-
export function
|
|
10
|
+
export function useSubmitAppInviteCodeMutation(params) {
|
|
11
11
|
const args = buildSelectionArgs(params.selection);
|
|
12
12
|
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
13
13
|
void _selection;
|
|
14
14
|
return useMutation({
|
|
15
|
-
mutationKey: customMutationKeys.
|
|
15
|
+
mutationKey: customMutationKeys.submitAppInviteCode(),
|
|
16
16
|
mutationFn: (variables) => getClient()
|
|
17
|
-
.mutation.
|
|
17
|
+
.mutation.submitAppInviteCode(variables, {
|
|
18
18
|
select: args.select,
|
|
19
19
|
})
|
|
20
20
|
.unwrap(),
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Records of successfully claimed invitations, linking senders to receivers
|
|
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 { AppClaimedInviteSelect, AppClaimedInviteWithRelations, AppClaimedInvitePatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { AppClaimedInviteSelect, AppClaimedInviteWithRelations, AppClaimedInvitePatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Records of successfully claimed invitations, linking senders to receivers
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateAppClaimedInviteMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', appClaimedInvitePatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateAppClaimedInviteMutation<S extends AppClaimedInviteSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & AppClaimedInviteSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, AppClaimedInviteSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateAppClaimedInvite: {
|
|
28
|
+
appClaimedInvite: InferSelectResult<AppClaimedInviteWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
appClaimedInvitePatch: AppClaimedInvitePatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateAppClaimedInvite: {
|
|
35
|
+
appClaimedInvite: InferSelectResult<AppClaimedInviteWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
appClaimedInvitePatch: AppClaimedInvitePatch;
|
|
40
|
+
}>;
|
|
@@ -6,30 +6,30 @@
|
|
|
6
6
|
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
7
|
import { getClient } from '../client';
|
|
8
8
|
import { buildSelectionArgs } from '../selection';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
export function
|
|
9
|
+
import { appClaimedInviteKeys } from '../query-keys';
|
|
10
|
+
import { appClaimedInviteMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useUpdateAppClaimedInviteMutation(params) {
|
|
12
12
|
const args = buildSelectionArgs(params.selection);
|
|
13
13
|
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
14
|
void _selection;
|
|
15
15
|
const queryClient = useQueryClient();
|
|
16
16
|
return useMutation({
|
|
17
|
-
mutationKey:
|
|
18
|
-
mutationFn: ({ id,
|
|
19
|
-
.
|
|
17
|
+
mutationKey: appClaimedInviteMutationKeys.all,
|
|
18
|
+
mutationFn: ({ id, appClaimedInvitePatch, }) => getClient()
|
|
19
|
+
.appClaimedInvite.update({
|
|
20
20
|
where: {
|
|
21
21
|
id,
|
|
22
22
|
},
|
|
23
|
-
data:
|
|
23
|
+
data: appClaimedInvitePatch,
|
|
24
24
|
select: args.select,
|
|
25
25
|
})
|
|
26
26
|
.unwrap(),
|
|
27
27
|
onSuccess: (_, variables) => {
|
|
28
28
|
queryClient.invalidateQueries({
|
|
29
|
-
queryKey:
|
|
29
|
+
queryKey: appClaimedInviteKeys.detail(variables.id),
|
|
30
30
|
});
|
|
31
31
|
queryClient.invalidateQueries({
|
|
32
|
-
queryKey:
|
|
32
|
+
queryKey: appClaimedInviteKeys.lists(),
|
|
33
33
|
});
|
|
34
34
|
},
|
|
35
35
|
...mutationOptions,
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Invitation records sent to prospective members via email, with token-based redemption and expiration
|
|
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 { AppInviteSelect, AppInviteWithRelations, AppInvitePatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { AppInviteSelect, AppInviteWithRelations, AppInvitePatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Invitation records sent to prospective members via email, with token-based redemption and expiration
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateAppInviteMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', appInvitePatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateAppInviteMutation<S extends AppInviteSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & AppInviteSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, AppInviteSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateAppInvite: {
|
|
28
|
+
appInvite: InferSelectResult<AppInviteWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
appInvitePatch: AppInvitePatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateAppInvite: {
|
|
35
|
+
appInvite: InferSelectResult<AppInviteWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
appInvitePatch: AppInvitePatch;
|
|
40
|
+
}>;
|
|
@@ -6,30 +6,30 @@
|
|
|
6
6
|
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
7
|
import { getClient } from '../client';
|
|
8
8
|
import { buildSelectionArgs } from '../selection';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
export function
|
|
9
|
+
import { appInviteKeys } from '../query-keys';
|
|
10
|
+
import { appInviteMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useUpdateAppInviteMutation(params) {
|
|
12
12
|
const args = buildSelectionArgs(params.selection);
|
|
13
13
|
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
14
|
void _selection;
|
|
15
15
|
const queryClient = useQueryClient();
|
|
16
16
|
return useMutation({
|
|
17
|
-
mutationKey:
|
|
18
|
-
mutationFn: ({ id,
|
|
19
|
-
.
|
|
17
|
+
mutationKey: appInviteMutationKeys.all,
|
|
18
|
+
mutationFn: ({ id, appInvitePatch }) => getClient()
|
|
19
|
+
.appInvite.update({
|
|
20
20
|
where: {
|
|
21
21
|
id,
|
|
22
22
|
},
|
|
23
|
-
data:
|
|
23
|
+
data: appInvitePatch,
|
|
24
24
|
select: args.select,
|
|
25
25
|
})
|
|
26
26
|
.unwrap(),
|
|
27
27
|
onSuccess: (_, variables) => {
|
|
28
28
|
queryClient.invalidateQueries({
|
|
29
|
-
queryKey:
|
|
29
|
+
queryKey: appInviteKeys.detail(variables.id),
|
|
30
30
|
});
|
|
31
31
|
queryClient.invalidateQueries({
|
|
32
|
-
queryKey:
|
|
32
|
+
queryKey: appInviteKeys.lists(),
|
|
33
33
|
});
|
|
34
34
|
},
|
|
35
35
|
...mutationOptions,
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Update mutation hook for RateLimitsModule
|
|
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 { RateLimitsModuleSelect, RateLimitsModuleWithRelations, RateLimitsModulePatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { RateLimitsModuleSelect, RateLimitsModuleWithRelations, RateLimitsModulePatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for updating a RateLimitsModule
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateRateLimitsModuleMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', rateLimitsModulePatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateRateLimitsModuleMutation<S extends RateLimitsModuleSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & RateLimitsModuleSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, RateLimitsModuleSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateRateLimitsModule: {
|
|
28
|
+
rateLimitsModule: InferSelectResult<RateLimitsModuleWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
rateLimitsModulePatch: RateLimitsModulePatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateRateLimitsModule: {
|
|
35
|
+
rateLimitsModule: InferSelectResult<RateLimitsModuleWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
rateLimitsModulePatch: RateLimitsModulePatch;
|
|
40
|
+
}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Update mutation hook for RateLimitsModule
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { rateLimitsModuleKeys } from '../query-keys';
|
|
10
|
+
import { rateLimitsModuleMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useUpdateRateLimitsModuleMutation(params) {
|
|
12
|
+
const args = buildSelectionArgs(params.selection);
|
|
13
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
14
|
+
void _selection;
|
|
15
|
+
const queryClient = useQueryClient();
|
|
16
|
+
return useMutation({
|
|
17
|
+
mutationKey: rateLimitsModuleMutationKeys.all,
|
|
18
|
+
mutationFn: ({ id, rateLimitsModulePatch, }) => getClient()
|
|
19
|
+
.rateLimitsModule.update({
|
|
20
|
+
where: {
|
|
21
|
+
id,
|
|
22
|
+
},
|
|
23
|
+
data: rateLimitsModulePatch,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: (_, variables) => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: rateLimitsModuleKeys.detail(variables.id),
|
|
30
|
+
});
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: rateLimitsModuleKeys.lists(),
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
...mutationOptions,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
@@ -172,10 +172,10 @@ export * from './useCryptoAddressesQuery';
|
|
|
172
172
|
export * from './useCryptoAddressQuery';
|
|
173
173
|
export * from './useConnectedAccountsQuery';
|
|
174
174
|
export * from './useConnectedAccountQuery';
|
|
175
|
-
export * from './
|
|
176
|
-
export * from './
|
|
177
|
-
export * from './
|
|
178
|
-
export * from './
|
|
175
|
+
export * from './useAppInvitesQuery';
|
|
176
|
+
export * from './useAppInviteQuery';
|
|
177
|
+
export * from './useAppClaimedInvitesQuery';
|
|
178
|
+
export * from './useAppClaimedInviteQuery';
|
|
179
179
|
export * from './useOrgInvitesQuery';
|
|
180
180
|
export * from './useOrgInviteQuery';
|
|
181
181
|
export * from './useOrgClaimedInvitesQuery';
|
|
@@ -202,6 +202,8 @@ export * from './useAppMembershipDefaultsQuery';
|
|
|
202
202
|
export * from './useAppMembershipDefaultQuery';
|
|
203
203
|
export * from './useCommitsQuery';
|
|
204
204
|
export * from './useCommitQuery';
|
|
205
|
+
export * from './useRateLimitsModulesQuery';
|
|
206
|
+
export * from './useRateLimitsModuleQuery';
|
|
205
207
|
export * from './useOrgMembershipDefaultsQuery';
|
|
206
208
|
export * from './useOrgMembershipDefaultQuery';
|
|
207
209
|
export * from './useRlsModulesQuery';
|
|
@@ -172,10 +172,10 @@ export * from './useCryptoAddressesQuery';
|
|
|
172
172
|
export * from './useCryptoAddressQuery';
|
|
173
173
|
export * from './useConnectedAccountsQuery';
|
|
174
174
|
export * from './useConnectedAccountQuery';
|
|
175
|
-
export * from './
|
|
176
|
-
export * from './
|
|
177
|
-
export * from './
|
|
178
|
-
export * from './
|
|
175
|
+
export * from './useAppInvitesQuery';
|
|
176
|
+
export * from './useAppInviteQuery';
|
|
177
|
+
export * from './useAppClaimedInvitesQuery';
|
|
178
|
+
export * from './useAppClaimedInviteQuery';
|
|
179
179
|
export * from './useOrgInvitesQuery';
|
|
180
180
|
export * from './useOrgInviteQuery';
|
|
181
181
|
export * from './useOrgClaimedInvitesQuery';
|
|
@@ -202,6 +202,8 @@ export * from './useAppMembershipDefaultsQuery';
|
|
|
202
202
|
export * from './useAppMembershipDefaultQuery';
|
|
203
203
|
export * from './useCommitsQuery';
|
|
204
204
|
export * from './useCommitQuery';
|
|
205
|
+
export * from './useRateLimitsModulesQuery';
|
|
206
|
+
export * from './useRateLimitsModuleQuery';
|
|
205
207
|
export * from './useOrgMembershipDefaultsQuery';
|
|
206
208
|
export * from './useOrgMembershipDefaultQuery';
|
|
207
209
|
export * from './useRlsModulesQuery';
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Records of successfully claimed invitations, linking senders to receivers
|
|
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 { AppClaimedInviteSelect, AppClaimedInviteWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { AppClaimedInviteSelect, AppClaimedInviteWithRelations } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const appClaimedInviteQueryKey: (id: string | number) => readonly ["appclaimedinvite", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Records of successfully claimed invitations, linking senders to receivers
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useAppClaimedInviteQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useAppClaimedInviteQuery<S extends AppClaimedInviteSelect, TData = {
|
|
24
|
+
appClaimedInvite: InferSelectResult<AppClaimedInviteWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, AppClaimedInviteSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
appClaimedInvite: InferSelectResult<AppClaimedInviteWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Records of successfully claimed invitations, linking senders to receivers
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchAppClaimedInviteQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchAppClaimedInviteQuery<S extends AppClaimedInviteSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, AppClaimedInviteSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
appClaimedInvite: InferSelectResult<AppClaimedInviteWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Records of successfully claimed invitations, linking senders to receivers
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchAppClaimedInviteQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchAppClaimedInviteQuery<S extends AppClaimedInviteSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, AppClaimedInviteSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
import { useQuery } from '@tanstack/react-query';
|
|
7
7
|
import { getClient } from '../client';
|
|
8
8
|
import { buildSelectionArgs } from '../selection';
|
|
9
|
-
import {
|
|
9
|
+
import { appClaimedInviteKeys } from '../query-keys';
|
|
10
10
|
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export const
|
|
12
|
-
export function
|
|
11
|
+
export const appClaimedInviteQueryKey = appClaimedInviteKeys.detail;
|
|
12
|
+
export function useAppClaimedInviteQuery(params) {
|
|
13
13
|
const args = buildSelectionArgs(params.selection);
|
|
14
14
|
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
15
|
void _selection;
|
|
16
16
|
return useQuery({
|
|
17
|
-
queryKey:
|
|
17
|
+
queryKey: appClaimedInviteKeys.detail(params.id),
|
|
18
18
|
queryFn: () => getClient()
|
|
19
|
-
.
|
|
19
|
+
.appClaimedInvite.findOne({
|
|
20
20
|
id: params.id,
|
|
21
21
|
select: args.select,
|
|
22
22
|
})
|
|
@@ -24,21 +24,21 @@ export function useClaimedInviteQuery(params) {
|
|
|
24
24
|
...queryOptions,
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
export async function
|
|
27
|
+
export async function fetchAppClaimedInviteQuery(params) {
|
|
28
28
|
const args = buildSelectionArgs(params.selection);
|
|
29
29
|
return getClient()
|
|
30
|
-
.
|
|
30
|
+
.appClaimedInvite.findOne({
|
|
31
31
|
id: params.id,
|
|
32
32
|
select: args.select,
|
|
33
33
|
})
|
|
34
34
|
.unwrap();
|
|
35
35
|
}
|
|
36
|
-
export async function
|
|
36
|
+
export async function prefetchAppClaimedInviteQuery(queryClient, params) {
|
|
37
37
|
const args = buildSelectionArgs(params.selection);
|
|
38
38
|
await queryClient.prefetchQuery({
|
|
39
|
-
queryKey:
|
|
39
|
+
queryKey: appClaimedInviteKeys.detail(params.id),
|
|
40
40
|
queryFn: () => getClient()
|
|
41
|
-
.
|
|
41
|
+
.appClaimedInvite.findOne({
|
|
42
42
|
id: params.id,
|
|
43
43
|
select: args.select,
|
|
44
44
|
})
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Records of successfully claimed invitations, linking senders to receivers
|
|
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 { AppClaimedInviteSelect, AppClaimedInviteWithRelations, AppClaimedInviteFilter, AppClaimedInviteOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { AppClaimedInviteSelect, AppClaimedInviteWithRelations, AppClaimedInviteFilter, AppClaimedInviteOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const appClaimedInvitesQueryKey: (variables?: object) => readonly ["appclaimedinvite", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Records of successfully claimed invitations, linking senders to receivers
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useAppClaimedInvitesQuery({
|
|
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 useAppClaimedInvitesQuery<S extends AppClaimedInviteSelect, TData = {
|
|
29
|
+
appClaimedInvites: ConnectionResult<InferSelectResult<AppClaimedInviteWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, AppClaimedInviteFilter, AppClaimedInviteOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppClaimedInviteSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
appClaimedInvites: ConnectionResult<InferSelectResult<AppClaimedInviteWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Records of successfully claimed invitations, linking senders to receivers
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchAppClaimedInvitesQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchAppClaimedInvitesQuery<S extends AppClaimedInviteSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, AppClaimedInviteFilter, AppClaimedInviteOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppClaimedInviteSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
appClaimedInvites: ConnectionResult<InferSelectResult<AppClaimedInviteWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Records of successfully claimed invitations, linking senders to receivers
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchAppClaimedInvitesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchAppClaimedInvitesQuery<S extends AppClaimedInviteSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, AppClaimedInviteFilter, AppClaimedInviteOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AppClaimedInviteSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -6,27 +6,27 @@
|
|
|
6
6
|
import { useQuery } from '@tanstack/react-query';
|
|
7
7
|
import { getClient } from '../client';
|
|
8
8
|
import { buildListSelectionArgs } from '../selection';
|
|
9
|
-
import {
|
|
9
|
+
import { appClaimedInviteKeys } from '../query-keys';
|
|
10
10
|
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export const
|
|
12
|
-
export function
|
|
11
|
+
export const appClaimedInvitesQueryKey = appClaimedInviteKeys.list;
|
|
12
|
+
export function useAppClaimedInvitesQuery(params) {
|
|
13
13
|
const args = buildListSelectionArgs(params.selection);
|
|
14
14
|
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
15
|
void _selection;
|
|
16
16
|
return useQuery({
|
|
17
|
-
queryKey:
|
|
18
|
-
queryFn: () => getClient().
|
|
17
|
+
queryKey: appClaimedInviteKeys.list(args),
|
|
18
|
+
queryFn: () => getClient().appClaimedInvite.findMany(args).unwrap(),
|
|
19
19
|
...queryOptions,
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
export async function
|
|
22
|
+
export async function fetchAppClaimedInvitesQuery(params) {
|
|
23
23
|
const args = buildListSelectionArgs(params.selection);
|
|
24
|
-
return getClient().
|
|
24
|
+
return getClient().appClaimedInvite.findMany(args).unwrap();
|
|
25
25
|
}
|
|
26
|
-
export async function
|
|
26
|
+
export async function prefetchAppClaimedInvitesQuery(queryClient, params) {
|
|
27
27
|
const args = buildListSelectionArgs(params.selection);
|
|
28
28
|
await queryClient.prefetchQuery({
|
|
29
|
-
queryKey:
|
|
30
|
-
queryFn: () => getClient().
|
|
29
|
+
queryKey: appClaimedInviteKeys.list(args),
|
|
30
|
+
queryFn: () => getClient().appClaimedInvite.findMany(args).unwrap(),
|
|
31
31
|
});
|
|
32
32
|
}
|
package/{admin/hooks/queries/useInviteQuery.d.ts → esm/public/hooks/queries/useAppInviteQuery.d.ts}
RENAMED
|
@@ -4,62 +4,62 @@
|
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
6
|
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
-
import type {
|
|
7
|
+
import type { AppInviteSelect, AppInviteWithRelations } from '../../orm/input-types';
|
|
8
8
|
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type {
|
|
9
|
+
export type { AppInviteSelect, AppInviteWithRelations } from '../../orm/input-types';
|
|
10
10
|
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const appInviteQueryKey: (id: string | number) => readonly ["appinvite", "detail", string | number];
|
|
12
12
|
/**
|
|
13
13
|
* Invitation records sent to prospective members via email, with token-based redemption and expiration
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```tsx
|
|
17
|
-
* const { data, isLoading } =
|
|
17
|
+
* const { data, isLoading } = useAppInviteQuery({
|
|
18
18
|
* id: 'some-id',
|
|
19
19
|
* selection: { fields: { id: true, name: true } },
|
|
20
20
|
* });
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
export declare function
|
|
24
|
-
|
|
23
|
+
export declare function useAppInviteQuery<S extends AppInviteSelect, TData = {
|
|
24
|
+
appInvite: InferSelectResult<AppInviteWithRelations, S> | null;
|
|
25
25
|
}>(params: {
|
|
26
26
|
id: string;
|
|
27
27
|
selection: {
|
|
28
28
|
fields: S;
|
|
29
|
-
} & HookStrictSelect<NoInfer<S>,
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, AppInviteSelect>;
|
|
30
30
|
} & Omit<UseQueryOptions<{
|
|
31
|
-
|
|
31
|
+
appInvite: InferSelectResult<AppInviteWithRelations, S> | null;
|
|
32
32
|
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
33
|
/**
|
|
34
34
|
* Invitation records sent to prospective members via email, with token-based redemption and expiration
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* ```ts
|
|
38
|
-
* const data = await
|
|
38
|
+
* const data = await fetchAppInviteQuery({
|
|
39
39
|
* id: 'some-id',
|
|
40
40
|
* selection: { fields: { id: true } },
|
|
41
41
|
* });
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
export declare function
|
|
44
|
+
export declare function fetchAppInviteQuery<S extends AppInviteSelect>(params: {
|
|
45
45
|
id: string;
|
|
46
46
|
selection: {
|
|
47
47
|
fields: S;
|
|
48
|
-
} & HookStrictSelect<NoInfer<S>,
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, AppInviteSelect>;
|
|
49
49
|
}): Promise<{
|
|
50
|
-
|
|
50
|
+
appInvite: InferSelectResult<AppInviteWithRelations, S> | null;
|
|
51
51
|
}>;
|
|
52
52
|
/**
|
|
53
53
|
* Invitation records sent to prospective members via email, with token-based redemption and expiration
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
56
|
* ```ts
|
|
57
|
-
* await
|
|
57
|
+
* await prefetchAppInviteQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
58
|
* ```
|
|
59
59
|
*/
|
|
60
|
-
export declare function
|
|
60
|
+
export declare function prefetchAppInviteQuery<S extends AppInviteSelect>(queryClient: QueryClient, params: {
|
|
61
61
|
id: string;
|
|
62
62
|
selection: {
|
|
63
63
|
fields: S;
|
|
64
|
-
} & HookStrictSelect<NoInfer<S>,
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, AppInviteSelect>;
|
|
65
65
|
}): Promise<void>;
|