@constructive-io/sdk 0.2.3 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/admin/orm/index.d.ts +19 -6
  2. package/admin/orm/index.js +14 -6
  3. package/admin/orm/input-types.d.ts +879 -363
  4. package/admin/orm/models/index.d.ts +7 -3
  5. package/admin/orm/models/index.js +15 -7
  6. package/admin/orm/models/orgChartEdge.d.ts +56 -0
  7. package/{public/orm/models/limitFunction.js → admin/orm/models/orgChartEdge.js} +25 -25
  8. package/admin/orm/models/orgChartEdgeGrant.d.ts +56 -0
  9. package/admin/orm/models/orgChartEdgeGrant.js +98 -0
  10. package/admin/orm/models/orgGetManagersRecord.d.ts +32 -0
  11. package/admin/orm/models/orgGetManagersRecord.js +55 -0
  12. package/admin/orm/models/orgGetSubordinatesRecord.d.ts +32 -0
  13. package/admin/orm/models/orgGetSubordinatesRecord.js +55 -0
  14. package/admin/orm/query/index.d.ts +11 -0
  15. package/admin/orm/query/index.js +24 -0
  16. package/auth/orm/index.d.ts +2 -2
  17. package/auth/orm/index.js +2 -2
  18. package/auth/orm/input-types.d.ts +163 -128
  19. package/auth/orm/models/index.d.ts +1 -1
  20. package/auth/orm/models/index.js +3 -3
  21. package/esm/admin/orm/index.d.ts +19 -6
  22. package/esm/admin/orm/index.js +14 -6
  23. package/esm/admin/orm/input-types.d.ts +879 -363
  24. package/esm/admin/orm/models/index.d.ts +7 -3
  25. package/esm/admin/orm/models/index.js +7 -3
  26. package/esm/admin/orm/models/orgChartEdge.d.ts +56 -0
  27. package/esm/{public/orm/models/procedure.js → admin/orm/models/orgChartEdge.js} +23 -23
  28. package/esm/admin/orm/models/orgChartEdgeGrant.d.ts +56 -0
  29. package/esm/admin/orm/models/orgChartEdgeGrant.js +94 -0
  30. package/esm/admin/orm/models/orgGetManagersRecord.d.ts +32 -0
  31. package/esm/admin/orm/models/orgGetManagersRecord.js +51 -0
  32. package/esm/admin/orm/models/orgGetSubordinatesRecord.d.ts +32 -0
  33. package/esm/admin/orm/models/orgGetSubordinatesRecord.js +51 -0
  34. package/esm/admin/orm/query/index.d.ts +11 -0
  35. package/esm/admin/orm/query/index.js +24 -0
  36. package/esm/auth/orm/index.d.ts +2 -2
  37. package/esm/auth/orm/index.js +2 -2
  38. package/esm/auth/orm/input-types.d.ts +163 -128
  39. package/esm/auth/orm/models/index.d.ts +1 -1
  40. package/esm/auth/orm/models/index.js +1 -1
  41. package/esm/public/orm/index.d.ts +31 -16
  42. package/esm/public/orm/index.js +26 -16
  43. package/esm/public/orm/input-types.d.ts +2255 -1110
  44. package/esm/public/orm/input-types.js +14 -3
  45. package/esm/public/orm/models/defaultPrivilege.d.ts +56 -0
  46. package/esm/public/orm/models/defaultPrivilege.js +94 -0
  47. package/esm/public/orm/models/index.d.ts +13 -8
  48. package/esm/public/orm/models/index.js +13 -8
  49. package/esm/public/orm/models/orgChartEdge.d.ts +56 -0
  50. package/esm/public/orm/models/{limitFunction.js → orgChartEdge.js} +23 -23
  51. package/esm/public/orm/models/orgChartEdgeGrant.d.ts +56 -0
  52. package/esm/public/orm/models/orgChartEdgeGrant.js +94 -0
  53. package/esm/public/orm/models/orgGetManagersRecord.d.ts +32 -0
  54. package/esm/public/orm/models/orgGetManagersRecord.js +51 -0
  55. package/esm/public/orm/models/orgGetSubordinatesRecord.d.ts +32 -0
  56. package/esm/public/orm/models/orgGetSubordinatesRecord.js +51 -0
  57. package/esm/public/orm/models/relationProvision.d.ts +56 -0
  58. package/esm/public/orm/models/relationProvision.js +94 -0
  59. package/esm/public/orm/models/secureTableProvision.d.ts +56 -0
  60. package/esm/public/orm/models/secureTableProvision.js +94 -0
  61. package/esm/public/orm/query/index.d.ts +11 -0
  62. package/esm/public/orm/query/index.js +24 -0
  63. package/package.json +6 -6
  64. package/public/orm/index.d.ts +31 -16
  65. package/public/orm/index.js +26 -16
  66. package/public/orm/input-types.d.ts +2255 -1110
  67. package/public/orm/input-types.js +14 -3
  68. package/public/orm/models/defaultPrivilege.d.ts +56 -0
  69. package/public/orm/models/defaultPrivilege.js +98 -0
  70. package/public/orm/models/index.d.ts +13 -8
  71. package/public/orm/models/index.js +29 -18
  72. package/public/orm/models/orgChartEdge.d.ts +56 -0
  73. package/public/orm/models/{procedure.js → orgChartEdge.js} +25 -25
  74. package/public/orm/models/orgChartEdgeGrant.d.ts +56 -0
  75. package/public/orm/models/orgChartEdgeGrant.js +98 -0
  76. package/public/orm/models/orgGetManagersRecord.d.ts +32 -0
  77. package/public/orm/models/orgGetManagersRecord.js +55 -0
  78. package/public/orm/models/orgGetSubordinatesRecord.d.ts +32 -0
  79. package/public/orm/models/orgGetSubordinatesRecord.js +55 -0
  80. package/public/orm/models/relationProvision.d.ts +56 -0
  81. package/public/orm/models/relationProvision.js +98 -0
  82. package/public/orm/models/secureTableProvision.d.ts +56 -0
  83. package/public/orm/models/secureTableProvision.js +98 -0
  84. package/public/orm/query/index.d.ts +11 -0
  85. package/public/orm/query/index.js +24 -0
  86. package/esm/public/orm/models/limitFunction.d.ts +0 -56
  87. package/esm/public/orm/models/procedure.d.ts +0 -56
  88. package/public/orm/models/limitFunction.d.ts +0 -56
  89. package/public/orm/models/procedure.d.ts +0 -56
