@constructive-io/react 0.18.8 → 0.19.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 +6 -0
- package/admin/hooks/invalidation.js +16 -0
- package/admin/hooks/mutation-keys.d.ts +12 -0
- package/admin/hooks/mutation-keys.js +8 -1
- package/admin/hooks/mutations/index.d.ts +3 -0
- package/admin/hooks/mutations/index.js +3 -0
- package/admin/hooks/mutations/useCreateUsageSnapshotMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateUsageSnapshotMutation.js +34 -0
- package/admin/hooks/mutations/useDeleteUsageSnapshotMutation.d.ts +38 -0
- package/admin/hooks/mutations/useDeleteUsageSnapshotMutation.js +39 -0
- package/admin/hooks/mutations/useUpdateUsageSnapshotMutation.d.ts +40 -0
- package/admin/hooks/mutations/useUpdateUsageSnapshotMutation.js +40 -0
- package/admin/hooks/queries/index.d.ts +2 -0
- package/admin/hooks/queries/index.js +2 -0
- package/admin/hooks/queries/useUsageSnapshotQuery.d.ts +65 -0
- package/admin/hooks/queries/useUsageSnapshotQuery.js +53 -0
- package/admin/hooks/queries/useUsageSnapshotsQuery.d.ts +69 -0
- package/admin/hooks/queries/useUsageSnapshotsQuery.js +38 -0
- package/admin/hooks/query-keys.d.ts +14 -0
- package/admin/hooks/query-keys.js +9 -1
- package/admin/orm/index.d.ts +2 -0
- package/admin/orm/index.js +2 -0
- package/admin/orm/input-types.d.ts +129 -0
- package/admin/orm/models/index.d.ts +1 -0
- package/admin/orm/models/index.js +3 -1
- package/admin/orm/models/usageSnapshot.d.ts +56 -0
- package/admin/orm/models/usageSnapshot.js +100 -0
- package/admin/schema-types.d.ts +98 -1
- package/admin/types.d.ts +8 -0
- package/esm/admin/hooks/index.d.ts +1 -1
- package/esm/admin/hooks/index.js +1 -1
- package/esm/admin/hooks/invalidation.d.ts +6 -0
- package/esm/admin/hooks/invalidation.js +17 -1
- package/esm/admin/hooks/mutation-keys.d.ts +12 -0
- package/esm/admin/hooks/mutation-keys.js +7 -0
- package/esm/admin/hooks/mutations/index.d.ts +3 -0
- package/esm/admin/hooks/mutations/index.js +3 -0
- package/esm/admin/hooks/mutations/useCreateUsageSnapshotMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateUsageSnapshotMutation.js +31 -0
- package/esm/admin/hooks/mutations/useDeleteUsageSnapshotMutation.d.ts +38 -0
- package/esm/admin/hooks/mutations/useDeleteUsageSnapshotMutation.js +36 -0
- package/esm/admin/hooks/mutations/useUpdateUsageSnapshotMutation.d.ts +40 -0
- package/esm/admin/hooks/mutations/useUpdateUsageSnapshotMutation.js +37 -0
- package/esm/admin/hooks/queries/index.d.ts +2 -0
- package/esm/admin/hooks/queries/index.js +2 -0
- package/esm/admin/hooks/queries/useUsageSnapshotQuery.d.ts +65 -0
- package/esm/admin/hooks/queries/useUsageSnapshotQuery.js +47 -0
- package/esm/admin/hooks/queries/useUsageSnapshotsQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useUsageSnapshotsQuery.js +32 -0
- package/esm/admin/hooks/query-keys.d.ts +14 -0
- package/esm/admin/hooks/query-keys.js +8 -0
- package/esm/admin/orm/index.d.ts +2 -0
- package/esm/admin/orm/index.js +2 -0
- package/esm/admin/orm/input-types.d.ts +129 -0
- package/esm/admin/orm/models/index.d.ts +1 -0
- package/esm/admin/orm/models/index.js +1 -0
- package/esm/admin/orm/models/usageSnapshot.d.ts +56 -0
- package/esm/admin/orm/models/usageSnapshot.js +96 -0
- package/esm/admin/schema-types.d.ts +98 -1
- package/esm/admin/types.d.ts +8 -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 +6 -0
- package/esm/public/hooks/invalidation.js +17 -1
- package/esm/public/hooks/mutation-keys.d.ts +12 -4
- package/esm/public/hooks/mutation-keys.js +7 -6
- package/esm/public/hooks/mutations/index.d.ts +3 -2
- package/esm/public/hooks/mutations/index.js +3 -2
- package/esm/public/hooks/mutations/useCreateUsageSnapshotMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateUsageSnapshotMutation.js +31 -0
- package/esm/public/hooks/mutations/useDeleteUsageSnapshotMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteUsageSnapshotMutation.js +36 -0
- package/esm/public/hooks/mutations/useUpdateUsageSnapshotMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateUsageSnapshotMutation.js +37 -0
- package/esm/public/hooks/queries/index.d.ts +2 -0
- package/esm/public/hooks/queries/index.js +2 -0
- package/esm/public/hooks/queries/useUsageSnapshotQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useUsageSnapshotQuery.js +47 -0
- package/esm/public/hooks/queries/useUsageSnapshotsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useUsageSnapshotsQuery.js +32 -0
- package/esm/public/hooks/query-keys.d.ts +14 -0
- package/esm/public/hooks/query-keys.js +8 -0
- package/esm/public/orm/index.d.ts +2 -10
- package/esm/public/orm/index.js +2 -0
- package/esm/public/orm/input-types.d.ts +129 -22
- package/esm/public/orm/models/index.d.ts +1 -0
- package/esm/public/orm/models/index.js +1 -0
- package/esm/public/orm/models/usageSnapshot.d.ts +56 -0
- package/esm/public/orm/models/usageSnapshot.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +1 -17
- package/esm/public/orm/mutation/index.js +0 -24
- package/esm/public/schema-types.d.ts +367 -286
- package/esm/public/types.d.ts +8 -0
- package/package.json +6 -6
- package/public/hooks/index.d.ts +1 -1
- package/public/hooks/index.js +1 -1
- package/public/hooks/invalidation.d.ts +6 -0
- package/public/hooks/invalidation.js +16 -0
- package/public/hooks/mutation-keys.d.ts +12 -4
- package/public/hooks/mutation-keys.js +9 -7
- package/public/hooks/mutations/index.d.ts +3 -2
- package/public/hooks/mutations/index.js +3 -2
- package/public/hooks/mutations/useCreateUsageSnapshotMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateUsageSnapshotMutation.js +34 -0
- package/public/hooks/mutations/useDeleteUsageSnapshotMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteUsageSnapshotMutation.js +39 -0
- package/public/hooks/mutations/useUpdateUsageSnapshotMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateUsageSnapshotMutation.js +40 -0
- package/public/hooks/queries/index.d.ts +2 -0
- package/public/hooks/queries/index.js +2 -0
- package/public/hooks/queries/useUsageSnapshotQuery.d.ts +65 -0
- package/public/hooks/queries/useUsageSnapshotQuery.js +53 -0
- package/public/hooks/queries/useUsageSnapshotsQuery.d.ts +69 -0
- package/public/hooks/queries/useUsageSnapshotsQuery.js +38 -0
- package/public/hooks/query-keys.d.ts +14 -0
- package/public/hooks/query-keys.js +10 -1
- package/public/orm/index.d.ts +2 -10
- package/public/orm/index.js +2 -0
- package/public/orm/input-types.d.ts +129 -22
- package/public/orm/models/index.d.ts +1 -0
- package/public/orm/models/index.js +3 -1
- package/public/orm/models/usageSnapshot.d.ts +56 -0
- package/public/orm/models/usageSnapshot.js +100 -0
- package/public/orm/mutation/index.d.ts +1 -17
- package/public/orm/mutation/index.js +0 -24
- package/public/schema-types.d.ts +367 -286
- package/public/types.d.ts +8 -0
- package/esm/public/hooks/mutations/useAppendFieldSmartTagsMutation.d.ts +0 -20
- package/esm/public/hooks/mutations/useAppendFieldSmartTagsMutation.js +0 -23
- package/esm/public/hooks/mutations/useAppendTableSmartTagsMutation.d.ts +0 -20
- package/esm/public/hooks/mutations/useAppendTableSmartTagsMutation.js +0 -23
- package/public/hooks/mutations/useAppendFieldSmartTagsMutation.d.ts +0 -20
- package/public/hooks/mutations/useAppendFieldSmartTagsMutation.js +0 -26
- package/public/hooks/mutations/useAppendTableSmartTagsMutation.d.ts +0 -20
- package/public/hooks/mutations/useAppendTableSmartTagsMutation.js +0 -26
package/esm/public/types.d.ts
CHANGED
|
@@ -1551,6 +1551,14 @@ export interface RateLimitsModule {
|
|
|
1551
1551
|
ipRateLimitsTable: string | null;
|
|
1552
1552
|
rateLimitsTable: string | null;
|
|
1553
1553
|
}
|
|
1554
|
+
export interface UsageSnapshot {
|
|
1555
|
+
databaseId: string | null;
|
|
1556
|
+
metricName: string | null;
|
|
1557
|
+
metricValue: string | null;
|
|
1558
|
+
dimensions: unknown | null;
|
|
1559
|
+
capturedAt: string | null;
|
|
1560
|
+
id: string | null;
|
|
1561
|
+
}
|
|
1554
1562
|
export interface AppMembershipDefault {
|
|
1555
1563
|
id: string | null;
|
|
1556
1564
|
createdAt: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive React - Auto-generated React Query hooks and ORM client",
|
|
6
6
|
"main": "index.js",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@0no-co/graphql.web": "^1.1.2",
|
|
45
|
-
"@constructive-io/graphql-query": "^3.
|
|
46
|
-
"@constructive-io/graphql-types": "^3.
|
|
45
|
+
"@constructive-io/graphql-query": "^3.23.0",
|
|
46
|
+
"@constructive-io/graphql-types": "^3.9.0",
|
|
47
47
|
"@tanstack/react-query": "^5.90.21",
|
|
48
|
-
"gql-ast": "^3.
|
|
48
|
+
"gql-ast": "^3.9.0",
|
|
49
49
|
"graphql": "16.13.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": "^18.0.0 || ^19.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@constructive-io/graphql-codegen": "^4.
|
|
55
|
+
"@constructive-io/graphql-codegen": "^4.40.0",
|
|
56
56
|
"@types/node": "^22.19.11",
|
|
57
57
|
"@types/react": "^19.2.14",
|
|
58
58
|
"makage": "^0.3.0",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"tsx": "^4.19.0",
|
|
61
61
|
"typescript": "^5.9.3"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "c665e2443ec98da61e9f372cf663cb9973afef4b"
|
|
64
64
|
}
|
package/public/hooks/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* GraphQL SDK
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
*
|
|
5
|
-
* Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, GetAllRecord, AppPermission, OrgPermission, Object, AppLevelRequirement, Database, Schema, Table, CheckConstraint, Field, SpatialRelation, Partition, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, SecureTableProvision, RelationProvision, SessionSecretsModule, IdentityProvidersModule, RealtimeModule, SchemaGrant, DefaultPrivilege, Enum, Function, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, CorsSetting, TriggerFunction, DatabaseTransfer, Api, Site, App, ApiSetting, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, EncryptedSecretsModule, InvitesModule, LevelsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, SecretsModule, SessionsModule, UserAuthModule, UsersModule, Blueprint, BlueprintTemplate, BlueprintConstruction, StorageModule, EntityTypeProvision, WebauthnCredentialsModule, WebauthnAuthModule, NotificationsModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgMemberProfile, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, OrgPermissionDefault, AppLimit, AppLimitCredit, AppLimitCreditCodeItem, AppLimitCreditRedemption, OrgLimit, OrgLimitCredit, OrgLimitAggregate, AppStep, AppAchievement, AppLevel, Email, PhoneNumber, CryptoAddress, WebauthnCredential, AppInvite, AppClaimedInvite, OrgInvite, OrgClaimedInvite, AuditLog, AgentThread, AgentMessage, AgentTask, RoleType, IdentityProvider, Ref, Store, AppPermissionDefault, AppLimitCreditCode, AppLimitCapsDefault, OrgLimitCapsDefault, AppLimitCap, OrgLimitCap, MembershipType, MigrateFile, DevicesModule, NodeTypeRegistry, AppLimitDefault, OrgLimitDefault, UserConnectedAccount, Commit, PubkeySetting, RateLimitsModule, AppMembershipDefault, OrgMembershipDefault, RlsSetting, AppLimitEvent, OrgLimitEvent, RlsModule, DatabaseSetting, PlansModule, SqlAction, BillingModule, AstMigration, User, OrgMembershipSetting, WebauthnSetting, AppMembership, BillingProviderModule, HierarchyModule
|
|
5
|
+
* Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, GetAllRecord, AppPermission, OrgPermission, Object, AppLevelRequirement, Database, Schema, Table, CheckConstraint, Field, SpatialRelation, Partition, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, SecureTableProvision, RelationProvision, SessionSecretsModule, IdentityProvidersModule, RealtimeModule, SchemaGrant, DefaultPrivilege, Enum, Function, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, CorsSetting, TriggerFunction, DatabaseTransfer, Api, Site, App, ApiSetting, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, EncryptedSecretsModule, InvitesModule, LevelsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, SecretsModule, SessionsModule, UserAuthModule, UsersModule, Blueprint, BlueprintTemplate, BlueprintConstruction, StorageModule, EntityTypeProvision, WebauthnCredentialsModule, WebauthnAuthModule, NotificationsModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgMemberProfile, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, OrgPermissionDefault, AppLimit, AppLimitCredit, AppLimitCreditCodeItem, AppLimitCreditRedemption, OrgLimit, OrgLimitCredit, OrgLimitAggregate, AppStep, AppAchievement, AppLevel, Email, PhoneNumber, CryptoAddress, WebauthnCredential, AppInvite, AppClaimedInvite, OrgInvite, OrgClaimedInvite, AuditLog, AgentThread, AgentMessage, AgentTask, RoleType, IdentityProvider, Ref, Store, AppPermissionDefault, AppLimitCreditCode, AppLimitCapsDefault, OrgLimitCapsDefault, AppLimitCap, OrgLimitCap, MembershipType, MigrateFile, DevicesModule, NodeTypeRegistry, AppLimitDefault, OrgLimitDefault, UserConnectedAccount, Commit, PubkeySetting, RateLimitsModule, UsageSnapshot, AppMembershipDefault, OrgMembershipDefault, RlsSetting, AppLimitEvent, OrgLimitEvent, RlsModule, DatabaseSetting, PlansModule, SqlAction, BillingModule, AstMigration, User, OrgMembershipSetting, WebauthnSetting, AppMembership, BillingProviderModule, HierarchyModule
|
|
6
6
|
*
|
|
7
7
|
* Usage:
|
|
8
8
|
*
|
package/public/hooks/index.js
CHANGED
|
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
* GraphQL SDK
|
|
19
19
|
* @generated by @constructive-io/graphql-codegen
|
|
20
20
|
*
|
|
21
|
-
* Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, GetAllRecord, AppPermission, OrgPermission, Object, AppLevelRequirement, Database, Schema, Table, CheckConstraint, Field, SpatialRelation, Partition, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, SecureTableProvision, RelationProvision, SessionSecretsModule, IdentityProvidersModule, RealtimeModule, SchemaGrant, DefaultPrivilege, Enum, Function, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, CorsSetting, TriggerFunction, DatabaseTransfer, Api, Site, App, ApiSetting, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, EncryptedSecretsModule, InvitesModule, LevelsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, SecretsModule, SessionsModule, UserAuthModule, UsersModule, Blueprint, BlueprintTemplate, BlueprintConstruction, StorageModule, EntityTypeProvision, WebauthnCredentialsModule, WebauthnAuthModule, NotificationsModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgMemberProfile, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, OrgPermissionDefault, AppLimit, AppLimitCredit, AppLimitCreditCodeItem, AppLimitCreditRedemption, OrgLimit, OrgLimitCredit, OrgLimitAggregate, AppStep, AppAchievement, AppLevel, Email, PhoneNumber, CryptoAddress, WebauthnCredential, AppInvite, AppClaimedInvite, OrgInvite, OrgClaimedInvite, AuditLog, AgentThread, AgentMessage, AgentTask, RoleType, IdentityProvider, Ref, Store, AppPermissionDefault, AppLimitCreditCode, AppLimitCapsDefault, OrgLimitCapsDefault, AppLimitCap, OrgLimitCap, MembershipType, MigrateFile, DevicesModule, NodeTypeRegistry, AppLimitDefault, OrgLimitDefault, UserConnectedAccount, Commit, PubkeySetting, RateLimitsModule, AppMembershipDefault, OrgMembershipDefault, RlsSetting, AppLimitEvent, OrgLimitEvent, RlsModule, DatabaseSetting, PlansModule, SqlAction, BillingModule, AstMigration, User, OrgMembershipSetting, WebauthnSetting, AppMembership, BillingProviderModule, HierarchyModule
|
|
21
|
+
* Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, GetAllRecord, AppPermission, OrgPermission, Object, AppLevelRequirement, Database, Schema, Table, CheckConstraint, Field, SpatialRelation, Partition, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, SecureTableProvision, RelationProvision, SessionSecretsModule, IdentityProvidersModule, RealtimeModule, SchemaGrant, DefaultPrivilege, Enum, Function, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, CorsSetting, TriggerFunction, DatabaseTransfer, Api, Site, App, ApiSetting, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, EncryptedSecretsModule, InvitesModule, LevelsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, SecretsModule, SessionsModule, UserAuthModule, UsersModule, Blueprint, BlueprintTemplate, BlueprintConstruction, StorageModule, EntityTypeProvision, WebauthnCredentialsModule, WebauthnAuthModule, NotificationsModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgMemberProfile, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, OrgPermissionDefault, AppLimit, AppLimitCredit, AppLimitCreditCodeItem, AppLimitCreditRedemption, OrgLimit, OrgLimitCredit, OrgLimitAggregate, AppStep, AppAchievement, AppLevel, Email, PhoneNumber, CryptoAddress, WebauthnCredential, AppInvite, AppClaimedInvite, OrgInvite, OrgClaimedInvite, AuditLog, AgentThread, AgentMessage, AgentTask, RoleType, IdentityProvider, Ref, Store, AppPermissionDefault, AppLimitCreditCode, AppLimitCapsDefault, OrgLimitCapsDefault, AppLimitCap, OrgLimitCap, MembershipType, MigrateFile, DevicesModule, NodeTypeRegistry, AppLimitDefault, OrgLimitDefault, UserConnectedAccount, Commit, PubkeySetting, RateLimitsModule, UsageSnapshot, AppMembershipDefault, OrgMembershipDefault, RlsSetting, AppLimitEvent, OrgLimitEvent, RlsModule, DatabaseSetting, PlansModule, SqlAction, BillingModule, AstMigration, User, OrgMembershipSetting, WebauthnSetting, AppMembership, BillingProviderModule, HierarchyModule
|
|
22
22
|
*
|
|
23
23
|
* Usage:
|
|
24
24
|
*
|
|
@@ -679,6 +679,11 @@ export declare const invalidate: {
|
|
|
679
679
|
/** Invalidate rateLimitsModule list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
680
680
|
/** Invalidate a specific rateLimitsModule */ readonly detail: (queryClient: QueryClient, id: string | number) => Promise<void>;
|
|
681
681
|
};
|
|
682
|
+
/** Invalidate usageSnapshot queries */ readonly usageSnapshot: {
|
|
683
|
+
/** Invalidate all usageSnapshot queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
684
|
+
/** Invalidate usageSnapshot list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
685
|
+
/** Invalidate a specific usageSnapshot */ readonly detail: (queryClient: QueryClient, id: string | number) => Promise<void>;
|
|
686
|
+
};
|
|
682
687
|
/** Invalidate appMembershipDefault queries */ readonly appMembershipDefault: {
|
|
683
688
|
/** Invalidate all appMembershipDefault queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
684
689
|
/** Invalidate appMembershipDefault list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
@@ -908,6 +913,7 @@ export declare const remove: {
|
|
|
908
913
|
/** Remove commit from cache */ readonly commit: (queryClient: QueryClient, id: string | number) => void;
|
|
909
914
|
/** Remove pubkeySetting from cache */ readonly pubkeySetting: (queryClient: QueryClient, id: string | number) => void;
|
|
910
915
|
/** Remove rateLimitsModule from cache */ readonly rateLimitsModule: (queryClient: QueryClient, id: string | number) => void;
|
|
916
|
+
/** Remove usageSnapshot from cache */ readonly usageSnapshot: (queryClient: QueryClient, id: string | number) => void;
|
|
911
917
|
/** Remove appMembershipDefault from cache */ readonly appMembershipDefault: (queryClient: QueryClient, id: string | number) => void;
|
|
912
918
|
/** Remove orgMembershipDefault from cache */ readonly orgMembershipDefault: (queryClient: QueryClient, id: string | number) => void;
|
|
913
919
|
/** Remove rlsSetting from cache */ readonly rlsSetting: (queryClient: QueryClient, id: string | number) => void;
|
|
@@ -1468,6 +1468,17 @@ exports.invalidate = {
|
|
|
1468
1468
|
queryKey: query_keys_1.rateLimitsModuleKeys.detail(id),
|
|
1469
1469
|
}),
|
|
1470
1470
|
},
|
|
1471
|
+
/** Invalidate usageSnapshot queries */ usageSnapshot: {
|
|
1472
|
+
/** Invalidate all usageSnapshot queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
1473
|
+
queryKey: query_keys_1.usageSnapshotKeys.all,
|
|
1474
|
+
}),
|
|
1475
|
+
/** Invalidate usageSnapshot list queries */ lists: (queryClient) => queryClient.invalidateQueries({
|
|
1476
|
+
queryKey: query_keys_1.usageSnapshotKeys.lists(),
|
|
1477
|
+
}),
|
|
1478
|
+
/** Invalidate a specific usageSnapshot */ detail: (queryClient, id) => queryClient.invalidateQueries({
|
|
1479
|
+
queryKey: query_keys_1.usageSnapshotKeys.detail(id),
|
|
1480
|
+
}),
|
|
1481
|
+
},
|
|
1471
1482
|
/** Invalidate appMembershipDefault queries */ appMembershipDefault: {
|
|
1472
1483
|
/** Invalidate all appMembershipDefault queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
1473
1484
|
queryKey: query_keys_1.appMembershipDefaultKeys.all,
|
|
@@ -2323,6 +2334,11 @@ exports.remove = {
|
|
|
2323
2334
|
queryKey: query_keys_1.rateLimitsModuleKeys.detail(id),
|
|
2324
2335
|
});
|
|
2325
2336
|
},
|
|
2337
|
+
/** Remove usageSnapshot from cache */ usageSnapshot: (queryClient, id) => {
|
|
2338
|
+
queryClient.removeQueries({
|
|
2339
|
+
queryKey: query_keys_1.usageSnapshotKeys.detail(id),
|
|
2340
|
+
});
|
|
2341
|
+
},
|
|
2326
2342
|
/** Remove appMembershipDefault from cache */ appMembershipDefault: (queryClient, id) => {
|
|
2327
2343
|
queryClient.removeQueries({
|
|
2328
2344
|
queryKey: query_keys_1.appMembershipDefaultKeys.detail(id),
|
|
@@ -789,6 +789,12 @@ export declare const rateLimitsModuleMutationKeys: {
|
|
|
789
789
|
/** Update rateLimitsModule mutation key */ readonly update: (id: string | number) => readonly ["mutation", "ratelimitsmodule", "update", string | number];
|
|
790
790
|
/** Delete rateLimitsModule mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "ratelimitsmodule", "delete", string | number];
|
|
791
791
|
};
|
|
792
|
+
export declare const usageSnapshotMutationKeys: {
|
|
793
|
+
/** All usageSnapshot mutation keys */ readonly all: readonly ["mutation", "usagesnapshot"];
|
|
794
|
+
/** Create usageSnapshot mutation key */ readonly create: () => readonly ["mutation", "usagesnapshot", "create"];
|
|
795
|
+
/** Update usageSnapshot mutation key */ readonly update: (id: string | number) => readonly ["mutation", "usagesnapshot", "update", string | number];
|
|
796
|
+
/** Delete usageSnapshot mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "usagesnapshot", "delete", string | number];
|
|
797
|
+
};
|
|
792
798
|
export declare const appMembershipDefaultMutationKeys: {
|
|
793
799
|
/** All appMembershipDefault mutation keys */ readonly all: readonly ["mutation", "appmembershipdefault"];
|
|
794
800
|
/** Create appMembershipDefault mutation key */ readonly create: () => readonly ["mutation", "appmembershipdefault", "create"];
|
|
@@ -918,8 +924,6 @@ export declare const customMutationKeys: {
|
|
|
918
924
|
/** Mutation key for provisionSpatialRelation */ readonly provisionSpatialRelation: (identifier?: string) => readonly ["mutation", "provisionSpatialRelation", string] | readonly ["mutation", "provisionSpatialRelation"];
|
|
919
925
|
/** Mutation key for bootstrapUser */ readonly bootstrapUser: (identifier?: string) => readonly ["mutation", "bootstrapUser", string] | readonly ["mutation", "bootstrapUser"];
|
|
920
926
|
/** Mutation key for setFieldOrder */ readonly setFieldOrder: (identifier?: string) => readonly ["mutation", "setFieldOrder", string] | readonly ["mutation", "setFieldOrder"];
|
|
921
|
-
/** Mutation key for appendFieldSmartTags */ readonly appendFieldSmartTags: (identifier?: string) => readonly ["mutation", "appendFieldSmartTags", string] | readonly ["mutation", "appendFieldSmartTags"];
|
|
922
|
-
/** Mutation key for appendTableSmartTags */ readonly appendTableSmartTags: (identifier?: string) => readonly ["mutation", "appendTableSmartTags", string] | readonly ["mutation", "appendTableSmartTags"];
|
|
923
927
|
/** Mutation key for provisionUniqueConstraint */ readonly provisionUniqueConstraint: (identifier?: string) => readonly ["mutation", "provisionUniqueConstraint", string] | readonly ["mutation", "provisionUniqueConstraint"];
|
|
924
928
|
/** Mutation key for provisionFullTextSearch */ readonly provisionFullTextSearch: (identifier?: string) => readonly ["mutation", "provisionFullTextSearch", string] | readonly ["mutation", "provisionFullTextSearch"];
|
|
925
929
|
/** Mutation key for provisionIndex */ readonly provisionIndex: (identifier?: string) => readonly ["mutation", "provisionIndex", string] | readonly ["mutation", "provisionIndex"];
|
|
@@ -1752,6 +1756,12 @@ export declare const mutationKeys: {
|
|
|
1752
1756
|
/** Update rateLimitsModule mutation key */ readonly update: (id: string | number) => readonly ["mutation", "ratelimitsmodule", "update", string | number];
|
|
1753
1757
|
/** Delete rateLimitsModule mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "ratelimitsmodule", "delete", string | number];
|
|
1754
1758
|
};
|
|
1759
|
+
readonly usageSnapshot: {
|
|
1760
|
+
/** All usageSnapshot mutation keys */ readonly all: readonly ["mutation", "usagesnapshot"];
|
|
1761
|
+
/** Create usageSnapshot mutation key */ readonly create: () => readonly ["mutation", "usagesnapshot", "create"];
|
|
1762
|
+
/** Update usageSnapshot mutation key */ readonly update: (id: string | number) => readonly ["mutation", "usagesnapshot", "update", string | number];
|
|
1763
|
+
/** Delete usageSnapshot mutation key */ readonly delete: (id: string | number) => readonly ["mutation", "usagesnapshot", "delete", string | number];
|
|
1764
|
+
};
|
|
1755
1765
|
readonly appMembershipDefault: {
|
|
1756
1766
|
/** All appMembershipDefault mutation keys */ readonly all: readonly ["mutation", "appmembershipdefault"];
|
|
1757
1767
|
/** Create appMembershipDefault mutation key */ readonly create: () => readonly ["mutation", "appmembershipdefault", "create"];
|
|
@@ -1881,8 +1891,6 @@ export declare const mutationKeys: {
|
|
|
1881
1891
|
/** Mutation key for provisionSpatialRelation */ readonly provisionSpatialRelation: (identifier?: string) => readonly ["mutation", "provisionSpatialRelation", string] | readonly ["mutation", "provisionSpatialRelation"];
|
|
1882
1892
|
/** Mutation key for bootstrapUser */ readonly bootstrapUser: (identifier?: string) => readonly ["mutation", "bootstrapUser", string] | readonly ["mutation", "bootstrapUser"];
|
|
1883
1893
|
/** Mutation key for setFieldOrder */ readonly setFieldOrder: (identifier?: string) => readonly ["mutation", "setFieldOrder", string] | readonly ["mutation", "setFieldOrder"];
|
|
1884
|
-
/** Mutation key for appendFieldSmartTags */ readonly appendFieldSmartTags: (identifier?: string) => readonly ["mutation", "appendFieldSmartTags", string] | readonly ["mutation", "appendFieldSmartTags"];
|
|
1885
|
-
/** Mutation key for appendTableSmartTags */ readonly appendTableSmartTags: (identifier?: string) => readonly ["mutation", "appendTableSmartTags", string] | readonly ["mutation", "appendTableSmartTags"];
|
|
1886
1894
|
/** Mutation key for provisionUniqueConstraint */ readonly provisionUniqueConstraint: (identifier?: string) => readonly ["mutation", "provisionUniqueConstraint", string] | readonly ["mutation", "provisionUniqueConstraint"];
|
|
1887
1895
|
/** Mutation key for provisionFullTextSearch */ readonly provisionFullTextSearch: (identifier?: string) => readonly ["mutation", "provisionFullTextSearch", string] | readonly ["mutation", "provisionFullTextSearch"];
|
|
1888
1896
|
/** Mutation key for provisionIndex */ readonly provisionIndex: (identifier?: string) => readonly ["mutation", "provisionIndex", string] | readonly ["mutation", "provisionIndex"];
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.connectedAccountsModuleMutationKeys = exports.apiSettingMutationKeys = exports.appMutationKeys = exports.siteMutationKeys = exports.apiMutationKeys = exports.databaseTransferMutationKeys = exports.triggerFunctionMutationKeys = exports.corsSettingMutationKeys = exports.siteThemeMutationKeys = exports.siteModuleMutationKeys = exports.siteMetadatumMutationKeys = exports.domainMutationKeys = exports.apiModuleMutationKeys = exports.apiSchemaMutationKeys = exports.functionMutationKeys = exports.enumMutationKeys = exports.defaultPrivilegeMutationKeys = exports.schemaGrantMutationKeys = exports.realtimeModuleMutationKeys = exports.identityProvidersModuleMutationKeys = exports.sessionSecretsModuleMutationKeys = exports.relationProvisionMutationKeys = exports.secureTableProvisionMutationKeys = exports.embeddingChunkMutationKeys = exports.viewRuleMutationKeys = exports.viewGrantMutationKeys = exports.viewTableMutationKeys = exports.viewMutationKeys = exports.uniqueConstraintMutationKeys = exports.triggerMutationKeys = exports.tableGrantMutationKeys = exports.primaryKeyConstraintMutationKeys = exports.policyMutationKeys = exports.indexMutationKeys = exports.fullTextSearchMutationKeys = exports.foreignKeyConstraintMutationKeys = exports.partitionMutationKeys = exports.spatialRelationMutationKeys = exports.fieldMutationKeys = exports.checkConstraintMutationKeys = exports.tableMutationKeys = exports.schemaMutationKeys = exports.databaseMutationKeys = exports.appLevelRequirementMutationKeys = exports.objectMutationKeys = exports.orgPermissionMutationKeys = exports.appPermissionMutationKeys = exports.getAllRecordMutationKeys = exports.orgGetSubordinatesRecordMutationKeys = exports.orgGetManagersRecordMutationKeys = void 0;
|
|
9
9
|
exports.emailMutationKeys = exports.appLevelMutationKeys = exports.appAchievementMutationKeys = exports.appStepMutationKeys = exports.orgLimitAggregateMutationKeys = exports.orgLimitCreditMutationKeys = exports.orgLimitMutationKeys = exports.appLimitCreditRedemptionMutationKeys = exports.appLimitCreditCodeItemMutationKeys = exports.appLimitCreditMutationKeys = exports.appLimitMutationKeys = exports.orgPermissionDefaultMutationKeys = exports.orgChartEdgeGrantMutationKeys = exports.orgChartEdgeMutationKeys = exports.orgGrantMutationKeys = exports.orgMemberProfileMutationKeys = exports.orgOwnerGrantMutationKeys = exports.orgAdminGrantMutationKeys = exports.orgMemberMutationKeys = exports.orgMembershipMutationKeys = exports.appGrantMutationKeys = exports.appOwnerGrantMutationKeys = exports.appAdminGrantMutationKeys = exports.databaseProvisionModuleMutationKeys = exports.notificationsModuleMutationKeys = exports.webauthnAuthModuleMutationKeys = exports.webauthnCredentialsModuleMutationKeys = exports.entityTypeProvisionMutationKeys = exports.storageModuleMutationKeys = exports.blueprintConstructionMutationKeys = exports.blueprintTemplateMutationKeys = exports.blueprintMutationKeys = exports.usersModuleMutationKeys = exports.userAuthModuleMutationKeys = exports.sessionsModuleMutationKeys = exports.secretsModuleMutationKeys = exports.profilesModuleMutationKeys = exports.phoneNumbersModuleMutationKeys = exports.permissionsModuleMutationKeys = exports.membershipsModuleMutationKeys = exports.membershipTypesModuleMutationKeys = exports.limitsModuleMutationKeys = exports.levelsModuleMutationKeys = exports.invitesModuleMutationKeys = exports.encryptedSecretsModuleMutationKeys = exports.emailsModuleMutationKeys = exports.denormalizedTableFieldMutationKeys = exports.defaultIdsModuleMutationKeys = exports.cryptoAuthModuleMutationKeys = exports.cryptoAddressesModuleMutationKeys = void 0;
|
|
10
|
-
exports.
|
|
10
|
+
exports.customMutationKeys = exports.hierarchyModuleMutationKeys = exports.billingProviderModuleMutationKeys = exports.appMembershipMutationKeys = exports.webauthnSettingMutationKeys = exports.orgMembershipSettingMutationKeys = exports.userMutationKeys = exports.astMigrationMutationKeys = exports.billingModuleMutationKeys = exports.sqlActionMutationKeys = exports.plansModuleMutationKeys = exports.databaseSettingMutationKeys = exports.rlsModuleMutationKeys = exports.orgLimitEventMutationKeys = exports.appLimitEventMutationKeys = exports.rlsSettingMutationKeys = exports.orgMembershipDefaultMutationKeys = exports.appMembershipDefaultMutationKeys = exports.usageSnapshotMutationKeys = exports.rateLimitsModuleMutationKeys = exports.pubkeySettingMutationKeys = exports.commitMutationKeys = exports.userConnectedAccountMutationKeys = exports.orgLimitDefaultMutationKeys = exports.appLimitDefaultMutationKeys = exports.nodeTypeRegistryMutationKeys = exports.devicesModuleMutationKeys = exports.migrateFileMutationKeys = exports.membershipTypeMutationKeys = exports.orgLimitCapMutationKeys = exports.appLimitCapMutationKeys = exports.orgLimitCapsDefaultMutationKeys = exports.appLimitCapsDefaultMutationKeys = exports.appLimitCreditCodeMutationKeys = exports.appPermissionDefaultMutationKeys = exports.storeMutationKeys = exports.refMutationKeys = exports.identityProviderMutationKeys = exports.roleTypeMutationKeys = exports.agentTaskMutationKeys = exports.agentMessageMutationKeys = exports.agentThreadMutationKeys = exports.auditLogMutationKeys = exports.orgClaimedInviteMutationKeys = exports.orgInviteMutationKeys = exports.appClaimedInviteMutationKeys = exports.appInviteMutationKeys = exports.webauthnCredentialMutationKeys = exports.cryptoAddressMutationKeys = exports.phoneNumberMutationKeys = void 0;
|
|
11
|
+
exports.mutationKeys = void 0;
|
|
11
12
|
// ============================================================================
|
|
12
13
|
// Mutation keys for tracking in-flight mutations
|
|
13
14
|
//
|
|
@@ -842,6 +843,12 @@ exports.rateLimitsModuleMutationKeys = {
|
|
|
842
843
|
/** Update rateLimitsModule mutation key */ update: (id) => ['mutation', 'ratelimitsmodule', 'update', id],
|
|
843
844
|
/** Delete rateLimitsModule mutation key */ delete: (id) => ['mutation', 'ratelimitsmodule', 'delete', id],
|
|
844
845
|
};
|
|
846
|
+
exports.usageSnapshotMutationKeys = {
|
|
847
|
+
/** All usageSnapshot mutation keys */ all: ['mutation', 'usagesnapshot'],
|
|
848
|
+
/** Create usageSnapshot mutation key */ create: () => ['mutation', 'usagesnapshot', 'create'],
|
|
849
|
+
/** Update usageSnapshot mutation key */ update: (id) => ['mutation', 'usagesnapshot', 'update', id],
|
|
850
|
+
/** Delete usageSnapshot mutation key */ delete: (id) => ['mutation', 'usagesnapshot', 'delete', id],
|
|
851
|
+
};
|
|
845
852
|
exports.appMembershipDefaultMutationKeys = {
|
|
846
853
|
/** All appMembershipDefault mutation keys */ all: ['mutation', 'appmembershipdefault'],
|
|
847
854
|
/** Create appMembershipDefault mutation key */ create: () => ['mutation', 'appmembershipdefault', 'create'],
|
|
@@ -1029,12 +1036,6 @@ exports.customMutationKeys = {
|
|
|
1029
1036
|
/** Mutation key for setFieldOrder */ setFieldOrder: (identifier) => identifier
|
|
1030
1037
|
? ['mutation', 'setFieldOrder', identifier]
|
|
1031
1038
|
: ['mutation', 'setFieldOrder'],
|
|
1032
|
-
/** Mutation key for appendFieldSmartTags */ appendFieldSmartTags: (identifier) => identifier
|
|
1033
|
-
? ['mutation', 'appendFieldSmartTags', identifier]
|
|
1034
|
-
: ['mutation', 'appendFieldSmartTags'],
|
|
1035
|
-
/** Mutation key for appendTableSmartTags */ appendTableSmartTags: (identifier) => identifier
|
|
1036
|
-
? ['mutation', 'appendTableSmartTags', identifier]
|
|
1037
|
-
: ['mutation', 'appendTableSmartTags'],
|
|
1038
1039
|
/** Mutation key for provisionUniqueConstraint */ provisionUniqueConstraint: (identifier) => identifier
|
|
1039
1040
|
? ['mutation', 'provisionUniqueConstraint', identifier]
|
|
1040
1041
|
: ['mutation', 'provisionUniqueConstraint'],
|
|
@@ -1252,6 +1253,7 @@ exports.mutationKeys = {
|
|
|
1252
1253
|
commit: exports.commitMutationKeys,
|
|
1253
1254
|
pubkeySetting: exports.pubkeySettingMutationKeys,
|
|
1254
1255
|
rateLimitsModule: exports.rateLimitsModuleMutationKeys,
|
|
1256
|
+
usageSnapshot: exports.usageSnapshotMutationKeys,
|
|
1255
1257
|
appMembershipDefault: exports.appMembershipDefaultMutationKeys,
|
|
1256
1258
|
orgMembershipDefault: exports.orgMembershipDefaultMutationKeys,
|
|
1257
1259
|
rlsSetting: exports.rlsSettingMutationKeys,
|
|
@@ -384,6 +384,9 @@ export * from './useDeletePubkeySettingMutation';
|
|
|
384
384
|
export * from './useCreateRateLimitsModuleMutation';
|
|
385
385
|
export * from './useUpdateRateLimitsModuleMutation';
|
|
386
386
|
export * from './useDeleteRateLimitsModuleMutation';
|
|
387
|
+
export * from './useCreateUsageSnapshotMutation';
|
|
388
|
+
export * from './useUpdateUsageSnapshotMutation';
|
|
389
|
+
export * from './useDeleteUsageSnapshotMutation';
|
|
387
390
|
export * from './useCreateAppMembershipDefaultMutation';
|
|
388
391
|
export * from './useUpdateAppMembershipDefaultMutation';
|
|
389
392
|
export * from './useDeleteAppMembershipDefaultMutation';
|
|
@@ -453,8 +456,6 @@ export * from './useCopyTemplateToBlueprintMutation';
|
|
|
453
456
|
export * from './useProvisionSpatialRelationMutation';
|
|
454
457
|
export * from './useBootstrapUserMutation';
|
|
455
458
|
export * from './useSetFieldOrderMutation';
|
|
456
|
-
export * from './useAppendFieldSmartTagsMutation';
|
|
457
|
-
export * from './useAppendTableSmartTagsMutation';
|
|
458
459
|
export * from './useProvisionUniqueConstraintMutation';
|
|
459
460
|
export * from './useProvisionFullTextSearchMutation';
|
|
460
461
|
export * from './useProvisionIndexMutation';
|
|
@@ -400,6 +400,9 @@ __exportStar(require("./useDeletePubkeySettingMutation"), exports);
|
|
|
400
400
|
__exportStar(require("./useCreateRateLimitsModuleMutation"), exports);
|
|
401
401
|
__exportStar(require("./useUpdateRateLimitsModuleMutation"), exports);
|
|
402
402
|
__exportStar(require("./useDeleteRateLimitsModuleMutation"), exports);
|
|
403
|
+
__exportStar(require("./useCreateUsageSnapshotMutation"), exports);
|
|
404
|
+
__exportStar(require("./useUpdateUsageSnapshotMutation"), exports);
|
|
405
|
+
__exportStar(require("./useDeleteUsageSnapshotMutation"), exports);
|
|
403
406
|
__exportStar(require("./useCreateAppMembershipDefaultMutation"), exports);
|
|
404
407
|
__exportStar(require("./useUpdateAppMembershipDefaultMutation"), exports);
|
|
405
408
|
__exportStar(require("./useDeleteAppMembershipDefaultMutation"), exports);
|
|
@@ -469,8 +472,6 @@ __exportStar(require("./useCopyTemplateToBlueprintMutation"), exports);
|
|
|
469
472
|
__exportStar(require("./useProvisionSpatialRelationMutation"), exports);
|
|
470
473
|
__exportStar(require("./useBootstrapUserMutation"), exports);
|
|
471
474
|
__exportStar(require("./useSetFieldOrderMutation"), exports);
|
|
472
|
-
__exportStar(require("./useAppendFieldSmartTagsMutation"), exports);
|
|
473
|
-
__exportStar(require("./useAppendTableSmartTagsMutation"), exports);
|
|
474
475
|
__exportStar(require("./useProvisionUniqueConstraintMutation"), exports);
|
|
475
476
|
__exportStar(require("./useProvisionFullTextSearchMutation"), exports);
|
|
476
477
|
__exportStar(require("./useProvisionIndexMutation"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns.
|
|
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 { UsageSnapshotSelect, UsageSnapshotWithRelations, CreateUsageSnapshotInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { UsageSnapshotSelect, UsageSnapshotWithRelations, CreateUsageSnapshotInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateUsageSnapshotMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateUsageSnapshotMutation<S extends UsageSnapshotSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & UsageSnapshotSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, UsageSnapshotSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createUsageSnapshot: {
|
|
28
|
+
usageSnapshot: InferSelectResult<UsageSnapshotWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateUsageSnapshotInput['usageSnapshot']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createUsageSnapshot: {
|
|
32
|
+
usageSnapshot: InferSelectResult<UsageSnapshotWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateUsageSnapshotInput['usageSnapshot']>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns.
|
|
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.useCreateUsageSnapshotMutation = useCreateUsageSnapshotMutation;
|
|
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 useCreateUsageSnapshotMutation(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.usageSnapshotMutationKeys.create(),
|
|
21
|
+
mutationFn: (data) => (0, client_1.getClient)()
|
|
22
|
+
.usageSnapshot.create({
|
|
23
|
+
data,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: () => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: query_keys_1.usageSnapshotKeys.lists(),
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
...mutationOptions,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns.
|
|
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 { UsageSnapshotSelect, UsageSnapshotWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { UsageSnapshotSelect, UsageSnapshotWithRelations } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useDeleteUsageSnapshotMutation({
|
|
16
|
+
* selection: { fields: { id: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-to-delete' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useDeleteUsageSnapshotMutation<S extends UsageSnapshotSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & UsageSnapshotSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, UsageSnapshotSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
deleteUsageSnapshot: {
|
|
28
|
+
usageSnapshot: InferSelectResult<UsageSnapshotWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
33
|
+
deleteUsageSnapshot: {
|
|
34
|
+
usageSnapshot: InferSelectResult<UsageSnapshotWithRelations, S>;
|
|
35
|
+
};
|
|
36
|
+
}, Error, {
|
|
37
|
+
id: string;
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns.
|
|
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.useDeleteUsageSnapshotMutation = useDeleteUsageSnapshotMutation;
|
|
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 useDeleteUsageSnapshotMutation(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.usageSnapshotMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id }) => (0, client_1.getClient)()
|
|
22
|
+
.usageSnapshot.delete({
|
|
23
|
+
where: {
|
|
24
|
+
id,
|
|
25
|
+
},
|
|
26
|
+
select: args.select,
|
|
27
|
+
})
|
|
28
|
+
.unwrap(),
|
|
29
|
+
onSuccess: (_, variables) => {
|
|
30
|
+
queryClient.removeQueries({
|
|
31
|
+
queryKey: query_keys_1.usageSnapshotKeys.detail(variables.id),
|
|
32
|
+
});
|
|
33
|
+
queryClient.invalidateQueries({
|
|
34
|
+
queryKey: query_keys_1.usageSnapshotKeys.lists(),
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
...mutationOptions,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns.
|
|
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 { UsageSnapshotSelect, UsageSnapshotWithRelations, UsageSnapshotPatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { UsageSnapshotSelect, UsageSnapshotWithRelations, UsageSnapshotPatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateUsageSnapshotMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', usageSnapshotPatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateUsageSnapshotMutation<S extends UsageSnapshotSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & UsageSnapshotSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, UsageSnapshotSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateUsageSnapshot: {
|
|
28
|
+
usageSnapshot: InferSelectResult<UsageSnapshotWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
usageSnapshotPatch: UsageSnapshotPatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateUsageSnapshot: {
|
|
35
|
+
usageSnapshot: InferSelectResult<UsageSnapshotWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
usageSnapshotPatch: UsageSnapshotPatch;
|
|
40
|
+
}>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns.
|
|
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.useUpdateUsageSnapshotMutation = useUpdateUsageSnapshotMutation;
|
|
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 useUpdateUsageSnapshotMutation(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.usageSnapshotMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id, usageSnapshotPatch, }) => (0, client_1.getClient)()
|
|
22
|
+
.usageSnapshot.update({
|
|
23
|
+
where: {
|
|
24
|
+
id,
|
|
25
|
+
},
|
|
26
|
+
data: usageSnapshotPatch,
|
|
27
|
+
select: args.select,
|
|
28
|
+
})
|
|
29
|
+
.unwrap(),
|
|
30
|
+
onSuccess: (_, variables) => {
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: query_keys_1.usageSnapshotKeys.detail(variables.id),
|
|
33
|
+
});
|
|
34
|
+
queryClient.invalidateQueries({
|
|
35
|
+
queryKey: query_keys_1.usageSnapshotKeys.lists(),
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
...mutationOptions,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
@@ -261,6 +261,8 @@ export * from './usePubkeySettingsQuery';
|
|
|
261
261
|
export * from './usePubkeySettingQuery';
|
|
262
262
|
export * from './useRateLimitsModulesQuery';
|
|
263
263
|
export * from './useRateLimitsModuleQuery';
|
|
264
|
+
export * from './useUsageSnapshotsQuery';
|
|
265
|
+
export * from './useUsageSnapshotQuery';
|
|
264
266
|
export * from './useAppMembershipDefaultsQuery';
|
|
265
267
|
export * from './useAppMembershipDefaultQuery';
|
|
266
268
|
export * from './useOrgMembershipDefaultsQuery';
|
|
@@ -277,6 +277,8 @@ __exportStar(require("./usePubkeySettingsQuery"), exports);
|
|
|
277
277
|
__exportStar(require("./usePubkeySettingQuery"), exports);
|
|
278
278
|
__exportStar(require("./useRateLimitsModulesQuery"), exports);
|
|
279
279
|
__exportStar(require("./useRateLimitsModuleQuery"), exports);
|
|
280
|
+
__exportStar(require("./useUsageSnapshotsQuery"), exports);
|
|
281
|
+
__exportStar(require("./useUsageSnapshotQuery"), exports);
|
|
280
282
|
__exportStar(require("./useAppMembershipDefaultsQuery"), exports);
|
|
281
283
|
__exportStar(require("./useAppMembershipDefaultQuery"), exports);
|
|
282
284
|
__exportStar(require("./useOrgMembershipDefaultsQuery"), exports);
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns.
|
|
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 { UsageSnapshotSelect, UsageSnapshotWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { UsageSnapshotSelect, UsageSnapshotWithRelations } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const usageSnapshotQueryKey: (id: string | number) => readonly ["usagesnapshot", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useUsageSnapshotQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useUsageSnapshotQuery<S extends UsageSnapshotSelect, TData = {
|
|
24
|
+
usageSnapshot: InferSelectResult<UsageSnapshotWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, UsageSnapshotSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
usageSnapshot: InferSelectResult<UsageSnapshotWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchUsageSnapshotQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchUsageSnapshotQuery<S extends UsageSnapshotSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, UsageSnapshotSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
usageSnapshot: InferSelectResult<UsageSnapshotWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Periodic snapshot of a single metric for a database. Collected by the snapshot_usage() cron job in constructive-limits. Each row records one metric measurement (e.g. reads, writes, storage_bytes) at a point in time, with optional dimensions for sub-metric breakdowns.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchUsageSnapshotQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchUsageSnapshotQuery<S extends UsageSnapshotSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, UsageSnapshotSelect>;
|
|
65
|
+
}): Promise<void>;
|