@moneymq/better-auth 0.7.0 → 0.9.1
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.d.mts +20 -15
- package/dist/index.d.ts +20 -15
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -4291,7 +4291,7 @@ var moneymq = (options) => {
|
|
|
4291
4291
|
if (!metricTotals[record.metric]) {
|
|
4292
4292
|
metricTotals[record.metric] = {
|
|
4293
4293
|
quantity: 0,
|
|
4294
|
-
|
|
4294
|
+
productId: metricConfig.productId,
|
|
4295
4295
|
recordIds: []
|
|
4296
4296
|
};
|
|
4297
4297
|
}
|
|
@@ -4309,7 +4309,7 @@ var moneymq = (options) => {
|
|
|
4309
4309
|
metricTotals[record.metric].recordIds.push(record.id);
|
|
4310
4310
|
}
|
|
4311
4311
|
const lineItems = Object.values(metricTotals).map((m) => ({
|
|
4312
|
-
|
|
4312
|
+
productId: m.productId,
|
|
4313
4313
|
quantity: Math.ceil(m.quantity)
|
|
4314
4314
|
}));
|
|
4315
4315
|
const allRecordIds = Object.values(metricTotals).flatMap((m) => m.recordIds);
|
|
@@ -4340,8 +4340,9 @@ var moneymq = (options) => {
|
|
|
4340
4340
|
body: z.object({
|
|
4341
4341
|
lineItems: z.array(
|
|
4342
4342
|
z.object({
|
|
4343
|
-
|
|
4344
|
-
|
|
4343
|
+
productId: z.string(),
|
|
4344
|
+
experimentId: z.string().optional(),
|
|
4345
|
+
quantity: z.number().positive().optional()
|
|
4345
4346
|
})
|
|
4346
4347
|
),
|
|
4347
4348
|
successUrl: z.string(),
|