@@ -3,6 +3,8 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
+ export { OrgGetManagersRecordModel } from './orgGetManagersRecord';
7
+ export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord';
6
8
  export { AppPermissionModel } from './appPermission';
7
9
  export { OrgPermissionModel } from './orgPermission';
8
10
  export { AppLevelRequirementModel } from './appLevelRequirement';
@@ -11,11 +13,12 @@ export { AppPermissionDefaultModel } from './appPermissionDefault';
11
13
  export { OrgPermissionDefaultModel } from './orgPermissionDefault';
12
14
  export { AppAdminGrantModel } from './appAdminGrant';
13
15
  export { AppOwnerGrantModel } from './appOwnerGrant';
14
- export { AppLimitDefaultModel } from './appLimitDefault';
15
- export { OrgLimitDefaultModel } from './orgLimitDefault';
16
16
  export { OrgAdminGrantModel } from './orgAdminGrant';
17
17
  export { OrgOwnerGrantModel } from './orgOwnerGrant';
18
+ export { AppLimitDefaultModel } from './appLimitDefault';
19
+ export { OrgLimitDefaultModel } from './orgLimitDefault';
18
20
  export { MembershipTypeModel } from './membershipType';
21
+ export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
19
22
  export { AppLimitModel } from './appLimit';
20
23
  export { AppAchievementModel } from './appAchievement';
21
24
  export { AppStepModel } from './appStep';
@@ -25,9 +28,10 @@ export { AppMembershipDefaultModel } from './appMembershipDefault';
25
28
  export { OrgLimitModel } from './orgLimit';
26
29
  export { OrgClaimedInviteModel } from './orgClaimedInvite';
27
30
  export { OrgGrantModel } from './orgGrant';
31
+ export { OrgChartEdgeModel } from './orgChartEdge';
28
32
  export { OrgMembershipDefaultModel } from './orgMembershipDefault';
29
- export { AppLevelModel } from './appLevel';
30
33
  export { InviteModel } from './invite';
34
+ export { AppLevelModel } from './appLevel';
31
35
  export { AppMembershipModel } from './appMembership';
