@koloseum/types 0.1.11 → 0.1.13

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/general.d.ts CHANGED
@@ -46,7 +46,8 @@ export interface IGDBPlatformsResponse {
46
46
  name: string;
47
47
  platform_family: number;
48
48
  }
49
- export type Microservice = "compliance" | "competitions" | "commerce" | "staff" | "account";
49
+ export type MicroserviceGroup = "public" | "players" | "lounges" | "backroom";
50
+ export type Microservice<MicroserviceGroup> = (MicroserviceGroup extends "backroom" ? "compliance" | "competitions" | "commerce" | "staff" : never) | "account";
50
51
  export interface MicroserviceFeature {
51
52
  name: string;
52
53
  description: string;
@@ -63,7 +64,7 @@ export type MicroserviceRole = {
63
64
  root?: false;
64
65
  featureSlugs: string[];
65
66
  });
66
- export type MicroserviceObject = {
67
+ export type MicroserviceObject<MicroserviceGroup> = {
67
68
  name: string;
68
69
  description: string;
69
70
  features: MicroserviceFeature[];
@@ -71,7 +72,7 @@ export type MicroserviceObject = {
71
72
  slug: "account";
72
73
  roles: null;
73
74
  } | {
74
- slug: Exclude<Microservice, "account">;
75
+ slug: Exclude<Microservice<MicroserviceGroup>, "account">;
75
76
  roles: MicroserviceRole[];
76
77
  });
77
78
  export type UserWithAppMetadata = User & {
@@ -188,8 +188,8 @@ export interface RawCompanyVerificationDataObject {
188
188
  companyName: string;
189
189
  companyNumber: string;
190
190
  companyType: string;
191
- dateOfRegistration: string;
192
- dateOfDissolution?: string;
191
+ dateOfRegistration?: string | null;
192
+ dateOfDissolution?: string | null;
193
193
  countryCode: string;
194
194
  persons: CompanyPerson[];
195
195
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koloseum/types",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "author": "Koloseum Technologies Limited",
5
5
  "type": "module",
6
6
  "description": "Type definitions for use across web apps (TypeScript)",