@domino-sdk/relay 1.10.1 → 1.11.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/authoring.d.ts +37 -37
- package/dist/authoring.js +3 -3
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +8 -8
- package/dist/{chunk-PFKV2M4B.js → chunk-7JHREQ2D.js} +1 -1
- package/dist/{chunk-FH7ZFHDB.js → chunk-CFTTECZZ.js} +2 -2
- package/dist/{chunk-2M3HLQFP.js → chunk-DG4QQUH7.js} +1 -1
- package/dist/{chunk-A2KXEGGD.js → chunk-DJOGMLYT.js} +3 -3
- package/dist/{chunk-S4IHOJEP.js → chunk-FISNMJN3.js} +1 -1
- package/dist/{chunk-NM2ZAWTF.js → chunk-GKTD36JW.js} +2 -2
- package/dist/{chunk-5WK4EB5I.js → chunk-GXT4S5IK.js} +5 -0
- package/dist/{chunk-MJMFGTVV.js → chunk-KLF7XABH.js} +1 -1
- package/dist/{chunk-PRLGLZM4.js → chunk-TV2GYBDZ.js} +1 -1
- package/dist/{chunk-MDN5EJY2.js → chunk-U4KTGJWU.js} +6 -6
- package/dist/{chunk-XMZNIFXH.js → chunk-UIBDEAP2.js} +5 -5
- package/dist/{chunk-WZJQ7XAT.js → chunk-ULU5ZF6R.js} +1 -1
- package/dist/{client-Yq11HA_f.d.ts → client-Dz14Kuu8.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -7
- package/dist/internal.js +5 -5
- package/dist/{pages-D00JDZB-.d.ts → pages-tSpttGrI.d.ts} +9 -3
- package/dist/portal-proxy.js +3 -3
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +8 -8
- package/dist/schema.d.ts +304 -304
- package/dist/schema.js +8 -6
- package/dist/server/index.d.ts +1394 -27
- package/dist/server/index.js +895 -603
- package/dist/{sign-in-options-Coim0G1u.d.ts → sign-in-options-rPCsFr7w.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/{activity-C0O3g7VJ.d.ts → activity-CNiPDPK6.d.ts} +114 -114
package/dist/authoring.d.ts
CHANGED
|
@@ -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";
|
|
@@ -1012,15 +1012,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1012
1012
|
};
|
|
1013
1013
|
};
|
|
1014
1014
|
tier: string;
|
|
1015
|
+
} | {
|
|
1016
|
+
kind: "points";
|
|
1017
|
+
balance: string;
|
|
1018
|
+
amount: number;
|
|
1015
1019
|
} | {
|
|
1016
1020
|
kind: "integration";
|
|
1017
1021
|
provider: "discord";
|
|
1018
1022
|
action: "grant-role";
|
|
1019
1023
|
roleId: string;
|
|
1020
|
-
} | {
|
|
1021
|
-
kind: "points";
|
|
1022
|
-
balance: string;
|
|
1023
|
-
amount: number;
|
|
1024
1024
|
})[] | ((ctx: {
|
|
1025
1025
|
settings: z.core.$InferObjectOutput<T, {}>;
|
|
1026
1026
|
}) => Reward[]);
|
|
@@ -1077,6 +1077,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1077
1077
|
kind: "resource";
|
|
1078
1078
|
default: string;
|
|
1079
1079
|
source: {
|
|
1080
|
+
provider: "domino";
|
|
1081
|
+
resource: "point-ledger";
|
|
1082
|
+
} | {
|
|
1080
1083
|
provider: "discord";
|
|
1081
1084
|
resource: "channel";
|
|
1082
1085
|
types: ("text" | "announcement")[];
|
|
@@ -1084,9 +1087,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1084
1087
|
provider: "discord";
|
|
1085
1088
|
resource: "role";
|
|
1086
1089
|
assignable: boolean;
|
|
1087
|
-
} | {
|
|
1088
|
-
provider: "domino";
|
|
1089
|
-
resource: "point-ledger";
|
|
1090
1090
|
};
|
|
1091
1091
|
label: string;
|
|
1092
1092
|
description?: string | undefined;
|
|
@@ -1158,15 +1158,15 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1158
1158
|
};
|
|
1159
1159
|
};
|
|
1160
1160
|
tier: string;
|
|
1161
|
+
} | {
|
|
1162
|
+
kind: "points";
|
|
1163
|
+
balance: string;
|
|
1164
|
+
amount: number;
|
|
1161
1165
|
} | {
|
|
1162
1166
|
kind: "integration";
|
|
1163
1167
|
provider: "discord";
|
|
1164
1168
|
action: "grant-role";
|
|
1165
1169
|
roleId: string;
|
|
1166
|
-
} | {
|
|
1167
|
-
kind: "points";
|
|
1168
|
-
balance: string;
|
|
1169
|
-
amount: number;
|
|
1170
1170
|
})[];
|
|
1171
1171
|
humanReview: boolean;
|
|
1172
1172
|
trigger: {
|
|
@@ -1188,7 +1188,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1188
1188
|
actor?: "staff" | "member" | undefined;
|
|
1189
1189
|
} | {
|
|
1190
1190
|
kind: "manual";
|
|
1191
|
-
input: "
|
|
1191
|
+
input: "photo" | "quiz" | "none";
|
|
1192
1192
|
actor?: "staff" | "member" | undefined;
|
|
1193
1193
|
} | {
|
|
1194
1194
|
kind: "automatic";
|
|
@@ -1232,9 +1232,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1232
1232
|
path: string;
|
|
1233
1233
|
equals: string | number | boolean;
|
|
1234
1234
|
})[] | undefined;
|
|
1235
|
-
enrollment?: "
|
|
1235
|
+
enrollment?: "required" | "none" | undefined;
|
|
1236
1236
|
since?: "activation" | "window" | "enrollment" | undefined;
|
|
1237
|
-
historical?: "
|
|
1237
|
+
historical?: "automatic" | "staff" | "claim" | undefined;
|
|
1238
1238
|
content?: true | undefined;
|
|
1239
1239
|
} | undefined;
|
|
1240
1240
|
};
|
|
@@ -1257,6 +1257,9 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1257
1257
|
title: string;
|
|
1258
1258
|
})[];
|
|
1259
1259
|
completion: {
|
|
1260
|
+
kind: "streak";
|
|
1261
|
+
days: number;
|
|
1262
|
+
} | {
|
|
1260
1263
|
kind: "progress";
|
|
1261
1264
|
goal: {
|
|
1262
1265
|
kind: "count";
|
|
@@ -1273,9 +1276,6 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1273
1276
|
durationMs: number;
|
|
1274
1277
|
};
|
|
1275
1278
|
repeat: "repeat" | "once";
|
|
1276
|
-
} | {
|
|
1277
|
-
kind: "streak";
|
|
1278
|
-
days: number;
|
|
1279
1279
|
} | {
|
|
1280
1280
|
kind: "once";
|
|
1281
1281
|
} | {
|
|
@@ -1301,7 +1301,7 @@ declare const defineQuest: <T extends Record<string, Setting>, const G extends T
|
|
|
1301
1301
|
campaign?: {
|
|
1302
1302
|
key: string;
|
|
1303
1303
|
title: string;
|
|
1304
|
-
enrollment: "
|
|
1304
|
+
enrollment: "required" | "none";
|
|
1305
1305
|
window?: {
|
|
1306
1306
|
from: number;
|
|
1307
1307
|
until: number;
|
|
@@ -1409,15 +1409,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1409
1409
|
};
|
|
1410
1410
|
};
|
|
1411
1411
|
tier: string;
|
|
1412
|
+
} | {
|
|
1413
|
+
kind: "points";
|
|
1414
|
+
balance: string;
|
|
1415
|
+
amount: number;
|
|
1412
1416
|
} | {
|
|
1413
1417
|
kind: "integration";
|
|
1414
1418
|
provider: "discord";
|
|
1415
1419
|
action: "grant-role";
|
|
1416
1420
|
roleId: string;
|
|
1417
|
-
} | {
|
|
1418
|
-
kind: "points";
|
|
1419
|
-
balance: string;
|
|
1420
|
-
amount: number;
|
|
1421
1421
|
})[] | ((ctx: {
|
|
1422
1422
|
settings: z.core.$InferObjectOutput<T, {}>;
|
|
1423
1423
|
}) => Reward[]);
|
|
@@ -1474,6 +1474,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1474
1474
|
kind: "resource";
|
|
1475
1475
|
default: string;
|
|
1476
1476
|
source: {
|
|
1477
|
+
provider: "domino";
|
|
1478
|
+
resource: "point-ledger";
|
|
1479
|
+
} | {
|
|
1477
1480
|
provider: "discord";
|
|
1478
1481
|
resource: "channel";
|
|
1479
1482
|
types: ("text" | "announcement")[];
|
|
@@ -1481,9 +1484,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1481
1484
|
provider: "discord";
|
|
1482
1485
|
resource: "role";
|
|
1483
1486
|
assignable: boolean;
|
|
1484
|
-
} | {
|
|
1485
|
-
provider: "domino";
|
|
1486
|
-
resource: "point-ledger";
|
|
1487
1487
|
};
|
|
1488
1488
|
label: string;
|
|
1489
1489
|
description?: string | undefined;
|
|
@@ -1555,15 +1555,15 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1555
1555
|
};
|
|
1556
1556
|
};
|
|
1557
1557
|
tier: string;
|
|
1558
|
+
} | {
|
|
1559
|
+
kind: "points";
|
|
1560
|
+
balance: string;
|
|
1561
|
+
amount: number;
|
|
1558
1562
|
} | {
|
|
1559
1563
|
kind: "integration";
|
|
1560
1564
|
provider: "discord";
|
|
1561
1565
|
action: "grant-role";
|
|
1562
1566
|
roleId: string;
|
|
1563
|
-
} | {
|
|
1564
|
-
kind: "points";
|
|
1565
|
-
balance: string;
|
|
1566
|
-
amount: number;
|
|
1567
1567
|
})[];
|
|
1568
1568
|
humanReview: boolean;
|
|
1569
1569
|
trigger: {
|
|
@@ -1585,7 +1585,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1585
1585
|
actor?: "staff" | "member" | undefined;
|
|
1586
1586
|
} | {
|
|
1587
1587
|
kind: "manual";
|
|
1588
|
-
input: "
|
|
1588
|
+
input: "photo" | "quiz" | "none";
|
|
1589
1589
|
actor?: "staff" | "member" | undefined;
|
|
1590
1590
|
} | {
|
|
1591
1591
|
kind: "automatic";
|
|
@@ -1629,9 +1629,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1629
1629
|
path: string;
|
|
1630
1630
|
equals: string | number | boolean;
|
|
1631
1631
|
})[] | undefined;
|
|
1632
|
-
enrollment?: "
|
|
1632
|
+
enrollment?: "required" | "none" | undefined;
|
|
1633
1633
|
since?: "activation" | "window" | "enrollment" | undefined;
|
|
1634
|
-
historical?: "
|
|
1634
|
+
historical?: "automatic" | "staff" | "claim" | undefined;
|
|
1635
1635
|
content?: true | undefined;
|
|
1636
1636
|
} | undefined;
|
|
1637
1637
|
};
|
|
@@ -1654,6 +1654,9 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1654
1654
|
title: string;
|
|
1655
1655
|
})[];
|
|
1656
1656
|
completion: {
|
|
1657
|
+
kind: "streak";
|
|
1658
|
+
days: number;
|
|
1659
|
+
} | {
|
|
1657
1660
|
kind: "progress";
|
|
1658
1661
|
goal: {
|
|
1659
1662
|
kind: "count";
|
|
@@ -1670,9 +1673,6 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1670
1673
|
durationMs: number;
|
|
1671
1674
|
};
|
|
1672
1675
|
repeat: "repeat" | "once";
|
|
1673
|
-
} | {
|
|
1674
|
-
kind: "streak";
|
|
1675
|
-
days: number;
|
|
1676
1676
|
} | {
|
|
1677
1677
|
kind: "once";
|
|
1678
1678
|
} | {
|
|
@@ -1698,7 +1698,7 @@ declare const defineQuestType: <T extends Record<string, Setting>, const G exten
|
|
|
1698
1698
|
campaign?: {
|
|
1699
1699
|
key: string;
|
|
1700
1700
|
title: string;
|
|
1701
|
-
enrollment: "
|
|
1701
|
+
enrollment: "required" | "none";
|
|
1702
1702
|
window?: {
|
|
1703
1703
|
from: number;
|
|
1704
1704
|
until: number;
|
package/dist/authoring.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
sourceDataSchema,
|
|
11
11
|
sourceRoles,
|
|
12
12
|
validateQuestShape
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ULU5ZF6R.js";
|
|
14
14
|
import {
|
|
15
15
|
cosmosDenomSchema,
|
|
16
16
|
cosmosNetworkSchema,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
leaderboardAuthoringSchema,
|
|
23
23
|
pointLedgerDeclarationSchema,
|
|
24
24
|
referralAuthoringSchema
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KLF7XABH.js";
|
|
26
26
|
import "./chunk-NPGENI7K.js";
|
|
27
27
|
import {
|
|
28
28
|
authoringKey,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
whereSchemaIssue,
|
|
77
77
|
whereSettings,
|
|
78
78
|
xSearchSourceSchema
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-GXT4S5IK.js";
|
|
80
80
|
|
|
81
81
|
// src/builders.ts
|
|
82
82
|
import { z } from "zod";
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-
|
|
2
|
-
export { C as CosmosChains, D as DiscoveredWallet, E as Eip1193Provider, a as EmailSignInOption, K as KeplrLike, O as OAuthSignInOption, S as SignInClient, b as SignInIcon, c as SignInMethods, d as SignInOption, e as SignInOptions, f as SignInUnavailable, g as SignInWallet, h as SolanaInjectedProvider, i as StandardWallet, j as StandardWalletAccount, W as WalletSignInOption, k as cosmosChainList, l as cosmosSigner, m as discoverCosmosWallets, n as discoverEvmWallets, o as discoverSignInWallets, p as discoverSolanaWallets, q as evmSigner, s as signInOptions, r as solanaSigner, w as walletStandardSolanaSigner } from './sign-in-options-
|
|
1
|
+
import { n as SubmissionStore, f as RelayClientOptions, R as RelayClient } from './client-Dz14Kuu8.js';
|
|
2
|
+
export { C as CosmosChains, D as DiscoveredWallet, E as Eip1193Provider, a as EmailSignInOption, K as KeplrLike, O as OAuthSignInOption, S as SignInClient, b as SignInIcon, c as SignInMethods, d as SignInOption, e as SignInOptions, f as SignInUnavailable, g as SignInWallet, h as SolanaInjectedProvider, i as StandardWallet, j as StandardWalletAccount, W as WalletSignInOption, k as cosmosChainList, l as cosmosSigner, m as discoverCosmosWallets, n as discoverEvmWallets, o as discoverSignInWallets, p as discoverSolanaWallets, q as evmSigner, s as signInOptions, r as solanaSigner, w as walletStandardSolanaSigner } from './sign-in-options-rPCsFr7w.js';
|
|
3
3
|
import './groups-BK8ts2yK.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import './schema-DEM8y8Fm.js';
|
|
6
|
-
import './pages-
|
|
6
|
+
import './pages-tSpttGrI.js';
|
|
7
7
|
import './submission-input-BbBJTVlT.js';
|
|
8
8
|
import './request-error-D_dUPLwo.js';
|
|
9
9
|
import './participant-activity-DkL3nY5a.js';
|
package/dist/browser.js
CHANGED
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
signInOptions,
|
|
12
12
|
solanaSigner,
|
|
13
13
|
walletStandardSolanaSigner
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-CFTTECZZ.js";
|
|
15
|
+
import "./chunk-U4KTGJWU.js";
|
|
16
|
+
import "./chunk-7JHREQ2D.js";
|
|
17
|
+
import "./chunk-GKTD36JW.js";
|
|
18
|
+
import "./chunk-KLF7XABH.js";
|
|
19
19
|
import "./chunk-6QJ3LADK.js";
|
|
20
20
|
import "./chunk-NPGENI7K.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-DG4QQUH7.js";
|
|
22
|
+
import "./chunk-TV2GYBDZ.js";
|
|
23
|
+
import "./chunk-GXT4S5IK.js";
|
|
24
24
|
export {
|
|
25
25
|
browserSubmissionStore,
|
|
26
26
|
cosmosChainList,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRelayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-U4KTGJWU.js";
|
|
4
4
|
import {
|
|
5
5
|
RelayErrorCode,
|
|
6
6
|
asRelayError,
|
|
7
7
|
clientError,
|
|
8
8
|
cosmosChain
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KLF7XABH.js";
|
|
10
10
|
|
|
11
11
|
// src/base58.ts
|
|
12
12
|
var alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
imageFieldsSchema,
|
|
5
5
|
imageInspectionSchema,
|
|
6
6
|
imageSightingsSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FISNMJN3.js";
|
|
8
8
|
import {
|
|
9
9
|
authScopeSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TV2GYBDZ.js";
|
|
11
11
|
import {
|
|
12
12
|
appIdentityKindSchema,
|
|
13
13
|
openIdentityKindSchema,
|
|
14
14
|
photoResultSchema
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GXT4S5IK.js";
|
|
16
16
|
|
|
17
17
|
// src/configuration.ts
|
|
18
18
|
function questConfiguration(release) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pointLedgerReferenceSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KLF7XABH.js";
|
|
4
4
|
import {
|
|
5
5
|
authoringIdentityShape,
|
|
6
6
|
entitlementSchema,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
storedQuestDescriptionSchema,
|
|
18
18
|
storedReviewModeSchema,
|
|
19
19
|
tieredRewardReferenceSchema
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GXT4S5IK.js";
|
|
21
21
|
|
|
22
22
|
// src/participant-activity.ts
|
|
23
23
|
import { z } from "zod";
|
|
@@ -203,6 +203,10 @@ var pageCursorSchema = z2.string().min(1).max(4096);
|
|
|
203
203
|
var pageQuerySchema = z2.strictObject({
|
|
204
204
|
cursor: pageCursorSchema.optional()
|
|
205
205
|
});
|
|
206
|
+
var managementStateQuerySchema = z2.strictObject({
|
|
207
|
+
cursor: pageCursorSchema.optional(),
|
|
208
|
+
limit: z2.coerce.number().int().min(1).max(100).default(50)
|
|
209
|
+
});
|
|
206
210
|
|
|
207
211
|
// src/accounts.ts
|
|
208
212
|
import { z as z3 } from "zod";
|
|
@@ -3016,6 +3020,7 @@ export {
|
|
|
3016
3020
|
responseListSchema,
|
|
3017
3021
|
pageCursorSchema,
|
|
3018
3022
|
pageQuerySchema,
|
|
3023
|
+
managementStateQuerySchema,
|
|
3019
3024
|
authProviderSchema,
|
|
3020
3025
|
accountConnectionSchema,
|
|
3021
3026
|
discordMemberInputSchema,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRelayAction,
|
|
3
3
|
withActionId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7JHREQ2D.js";
|
|
5
5
|
import {
|
|
6
6
|
collectionPassSchema,
|
|
7
7
|
participantActivityQuerySchema,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
questOutcomeQuerySchema,
|
|
17
17
|
questOutcomeSchema,
|
|
18
18
|
rewardDeliveriesSchema
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GKTD36JW.js";
|
|
20
20
|
import {
|
|
21
21
|
AVATAR_UPLOAD_LIMIT,
|
|
22
22
|
RelayError,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
walletSignInNetworksSchema,
|
|
56
56
|
walletSignatureSchema,
|
|
57
57
|
walletUnlinkInputSchema
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-KLF7XABH.js";
|
|
59
59
|
import {
|
|
60
60
|
PARTICIPANT_TIMEOUT,
|
|
61
61
|
lifetime,
|
|
@@ -65,14 +65,14 @@ import {
|
|
|
65
65
|
} from "./chunk-6QJ3LADK.js";
|
|
66
66
|
import {
|
|
67
67
|
clientIdentity
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-DG4QQUH7.js";
|
|
69
69
|
import {
|
|
70
70
|
exchangeResultSchema,
|
|
71
71
|
exchangeSchema,
|
|
72
72
|
memberSummarySchema,
|
|
73
73
|
participantSessionSchema,
|
|
74
74
|
sessionMember
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-TV2GYBDZ.js";
|
|
76
76
|
import {
|
|
77
77
|
accountConnectionSchema,
|
|
78
78
|
attemptSchema,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
tieredRewardReferenceSchema,
|
|
97
97
|
validateSubmissionValue,
|
|
98
98
|
valueEvidenceSchema
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-GXT4S5IK.js";
|
|
100
100
|
|
|
101
101
|
// src/submissions.ts
|
|
102
102
|
import { z } from "zod";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
imageSightingsSchema,
|
|
7
7
|
imageUploadsSchema,
|
|
8
8
|
publishedImageSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FISNMJN3.js";
|
|
10
10
|
import {
|
|
11
11
|
catalogDeploymentSchema,
|
|
12
12
|
collectionPassSchema,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
questTypeVersionSchema,
|
|
25
25
|
questViewSchema,
|
|
26
26
|
rewardDeliveriesSchema
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-GKTD36JW.js";
|
|
28
28
|
import {
|
|
29
29
|
engagementArtifactSchema,
|
|
30
30
|
engagementBoundaryPageSchema,
|
|
@@ -57,12 +57,12 @@ import {
|
|
|
57
57
|
walletBalanceSchema,
|
|
58
58
|
walletMessageChallengeSchema,
|
|
59
59
|
walletSignInNetworksSchema
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-KLF7XABH.js";
|
|
61
61
|
import {
|
|
62
62
|
exchangeResultSchema,
|
|
63
63
|
memberSummarySchema,
|
|
64
64
|
participantSessionSchema
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-TV2GYBDZ.js";
|
|
66
66
|
import {
|
|
67
67
|
accountConnectionSchema,
|
|
68
68
|
attemptSchema,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
tieredRewardReferenceSchema,
|
|
89
89
|
timeZoneNameSchema,
|
|
90
90
|
trackerArtifactSchema
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-GXT4S5IK.js";
|
|
92
92
|
|
|
93
93
|
// src/deployments.ts
|
|
94
94
|
import { z } from "zod";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { aZ as referralAcceptSchema, g as LeaderboardQuery, b as CampaignEnrollmentInput, d as CampaignWithdrawalInput, m as PointHistoryQuery, k as PointEntryKind, a6 as engagementPageQuerySchema } from './groups-BK8ts2yK.js';
|
|
2
|
-
import { j as QuestView, k as ResponseSchema, a as PageQuery, c as QuestEnrollmentInput, Q as QuestClaimInput, g as QuestOutcomeQuery,
|
|
2
|
+
import { j as QuestView, k as ResponseSchema, a as PageQuery, c as QuestEnrollmentInput, Q as QuestClaimInput, g as QuestOutcomeQuery, _ as questExperienceSchema, l as RewardDeliveryAction, F as contentQualificationQuerySchema } from './pages-tSpttGrI.js';
|
|
3
3
|
import { M as MissingPrerequisite, V as ValueEvidence, a as AuthProvider } from './submission-input-BbBJTVlT.js';
|
|
4
4
|
import { R as RequestError, a as RequestErrorDetails, b as RequestErrorKind } from './request-error-D_dUPLwo.js';
|
|
5
5
|
import { f as QuizEvidence, A as Attempt, M as MemberProgress, a as AttemptStatus, h as TrackerSkipCode, c6 as submitSchema, b8 as contentPerformanceQuerySchema } from './schema-DEM8y8Fm.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { R as RelayAction, c as createRelayAction } from './action-9Xl0StBg.js';
|
|
2
|
-
export { C as ClaimSubmission, K as KnownRelayErrorCode, P as PhotoSubmission, a as ProgressObservation, b as ProgressObserver, Q as QuestActionResult, c as QuestController, d as QuestUpdatedError, e as QuizSubmission, R as RelayClient, f as RelayClientOptions, g as RelayError, h as RelayErrorCode, i as RelayErrorDetails, j as RelayErrorKind, k as RelayRequestOptions, l as RelayResponseOptions, S as SubmissionDraft, m as SubmissionStatus, n as SubmissionStore, V as ValueSubmission, o as createRelayClient, p as isRelayError } from './client-
|
|
2
|
+
export { C as ClaimSubmission, K as KnownRelayErrorCode, P as PhotoSubmission, a as ProgressObservation, b as ProgressObserver, Q as QuestActionResult, c as QuestController, d as QuestUpdatedError, e as QuizSubmission, R as RelayClient, f as RelayClientOptions, g as RelayError, h as RelayErrorCode, i as RelayErrorDetails, j as RelayErrorKind, k as RelayRequestOptions, l as RelayResponseOptions, S as SubmissionDraft, m as SubmissionStatus, n as SubmissionStore, V as ValueSubmission, o as createRelayClient, p as isRelayError } from './client-Dz14Kuu8.js';
|
|
3
3
|
export { R as RequestError, a as RequestErrorDetails, b as RequestErrorKind, c as RequestRecovery, i as isRequestError } from './request-error-D_dUPLwo.js';
|
|
4
4
|
export { A as Attempt, a as AttemptStatus, E as Entitlement, b as EvaluatorProgress, K as KnownAttemptStatus, c as KnownTrackerSkipCode, M as MemberProgress, Q as QuestBudgetView, d as QuestPresentation, e as QuestProfile, f as QuizEvidence, R as Reward, S as SubmissionEvidence, g as SubmitInput, T as TieredRewardReference, h as TrackerSkipCode } from './schema-DEM8y8Fm.js';
|
|
5
5
|
export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
|
|
6
6
|
export { A as AccountConnection, a as AuthProvider, M as MissingPrerequisite, P as Prerequisite, T as TextEvidence, b as TextOptions, U as UrlEvidence, c as UrlOptions, V as ValueEvidence } from './submission-input-BbBJTVlT.js';
|
|
7
7
|
export { E as ExchangeInput, M as MemberSummary, P as ParticipantActivity, a as ParticipantPrincipal, b as ParticipantSession, R as RelayEvent, S as Session, s as sessionMember } from './participant-activity-DkL3nY5a.js';
|
|
8
|
-
export { P as Page, a as PageQuery, Q as QuestClaimInput, b as QuestEnrollment, c as QuestEnrollmentInput, d as QuestInteraction, e as QuestOutcome, f as QuestOutcomePage, g as QuestOutcomeQuery, h as QuestOutcomeState, i as QuestRewardView, j as QuestView, R as ResponseResult, U as UnsupportedResponse } from './pages-
|
|
8
|
+
export { P as Page, a as PageQuery, Q as QuestClaimInput, b as QuestEnrollment, c as QuestEnrollmentInput, d as QuestInteraction, e as QuestOutcome, f as QuestOutcomePage, g as QuestOutcomeQuery, h as QuestOutcomeState, i as QuestRewardView, j as QuestView, R as ResponseResult, U as UnsupportedResponse } from './pages-tSpttGrI.js';
|
|
9
9
|
export { A as AvailabilityWindow, C as CampaignDefinition, a as CampaignEnrollment, b as CampaignEnrollmentInput, c as CampaignView, d as CampaignWithdrawalInput, K as KnownPointEntryKind, L as LeaderboardDefinition, e as LeaderboardPage, f as LeaderboardPlacement, g as LeaderboardQuery, M as MemberCampaignEnrollmentInput, h as MemberCampaignWithdrawalInput, P as PointBalance, i as PointBalances, j as PointEntry, k as PointEntryKind, l as PointHistoryPage, m as PointHistoryQuery, n as PointLedgerReference, o as ProjectGroup, p as ProjectGroupReference, R as ReferralDefinition } from './groups-BK8ts2yK.js';
|
|
10
10
|
export { A as AutomaticCatchUpPreview, a as AutomaticEvent, b as AutomaticOutcome, C as CollectionPass, c as CounterAchievement, d as CounterPolicy, e as CounterProgress } from './automatic-outcomes-kPIDv6X_.js';
|
|
11
11
|
export { O as Offer, a as OfferDefinition, b as OfferPrice, R as RedeemOfferInput, c as Redemption } from './offers-C2FANzrG.js';
|
package/dist/index.js
CHANGED
|
@@ -5,31 +5,31 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
QuestUpdatedError,
|
|
7
7
|
createRelayClient
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-U4KTGJWU.js";
|
|
9
9
|
import {
|
|
10
10
|
createRelayAction
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7JHREQ2D.js";
|
|
12
12
|
import {
|
|
13
13
|
QuestOutcomeState
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GKTD36JW.js";
|
|
15
15
|
import {
|
|
16
16
|
PointEntryKind,
|
|
17
17
|
RelayError,
|
|
18
18
|
RelayErrorCode,
|
|
19
19
|
isRelayError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KLF7XABH.js";
|
|
21
21
|
import "./chunk-6QJ3LADK.js";
|
|
22
22
|
import {
|
|
23
23
|
RequestError,
|
|
24
24
|
isRequestError
|
|
25
25
|
} from "./chunk-NPGENI7K.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-DG4QQUH7.js";
|
|
27
27
|
import {
|
|
28
28
|
sessionMember
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-TV2GYBDZ.js";
|
|
30
30
|
import {
|
|
31
31
|
AttemptStatus
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-GXT4S5IK.js";
|
|
33
33
|
export {
|
|
34
34
|
AttemptStatus,
|
|
35
35
|
PointEntryKind,
|
package/dist/internal.js
CHANGED
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
participantExchangeSchema,
|
|
11
11
|
questConfiguration,
|
|
12
12
|
sequenceCursorSchema
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-DJOGMLYT.js";
|
|
14
|
+
import "./chunk-FISNMJN3.js";
|
|
15
15
|
import {
|
|
16
16
|
sourceDataSchema,
|
|
17
17
|
sourceRoles,
|
|
18
18
|
validateQuestShape
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ULU5ZF6R.js";
|
|
20
20
|
import {
|
|
21
21
|
isIntegrationParticipantPath,
|
|
22
22
|
isParticipantRoute,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
retrying
|
|
31
31
|
} from "./chunk-6QJ3LADK.js";
|
|
32
32
|
import "./chunk-NPGENI7K.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-TV2GYBDZ.js";
|
|
34
34
|
import {
|
|
35
35
|
schemaCheckedReader,
|
|
36
36
|
trackerDataBatchSteps,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
trackerDataPathTypes,
|
|
40
40
|
trackerDataRecordSteps,
|
|
41
41
|
whereSchemaIssue
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-GXT4S5IK.js";
|
|
43
43
|
export {
|
|
44
44
|
MANAGEMENT_TIMEOUT,
|
|
45
45
|
REFERRAL_INTEGRATION_REWARD_ERROR,
|
|
@@ -4862,8 +4862,8 @@ declare const memberEnrollmentInputSchema: z.ZodObject<{
|
|
|
4862
4862
|
}, z.core.$strict>;
|
|
4863
4863
|
type MemberEnrollmentInput = z.input<typeof memberEnrollmentInputSchema>;
|
|
4864
4864
|
/**
|
|
4865
|
-
* A member's enrollment in a quest.
|
|
4866
|
-
*
|
|
4865
|
+
* A member's active enrollment in a quest. Enrolling again changes nothing; an operator can
|
|
4866
|
+
* withdraw it, after which enrollment starts a new consent period.
|
|
4867
4867
|
*/
|
|
4868
4868
|
declare const questEnrollmentSchema: z.ZodObject<{
|
|
4869
4869
|
quest: z.ZodString;
|
|
@@ -4972,5 +4972,11 @@ type Page<T> = {
|
|
|
4972
4972
|
items: T[];
|
|
4973
4973
|
nextCursor: string | null;
|
|
4974
4974
|
};
|
|
4975
|
+
/** A management state page with an operator-selected size. */
|
|
4976
|
+
declare const managementStateQuerySchema: z.ZodObject<{
|
|
4977
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
4978
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
4979
|
+
}, z.core.$strict>;
|
|
4980
|
+
type ManagementStateQuery = z.input<typeof managementStateQuerySchema>;
|
|
4975
4981
|
|
|
4976
|
-
export {
|
|
4982
|
+
export { questInstanceSchema as $, contentMetricsSchema as A, contentPerformancePolicySchema as B, type ContentMetric as C, contentQualificationDecisionSchema as D, contentQualificationPageSchema as E, contentQualificationQuerySchema as F, contentQualificationSchema as G, interactionSchema as H, knownRewardDeliverySchema as I, managementStateQuerySchema as J, memberEnrollmentInputSchema as K, pageCursorSchema as L, type ManagementStateQuery as M, pageQuerySchema as N, publishQuestDraftSchema as O, type Page as P, type QuestClaimInput as Q, type ResponseResult as R, questCatalogSchema as S, questClaimInputSchema as T, type UnsupportedResponse as U, questCollectionSchema as V, questDraftChangesSchema as W, questDraftSchema as X, questEnrollmentInputSchema as Y, questEnrollmentSchema as Z, questExperienceSchema as _, type PageQuery as a, questInteraction as a0, questOutcomePageSchema as a1, questOutcomeQuerySchema as a2, questOutcomeSchema as a3, questPublicationPreviewSchema as a4, questRewardViewSchema as a5, questTypeVersionSchema as a6, questViewSchema as a7, responseListSchema as a8, responseSchema as a9, responseShape as aa, rewardDeliveriesSchema as ab, rewardDeliverySchema as ac, roleReconciliationSchema as ad, saveQuestDraftSchema as ae, type QuestEnrollment as b, type QuestEnrollmentInput as c, type QuestInteraction as d, type QuestOutcome as e, type QuestOutcomePage as f, type QuestOutcomeQuery as g, QuestOutcomeState as h, type QuestRewardView as i, type QuestView as j, type ResponseSchema as k, RewardDeliveryAction as l, type ContentPerformancePolicy as m, type MemberEnrollmentInput as n, type QuestCatalog as o, type QuestDraft as p, type QuestInstance as q, type RewardDelivery as r, allocateQuestSchema as s, allocatedQuestSchema as t, catalogDeploymentPreviewSchema as u, catalogDeploymentSchema as v, collectionSlotDeclarationSchema as w, collectionSlotSchema as x, collectionViewSchema as y, contentMetricSchema as z };
|