@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
|
@@ -44,14 +44,14 @@ export const connectionFieldsMap = {
|
|
|
44
44
|
emailsModules: 'EmailsModule',
|
|
45
45
|
encryptedSecretsModules: 'EncryptedSecretsModule',
|
|
46
46
|
invitesModules: 'InvitesModule',
|
|
47
|
-
|
|
47
|
+
eventsModules: 'EventsModule',
|
|
48
48
|
limitsModules: 'LimitsModule',
|
|
49
49
|
membershipTypesModules: 'MembershipTypesModule',
|
|
50
50
|
membershipsModules: 'MembershipsModule',
|
|
51
51
|
permissionsModules: 'PermissionsModule',
|
|
52
52
|
phoneNumbersModules: 'PhoneNumbersModule',
|
|
53
53
|
profilesModules: 'ProfilesModule',
|
|
54
|
-
|
|
54
|
+
userStateModules: 'UserStateModule',
|
|
55
55
|
sessionsModules: 'SessionsModule',
|
|
56
56
|
userAuthModules: 'UserAuthModule',
|
|
57
57
|
usersModules: 'UsersModule',
|
|
@@ -192,9 +192,7 @@ export const connectionFieldsMap = {
|
|
|
192
192
|
orgLimitCreditsByActorId: 'OrgLimitCredit',
|
|
193
193
|
orgLimitCreditsByEntityId: 'OrgLimitCredit',
|
|
194
194
|
orgLimitAggregatesByEntityId: 'OrgLimitAggregate',
|
|
195
|
-
|
|
196
|
-
appAchievementsByActorId: 'AppAchievement',
|
|
197
|
-
ownedAppLevels: 'AppLevel',
|
|
195
|
+
orgLimitWarningsByEntityId: 'OrgLimitWarning',
|
|
198
196
|
ownedEmails: 'Email',
|
|
199
197
|
ownedPhoneNumbers: 'PhoneNumber',
|
|
200
198
|
ownedCryptoAddresses: 'CryptoAddress',
|
|
@@ -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 AppLevelModel {
|
|
|
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
|
});
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EventsModule 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 { EventsModuleWithRelations, EventsModuleSelect, EventsModuleFilter, EventsModuleOrderBy, CreateEventsModuleInput, EventsModulePatch } from '../input-types';
|
|
10
|
+
export declare class EventsModuleModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends EventsModuleSelect>(args: FindManyArgs<S, EventsModuleFilter, EventsModuleOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, EventsModuleSelect>): QueryBuilder<{
|
|
16
|
+
eventsModules: ConnectionResult<InferSelectResult<EventsModuleWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends EventsModuleSelect>(args: FindFirstArgs<S, EventsModuleFilter, EventsModuleOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, EventsModuleSelect>): QueryBuilder<{
|
|
21
|
+
eventsModule: InferSelectResult<EventsModuleWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends EventsModuleSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, EventsModuleSelect>): QueryBuilder<{
|
|
27
|
+
eventsModule: InferSelectResult<EventsModuleWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends EventsModuleSelect>(args: CreateArgs<S, CreateEventsModuleInput['eventsModule']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, EventsModuleSelect>): QueryBuilder<{
|
|
32
|
+
createEventsModule: {
|
|
33
|
+
eventsModule: InferSelectResult<EventsModuleWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends EventsModuleSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, EventsModulePatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, EventsModuleSelect>): QueryBuilder<{
|
|
41
|
+
updateEventsModule: {
|
|
42
|
+
eventsModule: InferSelectResult<EventsModuleWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends EventsModuleSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, EventsModuleSelect>): QueryBuilder<{
|
|
50
|
+
deleteEventsModule: {
|
|
51
|
+
eventsModule: InferSelectResult<EventsModuleWithRelations, 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 EventsModuleModel {
|
|
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('EventsModule', 'eventsModules', args.select, {
|
|
10
10
|
where: args?.where,
|
|
11
11
|
orderBy: args?.orderBy,
|
|
12
12
|
first: args?.first,
|
|
@@ -14,85 +14,85 @@ export class LevelsModuleModel {
|
|
|
14
14
|
after: args?.after,
|
|
15
15
|
before: args?.before,
|
|
16
16
|
offset: args?.offset,
|
|
17
|
-
}, '
|
|
17
|
+
}, 'EventsModuleFilter', 'EventsModuleOrderBy', connectionFieldsMap);
|
|
18
18
|
return new QueryBuilder({
|
|
19
19
|
client: this.client,
|
|
20
20
|
operation: 'query',
|
|
21
|
-
operationName: '
|
|
22
|
-
fieldName: '
|
|
21
|
+
operationName: 'EventsModule',
|
|
22
|
+
fieldName: 'eventsModules',
|
|
23
23
|
document,
|
|
24
24
|
variables,
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
findFirst(args) {
|
|
28
|
-
const { document, variables } = buildFindFirstDocument('
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('EventsModule', 'eventsModules', args.select, {
|
|
29
29
|
where: args?.where,
|
|
30
30
|
orderBy: args?.orderBy,
|
|
31
|
-
}, '
|
|
31
|
+
}, 'EventsModuleFilter', 'EventsModuleOrderBy', connectionFieldsMap);
|
|
32
32
|
return new QueryBuilder({
|
|
33
33
|
client: this.client,
|
|
34
34
|
operation: 'query',
|
|
35
|
-
operationName: '
|
|
36
|
-
fieldName: '
|
|
35
|
+
operationName: 'EventsModule',
|
|
36
|
+
fieldName: 'eventsModule',
|
|
37
37
|
document,
|
|
38
38
|
variables,
|
|
39
39
|
transform: (data) => ({
|
|
40
|
-
|
|
40
|
+
eventsModule: data.eventsModules?.nodes?.[0] ?? null,
|
|
41
41
|
}),
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
findOne(args) {
|
|
45
|
-
const { document, variables } = buildFindManyDocument('
|
|
45
|
+
const { document, variables } = buildFindManyDocument('EventsModule', 'eventsModules', args.select, {
|
|
46
46
|
where: {
|
|
47
47
|
id: {
|
|
48
48
|
equalTo: args.id,
|
|
49
49
|
},
|
|
50
50
|
},
|
|
51
51
|
first: 1,
|
|
52
|
-
}, '
|
|
52
|
+
}, 'EventsModuleFilter', 'EventsModuleOrderBy', connectionFieldsMap);
|
|
53
53
|
return new QueryBuilder({
|
|
54
54
|
client: this.client,
|
|
55
55
|
operation: 'query',
|
|
56
|
-
operationName: '
|
|
57
|
-
fieldName: '
|
|
56
|
+
operationName: 'EventsModule',
|
|
57
|
+
fieldName: 'eventsModule',
|
|
58
58
|
document,
|
|
59
59
|
variables,
|
|
60
60
|
transform: (data) => ({
|
|
61
|
-
|
|
61
|
+
eventsModule: data.eventsModules?.nodes?.[0] ?? null,
|
|
62
62
|
}),
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
create(args) {
|
|
66
|
-
const { document, variables } = buildCreateDocument('
|
|
66
|
+
const { document, variables } = buildCreateDocument('EventsModule', 'createEventsModule', 'eventsModule', args.select, args.data, 'CreateEventsModuleInput', connectionFieldsMap);
|
|
67
67
|
return new QueryBuilder({
|
|
68
68
|
client: this.client,
|
|
69
69
|
operation: 'mutation',
|
|
70
|
-
operationName: '
|
|
71
|
-
fieldName: '
|
|
70
|
+
operationName: 'EventsModule',
|
|
71
|
+
fieldName: 'createEventsModule',
|
|
72
72
|
document,
|
|
73
73
|
variables,
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
update(args) {
|
|
77
|
-
const { document, variables } = buildUpdateByPkDocument('
|
|
77
|
+
const { document, variables } = buildUpdateByPkDocument('EventsModule', 'updateEventsModule', 'eventsModule', args.select, args.where.id, args.data, 'UpdateEventsModuleInput', 'id', 'eventsModulePatch', connectionFieldsMap);
|
|
78
78
|
return new QueryBuilder({
|
|
79
79
|
client: this.client,
|
|
80
80
|
operation: 'mutation',
|
|
81
|
-
operationName: '
|
|
82
|
-
fieldName: '
|
|
81
|
+
operationName: 'EventsModule',
|
|
82
|
+
fieldName: 'updateEventsModule',
|
|
83
83
|
document,
|
|
84
84
|
variables,
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
delete(args) {
|
|
88
|
-
const { document, variables } = buildDeleteByPkDocument('
|
|
88
|
+
const { document, variables } = buildDeleteByPkDocument('EventsModule', 'deleteEventsModule', 'eventsModule', {
|
|
89
89
|
id: args.where.id,
|
|
90
|
-
}, '
|
|
90
|
+
}, 'DeleteEventsModuleInput', args.select, connectionFieldsMap);
|
|
91
91
|
return new QueryBuilder({
|
|
92
92
|
client: this.client,
|
|
93
93
|
operation: 'mutation',
|
|
94
|
-
operationName: '
|
|
95
|
-
fieldName: '
|
|
94
|
+
operationName: 'EventsModule',
|
|
95
|
+
fieldName: 'deleteEventsModule',
|
|
96
96
|
document,
|
|
97
97
|
variables,
|
|
98
98
|
});
|
|
@@ -9,7 +9,6 @@ export { GetAllRecordModel } from './getAllRecord';
|
|
|
9
9
|
export { AppPermissionModel } from './appPermission';
|
|
10
10
|
export { OrgPermissionModel } from './orgPermission';
|
|
11
11
|
export { ObjectModel } from './object';
|
|
12
|
-
export { AppLevelRequirementModel } from './appLevelRequirement';
|
|
13
12
|
export { DatabaseModel } from './database';
|
|
14
13
|
export { SchemaModel } from './schema';
|
|
15
14
|
export { TableModel } from './table';
|
|
@@ -60,14 +59,14 @@ export { DenormalizedTableFieldModel } from './denormalizedTableField';
|
|
|
60
59
|
export { EmailsModuleModel } from './emailsModule';
|
|
61
60
|
export { EncryptedSecretsModuleModel } from './encryptedSecretsModule';
|
|
62
61
|
export { InvitesModuleModel } from './invitesModule';
|
|
63
|
-
export {
|
|
62
|
+
export { EventsModuleModel } from './eventsModule';
|
|
64
63
|
export { LimitsModuleModel } from './limitsModule';
|
|
65
64
|
export { MembershipTypesModuleModel } from './membershipTypesModule';
|
|
66
65
|
export { MembershipsModuleModel } from './membershipsModule';
|
|
67
66
|
export { PermissionsModuleModel } from './permissionsModule';
|
|
68
67
|
export { PhoneNumbersModuleModel } from './phoneNumbersModule';
|
|
69
68
|
export { ProfilesModuleModel } from './profilesModule';
|
|
70
|
-
export {
|
|
69
|
+
export { UserStateModuleModel } from './userStateModule';
|
|
71
70
|
export { SessionsModuleModel } from './sessionsModule';
|
|
72
71
|
export { UserAuthModuleModel } from './userAuthModule';
|
|
73
72
|
export { UsersModuleModel } from './usersModule';
|
|
@@ -99,9 +98,7 @@ export { AppLimitCreditRedemptionModel } from './appLimitCreditRedemption';
|
|
|
99
98
|
export { OrgLimitModel } from './orgLimit';
|
|
100
99
|
export { OrgLimitCreditModel } from './orgLimitCredit';
|
|
101
100
|
export { OrgLimitAggregateModel } from './orgLimitAggregate';
|
|
102
|
-
export {
|
|
103
|
-
export { AppAchievementModel } from './appAchievement';
|
|
104
|
-
export { AppLevelModel } from './appLevel';
|
|
101
|
+
export { OrgLimitWarningModel } from './orgLimitWarning';
|
|
105
102
|
export { EmailModel } from './email';
|
|
106
103
|
export { PhoneNumberModel } from './phoneNumber';
|
|
107
104
|
export { CryptoAddressModel } from './cryptoAddress';
|
|
@@ -130,6 +127,7 @@ export { DevicesModuleModel } from './devicesModule';
|
|
|
130
127
|
export { NodeTypeRegistryModel } from './nodeTypeRegistry';
|
|
131
128
|
export { AppLimitDefaultModel } from './appLimitDefault';
|
|
132
129
|
export { OrgLimitDefaultModel } from './orgLimitDefault';
|
|
130
|
+
export { AppLimitWarningModel } from './appLimitWarning';
|
|
133
131
|
export { UserConnectedAccountModel } from './userConnectedAccount';
|
|
134
132
|
export { CommitModel } from './commit';
|
|
135
133
|
export { PubkeySettingModel } from './pubkeySetting';
|
|
@@ -141,6 +139,7 @@ export { RlsSettingModel } from './rlsSetting';
|
|
|
141
139
|
export { AppLimitEventModel } from './appLimitEvent';
|
|
142
140
|
export { OrgLimitEventModel } from './orgLimitEvent';
|
|
143
141
|
export { RlsModuleModel } from './rlsModule';
|
|
142
|
+
export { RateLimitMetersModuleModel } from './rateLimitMetersModule';
|
|
144
143
|
export { PlansModuleModel } from './plansModule';
|
|
145
144
|
export { SqlActionModel } from './sqlAction';
|
|
146
145
|
export { DatabaseSettingModel } from './databaseSetting';
|
|
@@ -9,7 +9,6 @@ export { GetAllRecordModel } from './getAllRecord';
|
|
|
9
9
|
export { AppPermissionModel } from './appPermission';
|
|
10
10
|
export { OrgPermissionModel } from './orgPermission';
|
|
11
11
|
export { ObjectModel } from './object';
|
|
12
|
-
export { AppLevelRequirementModel } from './appLevelRequirement';
|
|
13
12
|
export { DatabaseModel } from './database';
|
|
14
13
|
export { SchemaModel } from './schema';
|
|
15
14
|
export { TableModel } from './table';
|
|
@@ -60,14 +59,14 @@ export { DenormalizedTableFieldModel } from './denormalizedTableField';
|
|
|
60
59
|
export { EmailsModuleModel } from './emailsModule';
|
|
61
60
|
export { EncryptedSecretsModuleModel } from './encryptedSecretsModule';
|
|
62
61
|
export { InvitesModuleModel } from './invitesModule';
|
|
63
|
-
export {
|
|
62
|
+
export { EventsModuleModel } from './eventsModule';
|
|
64
63
|
export { LimitsModuleModel } from './limitsModule';
|
|
65
64
|
export { MembershipTypesModuleModel } from './membershipTypesModule';
|
|
66
65
|
export { MembershipsModuleModel } from './membershipsModule';
|
|
67
66
|
export { PermissionsModuleModel } from './permissionsModule';
|
|
68
67
|
export { PhoneNumbersModuleModel } from './phoneNumbersModule';
|
|
69
68
|
export { ProfilesModuleModel } from './profilesModule';
|
|
70
|
-
export {
|
|
69
|
+
export { UserStateModuleModel } from './userStateModule';
|
|
71
70
|
export { SessionsModuleModel } from './sessionsModule';
|
|
72
71
|
export { UserAuthModuleModel } from './userAuthModule';
|
|
73
72
|
export { UsersModuleModel } from './usersModule';
|
|
@@ -99,9 +98,7 @@ export { AppLimitCreditRedemptionModel } from './appLimitCreditRedemption';
|
|
|
99
98
|
export { OrgLimitModel } from './orgLimit';
|
|
100
99
|
export { OrgLimitCreditModel } from './orgLimitCredit';
|
|
101
100
|
export { OrgLimitAggregateModel } from './orgLimitAggregate';
|
|
102
|
-
export {
|
|
103
|
-
export { AppAchievementModel } from './appAchievement';
|
|
104
|
-
export { AppLevelModel } from './appLevel';
|
|
101
|
+
export { OrgLimitWarningModel } from './orgLimitWarning';
|
|
105
102
|
export { EmailModel } from './email';
|
|
106
103
|
export { PhoneNumberModel } from './phoneNumber';
|
|
107
104
|
export { CryptoAddressModel } from './cryptoAddress';
|
|
@@ -130,6 +127,7 @@ export { DevicesModuleModel } from './devicesModule';
|
|
|
130
127
|
export { NodeTypeRegistryModel } from './nodeTypeRegistry';
|
|
131
128
|
export { AppLimitDefaultModel } from './appLimitDefault';
|
|
132
129
|
export { OrgLimitDefaultModel } from './orgLimitDefault';
|
|
130
|
+
export { AppLimitWarningModel } from './appLimitWarning';
|
|
133
131
|
export { UserConnectedAccountModel } from './userConnectedAccount';
|
|
134
132
|
export { CommitModel } from './commit';
|
|
135
133
|
export { PubkeySettingModel } from './pubkeySetting';
|
|
@@ -141,6 +139,7 @@ export { RlsSettingModel } from './rlsSetting';
|
|
|
141
139
|
export { AppLimitEventModel } from './appLimitEvent';
|
|
142
140
|
export { OrgLimitEventModel } from './orgLimitEvent';
|
|
143
141
|
export { RlsModuleModel } from './rlsModule';
|
|
142
|
+
export { RateLimitMetersModuleModel } from './rateLimitMetersModule';
|
|
144
143
|
export { PlansModuleModel } from './plansModule';
|
|
145
144
|
export { SqlActionModel } from './sqlAction';
|
|
146
145
|
export { DatabaseSettingModel } from './databaseSetting';
|
|
@@ -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
|
+
}
|