@koloseum/types 0.2.2 → 0.2.3
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/dist/database.d.ts +16 -31
- package/dist/public/auth.d.ts +53 -7
- package/package.json +1 -1
package/dist/database.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Database as DatabaseGenerated } from "./database-generated.js";
|
|
2
2
|
import type { AccountType, DataUpdateRequestStatus, PhoneOTPRequestStatus, PhoneOTPSendCodeAttempt } from "./general.js";
|
|
3
|
-
import type { BranchAddressObject, BranchAmenitiesObject, CompanyInformationUpdateJson, CompanyVerificationDataObject, GamingSocialsDataObject, GenderIdentity, Institution, InstitutionNameIssue, MinorRelation, PersonVerificationLogDataObject, PersonalDataUpdateRequestJson, PronounsItem, RegistrationCheckObject, RegistrationStep, Sex, SocialMediaPlatform } from "./public/auth.js";
|
|
3
|
+
import type { BranchAddressObject, BranchAmenitiesObject, CompanyInformationUpdateJson, CompanyInformationUpdateRequestJson, CompanyVerificationDataObject, GamingSocialsDataObject, GenderIdentity, Institution, InstitutionNameIssue, MinorRelation, PersonVerificationLogDataObject, PersonalDataUpdateJson, PersonalDataUpdateRequestJson, PronounsItem, RegistrationCheckObject, RegistrationStep, Sex, SocialMediaPlatform } from "./public/auth.js";
|
|
4
4
|
import { MergeDeep } from "type-fest";
|
|
5
5
|
export type Database = MergeDeep<DatabaseGenerated, {
|
|
6
6
|
compliance: {
|
|
@@ -21,48 +21,33 @@ export type Database = MergeDeep<DatabaseGenerated, {
|
|
|
21
21
|
};
|
|
22
22
|
data_update_requests: {
|
|
23
23
|
Row: {
|
|
24
|
-
account_type: AccountType
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
account_type: AccountType & "lounge";
|
|
28
|
-
updates: CompanyInformationUpdateJson;
|
|
24
|
+
account_type: AccountType;
|
|
25
|
+
status: DataUpdateRequestStatus;
|
|
26
|
+
updates: PersonalDataUpdateRequestJson | CompanyInformationUpdateRequestJson;
|
|
29
27
|
};
|
|
30
28
|
Insert: {
|
|
31
|
-
account_type: AccountType
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
account_type: AccountType & "lounge";
|
|
35
|
-
updates: CompanyInformationUpdateJson;
|
|
29
|
+
account_type: AccountType;
|
|
30
|
+
status?: DataUpdateRequestStatus;
|
|
31
|
+
updates: PersonalDataUpdateRequestJson | CompanyInformationUpdateRequestJson;
|
|
36
32
|
};
|
|
37
33
|
Update: {
|
|
38
|
-
account_type
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
account_type: AccountType & "lounge";
|
|
42
|
-
updates: CompanyInformationUpdateJson;
|
|
34
|
+
account_type?: AccountType;
|
|
35
|
+
status?: DataUpdateRequestStatus;
|
|
36
|
+
updates?: PersonalDataUpdateRequestJson | CompanyInformationUpdateRequestJson;
|
|
43
37
|
};
|
|
44
38
|
};
|
|
45
39
|
data_updates: {
|
|
46
40
|
Row: {
|
|
47
|
-
account_type: AccountType
|
|
48
|
-
updates:
|
|
49
|
-
} | {
|
|
50
|
-
account_type: AccountType & "lounge";
|
|
51
|
-
updates: CompanyInformationUpdateJson;
|
|
41
|
+
account_type: AccountType;
|
|
42
|
+
updates: PersonalDataUpdateJson | CompanyInformationUpdateJson;
|
|
52
43
|
};
|
|
53
44
|
Insert: {
|
|
54
|
-
account_type: AccountType
|
|
55
|
-
updates: PersonalDataUpdateRequestJson;
|
|
56
|
-
} | {
|
|
57
|
-
account_type: AccountType & "lounge";
|
|
58
|
-
updates: CompanyInformationUpdateJson;
|
|
45
|
+
account_type: AccountType;
|
|
46
|
+
updates: PersonalDataUpdateRequestJson | CompanyInformationUpdateJson;
|
|
59
47
|
};
|
|
60
48
|
Update: {
|
|
61
|
-
account_type
|
|
62
|
-
updates
|
|
63
|
-
} | {
|
|
64
|
-
account_type: AccountType & "lounge";
|
|
65
|
-
updates: CompanyInformationUpdateJson;
|
|
49
|
+
account_type?: AccountType;
|
|
50
|
+
updates?: PersonalDataUpdateRequestJson | CompanyInformationUpdateJson;
|
|
66
51
|
};
|
|
67
52
|
};
|
|
68
53
|
lounge_branches: {
|
package/dist/public/auth.d.ts
CHANGED
|
@@ -111,19 +111,39 @@ export interface PersonalDataObject {
|
|
|
111
111
|
relation?: MinorRelation;
|
|
112
112
|
otherRelation?: string;
|
|
113
113
|
}
|
|
114
|
+
export interface PersonalDataUpdateJson {
|
|
115
|
+
first_name?: {
|
|
116
|
+
old: string;
|
|
117
|
+
new: string;
|
|
118
|
+
};
|
|
119
|
+
middle_names?: {
|
|
120
|
+
old: string | null;
|
|
121
|
+
new: string | null;
|
|
122
|
+
};
|
|
123
|
+
last_name?: {
|
|
124
|
+
old: string;
|
|
125
|
+
new: string;
|
|
126
|
+
};
|
|
127
|
+
birth_date?: {
|
|
128
|
+
old: string;
|
|
129
|
+
new: string;
|
|
130
|
+
};
|
|
131
|
+
nationality?: {
|
|
132
|
+
old: string;
|
|
133
|
+
new: string;
|
|
134
|
+
};
|
|
135
|
+
minor_rep?: PersonalDataUpdateJson & {
|
|
136
|
+
id: string;
|
|
137
|
+
};
|
|
138
|
+
}
|
|
114
139
|
export interface PersonalDataUpdateRequestJson {
|
|
115
140
|
first_name?: string;
|
|
116
141
|
middle_names?: string | null;
|
|
117
142
|
last_name?: string;
|
|
118
143
|
birth_date?: string;
|
|
119
144
|
nationality?: string;
|
|
120
|
-
minor_rep?: {
|
|
145
|
+
minor_rep?: PersonalDataUpdateRequestJson & {
|
|
121
146
|
id: string;
|
|
122
|
-
first_name?: string;
|
|
123
|
-
middle_names?: string | null;
|
|
124
|
-
last_name?: string;
|
|
125
|
-
birth_date?: string;
|
|
126
|
-
nationality?: string;
|
|
127
147
|
};
|
|
128
148
|
}
|
|
129
149
|
export interface VarsityDataObject {
|
|
@@ -207,10 +227,25 @@ export interface CompanyInformationFormattingObject {
|
|
|
207
227
|
registrationCertificateCopy?: File;
|
|
208
228
|
}
|
|
209
229
|
export interface CompanyInformationUpdateJson {
|
|
230
|
+
company_name?: {
|
|
231
|
+
old: string;
|
|
232
|
+
new: string;
|
|
233
|
+
};
|
|
234
|
+
registration_date?: {
|
|
235
|
+
old: string;
|
|
236
|
+
new: string;
|
|
237
|
+
};
|
|
238
|
+
trade_name?: {
|
|
239
|
+
old: string;
|
|
240
|
+
new: string;
|
|
241
|
+
};
|
|
242
|
+
branch?: BranchInformationUpdateJson;
|
|
243
|
+
}
|
|
244
|
+
export interface CompanyInformationUpdateRequestJson {
|
|
210
245
|
company_name?: string;
|
|
211
246
|
registration_date?: string;
|
|
212
247
|
trade_name?: string;
|
|
213
|
-
branch?:
|
|
248
|
+
branch?: BranchInformationUpdateRequestJson;
|
|
214
249
|
}
|
|
215
250
|
export type SuperuserIdentityDataObject = Omit<IdentityDataObject, "isForMinorRep">;
|
|
216
251
|
export type SuperuserPersonalDataObject = Omit<PersonalDataObject, "showDateOfBirth" | "relation" | "otherRelation">;
|
|
@@ -266,6 +301,17 @@ export interface BranchInformationFormattingObject {
|
|
|
266
301
|
formattedAmenities?: BranchAmenitiesObject | null;
|
|
267
302
|
}
|
|
268
303
|
export interface BranchInformationUpdateJson {
|
|
304
|
+
id?: string;
|
|
305
|
+
address?: {
|
|
306
|
+
old: BranchAddressObject;
|
|
307
|
+
new: BranchAddressObject;
|
|
308
|
+
};
|
|
309
|
+
amenities?: {
|
|
310
|
+
old: BranchAmenitiesObject | null;
|
|
311
|
+
new: BranchAmenitiesObject | null;
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
export interface BranchInformationUpdateRequestJson {
|
|
269
315
|
id?: string;
|
|
270
316
|
address?: BranchAddressObject;
|
|
271
317
|
amenities?: BranchAmenitiesObject | null;
|