@constructive-io/react 0.6.2 → 0.6.3
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 -18
- package/admin/hooks/invalidation.js +45 -45
- package/admin/hooks/mutation-keys.d.ts +36 -36
- package/admin/hooks/mutation-keys.js +22 -22
- package/admin/hooks/mutations/index.d.ts +9 -9
- package/admin/hooks/mutations/index.js +9 -9
- package/admin/hooks/queries/index.d.ts +6 -6
- package/admin/hooks/queries/index.js +6 -6
- package/admin/hooks/query-keys.d.ts +42 -42
- package/admin/hooks/query-keys.js +25 -25
- package/admin/orm/index.d.ts +6 -6
- package/admin/orm/index.js +6 -6
- package/admin/orm/input-types.d.ts +489 -667
- package/admin/orm/models/appAchievement.d.ts +1 -1
- package/admin/orm/models/appAdminGrant.d.ts +1 -1
- package/admin/orm/models/appGrant.d.ts +1 -1
- package/admin/orm/models/appLevel.d.ts +1 -1
- package/admin/orm/models/appLevelRequirement.d.ts +1 -1
- package/admin/orm/models/appLimit.d.ts +1 -1
- package/admin/orm/models/appLimitDefault.d.ts +1 -1
- package/admin/orm/models/appMembership.d.ts +1 -1
- package/admin/orm/models/appMembershipDefault.d.ts +1 -1
- package/admin/orm/models/appOwnerGrant.d.ts +1 -1
- package/admin/orm/models/appPermission.d.ts +1 -1
- package/admin/orm/models/appPermissionDefault.d.ts +1 -1
- package/admin/orm/models/appStep.d.ts +1 -1
- package/admin/orm/models/claimedInvite.d.ts +1 -1
- package/admin/orm/models/index.d.ts +3 -3
- package/admin/orm/models/index.js +7 -7
- package/admin/orm/models/invite.d.ts +1 -1
- package/admin/orm/models/membershipType.d.ts +1 -1
- package/admin/orm/models/orgAdminGrant.d.ts +1 -1
- package/admin/orm/models/orgChartEdge.d.ts +1 -1
- package/admin/orm/models/orgChartEdgeGrant.d.ts +1 -1
- package/admin/orm/models/orgClaimedInvite.d.ts +1 -1
- package/admin/orm/models/orgGetManagersRecord.d.ts +1 -1
- package/admin/orm/models/orgGetSubordinatesRecord.d.ts +1 -1
- package/admin/orm/models/orgGrant.d.ts +1 -1
- package/admin/orm/models/orgInvite.d.ts +1 -1
- package/admin/orm/models/orgLimit.d.ts +1 -1
- package/admin/orm/models/orgLimitDefault.d.ts +1 -1
- package/admin/orm/models/orgMember.d.ts +1 -1
- package/admin/orm/models/orgMembership.d.ts +1 -1
- package/admin/orm/models/orgMembershipDefault.d.ts +1 -1
- package/admin/orm/models/orgOwnerGrant.d.ts +1 -1
- package/admin/orm/models/orgPermission.d.ts +1 -1
- package/admin/orm/models/orgPermissionDefault.d.ts +1 -1
- package/admin/orm/query-builder.d.ts +6 -4
- package/admin/orm/query-builder.js +13 -5
- package/admin/orm/select-types.d.ts +4 -2
- package/admin/schema-types.d.ts +475 -983
- package/admin/types.d.ts +55 -29
- package/auth/hooks/index.d.ts +1 -1
- package/auth/hooks/index.js +1 -1
- package/auth/hooks/invalidation.d.ts +6 -6
- package/auth/hooks/invalidation.js +15 -15
- package/auth/hooks/mutation-keys.d.ts +12 -12
- package/auth/hooks/mutation-keys.js +8 -8
- package/auth/hooks/mutations/index.d.ts +3 -3
- package/auth/hooks/mutations/index.js +3 -3
- package/auth/hooks/queries/index.d.ts +2 -2
- package/auth/hooks/queries/index.js +2 -2
- package/auth/hooks/query-keys.d.ts +14 -14
- package/auth/hooks/query-keys.js +9 -9
- package/auth/orm/index.d.ts +2 -2
- package/auth/orm/index.js +2 -2
- package/auth/orm/input-types.d.ts +196 -162
- package/auth/orm/models/auditLog.d.ts +1 -1
- package/auth/orm/models/connectedAccount.d.ts +1 -1
- package/auth/orm/models/cryptoAddress.d.ts +1 -1
- package/auth/orm/models/email.d.ts +1 -1
- package/auth/orm/models/index.d.ts +1 -1
- package/auth/orm/models/index.js +3 -3
- package/auth/orm/models/phoneNumber.d.ts +1 -1
- package/auth/orm/models/roleType.d.ts +1 -1
- package/auth/orm/models/user.d.ts +1 -1
- package/auth/orm/query-builder.d.ts +6 -4
- package/auth/orm/query-builder.js +13 -5
- package/auth/orm/select-types.d.ts +4 -2
- package/auth/schema-types.d.ts +226 -270
- package/auth/types.d.ts +23 -4
- 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 -18
- package/esm/admin/hooks/invalidation.js +46 -46
- package/esm/admin/hooks/mutation-keys.d.ts +36 -36
- package/esm/admin/hooks/mutation-keys.js +21 -21
- package/esm/admin/hooks/mutations/index.d.ts +9 -9
- package/esm/admin/hooks/mutations/index.js +9 -9
- package/esm/admin/hooks/queries/index.d.ts +6 -6
- package/esm/admin/hooks/queries/index.js +6 -6
- package/esm/admin/hooks/query-keys.d.ts +42 -42
- package/esm/admin/hooks/query-keys.js +24 -24
- package/esm/admin/orm/index.d.ts +6 -6
- package/esm/admin/orm/index.js +6 -6
- package/esm/admin/orm/input-types.d.ts +489 -667
- package/esm/admin/orm/models/appAchievement.d.ts +1 -1
- package/esm/admin/orm/models/appAdminGrant.d.ts +1 -1
- package/esm/admin/orm/models/appGrant.d.ts +1 -1
- package/esm/admin/orm/models/appLevel.d.ts +1 -1
- package/esm/admin/orm/models/appLevelRequirement.d.ts +1 -1
- package/esm/admin/orm/models/appLimit.d.ts +1 -1
- package/esm/admin/orm/models/appLimitDefault.d.ts +1 -1
- package/esm/admin/orm/models/appMembership.d.ts +1 -1
- package/esm/admin/orm/models/appMembershipDefault.d.ts +1 -1
- package/esm/admin/orm/models/appOwnerGrant.d.ts +1 -1
- package/esm/admin/orm/models/appPermission.d.ts +1 -1
- package/esm/admin/orm/models/appPermissionDefault.d.ts +1 -1
- package/esm/admin/orm/models/appStep.d.ts +1 -1
- package/esm/admin/orm/models/claimedInvite.d.ts +1 -1
- package/esm/admin/orm/models/index.d.ts +3 -3
- package/esm/admin/orm/models/index.js +3 -3
- package/esm/admin/orm/models/invite.d.ts +1 -1
- package/esm/admin/orm/models/membershipType.d.ts +1 -1
- package/esm/admin/orm/models/orgAdminGrant.d.ts +1 -1
- package/esm/admin/orm/models/orgChartEdge.d.ts +1 -1
- package/esm/admin/orm/models/orgChartEdgeGrant.d.ts +1 -1
- package/esm/admin/orm/models/orgClaimedInvite.d.ts +1 -1
- package/esm/admin/orm/models/orgGetManagersRecord.d.ts +1 -1
- package/esm/admin/orm/models/orgGetSubordinatesRecord.d.ts +1 -1
- package/esm/admin/orm/models/orgGrant.d.ts +1 -1
- package/esm/admin/orm/models/orgInvite.d.ts +1 -1
- package/esm/admin/orm/models/orgLimit.d.ts +1 -1
- package/esm/admin/orm/models/orgLimitDefault.d.ts +1 -1
- package/esm/admin/orm/models/orgMember.d.ts +1 -1
- package/esm/admin/orm/models/orgMembership.d.ts +1 -1
- package/esm/admin/orm/models/orgMembershipDefault.d.ts +1 -1
- package/esm/admin/orm/models/orgOwnerGrant.d.ts +1 -1
- package/esm/admin/orm/models/orgPermission.d.ts +1 -1
- package/esm/admin/orm/models/orgPermissionDefault.d.ts +1 -1
- package/esm/admin/orm/query-builder.d.ts +6 -4
- package/esm/admin/orm/query-builder.js +13 -5
- package/esm/admin/orm/select-types.d.ts +4 -2
- package/esm/admin/schema-types.d.ts +475 -983
- package/esm/admin/types.d.ts +55 -29
- package/esm/auth/hooks/index.d.ts +1 -1
- package/esm/auth/hooks/index.js +1 -1
- package/esm/auth/hooks/invalidation.d.ts +6 -6
- package/esm/auth/hooks/invalidation.js +16 -16
- package/esm/auth/hooks/mutation-keys.d.ts +12 -12
- package/esm/auth/hooks/mutation-keys.js +7 -7
- package/esm/auth/hooks/mutations/index.d.ts +3 -3
- package/esm/auth/hooks/mutations/index.js +3 -3
- package/esm/auth/hooks/queries/index.d.ts +2 -2
- package/esm/auth/hooks/queries/index.js +2 -2
- package/esm/auth/hooks/query-keys.d.ts +14 -14
- package/esm/auth/hooks/query-keys.js +8 -8
- package/esm/auth/orm/index.d.ts +2 -2
- package/esm/auth/orm/index.js +2 -2
- package/esm/auth/orm/input-types.d.ts +196 -162
- package/esm/auth/orm/models/auditLog.d.ts +1 -1
- package/esm/auth/orm/models/connectedAccount.d.ts +1 -1
- package/esm/auth/orm/models/cryptoAddress.d.ts +1 -1
- package/esm/auth/orm/models/email.d.ts +1 -1
- package/esm/auth/orm/models/index.d.ts +1 -1
- package/esm/auth/orm/models/index.js +1 -1
- package/esm/auth/orm/models/phoneNumber.d.ts +1 -1
- package/esm/auth/orm/models/roleType.d.ts +1 -1
- package/esm/auth/orm/models/user.d.ts +1 -1
- package/esm/auth/orm/query-builder.d.ts +6 -4
- package/esm/auth/orm/query-builder.js +13 -5
- package/esm/auth/orm/select-types.d.ts +4 -2
- package/esm/auth/schema-types.d.ts +226 -270
- package/esm/auth/types.d.ts +23 -4
- package/esm/objects/orm/input-types.d.ts +40 -42
- package/esm/objects/orm/models/commit.d.ts +1 -1
- package/esm/objects/orm/models/getAllRecord.d.ts +1 -1
- package/esm/objects/orm/models/object.d.ts +1 -1
- package/esm/objects/orm/models/ref.d.ts +1 -1
- package/esm/objects/orm/models/store.d.ts +1 -1
- package/esm/objects/orm/query-builder.d.ts +6 -4
- package/esm/objects/orm/query-builder.js +13 -5
- package/esm/objects/orm/select-types.d.ts +4 -2
- package/esm/objects/schema-types.d.ts +37 -67
- package/esm/objects/types.d.ts +13 -0
- package/esm/public/hooks/index.d.ts +1 -1
- package/esm/public/hooks/index.js +1 -1
- package/esm/public/hooks/invalidation.d.ts +34 -40
- package/esm/public/hooks/invalidation.js +80 -96
- package/esm/public/hooks/mutation-keys.d.ts +70 -82
- package/esm/public/hooks/mutation-keys.js +43 -50
- package/esm/public/hooks/mutations/index.d.ts +17 -20
- package/esm/public/hooks/mutations/index.js +17 -20
- package/esm/public/hooks/queries/index.d.ts +12 -14
- package/esm/public/hooks/queries/index.js +12 -14
- package/esm/public/hooks/query-keys.d.ts +80 -94
- package/esm/public/hooks/query-keys.js +46 -54
- package/esm/public/orm/index.d.ts +17 -19
- package/esm/public/orm/index.js +12 -14
- package/esm/public/orm/input-types.d.ts +2426 -2179
- package/esm/public/orm/input-types.js +0 -3
- package/esm/public/orm/models/api.d.ts +1 -1
- package/esm/public/orm/models/apiModule.d.ts +1 -1
- package/esm/public/orm/models/apiSchema.d.ts +1 -1
- package/esm/public/orm/models/app.d.ts +1 -1
- package/esm/public/orm/models/appAchievement.d.ts +1 -1
- package/esm/public/orm/models/appAdminGrant.d.ts +1 -1
- package/esm/public/orm/models/appGrant.d.ts +1 -1
- package/esm/public/orm/models/appLevel.d.ts +1 -1
- package/esm/public/orm/models/appLevelRequirement.d.ts +1 -1
- package/esm/public/orm/models/appLimit.d.ts +1 -1
- package/esm/public/orm/models/appLimitDefault.d.ts +1 -1
- package/esm/public/orm/models/appMembership.d.ts +1 -1
- package/esm/public/orm/models/appMembershipDefault.d.ts +1 -1
- package/esm/public/orm/models/appOwnerGrant.d.ts +1 -1
- package/esm/public/orm/models/appPermission.d.ts +1 -1
- package/esm/public/orm/models/appPermissionDefault.d.ts +1 -1
- package/esm/public/orm/models/appStep.d.ts +1 -1
- package/esm/public/orm/models/astMigration.d.ts +1 -1
- package/esm/public/orm/models/auditLog.d.ts +1 -1
- package/esm/public/orm/models/checkConstraint.d.ts +1 -1
- package/esm/public/orm/models/claimedInvite.d.ts +1 -1
- package/esm/public/orm/models/commit.d.ts +1 -1
- package/esm/public/orm/models/connectedAccount.d.ts +1 -1
- package/esm/public/orm/models/connectedAccountsModule.d.ts +1 -1
- package/esm/public/orm/models/cryptoAddress.d.ts +1 -1
- package/esm/public/orm/models/cryptoAddressesModule.d.ts +1 -1
- package/esm/public/orm/models/cryptoAuthModule.d.ts +1 -1
- package/esm/public/orm/models/database.d.ts +1 -1
- package/esm/public/orm/models/databaseProvisionModule.d.ts +1 -1
- package/esm/public/orm/models/defaultIdsModule.d.ts +1 -1
- package/esm/public/orm/models/defaultPrivilege.d.ts +1 -1
- package/esm/public/orm/models/denormalizedTableField.d.ts +1 -1
- package/esm/public/orm/models/domain.d.ts +1 -1
- package/esm/public/orm/models/email.d.ts +1 -1
- package/esm/public/orm/models/emailsModule.d.ts +1 -1
- package/esm/public/orm/models/encryptedSecretsModule.d.ts +1 -1
- package/esm/public/orm/models/field.d.ts +1 -1
- package/esm/public/orm/models/fieldModule.d.ts +1 -1
- package/esm/public/orm/models/foreignKeyConstraint.d.ts +1 -1
- package/esm/public/orm/models/fullTextSearch.d.ts +1 -1
- package/esm/public/orm/models/getAllRecord.d.ts +1 -1
- package/esm/public/orm/models/hierarchyModule.d.ts +1 -1
- package/esm/public/orm/models/index.d.ts +6 -7
- package/esm/public/orm/models/index.js +6 -7
- package/esm/public/orm/models/indexModel.d.ts +1 -1
- package/esm/public/orm/models/invite.d.ts +1 -1
- package/esm/public/orm/models/invitesModule.d.ts +1 -1
- package/esm/public/orm/models/levelsModule.d.ts +1 -1
- package/esm/public/orm/models/limitsModule.d.ts +1 -1
- package/esm/public/orm/models/membershipType.d.ts +1 -1
- package/esm/public/orm/models/membershipTypesModule.d.ts +1 -1
- package/esm/public/orm/models/membershipsModule.d.ts +1 -1
- package/esm/public/orm/models/nodeTypeRegistry.d.ts +1 -1
- package/esm/public/orm/models/object.d.ts +1 -1
- package/esm/public/orm/models/orgAdminGrant.d.ts +1 -1
- package/esm/public/orm/models/orgChartEdge.d.ts +1 -1
- package/esm/public/orm/models/orgChartEdgeGrant.d.ts +1 -1
- package/esm/public/orm/models/orgClaimedInvite.d.ts +1 -1
- package/esm/public/orm/models/orgGetManagersRecord.d.ts +1 -1
- package/esm/public/orm/models/orgGetSubordinatesRecord.d.ts +1 -1
- package/esm/public/orm/models/orgGrant.d.ts +1 -1
- package/esm/public/orm/models/orgInvite.d.ts +1 -1
- package/esm/public/orm/models/orgLimit.d.ts +1 -1
- package/esm/public/orm/models/orgLimitDefault.d.ts +1 -1
- package/esm/public/orm/models/orgMember.d.ts +1 -1
- package/esm/public/orm/models/orgMembership.d.ts +1 -1
- package/esm/public/orm/models/orgMembershipDefault.d.ts +1 -1
- package/esm/public/orm/models/orgOwnerGrant.d.ts +1 -1
- package/esm/public/orm/models/orgPermission.d.ts +1 -1
- package/esm/public/orm/models/orgPermissionDefault.d.ts +1 -1
- package/esm/public/orm/models/permissionsModule.d.ts +1 -1
- package/esm/public/orm/models/phoneNumber.d.ts +1 -1
- package/esm/public/orm/models/phoneNumbersModule.d.ts +1 -1
- package/esm/public/orm/models/policy.d.ts +1 -1
- package/esm/public/orm/models/primaryKeyConstraint.d.ts +1 -1
- package/esm/public/orm/models/profilesModule.d.ts +1 -1
- package/esm/public/orm/models/ref.d.ts +1 -1
- package/esm/public/orm/models/relationProvision.d.ts +1 -1
- package/esm/public/orm/models/rlsModule.d.ts +1 -1
- package/esm/public/orm/models/roleType.d.ts +1 -1
- package/esm/public/orm/models/schema.d.ts +1 -1
- package/esm/public/orm/models/schemaGrant.d.ts +1 -1
- package/esm/public/orm/models/secretsModule.d.ts +1 -1
- package/esm/public/orm/models/secureTableProvision.d.ts +1 -1
- package/esm/public/orm/models/sessionsModule.d.ts +1 -1
- package/esm/public/orm/models/site.d.ts +1 -1
- package/esm/public/orm/models/siteMetadatum.d.ts +1 -1
- package/esm/public/orm/models/siteModule.d.ts +1 -1
- package/esm/public/orm/models/siteTheme.d.ts +1 -1
- package/esm/public/orm/models/sqlMigration.d.ts +1 -1
- package/esm/public/orm/models/store.d.ts +1 -1
- package/esm/public/orm/models/table.d.ts +1 -1
- package/esm/public/orm/models/tableGrant.d.ts +1 -1
- package/esm/public/orm/models/tableTemplateModule.d.ts +1 -1
- package/esm/public/orm/models/trigger.d.ts +1 -1
- package/esm/public/orm/models/triggerFunction.d.ts +1 -1
- package/esm/public/orm/models/uniqueConstraint.d.ts +1 -1
- package/esm/public/orm/models/user.d.ts +1 -1
- package/esm/public/orm/models/userAuthModule.d.ts +1 -1
- package/esm/public/orm/models/usersModule.d.ts +1 -1
- package/esm/public/orm/models/uuidModule.d.ts +1 -1
- package/esm/public/orm/models/view.d.ts +1 -1
- package/esm/public/orm/models/viewGrant.d.ts +1 -1
- package/esm/public/orm/models/viewRule.d.ts +1 -1
- package/esm/public/orm/models/viewTable.d.ts +1 -1
- package/esm/public/orm/mutation/index.d.ts +9 -9
- package/esm/public/orm/mutation/index.js +12 -12
- package/esm/public/orm/query-builder.d.ts +6 -4
- package/esm/public/orm/query-builder.js +13 -5
- package/esm/public/orm/select-types.d.ts +4 -2
- package/esm/public/schema-types.d.ts +6895 -6506
- package/esm/public/types.d.ts +369 -63
- package/objects/orm/input-types.d.ts +40 -42
- package/objects/orm/models/commit.d.ts +1 -1
- package/objects/orm/models/getAllRecord.d.ts +1 -1
- package/objects/orm/models/object.d.ts +1 -1
- package/objects/orm/models/ref.d.ts +1 -1
- package/objects/orm/models/store.d.ts +1 -1
- package/objects/orm/query-builder.d.ts +6 -4
- package/objects/orm/query-builder.js +13 -5
- package/objects/orm/select-types.d.ts +4 -2
- package/objects/schema-types.d.ts +37 -67
- package/objects/types.d.ts +13 -0
- package/package.json +3 -3
- package/public/hooks/index.d.ts +1 -1
- package/public/hooks/index.js +1 -1
- package/public/hooks/invalidation.d.ts +34 -40
- package/public/hooks/invalidation.js +79 -95
- package/public/hooks/mutation-keys.d.ts +70 -82
- package/public/hooks/mutation-keys.js +46 -53
- package/public/hooks/mutations/index.d.ts +17 -20
- package/public/hooks/mutations/index.js +17 -20
- package/public/hooks/queries/index.d.ts +12 -14
- package/public/hooks/queries/index.js +12 -14
- package/public/hooks/query-keys.d.ts +80 -94
- package/public/hooks/query-keys.js +49 -57
- package/public/orm/index.d.ts +17 -19
- package/public/orm/index.js +12 -14
- package/public/orm/input-types.d.ts +2426 -2179
- package/public/orm/input-types.js +0 -3
- package/public/orm/models/api.d.ts +1 -1
- package/public/orm/models/apiModule.d.ts +1 -1
- package/public/orm/models/apiSchema.d.ts +1 -1
- package/public/orm/models/app.d.ts +1 -1
- package/public/orm/models/appAchievement.d.ts +1 -1
- package/public/orm/models/appAdminGrant.d.ts +1 -1
- package/public/orm/models/appGrant.d.ts +1 -1
- package/public/orm/models/appLevel.d.ts +1 -1
- package/public/orm/models/appLevelRequirement.d.ts +1 -1
- package/public/orm/models/appLimit.d.ts +1 -1
- package/public/orm/models/appLimitDefault.d.ts +1 -1
- package/public/orm/models/appMembership.d.ts +1 -1
- package/public/orm/models/appMembershipDefault.d.ts +1 -1
- package/public/orm/models/appOwnerGrant.d.ts +1 -1
- package/public/orm/models/appPermission.d.ts +1 -1
- package/public/orm/models/appPermissionDefault.d.ts +1 -1
- package/public/orm/models/appStep.d.ts +1 -1
- package/public/orm/models/astMigration.d.ts +1 -1
- package/public/orm/models/auditLog.d.ts +1 -1
- package/public/orm/models/checkConstraint.d.ts +1 -1
- package/public/orm/models/claimedInvite.d.ts +1 -1
- package/public/orm/models/commit.d.ts +1 -1
- package/public/orm/models/connectedAccount.d.ts +1 -1
- package/public/orm/models/connectedAccountsModule.d.ts +1 -1
- package/public/orm/models/cryptoAddress.d.ts +1 -1
- package/public/orm/models/cryptoAddressesModule.d.ts +1 -1
- package/public/orm/models/cryptoAuthModule.d.ts +1 -1
- package/public/orm/models/database.d.ts +1 -1
- package/public/orm/models/databaseProvisionModule.d.ts +1 -1
- package/public/orm/models/defaultIdsModule.d.ts +1 -1
- package/public/orm/models/defaultPrivilege.d.ts +1 -1
- package/public/orm/models/denormalizedTableField.d.ts +1 -1
- package/public/orm/models/domain.d.ts +1 -1
- package/public/orm/models/email.d.ts +1 -1
- package/public/orm/models/emailsModule.d.ts +1 -1
- package/public/orm/models/encryptedSecretsModule.d.ts +1 -1
- package/public/orm/models/field.d.ts +1 -1
- package/public/orm/models/fieldModule.d.ts +1 -1
- package/public/orm/models/foreignKeyConstraint.d.ts +1 -1
- package/public/orm/models/fullTextSearch.d.ts +1 -1
- package/public/orm/models/getAllRecord.d.ts +1 -1
- package/public/orm/models/hierarchyModule.d.ts +1 -1
- package/public/orm/models/index.d.ts +6 -7
- package/public/orm/models/index.js +15 -17
- package/public/orm/models/indexModel.d.ts +1 -1
- package/public/orm/models/invite.d.ts +1 -1
- package/public/orm/models/invitesModule.d.ts +1 -1
- package/public/orm/models/levelsModule.d.ts +1 -1
- package/public/orm/models/limitsModule.d.ts +1 -1
- package/public/orm/models/membershipType.d.ts +1 -1
- package/public/orm/models/membershipTypesModule.d.ts +1 -1
- package/public/orm/models/membershipsModule.d.ts +1 -1
- package/public/orm/models/nodeTypeRegistry.d.ts +1 -1
- package/public/orm/models/object.d.ts +1 -1
- package/public/orm/models/orgAdminGrant.d.ts +1 -1
- package/public/orm/models/orgChartEdge.d.ts +1 -1
- package/public/orm/models/orgChartEdgeGrant.d.ts +1 -1
- package/public/orm/models/orgClaimedInvite.d.ts +1 -1
- package/public/orm/models/orgGetManagersRecord.d.ts +1 -1
- package/public/orm/models/orgGetSubordinatesRecord.d.ts +1 -1
- package/public/orm/models/orgGrant.d.ts +1 -1
- package/public/orm/models/orgInvite.d.ts +1 -1
- package/public/orm/models/orgLimit.d.ts +1 -1
- package/public/orm/models/orgLimitDefault.d.ts +1 -1
- package/public/orm/models/orgMember.d.ts +1 -1
- package/public/orm/models/orgMembership.d.ts +1 -1
- package/public/orm/models/orgMembershipDefault.d.ts +1 -1
- package/public/orm/models/orgOwnerGrant.d.ts +1 -1
- package/public/orm/models/orgPermission.d.ts +1 -1
- package/public/orm/models/orgPermissionDefault.d.ts +1 -1
- package/public/orm/models/permissionsModule.d.ts +1 -1
- package/public/orm/models/phoneNumber.d.ts +1 -1
- package/public/orm/models/phoneNumbersModule.d.ts +1 -1
- package/public/orm/models/policy.d.ts +1 -1
- package/public/orm/models/primaryKeyConstraint.d.ts +1 -1
- package/public/orm/models/profilesModule.d.ts +1 -1
- package/public/orm/models/ref.d.ts +1 -1
- package/public/orm/models/relationProvision.d.ts +1 -1
- package/public/orm/models/rlsModule.d.ts +1 -1
- package/public/orm/models/roleType.d.ts +1 -1
- package/public/orm/models/schema.d.ts +1 -1
- package/public/orm/models/schemaGrant.d.ts +1 -1
- package/public/orm/models/secretsModule.d.ts +1 -1
- package/public/orm/models/secureTableProvision.d.ts +1 -1
- package/public/orm/models/sessionsModule.d.ts +1 -1
- package/public/orm/models/site.d.ts +1 -1
- package/public/orm/models/siteMetadatum.d.ts +1 -1
- package/public/orm/models/siteModule.d.ts +1 -1
- package/public/orm/models/siteTheme.d.ts +1 -1
- package/public/orm/models/sqlMigration.d.ts +1 -1
- package/public/orm/models/store.d.ts +1 -1
- package/public/orm/models/table.d.ts +1 -1
- package/public/orm/models/tableGrant.d.ts +1 -1
- package/public/orm/models/tableTemplateModule.d.ts +1 -1
- package/public/orm/models/trigger.d.ts +1 -1
- package/public/orm/models/triggerFunction.d.ts +1 -1
- package/public/orm/models/uniqueConstraint.d.ts +1 -1
- package/public/orm/models/user.d.ts +1 -1
- package/public/orm/models/userAuthModule.d.ts +1 -1
- package/public/orm/models/usersModule.d.ts +1 -1
- package/public/orm/models/uuidModule.d.ts +1 -1
- package/public/orm/models/view.d.ts +1 -1
- package/public/orm/models/viewGrant.d.ts +1 -1
- package/public/orm/models/viewRule.d.ts +1 -1
- package/public/orm/models/viewTable.d.ts +1 -1
- package/public/orm/mutation/index.d.ts +9 -9
- package/public/orm/mutation/index.js +12 -12
- package/public/orm/query-builder.d.ts +6 -4
- package/public/orm/query-builder.js +13 -5
- package/public/orm/select-types.d.ts +4 -2
- package/public/schema-types.d.ts +6895 -6506
- package/public/types.d.ts +369 -63
- package/esm/public/hooks/mutations/useCreateTableModuleMutation.d.ts +0 -34
- package/esm/public/hooks/mutations/useCreateTableModuleMutation.js +0 -31
- package/esm/public/hooks/mutations/useDeleteTableModuleMutation.d.ts +0 -38
- package/esm/public/hooks/mutations/useDeleteTableModuleMutation.js +0 -36
- package/esm/public/hooks/mutations/useUpdateTableModuleMutation.d.ts +0 -40
- package/esm/public/hooks/mutations/useUpdateTableModuleMutation.js +0 -37
- package/esm/public/hooks/queries/useTableModuleQuery.d.ts +0 -65
- package/esm/public/hooks/queries/useTableModuleQuery.js +0 -47
- package/esm/public/hooks/queries/useTableModulesQuery.d.ts +0 -69
- package/esm/public/hooks/queries/useTableModulesQuery.js +0 -32
- package/esm/public/orm/models/tableModule.d.ts +0 -56
- package/esm/public/orm/models/tableModule.js +0 -94
- package/public/hooks/mutations/useCreateTableModuleMutation.d.ts +0 -34
- package/public/hooks/mutations/useCreateTableModuleMutation.js +0 -34
- package/public/hooks/mutations/useDeleteTableModuleMutation.d.ts +0 -38
- package/public/hooks/mutations/useDeleteTableModuleMutation.js +0 -39
- package/public/hooks/mutations/useUpdateTableModuleMutation.d.ts +0 -40
- package/public/hooks/mutations/useUpdateTableModuleMutation.js +0 -40
- package/public/hooks/queries/useTableModuleQuery.d.ts +0 -65
- package/public/hooks/queries/useTableModuleQuery.js +0 -53
- package/public/hooks/queries/useTableModulesQuery.d.ts +0 -69
- package/public/hooks/queries/useTableModulesQuery.js +0 -38
- package/public/orm/models/tableModule.d.ts +0 -56
- package/public/orm/models/tableModule.js +0 -98
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create mutation hook for TableModule
|
|
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 { TableModuleSelect, TableModuleWithRelations, CreateTableModuleInput } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { TableModuleSelect, TableModuleWithRelations, CreateTableModuleInput, } from '../../orm/input-types';
|
|
10
|
-
/**
|
|
11
|
-
* Mutation hook for creating a TableModule
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* const { mutate, isPending } = useCreateTableModuleMutation({
|
|
16
|
-
* selection: { fields: { id: true, name: true } },
|
|
17
|
-
* });
|
|
18
|
-
*
|
|
19
|
-
* mutate({ name: 'New item' });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function useCreateTableModuleMutation<S extends TableModuleSelect>(params: {
|
|
23
|
-
selection: {
|
|
24
|
-
fields: S & TableModuleSelect;
|
|
25
|
-
} & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
|
|
26
|
-
} & Omit<UseMutationOptions<{
|
|
27
|
-
createTableModule: {
|
|
28
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S>;
|
|
29
|
-
};
|
|
30
|
-
}, Error, CreateTableModuleInput['tableModule']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
-
createTableModule: {
|
|
32
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S>;
|
|
33
|
-
};
|
|
34
|
-
}, Error, CreateTableModuleInput['tableModule']>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create mutation hook for TableModule
|
|
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 { tableModuleKeys } from '../query-keys';
|
|
10
|
-
import { tableModuleMutationKeys } from '../mutation-keys';
|
|
11
|
-
export function useCreateTableModuleMutation(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: tableModuleMutationKeys.create(),
|
|
18
|
-
mutationFn: (data) => getClient()
|
|
19
|
-
.tableModule.create({
|
|
20
|
-
data,
|
|
21
|
-
select: args.select,
|
|
22
|
-
})
|
|
23
|
-
.unwrap(),
|
|
24
|
-
onSuccess: () => {
|
|
25
|
-
queryClient.invalidateQueries({
|
|
26
|
-
queryKey: tableModuleKeys.lists(),
|
|
27
|
-
});
|
|
28
|
-
},
|
|
29
|
-
...mutationOptions,
|
|
30
|
-
});
|
|
31
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Delete mutation hook for TableModule
|
|
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 { TableModuleSelect, TableModuleWithRelations } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { TableModuleSelect, TableModuleWithRelations } from '../../orm/input-types';
|
|
10
|
-
/**
|
|
11
|
-
* Mutation hook for deleting a TableModule with typed selection
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* const { mutate, isPending } = useDeleteTableModuleMutation({
|
|
16
|
-
* selection: { fields: { id: true } },
|
|
17
|
-
* });
|
|
18
|
-
*
|
|
19
|
-
* mutate({ id: 'value-to-delete' });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function useDeleteTableModuleMutation<S extends TableModuleSelect>(params: {
|
|
23
|
-
selection: {
|
|
24
|
-
fields: S & TableModuleSelect;
|
|
25
|
-
} & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
|
|
26
|
-
} & Omit<UseMutationOptions<{
|
|
27
|
-
deleteTableModule: {
|
|
28
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S>;
|
|
29
|
-
};
|
|
30
|
-
}, Error, {
|
|
31
|
-
id: string;
|
|
32
|
-
}>, 'mutationFn'>): UseMutationResult<{
|
|
33
|
-
deleteTableModule: {
|
|
34
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S>;
|
|
35
|
-
};
|
|
36
|
-
}, Error, {
|
|
37
|
-
id: string;
|
|
38
|
-
}>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Delete mutation hook for TableModule
|
|
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 { tableModuleKeys } from '../query-keys';
|
|
10
|
-
import { tableModuleMutationKeys } from '../mutation-keys';
|
|
11
|
-
export function useDeleteTableModuleMutation(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: tableModuleMutationKeys.all,
|
|
18
|
-
mutationFn: ({ id }) => getClient()
|
|
19
|
-
.tableModule.delete({
|
|
20
|
-
where: {
|
|
21
|
-
id,
|
|
22
|
-
},
|
|
23
|
-
select: args.select,
|
|
24
|
-
})
|
|
25
|
-
.unwrap(),
|
|
26
|
-
onSuccess: (_, variables) => {
|
|
27
|
-
queryClient.removeQueries({
|
|
28
|
-
queryKey: tableModuleKeys.detail(variables.id),
|
|
29
|
-
});
|
|
30
|
-
queryClient.invalidateQueries({
|
|
31
|
-
queryKey: tableModuleKeys.lists(),
|
|
32
|
-
});
|
|
33
|
-
},
|
|
34
|
-
...mutationOptions,
|
|
35
|
-
});
|
|
36
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Update mutation hook for TableModule
|
|
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 { TableModuleSelect, TableModuleWithRelations, TableModulePatch } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { TableModuleSelect, TableModuleWithRelations, TableModulePatch, } from '../../orm/input-types';
|
|
10
|
-
/**
|
|
11
|
-
* Mutation hook for updating a TableModule
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* const { mutate, isPending } = useUpdateTableModuleMutation({
|
|
16
|
-
* selection: { fields: { id: true, name: true } },
|
|
17
|
-
* });
|
|
18
|
-
*
|
|
19
|
-
* mutate({ id: 'value-here', tableModulePatch: { name: 'Updated' } });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function useUpdateTableModuleMutation<S extends TableModuleSelect>(params: {
|
|
23
|
-
selection: {
|
|
24
|
-
fields: S & TableModuleSelect;
|
|
25
|
-
} & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
|
|
26
|
-
} & Omit<UseMutationOptions<{
|
|
27
|
-
updateTableModule: {
|
|
28
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S>;
|
|
29
|
-
};
|
|
30
|
-
}, Error, {
|
|
31
|
-
id: string;
|
|
32
|
-
tableModulePatch: TableModulePatch;
|
|
33
|
-
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
-
updateTableModule: {
|
|
35
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S>;
|
|
36
|
-
};
|
|
37
|
-
}, Error, {
|
|
38
|
-
id: string;
|
|
39
|
-
tableModulePatch: TableModulePatch;
|
|
40
|
-
}>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Update mutation hook for TableModule
|
|
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 { tableModuleKeys } from '../query-keys';
|
|
10
|
-
import { tableModuleMutationKeys } from '../mutation-keys';
|
|
11
|
-
export function useUpdateTableModuleMutation(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: tableModuleMutationKeys.all,
|
|
18
|
-
mutationFn: ({ id, tableModulePatch }) => getClient()
|
|
19
|
-
.tableModule.update({
|
|
20
|
-
where: {
|
|
21
|
-
id,
|
|
22
|
-
},
|
|
23
|
-
data: tableModulePatch,
|
|
24
|
-
select: args.select,
|
|
25
|
-
})
|
|
26
|
-
.unwrap(),
|
|
27
|
-
onSuccess: (_, variables) => {
|
|
28
|
-
queryClient.invalidateQueries({
|
|
29
|
-
queryKey: tableModuleKeys.detail(variables.id),
|
|
30
|
-
});
|
|
31
|
-
queryClient.invalidateQueries({
|
|
32
|
-
queryKey: tableModuleKeys.lists(),
|
|
33
|
-
});
|
|
34
|
-
},
|
|
35
|
-
...mutationOptions,
|
|
36
|
-
});
|
|
37
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Single item query hook for TableModule
|
|
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 { TableModuleSelect, TableModuleWithRelations } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { TableModuleSelect, TableModuleWithRelations } from '../../orm/input-types';
|
|
10
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export declare const tableModuleQueryKey: (id: string | number) => readonly ["tablemodule", "detail", string | number];
|
|
12
|
-
/**
|
|
13
|
-
* Query hook for fetching a single TableModule
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```tsx
|
|
17
|
-
* const { data, isLoading } = useTableModuleQuery({
|
|
18
|
-
* id: 'some-id',
|
|
19
|
-
* selection: { fields: { id: true, name: true } },
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare function useTableModuleQuery<S extends TableModuleSelect, TData = {
|
|
24
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S> | null;
|
|
25
|
-
}>(params: {
|
|
26
|
-
id: string;
|
|
27
|
-
selection: {
|
|
28
|
-
fields: S;
|
|
29
|
-
} & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
|
|
30
|
-
} & Omit<UseQueryOptions<{
|
|
31
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S> | null;
|
|
32
|
-
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
-
/**
|
|
34
|
-
* Fetch a single TableModule without React hooks
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* const data = await fetchTableModuleQuery({
|
|
39
|
-
* id: 'some-id',
|
|
40
|
-
* selection: { fields: { id: true } },
|
|
41
|
-
* });
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export declare function fetchTableModuleQuery<S extends TableModuleSelect>(params: {
|
|
45
|
-
id: string;
|
|
46
|
-
selection: {
|
|
47
|
-
fields: S;
|
|
48
|
-
} & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
|
|
49
|
-
}): Promise<{
|
|
50
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S> | null;
|
|
51
|
-
}>;
|
|
52
|
-
/**
|
|
53
|
-
* Prefetch a single TableModule for SSR or cache warming
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* await prefetchTableModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
export declare function prefetchTableModuleQuery<S extends TableModuleSelect>(queryClient: QueryClient, params: {
|
|
61
|
-
id: string;
|
|
62
|
-
selection: {
|
|
63
|
-
fields: S;
|
|
64
|
-
} & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
|
|
65
|
-
}): Promise<void>;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Single item query hook for TableModule
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import { useQuery } from '@tanstack/react-query';
|
|
7
|
-
import { getClient } from '../client';
|
|
8
|
-
import { buildSelectionArgs } from '../selection';
|
|
9
|
-
import { tableModuleKeys } from '../query-keys';
|
|
10
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export const tableModuleQueryKey = tableModuleKeys.detail;
|
|
12
|
-
export function useTableModuleQuery(params) {
|
|
13
|
-
const args = buildSelectionArgs(params.selection);
|
|
14
|
-
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
-
void _selection;
|
|
16
|
-
return useQuery({
|
|
17
|
-
queryKey: tableModuleKeys.detail(params.id),
|
|
18
|
-
queryFn: () => getClient()
|
|
19
|
-
.tableModule.findOne({
|
|
20
|
-
id: params.id,
|
|
21
|
-
select: args.select,
|
|
22
|
-
})
|
|
23
|
-
.unwrap(),
|
|
24
|
-
...queryOptions,
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
export async function fetchTableModuleQuery(params) {
|
|
28
|
-
const args = buildSelectionArgs(params.selection);
|
|
29
|
-
return getClient()
|
|
30
|
-
.tableModule.findOne({
|
|
31
|
-
id: params.id,
|
|
32
|
-
select: args.select,
|
|
33
|
-
})
|
|
34
|
-
.unwrap();
|
|
35
|
-
}
|
|
36
|
-
export async function prefetchTableModuleQuery(queryClient, params) {
|
|
37
|
-
const args = buildSelectionArgs(params.selection);
|
|
38
|
-
await queryClient.prefetchQuery({
|
|
39
|
-
queryKey: tableModuleKeys.detail(params.id),
|
|
40
|
-
queryFn: () => getClient()
|
|
41
|
-
.tableModule.findOne({
|
|
42
|
-
id: params.id,
|
|
43
|
-
select: args.select,
|
|
44
|
-
})
|
|
45
|
-
.unwrap(),
|
|
46
|
-
});
|
|
47
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List query hook for TableModule
|
|
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 { TableModuleSelect, TableModuleWithRelations, TableModuleFilter, TableModuleOrderBy } from '../../orm/input-types';
|
|
9
|
-
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
-
export type { TableModuleSelect, TableModuleWithRelations, TableModuleFilter, TableModuleOrderBy, } from '../../orm/input-types';
|
|
11
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
-
export declare const tableModulesQueryKey: (variables?: object) => readonly ["tablemodule", "list", object];
|
|
13
|
-
/**
|
|
14
|
-
* Query hook for fetching TableModule list
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```tsx
|
|
18
|
-
* const { data, isLoading } = useTableModulesQuery({
|
|
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 useTableModulesQuery<S extends TableModuleSelect, TData = {
|
|
29
|
-
tableModules: ConnectionResult<InferSelectResult<TableModuleWithRelations, S>>;
|
|
30
|
-
}>(params: {
|
|
31
|
-
selection: {
|
|
32
|
-
fields: S;
|
|
33
|
-
} & Omit<ListSelectionConfig<S, TableModuleFilter, TableModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
|
|
34
|
-
} & Omit<UseQueryOptions<{
|
|
35
|
-
tableModules: ConnectionResult<InferSelectResult<TableModuleWithRelations, S>>;
|
|
36
|
-
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
-
/**
|
|
38
|
-
* Fetch TableModule list without React hooks
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* const data = await fetchTableModulesQuery({
|
|
43
|
-
* selection: {
|
|
44
|
-
* fields: { id: true },
|
|
45
|
-
* first: 10,
|
|
46
|
-
* },
|
|
47
|
-
* });
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
export declare function fetchTableModulesQuery<S extends TableModuleSelect>(params: {
|
|
51
|
-
selection: {
|
|
52
|
-
fields: S;
|
|
53
|
-
} & Omit<ListSelectionConfig<S, TableModuleFilter, TableModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
|
|
54
|
-
}): Promise<{
|
|
55
|
-
tableModules: ConnectionResult<InferSelectResult<TableModuleWithRelations, S>>;
|
|
56
|
-
}>;
|
|
57
|
-
/**
|
|
58
|
-
* Prefetch TableModule list for SSR or cache warming
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* await prefetchTableModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
export declare function prefetchTableModulesQuery<S extends TableModuleSelect>(queryClient: QueryClient, params: {
|
|
66
|
-
selection: {
|
|
67
|
-
fields: S;
|
|
68
|
-
} & Omit<ListSelectionConfig<S, TableModuleFilter, TableModuleOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
|
|
69
|
-
}): Promise<void>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List query hook for TableModule
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import { useQuery } from '@tanstack/react-query';
|
|
7
|
-
import { getClient } from '../client';
|
|
8
|
-
import { buildListSelectionArgs } from '../selection';
|
|
9
|
-
import { tableModuleKeys } from '../query-keys';
|
|
10
|
-
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
-
export const tableModulesQueryKey = tableModuleKeys.list;
|
|
12
|
-
export function useTableModulesQuery(params) {
|
|
13
|
-
const args = buildListSelectionArgs(params.selection);
|
|
14
|
-
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
-
void _selection;
|
|
16
|
-
return useQuery({
|
|
17
|
-
queryKey: tableModuleKeys.list(args),
|
|
18
|
-
queryFn: () => getClient().tableModule.findMany(args).unwrap(),
|
|
19
|
-
...queryOptions,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
export async function fetchTableModulesQuery(params) {
|
|
23
|
-
const args = buildListSelectionArgs(params.selection);
|
|
24
|
-
return getClient().tableModule.findMany(args).unwrap();
|
|
25
|
-
}
|
|
26
|
-
export async function prefetchTableModulesQuery(queryClient, params) {
|
|
27
|
-
const args = buildListSelectionArgs(params.selection);
|
|
28
|
-
await queryClient.prefetchQuery({
|
|
29
|
-
queryKey: tableModuleKeys.list(args),
|
|
30
|
-
queryFn: () => getClient().tableModule.findMany(args).unwrap(),
|
|
31
|
-
});
|
|
32
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TableModule model for ORM client
|
|
3
|
-
* @generated by @constructive-io/graphql-codegen
|
|
4
|
-
* DO NOT EDIT - changes will be overwritten
|
|
5
|
-
*/
|
|
6
|
-
import { OrmClient } from '../client';
|
|
7
|
-
import { QueryBuilder } from '../query-builder';
|
|
8
|
-
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
-
import type { TableModuleWithRelations, TableModuleSelect, TableModuleFilter, TableModuleOrderBy, CreateTableModuleInput, TableModulePatch } from '../input-types';
|
|
10
|
-
export declare class TableModuleModel {
|
|
11
|
-
private client;
|
|
12
|
-
constructor(client: OrmClient);
|
|
13
|
-
findMany<S extends TableModuleSelect>(args: FindManyArgs<S, TableModuleFilter, TableModuleOrderBy> & {
|
|
14
|
-
select: S;
|
|
15
|
-
} & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
|
|
16
|
-
tableModules: ConnectionResult<InferSelectResult<TableModuleWithRelations, S>>;
|
|
17
|
-
}>;
|
|
18
|
-
findFirst<S extends TableModuleSelect>(args: FindFirstArgs<S, TableModuleFilter> & {
|
|
19
|
-
select: S;
|
|
20
|
-
} & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
|
|
21
|
-
tableModules: {
|
|
22
|
-
nodes: InferSelectResult<TableModuleWithRelations, S>[];
|
|
23
|
-
};
|
|
24
|
-
}>;
|
|
25
|
-
findOne<S extends TableModuleSelect>(args: {
|
|
26
|
-
id: string;
|
|
27
|
-
select: S;
|
|
28
|
-
} & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
|
|
29
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S> | null;
|
|
30
|
-
}>;
|
|
31
|
-
create<S extends TableModuleSelect>(args: CreateArgs<S, CreateTableModuleInput['tableModule']> & {
|
|
32
|
-
select: S;
|
|
33
|
-
} & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
|
|
34
|
-
createTableModule: {
|
|
35
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S>;
|
|
36
|
-
};
|
|
37
|
-
}>;
|
|
38
|
-
update<S extends TableModuleSelect>(args: UpdateArgs<S, {
|
|
39
|
-
id: string;
|
|
40
|
-
}, TableModulePatch> & {
|
|
41
|
-
select: S;
|
|
42
|
-
} & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
|
|
43
|
-
updateTableModule: {
|
|
44
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S>;
|
|
45
|
-
};
|
|
46
|
-
}>;
|
|
47
|
-
delete<S extends TableModuleSelect>(args: DeleteArgs<{
|
|
48
|
-
id: string;
|
|
49
|
-
}, S> & {
|
|
50
|
-
select: S;
|
|
51
|
-
} & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
|
|
52
|
-
deleteTableModule: {
|
|
53
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S>;
|
|
54
|
-
};
|
|
55
|
-
}>;
|
|
56
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
-
import { connectionFieldsMap } from '../input-types';
|
|
3
|
-
export class TableModuleModel {
|
|
4
|
-
client;
|
|
5
|
-
constructor(client) {
|
|
6
|
-
this.client = client;
|
|
7
|
-
}
|
|
8
|
-
findMany(args) {
|
|
9
|
-
const { document, variables } = buildFindManyDocument('TableModule', 'tableModules', args.select, {
|
|
10
|
-
where: args?.where,
|
|
11
|
-
orderBy: args?.orderBy,
|
|
12
|
-
first: args?.first,
|
|
13
|
-
last: args?.last,
|
|
14
|
-
after: args?.after,
|
|
15
|
-
before: args?.before,
|
|
16
|
-
offset: args?.offset,
|
|
17
|
-
}, 'TableModuleFilter', 'TableModuleOrderBy', connectionFieldsMap);
|
|
18
|
-
return new QueryBuilder({
|
|
19
|
-
client: this.client,
|
|
20
|
-
operation: 'query',
|
|
21
|
-
operationName: 'TableModule',
|
|
22
|
-
fieldName: 'tableModules',
|
|
23
|
-
document,
|
|
24
|
-
variables,
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
findFirst(args) {
|
|
28
|
-
const { document, variables } = buildFindFirstDocument('TableModule', 'tableModules', args.select, {
|
|
29
|
-
where: args?.where,
|
|
30
|
-
}, 'TableModuleFilter', connectionFieldsMap);
|
|
31
|
-
return new QueryBuilder({
|
|
32
|
-
client: this.client,
|
|
33
|
-
operation: 'query',
|
|
34
|
-
operationName: 'TableModule',
|
|
35
|
-
fieldName: 'tableModules',
|
|
36
|
-
document,
|
|
37
|
-
variables,
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
findOne(args) {
|
|
41
|
-
const { document, variables } = buildFindManyDocument('TableModule', 'tableModules', args.select, {
|
|
42
|
-
where: {
|
|
43
|
-
id: {
|
|
44
|
-
equalTo: args.id,
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
first: 1,
|
|
48
|
-
}, 'TableModuleFilter', 'TableModuleOrderBy', connectionFieldsMap);
|
|
49
|
-
return new QueryBuilder({
|
|
50
|
-
client: this.client,
|
|
51
|
-
operation: 'query',
|
|
52
|
-
operationName: 'TableModule',
|
|
53
|
-
fieldName: 'tableModule',
|
|
54
|
-
document,
|
|
55
|
-
variables,
|
|
56
|
-
transform: (data) => ({
|
|
57
|
-
tableModule: data.tableModules?.nodes?.[0] ?? null,
|
|
58
|
-
}),
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
create(args) {
|
|
62
|
-
const { document, variables } = buildCreateDocument('TableModule', 'createTableModule', 'tableModule', args.select, args.data, 'CreateTableModuleInput', connectionFieldsMap);
|
|
63
|
-
return new QueryBuilder({
|
|
64
|
-
client: this.client,
|
|
65
|
-
operation: 'mutation',
|
|
66
|
-
operationName: 'TableModule',
|
|
67
|
-
fieldName: 'createTableModule',
|
|
68
|
-
document,
|
|
69
|
-
variables,
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
update(args) {
|
|
73
|
-
const { document, variables } = buildUpdateByPkDocument('TableModule', 'updateTableModule', 'tableModule', args.select, args.where.id, args.data, 'UpdateTableModuleInput', 'id', 'tableModulePatch', connectionFieldsMap);
|
|
74
|
-
return new QueryBuilder({
|
|
75
|
-
client: this.client,
|
|
76
|
-
operation: 'mutation',
|
|
77
|
-
operationName: 'TableModule',
|
|
78
|
-
fieldName: 'updateTableModule',
|
|
79
|
-
document,
|
|
80
|
-
variables,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
delete(args) {
|
|
84
|
-
const { document, variables } = buildDeleteByPkDocument('TableModule', 'deleteTableModule', 'tableModule', args.where.id, 'DeleteTableModuleInput', 'id', args.select, connectionFieldsMap);
|
|
85
|
-
return new QueryBuilder({
|
|
86
|
-
client: this.client,
|
|
87
|
-
operation: 'mutation',
|
|
88
|
-
operationName: 'TableModule',
|
|
89
|
-
fieldName: 'deleteTableModule',
|
|
90
|
-
document,
|
|
91
|
-
variables,
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create mutation hook for TableModule
|
|
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 { TableModuleSelect, TableModuleWithRelations, CreateTableModuleInput } from '../../orm/input-types';
|
|
8
|
-
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
-
export type { TableModuleSelect, TableModuleWithRelations, CreateTableModuleInput, } from '../../orm/input-types';
|
|
10
|
-
/**
|
|
11
|
-
* Mutation hook for creating a TableModule
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* const { mutate, isPending } = useCreateTableModuleMutation({
|
|
16
|
-
* selection: { fields: { id: true, name: true } },
|
|
17
|
-
* });
|
|
18
|
-
*
|
|
19
|
-
* mutate({ name: 'New item' });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function useCreateTableModuleMutation<S extends TableModuleSelect>(params: {
|
|
23
|
-
selection: {
|
|
24
|
-
fields: S & TableModuleSelect;
|
|
25
|
-
} & HookStrictSelect<NoInfer<S>, TableModuleSelect>;
|
|
26
|
-
} & Omit<UseMutationOptions<{
|
|
27
|
-
createTableModule: {
|
|
28
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S>;
|
|
29
|
-
};
|
|
30
|
-
}, Error, CreateTableModuleInput['tableModule']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
-
createTableModule: {
|
|
32
|
-
tableModule: InferSelectResult<TableModuleWithRelations, S>;
|
|
33
|
-
};
|
|
34
|
-
}, Error, CreateTableModuleInput['tableModule']>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Create mutation hook for TableModule
|
|
4
|
-
* @generated by @constructive-io/graphql-codegen
|
|
5
|
-
* DO NOT EDIT - changes will be overwritten
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.useCreateTableModuleMutation = useCreateTableModuleMutation;
|
|
9
|
-
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
-
const client_1 = require("../client");
|
|
11
|
-
const selection_1 = require("../selection");
|
|
12
|
-
const query_keys_1 = require("../query-keys");
|
|
13
|
-
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
-
function useCreateTableModuleMutation(params) {
|
|
15
|
-
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
|
-
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
|
-
void _selection;
|
|
18
|
-
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
|
-
return (0, react_query_1.useMutation)({
|
|
20
|
-
mutationKey: mutation_keys_1.tableModuleMutationKeys.create(),
|
|
21
|
-
mutationFn: (data) => (0, client_1.getClient)()
|
|
22
|
-
.tableModule.create({
|
|
23
|
-
data,
|
|
24
|
-
select: args.select,
|
|
25
|
-
})
|
|
26
|
-
.unwrap(),
|
|
27
|
-
onSuccess: () => {
|
|
28
|
-
queryClient.invalidateQueries({
|
|
29
|
-
queryKey: query_keys_1.tableModuleKeys.lists(),
|
|
30
|
-
});
|
|
31
|
-
},
|
|
32
|
-
...mutationOptions,
|
|
33
|
-
});
|
|
34
|
-
}
|