@replohq/sdk 2.4.0 → 2.7.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 (53) hide show
  1. package/_vendor/replo-utils/lib/crypto.d.ts +1 -0
  2. package/_vendor/replo-utils/lib/json.mjs +4 -4
  3. package/_vendor/replo-utils/lib/misc.mjs +726 -4
  4. package/_vendor/replo-utils/lib/object.mjs +3 -3
  5. package/_vendor/schemas/contentCollection.d.ts +2 -2
  6. package/_vendor/schemas/contentEntry.mjs +3 -3
  7. package/_vendor/schemas/contentManifest.mjs +6 -6
  8. package/_vendor/schemas/moneyFormat.mjs +1 -1
  9. package/_vendor/schemas/routing/locale.d.ts +1 -1
  10. package/_vendor/schemas/routing/locale.mjs +1 -6
  11. package/_vendor/schemas/routing/rules.d.ts +1 -1
  12. package/_vendor/schemas/routing/rules.mjs +1 -6
  13. package/analytics/pixel-meta.d.ts +14 -0
  14. package/analytics/pixel-meta.js +28 -0
  15. package/analytics/replo-first-party-pixel.d.ts +5 -4
  16. package/analytics/replo-first-party-pixel.js +7 -3
  17. package/analytics/replo-pixel-from-meta.d.ts +7 -0
  18. package/analytics/replo-pixel-from-meta.js +27 -0
  19. package/analytics/replo-pixel-script.d.ts +3 -1
  20. package/analytics/replo-pixel-script.js +4 -2
  21. package/cart/buy-now-action.d.ts +2 -13
  22. package/cart/buy-now-action.js +11 -75
  23. package/cart/cart-actions.js +21 -1
  24. package/cart/checkout-actions.d.ts +34 -0
  25. package/cart/checkout-actions.js +27 -0
  26. package/cart/checkout-appearance.d.ts +35 -0
  27. package/cart/checkout-appearance.js +131 -0
  28. package/cart/checkout-session-actions.d.ts +20 -0
  29. package/cart/checkout-session-actions.js +12 -0
  30. package/cart/checkout.d.ts +110 -0
  31. package/cart/checkout.js +420 -0
  32. package/cart/start-stripe-checkout.d.ts +40 -0
  33. package/cart/start-stripe-checkout.js +75 -0
  34. package/cart/utils/shopify-shared-cart.d.ts +9 -0
  35. package/cart/utils/shopify-shared-cart.js +33 -0
  36. package/{chunk-TTEBDCWT.mjs → chunk-4YTXURVN.mjs} +2 -2
  37. package/{chunk-O4QBR4QC.mjs → chunk-DMJ5VUD6.mjs} +2 -2
  38. package/{chunk-OPKMOW43.mjs → chunk-GNIXARC7.mjs} +1 -1
  39. package/{chunk-XWWFRIXV.mjs → chunk-N4WC2Z43.mjs} +1 -1
  40. package/{chunk-PSYP2DYM.mjs → chunk-QYGRVXWQ.mjs} +1 -1
  41. package/env.d.ts +1 -0
  42. package/env.js +1 -0
  43. package/gateways/canopy-api.d.ts +97 -0
  44. package/gateways/canopy-api.js +120 -0
  45. package/lib/buildMetadata.js +3 -3
  46. package/package.json +14 -4
  47. package/_vendor/replo-utils/lib/errors.d.ts +0 -84
  48. package/_vendor/schemas/errors.d.ts +0 -450
  49. package/_vendor/schemas/generated/errors.d.ts +0 -64
  50. package/chunk-XGXJOHUY.mjs +0 -724
  51. package/chunk-XSMYSAKY.mjs +0 -78
  52. /package/{chunk-CKRRL66R.mjs → chunk-AE5H7AJS.mjs} +0 -0
  53. /package/{chunk-ZPDXVFCR.mjs → chunk-JBCOJHZN.mjs} +0 -0
@@ -1,78 +0,0 @@
1
- import * as z from 'zod';
2
-
3
- var errorUserFacingDetailsMessageSchema = z.object({
4
- type: z.enum([
5
- "toast",
6
- "fullPageModal",
7
- "shopifyStorePassword",
8
- "billing.addPublishedElements",
9
- "billing.addShopifyThemeProject",
10
- "billing.addReploSite",
11
- "agentBilling.shopifyThemeBuilder.publishedElements.exceeded",
12
- "agentBilling.shopifyThemeBuilder.projects.exceeded",
13
- "agentBilling.sites.exceeded",
14
- "agentBilling.credits.exceeded",
15
- "agentBilling.upgradeRequired"
16
- ]),
17
- message: z.string(),
18
- isRecoverable: z.boolean().optional(),
19
- detail: z.array(z.string()).or(z.string()).optional(),
20
- key: z.string(),
21
- details: z.record(z.string(), z.unknown()).optional(),
22
- usage: z.object({
23
- current: z.number(),
24
- maximum: z.number()
25
- }).optional(),
26
- plan: z.string().optional(),
27
- callToAction: z.discriminatedUnion("type", [
28
- z.object({ type: z.literal("reload") }),
29
- z.object({ type: z.literal("installApp") }),
30
- z.object({ type: z.literal("goToHomepage") }),
31
- z.object({ type: z.literal("navigateToProjectEditor") }),
32
- z.object({ type: z.literal("closeModal") }),
33
- z.object({
34
- type: z.literal("navigateToLink"),
35
- link: z.discriminatedUnion("type", [
36
- z.object({ type: z.literal("errors.wrongJsonExtension") }),
37
- z.object({ type: z.literal("errors.chunkingError") }),
38
- z.object({ type: z.literal("errors.indexBackupError") }),
39
- z.object({
40
- type: z.literal("errors.shopifyIntegrationAlreadyAssigned")
41
- }),
42
- z.object({
43
- type: z.literal("errors.shopifyIntegrationMissingAccessScopes"),
44
- url: z.string()
45
- }),
46
- z.object({
47
- type: z.literal("customLink"),
48
- url: z.string()
49
- }),
50
- z.object({
51
- type: z.literal(
52
- "errors.projectConnectedToBillingIntegrationForShopifyWorkspace"
53
- )
54
- }),
55
- z.object({ type: z.literal("errors.themeAssetSizeLimitExceeded") }),
56
- z.object({ type: z.literal("errors.themeTotalSizeLimitExceeded") }),
57
- z.object({
58
- type: z.literal("errors.pageMetafieldDefinitionsChanged")
59
- }),
60
- z.object({ type: z.literal("settings.billing") })
61
- ])
62
- })
63
- ]).optional()
64
- }).describe("ErrorUserFacingDetailsWithMessage");
65
- z.discriminatedUnion("type", [
66
- errorUserFacingDetailsMessageSchema,
67
- z.object({
68
- type: z.literal("uncommon_none"),
69
- key: z.string(),
70
- usage: z.object({
71
- current: z.number(),
72
- maximum: z.number()
73
- }).optional(),
74
- message: z.string().optional(),
75
- isRecoverable: z.boolean().optional(),
76
- detail: z.array(z.string()).or(z.string()).optional()
77
- })
78
- ]).describe("ErrorUserFacingDetails");
File without changes
File without changes