32
36
  export { OrgMembershipModel } from './orgMembership';
33
37
  export { OrgInviteModel } from './orgInvite';
@@ -3,6 +3,8 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
+ export { OrgGetManagersRecordModel } from './orgGetManagersRecord';
7
+ export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord';
6
8
  export { AppPermissionModel } from './appPermission';
7
9
  export { OrgPermissionModel } from './orgPermission';
8
10
  export { AppLevelRequirementModel } from './appLevelRequirement';
@@ -11,11 +13,12 @@ export { AppPermissionDefaultModel } from './appPermissionDefault';
11
13
  export { OrgPermissionDefaultModel } from './orgPermissionDefault';
12
14
  export { AppAdminGrantModel } from './appAdminGrant';
13
15
  export { AppOwnerGrantModel } from './appOwnerGrant';
14
- export { AppLimitDefaultModel } from './appLimitDefault';
15
- export { OrgLimitDefaultModel } from './orgLimitDefault';
16
16
  export { OrgAdminGrantModel } from './orgAdminGrant';
17
17
  export { OrgOwnerGrantModel } from './orgOwnerGrant';
18
+ export { AppLimitDefaultModel } from './appLimitDefault';
19
+ export { OrgLimitDefaultModel } from './orgLimitDefault';
18
20
  export { MembershipTypeModel } from './membershipType';
21
+ export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
19
22
  export { AppLimitModel } from './appLimit';
20
23
  export { AppAchievementModel } from './appAchievement';
21
24
  export { AppStepModel } from './appStep';
@@ -25,9 +28,10 @@ export { AppMembershipDefaultModel } from './appMembershipDefault';
25
28
  export { OrgLimitModel } from './orgLimit';
26
29
  export { OrgClaimedInviteModel } from './orgClaimedInvite';
27
30
  export { OrgGrantModel } from './orgGrant';
31
+ export { OrgChartEdgeModel } from './orgChartEdge';
28
32
  export { OrgMembershipDefaultModel } from './orgMembershipDefault';
29
- export { AppLevelModel } from './appLevel';
30
33
  export { InviteModel } from './invite';
34
+ export { AppLevelModel } from './appLevel';
31
35
  export { AppMembershipModel } from './appMembership';
32
36
  export { OrgMembershipModel } from './orgMembership';
33
37
  export { OrgInviteModel } from './orgInvite';
