@cakemail-org/ui-components-v2 2.2.130 → 2.2.131
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/index.d.ts +0 -4
- package/dist/cjs/factories/billing/index.d.ts +14 -0
- package/dist/cjs/factories/billing/types.d.ts +13 -1
- package/dist/cjs/factories/index.d.ts +0 -1
- package/dist/cjs/index.js +118 -490
- package/dist/cjs/models/index.d.ts +0 -1
- package/dist/cjs/services/billing/index.d.ts +13 -0
- package/dist/cjs/services/index.d.ts +0 -1
- package/dist/esm/components/index.d.ts +0 -4
- package/dist/esm/factories/billing/index.d.ts +14 -0
- package/dist/esm/factories/billing/types.d.ts +13 -1
- package/dist/esm/factories/index.d.ts +0 -1
- package/dist/esm/index.js +116 -475
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/services/billing/index.d.ts +13 -0
- package/dist/esm/services/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cjs/components/resourceCard/ResourceCardGrid.d.ts +0 -5
- package/dist/cjs/components/resourceCard/gridTypes.d.ts +0 -14
- package/dist/cjs/components/resourceCard/index.d.ts +0 -5
- package/dist/cjs/components/resourceCard/types.d.ts +0 -18
- package/dist/cjs/factories/contentCatalog/index.d.ts +0 -17
- package/dist/cjs/models/contentCatalog/index.d.ts +0 -66
- package/dist/cjs/models/contentCatalog/types.d.ts +0 -89
- package/dist/cjs/services/contentCatalog/index.d.ts +0 -15
- package/dist/cjs/services/contentCatalog/types.d.ts +0 -13
- package/dist/esm/components/resourceCard/ResourceCardGrid.d.ts +0 -5
- package/dist/esm/components/resourceCard/gridTypes.d.ts +0 -14
- package/dist/esm/components/resourceCard/index.d.ts +0 -5
- package/dist/esm/components/resourceCard/types.d.ts +0 -18
- package/dist/esm/factories/contentCatalog/index.d.ts +0 -17
- package/dist/esm/models/contentCatalog/index.d.ts +0 -66
- package/dist/esm/models/contentCatalog/types.d.ts +0 -89
- package/dist/esm/services/contentCatalog/index.d.ts +0 -15
- package/dist/esm/services/contentCatalog/types.d.ts +0 -13
|
@@ -7,4 +7,17 @@ export declare function searchCustomerProfiles({ query }: {
|
|
|
7
7
|
query: string;
|
|
8
8
|
useImpersonationTree?: boolean;
|
|
9
9
|
}): Promise<any>;
|
|
10
|
+
export declare function getPlans({ partnerId }: {
|
|
11
|
+
partnerId: string | number;
|
|
12
|
+
}): Promise<any>;
|
|
13
|
+
export declare function getPlanAssignments({ partnerId, accountIds }: {
|
|
14
|
+
partnerId: string | number;
|
|
15
|
+
accountIds?: (string | number)[];
|
|
16
|
+
}): Promise<any>;
|
|
17
|
+
export declare function assignPlan({ accountId, partnerId, planId, contacts }: {
|
|
18
|
+
accountId: string | number;
|
|
19
|
+
partnerId: string | number;
|
|
20
|
+
planId: string;
|
|
21
|
+
contacts?: number;
|
|
22
|
+
}): Promise<any>;
|
|
10
23
|
export * from "./types";
|
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TResourceCardGrid } from "./gridTypes";
|
|
3
|
-
import "./gridStyles.scss";
|
|
4
|
-
export declare function ResourceCardGrid({ children, maxCardWidth, minCardWidth, gap, className, }: TResourceCardGrid): React.JSX.Element;
|
|
5
|
-
export default ResourceCardGrid;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
export type TResourceCardGrid = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
maxCardWidth?: number;
|
|
5
|
-
minCardWidth?: number;
|
|
6
|
-
gap?: number;
|
|
7
|
-
className?: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function computeResourceCardGridColumns({ containerWidth, maxCardWidth, minCardWidth, gap, }: {
|
|
10
|
-
containerWidth: number;
|
|
11
|
-
maxCardWidth: number;
|
|
12
|
-
minCardWidth: number;
|
|
13
|
-
gap: number;
|
|
14
|
-
}): number;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./styles.scss";
|
|
3
|
-
import { TResourceCard } from "./types";
|
|
4
|
-
export declare function ResourceCard({ title, description, chip, support, imageUrl, primaryAction, primaryActionLabel, secondaryAction, secondaryActionLabel, additionalActions, className, }: TResourceCard): React.JSX.Element;
|
|
5
|
-
export default ResourceCard;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { TDropMenuItem } from "../dropMenu/types";
|
|
3
|
-
export type TResourceCardAdditionalAction = Omit<TDropMenuItem, "isMultiSelect" | "selected"> & {
|
|
4
|
-
renderedText?: string;
|
|
5
|
-
};
|
|
6
|
-
export type TResourceCard = {
|
|
7
|
-
title: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
chip?: ReactNode;
|
|
10
|
-
support?: ReactNode;
|
|
11
|
-
imageUrl?: string;
|
|
12
|
-
primaryAction?: () => void;
|
|
13
|
-
primaryActionLabel?: string;
|
|
14
|
-
secondaryAction?: () => void;
|
|
15
|
-
secondaryActionLabel?: string;
|
|
16
|
-
additionalActions?: TResourceCardAdditionalAction[];
|
|
17
|
-
className?: string;
|
|
18
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BeeCategoryModel, BeeCollectionModel, BeeTagModel, BeeTemplateDetailModel, BeeTemplateModel, TBeeFreeList } from "../../models";
|
|
2
|
-
import { TPageSizeParam, TTemplateListParams } from "../../services/contentCatalog/types";
|
|
3
|
-
export declare class ContentCatalogFactory {
|
|
4
|
-
static listTemplates(params?: TTemplateListParams): Promise<TBeeFreeList<BeeTemplateModel>>;
|
|
5
|
-
static getTemplate({ slug }: {
|
|
6
|
-
slug: string;
|
|
7
|
-
}): Promise<BeeTemplateDetailModel>;
|
|
8
|
-
static listCategories(params?: TPageSizeParam): Promise<TBeeFreeList<BeeCategoryModel>>;
|
|
9
|
-
static getCategory({ slug }: {
|
|
10
|
-
slug: string;
|
|
11
|
-
}): Promise<BeeCategoryModel>;
|
|
12
|
-
static listCollections(params?: TPageSizeParam): Promise<TBeeFreeList<BeeCollectionModel>>;
|
|
13
|
-
static getCollection({ slug }: {
|
|
14
|
-
slug: string;
|
|
15
|
-
}): Promise<BeeCollectionModel>;
|
|
16
|
-
static listTags(params?: TPageSizeParam): Promise<BeeTagModel[]>;
|
|
17
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { TBeeCategoryModel, TBeeCollectionModel, TBeeTagModel, TBeeTemplateDetailModel, TBeeTemplateModel } from "./types";
|
|
2
|
-
export declare class BeeTemplateModel {
|
|
3
|
-
id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
description: string;
|
|
6
|
-
short_description: string;
|
|
7
|
-
template_type: string;
|
|
8
|
-
categories: string[];
|
|
9
|
-
collections: string;
|
|
10
|
-
designer: string;
|
|
11
|
-
tags: string[];
|
|
12
|
-
thumbnail: string;
|
|
13
|
-
thumbnail_large: string;
|
|
14
|
-
published_at: string;
|
|
15
|
-
order: string;
|
|
16
|
-
context: string;
|
|
17
|
-
is_blank: boolean;
|
|
18
|
-
constructor(params: TBeeTemplateModel);
|
|
19
|
-
toJson(): any;
|
|
20
|
-
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
21
|
-
}
|
|
22
|
-
export declare class BeeTemplateDetailModel {
|
|
23
|
-
id: string;
|
|
24
|
-
title: string;
|
|
25
|
-
description: string;
|
|
26
|
-
short_description: string;
|
|
27
|
-
template_type: string;
|
|
28
|
-
categories: string[];
|
|
29
|
-
collections: string;
|
|
30
|
-
designer: TBeeTemplateDetailModel["designer"];
|
|
31
|
-
tags: string[];
|
|
32
|
-
thumbnail: string;
|
|
33
|
-
thumbnail_large: string;
|
|
34
|
-
published_at: string;
|
|
35
|
-
order: string;
|
|
36
|
-
is_blank: boolean;
|
|
37
|
-
html_url: string;
|
|
38
|
-
html_data: string;
|
|
39
|
-
json_data: Record<string, unknown> | string;
|
|
40
|
-
constructor(params: TBeeTemplateDetailModel);
|
|
41
|
-
toJson(): any;
|
|
42
|
-
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
43
|
-
}
|
|
44
|
-
export declare class BeeCategoryModel {
|
|
45
|
-
id: string;
|
|
46
|
-
name: string;
|
|
47
|
-
parent: string | null;
|
|
48
|
-
constructor(params: TBeeCategoryModel);
|
|
49
|
-
toJson(): any;
|
|
50
|
-
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
51
|
-
}
|
|
52
|
-
export declare class BeeCollectionModel {
|
|
53
|
-
id: string;
|
|
54
|
-
name: string;
|
|
55
|
-
constructor(params: TBeeCollectionModel);
|
|
56
|
-
toJson(): any;
|
|
57
|
-
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
58
|
-
}
|
|
59
|
-
export declare class BeeTagModel {
|
|
60
|
-
id: string;
|
|
61
|
-
name: string;
|
|
62
|
-
constructor(params: TBeeTagModel);
|
|
63
|
-
toJson(): any;
|
|
64
|
-
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
65
|
-
}
|
|
66
|
-
export * from "./types";
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
export interface TBeeTemplateModel {
|
|
2
|
-
id: string;
|
|
3
|
-
title: string;
|
|
4
|
-
description: string;
|
|
5
|
-
short_description: string;
|
|
6
|
-
template_type: string;
|
|
7
|
-
categories: string[];
|
|
8
|
-
collections: string;
|
|
9
|
-
designer: string;
|
|
10
|
-
tags: string[];
|
|
11
|
-
thumbnail: string;
|
|
12
|
-
thumbnail_large: string;
|
|
13
|
-
published_at: string;
|
|
14
|
-
order: string;
|
|
15
|
-
context: string;
|
|
16
|
-
is_blank: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface TBeeTemplateDesignerDetailModel {
|
|
19
|
-
id: string;
|
|
20
|
-
display_name: string;
|
|
21
|
-
avatar_url: string;
|
|
22
|
-
description: string;
|
|
23
|
-
short_description: string;
|
|
24
|
-
}
|
|
25
|
-
export interface TBeeTemplateDetailModel {
|
|
26
|
-
id: string;
|
|
27
|
-
title: string;
|
|
28
|
-
description: string;
|
|
29
|
-
short_description: string;
|
|
30
|
-
template_type: string;
|
|
31
|
-
categories: string[];
|
|
32
|
-
collections: string;
|
|
33
|
-
designer: TBeeTemplateDesignerDetailModel;
|
|
34
|
-
tags: string[];
|
|
35
|
-
thumbnail: string;
|
|
36
|
-
thumbnail_large: string;
|
|
37
|
-
published_at: string;
|
|
38
|
-
order: string;
|
|
39
|
-
is_blank: boolean;
|
|
40
|
-
html_url: string;
|
|
41
|
-
html_data: string;
|
|
42
|
-
json_data: Record<string, unknown> | string;
|
|
43
|
-
}
|
|
44
|
-
export interface TBeeCategoryModel {
|
|
45
|
-
id: string;
|
|
46
|
-
name: string;
|
|
47
|
-
parent: string | null;
|
|
48
|
-
}
|
|
49
|
-
export interface TBeeCollectionModel {
|
|
50
|
-
id: string;
|
|
51
|
-
name: string;
|
|
52
|
-
}
|
|
53
|
-
export interface TBeeDesignerModel {
|
|
54
|
-
id: string;
|
|
55
|
-
name: string;
|
|
56
|
-
}
|
|
57
|
-
export interface TBeeTagModel {
|
|
58
|
-
id: string;
|
|
59
|
-
name: string;
|
|
60
|
-
}
|
|
61
|
-
type TFacetWithCount<T> = T & {
|
|
62
|
-
count: number;
|
|
63
|
-
};
|
|
64
|
-
export interface TBeeCategoryFacet extends TFacetWithCount<TBeeCategoryModel> {
|
|
65
|
-
}
|
|
66
|
-
export interface TBeeCollectionFacet extends TFacetWithCount<TBeeCollectionModel> {
|
|
67
|
-
}
|
|
68
|
-
export interface TBeeDesignerFacet extends TFacetWithCount<TBeeDesignerModel> {
|
|
69
|
-
}
|
|
70
|
-
export interface TBeeTagFacet extends TFacetWithCount<Omit<TBeeTagModel, "id">> {
|
|
71
|
-
}
|
|
72
|
-
export interface TBeeTemplateListFacets {
|
|
73
|
-
categories: TBeeCategoryFacet[];
|
|
74
|
-
collections: TBeeCollectionFacet[];
|
|
75
|
-
designers: TBeeDesignerFacet[];
|
|
76
|
-
tags: TBeeTagFacet[];
|
|
77
|
-
}
|
|
78
|
-
export interface TBeeFreeListParams {
|
|
79
|
-
page?: number;
|
|
80
|
-
pagesize?: number;
|
|
81
|
-
}
|
|
82
|
-
export interface TBeeFreeList<T> {
|
|
83
|
-
count: number;
|
|
84
|
-
next: string | null;
|
|
85
|
-
previous: string | null;
|
|
86
|
-
results: T[];
|
|
87
|
-
facets?: TBeeTemplateListFacets;
|
|
88
|
-
}
|
|
89
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TBeeCategoryModel, TBeeCollectionModel, TBeeFreeList, TBeeTagModel, TBeeTemplateDetailModel, TBeeTemplateModel } from "../../models";
|
|
2
|
-
import { TPageSizeParam, TTemplateListParams } from "./types";
|
|
3
|
-
export declare function listCatalogTemplates(params?: TTemplateListParams): Promise<TBeeFreeList<TBeeTemplateModel>>;
|
|
4
|
-
export declare function getCatalogTemplate({ slug }: {
|
|
5
|
-
slug: string;
|
|
6
|
-
}): Promise<TBeeTemplateDetailModel>;
|
|
7
|
-
export declare function listCatalogCategories(params?: TPageSizeParam): Promise<TBeeFreeList<TBeeCategoryModel>>;
|
|
8
|
-
export declare function getCatalogCategory({ slug }: {
|
|
9
|
-
slug: string;
|
|
10
|
-
}): Promise<TBeeCategoryModel>;
|
|
11
|
-
export declare function listCatalogCollections(params?: TPageSizeParam): Promise<TBeeFreeList<TBeeCollectionModel>>;
|
|
12
|
-
export declare function getCatalogCollection({ slug }: {
|
|
13
|
-
slug: string;
|
|
14
|
-
}): Promise<TBeeCollectionModel>;
|
|
15
|
-
export declare function listCatalogTags(params?: TPageSizeParam): Promise<TBeeTagModel[]>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TBeeFreeListParams } from "../../models/contentCatalog/types";
|
|
2
|
-
export interface TTemplateListParams extends TBeeFreeListParams {
|
|
3
|
-
search?: string;
|
|
4
|
-
category?: string;
|
|
5
|
-
collection?: string;
|
|
6
|
-
designer?: string;
|
|
7
|
-
tag?: string;
|
|
8
|
-
template_type?: string;
|
|
9
|
-
published_after?: string;
|
|
10
|
-
published_before?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface TPageSizeParam extends TBeeFreeListParams {
|
|
13
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TResourceCardGrid } from "./gridTypes";
|
|
3
|
-
import "./gridStyles.scss";
|
|
4
|
-
export declare function ResourceCardGrid({ children, maxCardWidth, minCardWidth, gap, className, }: TResourceCardGrid): React.JSX.Element;
|
|
5
|
-
export default ResourceCardGrid;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
export type TResourceCardGrid = {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
maxCardWidth?: number;
|
|
5
|
-
minCardWidth?: number;
|
|
6
|
-
gap?: number;
|
|
7
|
-
className?: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function computeResourceCardGridColumns({ containerWidth, maxCardWidth, minCardWidth, gap, }: {
|
|
10
|
-
containerWidth: number;
|
|
11
|
-
maxCardWidth: number;
|
|
12
|
-
minCardWidth: number;
|
|
13
|
-
gap: number;
|
|
14
|
-
}): number;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./styles.scss";
|
|
3
|
-
import { TResourceCard } from "./types";
|
|
4
|
-
export declare function ResourceCard({ title, description, chip, support, imageUrl, primaryAction, primaryActionLabel, secondaryAction, secondaryActionLabel, additionalActions, className, }: TResourceCard): React.JSX.Element;
|
|
5
|
-
export default ResourceCard;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { TDropMenuItem } from "../dropMenu/types";
|
|
3
|
-
export type TResourceCardAdditionalAction = Omit<TDropMenuItem, "isMultiSelect" | "selected"> & {
|
|
4
|
-
renderedText?: string;
|
|
5
|
-
};
|
|
6
|
-
export type TResourceCard = {
|
|
7
|
-
title: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
chip?: ReactNode;
|
|
10
|
-
support?: ReactNode;
|
|
11
|
-
imageUrl?: string;
|
|
12
|
-
primaryAction?: () => void;
|
|
13
|
-
primaryActionLabel?: string;
|
|
14
|
-
secondaryAction?: () => void;
|
|
15
|
-
secondaryActionLabel?: string;
|
|
16
|
-
additionalActions?: TResourceCardAdditionalAction[];
|
|
17
|
-
className?: string;
|
|
18
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BeeCategoryModel, BeeCollectionModel, BeeTagModel, BeeTemplateDetailModel, BeeTemplateModel, TBeeFreeList } from "../../models";
|
|
2
|
-
import { TPageSizeParam, TTemplateListParams } from "../../services/contentCatalog/types";
|
|
3
|
-
export declare class ContentCatalogFactory {
|
|
4
|
-
static listTemplates(params?: TTemplateListParams): Promise<TBeeFreeList<BeeTemplateModel>>;
|
|
5
|
-
static getTemplate({ slug }: {
|
|
6
|
-
slug: string;
|
|
7
|
-
}): Promise<BeeTemplateDetailModel>;
|
|
8
|
-
static listCategories(params?: TPageSizeParam): Promise<TBeeFreeList<BeeCategoryModel>>;
|
|
9
|
-
static getCategory({ slug }: {
|
|
10
|
-
slug: string;
|
|
11
|
-
}): Promise<BeeCategoryModel>;
|
|
12
|
-
static listCollections(params?: TPageSizeParam): Promise<TBeeFreeList<BeeCollectionModel>>;
|
|
13
|
-
static getCollection({ slug }: {
|
|
14
|
-
slug: string;
|
|
15
|
-
}): Promise<BeeCollectionModel>;
|
|
16
|
-
static listTags(params?: TPageSizeParam): Promise<BeeTagModel[]>;
|
|
17
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { TBeeCategoryModel, TBeeCollectionModel, TBeeTagModel, TBeeTemplateDetailModel, TBeeTemplateModel } from "./types";
|
|
2
|
-
export declare class BeeTemplateModel {
|
|
3
|
-
id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
description: string;
|
|
6
|
-
short_description: string;
|
|
7
|
-
template_type: string;
|
|
8
|
-
categories: string[];
|
|
9
|
-
collections: string;
|
|
10
|
-
designer: string;
|
|
11
|
-
tags: string[];
|
|
12
|
-
thumbnail: string;
|
|
13
|
-
thumbnail_large: string;
|
|
14
|
-
published_at: string;
|
|
15
|
-
order: string;
|
|
16
|
-
context: string;
|
|
17
|
-
is_blank: boolean;
|
|
18
|
-
constructor(params: TBeeTemplateModel);
|
|
19
|
-
toJson(): any;
|
|
20
|
-
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
21
|
-
}
|
|
22
|
-
export declare class BeeTemplateDetailModel {
|
|
23
|
-
id: string;
|
|
24
|
-
title: string;
|
|
25
|
-
description: string;
|
|
26
|
-
short_description: string;
|
|
27
|
-
template_type: string;
|
|
28
|
-
categories: string[];
|
|
29
|
-
collections: string;
|
|
30
|
-
designer: TBeeTemplateDetailModel["designer"];
|
|
31
|
-
tags: string[];
|
|
32
|
-
thumbnail: string;
|
|
33
|
-
thumbnail_large: string;
|
|
34
|
-
published_at: string;
|
|
35
|
-
order: string;
|
|
36
|
-
is_blank: boolean;
|
|
37
|
-
html_url: string;
|
|
38
|
-
html_data: string;
|
|
39
|
-
json_data: Record<string, unknown> | string;
|
|
40
|
-
constructor(params: TBeeTemplateDetailModel);
|
|
41
|
-
toJson(): any;
|
|
42
|
-
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
43
|
-
}
|
|
44
|
-
export declare class BeeCategoryModel {
|
|
45
|
-
id: string;
|
|
46
|
-
name: string;
|
|
47
|
-
parent: string | null;
|
|
48
|
-
constructor(params: TBeeCategoryModel);
|
|
49
|
-
toJson(): any;
|
|
50
|
-
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
51
|
-
}
|
|
52
|
-
export declare class BeeCollectionModel {
|
|
53
|
-
id: string;
|
|
54
|
-
name: string;
|
|
55
|
-
constructor(params: TBeeCollectionModel);
|
|
56
|
-
toJson(): any;
|
|
57
|
-
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
58
|
-
}
|
|
59
|
-
export declare class BeeTagModel {
|
|
60
|
-
id: string;
|
|
61
|
-
name: string;
|
|
62
|
-
constructor(params: TBeeTagModel);
|
|
63
|
-
toJson(): any;
|
|
64
|
-
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
65
|
-
}
|
|
66
|
-
export * from "./types";
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
export interface TBeeTemplateModel {
|
|
2
|
-
id: string;
|
|
3
|
-
title: string;
|
|
4
|
-
description: string;
|
|
5
|
-
short_description: string;
|
|
6
|
-
template_type: string;
|
|
7
|
-
categories: string[];
|
|
8
|
-
collections: string;
|
|
9
|
-
designer: string;
|
|
10
|
-
tags: string[];
|
|
11
|
-
thumbnail: string;
|
|
12
|
-
thumbnail_large: string;
|
|
13
|
-
published_at: string;
|
|
14
|
-
order: string;
|
|
15
|
-
context: string;
|
|
16
|
-
is_blank: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface TBeeTemplateDesignerDetailModel {
|
|
19
|
-
id: string;
|
|
20
|
-
display_name: string;
|
|
21
|
-
avatar_url: string;
|
|
22
|
-
description: string;
|
|
23
|
-
short_description: string;
|
|
24
|
-
}
|
|
25
|
-
export interface TBeeTemplateDetailModel {
|
|
26
|
-
id: string;
|
|
27
|
-
title: string;
|
|
28
|
-
description: string;
|
|
29
|
-
short_description: string;
|
|
30
|
-
template_type: string;
|
|
31
|
-
categories: string[];
|
|
32
|
-
collections: string;
|
|
33
|
-
designer: TBeeTemplateDesignerDetailModel;
|
|
34
|
-
tags: string[];
|
|
35
|
-
thumbnail: string;
|
|
36
|
-
thumbnail_large: string;
|
|
37
|
-
published_at: string;
|
|
38
|
-
order: string;
|
|
39
|
-
is_blank: boolean;
|
|
40
|
-
html_url: string;
|
|
41
|
-
html_data: string;
|
|
42
|
-
json_data: Record<string, unknown> | string;
|
|
43
|
-
}
|
|
44
|
-
export interface TBeeCategoryModel {
|
|
45
|
-
id: string;
|
|
46
|
-
name: string;
|
|
47
|
-
parent: string | null;
|
|
48
|
-
}
|
|
49
|
-
export interface TBeeCollectionModel {
|
|
50
|
-
id: string;
|
|
51
|
-
name: string;
|
|
52
|
-
}
|
|
53
|
-
export interface TBeeDesignerModel {
|
|
54
|
-
id: string;
|
|
55
|
-
name: string;
|
|
56
|
-
}
|
|
57
|
-
export interface TBeeTagModel {
|
|
58
|
-
id: string;
|
|
59
|
-
name: string;
|
|
60
|
-
}
|
|
61
|
-
type TFacetWithCount<T> = T & {
|
|
62
|
-
count: number;
|
|
63
|
-
};
|
|
64
|
-
export interface TBeeCategoryFacet extends TFacetWithCount<TBeeCategoryModel> {
|
|
65
|
-
}
|
|
66
|
-
export interface TBeeCollectionFacet extends TFacetWithCount<TBeeCollectionModel> {
|
|
67
|
-
}
|
|
68
|
-
export interface TBeeDesignerFacet extends TFacetWithCount<TBeeDesignerModel> {
|
|
69
|
-
}
|
|
70
|
-
export interface TBeeTagFacet extends TFacetWithCount<Omit<TBeeTagModel, "id">> {
|
|
71
|
-
}
|
|
72
|
-
export interface TBeeTemplateListFacets {
|
|
73
|
-
categories: TBeeCategoryFacet[];
|
|
74
|
-
collections: TBeeCollectionFacet[];
|
|
75
|
-
designers: TBeeDesignerFacet[];
|
|
76
|
-
tags: TBeeTagFacet[];
|
|
77
|
-
}
|
|
78
|
-
export interface TBeeFreeListParams {
|
|
79
|
-
page?: number;
|
|
80
|
-
pagesize?: number;
|
|
81
|
-
}
|
|
82
|
-
export interface TBeeFreeList<T> {
|
|
83
|
-
count: number;
|
|
84
|
-
next: string | null;
|
|
85
|
-
previous: string | null;
|
|
86
|
-
results: T[];
|
|
87
|
-
facets?: TBeeTemplateListFacets;
|
|
88
|
-
}
|
|
89
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TBeeCategoryModel, TBeeCollectionModel, TBeeFreeList, TBeeTagModel, TBeeTemplateDetailModel, TBeeTemplateModel } from "../../models";
|
|
2
|
-
import { TPageSizeParam, TTemplateListParams } from "./types";
|
|
3
|
-
export declare function listCatalogTemplates(params?: TTemplateListParams): Promise<TBeeFreeList<TBeeTemplateModel>>;
|
|
4
|
-
export declare function getCatalogTemplate({ slug }: {
|
|
5
|
-
slug: string;
|
|
6
|
-
}): Promise<TBeeTemplateDetailModel>;
|
|
7
|
-
export declare function listCatalogCategories(params?: TPageSizeParam): Promise<TBeeFreeList<TBeeCategoryModel>>;
|
|
8
|
-
export declare function getCatalogCategory({ slug }: {
|
|
9
|
-
slug: string;
|
|
10
|
-
}): Promise<TBeeCategoryModel>;
|
|
11
|
-
export declare function listCatalogCollections(params?: TPageSizeParam): Promise<TBeeFreeList<TBeeCollectionModel>>;
|
|
12
|
-
export declare function getCatalogCollection({ slug }: {
|
|
13
|
-
slug: string;
|
|
14
|
-
}): Promise<TBeeCollectionModel>;
|
|
15
|
-
export declare function listCatalogTags(params?: TPageSizeParam): Promise<TBeeTagModel[]>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TBeeFreeListParams } from "../../models/contentCatalog/types";
|
|
2
|
-
export interface TTemplateListParams extends TBeeFreeListParams {
|
|
3
|
-
search?: string;
|
|
4
|
-
category?: string;
|
|
5
|
-
collection?: string;
|
|
6
|
-
designer?: string;
|
|
7
|
-
tag?: string;
|
|
8
|
-
template_type?: string;
|
|
9
|
-
published_after?: string;
|
|
10
|
-
published_before?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface TPageSizeParam extends TBeeFreeListParams {
|
|
13
|
-
}
|