@cakemail-org/ui-components-v2 2.2.39 → 2.2.41
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 +4 -3
- package/dist/cjs/models/templates/index.d.ts +1 -1
- package/dist/cjs/models/templates/types.d.ts +1 -0
- package/dist/cjs/services/templates/index.d.ts +2 -1
- package/dist/esm/index.js +4 -3
- package/dist/esm/models/templates/index.d.ts +1 -1
- package/dist/esm/models/templates/types.d.ts +1 -0
- package/dist/esm/services/templates/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -11698,9 +11698,10 @@ function renderTemplate(_a) {
|
|
|
11698
11698
|
});
|
|
11699
11699
|
}
|
|
11700
11700
|
function shareTemplate(_a) {
|
|
11701
|
-
var id = _a.id, accounts = _a.accounts, everyone = _a.everyone, automatic = _a.automatic;
|
|
11701
|
+
var id = _a.id, accounts = _a.accounts, everyone = _a.everyone, automatic = _a.automatic, patch = _a.patch;
|
|
11702
11702
|
return callApi({
|
|
11703
11703
|
url: uiKitConfig.GATEWAY_PROXY + "/templates/".concat(id, "/share"),
|
|
11704
|
+
query: patch ? { patch: true } : undefined,
|
|
11704
11705
|
fetchOptions: {
|
|
11705
11706
|
body: {
|
|
11706
11707
|
accounts: accounts,
|
|
@@ -12677,9 +12678,9 @@ var ListTemplateModel = /** @class */ (function () {
|
|
|
12677
12678
|
ListTemplateModel.prototype.share = function () {
|
|
12678
12679
|
return __awaiter(this, arguments, void 0, function (_a) {
|
|
12679
12680
|
var _this = this;
|
|
12680
|
-
var _b = _a === void 0 ? {} : _a, accounts = _b.accounts, everyone = _b.everyone, automatic = _b.automatic;
|
|
12681
|
+
var _b = _a === void 0 ? {} : _a, accounts = _b.accounts, everyone = _b.everyone, automatic = _b.automatic, patch = _b.patch;
|
|
12681
12682
|
return __generator(this, function (_c) {
|
|
12682
|
-
return [2 /*return*/, shareTemplate({ id: this.id, accounts: accounts, everyone: everyone, automatic: automatic }).then(function () {
|
|
12683
|
+
return [2 /*return*/, shareTemplate({ id: this.id, accounts: accounts, everyone: everyone, automatic: automatic, patch: patch }).then(function () {
|
|
12683
12684
|
trackEvent(exports.EEvents.TEMPLATE_SHARED, { id: _this.id });
|
|
12684
12685
|
return;
|
|
12685
12686
|
})];
|
|
@@ -20,7 +20,7 @@ export declare class ListTemplateModel {
|
|
|
20
20
|
render({ brandAccountId }: {
|
|
21
21
|
brandAccountId?: TNumStr;
|
|
22
22
|
}): Promise<string>;
|
|
23
|
-
share({ accounts, everyone, automatic }?: TTemplateSharePayload): Promise<void>;
|
|
23
|
+
share({ accounts, everyone, automatic, patch }?: TTemplateSharePayload): Promise<void>;
|
|
24
24
|
unshare(): Promise<void>;
|
|
25
25
|
}
|
|
26
26
|
export declare class TemplateModel extends ListTemplateModel {
|
|
@@ -19,11 +19,12 @@ export declare function renderTemplate({ id, brandAccountId }: {
|
|
|
19
19
|
id: TNumStr;
|
|
20
20
|
brandAccountId?: TNumStr;
|
|
21
21
|
}): Promise<any>;
|
|
22
|
-
export declare function shareTemplate({ id, accounts, everyone, automatic }: {
|
|
22
|
+
export declare function shareTemplate({ id, accounts, everyone, automatic, patch }: {
|
|
23
23
|
id: TNumStr;
|
|
24
24
|
accounts?: TTemplateShareAccounPayload[];
|
|
25
25
|
everyone?: boolean;
|
|
26
26
|
automatic?: boolean;
|
|
27
|
+
patch?: boolean;
|
|
27
28
|
}): Promise<any>;
|
|
28
29
|
export declare function unshareTemplate({ id }: {
|
|
29
30
|
id: TNumStr;
|
package/dist/esm/index.js
CHANGED
|
@@ -11678,9 +11678,10 @@ function renderTemplate(_a) {
|
|
|
11678
11678
|
});
|
|
11679
11679
|
}
|
|
11680
11680
|
function shareTemplate(_a) {
|
|
11681
|
-
var id = _a.id, accounts = _a.accounts, everyone = _a.everyone, automatic = _a.automatic;
|
|
11681
|
+
var id = _a.id, accounts = _a.accounts, everyone = _a.everyone, automatic = _a.automatic, patch = _a.patch;
|
|
11682
11682
|
return callApi({
|
|
11683
11683
|
url: uiKitConfig.GATEWAY_PROXY + "/templates/".concat(id, "/share"),
|
|
11684
|
+
query: patch ? { patch: true } : undefined,
|
|
11684
11685
|
fetchOptions: {
|
|
11685
11686
|
body: {
|
|
11686
11687
|
accounts: accounts,
|
|
@@ -12657,9 +12658,9 @@ var ListTemplateModel = /** @class */ (function () {
|
|
|
12657
12658
|
ListTemplateModel.prototype.share = function () {
|
|
12658
12659
|
return __awaiter(this, arguments, void 0, function (_a) {
|
|
12659
12660
|
var _this = this;
|
|
12660
|
-
var _b = _a === void 0 ? {} : _a, accounts = _b.accounts, everyone = _b.everyone, automatic = _b.automatic;
|
|
12661
|
+
var _b = _a === void 0 ? {} : _a, accounts = _b.accounts, everyone = _b.everyone, automatic = _b.automatic, patch = _b.patch;
|
|
12661
12662
|
return __generator(this, function (_c) {
|
|
12662
|
-
return [2 /*return*/, shareTemplate({ id: this.id, accounts: accounts, everyone: everyone, automatic: automatic }).then(function () {
|
|
12663
|
+
return [2 /*return*/, shareTemplate({ id: this.id, accounts: accounts, everyone: everyone, automatic: automatic, patch: patch }).then(function () {
|
|
12663
12664
|
trackEvent(EEvents.TEMPLATE_SHARED, { id: _this.id });
|
|
12664
12665
|
return;
|
|
12665
12666
|
})];
|
|
@@ -20,7 +20,7 @@ export declare class ListTemplateModel {
|
|
|
20
20
|
render({ brandAccountId }: {
|
|
21
21
|
brandAccountId?: TNumStr;
|
|
22
22
|
}): Promise<string>;
|
|
23
|
-
share({ accounts, everyone, automatic }?: TTemplateSharePayload): Promise<void>;
|
|
23
|
+
share({ accounts, everyone, automatic, patch }?: TTemplateSharePayload): Promise<void>;
|
|
24
24
|
unshare(): Promise<void>;
|
|
25
25
|
}
|
|
26
26
|
export declare class TemplateModel extends ListTemplateModel {
|
|
@@ -19,11 +19,12 @@ export declare function renderTemplate({ id, brandAccountId }: {
|
|
|
19
19
|
id: TNumStr;
|
|
20
20
|
brandAccountId?: TNumStr;
|
|
21
21
|
}): Promise<any>;
|
|
22
|
-
export declare function shareTemplate({ id, accounts, everyone, automatic }: {
|
|
22
|
+
export declare function shareTemplate({ id, accounts, everyone, automatic, patch }: {
|
|
23
23
|
id: TNumStr;
|
|
24
24
|
accounts?: TTemplateShareAccounPayload[];
|
|
25
25
|
everyone?: boolean;
|
|
26
26
|
automatic?: boolean;
|
|
27
|
+
patch?: boolean;
|
|
27
28
|
}): Promise<any>;
|
|
28
29
|
export declare function unshareTemplate({ id }: {
|
|
29
30
|
id: TNumStr;
|