@constructive-io/react 0.8.2 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/orm/input-types.d.ts +413 -7
- package/admin/orm/models/appAchievement.js +3 -1
- package/admin/orm/models/appAdminGrant.js +3 -1
- package/admin/orm/models/appGrant.js +3 -1
- package/admin/orm/models/appLevel.js +3 -1
- package/admin/orm/models/appLevelRequirement.js +3 -1
- package/admin/orm/models/appLimit.js +3 -1
- package/admin/orm/models/appLimitDefault.js +3 -1
- package/admin/orm/models/appMembership.js +3 -1
- package/admin/orm/models/appMembershipDefault.js +3 -1
- package/admin/orm/models/appOwnerGrant.js +3 -1
- package/admin/orm/models/appPermission.js +3 -1
- package/admin/orm/models/appPermissionDefault.js +3 -1
- package/admin/orm/models/appStep.js +3 -1
- package/admin/orm/models/claimedInvite.js +3 -1
- package/admin/orm/models/invite.js +3 -1
- package/admin/orm/models/membershipType.js +3 -1
- package/admin/orm/models/orgAdminGrant.js +3 -1
- package/admin/orm/models/orgChartEdge.js +3 -1
- package/admin/orm/models/orgChartEdgeGrant.js +3 -1
- package/admin/orm/models/orgClaimedInvite.js +3 -1
- package/admin/orm/models/orgGrant.js +3 -1
- package/admin/orm/models/orgInvite.js +3 -1
- package/admin/orm/models/orgLimit.js +3 -1
- package/admin/orm/models/orgLimitDefault.js +3 -1
- package/admin/orm/models/orgMember.js +3 -1
- package/admin/orm/models/orgMembership.js +3 -1
- package/admin/orm/models/orgMembershipDefault.js +3 -1
- package/admin/orm/models/orgOwnerGrant.js +3 -1
- package/admin/orm/models/orgPermission.js +3 -1
- package/admin/orm/models/orgPermissionDefault.js +3 -1
- package/admin/orm/query-builder.d.ts +5 -1
- package/admin/orm/query-builder.js +16 -4
- package/auth/orm/input-types.d.ts +911 -8
- package/auth/orm/models/auditLog.js +3 -1
- package/auth/orm/models/connectedAccount.js +3 -1
- package/auth/orm/models/cryptoAddress.js +3 -1
- package/auth/orm/models/email.js +3 -1
- package/auth/orm/models/phoneNumber.js +3 -1
- package/auth/orm/models/roleType.js +3 -1
- package/auth/orm/models/user.js +3 -1
- package/auth/orm/query-builder.d.ts +5 -1
- package/auth/orm/query-builder.js +16 -4
- package/esm/admin/orm/input-types.d.ts +413 -7
- package/esm/admin/orm/models/appAchievement.js +3 -1
- package/esm/admin/orm/models/appAdminGrant.js +3 -1
- package/esm/admin/orm/models/appGrant.js +3 -1
- package/esm/admin/orm/models/appLevel.js +3 -1
- package/esm/admin/orm/models/appLevelRequirement.js +3 -1
- package/esm/admin/orm/models/appLimit.js +3 -1
- package/esm/admin/orm/models/appLimitDefault.js +3 -1
- package/esm/admin/orm/models/appMembership.js +3 -1
- package/esm/admin/orm/models/appMembershipDefault.js +3 -1
- package/esm/admin/orm/models/appOwnerGrant.js +3 -1
- package/esm/admin/orm/models/appPermission.js +3 -1
- package/esm/admin/orm/models/appPermissionDefault.js +3 -1
- package/esm/admin/orm/models/appStep.js +3 -1
- package/esm/admin/orm/models/claimedInvite.js +3 -1
- package/esm/admin/orm/models/invite.js +3 -1
- package/esm/admin/orm/models/membershipType.js +3 -1
- package/esm/admin/orm/models/orgAdminGrant.js +3 -1
- package/esm/admin/orm/models/orgChartEdge.js +3 -1
- package/esm/admin/orm/models/orgChartEdgeGrant.js +3 -1
- package/esm/admin/orm/models/orgClaimedInvite.js +3 -1
- package/esm/admin/orm/models/orgGrant.js +3 -1
- package/esm/admin/orm/models/orgInvite.js +3 -1
- package/esm/admin/orm/models/orgLimit.js +3 -1
- package/esm/admin/orm/models/orgLimitDefault.js +3 -1
- package/esm/admin/orm/models/orgMember.js +3 -1
- package/esm/admin/orm/models/orgMembership.js +3 -1
- package/esm/admin/orm/models/orgMembershipDefault.js +3 -1
- package/esm/admin/orm/models/orgOwnerGrant.js +3 -1
- package/esm/admin/orm/models/orgPermission.js +3 -1
- package/esm/admin/orm/models/orgPermissionDefault.js +3 -1
- package/esm/admin/orm/query-builder.d.ts +5 -1
- package/esm/admin/orm/query-builder.js +15 -4
- package/esm/auth/orm/input-types.d.ts +911 -8
- package/esm/auth/orm/models/auditLog.js +3 -1
- package/esm/auth/orm/models/connectedAccount.js +3 -1
- package/esm/auth/orm/models/cryptoAddress.js +3 -1
- package/esm/auth/orm/models/email.js +3 -1
- package/esm/auth/orm/models/phoneNumber.js +3 -1
- package/esm/auth/orm/models/roleType.js +3 -1
- package/esm/auth/orm/models/user.js +3 -1
- package/esm/auth/orm/query-builder.d.ts +5 -1
- package/esm/auth/orm/query-builder.js +15 -4
- package/esm/objects/orm/input-types.d.ts +38 -1
- package/esm/objects/orm/models/commit.js +3 -1
- package/esm/objects/orm/models/object.js +3 -1
- package/esm/objects/orm/models/ref.js +3 -1
- package/esm/objects/orm/models/store.js +3 -1
- package/esm/objects/orm/query-builder.d.ts +5 -1
- package/esm/objects/orm/query-builder.js +15 -4
- package/esm/public/orm/input-types.d.ts +8520 -45
- package/esm/public/orm/models/api.js +3 -1
- package/esm/public/orm/models/apiModule.js +3 -1
- package/esm/public/orm/models/apiSchema.js +3 -1
- package/esm/public/orm/models/app.js +3 -1
- package/esm/public/orm/models/appAchievement.js +3 -1
- package/esm/public/orm/models/appAdminGrant.js +3 -1
- package/esm/public/orm/models/appGrant.js +3 -1
- package/esm/public/orm/models/appLevel.js +3 -1
- package/esm/public/orm/models/appLevelRequirement.js +3 -1
- package/esm/public/orm/models/appLimit.js +3 -1
- package/esm/public/orm/models/appLimitDefault.js +3 -1
- package/esm/public/orm/models/appMembership.js +3 -1
- package/esm/public/orm/models/appMembershipDefault.js +3 -1
- package/esm/public/orm/models/appOwnerGrant.js +3 -1
- package/esm/public/orm/models/appPermission.js +3 -1
- package/esm/public/orm/models/appPermissionDefault.js +3 -1
- package/esm/public/orm/models/appStep.js +3 -1
- package/esm/public/orm/models/auditLog.js +3 -1
- package/esm/public/orm/models/blueprint.js +3 -1
- package/esm/public/orm/models/blueprintTemplate.js +3 -1
- package/esm/public/orm/models/checkConstraint.js +3 -1
- package/esm/public/orm/models/claimedInvite.js +3 -1
- package/esm/public/orm/models/commit.js +3 -1
- package/esm/public/orm/models/connectedAccount.js +3 -1
- package/esm/public/orm/models/connectedAccountsModule.js +3 -1
- package/esm/public/orm/models/cryptoAddress.js +3 -1
- package/esm/public/orm/models/cryptoAddressesModule.js +3 -1
- package/esm/public/orm/models/cryptoAuthModule.js +3 -1
- package/esm/public/orm/models/database.js +3 -1
- package/esm/public/orm/models/databaseProvisionModule.js +3 -1
- package/esm/public/orm/models/databaseTransfer.js +3 -1
- package/esm/public/orm/models/defaultIdsModule.js +3 -1
- package/esm/public/orm/models/defaultPrivilege.js +3 -1
- package/esm/public/orm/models/denormalizedTableField.js +3 -1
- package/esm/public/orm/models/domain.js +3 -1
- package/esm/public/orm/models/email.js +3 -1
- package/esm/public/orm/models/emailsModule.js +3 -1
- package/esm/public/orm/models/embeddingChunk.js +3 -1
- package/esm/public/orm/models/encryptedSecretsModule.js +3 -1
- package/esm/public/orm/models/enum.js +3 -1
- package/esm/public/orm/models/field.js +3 -1
- package/esm/public/orm/models/fieldModule.js +3 -1
- package/esm/public/orm/models/foreignKeyConstraint.js +3 -1
- package/esm/public/orm/models/fullTextSearch.js +3 -1
- package/esm/public/orm/models/hierarchyModule.js +3 -1
- package/esm/public/orm/models/indexModel.js +3 -1
- package/esm/public/orm/models/invite.js +3 -1
- package/esm/public/orm/models/invitesModule.js +3 -1
- package/esm/public/orm/models/levelsModule.js +3 -1
- package/esm/public/orm/models/limitsModule.js +3 -1
- package/esm/public/orm/models/membershipType.js +3 -1
- package/esm/public/orm/models/membershipTypesModule.js +3 -1
- package/esm/public/orm/models/membershipsModule.js +3 -1
- package/esm/public/orm/models/nodeTypeRegistry.js +3 -1
- package/esm/public/orm/models/object.js +3 -1
- package/esm/public/orm/models/orgAdminGrant.js +3 -1
- package/esm/public/orm/models/orgChartEdge.js +3 -1
- package/esm/public/orm/models/orgChartEdgeGrant.js +3 -1
- package/esm/public/orm/models/orgClaimedInvite.js +3 -1
- package/esm/public/orm/models/orgGrant.js +3 -1
- package/esm/public/orm/models/orgInvite.js +3 -1
- package/esm/public/orm/models/orgLimit.js +3 -1
- package/esm/public/orm/models/orgLimitDefault.js +3 -1
- package/esm/public/orm/models/orgMember.js +3 -1
- package/esm/public/orm/models/orgMembership.js +3 -1
- package/esm/public/orm/models/orgMembershipDefault.js +3 -1
- package/esm/public/orm/models/orgOwnerGrant.js +3 -1
- package/esm/public/orm/models/orgPermission.js +3 -1
- package/esm/public/orm/models/orgPermissionDefault.js +3 -1
- package/esm/public/orm/models/permissionsModule.js +3 -1
- package/esm/public/orm/models/phoneNumber.js +3 -1
- package/esm/public/orm/models/phoneNumbersModule.js +3 -1
- package/esm/public/orm/models/policy.js +3 -1
- package/esm/public/orm/models/primaryKeyConstraint.js +3 -1
- package/esm/public/orm/models/profilesModule.js +3 -1
- package/esm/public/orm/models/ref.js +3 -1
- package/esm/public/orm/models/relationProvision.js +3 -1
- package/esm/public/orm/models/rlsModule.js +3 -1
- package/esm/public/orm/models/roleType.js +3 -1
- package/esm/public/orm/models/schema.js +3 -1
- package/esm/public/orm/models/schemaGrant.js +3 -1
- package/esm/public/orm/models/secretsModule.js +3 -1
- package/esm/public/orm/models/secureTableProvision.js +3 -1
- package/esm/public/orm/models/sessionsModule.js +3 -1
- package/esm/public/orm/models/site.js +3 -1
- package/esm/public/orm/models/siteMetadatum.js +3 -1
- package/esm/public/orm/models/siteModule.js +3 -1
- package/esm/public/orm/models/siteTheme.js +3 -1
- package/esm/public/orm/models/store.js +3 -1
- package/esm/public/orm/models/table.js +3 -1
- package/esm/public/orm/models/tableGrant.js +3 -1
- package/esm/public/orm/models/tableTemplateModule.js +3 -1
- package/esm/public/orm/models/trigger.js +3 -1
- package/esm/public/orm/models/triggerFunction.js +3 -1
- package/esm/public/orm/models/uniqueConstraint.js +3 -1
- package/esm/public/orm/models/user.js +3 -1
- package/esm/public/orm/models/userAuthModule.js +3 -1
- package/esm/public/orm/models/usersModule.js +3 -1
- package/esm/public/orm/models/view.js +3 -1
- package/esm/public/orm/models/viewGrant.js +3 -1
- package/esm/public/orm/models/viewRule.js +3 -1
- package/esm/public/orm/models/viewTable.js +3 -1
- package/esm/public/orm/query-builder.d.ts +5 -1
- package/esm/public/orm/query-builder.js +15 -4
- package/objects/orm/input-types.d.ts +38 -1
- package/objects/orm/models/commit.js +3 -1
- package/objects/orm/models/object.js +3 -1
- package/objects/orm/models/ref.js +3 -1
- package/objects/orm/models/store.js +3 -1
- package/objects/orm/query-builder.d.ts +5 -1
- package/objects/orm/query-builder.js +16 -4
- package/package.json +3 -3
- package/public/orm/input-types.d.ts +8520 -45
- package/public/orm/models/api.js +3 -1
- package/public/orm/models/apiModule.js +3 -1
- package/public/orm/models/apiSchema.js +3 -1
- package/public/orm/models/app.js +3 -1
- package/public/orm/models/appAchievement.js +3 -1
- package/public/orm/models/appAdminGrant.js +3 -1
- package/public/orm/models/appGrant.js +3 -1
- package/public/orm/models/appLevel.js +3 -1
- package/public/orm/models/appLevelRequirement.js +3 -1
- package/public/orm/models/appLimit.js +3 -1
- package/public/orm/models/appLimitDefault.js +3 -1
- package/public/orm/models/appMembership.js +3 -1
- package/public/orm/models/appMembershipDefault.js +3 -1
- package/public/orm/models/appOwnerGrant.js +3 -1
- package/public/orm/models/appPermission.js +3 -1
- package/public/orm/models/appPermissionDefault.js +3 -1
- package/public/orm/models/appStep.js +3 -1
- package/public/orm/models/auditLog.js +3 -1
- package/public/orm/models/blueprint.js +3 -1
- package/public/orm/models/blueprintTemplate.js +3 -1
- package/public/orm/models/checkConstraint.js +3 -1
- package/public/orm/models/claimedInvite.js +3 -1
- package/public/orm/models/commit.js +3 -1
- package/public/orm/models/connectedAccount.js +3 -1
- package/public/orm/models/connectedAccountsModule.js +3 -1
- package/public/orm/models/cryptoAddress.js +3 -1
- package/public/orm/models/cryptoAddressesModule.js +3 -1
- package/public/orm/models/cryptoAuthModule.js +3 -1
- package/public/orm/models/database.js +3 -1
- package/public/orm/models/databaseProvisionModule.js +3 -1
- package/public/orm/models/databaseTransfer.js +3 -1
- package/public/orm/models/defaultIdsModule.js +3 -1
- package/public/orm/models/defaultPrivilege.js +3 -1
- package/public/orm/models/denormalizedTableField.js +3 -1
- package/public/orm/models/domain.js +3 -1
- package/public/orm/models/email.js +3 -1
- package/public/orm/models/emailsModule.js +3 -1
- package/public/orm/models/embeddingChunk.js +3 -1
- package/public/orm/models/encryptedSecretsModule.js +3 -1
- package/public/orm/models/enum.js +3 -1
- package/public/orm/models/field.js +3 -1
- package/public/orm/models/fieldModule.js +3 -1
- package/public/orm/models/foreignKeyConstraint.js +3 -1
- package/public/orm/models/fullTextSearch.js +3 -1
- package/public/orm/models/hierarchyModule.js +3 -1
- package/public/orm/models/indexModel.js +3 -1
- package/public/orm/models/invite.js +3 -1
- package/public/orm/models/invitesModule.js +3 -1
- package/public/orm/models/levelsModule.js +3 -1
- package/public/orm/models/limitsModule.js +3 -1
- package/public/orm/models/membershipType.js +3 -1
- package/public/orm/models/membershipTypesModule.js +3 -1
- package/public/orm/models/membershipsModule.js +3 -1
- package/public/orm/models/nodeTypeRegistry.js +3 -1
- package/public/orm/models/object.js +3 -1
- package/public/orm/models/orgAdminGrant.js +3 -1
- package/public/orm/models/orgChartEdge.js +3 -1
- package/public/orm/models/orgChartEdgeGrant.js +3 -1
- package/public/orm/models/orgClaimedInvite.js +3 -1
- package/public/orm/models/orgGrant.js +3 -1
- package/public/orm/models/orgInvite.js +3 -1
- package/public/orm/models/orgLimit.js +3 -1
- package/public/orm/models/orgLimitDefault.js +3 -1
- package/public/orm/models/orgMember.js +3 -1
- package/public/orm/models/orgMembership.js +3 -1
- package/public/orm/models/orgMembershipDefault.js +3 -1
- package/public/orm/models/orgOwnerGrant.js +3 -1
- package/public/orm/models/orgPermission.js +3 -1
- package/public/orm/models/orgPermissionDefault.js +3 -1
- package/public/orm/models/permissionsModule.js +3 -1
- package/public/orm/models/phoneNumber.js +3 -1
- package/public/orm/models/phoneNumbersModule.js +3 -1
- package/public/orm/models/policy.js +3 -1
- package/public/orm/models/primaryKeyConstraint.js +3 -1
- package/public/orm/models/profilesModule.js +3 -1
- package/public/orm/models/ref.js +3 -1
- package/public/orm/models/relationProvision.js +3 -1
- package/public/orm/models/rlsModule.js +3 -1
- package/public/orm/models/roleType.js +3 -1
- package/public/orm/models/schema.js +3 -1
- package/public/orm/models/schemaGrant.js +3 -1
- package/public/orm/models/secretsModule.js +3 -1
- package/public/orm/models/secureTableProvision.js +3 -1
- package/public/orm/models/sessionsModule.js +3 -1
- package/public/orm/models/site.js +3 -1
- package/public/orm/models/siteMetadatum.js +3 -1
- package/public/orm/models/siteModule.js +3 -1
- package/public/orm/models/siteTheme.js +3 -1
- package/public/orm/models/store.js +3 -1
- package/public/orm/models/table.js +3 -1
- package/public/orm/models/tableGrant.js +3 -1
- package/public/orm/models/tableTemplateModule.js +3 -1
- package/public/orm/models/trigger.js +3 -1
- package/public/orm/models/triggerFunction.js +3 -1
- package/public/orm/models/uniqueConstraint.js +3 -1
- package/public/orm/models/user.js +3 -1
- package/public/orm/models/userAuthModule.js +3 -1
- package/public/orm/models/usersModule.js +3 -1
- package/public/orm/models/view.js +3 -1
- package/public/orm/models/viewGrant.js +3 -1
- package/public/orm/models/viewRule.js +3 -1
- package/public/orm/models/viewTable.js +3 -1
- package/public/orm/query-builder.d.ts +5 -1
- package/public/orm/query-builder.js +16 -4
|
@@ -81,7 +81,9 @@ export class ViewModel {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
delete(args) {
|
|
84
|
-
const { document, variables } = buildDeleteByPkDocument('View', 'deleteView', 'view',
|
|
84
|
+
const { document, variables } = buildDeleteByPkDocument('View', 'deleteView', 'view', {
|
|
85
|
+
id: args.where.id,
|
|
86
|
+
}, 'DeleteViewInput', args.select, connectionFieldsMap);
|
|
85
87
|
return new QueryBuilder({
|
|
86
88
|
client: this.client,
|
|
87
89
|
operation: 'mutation',
|
|
@@ -81,7 +81,9 @@ export class ViewGrantModel {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
delete(args) {
|
|
84
|
-
const { document, variables } = buildDeleteByPkDocument('ViewGrant', 'deleteViewGrant', 'viewGrant',
|
|
84
|
+
const { document, variables } = buildDeleteByPkDocument('ViewGrant', 'deleteViewGrant', 'viewGrant', {
|
|
85
|
+
id: args.where.id,
|
|
86
|
+
}, 'DeleteViewGrantInput', args.select, connectionFieldsMap);
|
|
85
87
|
return new QueryBuilder({
|
|
86
88
|
client: this.client,
|
|
87
89
|
operation: 'mutation',
|
|
@@ -81,7 +81,9 @@ export class ViewRuleModel {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
delete(args) {
|
|
84
|
-
const { document, variables } = buildDeleteByPkDocument('ViewRule', 'deleteViewRule', 'viewRule',
|
|
84
|
+
const { document, variables } = buildDeleteByPkDocument('ViewRule', 'deleteViewRule', 'viewRule', {
|
|
85
|
+
id: args.where.id,
|
|
86
|
+
}, 'DeleteViewRuleInput', args.select, connectionFieldsMap);
|
|
85
87
|
return new QueryBuilder({
|
|
86
88
|
client: this.client,
|
|
87
89
|
operation: 'mutation',
|
|
@@ -81,7 +81,9 @@ export class ViewTableModel {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
delete(args) {
|
|
84
|
-
const { document, variables } = buildDeleteByPkDocument('ViewTable', 'deleteViewTable', 'viewTable',
|
|
84
|
+
const { document, variables } = buildDeleteByPkDocument('ViewTable', 'deleteViewTable', 'viewTable', {
|
|
85
|
+
id: args.where.id,
|
|
86
|
+
}, 'DeleteViewTableInput', args.select, connectionFieldsMap);
|
|
85
87
|
return new QueryBuilder({
|
|
86
88
|
client: this.client,
|
|
87
89
|
operation: 'mutation',
|
|
@@ -78,7 +78,11 @@ export declare function buildDeleteDocument<TWhere extends {
|
|
|
78
78
|
document: string;
|
|
79
79
|
variables: Record<string, unknown>;
|
|
80
80
|
};
|
|
81
|
-
export declare function buildDeleteByPkDocument<TSelect = undefined>(operationName: string, mutationField: string, entityField: string,
|
|
81
|
+
export declare function buildDeleteByPkDocument<TSelect = undefined>(operationName: string, mutationField: string, entityField: string, keys: Record<string, unknown>, inputTypeName: string, select?: TSelect, connectionFieldsMap?: Record<string, Record<string, string>>): {
|
|
82
|
+
document: string;
|
|
83
|
+
variables: Record<string, unknown>;
|
|
84
|
+
};
|
|
85
|
+
export declare function buildJunctionRemoveDocument(operationName: string, mutationField: string, keys: Record<string, unknown>, inputTypeName: string): {
|
|
82
86
|
document: string;
|
|
83
87
|
variables: Record<string, unknown>;
|
|
84
88
|
};
|
|
@@ -361,7 +361,7 @@ export function buildDeleteDocument(operationName, mutationField, entityField, w
|
|
|
361
361
|
},
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
|
-
export function buildDeleteByPkDocument(operationName, mutationField, entityField,
|
|
364
|
+
export function buildDeleteByPkDocument(operationName, mutationField, entityField, keys, inputTypeName, select, connectionFieldsMap) {
|
|
365
365
|
const entitySelections = select
|
|
366
366
|
? buildSelections(select, connectionFieldsMap, operationName)
|
|
367
367
|
: [t.field({ name: 'id' })];
|
|
@@ -378,9 +378,20 @@ export function buildDeleteByPkDocument(operationName, mutationField, entityFiel
|
|
|
378
378
|
],
|
|
379
379
|
}),
|
|
380
380
|
variables: {
|
|
381
|
-
input:
|
|
382
|
-
|
|
383
|
-
|
|
381
|
+
input: keys,
|
|
382
|
+
},
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
export function buildJunctionRemoveDocument(operationName, mutationField, keys, inputTypeName) {
|
|
386
|
+
return {
|
|
387
|
+
document: buildInputMutationDocument({
|
|
388
|
+
operationName,
|
|
389
|
+
mutationField,
|
|
390
|
+
inputTypeName,
|
|
391
|
+
resultSelections: [t.field({ name: 'clientMutationId' })],
|
|
392
|
+
}),
|
|
393
|
+
variables: {
|
|
394
|
+
input: keys,
|
|
384
395
|
},
|
|
385
396
|
};
|
|
386
397
|
}
|
|
@@ -357,50 +357,87 @@ export interface GetAllRecordFilter {
|
|
|
357
357
|
not?: GetAllRecordFilter;
|
|
358
358
|
}
|
|
359
359
|
export interface ObjectFilter {
|
|
360
|
-
|
|
360
|
+
/** Filter by the object’s `id` field. */
|
|
361
361
|
id?: UUIDFilter;
|
|
362
|
+
/** Filter by the object’s `databaseId` field. */
|
|
362
363
|
databaseId?: UUIDFilter;
|
|
364
|
+
/** Filter by the object’s `kids` field. */
|
|
363
365
|
kids?: UUIDListFilter;
|
|
366
|
+
/** Filter by the object’s `ktree` field. */
|
|
364
367
|
ktree?: StringListFilter;
|
|
368
|
+
/** Filter by the object’s `data` field. */
|
|
365
369
|
data?: JSONFilter;
|
|
370
|
+
/** Filter by the object’s `frzn` field. */
|
|
366
371
|
frzn?: BooleanFilter;
|
|
372
|
+
/** Filter by the object’s `createdAt` field. */
|
|
367
373
|
createdAt?: DatetimeFilter;
|
|
374
|
+
/** Checks for all expressions in this list. */
|
|
368
375
|
and?: ObjectFilter[];
|
|
376
|
+
/** Checks for any expressions in this list. */
|
|
369
377
|
or?: ObjectFilter[];
|
|
378
|
+
/** Negates the expression. */
|
|
370
379
|
not?: ObjectFilter;
|
|
371
380
|
}
|
|
372
381
|
export interface RefFilter {
|
|
382
|
+
/** Filter by the object’s `id` field. */
|
|
373
383
|
id?: UUIDFilter;
|
|
384
|
+
/** Filter by the object’s `name` field. */
|
|
374
385
|
name?: StringFilter;
|
|
386
|
+
/** Filter by the object’s `databaseId` field. */
|
|
375
387
|
databaseId?: UUIDFilter;
|
|
388
|
+
/** Filter by the object’s `storeId` field. */
|
|
376
389
|
storeId?: UUIDFilter;
|
|
390
|
+
/** Filter by the object’s `commitId` field. */
|
|
377
391
|
commitId?: UUIDFilter;
|
|
392
|
+
/** Checks for all expressions in this list. */
|
|
378
393
|
and?: RefFilter[];
|
|
394
|
+
/** Checks for any expressions in this list. */
|
|
379
395
|
or?: RefFilter[];
|
|
396
|
+
/** Negates the expression. */
|
|
380
397
|
not?: RefFilter;
|
|
381
398
|
}
|
|
382
399
|
export interface StoreFilter {
|
|
400
|
+
/** Filter by the object’s `id` field. */
|
|
383
401
|
id?: UUIDFilter;
|
|
402
|
+
/** Filter by the object’s `name` field. */
|
|
384
403
|
name?: StringFilter;
|
|
404
|
+
/** Filter by the object’s `databaseId` field. */
|
|
385
405
|
databaseId?: UUIDFilter;
|
|
406
|
+
/** Filter by the object’s `hash` field. */
|
|
386
407
|
hash?: UUIDFilter;
|
|
408
|
+
/** Filter by the object’s `createdAt` field. */
|
|
387
409
|
createdAt?: DatetimeFilter;
|
|
410
|
+
/** Checks for all expressions in this list. */
|
|
388
411
|
and?: StoreFilter[];
|
|
412
|
+
/** Checks for any expressions in this list. */
|
|
389
413
|
or?: StoreFilter[];
|
|
414
|
+
/** Negates the expression. */
|
|
390
415
|
not?: StoreFilter;
|
|
391
416
|
}
|
|
392
417
|
export interface CommitFilter {
|
|
418
|
+
/** Filter by the object’s `id` field. */
|
|
393
419
|
id?: UUIDFilter;
|
|
420
|
+
/** Filter by the object’s `message` field. */
|
|
394
421
|
message?: StringFilter;
|
|
422
|
+
/** Filter by the object’s `databaseId` field. */
|
|
395
423
|
databaseId?: UUIDFilter;
|
|
424
|
+
/** Filter by the object’s `storeId` field. */
|
|
396
425
|
storeId?: UUIDFilter;
|
|
426
|
+
/** Filter by the object’s `parentIds` field. */
|
|
397
427
|
parentIds?: UUIDListFilter;
|
|
428
|
+
/** Filter by the object’s `authorId` field. */
|
|
398
429
|
authorId?: UUIDFilter;
|
|
430
|
+
/** Filter by the object’s `committerId` field. */
|
|
399
431
|
committerId?: UUIDFilter;
|
|
432
|
+
/** Filter by the object’s `treeId` field. */
|
|
400
433
|
treeId?: UUIDFilter;
|
|
434
|
+
/** Filter by the object’s `date` field. */
|
|
401
435
|
date?: DatetimeFilter;
|
|
436
|
+
/** Checks for all expressions in this list. */
|
|
402
437
|
and?: CommitFilter[];
|
|
438
|
+
/** Checks for any expressions in this list. */
|
|
403
439
|
or?: CommitFilter[];
|
|
440
|
+
/** Negates the expression. */
|
|
404
441
|
not?: CommitFilter;
|
|
405
442
|
}
|
|
406
443
|
export type GetAllRecordsOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'PATH_ASC' | 'PATH_DESC' | 'DATA_ASC' | 'DATA_DESC';
|
|
@@ -84,7 +84,9 @@ class CommitModel {
|
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
delete(args) {
|
|
87
|
-
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('Commit', 'deleteCommit', 'commit',
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('Commit', 'deleteCommit', 'commit', {
|
|
88
|
+
id: args.where.id,
|
|
89
|
+
}, 'DeleteCommitInput', args.select, input_types_1.connectionFieldsMap);
|
|
88
90
|
return new query_builder_1.QueryBuilder({
|
|
89
91
|
client: this.client,
|
|
90
92
|
operation: 'mutation',
|
|
@@ -74,7 +74,9 @@ class ObjectModel {
|
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
delete(args) {
|
|
77
|
-
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('Object', 'deleteObject', 'object',
|
|
77
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('Object', 'deleteObject', 'object', {
|
|
78
|
+
id: args.where.id,
|
|
79
|
+
}, 'DeleteObjectInput', args.select, input_types_1.connectionFieldsMap);
|
|
78
80
|
return new query_builder_1.QueryBuilder({
|
|
79
81
|
client: this.client,
|
|
80
82
|
operation: 'mutation',
|
|
@@ -84,7 +84,9 @@ class RefModel {
|
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
delete(args) {
|
|
87
|
-
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('Ref', 'deleteRef', 'ref',
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('Ref', 'deleteRef', 'ref', {
|
|
88
|
+
id: args.where.id,
|
|
89
|
+
}, 'DeleteRefInput', args.select, input_types_1.connectionFieldsMap);
|
|
88
90
|
return new query_builder_1.QueryBuilder({
|
|
89
91
|
client: this.client,
|
|
90
92
|
operation: 'mutation',
|
|
@@ -84,7 +84,9 @@ class StoreModel {
|
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
delete(args) {
|
|
87
|
-
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('Store', 'deleteStore', 'store',
|
|
87
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('Store', 'deleteStore', 'store', {
|
|
88
|
+
id: args.where.id,
|
|
89
|
+
}, 'DeleteStoreInput', args.select, input_types_1.connectionFieldsMap);
|
|
88
90
|
return new query_builder_1.QueryBuilder({
|
|
89
91
|
client: this.client,
|
|
90
92
|
operation: 'mutation',
|
|
@@ -78,7 +78,11 @@ export declare function buildDeleteDocument<TWhere extends {
|
|
|
78
78
|
document: string;
|
|
79
79
|
variables: Record<string, unknown>;
|
|
80
80
|
};
|
|
81
|
-
export declare function buildDeleteByPkDocument<TSelect = undefined>(operationName: string, mutationField: string, entityField: string,
|
|
81
|
+
export declare function buildDeleteByPkDocument<TSelect = undefined>(operationName: string, mutationField: string, entityField: string, keys: Record<string, unknown>, inputTypeName: string, select?: TSelect, connectionFieldsMap?: Record<string, Record<string, string>>): {
|
|
82
|
+
document: string;
|
|
83
|
+
variables: Record<string, unknown>;
|
|
84
|
+
};
|
|
85
|
+
export declare function buildJunctionRemoveDocument(operationName: string, mutationField: string, keys: Record<string, unknown>, inputTypeName: string): {
|
|
82
86
|
document: string;
|
|
83
87
|
variables: Record<string, unknown>;
|
|
84
88
|
};
|
|
@@ -43,6 +43,7 @@ exports.buildUpdateByPkDocument = buildUpdateByPkDocument;
|
|
|
43
43
|
exports.buildFindOneDocument = buildFindOneDocument;
|
|
44
44
|
exports.buildDeleteDocument = buildDeleteDocument;
|
|
45
45
|
exports.buildDeleteByPkDocument = buildDeleteByPkDocument;
|
|
46
|
+
exports.buildJunctionRemoveDocument = buildJunctionRemoveDocument;
|
|
46
47
|
exports.buildCustomDocument = buildCustomDocument;
|
|
47
48
|
/**
|
|
48
49
|
* Query Builder - Builds and executes GraphQL operations
|
|
@@ -408,7 +409,7 @@ function buildDeleteDocument(operationName, mutationField, entityField, where, i
|
|
|
408
409
|
},
|
|
409
410
|
};
|
|
410
411
|
}
|
|
411
|
-
function buildDeleteByPkDocument(operationName, mutationField, entityField,
|
|
412
|
+
function buildDeleteByPkDocument(operationName, mutationField, entityField, keys, inputTypeName, select, connectionFieldsMap) {
|
|
412
413
|
const entitySelections = select
|
|
413
414
|
? buildSelections(select, connectionFieldsMap, operationName)
|
|
414
415
|
: [t.field({ name: 'id' })];
|
|
@@ -425,9 +426,20 @@ function buildDeleteByPkDocument(operationName, mutationField, entityField, id,
|
|
|
425
426
|
],
|
|
426
427
|
}),
|
|
427
428
|
variables: {
|
|
428
|
-
input:
|
|
429
|
-
|
|
430
|
-
|
|
429
|
+
input: keys,
|
|
430
|
+
},
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
function buildJunctionRemoveDocument(operationName, mutationField, keys, inputTypeName) {
|
|
434
|
+
return {
|
|
435
|
+
document: buildInputMutationDocument({
|
|
436
|
+
operationName,
|
|
437
|
+
mutationField,
|
|
438
|
+
inputTypeName,
|
|
439
|
+
resultSelections: [t.field({ name: 'clientMutationId' })],
|
|
440
|
+
}),
|
|
441
|
+
variables: {
|
|
442
|
+
input: keys,
|
|
431
443
|
},
|
|
432
444
|
};
|
|
433
445
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/react",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
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.21.
|
|
54
|
+
"@constructive-io/graphql-codegen": "^4.21.2",
|
|
55
55
|
"@types/node": "^22.19.11",
|
|
56
56
|
"@types/react": "^19.2.14",
|
|
57
57
|
"makage": "^0.1.12",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"tsx": "^4.19.0",
|
|
60
60
|
"typescript": "^5.9.3"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "bfc62d3bf8b8374dea67536cfea9d16cbe0575ac"
|
|
63
63
|
}
|