@cakemail-org/ui-components-v2 2.1.23 → 2.1.25
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/components/icon/types.d.ts +1 -0
- package/dist/cjs/components/icons/44/createForm.d.ts +4 -0
- package/dist/cjs/factories/tags/index.d.ts +3 -0
- package/dist/cjs/index.js +34 -0
- package/dist/cjs/services/tags/index.d.ts +4 -1
- package/dist/esm/components/icon/types.d.ts +1 -0
- package/dist/esm/components/icons/44/createForm.d.ts +4 -0
- package/dist/esm/factories/tags/index.d.ts +3 -0
- package/dist/esm/index.js +34 -0
- package/dist/esm/services/tags/index.d.ts +4 -1
- package/package.json +1 -1
|
@@ -2,5 +2,8 @@ import { TGenericListParams, TGenericListReturn } from "../../types/services";
|
|
|
2
2
|
import { TTag } from "./types";
|
|
3
3
|
export declare class TagsFactory {
|
|
4
4
|
static list({ ...options }: TGenericListParams): Promise<TGenericListReturn<TTag>>;
|
|
5
|
+
static create({ tag }: {
|
|
6
|
+
tag: string;
|
|
7
|
+
}): Promise<TTag>;
|
|
5
8
|
}
|
|
6
9
|
export * from "./types";
|
package/dist/cjs/index.js
CHANGED
|
@@ -1320,6 +1320,13 @@ function Uptime32(props) {
|
|
|
1320
1320
|
React.createElement("path", { className: 'noFill', id: "Vector 119", d: "M13.2842 17.391L15.2591 19.0621L18.7153 13.631", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
|
+
function CreateForm44(props) {
|
|
1324
|
+
return React.createElement(SvgIcon, __assign({}, props, { width: "44", height: "44", viewBox: "0 0 44 44" }),
|
|
1325
|
+
React.createElement("path", { d: "M39 0C41.7614 0 44 2.23858 44 5V31.5459H42V5C42 3.34315 40.6569 2 39 2H5C3.34315 2 2 3.34315 2 5V39C2 40.6568 3.34315 42 5 42H30.5908V44H5C2.23858 44 0 41.7614 0 39V5C0 2.23858 2.23858 0 5 0H39Z" }),
|
|
1326
|
+
React.createElement("path", { d: "M36.8359 30C37.3881 30.0001 37.8359 30.4478 37.8359 31V36H42.8359C43.3881 36.0001 43.8359 36.4478 43.8359 37C43.8359 37.5522 43.3881 37.9999 42.8359 38H37.8359V43C37.8359 43.5522 37.3881 43.9999 36.8359 44C36.2837 44 35.8359 43.5523 35.8359 43V38H30.8359C30.2837 38 29.8359 37.5523 29.8359 37C29.8359 36.4477 30.2837 36 30.8359 36H35.8359V31C35.8359 30.4477 36.2837 30 36.8359 30Z" }),
|
|
1327
|
+
React.createElement("path", { d: "M19 12C20.195 12 21.267 12.5246 22 13.3555C22.733 12.5246 23.805 12 25 12H28C28.5523 12 29 12.4477 29 13C29 13.5523 28.5523 14 28 14H25C23.8954 14 23 14.8954 23 16V27C23 28.1046 23.8954 29 25 29H28C28.5523 29 29 29.4477 29 30C29 30.5523 28.5523 31 28 31H25C23.8047 31 22.733 30.4747 22 29.6436C21.267 30.4747 20.1953 31 19 31H16C15.4477 31 15 30.5523 15 30C15 29.4477 15.4477 29 16 29H19C20.1046 29 21 28.1046 21 27V16C21 14.8954 20.1046 14 19 14H16C15.4477 14 15 13.5523 15 13C15 12.4477 15.4477 12 16 12H19Z" }));
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1323
1330
|
function CreateWidget44(props) {
|
|
1324
1331
|
return React.createElement(SvgIcon, __assign({}, props, { width: "44", height: "45", viewBox: "0 0 44 45" }),
|
|
1325
1332
|
React.createElement("rect", { className: 'noFill', id: "Rectangle 221", x: "1", y: "1", width: "18", height: "18", rx: "2", strokeWidth: "2" }),
|
|
@@ -1483,6 +1490,7 @@ function Icon(_a) {
|
|
|
1483
1490
|
Uptime32: Uptime32,
|
|
1484
1491
|
CreateWidget44: CreateWidget44,
|
|
1485
1492
|
EmptyFolder44: EmptyFolder,
|
|
1493
|
+
CreateForm44: CreateForm44,
|
|
1486
1494
|
Stats44: Stats44,
|
|
1487
1495
|
Upload44: Upload44,
|
|
1488
1496
|
};
|
|
@@ -17768,6 +17776,22 @@ function listTags(options) {
|
|
|
17768
17776
|
});
|
|
17769
17777
|
});
|
|
17770
17778
|
}
|
|
17779
|
+
function CreateTag(_a) {
|
|
17780
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17781
|
+
var tag = _b.tag;
|
|
17782
|
+
return __generator(this, function (_c) {
|
|
17783
|
+
return [2 /*return*/, callApi({
|
|
17784
|
+
url: uiKitConfig.GATEWAY_PROXY + "/tags",
|
|
17785
|
+
fetchOptions: {
|
|
17786
|
+
method: exports.EMethods.post,
|
|
17787
|
+
body: {
|
|
17788
|
+
tag: tag
|
|
17789
|
+
}
|
|
17790
|
+
}
|
|
17791
|
+
})];
|
|
17792
|
+
});
|
|
17793
|
+
});
|
|
17794
|
+
}
|
|
17771
17795
|
|
|
17772
17796
|
var TagsFactory = /** @class */ (function () {
|
|
17773
17797
|
function TagsFactory() {
|
|
@@ -17780,6 +17804,16 @@ var TagsFactory = /** @class */ (function () {
|
|
|
17780
17804
|
});
|
|
17781
17805
|
});
|
|
17782
17806
|
};
|
|
17807
|
+
TagsFactory.create = function (_a) {
|
|
17808
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17809
|
+
var tag = _b.tag;
|
|
17810
|
+
return __generator(this, function (_c) {
|
|
17811
|
+
return [2 /*return*/, CreateTag({ tag: tag }).then(function (data) {
|
|
17812
|
+
return data.data;
|
|
17813
|
+
})];
|
|
17814
|
+
});
|
|
17815
|
+
});
|
|
17816
|
+
};
|
|
17783
17817
|
return TagsFactory;
|
|
17784
17818
|
}());
|
|
17785
17819
|
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { TTag } from "../../factories/tags";
|
|
2
|
-
import { TGenericListParams, TGenericListReturn } from "../../types";
|
|
2
|
+
import { TCreateApiResource, TGenericListParams, TGenericListReturn } from "../../types";
|
|
3
3
|
export declare function listTags(options: TGenericListParams): Promise<TGenericListReturn<TTag>>;
|
|
4
|
+
export declare function CreateTag({ tag }: {
|
|
5
|
+
tag: string;
|
|
6
|
+
}): Promise<TCreateApiResource<TTag>>;
|
|
@@ -2,5 +2,8 @@ import { TGenericListParams, TGenericListReturn } from "../../types/services";
|
|
|
2
2
|
import { TTag } from "./types";
|
|
3
3
|
export declare class TagsFactory {
|
|
4
4
|
static list({ ...options }: TGenericListParams): Promise<TGenericListReturn<TTag>>;
|
|
5
|
+
static create({ tag }: {
|
|
6
|
+
tag: string;
|
|
7
|
+
}): Promise<TTag>;
|
|
5
8
|
}
|
|
6
9
|
export * from "./types";
|
package/dist/esm/index.js
CHANGED
|
@@ -1300,6 +1300,13 @@ function Uptime32(props) {
|
|
|
1300
1300
|
React__default.createElement("path", { className: 'noFill', id: "Vector 119", d: "M13.2842 17.391L15.2591 19.0621L18.7153 13.631", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
1301
1301
|
}
|
|
1302
1302
|
|
|
1303
|
+
function CreateForm44(props) {
|
|
1304
|
+
return React__default.createElement(SvgIcon, __assign({}, props, { width: "44", height: "44", viewBox: "0 0 44 44" }),
|
|
1305
|
+
React__default.createElement("path", { d: "M39 0C41.7614 0 44 2.23858 44 5V31.5459H42V5C42 3.34315 40.6569 2 39 2H5C3.34315 2 2 3.34315 2 5V39C2 40.6568 3.34315 42 5 42H30.5908V44H5C2.23858 44 0 41.7614 0 39V5C0 2.23858 2.23858 0 5 0H39Z" }),
|
|
1306
|
+
React__default.createElement("path", { d: "M36.8359 30C37.3881 30.0001 37.8359 30.4478 37.8359 31V36H42.8359C43.3881 36.0001 43.8359 36.4478 43.8359 37C43.8359 37.5522 43.3881 37.9999 42.8359 38H37.8359V43C37.8359 43.5522 37.3881 43.9999 36.8359 44C36.2837 44 35.8359 43.5523 35.8359 43V38H30.8359C30.2837 38 29.8359 37.5523 29.8359 37C29.8359 36.4477 30.2837 36 30.8359 36H35.8359V31C35.8359 30.4477 36.2837 30 36.8359 30Z" }),
|
|
1307
|
+
React__default.createElement("path", { d: "M19 12C20.195 12 21.267 12.5246 22 13.3555C22.733 12.5246 23.805 12 25 12H28C28.5523 12 29 12.4477 29 13C29 13.5523 28.5523 14 28 14H25C23.8954 14 23 14.8954 23 16V27C23 28.1046 23.8954 29 25 29H28C28.5523 29 29 29.4477 29 30C29 30.5523 28.5523 31 28 31H25C23.8047 31 22.733 30.4747 22 29.6436C21.267 30.4747 20.1953 31 19 31H16C15.4477 31 15 30.5523 15 30C15 29.4477 15.4477 29 16 29H19C20.1046 29 21 28.1046 21 27V16C21 14.8954 20.1046 14 19 14H16C15.4477 14 15 13.5523 15 13C15 12.4477 15.4477 12 16 12H19Z" }));
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1303
1310
|
function CreateWidget44(props) {
|
|
1304
1311
|
return React__default.createElement(SvgIcon, __assign({}, props, { width: "44", height: "45", viewBox: "0 0 44 45" }),
|
|
1305
1312
|
React__default.createElement("rect", { className: 'noFill', id: "Rectangle 221", x: "1", y: "1", width: "18", height: "18", rx: "2", strokeWidth: "2" }),
|
|
@@ -1463,6 +1470,7 @@ function Icon(_a) {
|
|
|
1463
1470
|
Uptime32: Uptime32,
|
|
1464
1471
|
CreateWidget44: CreateWidget44,
|
|
1465
1472
|
EmptyFolder44: EmptyFolder,
|
|
1473
|
+
CreateForm44: CreateForm44,
|
|
1466
1474
|
Stats44: Stats44,
|
|
1467
1475
|
Upload44: Upload44,
|
|
1468
1476
|
};
|
|
@@ -17748,6 +17756,22 @@ function listTags(options) {
|
|
|
17748
17756
|
});
|
|
17749
17757
|
});
|
|
17750
17758
|
}
|
|
17759
|
+
function CreateTag(_a) {
|
|
17760
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17761
|
+
var tag = _b.tag;
|
|
17762
|
+
return __generator(this, function (_c) {
|
|
17763
|
+
return [2 /*return*/, callApi({
|
|
17764
|
+
url: uiKitConfig.GATEWAY_PROXY + "/tags",
|
|
17765
|
+
fetchOptions: {
|
|
17766
|
+
method: EMethods.post,
|
|
17767
|
+
body: {
|
|
17768
|
+
tag: tag
|
|
17769
|
+
}
|
|
17770
|
+
}
|
|
17771
|
+
})];
|
|
17772
|
+
});
|
|
17773
|
+
});
|
|
17774
|
+
}
|
|
17751
17775
|
|
|
17752
17776
|
var TagsFactory = /** @class */ (function () {
|
|
17753
17777
|
function TagsFactory() {
|
|
@@ -17760,6 +17784,16 @@ var TagsFactory = /** @class */ (function () {
|
|
|
17760
17784
|
});
|
|
17761
17785
|
});
|
|
17762
17786
|
};
|
|
17787
|
+
TagsFactory.create = function (_a) {
|
|
17788
|
+
return __awaiter(this, arguments, void 0, function (_b) {
|
|
17789
|
+
var tag = _b.tag;
|
|
17790
|
+
return __generator(this, function (_c) {
|
|
17791
|
+
return [2 /*return*/, CreateTag({ tag: tag }).then(function (data) {
|
|
17792
|
+
return data.data;
|
|
17793
|
+
})];
|
|
17794
|
+
});
|
|
17795
|
+
});
|
|
17796
|
+
};
|
|
17763
17797
|
return TagsFactory;
|
|
17764
17798
|
}());
|
|
17765
17799
|
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { TTag } from "../../factories/tags";
|
|
2
|
-
import { TGenericListParams, TGenericListReturn } from "../../types";
|
|
2
|
+
import { TCreateApiResource, TGenericListParams, TGenericListReturn } from "../../types";
|
|
3
3
|
export declare function listTags(options: TGenericListParams): Promise<TGenericListReturn<TTag>>;
|
|
4
|
+
export declare function CreateTag({ tag }: {
|
|
5
|
+
tag: string;
|
|
6
|
+
}): Promise<TCreateApiResource<TTag>>;
|