@fanfare-io/fanfare-sdk-contracts 0.12.0 → 0.14.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/auction.d.ts +1 -0
- package/dist/auction.js +18 -14
- package/dist/beacon-names.d.ts +8 -1
- package/dist/beacon-names.js +20 -6
- package/dist/beacon.d.ts +1831 -256
- package/dist/beacon.js +312 -235
- package/dist/bridge.d.ts +2 -18
- package/dist/checkout.d.ts +36 -32
- package/dist/checkout.js +27 -31
- package/dist/consumer-me.d.ts +4207 -10559
- package/dist/consumer-me.js +128 -145
- package/dist/errors.d.ts +24 -4
- package/dist/errors.js +23 -13
- package/dist/sequence-distribution-context.d.ts +16 -16
- package/package.json +1 -1
package/dist/auction.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare const AuctionBidderStateResponseSchema: v.LooseObjectSchema<{
|
|
|
6
6
|
readonly winningBidAmount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
7
7
|
readonly bidCount: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
8
8
|
readonly admissionGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
+
readonly degraded: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
9
10
|
}, undefined>;
|
|
10
11
|
export type AuctionBidderStateResponse = InferOutput<typeof AuctionBidderStateResponseSchema>;
|
|
11
12
|
export declare const AuctionHighestBidResponseSchema: v.LooseObjectSchema<{
|
package/dist/auction.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
const
|
|
3
|
-
status:
|
|
4
|
-
lastBidAmount:
|
|
5
|
-
winningBidAmount:
|
|
6
|
-
bidCount:
|
|
7
|
-
admissionGrant:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}),
|
|
1
|
+
import * as o from "valibot";
|
|
2
|
+
const e = o.string(), t = o.pipe(e, o.regex(/^\d{1,12}(\.\d{1,8})?$/)), n = o.picklist(["NOT_BID", "BIDDING", "WINNING", "OUTBID", "WON", "LOST"]), s = o.looseObject({
|
|
3
|
+
status: n,
|
|
4
|
+
lastBidAmount: o.nullish(t),
|
|
5
|
+
winningBidAmount: o.optional(t),
|
|
6
|
+
bidCount: o.optional(o.number()),
|
|
7
|
+
admissionGrant: o.optional(e),
|
|
8
|
+
// The bid is committed, but a post-commit effect (event fan-out, credential mint) did not
|
|
9
|
+
// complete on this request. The standing is authoritative; a later status read reconciles
|
|
10
|
+
// whatever the effect would have projected.
|
|
11
|
+
degraded: o.optional(o.boolean())
|
|
12
|
+
}), a = o.looseObject({
|
|
13
|
+
amount: t
|
|
14
|
+
}), i = o.looseObject({
|
|
15
|
+
amount: t,
|
|
16
|
+
timestamp: e,
|
|
17
|
+
isHighest: o.boolean()
|
|
18
|
+
}), c = o.array(i);
|
|
15
19
|
export {
|
|
16
20
|
i as AuctionBidHistoryItemResponseSchema,
|
|
17
21
|
c as AuctionBidHistoryResponseSchema,
|
package/dist/beacon-names.d.ts
CHANGED
|
@@ -20,6 +20,13 @@ export declare const BeaconEventName: {
|
|
|
20
20
|
readonly MESSAGE_BOUNCED: "messageBounced";
|
|
21
21
|
readonly MESSAGE_COMPLAINED: "messageComplained";
|
|
22
22
|
readonly MESSAGE_FAILED: "messageFailed";
|
|
23
|
+
readonly EXPERIENCE_ENTERED: "experienceEntered";
|
|
24
|
+
readonly EXPERIENCE_LEFT: "experienceLeft";
|
|
25
|
+
readonly SEQUENCE_GRANTED: "sequenceGranted";
|
|
26
|
+
readonly SEQUENCE_ENDED: "sequenceEnded";
|
|
27
|
+
readonly DISTRIBUTION_ENTERED: "distributionEntered";
|
|
28
|
+
readonly WAITLIST_ENTERED: "waitlistEntered";
|
|
29
|
+
readonly WAITLIST_LEFT: "waitlistLeft";
|
|
23
30
|
};
|
|
24
|
-
export declare const BeaconEventNames: readonly ["pageView", "productImpression", "productClick", "productView", "searchSubmitted", "addToCart", "removeFromCart", "viewCart", "beginCheckout", "purchase", "qrScanned", "messageClicked", "messageOpened", "messageRead", "messageSent", "messageDelivered", "messageBounced", "messageComplained", "messageFailed"];
|
|
31
|
+
export declare const BeaconEventNames: readonly ["pageView", "productImpression", "productClick", "productView", "searchSubmitted", "addToCart", "removeFromCart", "viewCart", "beginCheckout", "purchase", "qrScanned", "messageClicked", "messageOpened", "messageRead", "messageSent", "messageDelivered", "messageBounced", "messageComplained", "messageFailed", "experienceEntered", "experienceLeft", "sequenceGranted", "sequenceEnded", "distributionEntered", "waitlistEntered", "waitlistLeft"];
|
|
25
32
|
export type BeaconEventName = (typeof BeaconEventNames)[number];
|
package/dist/beacon-names.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e = ["CHAMPIONS", "LOYAL", "AT_RISK", "NEW", "LOST"], E = {
|
|
2
2
|
PAGE_VIEW: "pageView",
|
|
3
3
|
PRODUCT_IMPRESSION: "productImpression",
|
|
4
4
|
PRODUCT_CLICK: "productClick",
|
|
@@ -17,8 +17,15 @@ const S = ["CHAMPIONS", "LOYAL", "AT_RISK", "NEW", "LOST"], E = {
|
|
|
17
17
|
MESSAGE_DELIVERED: "messageDelivered",
|
|
18
18
|
MESSAGE_BOUNCED: "messageBounced",
|
|
19
19
|
MESSAGE_COMPLAINED: "messageComplained",
|
|
20
|
-
MESSAGE_FAILED: "messageFailed"
|
|
21
|
-
|
|
20
|
+
MESSAGE_FAILED: "messageFailed",
|
|
21
|
+
EXPERIENCE_ENTERED: "experienceEntered",
|
|
22
|
+
EXPERIENCE_LEFT: "experienceLeft",
|
|
23
|
+
SEQUENCE_GRANTED: "sequenceGranted",
|
|
24
|
+
SEQUENCE_ENDED: "sequenceEnded",
|
|
25
|
+
DISTRIBUTION_ENTERED: "distributionEntered",
|
|
26
|
+
WAITLIST_ENTERED: "waitlistEntered",
|
|
27
|
+
WAITLIST_LEFT: "waitlistLeft"
|
|
28
|
+
}, S = [
|
|
22
29
|
E.PAGE_VIEW,
|
|
23
30
|
E.PRODUCT_IMPRESSION,
|
|
24
31
|
E.PRODUCT_CLICK,
|
|
@@ -37,10 +44,17 @@ const S = ["CHAMPIONS", "LOYAL", "AT_RISK", "NEW", "LOST"], E = {
|
|
|
37
44
|
E.MESSAGE_DELIVERED,
|
|
38
45
|
E.MESSAGE_BOUNCED,
|
|
39
46
|
E.MESSAGE_COMPLAINED,
|
|
40
|
-
E.MESSAGE_FAILED
|
|
47
|
+
E.MESSAGE_FAILED,
|
|
48
|
+
E.EXPERIENCE_ENTERED,
|
|
49
|
+
E.EXPERIENCE_LEFT,
|
|
50
|
+
E.SEQUENCE_GRANTED,
|
|
51
|
+
E.SEQUENCE_ENDED,
|
|
52
|
+
E.DISTRIBUTION_ENTERED,
|
|
53
|
+
E.WAITLIST_ENTERED,
|
|
54
|
+
E.WAITLIST_LEFT
|
|
41
55
|
];
|
|
42
56
|
export {
|
|
43
57
|
E as BeaconEventName,
|
|
44
|
-
|
|
45
|
-
|
|
58
|
+
S as BeaconEventNames,
|
|
59
|
+
e as RFM_SEGMENT_KEYS
|
|
46
60
|
};
|