@cakemail-org/ui-components-v2 2.1.28 → 2.1.29
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,10 +16698,10 @@ var ListCampaignModel = /** @class */ (function () {
|
|
|
16698
16698
|
});
|
|
16699
16699
|
});
|
|
16700
16700
|
};
|
|
16701
|
-
ListCampaignModel.prototype.save = function (
|
|
16702
|
-
return __awaiter(this, arguments, void 0, function (
|
|
16701
|
+
ListCampaignModel.prototype.save = function () {
|
|
16702
|
+
return __awaiter(this, arguments, void 0, function (_a) {
|
|
16703
16703
|
var _this = this;
|
|
16704
|
-
var campaign = _b.campaign;
|
|
16704
|
+
var _b = _a === void 0 ? {} : _a, campaign = _b.campaign;
|
|
16705
16705
|
return __generator(this, function (_c) {
|
|
16706
16706
|
if (!this.id) {
|
|
16707
16707
|
throw new Error("Campaign was not initialized");
|
|
@@ -17219,13 +17219,14 @@ var CommonFormModel = /** @class */ (function () {
|
|
|
17219
17219
|
});
|
|
17220
17220
|
};
|
|
17221
17221
|
CommonFormModel.prototype.save = function () {
|
|
17222
|
-
return __awaiter(this,
|
|
17222
|
+
return __awaiter(this, arguments, void 0, function (_a) {
|
|
17223
17223
|
var _this = this;
|
|
17224
|
-
|
|
17224
|
+
var _b = _a === void 0 ? {} : _a, form = _b.form;
|
|
17225
|
+
return __generator(this, function (_c) {
|
|
17225
17226
|
if (!this.id) {
|
|
17226
17227
|
throw new Error("Form was not initialized");
|
|
17227
17228
|
}
|
|
17228
|
-
return [2 /*return*/, patchForm({ id: this.id.toString(), data: this.toJson() }).then(function (data) {
|
|
17229
|
+
return [2 /*return*/, patchForm({ id: this.id.toString(), data: form || this.toJson() }).then(function (data) {
|
|
17229
17230
|
trackEvent(exports.EEvents.FORM_UPDATED, { id: _this.id });
|
|
17230
17231
|
return data.data;
|
|
17231
17232
|
})];
|
|
@@ -25,7 +25,7 @@ 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
|
-
save({ campaign }
|
|
28
|
+
save({ campaign }?: {
|
|
29
29
|
campaign?: Partial<TCampaignUpdate>;
|
|
30
30
|
}): Promise<CampaignModel>;
|
|
31
31
|
render({ contactId }: {
|
|
@@ -14,7 +14,9 @@ export declare class CommonFormModel {
|
|
|
14
14
|
toJson(): any;
|
|
15
15
|
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
16
16
|
delete(): Promise<TDeleteApiResource>;
|
|
17
|
-
save(
|
|
17
|
+
save({ form }?: {
|
|
18
|
+
form?: Partial<TEnhancedFormModel>;
|
|
19
|
+
}): Promise<EnhancedFormModel>;
|
|
18
20
|
}
|
|
19
21
|
export declare class FormModel extends CommonFormModel {
|
|
20
22
|
readonly status: string;
|
package/dist/esm/index.js
CHANGED
|
@@ -16678,10 +16678,10 @@ var ListCampaignModel = /** @class */ (function () {
|
|
|
16678
16678
|
});
|
|
16679
16679
|
});
|
|
16680
16680
|
};
|
|
16681
|
-
ListCampaignModel.prototype.save = function (
|
|
16682
|
-
return __awaiter(this, arguments, void 0, function (
|
|
16681
|
+
ListCampaignModel.prototype.save = function () {
|
|
16682
|
+
return __awaiter(this, arguments, void 0, function (_a) {
|
|
16683
16683
|
var _this = this;
|
|
16684
|
-
var campaign = _b.campaign;
|
|
16684
|
+
var _b = _a === void 0 ? {} : _a, campaign = _b.campaign;
|
|
16685
16685
|
return __generator(this, function (_c) {
|
|
16686
16686
|
if (!this.id) {
|
|
16687
16687
|
throw new Error("Campaign was not initialized");
|
|
@@ -17199,13 +17199,14 @@ var CommonFormModel = /** @class */ (function () {
|
|
|
17199
17199
|
});
|
|
17200
17200
|
};
|
|
17201
17201
|
CommonFormModel.prototype.save = function () {
|
|
17202
|
-
return __awaiter(this,
|
|
17202
|
+
return __awaiter(this, arguments, void 0, function (_a) {
|
|
17203
17203
|
var _this = this;
|
|
17204
|
-
|
|
17204
|
+
var _b = _a === void 0 ? {} : _a, form = _b.form;
|
|
17205
|
+
return __generator(this, function (_c) {
|
|
17205
17206
|
if (!this.id) {
|
|
17206
17207
|
throw new Error("Form was not initialized");
|
|
17207
17208
|
}
|
|
17208
|
-
return [2 /*return*/, patchForm({ id: this.id.toString(), data: this.toJson() }).then(function (data) {
|
|
17209
|
+
return [2 /*return*/, patchForm({ id: this.id.toString(), data: form || this.toJson() }).then(function (data) {
|
|
17209
17210
|
trackEvent(EEvents.FORM_UPDATED, { id: _this.id });
|
|
17210
17211
|
return data.data;
|
|
17211
17212
|
})];
|
|
@@ -25,7 +25,7 @@ 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
|
-
save({ campaign }
|
|
28
|
+
save({ campaign }?: {
|
|
29
29
|
campaign?: Partial<TCampaignUpdate>;
|
|
30
30
|
}): Promise<CampaignModel>;
|
|
31
31
|
render({ contactId }: {
|
|
@@ -14,7 +14,9 @@ export declare class CommonFormModel {
|
|
|
14
14
|
toJson(): any;
|
|
15
15
|
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
16
16
|
delete(): Promise<TDeleteApiResource>;
|
|
17
|
-
save(
|
|
17
|
+
save({ form }?: {
|
|
18
|
+
form?: Partial<TEnhancedFormModel>;
|
|
19
|
+
}): Promise<EnhancedFormModel>;
|
|
18
20
|
}
|
|
19
21
|
export declare class FormModel extends CommonFormModel {
|
|
20
22
|
readonly status: string;
|