@constructive-io/sdk 0.2.4 → 0.3.1

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
@@ -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,98 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrgChartEdgeGrantModel = void 0;
4
+ const query_builder_1 = require("../query-builder");
5
+ const input_types_1 = require("../input-types");
6
+ class OrgChartEdgeGrantModel {
7
+ client;
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ findMany(args) {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
13
+ where: args?.where,
14
+ orderBy: args?.orderBy,
15
+ first: args?.first,
16
+ last: args?.last,
17
+ after: args?.after,
18
+ before: args?.before,
19
+ offset: args?.offset,
20
+ }, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', input_types_1.connectionFieldsMap);
21
+ return new query_builder_1.QueryBuilder({
22
+ client: this.client,
23
+ operation: 'query',
24
+ operationName: 'OrgChartEdgeGrant',
25
+ fieldName: 'orgChartEdgeGrants',
26
+ document,
27
+ variables,
28
+ });
29
+ }
30
+ findFirst(args) {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
32
+ where: args?.where,
33
+ }, 'OrgChartEdgeGrantFilter', input_types_1.connectionFieldsMap);
34
+ return new query_builder_1.QueryBuilder({
35
+ client: this.client,
36
+ operation: 'query',
37
+ operationName: 'OrgChartEdgeGrant',
38
+ fieldName: 'orgChartEdgeGrants',
39
+ document,
40
+ variables,
41
+ });
42
+ }
43
+ findOne(args) {
44
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgChartEdgeGrant', 'orgChartEdgeGrants', args.select, {
45
+ where: {
46
+ id: {
47
+ equalTo: args.id,
48
+ },
49
+ },
50
+ first: 1,
51
+ }, 'OrgChartEdgeGrantFilter', 'OrgChartEdgeGrantOrderBy', input_types_1.connectionFieldsMap);
52
+ return new query_builder_1.QueryBuilder({
53
+ client: this.client,
54
+ operation: 'query',
55
+ operationName: 'OrgChartEdgeGrant',
56
+ fieldName: 'orgChartEdgeGrant',
57
+ document,
58
+ variables,
59
+ transform: (data) => ({
60
+ orgChartEdgeGrant: data.orgChartEdgeGrants?.nodes?.[0] ?? null,
61
+ }),
62
+ });
63
+ }
64
+ create(args) {
65
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('OrgChartEdgeGrant', 'createOrgChartEdgeGrant', 'orgChartEdgeGrant', args.select, args.data, 'CreateOrgChartEdgeGrantInput', input_types_1.connectionFieldsMap);
66
+ return new query_builder_1.QueryBuilder({
67
+ client: this.client,
68
+ operation: 'mutation',
69
+ operationName: 'OrgChartEdgeGrant',
70
+ fieldName: 'createOrgChartEdgeGrant',
71
+ document,
72
+ variables,
73
+ });
74
+ }
75
+ update(args) {
76
+ const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('OrgChartEdgeGrant', 'updateOrgChartEdgeGrant', 'orgChartEdgeGrant', args.select, args.where.id, args.data, 'UpdateOrgChartEdgeGrantInput', 'id', 'orgChartEdgeGrantPatch', input_types_1.connectionFieldsMap);
77
+ return new query_builder_1.QueryBuilder({
78
+ client: this.client,
79
+ operation: 'mutation',
80
+ operationName: 'OrgChartEdgeGrant',
81
+ fieldName: 'updateOrgChartEdgeGrant',
82
+ document,
83
+ variables,
84
+ });
85
+ }
86
+ delete(args) {
87
+ const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('OrgChartEdgeGrant', 'deleteOrgChartEdgeGrant', 'orgChartEdgeGrant', args.where.id, 'DeleteOrgChartEdgeGrantInput', 'id', args.select, input_types_1.connectionFieldsMap);
88
+ return new query_builder_1.QueryBuilder({
89
+ client: this.client,
90
+ operation: 'mutation',
91
+ operationName: 'OrgChartEdgeGrant',
92
+ fieldName: 'deleteOrgChartEdgeGrant',
93
+ document,
94
+ variables,
95
+ });
96
+ }
97
+ }
98
+ exports.OrgChartEdgeGrantModel = OrgChartEdgeGrantModel;
@@ -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,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrgGetManagersRecordModel = void 0;
4
+ const query_builder_1 = require("../query-builder");
5
+ const input_types_1 = require("../input-types");
6
+ class OrgGetManagersRecordModel {
7
+ client;
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ findMany(args) {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgGetManagersRecord', 'orgGetManagers', args.select, {
13
+ where: args?.where,
14
+ orderBy: args?.orderBy,
15
+ first: args?.first,
16
+ last: args?.last,
17
+ after: args?.after,
18
+ before: args?.before,
19
+ offset: args?.offset,
20
+ }, 'OrgGetManagersRecordFilter', 'OrgGetManagersRecordsOrderBy', input_types_1.connectionFieldsMap);
21
+ return new query_builder_1.QueryBuilder({
22
+ client: this.client,
23
+ operation: 'query',
24
+ operationName: 'OrgGetManagersRecord',
25
+ fieldName: 'orgGetManagers',
26
+ document,
27
+ variables,
28
+ });
29
+ }
30
+ findFirst(args) {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('OrgGetManagersRecord', 'orgGetManagers', args.select, {
32
+ where: args?.where,
33
+ }, 'OrgGetManagersRecordFilter', input_types_1.connectionFieldsMap);
34
+ return new query_builder_1.QueryBuilder({
35
+ client: this.client,
36
+ operation: 'query',
37
+ operationName: 'OrgGetManagersRecord',
38
+ fieldName: 'orgGetManagers',
39
+ document,
40
+ variables,
41
+ });
42
+ }
43
+ create(args) {
44
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('OrgGetManagersRecord', 'createOrgGetManagersRecord', 'orgGetManagersRecord', args.select, args.data, 'CreateOrgGetManagersRecordInput', input_types_1.connectionFieldsMap);
45
+ return new query_builder_1.QueryBuilder({
46
+ client: this.client,
47
+ operation: 'mutation',
48
+ operationName: 'OrgGetManagersRecord',
49
+ fieldName: 'createOrgGetManagersRecord',
50
+ document,
51
+ variables,
52
+ });
53
+ }
54
+ }
55
+ exports.OrgGetManagersRecordModel = OrgGetManagersRecordModel;
@@ -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,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrgGetSubordinatesRecordModel = void 0;
4
+ const query_builder_1 = require("../query-builder");
5
+ const input_types_1 = require("../input-types");
6
+ class OrgGetSubordinatesRecordModel {
7
+ client;
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ findMany(args) {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('OrgGetSubordinatesRecord', 'orgGetSubordinates', args.select, {
13
+ where: args?.where,
14
+ orderBy: args?.orderBy,
15
+ first: args?.first,
16
+ last: args?.last,
17
+ after: args?.after,
18
+ before: args?.before,
19
+ offset: args?.offset,
20
+ }, 'OrgGetSubordinatesRecordFilter', 'OrgGetSubordinatesRecordsOrderBy', input_types_1.connectionFieldsMap);
21
+ return new query_builder_1.QueryBuilder({
22
+ client: this.client,
23
+ operation: 'query',
24
+ operationName: 'OrgGetSubordinatesRecord',
25
+ fieldName: 'orgGetSubordinates',
26
+ document,
27
+ variables,
28
+ });
29
+ }
30
+ findFirst(args) {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('OrgGetSubordinatesRecord', 'orgGetSubordinates', args.select, {
32
+ where: args?.where,
33
+ }, 'OrgGetSubordinatesRecordFilter', input_types_1.connectionFieldsMap);
34
+ return new query_builder_1.QueryBuilder({
35
+ client: this.client,
36
+ operation: 'query',
37
+ operationName: 'OrgGetSubordinatesRecord',
38
+ fieldName: 'orgGetSubordinates',
39
+ document,
40
+ variables,
41
+ });
42
+ }
43
+ create(args) {
44
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('OrgGetSubordinatesRecord', 'createOrgGetSubordinatesRecord', 'orgGetSubordinatesRecord', args.select, args.data, 'CreateOrgGetSubordinatesRecordInput', input_types_1.connectionFieldsMap);
45
+ return new query_builder_1.QueryBuilder({
46
+ client: this.client,
47
+ operation: 'mutation',
48
+ operationName: 'OrgGetSubordinatesRecord',
49
+ fieldName: 'createOrgGetSubordinatesRecord',
50
+ document,
51
+ variables,
52
+ });
53
+ }
54
+ }
55
+ exports.OrgGetSubordinatesRecordModel = OrgGetSubordinatesRecordModel;
@@ -0,0 +1,56 @@
1
+ /**
2
+ * RelationProvision 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 { RelationProvisionWithRelations, RelationProvisionSelect, RelationProvisionFilter, RelationProvisionOrderBy, CreateRelationProvisionInput, RelationProvisionPatch } from '../input-types';
10
+ export declare class RelationProvisionModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends RelationProvisionSelect>(args: FindManyArgs<S, RelationProvisionFilter, RelationProvisionOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, RelationProvisionSelect>): QueryBuilder<{
16
+ relationProvisions: ConnectionResult<InferSelectResult<RelationProvisionWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends RelationProvisionSelect>(args: FindFirstArgs<S, RelationProvisionFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, RelationProvisionSelect>): QueryBuilder<{
21
+ relationProvisions: {
22
+ nodes: InferSelectResult<RelationProvisionWithRelations, S>[];
23
+ };
24
+ }>;
25
+ findOne<S extends RelationProvisionSelect>(args: {
26
+ id: string;
27
+ select: S;
28
+ } & StrictSelect<S, RelationProvisionSelect>): QueryBuilder<{
29
+ relationProvision: InferSelectResult<RelationProvisionWithRelations, S> | null;
30
+ }>;
31
+ create<S extends RelationProvisionSelect>(args: CreateArgs<S, CreateRelationProvisionInput['relationProvision']> & {
32
+ select: S;
33
+ } & StrictSelect<S, RelationProvisionSelect>): QueryBuilder<{
34
+ createRelationProvision: {
35
+ relationProvision: InferSelectResult<RelationProvisionWithRelations, S>;
36
+ };
37
+ }>;
38
+ update<S extends RelationProvisionSelect>(args: UpdateArgs<S, {
39
+ id: string;
40
+ }, RelationProvisionPatch> & {
41
+ select: S;
42
+ } & StrictSelect<S, RelationProvisionSelect>): QueryBuilder<{
43
+ updateRelationProvision: {
44
+ relationProvision: InferSelectResult<RelationProvisionWithRelations, S>;
45
+ };
46
+ }>;
47
+ delete<S extends RelationProvisionSelect>(args: DeleteArgs<{
48
+ id: string;
49
+ }, S> & {
50
+ select: S;
51
+ } & StrictSelect<S, RelationProvisionSelect>): QueryBuilder<{
52
+ deleteRelationProvision: {
53
+ relationProvision: InferSelectResult<RelationProvisionWithRelations, S>;
54
+ };
55
+ }>;
56
+ }
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RelationProvisionModel = void 0;
4
+ const query_builder_1 = require("../query-builder");
5
+ const input_types_1 = require("../input-types");
6
+ class RelationProvisionModel {
7
+ client;
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ findMany(args) {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('RelationProvision', 'relationProvisions', args.select, {
13
+ where: args?.where,
14
+ orderBy: args?.orderBy,
15
+ first: args?.first,
16
+ last: args?.last,
17
+ after: args?.after,
18
+ before: args?.before,
19
+ offset: args?.offset,
20
+ }, 'RelationProvisionFilter', 'RelationProvisionOrderBy', input_types_1.connectionFieldsMap);
21
+ return new query_builder_1.QueryBuilder({
22
+ client: this.client,
23
+ operation: 'query',
24
+ operationName: 'RelationProvision',
25
+ fieldName: 'relationProvisions',
26
+ document,
27
+ variables,
28
+ });
29
+ }
30
+ findFirst(args) {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('RelationProvision', 'relationProvisions', args.select, {
32
+ where: args?.where,
33
+ }, 'RelationProvisionFilter', input_types_1.connectionFieldsMap);
34
+ return new query_builder_1.QueryBuilder({
35
+ client: this.client,
36
+ operation: 'query',
37
+ operationName: 'RelationProvision',
38
+ fieldName: 'relationProvisions',
39
+ document,
40
+ variables,
41
+ });
42
+ }
43
+ findOne(args) {
44
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('RelationProvision', 'relationProvisions', args.select, {
45
+ where: {
46
+ id: {
47
+ equalTo: args.id,
48
+ },
49
+ },
50
+ first: 1,
51
+ }, 'RelationProvisionFilter', 'RelationProvisionOrderBy', input_types_1.connectionFieldsMap);
52
+ return new query_builder_1.QueryBuilder({
53
+ client: this.client,
54
+ operation: 'query',
55
+ operationName: 'RelationProvision',
56
+ fieldName: 'relationProvision',
57
+ document,
58
+ variables,
59
+ transform: (data) => ({
60
+ relationProvision: data.relationProvisions?.nodes?.[0] ?? null,
61
+ }),
62
+ });
63
+ }
64
+ create(args) {
65
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('RelationProvision', 'createRelationProvision', 'relationProvision', args.select, args.data, 'CreateRelationProvisionInput', input_types_1.connectionFieldsMap);
66
+ return new query_builder_1.QueryBuilder({
67
+ client: this.client,
68
+ operation: 'mutation',
69
+ operationName: 'RelationProvision',
70
+ fieldName: 'createRelationProvision',
71
+ document,
72
+ variables,
73
+ });
74
+ }
75
+ update(args) {
76
+ const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('RelationProvision', 'updateRelationProvision', 'relationProvision', args.select, args.where.id, args.data, 'UpdateRelationProvisionInput', 'id', 'relationProvisionPatch', input_types_1.connectionFieldsMap);
77
+ return new query_builder_1.QueryBuilder({
78
+ client: this.client,
79
+ operation: 'mutation',
80
+ operationName: 'RelationProvision',
81
+ fieldName: 'updateRelationProvision',
82
+ document,
83
+ variables,
84
+ });
85
+ }
86
+ delete(args) {
87
+ const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('RelationProvision', 'deleteRelationProvision', 'relationProvision', args.where.id, 'DeleteRelationProvisionInput', 'id', args.select, input_types_1.connectionFieldsMap);
88
+ return new query_builder_1.QueryBuilder({
89
+ client: this.client,
90
+ operation: 'mutation',
91
+ operationName: 'RelationProvision',
92
+ fieldName: 'deleteRelationProvision',
93
+ document,
94
+ variables,
95
+ });
96
+ }
97
+ }
98
+ exports.RelationProvisionModel = RelationProvisionModel;
@@ -0,0 +1,56 @@
1
+ /**
2
+ * SecureTableProvision 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 { SecureTableProvisionWithRelations, SecureTableProvisionSelect, SecureTableProvisionFilter, SecureTableProvisionOrderBy, CreateSecureTableProvisionInput, SecureTableProvisionPatch } from '../input-types';
10
+ export declare class SecureTableProvisionModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends SecureTableProvisionSelect>(args: FindManyArgs<S, SecureTableProvisionFilter, SecureTableProvisionOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, SecureTableProvisionSelect>): QueryBuilder<{
16
+ secureTableProvisions: ConnectionResult<InferSelectResult<SecureTableProvisionWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends SecureTableProvisionSelect>(args: FindFirstArgs<S, SecureTableProvisionFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, SecureTableProvisionSelect>): QueryBuilder<{
21
+ secureTableProvisions: {
22
+ nodes: InferSelectResult<SecureTableProvisionWithRelations, S>[];
23
+ };
24
+ }>;
25
+ findOne<S extends SecureTableProvisionSelect>(args: {
26
+ id: string;
27
+ select: S;
28
+ } & StrictSelect<S, SecureTableProvisionSelect>): QueryBuilder<{
29
+ secureTableProvision: InferSelectResult<SecureTableProvisionWithRelations, S> | null;
30
+ }>;
31
+ create<S extends SecureTableProvisionSelect>(args: CreateArgs<S, CreateSecureTableProvisionInput['secureTableProvision']> & {
32
+ select: S;
33
+ } & StrictSelect<S, SecureTableProvisionSelect>): QueryBuilder<{
34
+ createSecureTableProvision: {
35
+ secureTableProvision: InferSelectResult<SecureTableProvisionWithRelations, S>;
36
+ };
37
+ }>;
38
+ update<S extends SecureTableProvisionSelect>(args: UpdateArgs<S, {
39
+ id: string;
40
+ }, SecureTableProvisionPatch> & {
41
+ select: S;
42
+ } & StrictSelect<S, SecureTableProvisionSelect>): QueryBuilder<{
43
+ updateSecureTableProvision: {
44
+ secureTableProvision: InferSelectResult<SecureTableProvisionWithRelations, S>;
45
+ };
46
+ }>;
47
+ delete<S extends SecureTableProvisionSelect>(args: DeleteArgs<{
48
+ id: string;
49
+ }, S> & {
50
+ select: S;
51
+ } & StrictSelect<S, SecureTableProvisionSelect>): QueryBuilder<{
52
+ deleteSecureTableProvision: {
53
+ secureTableProvision: InferSelectResult<SecureTableProvisionWithRelations, S>;
54
+ };
55
+ }>;
56
+ }
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SecureTableProvisionModel = void 0;
4
+ const query_builder_1 = require("../query-builder");
5
+ const input_types_1 = require("../input-types");
6
+ class SecureTableProvisionModel {
7
+ client;
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ findMany(args) {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('SecureTableProvision', 'secureTableProvisions', args.select, {
13
+ where: args?.where,
14
+ orderBy: args?.orderBy,
15
+ first: args?.first,
16
+ last: args?.last,
17
+ after: args?.after,
18
+ before: args?.before,
19
+ offset: args?.offset,
20
+ }, 'SecureTableProvisionFilter', 'SecureTableProvisionOrderBy', input_types_1.connectionFieldsMap);
21
+ return new query_builder_1.QueryBuilder({
22
+ client: this.client,
23
+ operation: 'query',
24
+ operationName: 'SecureTableProvision',
25
+ fieldName: 'secureTableProvisions',
26
+ document,
27
+ variables,
28
+ });
29
+ }
30
+ findFirst(args) {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('SecureTableProvision', 'secureTableProvisions', args.select, {
32
+ where: args?.where,
33
+ }, 'SecureTableProvisionFilter', input_types_1.connectionFieldsMap);
34
+ return new query_builder_1.QueryBuilder({
35
+ client: this.client,
36
+ operation: 'query',
37
+ operationName: 'SecureTableProvision',
38
+ fieldName: 'secureTableProvisions',
39
+ document,
40
+ variables,
41
+ });
42
+ }
43
+ findOne(args) {
44
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('SecureTableProvision', 'secureTableProvisions', args.select, {
45
+ where: {
46
+ id: {
47
+ equalTo: args.id,
48
+ },
49
+ },
50
+ first: 1,
51
+ }, 'SecureTableProvisionFilter', 'SecureTableProvisionOrderBy', input_types_1.connectionFieldsMap);
52
+ return new query_builder_1.QueryBuilder({
53
+ client: this.client,
54
+ operation: 'query',
55
+ operationName: 'SecureTableProvision',
56
+ fieldName: 'secureTableProvision',
57
+ document,
58
+ variables,
59
+ transform: (data) => ({
60
+ secureTableProvision: data.secureTableProvisions?.nodes?.[0] ?? null,
61
+ }),
62
+ });
63
+ }
64
+ create(args) {
65
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('SecureTableProvision', 'createSecureTableProvision', 'secureTableProvision', args.select, args.data, 'CreateSecureTableProvisionInput', input_types_1.connectionFieldsMap);
66
+ return new query_builder_1.QueryBuilder({
67
+ client: this.client,
68
+ operation: 'mutation',
69
+ operationName: 'SecureTableProvision',
70
+ fieldName: 'createSecureTableProvision',
71
+ document,
72
+ variables,
73
+ });
74
+ }
75
+ update(args) {
76
+ const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('SecureTableProvision', 'updateSecureTableProvision', 'secureTableProvision', args.select, args.where.id, args.data, 'UpdateSecureTableProvisionInput', 'id', 'secureTableProvisionPatch', input_types_1.connectionFieldsMap);
77
+ return new query_builder_1.QueryBuilder({
78
+ client: this.client,
79
+ operation: 'mutation',
80
+ operationName: 'SecureTableProvision',
81
+ fieldName: 'updateSecureTableProvision',
82
+ document,
83
+ variables,
84
+ });
85
+ }
86
+ delete(args) {
87
+ const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('SecureTableProvision', 'deleteSecureTableProvision', 'secureTableProvision', args.where.id, 'DeleteSecureTableProvisionInput', 'id', args.select, input_types_1.connectionFieldsMap);
88
+ return new query_builder_1.QueryBuilder({
89
+ client: this.client,
90
+ operation: 'mutation',
91
+ operationName: 'SecureTableProvision',
92
+ fieldName: 'deleteSecureTableProvision',
93
+ document,
94
+ variables,
95
+ });
96
+ }
97
+ }
98
+ exports.SecureTableProvisionModel = SecureTableProvisionModel;
@@ -22,6 +22,12 @@ export interface RevParseVariables {
22
22
  storeId?: string;
23
23
  refname?: string;
24
24
  }
25
+ export interface OrgIsManagerOfVariables {
26
+ pEntityId?: string;
27
+ pManagerId?: string;
28
+ pUserId?: string;
29
+ pMaxDepth?: number;
30
+ }
25
31
  export interface AppPermissionsGetMaskVariables {
26
32
  ids?: string[];
27
33
  }
@@ -140,6 +146,11 @@ export declare function createQueryOperations(client: OrmClient): {
140
146
  }) => QueryBuilder<{
141
147
  revParse: string | null;
142
148
  }>;
149
+ orgIsManagerOf: (args: OrgIsManagerOfVariables, options?: {
150
+ select?: Record<string, unknown>;
151
+ }) => QueryBuilder<{
152
+ orgIsManagerOf: boolean | null;
153
+ }>;
143
154
  appPermissionsGetMask: (args: AppPermissionsGetMaskVariables, options?: {
144
155
  select?: Record<string, unknown>;
145
156
  }) => QueryBuilder<{