@modainteract/moda-interact-shared 5.6.0 → 5.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/dist/{chunk-QVPEX7KY.js → chunk-GCCT2BDE.js} +4 -4
- package/dist/chunk-QFUK7FIO.js +16 -0
- package/dist/chunk-QFUK7FIO.js.map +1 -0
- package/dist/{chunk-S42O2OCG.js → chunk-WF2BDUPZ.js} +428 -320
- package/dist/chunk-WF2BDUPZ.js.map +1 -0
- package/dist/chunk-WHZAAF2Q.js +25 -0
- package/dist/chunk-WHZAAF2Q.js.map +1 -0
- package/dist/{chunk-KIHGDO35.js → chunk-WK7QSBHJ.js} +3 -3
- package/dist/commerce/index.d.ts +33 -5
- package/dist/commerce/index.js +17 -16
- package/dist/commerce/index.js.map +1 -1
- package/dist/commerce/model/node.d.ts +3 -3
- package/dist/commerce/model/node.js +3 -3
- package/dist/commerce/outreach/index.d.ts +1094 -0
- package/dist/commerce/outreach/index.js +1355 -0
- package/dist/commerce/outreach/index.js.map +1 -0
- package/dist/commerce/presentation/index.d.ts +103 -6
- package/dist/commerce/presentation/index.js +80 -13
- package/dist/commerce/presentation/index.js.map +1 -1
- package/dist/commerce/runner/index.d.ts +4 -4
- package/dist/commerce/runner/index.js +12 -28
- package/dist/commerce/runner/index.js.map +1 -1
- package/dist/{product-context-D3FuI6ah.d.ts → product-context-Bh74WGOo.d.ts} +1 -1
- package/dist/recovery-offer-proof.js +2 -2
- package/dist/{response-Cs4zC3d3.d.ts → response-DFDEw4K0.d.ts} +115 -1
- package/dist/{types-ByoKuP90.d.ts → types-vIMrj5J4.d.ts} +2 -2
- package/package.json +12 -6
- package/dist/chunk-S42O2OCG.js.map +0 -1
- /package/dist/{chunk-QVPEX7KY.js.map → chunk-GCCT2BDE.js.map} +0 -0
- /package/dist/{chunk-KIHGDO35.js.map → chunk-WK7QSBHJ.js.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
jsonBytes
|
|
3
|
-
} from "./chunk-AUS3WQIW.js";
|
|
4
1
|
import {
|
|
5
2
|
canonicaliseLanguageTag,
|
|
6
3
|
normalizeCurrencyCode
|
|
7
4
|
} from "./chunk-4KSODB2R.js";
|
|
5
|
+
import {
|
|
6
|
+
jsonBytes
|
|
7
|
+
} from "./chunk-AUS3WQIW.js";
|
|
8
8
|
|
|
9
9
|
// src/commerce/primitives.ts
|
|
10
10
|
import { z } from "zod";
|
|
@@ -51,4 +51,4 @@ export {
|
|
|
51
51
|
distinct,
|
|
52
52
|
boundedJson
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=chunk-
|
|
54
|
+
//# sourceMappingURL=chunk-GCCT2BDE.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/commerce/outreach-checkout-offer-set.ts
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
var InitialOutreachCheckoutOfferSetSchema = z.strictObject({
|
|
4
|
+
schemaVersion: z.literal("moda.outreach.checkout-offers.v1"),
|
|
5
|
+
offers: z.array(z.strictObject({
|
|
6
|
+
offerId: z.string().min(1).max(191),
|
|
7
|
+
providerDiscountId: z.string().min(1).max(191).nullable(),
|
|
8
|
+
method: z.enum(["CODE", "AUTOMATIC"]),
|
|
9
|
+
code: z.string().min(1).max(128).nullable()
|
|
10
|
+
})).min(1).max(3)
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
InitialOutreachCheckoutOfferSetSchema
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=chunk-QFUK7FIO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commerce/outreach-checkout-offer-set.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/** Ordered source-backed checkout offers confirmed in one initial outreach send. */\nexport const InitialOutreachCheckoutOfferSetSchema = z.strictObject({\n schemaVersion: z.literal(\"moda.outreach.checkout-offers.v1\"),\n offers: z.array(z.strictObject({\n offerId: z.string().min(1).max(191),\n providerDiscountId: z.string().min(1).max(191).nullable(),\n method: z.enum([\"CODE\", \"AUTOMATIC\"]),\n code: z.string().min(1).max(128).nullable(),\n })).min(1).max(3),\n});\nexport type InitialOutreachCheckoutOfferSet = z.infer<\n typeof InitialOutreachCheckoutOfferSetSchema\n>;\n"],"mappings":";AAAA,SAAS,SAAS;AAGX,IAAM,wCAAwC,EAAE,aAAa;AAAA,EAClE,eAAe,EAAE,QAAQ,kCAAkC;AAAA,EAC3D,QAAQ,EAAE,MAAM,EAAE,aAAa;AAAA,IAC7B,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG;AAAA,IAClC,oBAAoB,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,IACxD,QAAQ,EAAE,KAAK,CAAC,QAAQ,WAAW,CAAC;AAAA,IACpC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,EAC5C,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC;AAClB,CAAC;","names":[]}
|