@domino-sdk/relay 1.5.2 → 1.6.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/{activity-DeKJsRry.d.ts → activity-mPUN4v5Q.d.ts} +147 -116
- package/dist/authoring.d.ts +59 -47
- package/dist/authoring.js +3 -3
- package/dist/{automatic-outcomes-B1xrETxm.d.ts → automatic-outcomes-DmuqzQiH.d.ts} +224 -13
- package/dist/browser.d.ts +22 -10
- package/dist/browser.js +6 -6
- package/dist/{capability-error-DNMwKmlL.d.ts → capability-error-Bv996M-h.d.ts} +2 -0
- package/dist/{chunk-GQKYAQM6.js → chunk-23QJ7WH4.js} +1 -1
- package/dist/{chunk-XFMSUPNS.js → chunk-6ON4RMEN.js} +1 -1
- package/dist/{chunk-VFHHLN6A.js → chunk-6RBF3UDA.js} +49 -6
- package/dist/chunk-AXRMT33W.js +112 -0
- package/dist/{chunk-24AFCBZN.js → chunk-BFZHJA2B.js} +2 -2
- package/dist/{chunk-EYH5RDIE.js → chunk-C25TDFHN.js} +4 -2
- package/dist/{chunk-36HTX2BM.js → chunk-GMPPLZKH.js} +61 -4
- package/dist/{chunk-BGGKNIRP.js → chunk-JW4G3SY5.js} +1 -1
- package/dist/{chunk-JON5SESL.js → chunk-KGJSKGKI.js} +84 -6
- package/dist/{chunk-WJSSJ7AF.js → chunk-QGLHZ2E5.js} +24 -4
- package/dist/{chunk-DGWMLN35.js → chunk-ZOUEEK5L.js} +16 -5
- package/dist/{client-gqnRUHpC.d.ts → client-CQuTAjSs.d.ts} +88 -41
- package/dist/{groups-Ck-OxzjD.d.ts → groups-D08JtrZu.d.ts} +175 -3
- package/dist/{identity-integration-GxAHdKR2.d.ts → identity-integration-BPovus6e.d.ts} +1 -1
- package/dist/{images-Dv-P5VBw.d.ts → images-D7en0Awp.d.ts} +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +5 -5
- package/dist/internal.d.ts +34 -27
- package/dist/internal.js +18 -24
- package/dist/{offers-Cy-e4o5x.d.ts → offers-BENZl5l5.d.ts} +3 -2
- package/dist/{outcomes-kVB-Juzs.d.ts → pages-CBa-_u_n.d.ts} +142 -99
- package/dist/{pages-BBYD21IE.d.ts → participant-activity-DkL3nY5a.d.ts} +1 -14
- package/dist/portal-proxy.js +48 -36
- package/dist/react/index.d.ts +25 -3949
- package/dist/react/index.js +8 -7
- package/dist/{request-error-DWduJCGV.d.ts → request-error-D_dUPLwo.d.ts} +5 -0
- package/dist/{schema-DfJzH2ci.d.ts → schema-BPdHSCAc.d.ts} +122 -37
- package/dist/schema.d.ts +10 -10
- package/dist/schema.js +48 -6
- package/dist/server/index.d.ts +9672 -66110
- package/dist/server/index.js +1009 -548
- package/dist/sign-in-options-FPKoZMfo.d.ts +202 -0
- package/dist/{submission-input-BZkm6ohU.d.ts → submission-input-BzIWutQi.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/browser-D_3s8B5e.d.ts +0 -4154
- package/dist/chunk-GUP7YRR4.js +0 -42
package/dist/chunk-GUP7YRR4.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// src/participant-routes.ts
|
|
2
|
-
function isActivityParticipantRoute(path, method) {
|
|
3
|
-
return path === "/v1/me/activity" && method === "GET";
|
|
4
|
-
}
|
|
5
|
-
function isRewardsParticipantRoute(path, method) {
|
|
6
|
-
return method === "GET" && ["/v1/me/entitlements", "/v1/me/deliveries"].includes(path);
|
|
7
|
-
}
|
|
8
|
-
function isContentParticipantRoute(path, method) {
|
|
9
|
-
return method === "GET" && (path === "/v1/content/qualifications" || path === "/v1/content/performance" || path === "/v1/engagement/history" || path === "/v1/engagement/boundaries");
|
|
10
|
-
}
|
|
11
|
-
function isQuestOutcomeParticipantRoute(path, method) {
|
|
12
|
-
return method === "GET" && path === "/v1/quests/outcomes" || method === "POST" && (path === "/v1/quests/enrollments" || path === "/v1/campaigns/enrollments" || path === "/v1/campaigns/enrollments/withdraw" || path === "/v1/quests/claims");
|
|
13
|
-
}
|
|
14
|
-
function isPointsParticipantRoute(path, method) {
|
|
15
|
-
return method === "GET" && /^\/v1\/me\/points(?:\/[\w-]+\/history)?$/.test(path);
|
|
16
|
-
}
|
|
17
|
-
function isOfferParticipantRoute(path, method) {
|
|
18
|
-
return path === "/v1/offers" && method === "GET" || /^\/v1\/offers\/[\w-]+\/redeem$/.test(path) && method === "POST";
|
|
19
|
-
}
|
|
20
|
-
function isProfileParticipantRoute(path, method) {
|
|
21
|
-
return method === "GET" && (path === "/v1/me/profile" || /^\/v1\/profiles\/[\w-]+(?:\/completions|\/referrals\/[\w-]+)?$/.test(
|
|
22
|
-
path
|
|
23
|
-
) || /^\/v1\/leaderboards\/[\w-]+\/profiles\/[\w-]+$/.test(path)) || method === "POST" && (path === "/v1/me/profile" || path === "/v1/me/profile/avatar");
|
|
24
|
-
}
|
|
25
|
-
function isWalletParticipantRoute(path) {
|
|
26
|
-
return /^\/v1\/me\/wallets(?:\/challenge|\/verify|\/unlink)?$/.test(path);
|
|
27
|
-
}
|
|
28
|
-
function isWalletSignInRoute(path) {
|
|
29
|
-
return /^\/v1\/auth\/wallet\/(?:start|verify)$/.test(path);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
isActivityParticipantRoute,
|
|
34
|
-
isRewardsParticipantRoute,
|
|
35
|
-
isContentParticipantRoute,
|
|
36
|
-
isQuestOutcomeParticipantRoute,
|
|
37
|
-
isPointsParticipantRoute,
|
|
38
|
-
isOfferParticipantRoute,
|
|
39
|
-
isProfileParticipantRoute,
|
|
40
|
-
isWalletParticipantRoute,
|
|
41
|
-
isWalletSignInRoute
|
|
42
|
-
};
|