@constructive-io/react 0.10.16 → 0.10.18
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/esm/public/hooks/index.d.ts +1 -1
- package/esm/public/hooks/index.js +1 -1
- package/esm/public/hooks/invalidation.d.ts +24 -12
- package/esm/public/hooks/invalidation.js +65 -33
- package/esm/public/hooks/mutation-keys.d.ts +64 -30
- package/esm/public/hooks/mutation-keys.js +55 -23
- package/esm/public/hooks/mutations/index.d.ts +16 -5
- package/esm/public/hooks/mutations/index.js +16 -5
- package/esm/public/hooks/mutations/useCreateBlueprintConstructionMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateBlueprintConstructionMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateBlueprintMutation.d.ts +2 -2
- package/esm/public/hooks/mutations/useCreateBlueprintMutation.js +1 -1
- package/esm/public/hooks/mutations/useCreateSecureTableProvisionMutation.d.ts +2 -2
- package/esm/public/hooks/mutations/useCreateSecureTableProvisionMutation.js +1 -1
- package/esm/public/hooks/mutations/useCreateStorageModuleMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateStorageModuleMutation.js +31 -0
- package/esm/public/hooks/mutations/useDeleteBlueprintConstructionMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteBlueprintConstructionMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteBlueprintMutation.d.ts +2 -2
- package/esm/public/hooks/mutations/useDeleteBlueprintMutation.js +1 -1
- package/esm/public/hooks/mutations/useDeleteSecureTableProvisionMutation.d.ts +2 -2
- package/esm/public/hooks/mutations/useDeleteSecureTableProvisionMutation.js +1 -1
- package/esm/public/hooks/mutations/useDeleteStorageModuleMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteStorageModuleMutation.js +36 -0
- package/esm/public/hooks/mutations/useProvisionFullTextSearchMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useProvisionFullTextSearchMutation.js +23 -0
- package/esm/public/hooks/mutations/useProvisionIndexMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useProvisionIndexMutation.js +23 -0
- package/esm/public/hooks/mutations/useProvisionRelationMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useProvisionRelationMutation.js +23 -0
- package/esm/public/hooks/mutations/useProvisionTableMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useProvisionTableMutation.js +23 -0
- package/esm/public/hooks/mutations/useProvisionUniqueConstraintMutation.d.ts +20 -0
- package/esm/public/hooks/mutations/useProvisionUniqueConstraintMutation.js +23 -0
- package/esm/public/hooks/mutations/useUpdateBlueprintConstructionMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateBlueprintConstructionMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateBlueprintMutation.d.ts +2 -2
- package/esm/public/hooks/mutations/useUpdateBlueprintMutation.js +1 -1
- package/esm/public/hooks/mutations/useUpdateSecureTableProvisionMutation.d.ts +2 -2
- package/esm/public/hooks/mutations/useUpdateSecureTableProvisionMutation.js +1 -1
- package/esm/public/hooks/mutations/useUpdateStorageModuleMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateStorageModuleMutation.js +37 -0
- package/esm/public/hooks/queries/index.d.ts +8 -3
- package/esm/public/hooks/queries/index.js +8 -3
- package/esm/public/hooks/queries/useBlueprintConstructionQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useBlueprintConstructionQuery.js +47 -0
- package/esm/public/hooks/queries/useBlueprintConstructionsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useBlueprintConstructionsQuery.js +32 -0
- package/esm/public/hooks/queries/useBlueprintQuery.d.ts +4 -4
- package/esm/public/hooks/queries/useBlueprintQuery.js +1 -1
- package/esm/public/hooks/queries/useBlueprintsQuery.d.ts +4 -4
- package/esm/public/hooks/queries/useBlueprintsQuery.js +1 -1
- package/esm/public/hooks/queries/useResolveBlueprintTableQuery.d.ts +53 -0
- package/esm/public/hooks/queries/useResolveBlueprintTableQuery.js +47 -0
- package/esm/public/hooks/queries/useSecureTableProvisionQuery.d.ts +4 -4
- package/esm/public/hooks/queries/useSecureTableProvisionQuery.js +1 -1
- package/esm/public/hooks/queries/useSecureTableProvisionsQuery.d.ts +4 -4
- package/esm/public/hooks/queries/useSecureTableProvisionsQuery.js +1 -1
- package/esm/public/hooks/queries/useStorageModuleQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useStorageModuleQuery.js +47 -0
- package/esm/public/hooks/queries/useStorageModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useStorageModulesQuery.js +32 -0
- package/esm/public/hooks/query-keys.d.ts +58 -28
- package/esm/public/hooks/query-keys.js +33 -16
- package/esm/public/orm/index.d.ts +53 -19
- package/esm/public/orm/index.js +8 -4
- package/esm/public/orm/input-types.d.ts +886 -249
- package/esm/public/orm/input-types.js +5 -0
- package/esm/public/orm/models/blueprintConstruction.d.ts +56 -0
- package/esm/public/orm/models/blueprintConstruction.js +96 -0
- package/esm/public/orm/models/index.d.ts +4 -2
- package/esm/public/orm/models/index.js +4 -2
- package/esm/public/orm/models/storageModule.d.ts +56 -0
- package/esm/public/orm/models/storageModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +86 -26
- package/esm/public/orm/mutation/index.js +96 -36
- package/esm/public/orm/query/index.d.ts +16 -0
- package/esm/public/orm/query/index.js +28 -0
- package/esm/public/schema-types.d.ts +990 -645
- package/esm/public/types.d.ts +42 -18
- 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 +24 -12
- package/public/hooks/invalidation.js +64 -32
- package/public/hooks/mutation-keys.d.ts +64 -30
- package/public/hooks/mutation-keys.js +58 -26
- package/public/hooks/mutations/index.d.ts +16 -5
- package/public/hooks/mutations/index.js +16 -5
- package/public/hooks/mutations/useCreateBlueprintConstructionMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateBlueprintConstructionMutation.js +34 -0
- package/public/hooks/mutations/useCreateBlueprintMutation.d.ts +2 -2
- package/public/hooks/mutations/useCreateBlueprintMutation.js +1 -1
- package/public/hooks/mutations/useCreateSecureTableProvisionMutation.d.ts +2 -2
- package/public/hooks/mutations/useCreateSecureTableProvisionMutation.js +1 -1
- package/public/hooks/mutations/useCreateStorageModuleMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateStorageModuleMutation.js +34 -0
- package/public/hooks/mutations/useDeleteBlueprintConstructionMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteBlueprintConstructionMutation.js +39 -0
- package/public/hooks/mutations/useDeleteBlueprintMutation.d.ts +2 -2
- package/public/hooks/mutations/useDeleteBlueprintMutation.js +1 -1
- package/public/hooks/mutations/useDeleteSecureTableProvisionMutation.d.ts +2 -2
- package/public/hooks/mutations/useDeleteSecureTableProvisionMutation.js +1 -1
- package/public/hooks/mutations/useDeleteStorageModuleMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteStorageModuleMutation.js +39 -0
- package/public/hooks/mutations/useProvisionFullTextSearchMutation.d.ts +20 -0
- package/public/hooks/mutations/useProvisionFullTextSearchMutation.js +26 -0
- package/public/hooks/mutations/useProvisionIndexMutation.d.ts +20 -0
- package/public/hooks/mutations/useProvisionIndexMutation.js +26 -0
- package/public/hooks/mutations/useProvisionRelationMutation.d.ts +20 -0
- package/public/hooks/mutations/useProvisionRelationMutation.js +26 -0
- package/public/hooks/mutations/useProvisionTableMutation.d.ts +20 -0
- package/public/hooks/mutations/useProvisionTableMutation.js +26 -0
- package/public/hooks/mutations/useProvisionUniqueConstraintMutation.d.ts +20 -0
- package/public/hooks/mutations/useProvisionUniqueConstraintMutation.js +26 -0
- package/public/hooks/mutations/useUpdateBlueprintConstructionMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateBlueprintConstructionMutation.js +40 -0
- package/public/hooks/mutations/useUpdateBlueprintMutation.d.ts +2 -2
- package/public/hooks/mutations/useUpdateBlueprintMutation.js +1 -1
- package/public/hooks/mutations/useUpdateSecureTableProvisionMutation.d.ts +2 -2
- package/public/hooks/mutations/useUpdateSecureTableProvisionMutation.js +1 -1
- package/public/hooks/mutations/useUpdateStorageModuleMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateStorageModuleMutation.js +40 -0
- package/public/hooks/queries/index.d.ts +8 -3
- package/public/hooks/queries/index.js +8 -3
- package/public/hooks/queries/useBlueprintConstructionQuery.d.ts +65 -0
- package/public/hooks/queries/useBlueprintConstructionQuery.js +53 -0
- package/public/hooks/queries/useBlueprintConstructionsQuery.d.ts +69 -0
- package/public/hooks/queries/useBlueprintConstructionsQuery.js +38 -0
- package/public/hooks/queries/useBlueprintQuery.d.ts +4 -4
- package/public/hooks/queries/useBlueprintQuery.js +1 -1
- package/public/hooks/queries/useBlueprintsQuery.d.ts +4 -4
- package/public/hooks/queries/useBlueprintsQuery.js +1 -1
- package/public/hooks/queries/useResolveBlueprintTableQuery.d.ts +53 -0
- package/public/hooks/queries/useResolveBlueprintTableQuery.js +53 -0
- package/public/hooks/queries/useSecureTableProvisionQuery.d.ts +4 -4
- package/public/hooks/queries/useSecureTableProvisionQuery.js +1 -1
- package/public/hooks/queries/useSecureTableProvisionsQuery.d.ts +4 -4
- package/public/hooks/queries/useSecureTableProvisionsQuery.js +1 -1
- package/public/hooks/queries/useStorageModuleQuery.d.ts +65 -0
- package/public/hooks/queries/useStorageModuleQuery.js +53 -0
- package/public/hooks/queries/useStorageModulesQuery.d.ts +69 -0
- package/public/hooks/queries/useStorageModulesQuery.js +38 -0
- package/public/hooks/query-keys.d.ts +58 -28
- package/public/hooks/query-keys.js +36 -19
- package/public/orm/index.d.ts +53 -19
- package/public/orm/index.js +8 -4
- package/public/orm/input-types.d.ts +886 -249
- package/public/orm/input-types.js +5 -0
- package/public/orm/models/blueprintConstruction.d.ts +56 -0
- package/public/orm/models/blueprintConstruction.js +100 -0
- package/public/orm/models/index.d.ts +4 -2
- package/public/orm/models/index.js +11 -7
- package/public/orm/models/storageModule.d.ts +56 -0
- package/public/orm/models/storageModule.js +100 -0
- package/public/orm/mutation/index.d.ts +86 -26
- package/public/orm/mutation/index.js +96 -36
- package/public/orm/query/index.d.ts +16 -0
- package/public/orm/query/index.js +28 -0
- package/public/schema-types.d.ts +990 -645
- package/public/types.d.ts +42 -18
package/esm/public/types.d.ts
CHANGED
|
@@ -11,10 +11,6 @@ export type ConstructiveInternalTypeImage = unknown;
|
|
|
11
11
|
export type ConstructiveInternalTypeOrigin = unknown;
|
|
12
12
|
export type ConstructiveInternalTypeUpload = unknown;
|
|
13
13
|
export type ConstructiveInternalTypeUrl = unknown;
|
|
14
|
-
export interface GetAllRecord {
|
|
15
|
-
path: string[] | null;
|
|
16
|
-
data: unknown | null;
|
|
17
|
-
}
|
|
18
14
|
export interface OrgGetManagersRecord {
|
|
19
15
|
userId: string | null;
|
|
20
16
|
depth: number | null;
|
|
@@ -23,6 +19,10 @@ export interface OrgGetSubordinatesRecord {
|
|
|
23
19
|
userId: string | null;
|
|
24
20
|
depth: number | null;
|
|
25
21
|
}
|
|
22
|
+
export interface GetAllRecord {
|
|
23
|
+
path: string[] | null;
|
|
24
|
+
data: unknown | null;
|
|
25
|
+
}
|
|
26
26
|
export interface Object {
|
|
27
27
|
hashUuid: string | null;
|
|
28
28
|
id: string | null;
|
|
@@ -352,9 +352,8 @@ export interface SecureTableProvision {
|
|
|
352
352
|
schemaId: string | null;
|
|
353
353
|
tableId: string | null;
|
|
354
354
|
tableName: string | null;
|
|
355
|
-
|
|
355
|
+
nodes: unknown | null;
|
|
356
356
|
useRls: boolean | null;
|
|
357
|
-
nodeData: unknown | null;
|
|
358
357
|
fields: unknown[] | null;
|
|
359
358
|
grantRoles: string[] | null;
|
|
360
359
|
grantPrivileges: unknown[] | null;
|
|
@@ -384,8 +383,7 @@ export interface RelationProvision {
|
|
|
384
383
|
useCompositeKey: boolean | null;
|
|
385
384
|
createIndex: boolean | null;
|
|
386
385
|
exposeInApi: boolean | null;
|
|
387
|
-
|
|
388
|
-
nodeData: unknown | null;
|
|
386
|
+
nodes: unknown | null;
|
|
389
387
|
grantRoles: string[] | null;
|
|
390
388
|
grantPrivileges: unknown[] | null;
|
|
391
389
|
policyType: string | null;
|
|
@@ -814,11 +812,6 @@ export interface Blueprint {
|
|
|
814
812
|
description: string | null;
|
|
815
813
|
definition: unknown | null;
|
|
816
814
|
templateId: string | null;
|
|
817
|
-
status: string | null;
|
|
818
|
-
constructedAt: string | null;
|
|
819
|
-
errorDetails: string | null;
|
|
820
|
-
refMap: unknown | null;
|
|
821
|
-
constructedDefinition: unknown | null;
|
|
822
815
|
definitionHash: string | null;
|
|
823
816
|
tableHashes: unknown | null;
|
|
824
817
|
createdAt: string | null;
|
|
@@ -846,6 +839,37 @@ export interface BlueprintTemplate {
|
|
|
846
839
|
createdAt: string | null;
|
|
847
840
|
updatedAt: string | null;
|
|
848
841
|
}
|
|
842
|
+
export interface BlueprintConstruction {
|
|
843
|
+
id: string | null;
|
|
844
|
+
blueprintId: string | null;
|
|
845
|
+
databaseId: string | null;
|
|
846
|
+
schemaId: string | null;
|
|
847
|
+
status: string | null;
|
|
848
|
+
errorDetails: string | null;
|
|
849
|
+
tableMap: unknown | null;
|
|
850
|
+
constructedDefinition: unknown | null;
|
|
851
|
+
constructedAt: string | null;
|
|
852
|
+
createdAt: string | null;
|
|
853
|
+
updatedAt: string | null;
|
|
854
|
+
}
|
|
855
|
+
export interface StorageModule {
|
|
856
|
+
id: string | null;
|
|
857
|
+
databaseId: string | null;
|
|
858
|
+
schemaId: string | null;
|
|
859
|
+
privateSchemaId: string | null;
|
|
860
|
+
bucketsTableId: string | null;
|
|
861
|
+
filesTableId: string | null;
|
|
862
|
+
uploadRequestsTableId: string | null;
|
|
863
|
+
bucketsTableName: string | null;
|
|
864
|
+
filesTableName: string | null;
|
|
865
|
+
uploadRequestsTableName: string | null;
|
|
866
|
+
entityTableId: string | null;
|
|
867
|
+
uploadUrlExpirySeconds: number | null;
|
|
868
|
+
downloadUrlExpirySeconds: number | null;
|
|
869
|
+
defaultMaxFileSize: string | null;
|
|
870
|
+
maxFilenameLength: number | null;
|
|
871
|
+
cacheTtlSeconds: number | null;
|
|
872
|
+
}
|
|
849
873
|
export interface DatabaseProvisionModule {
|
|
850
874
|
id: string | null;
|
|
851
875
|
databaseName: string | null;
|
|
@@ -1122,11 +1146,6 @@ export interface RoleType {
|
|
|
1122
1146
|
id: number | null;
|
|
1123
1147
|
name: string | null;
|
|
1124
1148
|
}
|
|
1125
|
-
export interface MigrateFile {
|
|
1126
|
-
id: string | null;
|
|
1127
|
-
databaseId: string | null;
|
|
1128
|
-
upload: ConstructiveInternalTypeUpload | null;
|
|
1129
|
-
}
|
|
1130
1149
|
export interface AppLimitDefault {
|
|
1131
1150
|
id: string | null;
|
|
1132
1151
|
name: string | null;
|
|
@@ -1137,6 +1156,11 @@ export interface OrgLimitDefault {
|
|
|
1137
1156
|
name: string | null;
|
|
1138
1157
|
max: number | null;
|
|
1139
1158
|
}
|
|
1159
|
+
export interface MigrateFile {
|
|
1160
|
+
id: string | null;
|
|
1161
|
+
databaseId: string | null;
|
|
1162
|
+
upload: ConstructiveInternalTypeUpload | null;
|
|
1163
|
+
}
|
|
1140
1164
|
export interface MembershipType {
|
|
1141
1165
|
id: number | null;
|
|
1142
1166
|
name: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/react",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.18",
|
|
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",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"react": "^18.0.0 || ^19.0.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@constructive-io/graphql-codegen": "^4.28.
|
|
54
|
+
"@constructive-io/graphql-codegen": "^4.28.2",
|
|
55
55
|
"@types/node": "^22.19.11",
|
|
56
56
|
"@types/react": "^19.2.14",
|
|
57
57
|
"makage": "^0.3.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"tsx": "^4.19.0",
|
|
60
60
|
"typescript": "^5.9.3"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "f1a0d4315e0f23ba6b8299a7dc2ddceab465d24d"
|
|
63
63
|
}
|
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:
|
|
5
|
+
* Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, GetAllRecord, Object, AppPermission, OrgPermission, AppLevelRequirement, Database, Schema, Table, CheckConstraint, Field, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, TableTemplateModule, SecureTableProvision, RelationProvision, SchemaGrant, DefaultPrivilege, Enum, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, TriggerFunction, DatabaseTransfer, Api, Site, App, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, EncryptedSecretsModule, InvitesModule, LevelsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, SecretsModule, SessionsModule, UserAuthModule, UsersModule, Blueprint, BlueprintTemplate, BlueprintConstruction, StorageModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, OrgPermissionDefault, AppLimit, OrgLimit, AppStep, AppAchievement, AppLevel, Email, PhoneNumber, CryptoAddress, ConnectedAccount, Invite, ClaimedInvite, OrgInvite, OrgClaimedInvite, AuditLog, Ref, Store, AppPermissionDefault, RoleType, AppLimitDefault, OrgLimitDefault, MigrateFile, MembershipType, Commit, AppMembershipDefault, RlsModule, NodeTypeRegistry, OrgMembershipDefault, SqlAction, User, AstMigration, AppMembership, 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:
|
|
21
|
+
* Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, GetAllRecord, Object, AppPermission, OrgPermission, AppLevelRequirement, Database, Schema, Table, CheckConstraint, Field, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, TableTemplateModule, SecureTableProvision, RelationProvision, SchemaGrant, DefaultPrivilege, Enum, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, TriggerFunction, DatabaseTransfer, Api, Site, App, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, EncryptedSecretsModule, InvitesModule, LevelsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, SecretsModule, SessionsModule, UserAuthModule, UsersModule, Blueprint, BlueprintTemplate, BlueprintConstruction, StorageModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, OrgPermissionDefault, AppLimit, OrgLimit, AppStep, AppAchievement, AppLevel, Email, PhoneNumber, CryptoAddress, ConnectedAccount, Invite, ClaimedInvite, OrgInvite, OrgClaimedInvite, AuditLog, Ref, Store, AppPermissionDefault, RoleType, AppLimitDefault, OrgLimitDefault, MigrateFile, MembershipType, Commit, AppMembershipDefault, RlsModule, NodeTypeRegistry, OrgMembershipDefault, SqlAction, User, AstMigration, AppMembership, HierarchyModule
|
|
22
22
|
*
|
|
23
23
|
* Usage:
|
|
24
24
|
*
|
|
@@ -24,11 +24,6 @@ import type { QueryClient } from '@tanstack/react-query';
|
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
26
|
export declare const invalidate: {
|
|
27
|
-
/** Invalidate getAllRecord queries */ readonly getAllRecord: {
|
|
28
|
-
/** Invalidate all getAllRecord queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
29
|
-
/** Invalidate getAllRecord list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
30
|
-
/** Invalidate a specific getAllRecord */ readonly detail: (queryClient: QueryClient, id: string | number) => Promise<void>;
|
|
31
|
-
};
|
|
32
27
|
/** Invalidate orgGetManagersRecord queries */ readonly orgGetManagersRecord: {
|
|
33
28
|
/** Invalidate all orgGetManagersRecord queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
34
29
|
/** Invalidate orgGetManagersRecord list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
@@ -39,6 +34,11 @@ export declare const invalidate: {
|
|
|
39
34
|
/** Invalidate orgGetSubordinatesRecord list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
40
35
|
/** Invalidate a specific orgGetSubordinatesRecord */ readonly detail: (queryClient: QueryClient, id: string | number) => Promise<void>;
|
|
41
36
|
};
|
|
37
|
+
/** Invalidate getAllRecord queries */ readonly getAllRecord: {
|
|
38
|
+
/** Invalidate all getAllRecord queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
39
|
+
/** Invalidate getAllRecord list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
40
|
+
/** Invalidate a specific getAllRecord */ readonly detail: (queryClient: QueryClient, id: string | number) => Promise<void>;
|
|
41
|
+
};
|
|
42
42
|
/** Invalidate object queries */ readonly object: {
|
|
43
43
|
/** Invalidate all object queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
44
44
|
/** Invalidate object list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
@@ -339,6 +339,16 @@ export declare const invalidate: {
|
|
|
339
339
|
/** Invalidate blueprintTemplate list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
340
340
|
/** Invalidate a specific blueprintTemplate */ readonly detail: (queryClient: QueryClient, id: string | number) => Promise<void>;
|
|
341
341
|
};
|
|
342
|
+
/** Invalidate blueprintConstruction queries */ readonly blueprintConstruction: {
|
|
343
|
+
/** Invalidate all blueprintConstruction queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
344
|
+
/** Invalidate blueprintConstruction list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
345
|
+
/** Invalidate a specific blueprintConstruction */ readonly detail: (queryClient: QueryClient, id: string | number) => Promise<void>;
|
|
346
|
+
};
|
|
347
|
+
/** Invalidate storageModule queries */ readonly storageModule: {
|
|
348
|
+
/** Invalidate all storageModule queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
349
|
+
/** Invalidate storageModule list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
350
|
+
/** Invalidate a specific storageModule */ readonly detail: (queryClient: QueryClient, id: string | number) => Promise<void>;
|
|
351
|
+
};
|
|
342
352
|
/** Invalidate databaseProvisionModule queries */ readonly databaseProvisionModule: {
|
|
343
353
|
/** Invalidate all databaseProvisionModule queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
344
354
|
/** Invalidate databaseProvisionModule list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
@@ -489,11 +499,6 @@ export declare const invalidate: {
|
|
|
489
499
|
/** Invalidate roleType list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
490
500
|
/** Invalidate a specific roleType */ readonly detail: (queryClient: QueryClient, id: string | number) => Promise<void>;
|
|
491
501
|
};
|
|
492
|
-
/** Invalidate migrateFile queries */ readonly migrateFile: {
|
|
493
|
-
/** Invalidate all migrateFile queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
494
|
-
/** Invalidate migrateFile list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
495
|
-
/** Invalidate a specific migrateFile */ readonly detail: (queryClient: QueryClient, id: string | number) => Promise<void>;
|
|
496
|
-
};
|
|
497
502
|
/** Invalidate appLimitDefault queries */ readonly appLimitDefault: {
|
|
498
503
|
/** Invalidate all appLimitDefault queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
499
504
|
/** Invalidate appLimitDefault list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
@@ -504,6 +509,11 @@ export declare const invalidate: {
|
|
|
504
509
|
/** Invalidate orgLimitDefault list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
505
510
|
/** Invalidate a specific orgLimitDefault */ readonly detail: (queryClient: QueryClient, id: string | number) => Promise<void>;
|
|
506
511
|
};
|
|
512
|
+
/** Invalidate migrateFile queries */ readonly migrateFile: {
|
|
513
|
+
/** Invalidate all migrateFile queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
514
|
+
/** Invalidate migrateFile list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
515
|
+
/** Invalidate a specific migrateFile */ readonly detail: (queryClient: QueryClient, id: string | number) => Promise<void>;
|
|
516
|
+
};
|
|
507
517
|
/** Invalidate membershipType queries */ readonly membershipType: {
|
|
508
518
|
/** Invalidate all membershipType queries */ readonly all: (queryClient: QueryClient) => Promise<void>;
|
|
509
519
|
/** Invalidate membershipType list queries */ readonly lists: (queryClient: QueryClient) => Promise<void>;
|
|
@@ -572,9 +582,9 @@ export declare const invalidate: {
|
|
|
572
582
|
* instead of just invalidating (which would trigger a refetch).
|
|
573
583
|
*/
|
|
574
584
|
export declare const remove: {
|
|
575
|
-
/** Remove getAllRecord from cache */ readonly getAllRecord: (queryClient: QueryClient, id: string | number) => void;
|
|
576
585
|
/** Remove orgGetManagersRecord from cache */ readonly orgGetManagersRecord: (queryClient: QueryClient, id: string | number) => void;
|
|
577
586
|
/** Remove orgGetSubordinatesRecord from cache */ readonly orgGetSubordinatesRecord: (queryClient: QueryClient, id: string | number) => void;
|
|
587
|
+
/** Remove getAllRecord from cache */ readonly getAllRecord: (queryClient: QueryClient, id: string | number) => void;
|
|
578
588
|
/** Remove object from cache */ readonly object: (queryClient: QueryClient, id: string | number) => void;
|
|
579
589
|
/** Remove appPermission from cache */ readonly appPermission: (queryClient: QueryClient, id: string | number) => void;
|
|
580
590
|
/** Remove orgPermission from cache */ readonly orgPermission: (queryClient: QueryClient, id: string | number) => void;
|
|
@@ -635,6 +645,8 @@ export declare const remove: {
|
|
|
635
645
|
/** Remove usersModule from cache */ readonly usersModule: (queryClient: QueryClient, id: string | number) => void;
|
|
636
646
|
/** Remove blueprint from cache */ readonly blueprint: (queryClient: QueryClient, id: string | number) => void;
|
|
637
647
|
/** Remove blueprintTemplate from cache */ readonly blueprintTemplate: (queryClient: QueryClient, id: string | number) => void;
|
|
648
|
+
/** Remove blueprintConstruction from cache */ readonly blueprintConstruction: (queryClient: QueryClient, id: string | number) => void;
|
|
649
|
+
/** Remove storageModule from cache */ readonly storageModule: (queryClient: QueryClient, id: string | number) => void;
|
|
638
650
|
/** Remove databaseProvisionModule from cache */ readonly databaseProvisionModule: (queryClient: QueryClient, id: string | number) => void;
|
|
639
651
|
/** Remove appAdminGrant from cache */ readonly appAdminGrant: (queryClient: QueryClient, id: string | number) => void;
|
|
640
652
|
/** Remove appOwnerGrant from cache */ readonly appOwnerGrant: (queryClient: QueryClient, id: string | number) => void;
|
|
@@ -665,9 +677,9 @@ export declare const remove: {
|
|
|
665
677
|
/** Remove store from cache */ readonly store: (queryClient: QueryClient, id: string | number) => void;
|
|
666
678
|
/** Remove appPermissionDefault from cache */ readonly appPermissionDefault: (queryClient: QueryClient, id: string | number) => void;
|
|
667
679
|
/** Remove roleType from cache */ readonly roleType: (queryClient: QueryClient, id: string | number) => void;
|
|
668
|
-
/** Remove migrateFile from cache */ readonly migrateFile: (queryClient: QueryClient, id: string | number) => void;
|
|
669
680
|
/** Remove appLimitDefault from cache */ readonly appLimitDefault: (queryClient: QueryClient, id: string | number) => void;
|
|
670
681
|
/** Remove orgLimitDefault from cache */ readonly orgLimitDefault: (queryClient: QueryClient, id: string | number) => void;
|
|
682
|
+
/** Remove migrateFile from cache */ readonly migrateFile: (queryClient: QueryClient, id: string | number) => void;
|
|
671
683
|
/** Remove membershipType from cache */ readonly membershipType: (queryClient: QueryClient, id: string | number) => void;
|
|
672
684
|
/** Remove commit from cache */ readonly commit: (queryClient: QueryClient, id: string | number) => void;
|
|
673
685
|
/** Remove appMembershipDefault from cache */ readonly appMembershipDefault: (queryClient: QueryClient, id: string | number) => void;
|
|
@@ -27,17 +27,6 @@ const query_keys_1 = require("./query-keys");
|
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
29
|
exports.invalidate = {
|
|
30
|
-
/** Invalidate getAllRecord queries */ getAllRecord: {
|
|
31
|
-
/** Invalidate all getAllRecord queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
32
|
-
queryKey: query_keys_1.getAllRecordKeys.all,
|
|
33
|
-
}),
|
|
34
|
-
/** Invalidate getAllRecord list queries */ lists: (queryClient) => queryClient.invalidateQueries({
|
|
35
|
-
queryKey: query_keys_1.getAllRecordKeys.lists(),
|
|
36
|
-
}),
|
|
37
|
-
/** Invalidate a specific getAllRecord */ detail: (queryClient, id) => queryClient.invalidateQueries({
|
|
38
|
-
queryKey: query_keys_1.getAllRecordKeys.detail(id),
|
|
39
|
-
}),
|
|
40
|
-
},
|
|
41
30
|
/** Invalidate orgGetManagersRecord queries */ orgGetManagersRecord: {
|
|
42
31
|
/** Invalidate all orgGetManagersRecord queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
43
32
|
queryKey: query_keys_1.orgGetManagersRecordKeys.all,
|
|
@@ -60,6 +49,17 @@ exports.invalidate = {
|
|
|
60
49
|
queryKey: query_keys_1.orgGetSubordinatesRecordKeys.detail(id),
|
|
61
50
|
}),
|
|
62
51
|
},
|
|
52
|
+
/** Invalidate getAllRecord queries */ getAllRecord: {
|
|
53
|
+
/** Invalidate all getAllRecord queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
54
|
+
queryKey: query_keys_1.getAllRecordKeys.all,
|
|
55
|
+
}),
|
|
56
|
+
/** Invalidate getAllRecord list queries */ lists: (queryClient) => queryClient.invalidateQueries({
|
|
57
|
+
queryKey: query_keys_1.getAllRecordKeys.lists(),
|
|
58
|
+
}),
|
|
59
|
+
/** Invalidate a specific getAllRecord */ detail: (queryClient, id) => queryClient.invalidateQueries({
|
|
60
|
+
queryKey: query_keys_1.getAllRecordKeys.detail(id),
|
|
61
|
+
}),
|
|
62
|
+
},
|
|
63
63
|
/** Invalidate object queries */ object: {
|
|
64
64
|
/** Invalidate all object queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
65
65
|
queryKey: query_keys_1.objectKeys.all,
|
|
@@ -720,6 +720,28 @@ exports.invalidate = {
|
|
|
720
720
|
queryKey: query_keys_1.blueprintTemplateKeys.detail(id),
|
|
721
721
|
}),
|
|
722
722
|
},
|
|
723
|
+
/** Invalidate blueprintConstruction queries */ blueprintConstruction: {
|
|
724
|
+
/** Invalidate all blueprintConstruction queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
725
|
+
queryKey: query_keys_1.blueprintConstructionKeys.all,
|
|
726
|
+
}),
|
|
727
|
+
/** Invalidate blueprintConstruction list queries */ lists: (queryClient) => queryClient.invalidateQueries({
|
|
728
|
+
queryKey: query_keys_1.blueprintConstructionKeys.lists(),
|
|
729
|
+
}),
|
|
730
|
+
/** Invalidate a specific blueprintConstruction */ detail: (queryClient, id) => queryClient.invalidateQueries({
|
|
731
|
+
queryKey: query_keys_1.blueprintConstructionKeys.detail(id),
|
|
732
|
+
}),
|
|
733
|
+
},
|
|
734
|
+
/** Invalidate storageModule queries */ storageModule: {
|
|
735
|
+
/** Invalidate all storageModule queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
736
|
+
queryKey: query_keys_1.storageModuleKeys.all,
|
|
737
|
+
}),
|
|
738
|
+
/** Invalidate storageModule list queries */ lists: (queryClient) => queryClient.invalidateQueries({
|
|
739
|
+
queryKey: query_keys_1.storageModuleKeys.lists(),
|
|
740
|
+
}),
|
|
741
|
+
/** Invalidate a specific storageModule */ detail: (queryClient, id) => queryClient.invalidateQueries({
|
|
742
|
+
queryKey: query_keys_1.storageModuleKeys.detail(id),
|
|
743
|
+
}),
|
|
744
|
+
},
|
|
723
745
|
/** Invalidate databaseProvisionModule queries */ databaseProvisionModule: {
|
|
724
746
|
/** Invalidate all databaseProvisionModule queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
725
747
|
queryKey: query_keys_1.databaseProvisionModuleKeys.all,
|
|
@@ -1050,17 +1072,6 @@ exports.invalidate = {
|
|
|
1050
1072
|
queryKey: query_keys_1.roleTypeKeys.detail(id),
|
|
1051
1073
|
}),
|
|
1052
1074
|
},
|
|
1053
|
-
/** Invalidate migrateFile queries */ migrateFile: {
|
|
1054
|
-
/** Invalidate all migrateFile queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
1055
|
-
queryKey: query_keys_1.migrateFileKeys.all,
|
|
1056
|
-
}),
|
|
1057
|
-
/** Invalidate migrateFile list queries */ lists: (queryClient) => queryClient.invalidateQueries({
|
|
1058
|
-
queryKey: query_keys_1.migrateFileKeys.lists(),
|
|
1059
|
-
}),
|
|
1060
|
-
/** Invalidate a specific migrateFile */ detail: (queryClient, id) => queryClient.invalidateQueries({
|
|
1061
|
-
queryKey: query_keys_1.migrateFileKeys.detail(id),
|
|
1062
|
-
}),
|
|
1063
|
-
},
|
|
1064
1075
|
/** Invalidate appLimitDefault queries */ appLimitDefault: {
|
|
1065
1076
|
/** Invalidate all appLimitDefault queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
1066
1077
|
queryKey: query_keys_1.appLimitDefaultKeys.all,
|
|
@@ -1083,6 +1094,17 @@ exports.invalidate = {
|
|
|
1083
1094
|
queryKey: query_keys_1.orgLimitDefaultKeys.detail(id),
|
|
1084
1095
|
}),
|
|
1085
1096
|
},
|
|
1097
|
+
/** Invalidate migrateFile queries */ migrateFile: {
|
|
1098
|
+
/** Invalidate all migrateFile queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
1099
|
+
queryKey: query_keys_1.migrateFileKeys.all,
|
|
1100
|
+
}),
|
|
1101
|
+
/** Invalidate migrateFile list queries */ lists: (queryClient) => queryClient.invalidateQueries({
|
|
1102
|
+
queryKey: query_keys_1.migrateFileKeys.lists(),
|
|
1103
|
+
}),
|
|
1104
|
+
/** Invalidate a specific migrateFile */ detail: (queryClient, id) => queryClient.invalidateQueries({
|
|
1105
|
+
queryKey: query_keys_1.migrateFileKeys.detail(id),
|
|
1106
|
+
}),
|
|
1107
|
+
},
|
|
1086
1108
|
/** Invalidate membershipType queries */ membershipType: {
|
|
1087
1109
|
/** Invalidate all membershipType queries */ all: (queryClient) => queryClient.invalidateQueries({
|
|
1088
1110
|
queryKey: query_keys_1.membershipTypeKeys.all,
|
|
@@ -1217,11 +1239,6 @@ exports.invalidate = {
|
|
|
1217
1239
|
* instead of just invalidating (which would trigger a refetch).
|
|
1218
1240
|
*/
|
|
1219
1241
|
exports.remove = {
|
|
1220
|
-
/** Remove getAllRecord from cache */ getAllRecord: (queryClient, id) => {
|
|
1221
|
-
queryClient.removeQueries({
|
|
1222
|
-
queryKey: query_keys_1.getAllRecordKeys.detail(id),
|
|
1223
|
-
});
|
|
1224
|
-
},
|
|
1225
1242
|
/** Remove orgGetManagersRecord from cache */ orgGetManagersRecord: (queryClient, id) => {
|
|
1226
1243
|
queryClient.removeQueries({
|
|
1227
1244
|
queryKey: query_keys_1.orgGetManagersRecordKeys.detail(id),
|
|
@@ -1232,6 +1249,11 @@ exports.remove = {
|
|
|
1232
1249
|
queryKey: query_keys_1.orgGetSubordinatesRecordKeys.detail(id),
|
|
1233
1250
|
});
|
|
1234
1251
|
},
|
|
1252
|
+
/** Remove getAllRecord from cache */ getAllRecord: (queryClient, id) => {
|
|
1253
|
+
queryClient.removeQueries({
|
|
1254
|
+
queryKey: query_keys_1.getAllRecordKeys.detail(id),
|
|
1255
|
+
});
|
|
1256
|
+
},
|
|
1235
1257
|
/** Remove object from cache */ object: (queryClient, id) => {
|
|
1236
1258
|
queryClient.removeQueries({
|
|
1237
1259
|
queryKey: query_keys_1.objectKeys.detail(id),
|
|
@@ -1532,6 +1554,16 @@ exports.remove = {
|
|
|
1532
1554
|
queryKey: query_keys_1.blueprintTemplateKeys.detail(id),
|
|
1533
1555
|
});
|
|
1534
1556
|
},
|
|
1557
|
+
/** Remove blueprintConstruction from cache */ blueprintConstruction: (queryClient, id) => {
|
|
1558
|
+
queryClient.removeQueries({
|
|
1559
|
+
queryKey: query_keys_1.blueprintConstructionKeys.detail(id),
|
|
1560
|
+
});
|
|
1561
|
+
},
|
|
1562
|
+
/** Remove storageModule from cache */ storageModule: (queryClient, id) => {
|
|
1563
|
+
queryClient.removeQueries({
|
|
1564
|
+
queryKey: query_keys_1.storageModuleKeys.detail(id),
|
|
1565
|
+
});
|
|
1566
|
+
},
|
|
1535
1567
|
/** Remove databaseProvisionModule from cache */ databaseProvisionModule: (queryClient, id) => {
|
|
1536
1568
|
queryClient.removeQueries({
|
|
1537
1569
|
queryKey: query_keys_1.databaseProvisionModuleKeys.detail(id),
|
|
@@ -1682,11 +1714,6 @@ exports.remove = {
|
|
|
1682
1714
|
queryKey: query_keys_1.roleTypeKeys.detail(id),
|
|
1683
1715
|
});
|
|
1684
1716
|
},
|
|
1685
|
-
/** Remove migrateFile from cache */ migrateFile: (queryClient, id) => {
|
|
1686
|
-
queryClient.removeQueries({
|
|
1687
|
-
queryKey: query_keys_1.migrateFileKeys.detail(id),
|
|
1688
|
-
});
|
|
1689
|
-
},
|
|
1690
1717
|
/** Remove appLimitDefault from cache */ appLimitDefault: (queryClient, id) => {
|
|
1691
1718
|
queryClient.removeQueries({
|
|
1692
1719
|
queryKey: query_keys_1.appLimitDefaultKeys.detail(id),
|
|
@@ -1697,6 +1724,11 @@ exports.remove = {
|
|
|
1697
1724
|
queryKey: query_keys_1.orgLimitDefaultKeys.detail(id),
|
|
1698
1725
|
});
|
|
1699
1726
|
},
|
|
1727
|
+
/** Remove migrateFile from cache */ migrateFile: (queryClient, id) => {
|
|
1728
|
+
queryClient.removeQueries({
|
|
1729
|
+
queryKey: query_keys_1.migrateFileKeys.detail(id),
|
|
1730
|
+
});
|
|
1731
|
+
},
|
|
1700
1732
|
/** Remove membershipType from cache */ membershipType: (queryClient, id) => {
|
|
1701
1733
|
queryClient.removeQueries({
|
|
1702
1734
|
queryKey: query_keys_1.membershipTypeKeys.detail(id),
|