@domino-sdk/relay 1.16.0 → 1.18.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/{attempt-captures-DHwIVoRP.d.ts → attempt-captures-ByzZyggX.d.ts} +5 -1
- package/dist/authoring.d.ts +82 -9
- package/dist/authoring.js +14 -9
- package/dist/{automatic-outcomes-BcEn_L46.d.ts → automatic-outcomes-BBSdMf0R.d.ts} +2 -1
- package/dist/avatar.d.ts +1 -1
- package/dist/browser.d.ts +7 -7
- package/dist/browser.js +9 -11
- package/dist/{chunk-Y6SRF54G.js → chunk-4VWMY4II.js} +32 -25
- package/dist/{chunk-6QJ3LADK.js → chunk-5P5PTZ3T.js} +1 -1
- package/dist/{chunk-3YCCHTCU.js → chunk-BWW3XLEE.js} +2 -2
- package/dist/{chunk-W335CWYJ.js → chunk-CVQG2AZZ.js} +2 -2
- package/dist/{chunk-ZLYBUM7K.js → chunk-DQWRDRVO.js} +26 -14
- package/dist/{chunk-46C33ASD.js → chunk-EMLDFUTV.js} +1314 -908
- package/dist/{chunk-4OLQYRSA.js → chunk-GMKJPHN4.js} +1 -1
- package/dist/{chunk-NM3IYYPG.js → chunk-HQBCFU5G.js} +6 -8
- package/dist/{chunk-YT3QKV2L.js → chunk-I525XMUY.js} +1 -1
- package/dist/{chunk-LLMJ2SUT.js → chunk-IE4QOQUI.js} +21 -4
- package/dist/{chunk-ZGH6NEG6.js → chunk-JIQHUDVZ.js} +1 -1
- package/dist/{chunk-NIYCAW2I.js → chunk-NGP2NMZ4.js} +1 -1
- package/dist/{chunk-XMBM2XD5.js → chunk-T47OFHHX.js} +2 -4
- package/dist/{chunk-AXRMT33W.js → chunk-UIHPWC4C.js} +3 -0
- package/dist/{chunk-UJACD6K2.js → chunk-XSLRNFIY.js} +346 -304
- package/dist/{chunk-PT5STHFH.js → chunk-YXAK2637.js} +1 -1
- package/dist/{client-DFSCmf3H.d.ts → client-93pUw04R.d.ts} +182 -14
- package/dist/{deployments-DIbKJO_Y.d.ts → deployments-D0mrWCsp.d.ts} +817 -1
- package/dist/{groups-Bi7lc54m.d.ts → groups-jLLG7MML.d.ts} +27 -2
- package/dist/{images-Cb8QHGjn.d.ts → images-BPiPqVKn.d.ts} +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +12 -16
- package/dist/internal.d.ts +10 -10
- package/dist/internal.js +9 -10
- package/dist/{offers-Catj06u7.d.ts → offers-CPqiF3dZ.d.ts} +92 -3
- package/dist/{pages-CpYt56Km.d.ts → pages-1h1387a3.d.ts} +757 -3
- package/dist/portal-proxy.js +4 -4
- package/dist/react/index.d.ts +47 -19
- package/dist/react/index.js +361 -340
- package/dist/{schema-BaVl2VBS.d.ts → schema-Br3c1GOu.d.ts} +508 -2
- package/dist/schema.d.ts +565 -24
- package/dist/schema.js +61 -32
- package/dist/server/index.d.ts +10 -10
- package/dist/server/index.js +82 -24
- package/dist/{sign-in-options-CU1ND6-y.d.ts → sign-in-options--25uHySG.d.ts} +1 -1
- package/dist/{submission-input-Bi4HipqI.d.ts → submission-input-BEJ9qENg.d.ts} +2 -2
- package/dist/testing.d.ts +3 -3
- package/dist/testing.js +10 -13
- package/dist/{transport-BdrcbKi_.d.ts → transport-C2cK-6wO.d.ts} +6411 -72
- package/package.json +1 -1
- package/dist/chunk-2UAVZCMH.js +0 -314
- package/dist/chunk-NPGENI7K.js +0 -37
- package/dist/{profiles-BHMVj0kM.d.ts → profiles-D29SS12z.d.ts} +1 -1
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
imageSightingsSchema,
|
|
7
7
|
imageUploadsSchema,
|
|
8
8
|
publishedImageSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JIQHUDVZ.js";
|
|
10
10
|
import {
|
|
11
11
|
catalogDeploymentSchema,
|
|
12
12
|
collectionPassSchema,
|
|
@@ -24,8 +24,10 @@ import {
|
|
|
24
24
|
questTypeVersionSchema,
|
|
25
25
|
questViewSchema,
|
|
26
26
|
rewardDeliveriesSchema
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-IE4QOQUI.js";
|
|
28
28
|
import {
|
|
29
|
+
badgeArtifactSchema,
|
|
30
|
+
badgeSchema,
|
|
29
31
|
engagementArtifactSchema,
|
|
30
32
|
engagementBoundaryPageSchema,
|
|
31
33
|
engagementDeploymentEntrySchema,
|
|
@@ -35,6 +37,8 @@ import {
|
|
|
35
37
|
leaderboardPageSchema,
|
|
36
38
|
leaderboardPlacementSchema,
|
|
37
39
|
leaderboardPreviewSchema,
|
|
40
|
+
managedBadgeSchema,
|
|
41
|
+
memberBadgesSchema,
|
|
38
42
|
offerArtifactSchema,
|
|
39
43
|
offerDefinitionSchema,
|
|
40
44
|
offerSchema,
|
|
@@ -53,18 +57,12 @@ import {
|
|
|
53
57
|
referralDefinitionSchema,
|
|
54
58
|
referralHistorySchema,
|
|
55
59
|
referralSummarySchema
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import {
|
|
58
|
-
linkedWalletSchema,
|
|
59
|
-
walletBalanceSchema,
|
|
60
|
-
walletMessageChallengeSchema,
|
|
61
|
-
walletSignInNetworksSchema
|
|
62
|
-
} from "./chunk-2UAVZCMH.js";
|
|
60
|
+
} from "./chunk-XSLRNFIY.js";
|
|
63
61
|
import {
|
|
64
62
|
exchangeResultSchema,
|
|
65
63
|
memberSummarySchema,
|
|
66
64
|
participantSessionSchema
|
|
67
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-YXAK2637.js";
|
|
68
66
|
import {
|
|
69
67
|
accountConnectionSchema,
|
|
70
68
|
attemptSchema,
|
|
@@ -77,6 +75,7 @@ import {
|
|
|
77
75
|
identifier,
|
|
78
76
|
knownResponse,
|
|
79
77
|
lazyResponseReaders,
|
|
78
|
+
linkedWalletSchema,
|
|
80
79
|
markResponseSchema,
|
|
81
80
|
memberProgressSchema,
|
|
82
81
|
pageCursorSchema,
|
|
@@ -90,14 +89,18 @@ import {
|
|
|
90
89
|
rewardSchema,
|
|
91
90
|
tieredRewardReferenceSchema,
|
|
92
91
|
timeZoneNameSchema,
|
|
93
|
-
trackerArtifactSchema
|
|
94
|
-
|
|
92
|
+
trackerArtifactSchema,
|
|
93
|
+
walletBalanceSchema,
|
|
94
|
+
walletMessageChallengeSchema,
|
|
95
|
+
walletSignInNetworksSchema
|
|
96
|
+
} from "./chunk-EMLDFUTV.js";
|
|
95
97
|
|
|
96
98
|
// src/deployments.ts
|
|
97
99
|
import { z } from "zod";
|
|
98
100
|
var projectCatalogArtifactSchema = catalogDeploymentSchema.omit({ expectedRevision: true }).extend({
|
|
99
101
|
engagement: z.array(engagementArtifactSchema).max(50).default([]),
|
|
100
102
|
trackers: z.array(trackerArtifactSchema).max(50).default([]),
|
|
103
|
+
badges: z.array(badgeArtifactSchema).max(100).default([]),
|
|
101
104
|
pointLedgers: z.array(pointLedgerArtifactSchema).max(50).default([]),
|
|
102
105
|
offers: z.array(offerArtifactSchema).max(100).default([]),
|
|
103
106
|
referrals: z.array(referralArtifactSchema).max(50).default([]),
|
|
@@ -107,14 +110,15 @@ var projectCatalogArtifactSchema = catalogDeploymentSchema.omit({ expectedRevisi
|
|
|
107
110
|
calendar: projectCalendarDeclarationSchema.optional()
|
|
108
111
|
});
|
|
109
112
|
var projectDeploymentSchema = projectCatalogArtifactSchema.extend({ releases: z.array(releaseSchema).max(50).default([]) }).refine(
|
|
110
|
-
(value) => value.engagement.length > 0 || value.trackers.length > 0 || value.pointLedgers.length > 0 || value.offers.length > 0 || value.releases.length > 0 || value.leaderboards.length > 0 || value.referrals.length > 0 || value.images.length > 0 || value.types.length > 0 || value.collections.length > 0 || value.supportedInteractions !== void 0 || value.calendar !== void 0,
|
|
111
|
-
"No resources configured. Add engagement, trackers, quests, questTypes, pointLedgers, offers, leaderboards, referrals, images, collections, supportedInteractions, or calendar to relay.json."
|
|
113
|
+
(value) => value.engagement.length > 0 || value.trackers.length > 0 || value.pointLedgers.length > 0 || value.badges.length > 0 || value.offers.length > 0 || value.releases.length > 0 || value.leaderboards.length > 0 || value.referrals.length > 0 || value.images.length > 0 || value.types.length > 0 || value.collections.length > 0 || value.supportedInteractions !== void 0 || value.calendar !== void 0,
|
|
114
|
+
"No resources configured. Add engagement, trackers, quests, questTypes, badges, pointLedgers, offers, leaderboards, referrals, images, collections, supportedInteractions, or calendar to relay.json."
|
|
112
115
|
);
|
|
113
116
|
var deploymentPreviewSchema = z.object({
|
|
114
117
|
id: identifier,
|
|
115
118
|
engagement: z.array(engagementDeploymentEntrySchema).default([]),
|
|
116
119
|
trackers: z.array(publishedTrackerSchema).default([]),
|
|
117
120
|
baseRevision: z.number().int().nonnegative(),
|
|
121
|
+
badges: z.array(managedBadgeSchema).optional(),
|
|
118
122
|
pointLedgers: z.array(pointLedgerSchema).default([]),
|
|
119
123
|
offers: z.array(offerDefinitionSchema).default([]),
|
|
120
124
|
releases: z.array(publishedReleaseSchema),
|
|
@@ -390,6 +394,12 @@ var automaticSchedulingRetrySchema = z3.strictObject({
|
|
|
390
394
|
|
|
391
395
|
// src/response-readers.ts
|
|
392
396
|
var participantResponseSchemas = lazyResponseReaders({
|
|
397
|
+
get badgeSchema() {
|
|
398
|
+
return knownResponse(badgeSchema);
|
|
399
|
+
},
|
|
400
|
+
get memberBadgesSchema() {
|
|
401
|
+
return knownResponse(memberBadgesSchema);
|
|
402
|
+
},
|
|
393
403
|
get accountConnectionSchema() {
|
|
394
404
|
return knownResponse(accountConnectionSchema);
|
|
395
405
|
},
|
|
@@ -515,6 +525,8 @@ var participantResponseSchemas = lazyResponseReaders({
|
|
|
515
525
|
}
|
|
516
526
|
});
|
|
517
527
|
var participantResponses = {
|
|
528
|
+
badgeSchema: responseSchema(badgeSchema),
|
|
529
|
+
memberBadgesSchema: responseSchema(memberBadgesSchema),
|
|
518
530
|
accountConnectionSchema: responseSchema(accountConnectionSchema),
|
|
519
531
|
attemptSchema: responseSchema(attemptSchema),
|
|
520
532
|
authProviderSchema: responseSchema(authProviderSchema),
|