@cakemail-org/ui-components-v2 2.1.2 → 2.1.4

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
@@ -9516,8 +9516,12 @@ var AccountModel = /** @class */ (function () {
9516
9516
  return __awaiter(this, void 0, void 0, function () {
9517
9517
  var _this = this;
9518
9518
  return __generator(this, function (_a) {
9519
+ if (["1", "131010", "133315"].includes(this.id.toString())) {
9520
+ return [2 /*return*/, {}];
9521
+ }
9519
9522
  return [2 /*return*/, this.getReport({}).then(function (report) {
9520
9523
  _this.usage = report;
9524
+ return report;
9521
9525
  })];
9522
9526
  });
9523
9527
  });
@@ -17140,28 +17144,22 @@ var SummaryEnhancedFormModel = /** @class */ (function (_super) {
17140
17144
  __extends(SummaryEnhancedFormModel, _super);
17141
17145
  function SummaryEnhancedFormModel(_a) {
17142
17146
  var id = _a.id, list_id = _a.list_id, enabled = _a.enabled, name = _a.name, description = _a.description, tags = _a.tags, post_redirect_url = _a.post_redirect_url, double_opt_in = _a.double_opt_in, double_opt_in_redirect_url = _a.double_opt_in_redirect_url, submission_url = _a.submission_url, async_processing = _a.async_processing, branding = _a.branding, created_on = _a.created_on, updated_on = _a.updated_on, published_on = _a.published_on, edited_by = _a.edited_by, thumbnail_url = _a.thumbnail_url, recaptcha = _a.recaptcha, published_url = _a.published_url;
17143
- var _this = _super.call(this, { id: id || "", name: name || "", list_id: list_id || 0, double_opt_in: double_opt_in || true }) || this;
17144
- _this.enabled = enabled || true;
17145
- _this.description = description || "";
17146
- _this.tags = tags || [];
17147
- _this.post_redirect_url = post_redirect_url || "";
17148
- _this.double_opt_in_redirect_url = double_opt_in_redirect_url || "";
17149
- _this.submission_url = submission_url || "";
17150
- _this.async_processing = async_processing || false;
17151
- _this.branding = branding || "";
17152
- _this.created_on = created_on || 0;
17153
- _this.updated_on = updated_on || 0;
17154
- _this.published_on = published_on || 0;
17155
- _this.edited_by = edited_by || {
17156
- id: 0,
17157
- email: ""
17158
- };
17159
- _this.thumbnail_url = thumbnail_url || "";
17160
- _this.recaptcha = recaptcha || {
17161
- secret: "",
17162
- domain: ""
17163
- };
17164
- _this.published_url = published_url || "";
17147
+ var _this = _super.call(this, { id: id, name: name, list_id: list_id, double_opt_in: double_opt_in }) || this;
17148
+ _this.enabled = enabled;
17149
+ _this.description = description;
17150
+ _this.tags = tags;
17151
+ _this.post_redirect_url = post_redirect_url;
17152
+ _this.double_opt_in_redirect_url = double_opt_in_redirect_url;
17153
+ _this.submission_url = submission_url;
17154
+ _this.async_processing = async_processing;
17155
+ _this.branding = branding;
17156
+ _this.created_on = created_on;
17157
+ _this.updated_on = updated_on;
17158
+ _this.published_on = published_on;
17159
+ _this.edited_by = edited_by;
17160
+ _this.thumbnail_url = thumbnail_url;
17161
+ _this.recaptcha = recaptcha;
17162
+ _this.published_url = published_url;
17165
17163
  return _this;
17166
17164
  }
17167
17165
  SummaryEnhancedFormModel.prototype.enable = function () {
@@ -25,7 +25,7 @@ export declare class AccountModel {
25
25
  });
26
26
  toJson(): any;
27
27
  set<T extends keyof this>(property: T, value: this[T]): void;
28
- getUsageReport(): Promise<void>;
28
+ getUsageReport(): Promise<TAccountReport>;
29
29
  getReport({ ...options }: TGetAccountReport): Promise<TAccountReport>;
30
30
  impersonate(byContext?: boolean): Promise<any>;
31
31
  getDomains(): Promise<TAccountDomains>;
@@ -54,7 +54,7 @@ export declare class SummaryEnhancedFormModel extends CommonFormModel {
54
54
  readonly edited_by: TEnhancedFormEditedBy;
55
55
  readonly thumbnail_url: string;
56
56
  readonly published_url: string;
57
- constructor({ id, list_id, enabled, name, description, tags, post_redirect_url, double_opt_in, double_opt_in_redirect_url, submission_url, async_processing, branding, created_on, updated_on, published_on, edited_by, thumbnail_url, recaptcha, published_url }: Partial<TSummaryEnhancedFormModel>);
57
+ constructor({ id, list_id, enabled, name, description, tags, post_redirect_url, double_opt_in, double_opt_in_redirect_url, submission_url, async_processing, branding, created_on, updated_on, published_on, edited_by, thumbnail_url, recaptcha, published_url }: TSummaryEnhancedFormModel);
58
58
  enable(): Promise<EnhancedFormModel>;
59
59
  disable(): Promise<EnhancedFormModel>;
60
60
  publish(): Promise<EnhancedFormModel>;
package/dist/esm/index.js CHANGED
@@ -9496,8 +9496,12 @@ var AccountModel = /** @class */ (function () {
9496
9496
  return __awaiter(this, void 0, void 0, function () {
9497
9497
  var _this = this;
9498
9498
  return __generator(this, function (_a) {
9499
+ if (["1", "131010", "133315"].includes(this.id.toString())) {
9500
+ return [2 /*return*/, {}];
9501
+ }
9499
9502
  return [2 /*return*/, this.getReport({}).then(function (report) {
9500
9503
  _this.usage = report;
9504
+ return report;
9501
9505
  })];
9502
9506
  });
9503
9507
  });
@@ -17120,28 +17124,22 @@ var SummaryEnhancedFormModel = /** @class */ (function (_super) {
17120
17124
  __extends(SummaryEnhancedFormModel, _super);
17121
17125
  function SummaryEnhancedFormModel(_a) {
17122
17126
  var id = _a.id, list_id = _a.list_id, enabled = _a.enabled, name = _a.name, description = _a.description, tags = _a.tags, post_redirect_url = _a.post_redirect_url, double_opt_in = _a.double_opt_in, double_opt_in_redirect_url = _a.double_opt_in_redirect_url, submission_url = _a.submission_url, async_processing = _a.async_processing, branding = _a.branding, created_on = _a.created_on, updated_on = _a.updated_on, published_on = _a.published_on, edited_by = _a.edited_by, thumbnail_url = _a.thumbnail_url, recaptcha = _a.recaptcha, published_url = _a.published_url;
17123
- var _this = _super.call(this, { id: id || "", name: name || "", list_id: list_id || 0, double_opt_in: double_opt_in || true }) || this;
17124
- _this.enabled = enabled || true;
17125
- _this.description = description || "";
17126
- _this.tags = tags || [];
17127
- _this.post_redirect_url = post_redirect_url || "";
17128
- _this.double_opt_in_redirect_url = double_opt_in_redirect_url || "";
17129
- _this.submission_url = submission_url || "";
17130
- _this.async_processing = async_processing || false;
17131
- _this.branding = branding || "";
17132
- _this.created_on = created_on || 0;
17133
- _this.updated_on = updated_on || 0;
17134
- _this.published_on = published_on || 0;
17135
- _this.edited_by = edited_by || {
17136
- id: 0,
17137
- email: ""
17138
- };
17139
- _this.thumbnail_url = thumbnail_url || "";
17140
- _this.recaptcha = recaptcha || {
17141
- secret: "",
17142
- domain: ""
17143
- };
17144
- _this.published_url = published_url || "";
17127
+ var _this = _super.call(this, { id: id, name: name, list_id: list_id, double_opt_in: double_opt_in }) || this;
17128
+ _this.enabled = enabled;
17129
+ _this.description = description;
17130
+ _this.tags = tags;
17131
+ _this.post_redirect_url = post_redirect_url;
17132
+ _this.double_opt_in_redirect_url = double_opt_in_redirect_url;
17133
+ _this.submission_url = submission_url;
17134
+ _this.async_processing = async_processing;
17135
+ _this.branding = branding;
17136
+ _this.created_on = created_on;
17137
+ _this.updated_on = updated_on;
17138
+ _this.published_on = published_on;
17139
+ _this.edited_by = edited_by;
17140
+ _this.thumbnail_url = thumbnail_url;
17141
+ _this.recaptcha = recaptcha;
17142
+ _this.published_url = published_url;
17145
17143
  return _this;
17146
17144
  }
17147
17145
  SummaryEnhancedFormModel.prototype.enable = function () {
@@ -25,7 +25,7 @@ export declare class AccountModel {
25
25
  });
26
26
  toJson(): any;
27
27
  set<T extends keyof this>(property: T, value: this[T]): void;
28
- getUsageReport(): Promise<void>;
28
+ getUsageReport(): Promise<TAccountReport>;
29
29
  getReport({ ...options }: TGetAccountReport): Promise<TAccountReport>;
30
30
  impersonate(byContext?: boolean): Promise<any>;
31
31
  getDomains(): Promise<TAccountDomains>;
@@ -54,7 +54,7 @@ export declare class SummaryEnhancedFormModel extends CommonFormModel {
54
54
  readonly edited_by: TEnhancedFormEditedBy;
55
55
  readonly thumbnail_url: string;
56
56
  readonly published_url: string;
57
- constructor({ id, list_id, enabled, name, description, tags, post_redirect_url, double_opt_in, double_opt_in_redirect_url, submission_url, async_processing, branding, created_on, updated_on, published_on, edited_by, thumbnail_url, recaptcha, published_url }: Partial<TSummaryEnhancedFormModel>);
57
+ constructor({ id, list_id, enabled, name, description, tags, post_redirect_url, double_opt_in, double_opt_in_redirect_url, submission_url, async_processing, branding, created_on, updated_on, published_on, edited_by, thumbnail_url, recaptcha, published_url }: TSummaryEnhancedFormModel);
58
58
  enable(): Promise<EnhancedFormModel>;
59
59
  disable(): Promise<EnhancedFormModel>;
60
60
  publish(): Promise<EnhancedFormModel>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cakemail-org/ui-components-v2",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "ui library kit made with material UI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",