@indiegems/gem-web-sdk 7.1.1 → 7.3.0

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/game.d.ts CHANGED
@@ -147,8 +147,12 @@ type AffixSelection = {
147
147
  "pool": AffixPoolRef;
148
148
  "respect_groups"?: boolean;
149
149
  };
150
+ type Boundary = {
151
+ "boundary"?: string;
152
+ "reset_time"?: string;
153
+ };
150
154
  type BucketColumn = "bucket_1" | "bucket_2";
151
- type BucketConfig = {
155
+ type BucketConfig = Boundary & {
152
156
  "grant_sources"?: OrderSource[];
153
157
  "name": string;
154
158
  "priority": number;
@@ -320,11 +324,11 @@ type ResetSchedule = {
320
324
  } | {
321
325
  "event_id": string;
322
326
  "type": "event_window";
323
- } | {
327
+ } | Boundary & {
324
328
  "type": "daily";
325
- } | {
329
+ } | Boundary & {
326
330
  "type": "weekly";
327
- } | {
331
+ } | Boundary & {
328
332
  "type": "monthly";
329
333
  };
330
334
  type RoomArgType$1 = "string" | "int" | "float" | "bool";
@@ -1058,13 +1062,16 @@ declare class GameConfigApi {
1058
1062
  private fetchConfig;
1059
1063
  }
1060
1064
  declare const MAX_PERIODS_BACK = 400;
1061
- type ChallengeWindow = "daily" | "weekly" | "monthly" | (string & {});
1065
+ type ChallengeWindow = "daily" | "weekly" | "monthly" | "cron" | (string & {});
1062
1066
  interface Challenge {
1063
1067
  readonly id: string;
1064
1068
  readonly slug?: string;
1065
1069
  readonly window: ChallengeWindow;
1066
1070
  readonly periodStartAt: number;
1067
1071
  readonly periodEndsAt: number;
1072
+ readonly periodLocalDate?: string;
1073
+ readonly boundary: string;
1074
+ readonly resetTime: string;
1068
1075
  readonly seed: string;
1069
1076
  readonly data?: string;
1070
1077
  readonly dataHash?: string;