@constructive-sdk/cli 0.29.0 → 0.29.2
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/api/cli/commands/api.js +44 -0
- package/api/cli/commands/check-constraint.js +0 -22
- package/api/cli/commands/composite-type.js +0 -22
- package/api/cli/commands/database-setting.js +44 -0
- package/api/cli/commands/domain.js +66 -0
- package/api/cli/commands/enum.js +0 -22
- package/api/cli/commands/field.js +0 -22
- package/api/cli/commands/foreign-key-constraint.js +0 -22
- package/api/cli/commands/index.js +0 -22
- package/api/cli/commands/policy.js +0 -22
- package/api/cli/commands/primary-key-constraint.js +0 -22
- package/api/cli/commands/schema.js +0 -22
- package/api/cli/commands/site.js +44 -0
- package/api/cli/commands/spatial-relation.js +0 -22
- package/api/cli/commands/table.js +0 -22
- package/api/cli/commands/trigger.js +0 -22
- package/api/cli/commands/unique-constraint.js +0 -22
- package/api/cli/commands/view.js +0 -22
- package/api/orm/input-types.d.ts +144 -171
- package/auth/cli/commands/create-org-api-key.d.ts +8 -0
- package/auth/cli/commands/create-org-api-key.js +36 -0
- package/auth/cli/commands/create-org-principal.d.ts +8 -0
- package/auth/cli/commands/create-org-principal.js +36 -0
- package/auth/cli/commands/delete-org-principal.d.ts +8 -0
- package/auth/cli/commands/delete-org-principal.js +36 -0
- package/auth/cli/commands/org-api-key-list.d.ts +8 -0
- package/auth/cli/commands/org-api-key-list.js +224 -0
- package/auth/cli/commands/principal-entity.d.ts +8 -0
- package/auth/cli/commands/principal-entity.js +282 -0
- package/auth/cli/commands/principal-scope-override.d.ts +8 -0
- package/auth/cli/commands/principal-scope-override.js +171 -0
- package/auth/cli/commands/principal.d.ts +8 -0
- package/auth/cli/commands/principal.js +171 -0
- package/auth/cli/commands/revoke-org-api-key.d.ts +8 -0
- package/auth/cli/commands/revoke-org-api-key.js +36 -0
- package/auth/cli/commands.js +19 -3
- package/auth/cli/executor.d.ts +28 -4
- package/auth/orm/index.d.ts +32 -4
- package/auth/orm/index.js +8 -0
- package/auth/orm/input-types.d.ts +915 -145
- package/auth/orm/input-types.js +7 -0
- package/auth/orm/models/index.d.ts +4 -0
- package/auth/orm/models/index.js +9 -1
- package/auth/orm/models/orgApiKeyList.d.ts +36 -0
- package/auth/orm/models/orgApiKeyList.js +80 -0
- package/auth/orm/models/principal.d.ts +45 -0
- package/auth/orm/models/principal.js +93 -0
- package/auth/orm/models/principalEntity.d.ts +54 -0
- package/auth/orm/models/principalEntity.js +104 -0
- package/auth/orm/models/principalScopeOverride.d.ts +36 -0
- package/auth/orm/models/principalScopeOverride.js +80 -0
- package/auth/orm/mutation/index.d.ts +33 -1
- package/auth/orm/mutation/index.js +48 -0
- package/auth/orm/query/index.d.ts +4 -4
- package/auth/orm/query/index.js +7 -7
- package/compute/cli/commands/function-graph-execution.js +0 -22
- package/compute/cli/commands/function-graph.js +0 -20
- package/compute/cli/commands/platform-namespace-event.d.ts +8 -0
- package/compute/cli/commands/platform-namespace-event.js +510 -0
- package/compute/cli/commands/platform-namespace.d.ts +8 -0
- package/compute/cli/commands/platform-namespace.js +436 -0
- package/compute/cli/commands/resource-event.d.ts +8 -0
- package/compute/cli/commands/resource-event.js +356 -0
- package/compute/cli/commands/resource.d.ts +8 -0
- package/compute/cli/commands/resource.js +520 -0
- package/compute/cli/commands.js +13 -5
- package/compute/cli/executor.d.ts +10 -6
- package/compute/orm/index.d.ts +15 -7
- package/compute/orm/index.js +10 -2
- package/compute/orm/input-types.d.ts +1159 -221
- package/compute/orm/input-types.js +4 -0
- package/compute/orm/models/index.d.ts +5 -1
- package/compute/orm/models/index.js +11 -3
- package/compute/orm/models/platformNamespace.d.ts +54 -0
- package/compute/orm/models/platformNamespace.js +104 -0
- package/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
- package/compute/orm/models/platformNamespaceEvent.js +107 -0
- package/compute/orm/models/resource.d.ts +54 -0
- package/compute/orm/models/resource.js +104 -0
- package/compute/orm/models/resourceEvent.d.ts +56 -0
- package/compute/orm/models/resourceEvent.js +107 -0
- package/compute/orm/mutation/index.d.ts +9 -9
- package/compute/orm/mutation/index.js +12 -12
- package/esm/api/cli/commands/api.js +44 -0
- package/esm/api/cli/commands/check-constraint.js +0 -22
- package/esm/api/cli/commands/composite-type.js +0 -22
- package/esm/api/cli/commands/database-setting.js +44 -0
- package/esm/api/cli/commands/domain.js +66 -0
- package/esm/api/cli/commands/enum.js +0 -22
- package/esm/api/cli/commands/field.js +0 -22
- package/esm/api/cli/commands/foreign-key-constraint.js +0 -22
- package/esm/api/cli/commands/index.js +0 -22
- package/esm/api/cli/commands/policy.js +0 -22
- package/esm/api/cli/commands/primary-key-constraint.js +0 -22
- package/esm/api/cli/commands/schema.js +0 -22
- package/esm/api/cli/commands/site.js +44 -0
- package/esm/api/cli/commands/spatial-relation.js +0 -22
- package/esm/api/cli/commands/table.js +0 -22
- package/esm/api/cli/commands/trigger.js +0 -22
- package/esm/api/cli/commands/unique-constraint.js +0 -22
- package/esm/api/cli/commands/view.js +0 -22
- package/esm/api/orm/input-types.d.ts +144 -171
- package/esm/auth/cli/commands/create-org-api-key.d.ts +8 -0
- package/esm/auth/cli/commands/create-org-api-key.js +34 -0
- package/esm/auth/cli/commands/create-org-principal.d.ts +8 -0
- package/esm/auth/cli/commands/create-org-principal.js +34 -0
- package/esm/auth/cli/commands/delete-org-principal.d.ts +8 -0
- package/esm/auth/cli/commands/delete-org-principal.js +34 -0
- package/esm/auth/cli/commands/org-api-key-list.d.ts +8 -0
- package/esm/auth/cli/commands/org-api-key-list.js +222 -0
- package/esm/auth/cli/commands/principal-entity.d.ts +8 -0
- package/esm/auth/cli/commands/principal-entity.js +280 -0
- package/esm/auth/cli/commands/principal-scope-override.d.ts +8 -0
- package/esm/auth/cli/commands/principal-scope-override.js +169 -0
- package/esm/auth/cli/commands/principal.d.ts +8 -0
- package/esm/auth/cli/commands/principal.js +169 -0
- package/esm/auth/cli/commands/revoke-org-api-key.d.ts +8 -0
- package/esm/auth/cli/commands/revoke-org-api-key.js +34 -0
- package/esm/auth/cli/commands.js +19 -3
- package/esm/auth/cli/executor.d.ts +28 -4
- package/esm/auth/orm/index.d.ts +32 -4
- package/esm/auth/orm/index.js +8 -0
- package/esm/auth/orm/input-types.d.ts +915 -145
- package/esm/auth/orm/input-types.js +7 -0
- package/esm/auth/orm/models/index.d.ts +4 -0
- package/esm/auth/orm/models/index.js +4 -0
- package/esm/auth/orm/models/orgApiKeyList.d.ts +36 -0
- package/esm/auth/orm/models/orgApiKeyList.js +76 -0
- package/esm/auth/orm/models/principal.d.ts +45 -0
- package/esm/auth/orm/models/principal.js +89 -0
- package/esm/auth/orm/models/principalEntity.d.ts +54 -0
- package/esm/auth/orm/models/principalEntity.js +100 -0
- package/esm/auth/orm/models/principalScopeOverride.d.ts +36 -0
- package/esm/auth/orm/models/principalScopeOverride.js +76 -0
- package/esm/auth/orm/mutation/index.d.ts +33 -1
- package/esm/auth/orm/mutation/index.js +48 -0
- package/esm/auth/orm/query/index.d.ts +4 -4
- package/esm/auth/orm/query/index.js +7 -7
- package/esm/compute/cli/commands/function-graph-execution.js +0 -22
- package/esm/compute/cli/commands/function-graph.js +0 -20
- package/esm/compute/cli/commands/platform-namespace-event.d.ts +8 -0
- package/esm/compute/cli/commands/platform-namespace-event.js +508 -0
- package/esm/compute/cli/commands/platform-namespace.d.ts +8 -0
- package/esm/compute/cli/commands/platform-namespace.js +434 -0
- package/esm/compute/cli/commands/resource-event.d.ts +8 -0
- package/esm/compute/cli/commands/resource-event.js +354 -0
- package/esm/compute/cli/commands/resource.d.ts +8 -0
- package/esm/compute/cli/commands/resource.js +518 -0
- package/esm/compute/cli/commands.js +13 -5
- package/esm/compute/cli/executor.d.ts +10 -6
- package/esm/compute/orm/index.d.ts +15 -7
- package/esm/compute/orm/index.js +10 -2
- package/esm/compute/orm/input-types.d.ts +1159 -221
- package/esm/compute/orm/input-types.js +4 -0
- package/esm/compute/orm/models/index.d.ts +5 -1
- package/esm/compute/orm/models/index.js +5 -1
- package/esm/compute/orm/models/platformNamespace.d.ts +54 -0
- package/esm/compute/orm/models/platformNamespace.js +100 -0
- package/esm/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
- package/esm/compute/orm/models/platformNamespaceEvent.js +103 -0
- package/esm/compute/orm/models/resource.d.ts +54 -0
- package/esm/compute/orm/models/resource.js +100 -0
- package/esm/compute/orm/models/resourceEvent.d.ts +56 -0
- package/esm/compute/orm/models/resourceEvent.js +103 -0
- package/esm/compute/orm/mutation/index.d.ts +9 -9
- package/esm/compute/orm/mutation/index.js +12 -12
- package/esm/modules/cli/commands/merkle-store-module.js +22 -0
- package/esm/modules/cli/commands/principal-auth-module.d.ts +8 -0
- package/esm/modules/cli/commands/principal-auth-module.js +580 -0
- package/esm/modules/cli/commands/resource-module.d.ts +8 -0
- package/esm/modules/cli/commands/resource-module.js +602 -0
- package/esm/modules/cli/commands.js +9 -5
- package/esm/modules/cli/executor.d.ts +4 -2
- package/esm/modules/orm/index.d.ts +8 -4
- package/esm/modules/orm/index.js +8 -4
- package/esm/modules/orm/input-types.d.ts +868 -411
- package/esm/modules/orm/models/index.d.ts +4 -2
- package/esm/modules/orm/models/index.js +4 -2
- package/esm/modules/orm/models/principalAuthModule.d.ts +54 -0
- package/esm/modules/orm/models/principalAuthModule.js +100 -0
- package/esm/modules/orm/models/resourceModule.d.ts +54 -0
- package/esm/modules/orm/models/resourceModule.js +100 -0
- package/modules/cli/commands/merkle-store-module.js +22 -0
- package/modules/cli/commands/principal-auth-module.d.ts +8 -0
- package/modules/cli/commands/principal-auth-module.js +582 -0
- package/modules/cli/commands/resource-module.d.ts +8 -0
- package/modules/cli/commands/resource-module.js +604 -0
- package/modules/cli/commands.js +9 -5
- package/modules/cli/executor.d.ts +4 -2
- package/modules/orm/index.d.ts +8 -4
- package/modules/orm/index.js +8 -4
- package/modules/orm/input-types.d.ts +868 -411
- package/modules/orm/models/index.d.ts +4 -2
- package/modules/orm/models/index.js +10 -6
- package/modules/orm/models/principalAuthModule.d.ts +54 -0
- package/modules/orm/models/principalAuthModule.js +104 -0
- package/modules/orm/models/resourceModule.d.ts +54 -0
- package/modules/orm/models/resourceModule.js +104 -0
- package/package.json +5 -5
|
@@ -29,19 +29,21 @@ export { BlueprintConstructionModel } from './blueprintConstruction';
|
|
|
29
29
|
export { CryptoAuthModuleModel } from './cryptoAuthModule';
|
|
30
30
|
export { SessionsModuleModel } from './sessionsModule';
|
|
31
31
|
export { SecureTableProvisionModel } from './secureTableProvision';
|
|
32
|
-
export { MerkleStoreModuleModel } from './merkleStoreModule';
|
|
33
|
-
export { GraphModuleModel } from './graphModule';
|
|
34
32
|
export { DatabaseProvisionModuleModel } from './databaseProvisionModule';
|
|
35
33
|
export { ConfigSecretsModuleModel } from './configSecretsModule';
|
|
34
|
+
export { GraphModuleModel } from './graphModule';
|
|
35
|
+
export { MerkleStoreModuleModel } from './merkleStoreModule';
|
|
36
36
|
export { RateLimitMetersModuleModel } from './rateLimitMetersModule';
|
|
37
37
|
export { RealtimeModuleModel } from './realtimeModule';
|
|
38
38
|
export { WebauthnAuthModuleModel } from './webauthnAuthModule';
|
|
39
39
|
export { FunctionInvocationModuleModel } from './functionInvocationModule';
|
|
40
40
|
export { FunctionModuleModel } from './functionModule';
|
|
41
41
|
export { InvitesModuleModel } from './invitesModule';
|
|
42
|
+
export { PrincipalAuthModuleModel } from './principalAuthModule';
|
|
42
43
|
export { ComputeLogModuleModel } from './computeLogModule';
|
|
43
44
|
export { InferenceLogModuleModel } from './inferenceLogModule';
|
|
44
45
|
export { NamespaceModuleModel } from './namespaceModule';
|
|
46
|
+
export { ResourceModuleModel } from './resourceModule';
|
|
45
47
|
export { StorageLogModuleModel } from './storageLogModule';
|
|
46
48
|
export { TransferLogModuleModel } from './transferLogModule';
|
|
47
49
|
export { FunctionDeploymentModuleModel } from './functionDeploymentModule';
|
|
@@ -29,19 +29,21 @@ export { BlueprintConstructionModel } from './blueprintConstruction';
|
|
|
29
29
|
export { CryptoAuthModuleModel } from './cryptoAuthModule';
|
|
30
30
|
export { SessionsModuleModel } from './sessionsModule';
|
|
31
31
|
export { SecureTableProvisionModel } from './secureTableProvision';
|
|
32
|
-
export { MerkleStoreModuleModel } from './merkleStoreModule';
|
|
33
|
-
export { GraphModuleModel } from './graphModule';
|
|
34
32
|
export { DatabaseProvisionModuleModel } from './databaseProvisionModule';
|
|
35
33
|
export { ConfigSecretsModuleModel } from './configSecretsModule';
|
|
34
|
+
export { GraphModuleModel } from './graphModule';
|
|
35
|
+
export { MerkleStoreModuleModel } from './merkleStoreModule';
|
|
36
36
|
export { RateLimitMetersModuleModel } from './rateLimitMetersModule';
|
|
37
37
|
export { RealtimeModuleModel } from './realtimeModule';
|
|
38
38
|
export { WebauthnAuthModuleModel } from './webauthnAuthModule';
|
|
39
39
|
export { FunctionInvocationModuleModel } from './functionInvocationModule';
|
|
40
40
|
export { FunctionModuleModel } from './functionModule';
|
|
41
41
|
export { InvitesModuleModel } from './invitesModule';
|
|
42
|
+
export { PrincipalAuthModuleModel } from './principalAuthModule';
|
|
42
43
|
export { ComputeLogModuleModel } from './computeLogModule';
|
|
43
44
|
export { InferenceLogModuleModel } from './inferenceLogModule';
|
|
44
45
|
export { NamespaceModuleModel } from './namespaceModule';
|
|
46
|
+
export { ResourceModuleModel } from './resourceModule';
|
|
45
47
|
export { StorageLogModuleModel } from './storageLogModule';
|
|
46
48
|
export { TransferLogModuleModel } from './transferLogModule';
|
|
47
49
|
export { FunctionDeploymentModuleModel } from './functionDeploymentModule';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PrincipalAuthModule model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { PrincipalAuthModuleWithRelations, PrincipalAuthModuleSelect, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy, CreatePrincipalAuthModuleInput, PrincipalAuthModulePatch } from '../input-types';
|
|
10
|
+
export declare class PrincipalAuthModuleModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends PrincipalAuthModuleSelect>(args: FindManyArgs<S, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, PrincipalAuthModuleSelect>): QueryBuilder<{
|
|
16
|
+
principalAuthModules: ConnectionResult<InferSelectResult<PrincipalAuthModuleWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends PrincipalAuthModuleSelect>(args: FindFirstArgs<S, PrincipalAuthModuleFilter, PrincipalAuthModuleOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, PrincipalAuthModuleSelect>): QueryBuilder<{
|
|
21
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends PrincipalAuthModuleSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, PrincipalAuthModuleSelect>): QueryBuilder<{
|
|
27
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends PrincipalAuthModuleSelect>(args: CreateArgs<S, CreatePrincipalAuthModuleInput['principalAuthModule']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, PrincipalAuthModuleSelect>): QueryBuilder<{
|
|
32
|
+
createPrincipalAuthModule: {
|
|
33
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends PrincipalAuthModuleSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, PrincipalAuthModulePatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, PrincipalAuthModuleSelect>): QueryBuilder<{
|
|
41
|
+
updatePrincipalAuthModule: {
|
|
42
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends PrincipalAuthModuleSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, PrincipalAuthModuleSelect>): QueryBuilder<{
|
|
50
|
+
deletePrincipalAuthModule: {
|
|
51
|
+
principalAuthModule: InferSelectResult<PrincipalAuthModuleWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class PrincipalAuthModuleModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('PrincipalAuthModule', 'principalAuthModules', args.select, {
|
|
10
|
+
where: args?.where,
|
|
11
|
+
orderBy: args?.orderBy,
|
|
12
|
+
first: args?.first,
|
|
13
|
+
last: args?.last,
|
|
14
|
+
after: args?.after,
|
|
15
|
+
before: args?.before,
|
|
16
|
+
offset: args?.offset,
|
|
17
|
+
}, 'PrincipalAuthModuleFilter', 'PrincipalAuthModuleOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'PrincipalAuthModule',
|
|
22
|
+
fieldName: 'principalAuthModules',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('PrincipalAuthModule', 'principalAuthModules', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
orderBy: args?.orderBy,
|
|
31
|
+
}, 'PrincipalAuthModuleFilter', 'PrincipalAuthModuleOrderBy', connectionFieldsMap);
|
|
32
|
+
return new QueryBuilder({
|
|
33
|
+
client: this.client,
|
|
34
|
+
operation: 'query',
|
|
35
|
+
operationName: 'PrincipalAuthModule',
|
|
36
|
+
fieldName: 'principalAuthModule',
|
|
37
|
+
document,
|
|
38
|
+
variables,
|
|
39
|
+
transform: (data) => ({
|
|
40
|
+
principalAuthModule: data.principalAuthModules?.nodes?.[0] ?? null,
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
findOne(args) {
|
|
45
|
+
const { document, variables } = buildFindManyDocument('PrincipalAuthModule', 'principalAuthModules', args.select, {
|
|
46
|
+
where: {
|
|
47
|
+
id: {
|
|
48
|
+
equalTo: args.id,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
first: 1,
|
|
52
|
+
}, 'PrincipalAuthModuleFilter', 'PrincipalAuthModuleOrderBy', connectionFieldsMap);
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'query',
|
|
56
|
+
operationName: 'PrincipalAuthModule',
|
|
57
|
+
fieldName: 'principalAuthModule',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
transform: (data) => ({
|
|
61
|
+
principalAuthModule: data.principalAuthModules?.nodes?.[0] ?? null,
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
create(args) {
|
|
66
|
+
const { document, variables } = buildCreateDocument('PrincipalAuthModule', 'createPrincipalAuthModule', 'principalAuthModule', args.select, args.data, 'CreatePrincipalAuthModuleInput', connectionFieldsMap);
|
|
67
|
+
return new QueryBuilder({
|
|
68
|
+
client: this.client,
|
|
69
|
+
operation: 'mutation',
|
|
70
|
+
operationName: 'PrincipalAuthModule',
|
|
71
|
+
fieldName: 'createPrincipalAuthModule',
|
|
72
|
+
document,
|
|
73
|
+
variables,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
update(args) {
|
|
77
|
+
const { document, variables } = buildUpdateByPkDocument('PrincipalAuthModule', 'updatePrincipalAuthModule', 'principalAuthModule', args.select, args.where.id, args.data, 'UpdatePrincipalAuthModuleInput', 'id', 'principalAuthModulePatch', connectionFieldsMap, undefined);
|
|
78
|
+
return new QueryBuilder({
|
|
79
|
+
client: this.client,
|
|
80
|
+
operation: 'mutation',
|
|
81
|
+
operationName: 'PrincipalAuthModule',
|
|
82
|
+
fieldName: 'updatePrincipalAuthModule',
|
|
83
|
+
document,
|
|
84
|
+
variables,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
delete(args) {
|
|
88
|
+
const { document, variables } = buildDeleteByPkDocument('PrincipalAuthModule', 'deletePrincipalAuthModule', 'principalAuthModule', {
|
|
89
|
+
id: args.where.id,
|
|
90
|
+
}, 'DeletePrincipalAuthModuleInput', args.select, connectionFieldsMap);
|
|
91
|
+
return new QueryBuilder({
|
|
92
|
+
client: this.client,
|
|
93
|
+
operation: 'mutation',
|
|
94
|
+
operationName: 'PrincipalAuthModule',
|
|
95
|
+
fieldName: 'deletePrincipalAuthModule',
|
|
96
|
+
document,
|
|
97
|
+
variables,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ResourceModule model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { ResourceModuleWithRelations, ResourceModuleSelect, ResourceModuleFilter, ResourceModuleOrderBy, CreateResourceModuleInput, ResourceModulePatch } from '../input-types';
|
|
10
|
+
export declare class ResourceModuleModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends ResourceModuleSelect>(args: FindManyArgs<S, ResourceModuleFilter, ResourceModuleOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, ResourceModuleSelect>): QueryBuilder<{
|
|
16
|
+
resourceModules: ConnectionResult<InferSelectResult<ResourceModuleWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends ResourceModuleSelect>(args: FindFirstArgs<S, ResourceModuleFilter, ResourceModuleOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, ResourceModuleSelect>): QueryBuilder<{
|
|
21
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends ResourceModuleSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, ResourceModuleSelect>): QueryBuilder<{
|
|
27
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends ResourceModuleSelect>(args: CreateArgs<S, CreateResourceModuleInput['resourceModule']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, ResourceModuleSelect>): QueryBuilder<{
|
|
32
|
+
createResourceModule: {
|
|
33
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends ResourceModuleSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, ResourceModulePatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, ResourceModuleSelect>): QueryBuilder<{
|
|
41
|
+
updateResourceModule: {
|
|
42
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends ResourceModuleSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, ResourceModuleSelect>): QueryBuilder<{
|
|
50
|
+
deleteResourceModule: {
|
|
51
|
+
resourceModule: InferSelectResult<ResourceModuleWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class ResourceModuleModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('ResourceModule', 'resourceModules', args.select, {
|
|
10
|
+
where: args?.where,
|
|
11
|
+
orderBy: args?.orderBy,
|
|
12
|
+
first: args?.first,
|
|
13
|
+
last: args?.last,
|
|
14
|
+
after: args?.after,
|
|
15
|
+
before: args?.before,
|
|
16
|
+
offset: args?.offset,
|
|
17
|
+
}, 'ResourceModuleFilter', 'ResourceModuleOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'ResourceModule',
|
|
22
|
+
fieldName: 'resourceModules',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('ResourceModule', 'resourceModules', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
orderBy: args?.orderBy,
|
|
31
|
+
}, 'ResourceModuleFilter', 'ResourceModuleOrderBy', connectionFieldsMap);
|
|
32
|
+
return new QueryBuilder({
|
|
33
|
+
client: this.client,
|
|
34
|
+
operation: 'query',
|
|
35
|
+
operationName: 'ResourceModule',
|
|
36
|
+
fieldName: 'resourceModule',
|
|
37
|
+
document,
|
|
38
|
+
variables,
|
|
39
|
+
transform: (data) => ({
|
|
40
|
+
resourceModule: data.resourceModules?.nodes?.[0] ?? null,
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
findOne(args) {
|
|
45
|
+
const { document, variables } = buildFindManyDocument('ResourceModule', 'resourceModules', args.select, {
|
|
46
|
+
where: {
|
|
47
|
+
id: {
|
|
48
|
+
equalTo: args.id,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
first: 1,
|
|
52
|
+
}, 'ResourceModuleFilter', 'ResourceModuleOrderBy', connectionFieldsMap);
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'query',
|
|
56
|
+
operationName: 'ResourceModule',
|
|
57
|
+
fieldName: 'resourceModule',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
transform: (data) => ({
|
|
61
|
+
resourceModule: data.resourceModules?.nodes?.[0] ?? null,
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
create(args) {
|
|
66
|
+
const { document, variables } = buildCreateDocument('ResourceModule', 'createResourceModule', 'resourceModule', args.select, args.data, 'CreateResourceModuleInput', connectionFieldsMap);
|
|
67
|
+
return new QueryBuilder({
|
|
68
|
+
client: this.client,
|
|
69
|
+
operation: 'mutation',
|
|
70
|
+
operationName: 'ResourceModule',
|
|
71
|
+
fieldName: 'createResourceModule',
|
|
72
|
+
document,
|
|
73
|
+
variables,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
update(args) {
|
|
77
|
+
const { document, variables } = buildUpdateByPkDocument('ResourceModule', 'updateResourceModule', 'resourceModule', args.select, args.where.id, args.data, 'UpdateResourceModuleInput', 'id', 'resourceModulePatch', connectionFieldsMap, undefined);
|
|
78
|
+
return new QueryBuilder({
|
|
79
|
+
client: this.client,
|
|
80
|
+
operation: 'mutation',
|
|
81
|
+
operationName: 'ResourceModule',
|
|
82
|
+
fieldName: 'updateResourceModule',
|
|
83
|
+
document,
|
|
84
|
+
variables,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
delete(args) {
|
|
88
|
+
const { document, variables } = buildDeleteByPkDocument('ResourceModule', 'deleteResourceModule', 'resourceModule', {
|
|
89
|
+
id: args.where.id,
|
|
90
|
+
}, 'DeleteResourceModuleInput', args.select, connectionFieldsMap);
|
|
91
|
+
return new QueryBuilder({
|
|
92
|
+
client: this.client,
|
|
93
|
+
operation: 'mutation',
|
|
94
|
+
operationName: 'ResourceModule',
|
|
95
|
+
fieldName: 'deleteResourceModule',
|
|
96
|
+
document,
|
|
97
|
+
variables,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -24,6 +24,7 @@ const fieldSchema = {
|
|
|
24
24
|
privateApiName: 'string',
|
|
25
25
|
scope: 'string',
|
|
26
26
|
functionPrefix: 'string',
|
|
27
|
+
permissionKey: 'string',
|
|
27
28
|
createdAt: 'string',
|
|
28
29
|
};
|
|
29
30
|
const usage = '\nmerkle-store-module <command>\n\nCommands:\n list List merkleStoreModule records\n find-first Find first matching merkleStoreModule record\n get Get a merkleStoreModule by ID\n create Create a new merkleStoreModule\n update Update an existing merkleStoreModule\n delete Delete a merkleStoreModule\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
|
|
@@ -83,6 +84,7 @@ async function handleList(argv, _prompter) {
|
|
|
83
84
|
privateApiName: true,
|
|
84
85
|
scope: true,
|
|
85
86
|
functionPrefix: true,
|
|
87
|
+
permissionKey: true,
|
|
86
88
|
createdAt: true,
|
|
87
89
|
};
|
|
88
90
|
const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
|
|
@@ -116,6 +118,7 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
116
118
|
privateApiName: true,
|
|
117
119
|
scope: true,
|
|
118
120
|
functionPrefix: true,
|
|
121
|
+
permissionKey: true,
|
|
119
122
|
createdAt: true,
|
|
120
123
|
};
|
|
121
124
|
const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
|
|
@@ -161,6 +164,7 @@ async function handleGet(argv, prompter) {
|
|
|
161
164
|
privateApiName: true,
|
|
162
165
|
scope: true,
|
|
163
166
|
functionPrefix: true,
|
|
167
|
+
permissionKey: true,
|
|
164
168
|
createdAt: true,
|
|
165
169
|
},
|
|
166
170
|
})
|
|
@@ -275,6 +279,13 @@ async function handleCreate(argv, prompter) {
|
|
|
275
279
|
required: false,
|
|
276
280
|
skipPrompt: true,
|
|
277
281
|
},
|
|
282
|
+
{
|
|
283
|
+
type: 'text',
|
|
284
|
+
name: 'permissionKey',
|
|
285
|
+
message: 'permissionKey',
|
|
286
|
+
required: false,
|
|
287
|
+
skipPrompt: true,
|
|
288
|
+
},
|
|
278
289
|
]);
|
|
279
290
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
280
291
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
@@ -296,6 +307,7 @@ async function handleCreate(argv, prompter) {
|
|
|
296
307
|
privateApiName: cleanedData.privateApiName,
|
|
297
308
|
scope: cleanedData.scope,
|
|
298
309
|
functionPrefix: cleanedData.functionPrefix,
|
|
310
|
+
permissionKey: cleanedData.permissionKey,
|
|
299
311
|
},
|
|
300
312
|
select: {
|
|
301
313
|
id: true,
|
|
@@ -313,6 +325,7 @@ async function handleCreate(argv, prompter) {
|
|
|
313
325
|
privateApiName: true,
|
|
314
326
|
scope: true,
|
|
315
327
|
functionPrefix: true,
|
|
328
|
+
permissionKey: true,
|
|
316
329
|
createdAt: true,
|
|
317
330
|
},
|
|
318
331
|
})
|
|
@@ -433,6 +446,13 @@ async function handleUpdate(argv, prompter) {
|
|
|
433
446
|
required: false,
|
|
434
447
|
skipPrompt: true,
|
|
435
448
|
},
|
|
449
|
+
{
|
|
450
|
+
type: 'text',
|
|
451
|
+
name: 'permissionKey',
|
|
452
|
+
message: 'permissionKey',
|
|
453
|
+
required: false,
|
|
454
|
+
skipPrompt: true,
|
|
455
|
+
},
|
|
436
456
|
]);
|
|
437
457
|
const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
|
|
438
458
|
const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
|
|
@@ -457,6 +477,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
457
477
|
privateApiName: cleanedData.privateApiName,
|
|
458
478
|
scope: cleanedData.scope,
|
|
459
479
|
functionPrefix: cleanedData.functionPrefix,
|
|
480
|
+
permissionKey: cleanedData.permissionKey,
|
|
460
481
|
},
|
|
461
482
|
select: {
|
|
462
483
|
id: true,
|
|
@@ -474,6 +495,7 @@ async function handleUpdate(argv, prompter) {
|
|
|
474
495
|
privateApiName: true,
|
|
475
496
|
scope: true,
|
|
476
497
|
functionPrefix: true,
|
|
498
|
+
permissionKey: true,
|
|
477
499
|
createdAt: true,
|
|
478
500
|
},
|
|
479
501
|
})
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for PrincipalAuthModule
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { CLIOptions, Inquirerer } from 'inquirerer';
|
|
7
|
+
declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
|
|
8
|
+
export default _default;
|