@constructive-io/sdk 0.22.3 → 0.22.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.
- package/admin/orm/index.d.ts +6 -20
- package/admin/orm/index.js +6 -10
- package/admin/orm/input-types.d.ts +488 -768
- package/admin/orm/models/appLimitWarning.d.ts +54 -0
- package/{public/orm/models/secretsModule.js → admin/orm/models/appLimitWarning.js} +27 -27
- package/admin/orm/models/index.d.ts +3 -5
- package/admin/orm/models/index.js +7 -11
- package/admin/orm/models/orgLimitWarning.d.ts +54 -0
- package/admin/orm/models/{appAchievement.js → orgLimitWarning.js} +27 -27
- package/admin/orm/query/index.d.ts +1 -28
- package/admin/orm/query/index.js +0 -44
- package/esm/admin/orm/index.d.ts +6 -20
- package/esm/admin/orm/index.js +6 -10
- package/esm/admin/orm/input-types.d.ts +488 -768
- package/esm/admin/orm/models/appLimitWarning.d.ts +54 -0
- package/esm/{public/orm/models/appAchievement.js → admin/orm/models/appLimitWarning.js} +25 -25
- package/esm/admin/orm/models/index.d.ts +3 -5
- package/esm/admin/orm/models/index.js +3 -5
- package/esm/admin/orm/models/orgLimitWarning.d.ts +54 -0
- package/esm/admin/orm/models/{appAchievement.js → orgLimitWarning.js} +25 -25
- package/esm/admin/orm/query/index.d.ts +1 -28
- package/esm/admin/orm/query/index.js +0 -44
- package/esm/public/orm/index.d.ts +10 -22
- package/esm/public/orm/index.js +10 -12
- package/esm/public/orm/input-types.d.ts +1024 -919
- package/esm/public/orm/input-types.js +3 -5
- package/esm/public/orm/models/appLimitWarning.d.ts +54 -0
- package/esm/{admin/orm/models/appLevel.js → public/orm/models/appLimitWarning.js} +25 -25
- package/esm/public/orm/models/eventsModule.d.ts +54 -0
- package/esm/public/orm/models/{levelsModule.js → eventsModule.js} +25 -25
- package/esm/public/orm/models/index.d.ts +5 -6
- package/esm/public/orm/models/index.js +5 -6
- package/esm/public/orm/models/orgLimitWarning.d.ts +54 -0
- package/esm/{admin/orm/models/appStep.js → public/orm/models/orgLimitWarning.js} +25 -25
- package/esm/public/orm/models/rateLimitMetersModule.d.ts +54 -0
- package/esm/{admin/orm/models/appLevelRequirement.js → public/orm/models/rateLimitMetersModule.js} +25 -25
- package/esm/public/orm/models/userStateModule.d.ts +54 -0
- package/esm/public/orm/models/userStateModule.js +100 -0
- package/esm/public/orm/mutation/index.d.ts +2 -2
- package/esm/public/orm/query/index.d.ts +1 -28
- package/esm/public/orm/query/index.js +0 -44
- package/package.json +4 -4
- package/public/orm/index.d.ts +10 -22
- package/public/orm/index.js +10 -12
- package/public/orm/input-types.d.ts +1024 -919
- package/public/orm/input-types.js +3 -5
- package/public/orm/models/appLimitWarning.d.ts +54 -0
- package/{admin/orm/models/appStep.js → public/orm/models/appLimitWarning.js} +27 -27
- package/public/orm/models/eventsModule.d.ts +54 -0
- package/public/orm/models/{levelsModule.js → eventsModule.js} +27 -27
- package/public/orm/models/index.d.ts +5 -6
- package/public/orm/models/index.js +13 -15
- package/public/orm/models/orgLimitWarning.d.ts +54 -0
- package/{admin/orm/models/appLevel.js → public/orm/models/orgLimitWarning.js} +27 -27
- package/public/orm/models/rateLimitMetersModule.d.ts +54 -0
- package/public/orm/models/{appAchievement.js → rateLimitMetersModule.js} +27 -27
- package/public/orm/models/userStateModule.d.ts +54 -0
- package/public/orm/models/userStateModule.js +104 -0
- package/public/orm/mutation/index.d.ts +2 -2
- package/public/orm/query/index.d.ts +1 -28
- package/public/orm/query/index.js +0 -44
- package/admin/orm/models/appAchievement.d.ts +0 -54
- package/admin/orm/models/appLevel.d.ts +0 -54
- package/admin/orm/models/appLevelRequirement.d.ts +0 -54
- package/admin/orm/models/appLevelRequirement.js +0 -104
- package/admin/orm/models/appStep.d.ts +0 -54
- package/esm/admin/orm/models/appAchievement.d.ts +0 -54
- package/esm/admin/orm/models/appLevel.d.ts +0 -54
- package/esm/admin/orm/models/appLevelRequirement.d.ts +0 -54
- package/esm/admin/orm/models/appStep.d.ts +0 -54
- package/esm/public/orm/models/appAchievement.d.ts +0 -54
- package/esm/public/orm/models/appLevel.d.ts +0 -54
- package/esm/public/orm/models/appLevel.js +0 -100
- package/esm/public/orm/models/appLevelRequirement.d.ts +0 -54
- package/esm/public/orm/models/appLevelRequirement.js +0 -100
- package/esm/public/orm/models/appStep.d.ts +0 -54
- package/esm/public/orm/models/appStep.js +0 -100
- package/esm/public/orm/models/levelsModule.d.ts +0 -54
- package/esm/public/orm/models/secretsModule.d.ts +0 -54
- package/esm/public/orm/models/secretsModule.js +0 -100
- package/public/orm/models/appAchievement.d.ts +0 -54
- package/public/orm/models/appLevel.d.ts +0 -54
- package/public/orm/models/appLevel.js +0 -104
- package/public/orm/models/appLevelRequirement.d.ts +0 -54
- package/public/orm/models/appLevelRequirement.js +0 -104
- package/public/orm/models/appStep.d.ts +0 -54
- package/public/orm/models/appStep.js +0 -104
- package/public/orm/models/levelsModule.d.ts +0 -54
- package/public/orm/models/secretsModule.d.ts +0 -54
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AppLimitWarning 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 { AppLimitWarningWithRelations, AppLimitWarningSelect, AppLimitWarningFilter, AppLimitWarningOrderBy, CreateAppLimitWarningInput, AppLimitWarningPatch } from '../input-types';
|
|
10
|
+
export declare class AppLimitWarningModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends AppLimitWarningSelect>(args: FindManyArgs<S, AppLimitWarningFilter, AppLimitWarningOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, AppLimitWarningSelect>): QueryBuilder<{
|
|
16
|
+
appLimitWarnings: ConnectionResult<InferSelectResult<AppLimitWarningWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends AppLimitWarningSelect>(args: FindFirstArgs<S, AppLimitWarningFilter, AppLimitWarningOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, AppLimitWarningSelect>): QueryBuilder<{
|
|
21
|
+
appLimitWarning: InferSelectResult<AppLimitWarningWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends AppLimitWarningSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, AppLimitWarningSelect>): QueryBuilder<{
|
|
27
|
+
appLimitWarning: InferSelectResult<AppLimitWarningWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends AppLimitWarningSelect>(args: CreateArgs<S, CreateAppLimitWarningInput['appLimitWarning']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, AppLimitWarningSelect>): QueryBuilder<{
|
|
32
|
+
createAppLimitWarning: {
|
|
33
|
+
appLimitWarning: InferSelectResult<AppLimitWarningWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends AppLimitWarningSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, AppLimitWarningPatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, AppLimitWarningSelect>): QueryBuilder<{
|
|
41
|
+
updateAppLimitWarning: {
|
|
42
|
+
appLimitWarning: InferSelectResult<AppLimitWarningWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends AppLimitWarningSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, AppLimitWarningSelect>): QueryBuilder<{
|
|
50
|
+
deleteAppLimitWarning: {
|
|
51
|
+
appLimitWarning: InferSelectResult<AppLimitWarningWithRelations, 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
|
|
3
|
+
export class AppLimitWarningModel {
|
|
4
4
|
client;
|
|
5
5
|
constructor(client) {
|
|
6
6
|
this.client = client;
|
|
7
7
|
}
|
|
8
8
|
findMany(args) {
|
|
9
|
-
const { document, variables } = buildFindManyDocument('
|
|
9
|
+
const { document, variables } = buildFindManyDocument('AppLimitWarning', 'appLimitWarnings', args.select, {
|
|
10
10
|
where: args?.where,
|
|
11
11
|
orderBy: args?.orderBy,
|
|
12
12
|
first: args?.first,
|
|
@@ -14,85 +14,85 @@ export class AppAchievementModel {
|
|
|
14
14
|
after: args?.after,
|
|
15
15
|
before: args?.before,
|
|
16
16
|
offset: args?.offset,
|
|
17
|
-
}, '
|
|
17
|
+
}, 'AppLimitWarningFilter', 'AppLimitWarningOrderBy', connectionFieldsMap);
|
|
18
18
|
return new QueryBuilder({
|
|
19
19
|
client: this.client,
|
|
20
20
|
operation: 'query',
|
|
21
|
-
operationName: '
|
|
22
|
-
fieldName: '
|
|
21
|
+
operationName: 'AppLimitWarning',
|
|
22
|
+
fieldName: 'appLimitWarnings',
|
|
23
23
|
document,
|
|
24
24
|
variables,
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
findFirst(args) {
|
|
28
|
-
const { document, variables } = buildFindFirstDocument('
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('AppLimitWarning', 'appLimitWarnings', args.select, {
|
|
29
29
|
where: args?.where,
|
|
30
30
|
orderBy: args?.orderBy,
|
|
31
|
-
}, '
|
|
31
|
+
}, 'AppLimitWarningFilter', 'AppLimitWarningOrderBy', connectionFieldsMap);
|
|
32
32
|
return new QueryBuilder({
|
|
33
33
|
client: this.client,
|
|
34
34
|
operation: 'query',
|
|
35
|
-
operationName: '
|
|
36
|
-
fieldName: '
|
|
35
|
+
operationName: 'AppLimitWarning',
|
|
36
|
+
fieldName: 'appLimitWarning',
|
|
37
37
|
document,
|
|
38
38
|
variables,
|
|
39
39
|
transform: (data) => ({
|
|
40
|
-
|
|
40
|
+
appLimitWarning: data.appLimitWarnings?.nodes?.[0] ?? null,
|
|
41
41
|
}),
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
findOne(args) {
|
|
45
|
-
const { document, variables } = buildFindManyDocument('
|
|
45
|
+
const { document, variables } = buildFindManyDocument('AppLimitWarning', 'appLimitWarnings', args.select, {
|
|
46
46
|
where: {
|
|
47
47
|
id: {
|
|
48
48
|
equalTo: args.id,
|
|
49
49
|
},
|
|
50
50
|
},
|
|
51
51
|
first: 1,
|
|
52
|
-
}, '
|
|
52
|
+
}, 'AppLimitWarningFilter', 'AppLimitWarningOrderBy', connectionFieldsMap);
|
|
53
53
|
return new QueryBuilder({
|
|
54
54
|
client: this.client,
|
|
55
55
|
operation: 'query',
|
|
56
|
-
operationName: '
|
|
57
|
-
fieldName: '
|
|
56
|
+
operationName: 'AppLimitWarning',
|
|
57
|
+
fieldName: 'appLimitWarning',
|
|
58
58
|
document,
|
|
59
59
|
variables,
|
|
60
60
|
transform: (data) => ({
|
|
61
|
-
|
|
61
|
+
appLimitWarning: data.appLimitWarnings?.nodes?.[0] ?? null,
|
|
62
62
|
}),
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
create(args) {
|
|
66
|
-
const { document, variables } = buildCreateDocument('
|
|
66
|
+
const { document, variables } = buildCreateDocument('AppLimitWarning', 'createAppLimitWarning', 'appLimitWarning', args.select, args.data, 'CreateAppLimitWarningInput', connectionFieldsMap);
|
|
67
67
|
return new QueryBuilder({
|
|
68
68
|
client: this.client,
|
|
69
69
|
operation: 'mutation',
|
|
70
|
-
operationName: '
|
|
71
|
-
fieldName: '
|
|
70
|
+
operationName: 'AppLimitWarning',
|
|
71
|
+
fieldName: 'createAppLimitWarning',
|
|
72
72
|
document,
|
|
73
73
|
variables,
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
update(args) {
|
|
77
|
-
const { document, variables } = buildUpdateByPkDocument('
|
|
77
|
+
const { document, variables } = buildUpdateByPkDocument('AppLimitWarning', 'updateAppLimitWarning', 'appLimitWarning', args.select, args.where.id, args.data, 'UpdateAppLimitWarningInput', 'id', 'appLimitWarningPatch', connectionFieldsMap);
|
|
78
78
|
return new QueryBuilder({
|
|
79
79
|
client: this.client,
|
|
80
80
|
operation: 'mutation',
|
|
81
|
-
operationName: '
|
|
82
|
-
fieldName: '
|
|
81
|
+
operationName: 'AppLimitWarning',
|
|
82
|
+
fieldName: 'updateAppLimitWarning',
|
|
83
83
|
document,
|
|
84
84
|
variables,
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
delete(args) {
|
|
88
|
-
const { document, variables } = buildDeleteByPkDocument('
|
|
88
|
+
const { document, variables } = buildDeleteByPkDocument('AppLimitWarning', 'deleteAppLimitWarning', 'appLimitWarning', {
|
|
89
89
|
id: args.where.id,
|
|
90
|
-
}, '
|
|
90
|
+
}, 'DeleteAppLimitWarningInput', args.select, connectionFieldsMap);
|
|
91
91
|
return new QueryBuilder({
|
|
92
92
|
client: this.client,
|
|
93
93
|
operation: 'mutation',
|
|
94
|
-
operationName: '
|
|
95
|
-
fieldName: '
|
|
94
|
+
operationName: 'AppLimitWarning',
|
|
95
|
+
fieldName: 'deleteAppLimitWarning',
|
|
96
96
|
document,
|
|
97
97
|
variables,
|
|
98
98
|
});
|
|
@@ -7,7 +7,6 @@ export { OrgGetManagersRecordModel } from './orgGetManagersRecord';
|
|
|
7
7
|
export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord';
|
|
8
8
|
export { AppPermissionModel } from './appPermission';
|
|
9
9
|
export { OrgPermissionModel } from './orgPermission';
|
|
10
|
-
export { AppLevelRequirementModel } from './appLevelRequirement';
|
|
11
10
|
export { AppLimitCreditRedemptionModel } from './appLimitCreditRedemption';
|
|
12
11
|
export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem';
|
|
13
12
|
export { AppLimitCreditModel } from './appLimitCredit';
|
|
@@ -17,8 +16,6 @@ export { AppLimitCreditCodeModel } from './appLimitCreditCode';
|
|
|
17
16
|
export { OrgPermissionDefaultModel } from './orgPermissionDefault';
|
|
18
17
|
export { AppAdminGrantModel } from './appAdminGrant';
|
|
19
18
|
export { AppOwnerGrantModel } from './appOwnerGrant';
|
|
20
|
-
export { AppAchievementModel } from './appAchievement';
|
|
21
|
-
export { AppStepModel } from './appStep';
|
|
22
19
|
export { AppLimitCapsDefaultModel } from './appLimitCapsDefault';
|
|
23
20
|
export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault';
|
|
24
21
|
export { AppLimitCapModel } from './appLimitCap';
|
|
@@ -29,6 +26,8 @@ export { MembershipTypeModel } from './membershipType';
|
|
|
29
26
|
export { AppLimitDefaultModel } from './appLimitDefault';
|
|
30
27
|
export { OrgLimitDefaultModel } from './orgLimitDefault';
|
|
31
28
|
export { OrgLimitCreditModel } from './orgLimitCredit';
|
|
29
|
+
export { AppLimitWarningModel } from './appLimitWarning';
|
|
30
|
+
export { OrgLimitWarningModel } from './orgLimitWarning';
|
|
32
31
|
export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
|
|
33
32
|
export { AppClaimedInviteModel } from './appClaimedInvite';
|
|
34
33
|
export { AppGrantModel } from './appGrant';
|
|
@@ -40,13 +39,12 @@ export { OrgLimitEventModel } from './orgLimitEvent';
|
|
|
40
39
|
export { OrgGrantModel } from './orgGrant';
|
|
41
40
|
export { OrgChartEdgeModel } from './orgChartEdge';
|
|
42
41
|
export { UsageSnapshotModel } from './usageSnapshot';
|
|
43
|
-
export { OrgMemberProfileModel } from './orgMemberProfile';
|
|
44
|
-
export { AppLevelModel } from './appLevel';
|
|
45
42
|
export { AppLimitModel } from './appLimit';
|
|
46
43
|
export { AppInviteModel } from './appInvite';
|
|
47
44
|
export { OrgMembershipSettingModel } from './orgMembershipSetting';
|
|
48
45
|
export { OrgLimitAggregateModel } from './orgLimitAggregate';
|
|
49
46
|
export { OrgLimitModel } from './orgLimit';
|
|
47
|
+
export { OrgMemberProfileModel } from './orgMemberProfile';
|
|
50
48
|
export { AppMembershipModel } from './appMembership';
|
|
51
49
|
export { OrgInviteModel } from './orgInvite';
|
|
52
50
|
export { OrgMembershipModel } from './orgMembership';
|
|
@@ -7,7 +7,6 @@ export { OrgGetManagersRecordModel } from './orgGetManagersRecord';
|
|
|
7
7
|
export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord';
|
|
8
8
|
export { AppPermissionModel } from './appPermission';
|
|
9
9
|
export { OrgPermissionModel } from './orgPermission';
|
|
10
|
-
export { AppLevelRequirementModel } from './appLevelRequirement';
|
|
11
10
|
export { AppLimitCreditRedemptionModel } from './appLimitCreditRedemption';
|
|
12
11
|
export { AppLimitCreditCodeItemModel } from './appLimitCreditCodeItem';
|
|
13
12
|
export { AppLimitCreditModel } from './appLimitCredit';
|
|
@@ -17,8 +16,6 @@ export { AppLimitCreditCodeModel } from './appLimitCreditCode';
|
|
|
17
16
|
export { OrgPermissionDefaultModel } from './orgPermissionDefault';
|
|
18
17
|
export { AppAdminGrantModel } from './appAdminGrant';
|
|
19
18
|
export { AppOwnerGrantModel } from './appOwnerGrant';
|
|
20
|
-
export { AppAchievementModel } from './appAchievement';
|
|
21
|
-
export { AppStepModel } from './appStep';
|
|
22
19
|
export { AppLimitCapsDefaultModel } from './appLimitCapsDefault';
|
|
23
20
|
export { OrgLimitCapsDefaultModel } from './orgLimitCapsDefault';
|
|
24
21
|
export { AppLimitCapModel } from './appLimitCap';
|
|
@@ -29,6 +26,8 @@ export { MembershipTypeModel } from './membershipType';
|
|
|
29
26
|
export { AppLimitDefaultModel } from './appLimitDefault';
|
|
30
27
|
export { OrgLimitDefaultModel } from './orgLimitDefault';
|
|
31
28
|
export { OrgLimitCreditModel } from './orgLimitCredit';
|
|
29
|
+
export { AppLimitWarningModel } from './appLimitWarning';
|
|
30
|
+
export { OrgLimitWarningModel } from './orgLimitWarning';
|
|
32
31
|
export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
|
|
33
32
|
export { AppClaimedInviteModel } from './appClaimedInvite';
|
|
34
33
|
export { AppGrantModel } from './appGrant';
|
|
@@ -40,13 +39,12 @@ export { OrgLimitEventModel } from './orgLimitEvent';
|
|
|
40
39
|
export { OrgGrantModel } from './orgGrant';
|
|
41
40
|
export { OrgChartEdgeModel } from './orgChartEdge';
|
|
42
41
|
export { UsageSnapshotModel } from './usageSnapshot';
|
|
43
|
-
export { OrgMemberProfileModel } from './orgMemberProfile';
|
|
44
|
-
export { AppLevelModel } from './appLevel';
|
|
45
42
|
export { AppLimitModel } from './appLimit';
|
|
46
43
|
export { AppInviteModel } from './appInvite';
|
|
47
44
|
export { OrgMembershipSettingModel } from './orgMembershipSetting';
|
|
48
45
|
export { OrgLimitAggregateModel } from './orgLimitAggregate';
|
|
49
46
|
export { OrgLimitModel } from './orgLimit';
|
|
47
|
+
export { OrgMemberProfileModel } from './orgMemberProfile';
|
|
50
48
|
export { AppMembershipModel } from './appMembership';
|
|
51
49
|
export { OrgInviteModel } from './orgInvite';
|
|
52
50
|
export { OrgMembershipModel } from './orgMembership';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrgLimitWarning 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 { OrgLimitWarningWithRelations, OrgLimitWarningSelect, OrgLimitWarningFilter, OrgLimitWarningOrderBy, CreateOrgLimitWarningInput, OrgLimitWarningPatch } from '../input-types';
|
|
10
|
+
export declare class OrgLimitWarningModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends OrgLimitWarningSelect>(args: FindManyArgs<S, OrgLimitWarningFilter, OrgLimitWarningOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, OrgLimitWarningSelect>): QueryBuilder<{
|
|
16
|
+
orgLimitWarnings: ConnectionResult<InferSelectResult<OrgLimitWarningWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends OrgLimitWarningSelect>(args: FindFirstArgs<S, OrgLimitWarningFilter, OrgLimitWarningOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, OrgLimitWarningSelect>): QueryBuilder<{
|
|
21
|
+
orgLimitWarning: InferSelectResult<OrgLimitWarningWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends OrgLimitWarningSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, OrgLimitWarningSelect>): QueryBuilder<{
|
|
27
|
+
orgLimitWarning: InferSelectResult<OrgLimitWarningWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends OrgLimitWarningSelect>(args: CreateArgs<S, CreateOrgLimitWarningInput['orgLimitWarning']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, OrgLimitWarningSelect>): QueryBuilder<{
|
|
32
|
+
createOrgLimitWarning: {
|
|
33
|
+
orgLimitWarning: InferSelectResult<OrgLimitWarningWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends OrgLimitWarningSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, OrgLimitWarningPatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, OrgLimitWarningSelect>): QueryBuilder<{
|
|
41
|
+
updateOrgLimitWarning: {
|
|
42
|
+
orgLimitWarning: InferSelectResult<OrgLimitWarningWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends OrgLimitWarningSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, OrgLimitWarningSelect>): QueryBuilder<{
|
|
50
|
+
deleteOrgLimitWarning: {
|
|
51
|
+
orgLimitWarning: InferSelectResult<OrgLimitWarningWithRelations, 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
|
|
3
|
+
export class OrgLimitWarningModel {
|
|
4
4
|
client;
|
|
5
5
|
constructor(client) {
|
|
6
6
|
this.client = client;
|
|
7
7
|
}
|
|
8
8
|
findMany(args) {
|
|
9
|
-
const { document, variables } = buildFindManyDocument('
|
|
9
|
+
const { document, variables } = buildFindManyDocument('OrgLimitWarning', 'orgLimitWarnings', args.select, {
|
|
10
10
|
where: args?.where,
|
|
11
11
|
orderBy: args?.orderBy,
|
|
12
12
|
first: args?.first,
|
|
@@ -14,85 +14,85 @@ export class AppAchievementModel {
|
|
|
14
14
|
after: args?.after,
|
|
15
15
|
before: args?.before,
|
|
16
16
|
offset: args?.offset,
|
|
17
|
-
}, '
|
|
17
|
+
}, 'OrgLimitWarningFilter', 'OrgLimitWarningOrderBy', connectionFieldsMap);
|
|
18
18
|
return new QueryBuilder({
|
|
19
19
|
client: this.client,
|
|
20
20
|
operation: 'query',
|
|
21
|
-
operationName: '
|
|
22
|
-
fieldName: '
|
|
21
|
+
operationName: 'OrgLimitWarning',
|
|
22
|
+
fieldName: 'orgLimitWarnings',
|
|
23
23
|
document,
|
|
24
24
|
variables,
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
findFirst(args) {
|
|
28
|
-
const { document, variables } = buildFindFirstDocument('
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('OrgLimitWarning', 'orgLimitWarnings', args.select, {
|
|
29
29
|
where: args?.where,
|
|
30
30
|
orderBy: args?.orderBy,
|
|
31
|
-
}, '
|
|
31
|
+
}, 'OrgLimitWarningFilter', 'OrgLimitWarningOrderBy', connectionFieldsMap);
|
|
32
32
|
return new QueryBuilder({
|
|
33
33
|
client: this.client,
|
|
34
34
|
operation: 'query',
|
|
35
|
-
operationName: '
|
|
36
|
-
fieldName: '
|
|
35
|
+
operationName: 'OrgLimitWarning',
|
|
36
|
+
fieldName: 'orgLimitWarning',
|
|
37
37
|
document,
|
|
38
38
|
variables,
|
|
39
39
|
transform: (data) => ({
|
|
40
|
-
|
|
40
|
+
orgLimitWarning: data.orgLimitWarnings?.nodes?.[0] ?? null,
|
|
41
41
|
}),
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
findOne(args) {
|
|
45
|
-
const { document, variables } = buildFindManyDocument('
|
|
45
|
+
const { document, variables } = buildFindManyDocument('OrgLimitWarning', 'orgLimitWarnings', args.select, {
|
|
46
46
|
where: {
|
|
47
47
|
id: {
|
|
48
48
|
equalTo: args.id,
|
|
49
49
|
},
|
|
50
50
|
},
|
|
51
51
|
first: 1,
|
|
52
|
-
}, '
|
|
52
|
+
}, 'OrgLimitWarningFilter', 'OrgLimitWarningOrderBy', connectionFieldsMap);
|
|
53
53
|
return new QueryBuilder({
|
|
54
54
|
client: this.client,
|
|
55
55
|
operation: 'query',
|
|
56
|
-
operationName: '
|
|
57
|
-
fieldName: '
|
|
56
|
+
operationName: 'OrgLimitWarning',
|
|
57
|
+
fieldName: 'orgLimitWarning',
|
|
58
58
|
document,
|
|
59
59
|
variables,
|
|
60
60
|
transform: (data) => ({
|
|
61
|
-
|
|
61
|
+
orgLimitWarning: data.orgLimitWarnings?.nodes?.[0] ?? null,
|
|
62
62
|
}),
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
create(args) {
|
|
66
|
-
const { document, variables } = buildCreateDocument('
|
|
66
|
+
const { document, variables } = buildCreateDocument('OrgLimitWarning', 'createOrgLimitWarning', 'orgLimitWarning', args.select, args.data, 'CreateOrgLimitWarningInput', connectionFieldsMap);
|
|
67
67
|
return new QueryBuilder({
|
|
68
68
|
client: this.client,
|
|
69
69
|
operation: 'mutation',
|
|
70
|
-
operationName: '
|
|
71
|
-
fieldName: '
|
|
70
|
+
operationName: 'OrgLimitWarning',
|
|
71
|
+
fieldName: 'createOrgLimitWarning',
|
|
72
72
|
document,
|
|
73
73
|
variables,
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
update(args) {
|
|
77
|
-
const { document, variables } = buildUpdateByPkDocument('
|
|
77
|
+
const { document, variables } = buildUpdateByPkDocument('OrgLimitWarning', 'updateOrgLimitWarning', 'orgLimitWarning', args.select, args.where.id, args.data, 'UpdateOrgLimitWarningInput', 'id', 'orgLimitWarningPatch', connectionFieldsMap);
|
|
78
78
|
return new QueryBuilder({
|
|
79
79
|
client: this.client,
|
|
80
80
|
operation: 'mutation',
|
|
81
|
-
operationName: '
|
|
82
|
-
fieldName: '
|
|
81
|
+
operationName: 'OrgLimitWarning',
|
|
82
|
+
fieldName: 'updateOrgLimitWarning',
|
|
83
83
|
document,
|
|
84
84
|
variables,
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
delete(args) {
|
|
88
|
-
const { document, variables } = buildDeleteByPkDocument('
|
|
88
|
+
const { document, variables } = buildDeleteByPkDocument('OrgLimitWarning', 'deleteOrgLimitWarning', 'orgLimitWarning', {
|
|
89
89
|
id: args.where.id,
|
|
90
|
-
}, '
|
|
90
|
+
}, 'DeleteOrgLimitWarningInput', args.select, connectionFieldsMap);
|
|
91
91
|
return new QueryBuilder({
|
|
92
92
|
client: this.client,
|
|
93
93
|
operation: 'mutation',
|
|
94
|
-
operationName: '
|
|
95
|
-
fieldName: '
|
|
94
|
+
operationName: 'OrgLimitWarning',
|
|
95
|
+
fieldName: 'deleteOrgLimitWarning',
|
|
96
96
|
document,
|
|
97
97
|
variables,
|
|
98
98
|
});
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { OrmClient } from '../client';
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
|
-
import type { AppPermissionConnection, OrgPermissionConnection
|
|
8
|
+
import type { AppPermissionConnection, OrgPermissionConnection } from '../input-types';
|
|
9
9
|
export interface AppPermissionsGetPaddedMaskVariables {
|
|
10
10
|
mask?: string;
|
|
11
11
|
}
|
|
@@ -24,10 +24,6 @@ export interface AppPermissionsGetMaskVariables {
|
|
|
24
24
|
export interface OrgPermissionsGetMaskVariables {
|
|
25
25
|
ids?: string[];
|
|
26
26
|
}
|
|
27
|
-
export interface StepsAchievedVariables {
|
|
28
|
-
level?: string;
|
|
29
|
-
roleId?: string;
|
|
30
|
-
}
|
|
31
27
|
export interface AppPermissionsGetMaskByNamesVariables {
|
|
32
28
|
names?: string[];
|
|
33
29
|
}
|
|
@@ -58,19 +54,6 @@ export interface OrgPermissionsGetByMaskVariables {
|
|
|
58
54
|
/** Read all values in the set after (below) this cursor. */
|
|
59
55
|
after?: string;
|
|
60
56
|
}
|
|
61
|
-
export interface StepsRequiredVariables {
|
|
62
|
-
level?: string;
|
|
63
|
-
roleId?: string;
|
|
64
|
-
/** Only read the first `n` values of the set. */
|
|
65
|
-
first?: number;
|
|
66
|
-
/**
|
|
67
|
-
* Skip the first `n` values from our `after` cursor, an alternative to cursor
|
|
68
|
-
* based pagination. May not be used with `last`.
|
|
69
|
-
*/
|
|
70
|
-
offset?: number;
|
|
71
|
-
/** Read all values in the set after (below) this cursor. */
|
|
72
|
-
after?: string;
|
|
73
|
-
}
|
|
74
57
|
export declare function createQueryOperations(client: OrmClient): {
|
|
75
58
|
appPermissionsGetPaddedMask: (args: AppPermissionsGetPaddedMaskVariables, options?: {
|
|
76
59
|
select?: Record<string, unknown>;
|
|
@@ -97,11 +80,6 @@ export declare function createQueryOperations(client: OrmClient): {
|
|
|
97
80
|
}) => QueryBuilder<{
|
|
98
81
|
orgPermissionsGetMask: string | null;
|
|
99
82
|
}>;
|
|
100
|
-
stepsAchieved: (args: StepsAchievedVariables, options?: {
|
|
101
|
-
select?: Record<string, unknown>;
|
|
102
|
-
}) => QueryBuilder<{
|
|
103
|
-
stepsAchieved: boolean | null;
|
|
104
|
-
}>;
|
|
105
83
|
appPermissionsGetMaskByNames: (args: AppPermissionsGetMaskByNamesVariables, options?: {
|
|
106
84
|
select?: Record<string, unknown>;
|
|
107
85
|
}) => QueryBuilder<{
|
|
@@ -122,9 +100,4 @@ export declare function createQueryOperations(client: OrmClient): {
|
|
|
122
100
|
}) => QueryBuilder<{
|
|
123
101
|
orgPermissionsGetByMask: OrgPermissionConnection | null;
|
|
124
102
|
}>;
|
|
125
|
-
stepsRequired: (args: StepsRequiredVariables, options?: {
|
|
126
|
-
select?: Record<string, unknown>;
|
|
127
|
-
}) => QueryBuilder<{
|
|
128
|
-
stepsRequired: AppLevelRequirementConnection | null;
|
|
129
|
-
}>;
|
|
130
103
|
};
|
|
@@ -74,22 +74,6 @@ export function createQueryOperations(client) {
|
|
|
74
74
|
},
|
|
75
75
|
], connectionFieldsMap, undefined),
|
|
76
76
|
}),
|
|
77
|
-
stepsAchieved: (args, options) => new QueryBuilder({
|
|
78
|
-
client,
|
|
79
|
-
operation: 'query',
|
|
80
|
-
operationName: 'StepsAchieved',
|
|
81
|
-
fieldName: 'stepsAchieved',
|
|
82
|
-
...buildCustomDocument('query', 'StepsAchieved', 'stepsAchieved', options?.select, args, [
|
|
83
|
-
{
|
|
84
|
-
name: 'level',
|
|
85
|
-
type: 'String',
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
name: 'roleId',
|
|
89
|
-
type: 'UUID',
|
|
90
|
-
},
|
|
91
|
-
], connectionFieldsMap, undefined),
|
|
92
|
-
}),
|
|
93
77
|
appPermissionsGetMaskByNames: (args, options) => new QueryBuilder({
|
|
94
78
|
client,
|
|
95
79
|
operation: 'query',
|
|
@@ -162,33 +146,5 @@ export function createQueryOperations(client) {
|
|
|
162
146
|
},
|
|
163
147
|
], connectionFieldsMap, undefined),
|
|
164
148
|
}),
|
|
165
|
-
stepsRequired: (args, options) => new QueryBuilder({
|
|
166
|
-
client,
|
|
167
|
-
operation: 'query',
|
|
168
|
-
operationName: 'StepsRequired',
|
|
169
|
-
fieldName: 'stepsRequired',
|
|
170
|
-
...buildCustomDocument('query', 'StepsRequired', 'stepsRequired', options?.select, args, [
|
|
171
|
-
{
|
|
172
|
-
name: 'level',
|
|
173
|
-
type: 'String',
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
name: 'roleId',
|
|
177
|
-
type: 'UUID',
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
name: 'first',
|
|
181
|
-
type: 'Int',
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
name: 'offset',
|
|
185
|
-
type: 'Int',
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
name: 'after',
|
|
189
|
-
type: 'Cursor',
|
|
190
|
-
},
|
|
191
|
-
], connectionFieldsMap, undefined),
|
|
192
|
-
}),
|
|
193
149
|
};
|
|
194
150
|
}
|