@constructive-sdk/cli 1.9.2 → 1.9.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.
Files changed (99) hide show
  1. package/{api/cli/commands/platform-api-module.d.ts → admin/cli/commands/org-chart-edge-grant.d.ts} +1 -1
  2. package/{api/cli/commands/platform-api-module.js → admin/cli/commands/org-chart-edge-grant.js} +137 -53
  3. package/{esm/api/cli/commands/platform-api-module.d.ts → admin/cli/commands/org-chart-edge.d.ts} +1 -1
  4. package/{api/cli/commands/api-module.js → admin/cli/commands/org-chart-edge.js} +86 -60
  5. package/admin/cli/commands/org-get-managers-record.d.ts +8 -0
  6. package/admin/cli/commands/org-get-managers-record.js +126 -0
  7. package/admin/cli/commands/org-get-subordinates-record.d.ts +8 -0
  8. package/admin/cli/commands/org-get-subordinates-record.js +126 -0
  9. package/admin/cli/commands/org-is-manager-of.d.ts +8 -0
  10. package/admin/cli/commands/org-is-manager-of.js +45 -0
  11. package/admin/cli/commands.js +11 -1
  12. package/admin/cli/executor.d.ts +9 -0
  13. package/admin/orm/index.d.ts +13 -0
  14. package/admin/orm/index.js +8 -0
  15. package/admin/orm/input-types.d.ts +399 -0
  16. package/admin/orm/models/index.d.ts +4 -0
  17. package/admin/orm/models/index.js +9 -1
  18. package/admin/orm/models/orgChartEdge.d.ts +54 -0
  19. package/admin/orm/models/orgChartEdge.js +104 -0
  20. package/admin/orm/models/orgChartEdgeGrant.d.ts +54 -0
  21. package/{api/orm/models/platformApiModule.js → admin/orm/models/orgChartEdgeGrant.js} +27 -27
  22. package/admin/orm/models/orgGetManagersRecord.d.ts +30 -0
  23. package/admin/orm/models/orgGetManagersRecord.js +59 -0
  24. package/admin/orm/models/orgGetSubordinatesRecord.d.ts +30 -0
  25. package/admin/orm/models/orgGetSubordinatesRecord.js +59 -0
  26. package/admin/orm/query/index.d.ts +11 -0
  27. package/admin/orm/query/index.js +24 -0
  28. package/api/cli/commands/{api-module.d.ts → domain-type.d.ts} +1 -1
  29. package/api/cli/commands/domain-type.js +466 -0
  30. package/api/cli/commands/table.js +22 -0
  31. package/api/cli/commands.js +3 -5
  32. package/api/cli/executor.d.ts +1 -2
  33. package/api/orm/index.d.ts +2 -4
  34. package/api/orm/index.js +2 -4
  35. package/api/orm/input-types.d.ts +378 -468
  36. package/api/orm/input-types.js +2 -2
  37. package/api/orm/models/domainType.d.ts +54 -0
  38. package/api/orm/models/{apiModule.js → domainType.js} +27 -27
  39. package/api/orm/models/index.d.ts +1 -2
  40. package/api/orm/models/index.js +4 -6
  41. package/compute/cli/commands/function-api-binding.js +12 -0
  42. package/compute/cli/commands/platform-function-api-binding.js +12 -0
  43. package/compute/cli/commands/platform-function-invocation.js +22 -0
  44. package/compute/orm/input-types.d.ts +42 -3
  45. package/esm/admin/cli/commands/org-chart-edge-grant.d.ts +8 -0
  46. package/esm/{api/cli/commands/platform-api-module.js → admin/cli/commands/org-chart-edge-grant.js} +137 -53
  47. package/esm/admin/cli/commands/org-chart-edge.d.ts +8 -0
  48. package/esm/{api/cli/commands/api-module.js → admin/cli/commands/org-chart-edge.js} +86 -60
  49. package/esm/admin/cli/commands/org-get-managers-record.d.ts +8 -0
  50. package/esm/admin/cli/commands/org-get-managers-record.js +124 -0
  51. package/esm/admin/cli/commands/org-get-subordinates-record.d.ts +8 -0
  52. package/esm/admin/cli/commands/org-get-subordinates-record.js +124 -0
  53. package/esm/admin/cli/commands/org-is-manager-of.d.ts +8 -0
  54. package/esm/admin/cli/commands/org-is-manager-of.js +43 -0
  55. package/esm/admin/cli/commands.js +11 -1
  56. package/esm/admin/cli/executor.d.ts +9 -0
  57. package/esm/admin/orm/index.d.ts +13 -0
  58. package/esm/admin/orm/index.js +8 -0
  59. package/esm/admin/orm/input-types.d.ts +399 -0
  60. package/esm/admin/orm/models/index.d.ts +4 -0
  61. package/esm/admin/orm/models/index.js +4 -0
  62. package/esm/admin/orm/models/orgChartEdge.d.ts +54 -0
  63. package/esm/admin/orm/models/orgChartEdge.js +100 -0
  64. package/esm/admin/orm/models/orgChartEdgeGrant.d.ts +54 -0
  65. package/esm/{api/orm/models/platformApiModule.js → admin/orm/models/orgChartEdgeGrant.js} +25 -25
  66. package/esm/admin/orm/models/orgGetManagersRecord.d.ts +30 -0
  67. package/esm/admin/orm/models/orgGetManagersRecord.js +55 -0
  68. package/esm/admin/orm/models/orgGetSubordinatesRecord.d.ts +30 -0
  69. package/esm/admin/orm/models/orgGetSubordinatesRecord.js +55 -0
  70. package/esm/admin/orm/query/index.d.ts +11 -0
  71. package/esm/admin/orm/query/index.js +24 -0
  72. package/esm/api/cli/commands/{api-module.d.ts → domain-type.d.ts} +1 -1
  73. package/esm/api/cli/commands/domain-type.js +464 -0
  74. package/esm/api/cli/commands/table.js +22 -0
  75. package/esm/api/cli/commands.js +3 -5
  76. package/esm/api/cli/executor.d.ts +1 -2
  77. package/esm/api/orm/index.d.ts +2 -4
  78. package/esm/api/orm/index.js +2 -4
  79. package/esm/api/orm/input-types.d.ts +378 -468
  80. package/esm/api/orm/input-types.js +2 -2
  81. package/esm/api/orm/models/domainType.d.ts +54 -0
  82. package/esm/api/orm/models/{apiModule.js → domainType.js} +25 -25
  83. package/esm/api/orm/models/index.d.ts +1 -2
  84. package/esm/api/orm/models/index.js +1 -2
  85. package/esm/compute/cli/commands/function-api-binding.js +12 -0
  86. package/esm/compute/cli/commands/platform-function-api-binding.js +12 -0
  87. package/esm/compute/cli/commands/platform-function-invocation.js +22 -0
  88. package/esm/compute/orm/input-types.d.ts +42 -3
  89. package/esm/modules/cli/commands/api-surface-module.js +0 -44
  90. package/esm/modules/cli/commands/billing-module.js +22 -0
  91. package/esm/modules/orm/input-types.d.ts +9 -16
  92. package/modules/cli/commands/api-surface-module.js +0 -44
  93. package/modules/cli/commands/billing-module.js +22 -0
  94. package/modules/orm/input-types.d.ts +9 -16
  95. package/package.json +5 -5
  96. package/api/orm/models/apiModule.d.ts +0 -54
  97. package/api/orm/models/platformApiModule.d.ts +0 -54
  98. package/esm/api/orm/models/apiModule.d.ts +0 -54
  99. package/esm/api/orm/models/platformApiModule.d.ts +0 -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 OrgChartEdgeModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('OrgChartEdge', 'orgChartEdges', 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
+ }, 'OrgChartEdgeFilter', 'OrgChartEdgeOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'OrgChartEdge',
22
+ fieldName: 'orgChartEdges',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('OrgChartEdge', 'orgChartEdges', args.select, {
29
+ where: args?.where,
30
+ orderBy: args?.orderBy,
31
+ }, 'OrgChartEdgeFilter', 'OrgChartEdgeOrderBy', connectionFieldsMap);
32
+ return new QueryBuilder({
33
+ client: this.client,
34
+ operation: 'query',
35
+ operationName: 'OrgChartEdge',
36
+ fieldName: 'orgChartEdge',
37
+ document,
38
+ variables,
39
+ transform: (data) => ({
40
+ orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null,
41
+ }),
42
+ });
43
+ }
44
+ findOne(args) {
45
+ const { document, variables } = buildFindManyDocument('OrgChartEdge', 'orgChartEdges', args.select, {
46
+ where: {
47
+ id: {
48
+ equalTo: args.id,
49
+ },
50
+ },
51
+ first: 1,
52
+ }, 'OrgChartEdgeFilter', 'OrgChartEdgeOrderBy', connectionFieldsMap);
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'query',
56
+ operationName: 'OrgChartEdge',
57
+ fieldName: 'orgChartEdge',
58
+ document,
59
+ variables,
60
+ transform: (data) => ({
61
+ orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null,
62
+ }),
63
+ });
64
+ }
65
+ create(args) {
66
+ const { document, variables } = buildCreateDocument('OrgChartEdge', 'createOrgChartEdge', 'orgChartEdge', args.select, args.data, 'CreateOrgChartEdgeInput', connectionFieldsMap);
67
+ return new QueryBuilder({
68
+ client: this.client,
69
+ operation: 'mutation',
70
+ operationName: 'OrgChartEdge',
71
+ fieldName: 'createOrgChartEdge',
72
+ document,
73
+ variables,
74
+ });
75
+ }
76
+ update(args) {
77
+ const { document, variables } = buildUpdateByPkDocument('OrgChartEdge', 'updateOrgChartEdge', 'orgChartEdge', args.select, args.where.id, args.data, 'UpdateOrgChartEdgeInput', 'id', 'orgChartEdgePatch', connectionFieldsMap, undefined);
78
+ return new QueryBuilder({
79
+ client: this.client,
80
+ operation: 'mutation',
81
+ operationName: 'OrgChartEdge',
82
+ fieldName: 'updateOrgChartEdge',
83
+ document,
84
+ variables,
85
+ });
86
+ }
87
+ delete(args) {
88
+ const { document, variables } = buildDeleteByPkDocument('OrgChartEdge', 'deleteOrgChartEdge', 'orgChartEdge', {
89
+ id: args.where.id,
90
+ }, 'DeleteOrgChartEdgeInput', args.select, connectionFieldsMap);
91
+ return new QueryBuilder({
92
+ client: this.client,
93
+ operation: 'mutation',
94
+ operationName: 'OrgChartEdge',
95
+ fieldName: 'deleteOrgChartEdge',
96
+ document,
97
+ variables,
98
+ });
99
+ }
100
+ }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * OrgChartEdgeGrant 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 { OrgChartEdgeGrantWithRelations, OrgChartEdgeGrantSelect, OrgChartEdgeGrantFilter, OrgChartEdgeGrantOrderBy, CreateOrgChartEdgeGrantInput, OrgChartEdgeGrantPatch } from '../input-types';
10
+ export declare class OrgChartEdgeGrantModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends OrgChartEdgeGrantSelect>(args: FindManyArgs<S, OrgChartEdgeGrantFilter, OrgChartEdgeGrantOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
16
+ orgChartEdgeGrants: ConnectionResult<InferSelectResult<OrgChartEdgeGrantWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends OrgChartEdgeGrantSelect>(args: FindFirstArgs<S, OrgChartEdgeGrantFilter, OrgChartEdgeGrantOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
21
+ orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends OrgChartEdgeGrantSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
27
+ orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S> | null;
28
+ }>;
29
+ create<S extends OrgChartEdgeGrantSelect>(args: CreateArgs<S, CreateOrgChartEdgeGrantInput['orgChartEdgeGrant']> & {
30
+ select: S;
31
+ } & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
32
+ createOrgChartEdgeGrant: {
33
+ orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends OrgChartEdgeGrantSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, OrgChartEdgeGrantPatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
41
+ updateOrgChartEdgeGrant: {
42
+ orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends OrgChartEdgeGrantSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
50
+ deleteOrgChartEdgeGrant: {
51
+ orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
52
+ };
53
+ }>;
54
+ }
@@ -1,12 +1,12 @@
1
1
  import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
2
  import { connectionFieldsMap } from '../input-types';
3
- export class PlatformApiModuleModel {
3
+ export class OrgChartEdgeGrantModel {
4
4
  client;
5
5
  constructor(client) {
6
6
  this.client = client;
7
7
  }
8
8
  findMany(args) {
9
- const { document, variables } = buildFindManyDocument('PlatformApiModule', 'platformApiModules', args.select, {
9
+ const { document, variables } = buildFindManyDocument('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
10
10
  where: args?.where,
11
11
  orderBy: args?.orderBy,
12
12
  first: args?.first,
@@ -14,85 +14,85 @@ export class PlatformApiModuleModel {
14
14
  after: args?.after,
15
15
  before: args?.before,
16
16
  offset: args?.offset,
17
- }, 'PlatformApiModuleFilter', 'PlatformApiModuleOrderBy', connectionFieldsMap);
17
+ }, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', connectionFieldsMap);
18
18
  return new QueryBuilder({
19
19
  client: this.client,
20
20
  operation: 'query',
21
- operationName: 'PlatformApiModule',
22
- fieldName: 'platformApiModules',
21
+ operationName: 'OrgChartEdgeGrant',
22
+ fieldName: 'orgChartEdgeGrants',
23
23
  document,
24
24
  variables,
25
25
  });
26
26
  }
27
27
  findFirst(args) {
28
- const { document, variables } = buildFindFirstDocument('PlatformApiModule', 'platformApiModules', args.select, {
28
+ const { document, variables } = buildFindFirstDocument('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
29
29
  where: args?.where,
30
30
  orderBy: args?.orderBy,
31
- }, 'PlatformApiModuleFilter', 'PlatformApiModuleOrderBy', connectionFieldsMap);
31
+ }, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', connectionFieldsMap);
32
32
  return new QueryBuilder({
33
33
  client: this.client,
34
34
  operation: 'query',
35
- operationName: 'PlatformApiModule',
36
- fieldName: 'platformApiModule',
35
+ operationName: 'OrgChartEdgeGrant',
36
+ fieldName: 'orgChartEdgeGrant',
37
37
  document,
38
38
  variables,
39
39
  transform: (data) => ({
40
- platformApiModule: data.platformApiModules?.nodes?.[0] ?? null,
40
+ orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null,
41
41
  }),
42
42
  });
43
43
  }
44
44
  findOne(args) {
45
- const { document, variables } = buildFindManyDocument('PlatformApiModule', 'platformApiModules', args.select, {
45
+ const { document, variables } = buildFindManyDocument('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
46
46
  where: {
47
47
  id: {
48
48
  equalTo: args.id,
49
49
  },
50
50
  },
51
51
  first: 1,
52
- }, 'PlatformApiModuleFilter', 'PlatformApiModuleOrderBy', connectionFieldsMap);
52
+ }, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', connectionFieldsMap);
53
53
  return new QueryBuilder({
54
54
  client: this.client,
55
55
  operation: 'query',
56
- operationName: 'PlatformApiModule',
57
- fieldName: 'platformApiModule',
56
+ operationName: 'OrgChartEdgeGrant',
57
+ fieldName: 'orgChartEdgeGrant',
58
58
  document,
59
59
  variables,
60
60
  transform: (data) => ({
61
- platformApiModule: data.platformApiModules?.nodes?.[0] ?? null,
61
+ orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null,
62
62
  }),
63
63
  });
64
64
  }
65
65
  create(args) {
66
- const { document, variables } = buildCreateDocument('PlatformApiModule', 'createPlatformApiModule', 'platformApiModule', args.select, args.data, 'CreatePlatformApiModuleInput', connectionFieldsMap);
66
+ const { document, variables } = buildCreateDocument('OrgChartEdgeGrant', 'createOrgChartEdgeGrant', 'orgChartEdgeGrant', args.select, args.data, 'CreateOrgChartEdgeGrantInput', connectionFieldsMap);
67
67
  return new QueryBuilder({
68
68
  client: this.client,
69
69
  operation: 'mutation',
70
- operationName: 'PlatformApiModule',
71
- fieldName: 'createPlatformApiModule',
70
+ operationName: 'OrgChartEdgeGrant',
71
+ fieldName: 'createOrgChartEdgeGrant',
72
72
  document,
73
73
  variables,
74
74
  });
75
75
  }
76
76
  update(args) {
77
- const { document, variables } = buildUpdateByPkDocument('PlatformApiModule', 'updatePlatformApiModule', 'platformApiModule', args.select, args.where.id, args.data, 'UpdatePlatformApiModuleInput', 'id', 'platformApiModulePatch', connectionFieldsMap, undefined);
77
+ const { document, variables } = buildUpdateByPkDocument('OrgChartEdgeGrant', 'updateOrgChartEdgeGrant', 'orgChartEdgeGrant', args.select, args.where.id, args.data, 'UpdateOrgChartEdgeGrantInput', 'id', 'orgChartEdgeGrantPatch', connectionFieldsMap, undefined);
78
78
  return new QueryBuilder({
79
79
  client: this.client,
80
80
  operation: 'mutation',
81
- operationName: 'PlatformApiModule',
82
- fieldName: 'updatePlatformApiModule',
81
+ operationName: 'OrgChartEdgeGrant',
82
+ fieldName: 'updateOrgChartEdgeGrant',
83
83
  document,
84
84
  variables,
85
85
  });
86
86
  }
87
87
  delete(args) {
88
- const { document, variables } = buildDeleteByPkDocument('PlatformApiModule', 'deletePlatformApiModule', 'platformApiModule', {
88
+ const { document, variables } = buildDeleteByPkDocument('OrgChartEdgeGrant', 'deleteOrgChartEdgeGrant', 'orgChartEdgeGrant', {
89
89
  id: args.where.id,
90
- }, 'DeletePlatformApiModuleInput', args.select, connectionFieldsMap);
90
+ }, 'DeleteOrgChartEdgeGrantInput', args.select, connectionFieldsMap);
91
91
  return new QueryBuilder({
92
92
  client: this.client,
93
93
  operation: 'mutation',
94
- operationName: 'PlatformApiModule',
95
- fieldName: 'deletePlatformApiModule',
94
+ operationName: 'OrgChartEdgeGrant',
95
+ fieldName: 'deleteOrgChartEdgeGrant',
96
96
  document,
97
97
  variables,
98
98
  });
@@ -0,0 +1,30 @@
1
+ /**
2
+ * OrgGetManagersRecord 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, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { OrgGetManagersRecordWithRelations, OrgGetManagersRecordSelect, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy, CreateOrgGetManagersRecordInput } from '../input-types';
10
+ export declare class OrgGetManagersRecordModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends OrgGetManagersRecordSelect>(args: FindManyArgs<S, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, OrgGetManagersRecordSelect>): QueryBuilder<{
16
+ orgGetManagers: ConnectionResult<InferSelectResult<OrgGetManagersRecordWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends OrgGetManagersRecordSelect>(args: FindFirstArgs<S, OrgGetManagersRecordFilter, OrgGetManagersRecordsOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, OrgGetManagersRecordSelect>): QueryBuilder<{
21
+ orgGetManagersRecord: InferSelectResult<OrgGetManagersRecordWithRelations, S> | null;
22
+ }>;
23
+ create<S extends OrgGetManagersRecordSelect>(args: CreateArgs<S, CreateOrgGetManagersRecordInput['orgGetManagersRecord']> & {
24
+ select: S;
25
+ } & StrictSelect<S, OrgGetManagersRecordSelect>): QueryBuilder<{
26
+ createOrgGetManagersRecord: {
27
+ orgGetManagersRecord: InferSelectResult<OrgGetManagersRecordWithRelations, S>;
28
+ };
29
+ }>;
30
+ }
@@ -0,0 +1,55 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class OrgGetManagersRecordModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('OrgGetManagersRecord', 'orgGetManagers', 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
+ }, 'OrgGetManagersRecordFilter', 'OrgGetManagersRecordsOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'OrgGetManagersRecord',
22
+ fieldName: 'orgGetManagers',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('OrgGetManagersRecord', 'orgGetManagers', args.select, {
29
+ where: args?.where,
30
+ orderBy: args?.orderBy,
31
+ }, 'OrgGetManagersRecordFilter', 'OrgGetManagersRecordsOrderBy', connectionFieldsMap);
32
+ return new QueryBuilder({
33
+ client: this.client,
34
+ operation: 'query',
35
+ operationName: 'OrgGetManagersRecord',
36
+ fieldName: 'orgGetManagersRecord',
37
+ document,
38
+ variables,
39
+ transform: (data) => ({
40
+ orgGetManagersRecord: data.orgGetManagers?.nodes?.[0] ?? null,
41
+ }),
42
+ });
43
+ }
44
+ create(args) {
45
+ const { document, variables } = buildCreateDocument('OrgGetManagersRecord', 'createOrgGetManagersRecord', 'orgGetManagersRecord', args.select, args.data, 'CreateOrgGetManagersRecordInput', connectionFieldsMap);
46
+ return new QueryBuilder({
47
+ client: this.client,
48
+ operation: 'mutation',
49
+ operationName: 'OrgGetManagersRecord',
50
+ fieldName: 'createOrgGetManagersRecord',
51
+ document,
52
+ variables,
53
+ });
54
+ }
55
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * OrgGetSubordinatesRecord 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, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { OrgGetSubordinatesRecordWithRelations, OrgGetSubordinatesRecordSelect, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy, CreateOrgGetSubordinatesRecordInput } from '../input-types';
10
+ export declare class OrgGetSubordinatesRecordModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends OrgGetSubordinatesRecordSelect>(args: FindManyArgs<S, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, OrgGetSubordinatesRecordSelect>): QueryBuilder<{
16
+ orgGetSubordinates: ConnectionResult<InferSelectResult<OrgGetSubordinatesRecordWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends OrgGetSubordinatesRecordSelect>(args: FindFirstArgs<S, OrgGetSubordinatesRecordFilter, OrgGetSubordinatesRecordsOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, OrgGetSubordinatesRecordSelect>): QueryBuilder<{
21
+ orgGetSubordinatesRecord: InferSelectResult<OrgGetSubordinatesRecordWithRelations, S> | null;
22
+ }>;
23
+ create<S extends OrgGetSubordinatesRecordSelect>(args: CreateArgs<S, CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord']> & {
24
+ select: S;
25
+ } & StrictSelect<S, OrgGetSubordinatesRecordSelect>): QueryBuilder<{
26
+ createOrgGetSubordinatesRecord: {
27
+ orgGetSubordinatesRecord: InferSelectResult<OrgGetSubordinatesRecordWithRelations, S>;
28
+ };
29
+ }>;
30
+ }
@@ -0,0 +1,55 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class OrgGetSubordinatesRecordModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('OrgGetSubordinatesRecord', 'orgGetSubordinates', 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
+ }, 'OrgGetSubordinatesRecordFilter', 'OrgGetSubordinatesRecordsOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'OrgGetSubordinatesRecord',
22
+ fieldName: 'orgGetSubordinates',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('OrgGetSubordinatesRecord', 'orgGetSubordinates', args.select, {
29
+ where: args?.where,
30
+ orderBy: args?.orderBy,
31
+ }, 'OrgGetSubordinatesRecordFilter', 'OrgGetSubordinatesRecordsOrderBy', connectionFieldsMap);
32
+ return new QueryBuilder({
33
+ client: this.client,
34
+ operation: 'query',
35
+ operationName: 'OrgGetSubordinatesRecord',
36
+ fieldName: 'orgGetSubordinatesRecord',
37
+ document,
38
+ variables,
39
+ transform: (data) => ({
40
+ orgGetSubordinatesRecord: data.orgGetSubordinates?.nodes?.[0] ?? null,
41
+ }),
42
+ });
43
+ }
44
+ create(args) {
45
+ const { document, variables } = buildCreateDocument('OrgGetSubordinatesRecord', 'createOrgGetSubordinatesRecord', 'orgGetSubordinatesRecord', args.select, args.data, 'CreateOrgGetSubordinatesRecordInput', connectionFieldsMap);
46
+ return new QueryBuilder({
47
+ client: this.client,
48
+ operation: 'mutation',
49
+ operationName: 'OrgGetSubordinatesRecord',
50
+ fieldName: 'createOrgGetSubordinatesRecord',
51
+ document,
52
+ variables,
53
+ });
54
+ }
55
+ }
@@ -27,6 +27,12 @@ export interface AppPermissionsGetMaskByNamesVariables {
27
27
  export interface AppPermissionsGetPaddedMaskVariables {
28
28
  mask?: string;
29
29
  }
30
+ export interface OrgIsManagerOfVariables {
31
+ managerId?: string;
32
+ maxDepth?: number;
33
+ targetEntityId?: string;
34
+ userId?: string;
35
+ }
30
36
  export interface OrgPermissionsGetByMaskVariables {
31
37
  /** Read all values in the set after (below) this cursor. */
32
38
  after?: string;
@@ -69,6 +75,11 @@ export declare function createQueryOperations(client: OrmClient): {
69
75
  }) => QueryBuilder<{
70
76
  appPermissionsGetPaddedMask: string | null;
71
77
  }>;
78
+ orgIsManagerOf: (args: OrgIsManagerOfVariables, options?: {
79
+ select?: Record<string, unknown>;
80
+ }) => QueryBuilder<{
81
+ orgIsManagerOf: boolean | null;
82
+ }>;
72
83
  orgPermissionsGetByMask: (args: OrgPermissionsGetByMaskVariables, options?: {
73
84
  select?: Record<string, unknown>;
74
85
  }) => QueryBuilder<{
@@ -62,6 +62,30 @@ export function createQueryOperations(client) {
62
62
  },
63
63
  ], connectionFieldsMap, undefined),
64
64
  }),
65
+ orgIsManagerOf: (args, options) => new QueryBuilder({
66
+ client,
67
+ operation: 'query',
68
+ operationName: 'OrgIsManagerOf',
69
+ fieldName: 'orgIsManagerOf',
70
+ ...buildCustomDocument('query', 'OrgIsManagerOf', 'orgIsManagerOf', options?.select, args, [
71
+ {
72
+ name: 'managerId',
73
+ type: 'UUID',
74
+ },
75
+ {
76
+ name: 'maxDepth',
77
+ type: 'Int',
78
+ },
79
+ {
80
+ name: 'targetEntityId',
81
+ type: 'UUID',
82
+ },
83
+ {
84
+ name: 'userId',
85
+ type: 'UUID',
86
+ },
87
+ ], connectionFieldsMap, undefined),
88
+ }),
65
89
  orgPermissionsGetByMask: (args, options) => new QueryBuilder({
66
90
  client,
67
91
  operation: 'query',
@@ -1,5 +1,5 @@
1
1
  /**
2
- * CLI commands for ApiModule
2
+ * CLI commands for DomainType
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */