@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.
- package/_vendor/replo-utils/lib/crypto.d.ts +1 -0
- package/_vendor/replo-utils/lib/json.mjs +4 -4
- package/_vendor/replo-utils/lib/misc.mjs +726 -4
- package/_vendor/replo-utils/lib/object.mjs +3 -3
- package/_vendor/schemas/contentCollection.d.ts +2 -2
- package/_vendor/schemas/contentEntry.mjs +3 -3
- package/_vendor/schemas/contentManifest.mjs +6 -6
- package/_vendor/schemas/moneyFormat.mjs +1 -1
- package/_vendor/schemas/routing/locale.d.ts +1 -1
- package/_vendor/schemas/routing/locale.mjs +1 -6
- package/_vendor/schemas/routing/rules.d.ts +1 -1
- package/_vendor/schemas/routing/rules.mjs +1 -6
- package/analytics/pixel-meta.d.ts +14 -0
- package/analytics/pixel-meta.js +28 -0
- package/analytics/replo-first-party-pixel.d.ts +5 -4
- package/analytics/replo-first-party-pixel.js +7 -3
- package/analytics/replo-pixel-from-meta.d.ts +7 -0
- package/analytics/replo-pixel-from-meta.js +27 -0
- package/analytics/replo-pixel-script.d.ts +3 -1
- package/analytics/replo-pixel-script.js +4 -2
- package/cart/buy-now-action.d.ts +2 -13
- package/cart/buy-now-action.js +11 -75
- package/cart/cart-actions.js +21 -1
- package/cart/checkout-actions.d.ts +34 -0
- package/cart/checkout-actions.js +27 -0
- package/cart/checkout-appearance.d.ts +35 -0
- package/cart/checkout-appearance.js +131 -0
- package/cart/checkout-session-actions.d.ts +20 -0
- package/cart/checkout-session-actions.js +12 -0
- package/cart/checkout.d.ts +110 -0
- package/cart/checkout.js +420 -0
- package/cart/start-stripe-checkout.d.ts +40 -0
- package/cart/start-stripe-checkout.js +75 -0
- package/cart/utils/shopify-shared-cart.d.ts +9 -0
- package/cart/utils/shopify-shared-cart.js +33 -0
- package/{chunk-TTEBDCWT.mjs → chunk-4YTXURVN.mjs} +2 -2
- package/{chunk-O4QBR4QC.mjs → chunk-DMJ5VUD6.mjs} +2 -2
- package/{chunk-OPKMOW43.mjs → chunk-GNIXARC7.mjs} +1 -1
- package/{chunk-XWWFRIXV.mjs → chunk-N4WC2Z43.mjs} +1 -1
- package/{chunk-PSYP2DYM.mjs → chunk-QYGRVXWQ.mjs} +1 -1
- package/env.d.ts +1 -0
- package/env.js +1 -0
- package/gateways/canopy-api.d.ts +97 -0
- package/gateways/canopy-api.js +120 -0
- package/lib/buildMetadata.js +3 -3
- package/package.json +14 -4
- package/_vendor/replo-utils/lib/errors.d.ts +0 -84
- package/_vendor/schemas/errors.d.ts +0 -450
- package/_vendor/schemas/generated/errors.d.ts +0 -64
- package/chunk-XGXJOHUY.mjs +0 -724
- package/chunk-XSMYSAKY.mjs +0 -78
- /package/{chunk-CKRRL66R.mjs → chunk-AE5H7AJS.mjs} +0 -0
- /package/{chunk-ZPDXVFCR.mjs → chunk-JBCOJHZN.mjs} +0 -0
package/chunk-XSMYSAKY.mjs
DELETED
|
@@ -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
|