@@ -0,0 +1,56 @@
1
+ /**
2
+ * OrgChartEdge 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 { OrgChartEdgeWithRelations, OrgChartEdgeSelect, OrgChartEdgeFilter, OrgChartEdgeOrderBy, CreateOrgChartEdgeInput, OrgChartEdgePatch } from '../input-types';
10
+ export declare class OrgChartEdgeModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends OrgChartEdgeSelect>(args: FindManyArgs<S, OrgChartEdgeFilter, OrgChartEdgeOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
16
+ orgChartEdges: ConnectionResult<InferSelectResult<OrgChartEdgeWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends OrgChartEdgeSelect>(args: FindFirstArgs<S, OrgChartEdgeFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
21
+ orgChartEdges: {
22
+ nodes: InferSelectResult<OrgChartEdgeWithRelations, S>[];
23
+ };
24
+ }>;
25
+ findOne<S extends OrgChartEdgeSelect>(args: {
26
+ id: string;
27
+ select: S;
28
+ } & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
29
+ orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S> | null;
30
+ }>;
31
+ create<S extends OrgChartEdgeSelect>(args: CreateArgs<S, CreateOrgChartEdgeInput['orgChartEdge']> & {
32
+ select: S;
33
+ } & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
34
+ createOrgChartEdge: {
35
+ orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S>;
36
+ };
37
+ }>;
38
+ update<S extends OrgChartEdgeSelect>(args: UpdateArgs<S, {
39
+ id: string;
40
+ }, OrgChartEdgePatch> & {
41
+ select: S;
42
+ } & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
43
+ updateOrgChartEdge: {
44
+ orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S>;
45
+ };
46
+ }>;
47
+ delete<S extends OrgChartEdgeSelect>(args: DeleteArgs<{
48
+ id: string;
49
+ }, S> & {
50
+ select: S;
51
+ } & StrictSelect<S, OrgChartEdgeSelect>): QueryBuilder<{
52
+ deleteOrgChartEdge: {
53
+ orgChartEdge: InferSelectResult<OrgChartEdgeWithRelations, S>;
54
+ };
55
+ }>;
56
+ }
@@ -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 ProcedureModel {
3
+ export class OrgChartEdgeModel {
4
4
  client;
5
5
  constructor(client) {
6
6
  this.client = client;
7
7
  }
8
8
  findMany(args) {
9
- const { document, variables } = buildFindManyDocument('Procedure', 'procedures', args.select, {
9
+ const { document, variables } = buildFindManyDocument('OrgChartEdge', 'orgChartEdges', args.select, {
10
10
  where: args?.where,
11
11
  orderBy: args?.orderBy,
12
12
  first: args?.first,
@@ -14,79 +14,79 @@ export class ProcedureModel {
14
14
  after: args?.after,
15
15
  before: args?.before,
16
16
  offset: args?.offset,
17
- }, 'ProcedureFilter', 'ProcedureOrderBy', connectionFieldsMap);
17
+ }, 'OrgChartEdgeFilter', 'OrgChartEdgeOrderBy', connectionFieldsMap);
18
18
  return new QueryBuilder({
19
19
  client: this.client,
20
20
  operation: 'query',
21
- operationName: 'Procedure',
22
- fieldName: 'procedures',
21
+ operationName: 'OrgChartEdge',
22
+ fieldName: 'orgChartEdges',
23
23
  document,
24
24
  variables,
25
25
  });
26
26
  }
27
27
  findFirst(args) {
28
- const { document, variables } = buildFindFirstDocument('Procedure', 'procedures', args.select, {
28
+ const { document, variables } = buildFindFirstDocument('OrgChartEdge', 'orgChartEdges', args.select, {
29
29
  where: args?.where,
30
- }, 'ProcedureFilter', connectionFieldsMap);
30
+ }, 'OrgChartEdgeFilter', connectionFieldsMap);
31
31
  return new QueryBuilder({
32
32
  client: this.client,
33
33
  operation: 'query',
34
- operationName: 'Procedure',
35
- fieldName: 'procedures',
34
+ operationName: 'OrgChartEdge',
35
+ fieldName: 'orgChartEdges',
36
36
  document,
37
37
  variables,
38
38
  });
39
39
  }
40
40
  findOne(args) {
41
- const { document, variables } = buildFindManyDocument('Procedure', 'procedures', args.select, {
41
+ const { document, variables } = buildFindManyDocument('OrgChartEdge', 'orgChartEdges', args.select, {
42
42
  where: {
43
43
  id: {
44
44
  equalTo: args.id,
45
45
  },
46
46
  },
47
47
  first: 1,
48
- }, 'ProcedureFilter', 'ProcedureOrderBy', connectionFieldsMap);
48
+ }, 'OrgChartEdgeFilter', 'OrgChartEdgeOrderBy', connectionFieldsMap);
49
49
  return new QueryBuilder({
50
50
  client: this.client,
51
51
  operation: 'query',
52
- operationName: 'Procedure',
53
- fieldName: 'procedure',
52
+ operationName: 'OrgChartEdge',
53
+ fieldName: 'orgChartEdge',
54
54
  document,
55
55
  variables,
56
56
  transform: (data) => ({
57
- procedure: data.procedures?.nodes?.[0] ?? null,
57
+ orgChartEdge: data.orgChartEdges?.nodes?.[0] ?? null,
58
58
  }),
59
59
  });
60
60
  }
61
61
  create(args) {
62
- const { document, variables } = buildCreateDocument('Procedure', 'createProcedure', 'procedure', args.select, args.data, 'CreateProcedureInput', connectionFieldsMap);
62
+ const { document, variables } = buildCreateDocument('OrgChartEdge', 'createOrgChartEdge', 'orgChartEdge', args.select, args.data, 'CreateOrgChartEdgeInput', connectionFieldsMap);
63
63
  return new QueryBuilder({
64
64
  client: this.client,
65
65
  operation: 'mutation',
66
- operationName: 'Procedure',
67
- fieldName: 'createProcedure',
66
+ operationName: 'OrgChartEdge',
67
+ fieldName: 'createOrgChartEdge',
68
68
  document,
69
69
  variables,
70
70
  });
71
71
  }
72
72
  update(args) {
73
- const { document, variables } = buildUpdateByPkDocument('Procedure', 'updateProcedure', 'procedure', args.select, args.where.id, args.data, 'UpdateProcedureInput', 'id', 'procedurePatch', connectionFieldsMap);
73
+ const { document, variables } = buildUpdateByPkDocument('OrgChartEdge', 'updateOrgChartEdge', 'orgChartEdge', args.select, args.where.id, args.data, 'UpdateOrgChartEdgeInput', 'id', 'orgChartEdgePatch', connectionFieldsMap);
74
74
  return new QueryBuilder({
75
75
  client: this.client,
76
76
  operation: 'mutation',
77
- operationName: 'Procedure',
78
- fieldName: 'updateProcedure',
77
+ operationName: 'OrgChartEdge',
78
+ fieldName: 'updateOrgChartEdge',
79
79
  document,
80
80
  variables,
81
81
  });
82
82
  }
83
83
  delete(args) {
84
- const { document, variables } = buildDeleteByPkDocument('Procedure', 'deleteProcedure', 'procedure', args.where.id, 'DeleteProcedureInput', 'id', args.select, connectionFieldsMap);
84
+ const { document, variables } = buildDeleteByPkDocument('OrgChartEdge', 'deleteOrgChartEdge', 'orgChartEdge', args.where.id, 'DeleteOrgChartEdgeInput', 'id', args.select, connectionFieldsMap);
85
85
  return new QueryBuilder({
86
86
  client: this.client,
87
87
  operation: 'mutation',
88
- operationName: 'Procedure',
89
- fieldName: 'deleteProcedure',
88
+ operationName: 'OrgChartEdge',
89
+ fieldName: 'deleteOrgChartEdge',
90
90
  document,
91
91
  variables,
92
92
  });
@@ -0,0 +1,56 @@
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> & {
19
+ select: S;
20
+ } & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
21
+ orgChartEdgeGrants: {
22
+ nodes: InferSelectResult<OrgChartEdgeGrantWithRelations, S>[];
23
+ };
24
+ }>;
25
+ findOne<S extends OrgChartEdgeGrantSelect>(args: {
26
+ id: string;
27
+ select: S;
28
+ } & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
29
+ orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S> | null;
30
+ }>;
31
+ create<S extends OrgChartEdgeGrantSelect>(args: CreateArgs<S, CreateOrgChartEdgeGrantInput['orgChartEdgeGrant']> & {
32
+ select: S;
33
+ } & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
34
+ createOrgChartEdgeGrant: {
35
+ orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
36
+ };
37
+ }>;
38
+ update<S extends OrgChartEdgeGrantSelect>(args: UpdateArgs<S, {
39
+ id: string;
40
+ }, OrgChartEdgeGrantPatch> & {
41
+ select: S;
42
+ } & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
43
+ updateOrgChartEdgeGrant: {
44
+ orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
45
+ };
46
+ }>;
47
+ delete<S extends OrgChartEdgeGrantSelect>(args: DeleteArgs<{
48
+ id: string;
49
+ }, S> & {
50
+ select: S;
51
+ } & StrictSelect<S, OrgChartEdgeGrantSelect>): QueryBuilder<{
52
+ deleteOrgChartEdgeGrant: {
53
+ orgChartEdgeGrant: InferSelectResult<OrgChartEdgeGrantWithRelations, S>;
54
+ };
55
+ }>;
56
+ }
@@ -0,0 +1,94 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class OrgChartEdgeGrantModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('OrgChartEdgeGrant', 'orgChartEdgeGrants', 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
+ }, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'OrgChartEdgeGrant',
22
+ fieldName: 'orgChartEdgeGrants',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
29
+ where: args?.where,
30
+ }, 'OrgChartEdgeGrantFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'OrgChartEdgeGrant',
35
+ fieldName: 'orgChartEdgeGrants',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ findOne(args) {
41
+ const { document, variables } = buildFindManyDocument('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
42
+ where: {
43
+ id: {
44
+ equalTo: args.id,
45
+ },
46
+ },
47
+ first: 1,
48
+ }, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', connectionFieldsMap);
49
+ return new QueryBuilder({
50
+ client: this.client,
51
+ operation: 'query',
52
+ operationName: 'OrgChartEdgeGrant',
53
+ fieldName: 'orgChartEdgeGrant',
54
+ document,
55
+ variables,
56
+ transform: (data) => ({
57
+ orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null,
58
+ }),
59
+ });
60
+ }
61
+ create(args) {
62
+ const { document, variables } = buildCreateDocument('OrgChartEdgeGrant', 'createOrgChartEdgeGrant', 'orgChartEdgeGrant', args.select, args.data, 'CreateOrgChartEdgeGrantInput', connectionFieldsMap);
63
+ return new QueryBuilder({
64
+ client: this.client,
65
+ operation: 'mutation',
66
+ operationName: 'OrgChartEdgeGrant',
67
+ fieldName: 'createOrgChartEdgeGrant',
68
+ document,
69
+ variables,
70
+ });
71
+ }
72
+ update(args) {
73
+ const { document, variables } = buildUpdateByPkDocument('OrgChartEdgeGrant', 'updateOrgChartEdgeGrant', 'orgChartEdgeGrant', args.select, args.where.id, args.data, 'UpdateOrgChartEdgeGrantInput', 'id', 'orgChartEdgeGrantPatch', connectionFieldsMap);
74
+ return new QueryBuilder({
75
+ client: this.client,
76
+ operation: 'mutation',
77
+ operationName: 'OrgChartEdgeGrant',
78
+ fieldName: 'updateOrgChartEdgeGrant',
79
+ document,
80
+ variables,
81
+ });
82
+ }
83
+ delete(args) {
84
+ const { document, variables } = buildDeleteByPkDocument('OrgChartEdgeGrant', 'deleteOrgChartEdgeGrant', 'orgChartEdgeGrant', args.where.id, 'DeleteOrgChartEdgeGrantInput', 'id', args.select, connectionFieldsMap);
85
+ return new QueryBuilder({
86
+ client: this.client,
87
+ operation: 'mutation',
88
+ operationName: 'OrgChartEdgeGrant',
89
+ fieldName: 'deleteOrgChartEdgeGrant',
90
+ document,
91
+ variables,
92
+ });
93
+ }
94
+ }
@@ -0,0 +1,32 @@
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> & {
19
+ select: S;
20
+ } & StrictSelect<S, OrgGetManagersRecordSelect>): QueryBuilder<{
21
+ orgGetManagers: {
22
+ nodes: InferSelectResult<OrgGetManagersRecordWithRelations, S>[];
23
+ };
24
+ }>;
25
+ create<S extends OrgGetManagersRecordSelect>(args: CreateArgs<S, CreateOrgGetManagersRecordInput['orgGetManagersRecord']> & {
26
+ select: S;
27
+ } & StrictSelect<S, OrgGetManagersRecordSelect>): QueryBuilder<{
28
+ createOrgGetManagersRecord: {
29
+ orgGetManagersRecord: InferSelectResult<OrgGetManagersRecordWithRelations, S>;
30
+ };
31
+ }>;
32
+ }
@@ -0,0 +1,51 @@
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
+ }, 'OrgGetManagersRecordFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'OrgGetManagersRecord',
35
+ fieldName: 'orgGetManagers',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ create(args) {
41
+ const { document, variables } = buildCreateDocument('OrgGetManagersRecord', 'createOrgGetManagersRecord', 'orgGetManagersRecord', args.select, args.data, 'CreateOrgGetManagersRecordInput', connectionFieldsMap);
42
+ return new QueryBuilder({
43
+ client: this.client,
44
+ operation: 'mutation',
45
+ operationName: 'OrgGetManagersRecord',
46
+ fieldName: 'createOrgGetManagersRecord',
47
+ document,
48
+ variables,
49
+ });
50
+ }
51
+ }
@@ -0,0 +1,32 @@
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> & {
19
+ select: S;
20
+ } & StrictSelect<S, OrgGetSubordinatesRecordSelect>): QueryBuilder<{
21
+ orgGetSubordinates: {
22
+ nodes: InferSelectResult<OrgGetSubordinatesRecordWithRelations, S>[];
23
+ };
24
+ }>;
25
+ create<S extends OrgGetSubordinatesRecordSelect>(args: CreateArgs<S, CreateOrgGetSubordinatesRecordInput['orgGetSubordinatesRecord']> & {
26
+ select: S;
27
+ } & StrictSelect<S, OrgGetSubordinatesRecordSelect>): QueryBuilder<{
28
+ createOrgGetSubordinatesRecord: {
29
+ orgGetSubordinatesRecord: InferSelectResult<OrgGetSubordinatesRecordWithRelations, S>;
30
+ };
31
+ }>;
32
+ }
@@ -0,0 +1,51 @@
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
+ }, 'OrgGetSubordinatesRecordFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'OrgGetSubordinatesRecord',
35
+ fieldName: 'orgGetSubordinates',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ create(args) {
41
+ const { document, variables } = buildCreateDocument('OrgGetSubordinatesRecord', 'createOrgGetSubordinatesRecord', 'orgGetSubordinatesRecord', args.select, args.data, 'CreateOrgGetSubordinatesRecordInput', connectionFieldsMap);
42
+ return new QueryBuilder({
43
+ client: this.client,
44
+ operation: 'mutation',
45
+ operationName: 'OrgGetSubordinatesRecord',
46
+ fieldName: 'createOrgGetSubordinatesRecord',
47
+ document,
48
+ variables,
49
+ });
50
+ }
51
+ }
@@ -12,6 +12,12 @@ export interface AppPermissionsGetPaddedMaskVariables {
12
12
  export interface OrgPermissionsGetPaddedMaskVariables {
13
13
  mask?: string;
14
14
  }
15
+ export interface OrgIsManagerOfVariables {
16
+ pEntityId?: string;
17
+ pManagerId?: string;
18
+ pUserId?: string;
19
+ pMaxDepth?: number;
20
+ }
15
21
  export interface StepsAchievedVariables {
16
22
  vlevel?: string;
17
23
  vroleId?: string;
@@ -76,6 +82,11 @@ export declare function createQueryOperations(client: OrmClient): {
76
82
  }) => QueryBuilder<{
77
83
  orgPermissionsGetPaddedMask: string | null;
78
84
  }>;
85
+ orgIsManagerOf: (args: OrgIsManagerOfVariables, options?: {
86
+ select?: Record<string, unknown>;
87
+ }) => QueryBuilder<{
88
+ orgIsManagerOf: boolean | null;
89
+ }>;
79
90
  stepsAchieved: (args: StepsAchievedVariables, options?: {
80
91
  select?: Record<string, unknown>;
81
92
  }) => QueryBuilder<{
@@ -26,6 +26,30 @@ export function createQueryOperations(client) {
26
26
  },
27
27
  ], connectionFieldsMap, undefined),
28
28
  }),
29
+ orgIsManagerOf: (args, options) => new QueryBuilder({
30
+ client,
31
+ operation: 'query',
32
+ operationName: 'OrgIsManagerOf',
33
+ fieldName: 'orgIsManagerOf',
34
+ ...buildCustomDocument('query', 'OrgIsManagerOf', 'orgIsManagerOf', options?.select, args, [
35
+ {
36
+ name: 'pEntityId',
37
+ type: 'UUID',
38
+ },
39
+ {
40
+ name: 'pManagerId',
41
+ type: 'UUID',
42
+ },
43
+ {
44
+ name: 'pUserId',
45
+ type: 'UUID',
46
+ },
47
+ {
48
+ name: 'pMaxDepth',
49
+ type: 'Int',
50
+ },
51
+ ], connectionFieldsMap, undefined),
52
+ }),
29
53
  stepsAchieved: (args, options) => new QueryBuilder({
30
54
  client,
31
55
  operation: 'query',
@@ -3,8 +3,8 @@ import { RoleTypeModel } from './models/roleType';
3
3
  import { CryptoAddressModel } from './models/cryptoAddress';
4
4
  import { PhoneNumberModel } from './models/phoneNumber';
5
5
  import { ConnectedAccountModel } from './models/connectedAccount';
6
- import { EmailModel } from './models/email';
7
6
  import { AuditLogModel } from './models/auditLog';
7
+ import { EmailModel } from './models/email';
8
8
  import { UserModel } from './models/user';
9
9
  export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
10
10
  export { GraphQLRequestError } from './client';
@@ -41,8 +41,8 @@ export declare function createClient(config: OrmClientConfig): {
41
41
  cryptoAddress: CryptoAddressModel;
42
42
  phoneNumber: PhoneNumberModel;
43
43
  connectedAccount: ConnectedAccountModel;
44
- email: EmailModel;
45
44
  auditLog: AuditLogModel;
45
+ email: EmailModel;
46
46
  user: UserModel;
47
47
  query: {
48
48
  currentIpAddress: (options?: {