@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
@@ -86,6 +86,30 @@ function createQueryOperations(client) {
86
86
  },
87
87
  ], input_types_1.connectionFieldsMap, undefined),
88
88
  }),
89
+ orgIsManagerOf: (args, options) => new query_builder_1.QueryBuilder({
90
+ client,
91
+ operation: 'query',
92
+ operationName: 'OrgIsManagerOf',
93
+ fieldName: 'orgIsManagerOf',
94
+ ...(0, query_builder_1.buildCustomDocument)('query', 'OrgIsManagerOf', 'orgIsManagerOf', options?.select, args, [
95
+ {
96
+ name: 'pEntityId',
97
+ type: 'UUID',
98
+ },
99
+ {
100
+ name: 'pManagerId',
101
+ type: 'UUID',
102
+ },
103
+ {
104
+ name: 'pUserId',
105
+ type: 'UUID',
106
+ },
107
+ {
108
+ name: 'pMaxDepth',
109
+ type: 'Int',
110
+ },
111
+ ], input_types_1.connectionFieldsMap, undefined),
112
+ }),
89
113
  appPermissionsGetMask: (args, options) => new query_builder_1.QueryBuilder({
90
114
  client,
91
115
  operation: 'query',
@@ -1,56 +0,0 @@
1
- /**
2
- * LimitFunction 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 { LimitFunctionWithRelations, LimitFunctionSelect, LimitFunctionFilter, LimitFunctionOrderBy, CreateLimitFunctionInput, LimitFunctionPatch } from '../input-types';
10
- export declare class LimitFunctionModel {
11
- private client;
12
- constructor(client: OrmClient);
13
- findMany<S extends LimitFunctionSelect>(args: FindManyArgs<S, LimitFunctionFilter, LimitFunctionOrderBy> & {
14
- select: S;
15
- } & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
16
- limitFunctions: ConnectionResult<InferSelectResult<LimitFunctionWithRelations, S>>;
17
- }>;
18
- findFirst<S extends LimitFunctionSelect>(args: FindFirstArgs<S, LimitFunctionFilter> & {
19
- select: S;
20
- } & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
21
- limitFunctions: {
22
- nodes: InferSelectResult<LimitFunctionWithRelations, S>[];
23
- };
24
- }>;
25
- findOne<S extends LimitFunctionSelect>(args: {
26
- id: string;
27
- select: S;
28
- } & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
29
- limitFunction: InferSelectResult<LimitFunctionWithRelations, S> | null;
30
- }>;
31
- create<S extends LimitFunctionSelect>(args: CreateArgs<S, CreateLimitFunctionInput['limitFunction']> & {
32
- select: S;
33
- } & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
34
- createLimitFunction: {
35
- limitFunction: InferSelectResult<LimitFunctionWithRelations, S>;
36
- };
37
- }>;
38
- update<S extends LimitFunctionSelect>(args: UpdateArgs<S, {
39
- id: string;
40
- }, LimitFunctionPatch> & {
41
- select: S;
42
- } & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
43
- updateLimitFunction: {
44
- limitFunction: InferSelectResult<LimitFunctionWithRelations, S>;
45
- };
46
- }>;
47
- delete<S extends LimitFunctionSelect>(args: DeleteArgs<{
48
- id: string;
49
- }, S> & {
50
- select: S;
51
- } & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
52
- deleteLimitFunction: {
53
- limitFunction: InferSelectResult<LimitFunctionWithRelations, S>;
54
- };
55
- }>;
56
- }
@@ -1,56 +0,0 @@
1
- /**
2
- * Procedure 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 { ProcedureWithRelations, ProcedureSelect, ProcedureFilter, ProcedureOrderBy, CreateProcedureInput, ProcedurePatch } from '../input-types';
10
- export declare class ProcedureModel {
11
- private client;
12
- constructor(client: OrmClient);
13
- findMany<S extends ProcedureSelect>(args: FindManyArgs<S, ProcedureFilter, ProcedureOrderBy> & {
14
- select: S;
15
- } & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
16
- procedures: ConnectionResult<InferSelectResult<ProcedureWithRelations, S>>;
17
- }>;
18
- findFirst<S extends ProcedureSelect>(args: FindFirstArgs<S, ProcedureFilter> & {
19
- select: S;
20
- } & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
21
- procedures: {
22
- nodes: InferSelectResult<ProcedureWithRelations, S>[];
23
- };
24
- }>;
25
- findOne<S extends ProcedureSelect>(args: {
26
- id: string;
27
- select: S;
28
- } & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
29
- procedure: InferSelectResult<ProcedureWithRelations, S> | null;
30
- }>;
31
- create<S extends ProcedureSelect>(args: CreateArgs<S, CreateProcedureInput['procedure']> & {
32
- select: S;
33
- } & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
34
- createProcedure: {
35
- procedure: InferSelectResult<ProcedureWithRelations, S>;
36
- };
37
- }>;
38
- update<S extends ProcedureSelect>(args: UpdateArgs<S, {
39
- id: string;
40
- }, ProcedurePatch> & {
41
- select: S;
42
- } & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
43
- updateProcedure: {
44
- procedure: InferSelectResult<ProcedureWithRelations, S>;
45
- };
46
- }>;
47
- delete<S extends ProcedureSelect>(args: DeleteArgs<{
48
- id: string;
49
- }, S> & {
50
- select: S;
51
- } & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
52
- deleteProcedure: {
53
- procedure: InferSelectResult<ProcedureWithRelations, S>;
54
- };
55
- }>;
56
- }
@@ -1,56 +0,0 @@
1
- /**
2
- * LimitFunction 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 { LimitFunctionWithRelations, LimitFunctionSelect, LimitFunctionFilter, LimitFunctionOrderBy, CreateLimitFunctionInput, LimitFunctionPatch } from '../input-types';
10
- export declare class LimitFunctionModel {
11
- private client;
12
- constructor(client: OrmClient);
13
- findMany<S extends LimitFunctionSelect>(args: FindManyArgs<S, LimitFunctionFilter, LimitFunctionOrderBy> & {
14
- select: S;
15
- } & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
16
- limitFunctions: ConnectionResult<InferSelectResult<LimitFunctionWithRelations, S>>;
17
- }>;
18
- findFirst<S extends LimitFunctionSelect>(args: FindFirstArgs<S, LimitFunctionFilter> & {
19
- select: S;
20
- } & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
21
- limitFunctions: {
22
- nodes: InferSelectResult<LimitFunctionWithRelations, S>[];
23
- };
24
- }>;
25
- findOne<S extends LimitFunctionSelect>(args: {
26
- id: string;
27
- select: S;
28
- } & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
29
- limitFunction: InferSelectResult<LimitFunctionWithRelations, S> | null;
30
- }>;
31
- create<S extends LimitFunctionSelect>(args: CreateArgs<S, CreateLimitFunctionInput['limitFunction']> & {
32
- select: S;
33
- } & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
34
- createLimitFunction: {
35
- limitFunction: InferSelectResult<LimitFunctionWithRelations, S>;
36
- };
37
- }>;
38
- update<S extends LimitFunctionSelect>(args: UpdateArgs<S, {
39
- id: string;
40
- }, LimitFunctionPatch> & {
41
- select: S;
42
- } & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
43
- updateLimitFunction: {
44
- limitFunction: InferSelectResult<LimitFunctionWithRelations, S>;
45
- };
46
- }>;
47
- delete<S extends LimitFunctionSelect>(args: DeleteArgs<{
48
- id: string;
49
- }, S> & {
50
- select: S;
51
- } & StrictSelect<S, LimitFunctionSelect>): QueryBuilder<{
52
- deleteLimitFunction: {
53
- limitFunction: InferSelectResult<LimitFunctionWithRelations, S>;
54
- };
55
- }>;
56
- }
@@ -1,56 +0,0 @@
1
- /**
2
- * Procedure 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 { ProcedureWithRelations, ProcedureSelect, ProcedureFilter, ProcedureOrderBy, CreateProcedureInput, ProcedurePatch } from '../input-types';
10
- export declare class ProcedureModel {
11
- private client;
12
- constructor(client: OrmClient);
13
- findMany<S extends ProcedureSelect>(args: FindManyArgs<S, ProcedureFilter, ProcedureOrderBy> & {
14
- select: S;
15
- } & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
16
- procedures: ConnectionResult<InferSelectResult<ProcedureWithRelations, S>>;
17
- }>;
18
- findFirst<S extends ProcedureSelect>(args: FindFirstArgs<S, ProcedureFilter> & {
19
- select: S;
20
- } & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
21
- procedures: {
22
- nodes: InferSelectResult<ProcedureWithRelations, S>[];
23
- };
24
- }>;
25
- findOne<S extends ProcedureSelect>(args: {
26
- id: string;
27
- select: S;
28
- } & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
29
- procedure: InferSelectResult<ProcedureWithRelations, S> | null;
30
- }>;
31
- create<S extends ProcedureSelect>(args: CreateArgs<S, CreateProcedureInput['procedure']> & {
32
- select: S;
33
- } & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
34
- createProcedure: {
35
- procedure: InferSelectResult<ProcedureWithRelations, S>;
36
- };
37
- }>;
38
- update<S extends ProcedureSelect>(args: UpdateArgs<S, {
39
- id: string;
40
- }, ProcedurePatch> & {
41
- select: S;
42
- } & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
43
- updateProcedure: {
44
- procedure: InferSelectResult<ProcedureWithRelations, S>;
45
- };
46
- }>;
47
- delete<S extends ProcedureSelect>(args: DeleteArgs<{
48
- id: string;
49
- }, S> & {
50
- select: S;
51
- } & StrictSelect<S, ProcedureSelect>): QueryBuilder<{
52
- deleteProcedure: {
53
- procedure: InferSelectResult<ProcedureWithRelations, S>;
54
- };
55
- }>;
56
- }