@domino-sdk/relay 1.2.0 → 1.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.
@@ -245,8 +245,8 @@ declare function defineLeaderboard(input: Omit<LeaderboardInput, "key" | "id" |
245
245
  kind: "earned";
246
246
  }> | ReturnType<typeof earned>;
247
247
  }): {
248
- title: string;
249
248
  balance: string;
249
+ title: string;
250
250
  access: "participants" | "public";
251
251
  score: {
252
252
  kind: "balance";
@@ -1058,7 +1058,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1058
1058
  } | undefined;
1059
1059
  } | undefined;
1060
1060
  };
1061
- integrations: ("x" | "discord")[];
1061
+ integrations: ("discord" | "x")[];
1062
1062
  fields: Record<string, {
1063
1063
  kind: "point-ledger";
1064
1064
  default: string;
@@ -1073,6 +1073,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1073
1073
  kind: "resource";
1074
1074
  default: string;
1075
1075
  source: {
1076
+ provider: "domino";
1077
+ resource: "point-ledger";
1078
+ } | {
1076
1079
  provider: "discord";
1077
1080
  resource: "channel";
1078
1081
  types: ("text" | "announcement")[];
@@ -1080,9 +1083,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1080
1083
  provider: "discord";
1081
1084
  resource: "role";
1082
1085
  assignable: boolean;
1083
- } | {
1084
- provider: "domino";
1085
- resource: "point-ledger";
1086
1086
  };
1087
1087
  label: string;
1088
1088
  description?: string | undefined;
@@ -1173,7 +1173,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1173
1173
  minLength: number;
1174
1174
  maxLength: number;
1175
1175
  };
1176
- actor?: "member" | "staff" | undefined;
1176
+ actor?: "staff" | "member" | undefined;
1177
1177
  } | {
1178
1178
  kind: "manual";
1179
1179
  input: "url";
@@ -1181,11 +1181,11 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1181
1181
  required: boolean;
1182
1182
  allowedHosts?: string[] | undefined;
1183
1183
  };
1184
- actor?: "member" | "staff" | undefined;
1184
+ actor?: "staff" | "member" | undefined;
1185
1185
  } | {
1186
1186
  kind: "manual";
1187
- input: "quiz" | "photo" | "none";
1188
- actor?: "member" | "staff" | undefined;
1187
+ input: "photo" | "quiz" | "none";
1188
+ actor?: "staff" | "member" | undefined;
1189
1189
  } | {
1190
1190
  kind: "automatic";
1191
1191
  tracker?: {
@@ -1229,8 +1229,8 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1229
1229
  equals: string | number | boolean;
1230
1230
  })[] | undefined;
1231
1231
  enrollment?: "required" | "none" | undefined;
1232
- since?: "enrollment" | "activation" | "window" | undefined;
1233
- historical?: "staff" | "automatic" | "claim" | undefined;
1232
+ since?: "activation" | "window" | "enrollment" | undefined;
1233
+ historical?: "automatic" | "staff" | "claim" | undefined;
1234
1234
  content?: true | undefined;
1235
1235
  } | undefined;
1236
1236
  };
@@ -1277,7 +1277,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
1277
1277
  } | {
1278
1278
  kind: "keyed";
1279
1279
  };
1280
- visibility: "hidden" | "visible";
1280
+ visibility: "visible" | "hidden";
1281
1281
  profile: {
1282
1282
  visible: boolean;
1283
1283
  };
@@ -1451,7 +1451,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1451
1451
  } | undefined;
1452
1452
  } | undefined;
1453
1453
  };
1454
- integrations: ("x" | "discord")[];
1454
+ integrations: ("discord" | "x")[];
1455
1455
  fields: Record<string, {
1456
1456
  kind: "point-ledger";
1457
1457
  default: string;
@@ -1466,6 +1466,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1466
1466
  kind: "resource";
1467
1467
  default: string;
1468
1468
  source: {
1469
+ provider: "domino";
1470
+ resource: "point-ledger";
1471
+ } | {
1469
1472
  provider: "discord";
1470
1473
  resource: "channel";
1471
1474
  types: ("text" | "announcement")[];
@@ -1473,9 +1476,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1473
1476
  provider: "discord";
1474
1477
  resource: "role";
1475
1478
  assignable: boolean;
1476
- } | {
1477
- provider: "domino";
1478
- resource: "point-ledger";
1479
1479
  };
1480
1480
  label: string;
1481
1481
  description?: string | undefined;
@@ -1566,7 +1566,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1566
1566
  minLength: number;
1567
1567
  maxLength: number;
1568
1568
  };
1569
- actor?: "member" | "staff" | undefined;
1569
+ actor?: "staff" | "member" | undefined;
1570
1570
  } | {
1571
1571
  kind: "manual";
1572
1572
  input: "url";
@@ -1574,11 +1574,11 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1574
1574
  required: boolean;
1575
1575
  allowedHosts?: string[] | undefined;
1576
1576
  };
1577
- actor?: "member" | "staff" | undefined;
1577
+ actor?: "staff" | "member" | undefined;
1578
1578
  } | {
1579
1579
  kind: "manual";
1580
- input: "quiz" | "photo" | "none";
1581
- actor?: "member" | "staff" | undefined;
1580
+ input: "photo" | "quiz" | "none";
1581
+ actor?: "staff" | "member" | undefined;
1582
1582
  } | {
1583
1583
  kind: "automatic";
1584
1584
  tracker?: {
@@ -1622,8 +1622,8 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1622
1622
  equals: string | number | boolean;
1623
1623
  })[] | undefined;
1624
1624
  enrollment?: "required" | "none" | undefined;
1625
- since?: "enrollment" | "activation" | "window" | undefined;
1626
- historical?: "staff" | "automatic" | "claim" | undefined;
1625
+ since?: "activation" | "window" | "enrollment" | undefined;
1626
+ historical?: "automatic" | "staff" | "claim" | undefined;
1627
1627
  content?: true | undefined;
1628
1628
  } | undefined;
1629
1629
  };
@@ -1670,7 +1670,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
1670
1670
  } | {
1671
1671
  kind: "keyed";
1672
1672
  };
1673
- visibility: "hidden" | "visible";
1673
+ visibility: "visible" | "hidden";
1674
1674
  profile: {
1675
1675
  visible: boolean;
1676
1676
  };