-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
163 lines (123 loc) · 5.07 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
import { ModelInit, MutableModel, PersistentModelConstructor } from "@aws-amplify/datastore";
import { initSchema } from "@aws-amplify/datastore";
import { schema } from "./schema";
type EagerMemberModel = {
readonly createdAt: string;
readonly id: string;
readonly name: string;
readonly organizationId: string;
readonly role: string;
readonly updatedAt: string;
readonly userId: string;
}
type LazyMemberModel = {
readonly createdAt: string;
readonly id: string;
readonly name: string;
readonly organizationId: string;
readonly role: string;
readonly updatedAt: string;
readonly userId: string;
}
export declare type MemberModel = LazyLoading extends LazyLoadingDisabled ? EagerMemberModel : LazyMemberModel
export declare const MemberModel: (new (init: ModelInit<MemberModel>) => MemberModel)
type EagerMemberConnectionModel = {
readonly items?: (Member | null)[] | null;
readonly nextToken?: string | null;
}
type LazyMemberConnectionModel = {
readonly items?: (Member | null)[] | null;
readonly nextToken?: string | null;
}
export declare type MemberConnectionModel = LazyLoading extends LazyLoadingDisabled ? EagerMemberConnectionModel : LazyMemberConnectionModel
export declare const MemberConnectionModel: (new (init: ModelInit<MemberConnectionModel>) => MemberConnectionModel)
type EagerOrganizationModel = {
readonly createdAt: string;
readonly description?: string | null;
readonly id: string;
readonly name: string;
readonly updatedAt: string;
}
type LazyOrganizationModel = {
readonly createdAt: string;
readonly description?: string | null;
readonly id: string;
readonly name: string;
readonly updatedAt: string;
}
export declare type OrganizationModel = LazyLoading extends LazyLoadingDisabled ? EagerOrganizationModel : LazyOrganizationModel
export declare const OrganizationModel: (new (init: ModelInit<OrganizationModel>) => OrganizationModel)
type EagerOrganizationConnectionModel = {
readonly items?: (Organization | null)[] | null;
readonly nextToken?: string | null;
}
type LazyOrganizationConnectionModel = {
readonly items?: (Organization | null)[] | null;
readonly nextToken?: string | null;
}
export declare type OrganizationConnectionModel = LazyLoading extends LazyLoadingDisabled ? EagerOrganizationConnectionModel : LazyOrganizationConnectionModel
export declare const OrganizationConnectionModel: (new (init: ModelInit<OrganizationConnectionModel>) => OrganizationConnectionModel)
type EagerPostModel = {
readonly createdAt: string;
readonly description?: string | null;
readonly id: string;
readonly name: string;
readonly updatedAt: string;
}
type LazyPostModel = {
readonly createdAt: string;
readonly description?: string | null;
readonly id: string;
readonly name: string;
readonly updatedAt: string;
}
export declare type PostModel = LazyLoading extends LazyLoadingDisabled ? EagerPostModel : LazyPostModel
export declare const PostModel: (new (init: ModelInit<PostModel>) => PostModel)
type EagerPostConnectionModel = {
readonly items?: (Post | null)[] | null;
readonly nextToken?: string | null;
}
type LazyPostConnectionModel = {
readonly items?: (Post | null)[] | null;
readonly nextToken?: string | null;
}
export declare type PostConnectionModel = LazyLoading extends LazyLoadingDisabled ? EagerPostConnectionModel : LazyPostConnectionModel
export declare const PostConnectionModel: (new (init: ModelInit<PostConnectionModel>) => PostConnectionModel)
type EagerUserModel = {
readonly createdAt: string;
readonly description?: string | null;
readonly id: string;
readonly name: string;
readonly updatedAt: string;
}
type LazyUserModel = {
readonly createdAt: string;
readonly description?: string | null;
readonly id: string;
readonly name: string;
readonly updatedAt: string;
}
export declare type UserModel = LazyLoading extends LazyLoadingDisabled ? EagerUserModel : LazyUserModel
export declare const UserModel: (new (init: ModelInit<UserModel>) => UserModel)
type EagerUserConnectionModel = {
readonly items?: (User | null)[] | null;
readonly nextToken?: string | null;
}
type LazyUserConnectionModel = {
readonly items?: (User | null)[] | null;
readonly nextToken?: string | null;
}
export declare type UserConnectionModel = LazyLoading extends LazyLoadingDisabled ? EagerUserConnectionModel : LazyUserConnectionModel
export declare const UserConnectionModel: (new (init: ModelInit<UserConnectionModel>) => UserConnectionModel)
const { Member, MemberConnection, Organization, OrganizationConnection, Post, PostConnection, User, UserConnection } = initSchema(schema) as {
Member: PersistentModelConstructor<MemberModel>;
MemberConnection: PersistentModelConstructor<MemberConnectionModel>;
Organization: PersistentModelConstructor<OrganizationModel>;
OrganizationConnection: PersistentModelConstructor<OrganizationConnectionModel>;
Post: PersistentModelConstructor<PostModel>;
PostConnection: PersistentModelConstructor<PostConnectionModel>;
User: PersistentModelConstructor<UserModel>;
UserConnection: PersistentModelConstructor<UserConnectionModel>;
};
export {
};