@cakemail-org/ui-components-v2 2.0.63 → 2.0.65
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 +5 -4
- package/dist/cjs/models/form/index.d.ts +4 -4
- package/dist/cjs/models/form/types.d.ts +3 -3
- package/dist/cjs/types/promisePool.d.ts +4 -2
- package/dist/esm/index.js +5 -4
- package/dist/esm/models/form/index.d.ts +4 -4
- package/dist/esm/models/form/types.d.ts +3 -3
- package/dist/esm/types/promisePool.d.ts +4 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2201,6 +2201,7 @@ exports.EPartialInfoPool = void 0;
|
|
|
2201
2201
|
EPartialInfoPool["partialAccountReport"] = "partialAccountReport";
|
|
2202
2202
|
EPartialInfoPool["partialAutomationReport"] = "partialAutomationReport";
|
|
2203
2203
|
EPartialInfoPool["partialUsers"] = "partialUsers";
|
|
2204
|
+
EPartialInfoPool["partialLists"] = "partialLists";
|
|
2204
2205
|
})(exports.EPartialInfoPool || (exports.EPartialInfoPool = {}));
|
|
2205
2206
|
|
|
2206
2207
|
// Storage
|
|
@@ -16658,7 +16659,7 @@ var FormModel = /** @class */ (function (_super) {
|
|
|
16658
16659
|
var SummaryEnhancedFormModel = /** @class */ (function (_super) {
|
|
16659
16660
|
__extends(SummaryEnhancedFormModel, _super);
|
|
16660
16661
|
function SummaryEnhancedFormModel(_a) {
|
|
16661
|
-
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,
|
|
16662
|
+
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;
|
|
16662
16663
|
var _this = _super.call(this, { id: id, name: name, list_id: list_id, double_opt_in: double_opt_in }) || this;
|
|
16663
16664
|
_this.enabled = enabled;
|
|
16664
16665
|
_this.description = description;
|
|
@@ -16668,9 +16669,9 @@ var SummaryEnhancedFormModel = /** @class */ (function (_super) {
|
|
|
16668
16669
|
_this.submission_url = submission_url;
|
|
16669
16670
|
_this.async_processing = async_processing;
|
|
16670
16671
|
_this.branding = branding;
|
|
16671
|
-
_this.
|
|
16672
|
-
_this.
|
|
16673
|
-
_this.
|
|
16672
|
+
_this.created_on = created_on;
|
|
16673
|
+
_this.updated_on = updated_on;
|
|
16674
|
+
_this.published_on = published_on;
|
|
16674
16675
|
_this.edited_by = edited_by;
|
|
16675
16676
|
_this.thumbnail_url = thumbnail_url;
|
|
16676
16677
|
_this.recaptcha = recaptcha;
|
|
@@ -47,13 +47,13 @@ export declare class SummaryEnhancedFormModel extends CommonFormModel {
|
|
|
47
47
|
submission_url: string;
|
|
48
48
|
async_processing: boolean;
|
|
49
49
|
branding: string;
|
|
50
|
-
readonly
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
50
|
+
readonly created_on: number;
|
|
51
|
+
readonly updated_on: number;
|
|
52
|
+
readonly published_on: number;
|
|
53
53
|
readonly edited_by: TEnhancedFormEditedBy;
|
|
54
54
|
readonly thumbnail_url: string;
|
|
55
55
|
recaptcha: TEnhancedFormRecaptcha;
|
|
56
|
-
constructor({ id, list_id, enabled, name, description, tags, post_redirect_url, double_opt_in, double_opt_in_redirect_url, submission_url, async_processing, branding,
|
|
56
|
+
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, }: TSummaryEnhancedFormModel);
|
|
57
57
|
enable(): Promise<TEnableApiResource>;
|
|
58
58
|
disable(): Promise<TDisableApiResource>;
|
|
59
59
|
publish(): Promise<TGenericReturn<EnhancedFormModel>>;
|
|
@@ -47,9 +47,9 @@ export interface TSummaryEnhancedFormModel {
|
|
|
47
47
|
submission_url: string;
|
|
48
48
|
async_processing: boolean;
|
|
49
49
|
branding: string;
|
|
50
|
-
readonly
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
50
|
+
readonly created_on: number;
|
|
51
|
+
readonly updated_on: number;
|
|
52
|
+
readonly published_on: number;
|
|
53
53
|
readonly edited_by: TEnhancedFormEditedBy;
|
|
54
54
|
readonly thumbnail_url: string;
|
|
55
55
|
recaptcha: TEnhancedFormRecaptcha;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Stoppable, UsesConcurrency } from "@supercharge/promise-pool";
|
|
2
2
|
import { Dispatch, MutableRefObject, SetStateAction } from "react";
|
|
3
|
-
import { TUserModel } from "../models";
|
|
3
|
+
import { TListModel, TUserModel } from "../models";
|
|
4
4
|
import { TSenderModel } from "../models/sender";
|
|
5
5
|
import { TListTemplateModel, TTemplateModel } from "../models/templates";
|
|
6
6
|
import { TNumStr } from "./generic";
|
|
@@ -30,9 +30,11 @@ export declare enum EPartialInfoPool {
|
|
|
30
30
|
"partialEmailActivity" = "partialEmailActivity",
|
|
31
31
|
"partialAccountReport" = "partialAccountReport",
|
|
32
32
|
"partialAutomationReport" = "partialAutomationReport",
|
|
33
|
-
"partialUsers" = "partialUsers"
|
|
33
|
+
"partialUsers" = "partialUsers",
|
|
34
|
+
"partialLists" = "partialLists"
|
|
34
35
|
}
|
|
35
36
|
export type TPromisePoolPartialUser = Pick<TUserModel, "id" | "email" | "status" | "last_activity_on" | "first_name" | "last_name" | "language" | "timezone"> | undefined;
|
|
36
37
|
export type TPromisePoolPartialSender = Pick<TSenderModel, "email" | "name" | "confirmed"> | undefined;
|
|
37
38
|
export type TPromisePoolPartialTemplates = Pick<TTemplateModel | TListTemplateModel, "name" | "thumbnail_url" | "description"> | undefined;
|
|
39
|
+
export type TPromisePoolPartialList = Pick<TListModel, "id" | "name" | "status"> | undefined;
|
|
38
40
|
export {};
|
package/dist/esm/index.js
CHANGED
|
@@ -2181,6 +2181,7 @@ var EPartialInfoPool;
|
|
|
2181
2181
|
EPartialInfoPool["partialAccountReport"] = "partialAccountReport";
|
|
2182
2182
|
EPartialInfoPool["partialAutomationReport"] = "partialAutomationReport";
|
|
2183
2183
|
EPartialInfoPool["partialUsers"] = "partialUsers";
|
|
2184
|
+
EPartialInfoPool["partialLists"] = "partialLists";
|
|
2184
2185
|
})(EPartialInfoPool || (EPartialInfoPool = {}));
|
|
2185
2186
|
|
|
2186
2187
|
// Storage
|
|
@@ -16638,7 +16639,7 @@ var FormModel = /** @class */ (function (_super) {
|
|
|
16638
16639
|
var SummaryEnhancedFormModel = /** @class */ (function (_super) {
|
|
16639
16640
|
__extends(SummaryEnhancedFormModel, _super);
|
|
16640
16641
|
function SummaryEnhancedFormModel(_a) {
|
|
16641
|
-
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,
|
|
16642
|
+
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;
|
|
16642
16643
|
var _this = _super.call(this, { id: id, name: name, list_id: list_id, double_opt_in: double_opt_in }) || this;
|
|
16643
16644
|
_this.enabled = enabled;
|
|
16644
16645
|
_this.description = description;
|
|
@@ -16648,9 +16649,9 @@ var SummaryEnhancedFormModel = /** @class */ (function (_super) {
|
|
|
16648
16649
|
_this.submission_url = submission_url;
|
|
16649
16650
|
_this.async_processing = async_processing;
|
|
16650
16651
|
_this.branding = branding;
|
|
16651
|
-
_this.
|
|
16652
|
-
_this.
|
|
16653
|
-
_this.
|
|
16652
|
+
_this.created_on = created_on;
|
|
16653
|
+
_this.updated_on = updated_on;
|
|
16654
|
+
_this.published_on = published_on;
|
|
16654
16655
|
_this.edited_by = edited_by;
|
|
16655
16656
|
_this.thumbnail_url = thumbnail_url;
|
|
16656
16657
|
_this.recaptcha = recaptcha;
|
|
@@ -47,13 +47,13 @@ export declare class SummaryEnhancedFormModel extends CommonFormModel {
|
|
|
47
47
|
submission_url: string;
|
|
48
48
|
async_processing: boolean;
|
|
49
49
|
branding: string;
|
|
50
|
-
readonly
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
50
|
+
readonly created_on: number;
|
|
51
|
+
readonly updated_on: number;
|
|
52
|
+
readonly published_on: number;
|
|
53
53
|
readonly edited_by: TEnhancedFormEditedBy;
|
|
54
54
|
readonly thumbnail_url: string;
|
|
55
55
|
recaptcha: TEnhancedFormRecaptcha;
|
|
56
|
-
constructor({ id, list_id, enabled, name, description, tags, post_redirect_url, double_opt_in, double_opt_in_redirect_url, submission_url, async_processing, branding,
|
|
56
|
+
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, }: TSummaryEnhancedFormModel);
|
|
57
57
|
enable(): Promise<TEnableApiResource>;
|
|
58
58
|
disable(): Promise<TDisableApiResource>;
|
|
59
59
|
publish(): Promise<TGenericReturn<EnhancedFormModel>>;
|
|
@@ -47,9 +47,9 @@ export interface TSummaryEnhancedFormModel {
|
|
|
47
47
|
submission_url: string;
|
|
48
48
|
async_processing: boolean;
|
|
49
49
|
branding: string;
|
|
50
|
-
readonly
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
50
|
+
readonly created_on: number;
|
|
51
|
+
readonly updated_on: number;
|
|
52
|
+
readonly published_on: number;
|
|
53
53
|
readonly edited_by: TEnhancedFormEditedBy;
|
|
54
54
|
readonly thumbnail_url: string;
|
|
55
55
|
recaptcha: TEnhancedFormRecaptcha;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Stoppable, UsesConcurrency } from "@supercharge/promise-pool";
|
|
2
2
|
import { Dispatch, MutableRefObject, SetStateAction } from "react";
|
|
3
|
-
import { TUserModel } from "../models";
|
|
3
|
+
import { TListModel, TUserModel } from "../models";
|
|
4
4
|
import { TSenderModel } from "../models/sender";
|
|
5
5
|
import { TListTemplateModel, TTemplateModel } from "../models/templates";
|
|
6
6
|
import { TNumStr } from "./generic";
|
|
@@ -30,9 +30,11 @@ export declare enum EPartialInfoPool {
|
|
|
30
30
|
"partialEmailActivity" = "partialEmailActivity",
|
|
31
31
|
"partialAccountReport" = "partialAccountReport",
|
|
32
32
|
"partialAutomationReport" = "partialAutomationReport",
|
|
33
|
-
"partialUsers" = "partialUsers"
|
|
33
|
+
"partialUsers" = "partialUsers",
|
|
34
|
+
"partialLists" = "partialLists"
|
|
34
35
|
}
|
|
35
36
|
export type TPromisePoolPartialUser = Pick<TUserModel, "id" | "email" | "status" | "last_activity_on" | "first_name" | "last_name" | "language" | "timezone"> | undefined;
|
|
36
37
|
export type TPromisePoolPartialSender = Pick<TSenderModel, "email" | "name" | "confirmed"> | undefined;
|
|
37
38
|
export type TPromisePoolPartialTemplates = Pick<TTemplateModel | TListTemplateModel, "name" | "thumbnail_url" | "description"> | undefined;
|
|
39
|
+
export type TPromisePoolPartialList = Pick<TListModel, "id" | "name" | "status"> | undefined;
|
|
38
40
|
export {};
|