@koloseum/types 0.2.3 → 0.2.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.
@@ -1,8 +1,41 @@
1
1
  import type { Database as DatabaseGenerated } from "./database-generated.js";
2
2
  import type { AccountType, DataUpdateRequestStatus, PhoneOTPRequestStatus, PhoneOTPSendCodeAttempt } from "./general.js";
3
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
+ import type { TournamentMetadata } from "./backroom/competitions.js";
4
5
  import { MergeDeep } from "type-fest";
5
6
  export type Database = MergeDeep<DatabaseGenerated, {
7
+ competitions: {
8
+ Tables: {
9
+ events: {
10
+ Row: {
11
+ metadata: TournamentMetadata | null;
12
+ venue: BranchAddressObject | null;
13
+ };
14
+ Insert: {
15
+ metadata?: TournamentMetadata | null;
16
+ venue?: BranchAddressObject | null;
17
+ };
18
+ Update: {
19
+ metadata?: TournamentMetadata | null;
20
+ venue?: BranchAddressObject | null;
21
+ };
22
+ };
23
+ league_tournaments: {
24
+ Row: {
25
+ metadata: TournamentMetadata | null;
26
+ venue: BranchAddressObject | null;
27
+ };
28
+ Insert: {
29
+ metadata?: TournamentMetadata | null;
30
+ venue?: BranchAddressObject | null;
31
+ };
32
+ Update: {
33
+ metadata?: TournamentMetadata | null;
34
+ venue?: BranchAddressObject | null;
35
+ };
36
+ };
37
+ };
38
+ };
6
39
  compliance: {
7
40
  Tables: {
8
41
  active_registrations: {
@@ -276,7 +276,7 @@ export interface BranchAddressObject {
276
276
  boxNumber?: string;
277
277
  postalCode?: string;
278
278
  town: string;
279
- subCounty: string;
279
+ subCounty?: string;
280
280
  county: string;
281
281
  additionalInfo?: string;
282
282
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koloseum/types",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "author": "Koloseum Technologies Limited",
5
5
  "type": "module",
6
6
  "description": "Type definitions for use across web apps (TypeScript)",
@@ -19,7 +19,8 @@
19
19
  "./database": "./dist/database.d.ts",
20
20
  "./database-generated": "./dist/database-generated.d.ts",
21
21
  "./general": "./dist/general.d.ts",
22
- "./public-auth": "./dist/public/auth.d.ts"
22
+ "./public-auth": "./dist/public/auth.d.ts",
23
+ "./competitions": "./dist/backroom/competitions.d.ts"
23
24
  },
24
25
  "files": [
25
26
  "./dist/**/*.d.ts"