@tapcart/mobile-components 0.8.25 → 0.8.26
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YotpoLoyalty.d.ts","sourceRoot":"","sources":["../../../../components/libs/loyalty/YotpoLoyalty.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,EAAE,EACrB,eAAe,EACf,aAAa,EACb,aAAa,EACb,eAAe,EACf,WAAW,EACX,eAAe,EAChB,MAAM,kBAAkB,CAAA;AAEzB,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,cAAc;IACtD,OAAO,EAAE,MAAM,CAAU;;IAOnB,cAAc,IAAI,OAAO,CAAC,eAAe,CAAC;IAa1C,WAAW,IAAI,OAAO,CAAC,eAAe,CAAC;IAQvC,cAAc,IAAI,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IAajD,gBAAgB,IAAI,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IAoBjD,SAAS,IAAI,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IAa1C,UAAU,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;IAiEtC,YAAY,IAAI,OAAO,CAAC,aAAa,EAAE,GAAG,IAAI,CAAC;IAsE/C,sBAAsB,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;IAkFpD,cAAc,IAAI,OAAO,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC;IAyBnD,kBAAkB,IAAI,OAAO,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"YotpoLoyalty.d.ts","sourceRoot":"","sources":["../../../../components/libs/loyalty/YotpoLoyalty.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,EAAE,EACrB,eAAe,EACf,aAAa,EACb,aAAa,EACb,eAAe,EACf,WAAW,EACX,eAAe,EAChB,MAAM,kBAAkB,CAAA;AAEzB,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,cAAc;IACtD,OAAO,EAAE,MAAM,CAAU;;IAOnB,cAAc,IAAI,OAAO,CAAC,eAAe,CAAC;IAa1C,WAAW,IAAI,OAAO,CAAC,eAAe,CAAC;IAQvC,cAAc,IAAI,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IAajD,gBAAgB,IAAI,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IAoBjD,SAAS,IAAI,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IAa1C,UAAU,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;IAiEtC,YAAY,IAAI,OAAO,CAAC,aAAa,EAAE,GAAG,IAAI,CAAC;IAsE/C,sBAAsB,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;IAkFpD,cAAc,IAAI,OAAO,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC;IAyBnD,kBAAkB,IAAI,OAAO,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC;IAqCvD,eAAe,IAAI,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IA2B9C,QAAQ,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAsDlC,cAAc,IAAI,OAAO,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC;IAiCnD,YAAY,IAAI,OAAO,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC;CAqBxD"}
|
|
@@ -340,7 +340,7 @@ export default class YotpoLoyalty extends LoyaltyAdapter {
|
|
|
340
340
|
});
|
|
341
341
|
}
|
|
342
342
|
getActivityHistory() {
|
|
343
|
-
var _a;
|
|
343
|
+
var _a, _b, _c;
|
|
344
344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
345
345
|
if (!this.customer) {
|
|
346
346
|
console.error("No customer found");
|
|
@@ -350,12 +350,31 @@ export default class YotpoLoyalty extends LoyaltyAdapter {
|
|
|
350
350
|
return [
|
|
351
351
|
{
|
|
352
352
|
id: "activity-3",
|
|
353
|
+
title: "Made a purchase",
|
|
353
354
|
type: "purchase",
|
|
354
355
|
points: 100,
|
|
355
356
|
customerId: (_a = this.customer) === null || _a === void 0 ? void 0 : _a.id,
|
|
356
357
|
status: "completed",
|
|
357
358
|
createdAt: new Date(),
|
|
358
359
|
},
|
|
360
|
+
{
|
|
361
|
+
id: "activity-1",
|
|
362
|
+
title: "Free shipping",
|
|
363
|
+
type: "redeem",
|
|
364
|
+
points: -1500,
|
|
365
|
+
customerId: (_b = this.customer) === null || _b === void 0 ? void 0 : _b.id,
|
|
366
|
+
status: "completed",
|
|
367
|
+
createdAt: new Date(),
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
id: "activity-2",
|
|
371
|
+
title: "Free product",
|
|
372
|
+
type: "redeem",
|
|
373
|
+
points: -1500,
|
|
374
|
+
customerId: (_c = this.customer) === null || _c === void 0 ? void 0 : _c.id,
|
|
375
|
+
status: "pending",
|
|
376
|
+
createdAt: new Date(),
|
|
377
|
+
},
|
|
359
378
|
];
|
|
360
379
|
}
|
|
361
380
|
});
|