@domino-sdk/relay 1.5.1 → 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.
Files changed (43) hide show
  1. package/dist/{activity-B8k9Sa_a.d.ts → activity-mPUN4v5Q.d.ts} +33 -2
  2. package/dist/authoring.d.ts +22 -10
  3. package/dist/authoring.js +3 -3
  4. package/dist/{automatic-outcomes-B1xrETxm.d.ts → automatic-outcomes-DmuqzQiH.d.ts} +224 -13
  5. package/dist/browser.d.ts +22 -10
  6. package/dist/browser.js +6 -6
  7. package/dist/{capability-error-DNMwKmlL.d.ts → capability-error-Bv996M-h.d.ts} +2 -0
  8. package/dist/{chunk-GQKYAQM6.js → chunk-23QJ7WH4.js} +1 -1
  9. package/dist/{chunk-XFMSUPNS.js → chunk-6ON4RMEN.js} +1 -1
  10. package/dist/{chunk-VFHHLN6A.js → chunk-6RBF3UDA.js} +49 -6
  11. package/dist/chunk-AXRMT33W.js +112 -0
  12. package/dist/{chunk-24AFCBZN.js → chunk-BFZHJA2B.js} +2 -2
  13. package/dist/{chunk-EYH5RDIE.js → chunk-C25TDFHN.js} +4 -2
  14. package/dist/{chunk-36HTX2BM.js → chunk-GMPPLZKH.js} +61 -4
  15. package/dist/{chunk-BGGKNIRP.js → chunk-JW4G3SY5.js} +1 -1
  16. package/dist/{chunk-JON5SESL.js → chunk-KGJSKGKI.js} +84 -6
  17. package/dist/{chunk-WJSSJ7AF.js → chunk-QGLHZ2E5.js} +24 -4
  18. package/dist/{chunk-DGWMLN35.js → chunk-ZOUEEK5L.js} +16 -5
  19. package/dist/{client-gqnRUHpC.d.ts → client-CQuTAjSs.d.ts} +88 -41
  20. package/dist/{groups-Ck-OxzjD.d.ts → groups-D08JtrZu.d.ts} +175 -3
  21. package/dist/{identity-integration-GxAHdKR2.d.ts → identity-integration-BPovus6e.d.ts} +1 -1
  22. package/dist/{images-Dv-P5VBw.d.ts → images-D7en0Awp.d.ts} +1 -1
  23. package/dist/index.d.ts +9 -9
  24. package/dist/index.js +5 -5
  25. package/dist/internal.d.ts +34 -27
  26. package/dist/internal.js +18 -24
  27. package/dist/{offers-Cy-e4o5x.d.ts → offers-BENZl5l5.d.ts} +3 -2
  28. package/dist/{outcomes-kVB-Juzs.d.ts → pages-CBa-_u_n.d.ts} +142 -99
  29. package/dist/{pages-BBYD21IE.d.ts → participant-activity-DkL3nY5a.d.ts} +1 -14
  30. package/dist/portal-proxy.js +48 -36
  31. package/dist/react/index.d.ts +25 -3949
  32. package/dist/react/index.js +8 -7
  33. package/dist/{request-error-DWduJCGV.d.ts → request-error-D_dUPLwo.d.ts} +5 -0
  34. package/dist/{schema-DfJzH2ci.d.ts → schema-BPdHSCAc.d.ts} +122 -37
  35. package/dist/schema.d.ts +10 -10
  36. package/dist/schema.js +48 -6
  37. package/dist/server/index.d.ts +9672 -66110
  38. package/dist/server/index.js +1009 -548
  39. package/dist/sign-in-options-FPKoZMfo.d.ts +202 -0
  40. package/dist/{submission-input-BZkm6ohU.d.ts → submission-input-BzIWutQi.d.ts} +2 -2
  41. package/package.json +1 -1
  42. package/dist/browser-Cf1opQjX.d.ts +0 -4154
  43. package/dist/chunk-GUP7YRR4.js +0 -42
@@ -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
- };