@rebuy/rebuy 3.64.0 → 3.65.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/index.cjs +11 -1
- package/dist/index.mjs +11 -1
- package/dist/schema/postPurchaseFinish.d.ts +17 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3490,7 +3490,17 @@ var FinishedPurchaseSchema = import_zod47.z.union([
|
|
|
3490
3490
|
])
|
|
3491
3491
|
})
|
|
3492
3492
|
]);
|
|
3493
|
-
var PostPurchaseFinishReasonSchema = import_zod47.z.enum([
|
|
3493
|
+
var PostPurchaseFinishReasonSchema = import_zod47.z.enum([
|
|
3494
|
+
"continue",
|
|
3495
|
+
"decline-all",
|
|
3496
|
+
"end",
|
|
3497
|
+
"error",
|
|
3498
|
+
"ineligible",
|
|
3499
|
+
"purchase-complete",
|
|
3500
|
+
"recovery",
|
|
3501
|
+
"timer-expiry",
|
|
3502
|
+
"unknown-result"
|
|
3503
|
+
]);
|
|
3494
3504
|
var SessionFinishRequestSchema = DecideRequestSchema.extend({
|
|
3495
3505
|
endReason: PostPurchaseEndReasonSchema.optional(),
|
|
3496
3506
|
reason: PostPurchaseFinishReasonSchema.optional()
|
package/dist/index.mjs
CHANGED
|
@@ -3007,7 +3007,17 @@ var FinishedPurchaseSchema = z47.union([
|
|
|
3007
3007
|
])
|
|
3008
3008
|
})
|
|
3009
3009
|
]);
|
|
3010
|
-
var PostPurchaseFinishReasonSchema = z47.enum([
|
|
3010
|
+
var PostPurchaseFinishReasonSchema = z47.enum([
|
|
3011
|
+
"continue",
|
|
3012
|
+
"decline-all",
|
|
3013
|
+
"end",
|
|
3014
|
+
"error",
|
|
3015
|
+
"ineligible",
|
|
3016
|
+
"purchase-complete",
|
|
3017
|
+
"recovery",
|
|
3018
|
+
"timer-expiry",
|
|
3019
|
+
"unknown-result"
|
|
3020
|
+
]);
|
|
3011
3021
|
var SessionFinishRequestSchema = DecideRequestSchema.extend({
|
|
3012
3022
|
endReason: PostPurchaseEndReasonSchema.optional(),
|
|
3013
3023
|
reason: PostPurchaseFinishReasonSchema.optional()
|
|
@@ -14,13 +14,22 @@ export declare const FinishedPurchaseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
14
14
|
}>)[]]>;
|
|
15
15
|
}, z.core.$strict>]>;
|
|
16
16
|
/**
|
|
17
|
-
* Why the client finished: the buyer
|
|
18
|
-
*
|
|
19
|
-
* (`
|
|
17
|
+
* Why the client finished: the buyer continued (`continue`) or declined every Offer (`decline-all`), a
|
|
18
|
+
* transition Ended or could not read the next Offer (`end`), preparation, admission or a membership command
|
|
19
|
+
* failed (`error`), Render's eligibility recheck refused the order (`ineligible`), a purchase completed the
|
|
20
|
+
* session (`purchase-complete`), recovery found a purchase that permits no fresh presentation (`recovery`),
|
|
21
|
+
* the timer ran out (`timer-expiry`), or a purchase's result stayed unknown (`unknown-result`). One value per
|
|
22
|
+
* client exit, so an `experience.end` row names every exit rather than `null` for the ones Finish had no word
|
|
23
|
+
* for.
|
|
20
24
|
*/
|
|
21
25
|
export declare const PostPurchaseFinishReasonSchema: z.ZodEnum<{
|
|
26
|
+
error: "error";
|
|
22
27
|
end: "end";
|
|
28
|
+
continue: "continue";
|
|
23
29
|
"decline-all": "decline-all";
|
|
30
|
+
ineligible: "ineligible";
|
|
31
|
+
"purchase-complete": "purchase-complete";
|
|
32
|
+
recovery: "recovery";
|
|
24
33
|
"timer-expiry": "timer-expiry";
|
|
25
34
|
"unknown-result": "unknown-result";
|
|
26
35
|
}>;
|
|
@@ -37,8 +46,13 @@ export declare const SessionFinishRequestSchema: z.ZodObject<{
|
|
|
37
46
|
"accept-cap": "accept-cap";
|
|
38
47
|
}>>;
|
|
39
48
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
49
|
+
error: "error";
|
|
40
50
|
end: "end";
|
|
51
|
+
continue: "continue";
|
|
41
52
|
"decline-all": "decline-all";
|
|
53
|
+
ineligible: "ineligible";
|
|
54
|
+
"purchase-complete": "purchase-complete";
|
|
55
|
+
recovery: "recovery";
|
|
42
56
|
"timer-expiry": "timer-expiry";
|
|
43
57
|
"unknown-result": "unknown-result";
|
|
44
58
|
}>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebuy/rebuy",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.65.0",
|
|
4
4
|
"description": "Shared zod schemas, legacy-to-CAB widget transforms, and server orchestrators for Rebuy's Shopify consumers (rebuy-api, admin-nextjs, rebuy-shopify-extensions)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Rebuy, Inc.",
|