@cakemail-org/ui-components-v2 2.1.29 → 2.1.31
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,10 @@ var ListCampaignModel = /** @class */ (function () {
|
|
|
16698
16698
|
});
|
|
16699
16699
|
});
|
|
16700
16700
|
};
|
|
16701
|
-
ListCampaignModel.prototype.save = function () {
|
|
16702
|
-
return __awaiter(this,
|
|
16701
|
+
ListCampaignModel.prototype.save = function (campaign) {
|
|
16702
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
16703
16703
|
var _this = this;
|
|
16704
|
-
|
|
16705
|
-
return __generator(this, function (_c) {
|
|
16704
|
+
return __generator(this, function (_a) {
|
|
16706
16705
|
if (!this.id) {
|
|
16707
16706
|
throw new Error("Campaign was not initialized");
|
|
16708
16707
|
}
|
|
@@ -17218,11 +17217,10 @@ var CommonFormModel = /** @class */ (function () {
|
|
|
17218
17217
|
});
|
|
17219
17218
|
});
|
|
17220
17219
|
};
|
|
17221
|
-
CommonFormModel.prototype.save = function () {
|
|
17222
|
-
return __awaiter(this,
|
|
17220
|
+
CommonFormModel.prototype.save = function (form) {
|
|
17221
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17223
17222
|
var _this = this;
|
|
17224
|
-
|
|
17225
|
-
return __generator(this, function (_c) {
|
|
17223
|
+
return __generator(this, function (_a) {
|
|
17226
17224
|
if (!this.id) {
|
|
17227
17225
|
throw new Error("Form was not initialized");
|
|
17228
17226
|
}
|
|
@@ -25,9 +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(
|
|
29
|
-
campaign?: Partial<TCampaignUpdate>;
|
|
30
|
-
}): Promise<CampaignModel>;
|
|
28
|
+
save(campaign?: Partial<TCampaignUpdate>): Promise<CampaignModel>;
|
|
31
29
|
render({ contactId }: {
|
|
32
30
|
contactId?: number;
|
|
33
31
|
}): Promise<string>;
|
|
@@ -14,9 +14,7 @@ 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(
|
|
18
|
-
form?: Partial<TEnhancedFormModel>;
|
|
19
|
-
}): Promise<EnhancedFormModel>;
|
|
17
|
+
save(form?: Partial<TEnhancedFormModel>): Promise<EnhancedFormModel>;
|
|
20
18
|
}
|
|
21
19
|
export declare class FormModel extends CommonFormModel {
|
|
22
20
|
readonly status: string;
|
package/dist/esm/index.js
CHANGED
|
@@ -16678,11 +16678,10 @@ var ListCampaignModel = /** @class */ (function () {
|
|
|
16678
16678
|
});
|
|
16679
16679
|
});
|
|
16680
16680
|
};
|
|
16681
|
-
ListCampaignModel.prototype.save = function () {
|
|
16682
|
-
return __awaiter(this,
|
|
16681
|
+
ListCampaignModel.prototype.save = function (campaign) {
|
|
16682
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
16683
16683
|
var _this = this;
|
|
16684
|
-
|
|
16685
|
-
return __generator(this, function (_c) {
|
|
16684
|
+
return __generator(this, function (_a) {
|
|
16686
16685
|
if (!this.id) {
|
|
16687
16686
|
throw new Error("Campaign was not initialized");
|
|
16688
16687
|
}
|
|
@@ -17198,11 +17197,10 @@ var CommonFormModel = /** @class */ (function () {
|
|
|
17198
17197
|
});
|
|
17199
17198
|
});
|
|
17200
17199
|
};
|
|
17201
|
-
CommonFormModel.prototype.save = function () {
|
|
17202
|
-
return __awaiter(this,
|
|
17200
|
+
CommonFormModel.prototype.save = function (form) {
|
|
17201
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17203
17202
|
var _this = this;
|
|
17204
|
-
|
|
17205
|
-
return __generator(this, function (_c) {
|
|
17203
|
+
return __generator(this, function (_a) {
|
|
17206
17204
|
if (!this.id) {
|
|
17207
17205
|
throw new Error("Form was not initialized");
|
|
17208
17206
|
}
|
|
@@ -25,9 +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(
|
|
29
|
-
campaign?: Partial<TCampaignUpdate>;
|
|
30
|
-
}): Promise<CampaignModel>;
|
|
28
|
+
save(campaign?: Partial<TCampaignUpdate>): Promise<CampaignModel>;
|
|
31
29
|
render({ contactId }: {
|
|
32
30
|
contactId?: number;
|
|
33
31
|
}): Promise<string>;
|
|
@@ -14,9 +14,7 @@ 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(
|
|
18
|
-
form?: Partial<TEnhancedFormModel>;
|
|
19
|
-
}): Promise<EnhancedFormModel>;
|
|
17
|
+
save(form?: Partial<TEnhancedFormModel>): Promise<EnhancedFormModel>;
|
|
20
18
|
}
|
|
21
19
|
export declare class FormModel extends CommonFormModel {
|
|
22
20
|
readonly status: string;
|