@cakemail-org/ui-components-v2 2.1.27 → 2.1.28
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/cjs/index.js
CHANGED
|
@@ -16698,11 +16698,18 @@ var ListCampaignModel = /** @class */ (function () {
|
|
|
16698
16698
|
});
|
|
16699
16699
|
});
|
|
16700
16700
|
};
|
|
16701
|
-
ListCampaignModel.prototype.
|
|
16701
|
+
ListCampaignModel.prototype.save = function (_a) {
|
|
16702
16702
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
16703
16703
|
var _this = this;
|
|
16704
16704
|
var campaign = _b.campaign;
|
|
16705
16705
|
return __generator(this, function (_c) {
|
|
16706
|
+
if (!this.id) {
|
|
16707
|
+
throw new Error("Campaign was not initialized");
|
|
16708
|
+
}
|
|
16709
|
+
if (!campaign) {
|
|
16710
|
+
campaign = this.toJson();
|
|
16711
|
+
campaign === null || campaign === void 0 ? true : delete campaign.sender;
|
|
16712
|
+
}
|
|
16706
16713
|
return [2 /*return*/, updateCampaign({ campaign: campaign, id: this.id }).then(function (data) {
|
|
16707
16714
|
trackEvent(exports.EEvents.CAMPAIGN_UPDATED, { id: _this.id });
|
|
16708
16715
|
return new CampaignModel(data.data);
|
|
@@ -25,8 +25,8 @@ export declare class ListCampaignModel {
|
|
|
25
25
|
toJson(): any;
|
|
26
26
|
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
27
27
|
delete(): Promise<TDeleteApiResource>;
|
|
28
|
-
|
|
29
|
-
campaign
|
|
28
|
+
save({ campaign }: {
|
|
29
|
+
campaign?: Partial<TCampaignUpdate>;
|
|
30
30
|
}): Promise<CampaignModel>;
|
|
31
31
|
render({ contactId }: {
|
|
32
32
|
contactId?: number;
|
package/dist/esm/index.js
CHANGED
|
@@ -16678,11 +16678,18 @@ var ListCampaignModel = /** @class */ (function () {
|
|
|
16678
16678
|
});
|
|
16679
16679
|
});
|
|
16680
16680
|
};
|
|
16681
|
-
ListCampaignModel.prototype.
|
|
16681
|
+
ListCampaignModel.prototype.save = function (_a) {
|
|
16682
16682
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
16683
16683
|
var _this = this;
|
|
16684
16684
|
var campaign = _b.campaign;
|
|
16685
16685
|
return __generator(this, function (_c) {
|
|
16686
|
+
if (!this.id) {
|
|
16687
|
+
throw new Error("Campaign was not initialized");
|
|
16688
|
+
}
|
|
16689
|
+
if (!campaign) {
|
|
16690
|
+
campaign = this.toJson();
|
|
16691
|
+
campaign === null || campaign === void 0 ? true : delete campaign.sender;
|
|
16692
|
+
}
|
|
16686
16693
|
return [2 /*return*/, updateCampaign({ campaign: campaign, id: this.id }).then(function (data) {
|
|
16687
16694
|
trackEvent(EEvents.CAMPAIGN_UPDATED, { id: _this.id });
|
|
16688
16695
|
return new CampaignModel(data.data);
|
|
@@ -25,8 +25,8 @@ export declare class ListCampaignModel {
|
|
|
25
25
|
toJson(): any;
|
|
26
26
|
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
27
27
|
delete(): Promise<TDeleteApiResource>;
|
|
28
|
-
|
|
29
|
-
campaign
|
|
28
|
+
save({ campaign }: {
|
|
29
|
+
campaign?: Partial<TCampaignUpdate>;
|
|
30
30
|
}): Promise<CampaignModel>;
|
|
31
31
|
render({ contactId }: {
|
|
32
32
|
contactId?: number;
|