@platecms/delta-client 1.4.2 → 1.5.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platecms/delta-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Utilities and functions to interact with the Delta CMS.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"publishConfig": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"src/**/*"
|
|
19
19
|
],
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@platecms/delta-cast": "1.
|
|
21
|
+
"@platecms/delta-cast": "1.5.0",
|
|
22
22
|
"@graphql-typed-document-node/core": "3.2.0",
|
|
23
23
|
"graphql": "16.11.0",
|
|
24
24
|
"tslib": "2.8.1",
|
|
@@ -278,6 +278,12 @@ export type CasRegexSuggestion = {
|
|
|
278
278
|
startIndex: Scalars['Int']['output'];
|
|
279
279
|
};
|
|
280
280
|
|
|
281
|
+
export type CasTagSuggestion = {
|
|
282
|
+
__typename?: 'CasTagSuggestion';
|
|
283
|
+
confidence: Scalars['Float']['output'];
|
|
284
|
+
tag: Tag;
|
|
285
|
+
};
|
|
286
|
+
|
|
281
287
|
export type CastSuggestion = {
|
|
282
288
|
__typename?: 'CastSuggestion';
|
|
283
289
|
endIndex: Scalars['Int']['output'];
|
|
@@ -2552,6 +2558,8 @@ export type Query = {
|
|
|
2552
2558
|
roleAssignmentsForOrganization: Array<RoleAssignment>;
|
|
2553
2559
|
/** Finds one or many Tags by PRN. Throws NotFoundException when no Tag could be found. */
|
|
2554
2560
|
tag: Array<Tag>;
|
|
2561
|
+
/** Suggest existing tags to use for a ContentItem or ContentExperience. Automatically detects frlom the PRN which of the two it is. */
|
|
2562
|
+
tagSuggestions: Array<CasTagSuggestion>;
|
|
2555
2563
|
/** Orders and paginates all Tags. */
|
|
2556
2564
|
tags: TagsConnection;
|
|
2557
2565
|
/** Finds one or many Themes by PRN. Throws NotFoundException when no Theme could be found. */
|
|
@@ -2825,6 +2833,13 @@ export type QueryTagArgs = {
|
|
|
2825
2833
|
};
|
|
2826
2834
|
|
|
2827
2835
|
|
|
2836
|
+
export type QueryTagSuggestionsArgs = {
|
|
2837
|
+
config?: InputMaybe<TagSuggestionsConfig>;
|
|
2838
|
+
inputPrnString: Scalars['PRN']['input'];
|
|
2839
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
2840
|
+
};
|
|
2841
|
+
|
|
2842
|
+
|
|
2828
2843
|
export type QueryTagsArgs = {
|
|
2829
2844
|
orderBy?: InputMaybe<OrderOptionsInput>;
|
|
2830
2845
|
paginate: PaginationOptionsInput;
|
|
@@ -3122,6 +3137,10 @@ export type SuccessResponse = {
|
|
|
3122
3137
|
status: Scalars['String']['output'];
|
|
3123
3138
|
};
|
|
3124
3139
|
|
|
3140
|
+
export enum SuggestionMethod {
|
|
3141
|
+
Count = 'COUNT'
|
|
3142
|
+
}
|
|
3143
|
+
|
|
3125
3144
|
export type Tag = {
|
|
3126
3145
|
__typename?: 'Tag';
|
|
3127
3146
|
/** The amount of direct children. */
|
|
@@ -3176,6 +3195,12 @@ export type TagEdge = {
|
|
|
3176
3195
|
node: Tag;
|
|
3177
3196
|
};
|
|
3178
3197
|
|
|
3198
|
+
export type TagSuggestionsConfig = {
|
|
3199
|
+
exclude?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
3200
|
+
suggestionMethod?: InputMaybe<SuggestionMethod>;
|
|
3201
|
+
threshold?: InputMaybe<Scalars['Float']['input']>;
|
|
3202
|
+
};
|
|
3203
|
+
|
|
3179
3204
|
export enum TagVisibility {
|
|
3180
3205
|
Private = 'PRIVATE',
|
|
3181
3206
|
Public = 'PUBLIC'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuildingBlock, ExperienceComponent } from "../../../__generated__/graphql";
|
|
1
|
+
import { BuildingBlock, ExperienceComponent, Tag } from "../../../__generated__/graphql";
|
|
2
2
|
|
|
3
3
|
export enum ConnectorEventType {
|
|
4
4
|
ROOT_EXPERIENCE_COMPONENT_SEND = "root-experience-component-send",
|
|
@@ -8,6 +8,8 @@ export enum ConnectorEventType {
|
|
|
8
8
|
|
|
9
9
|
BLUEPRINT_OVERLAY_OPEN = "blueprint-overlay-open",
|
|
10
10
|
|
|
11
|
+
CONTENT_EXPERIENCE_TAGS_SEND = "content-experience-tags-send",
|
|
12
|
+
|
|
11
13
|
EXPERIENCE_COMPONENT_EDIT = "experience-component-edit",
|
|
12
14
|
EXPERIENCE_COMPONENT_REMOVE = "experience-component-remove",
|
|
13
15
|
EXPERIENCE_COMPONENT_CREATE = "experience-component-create",
|
|
@@ -40,6 +42,8 @@ export type RootExperienceComponentSetModeEvent = ConnectorEvent<{
|
|
|
40
42
|
type?: "blueprint" | "experience";
|
|
41
43
|
}>;
|
|
42
44
|
|
|
45
|
+
export type ContentExperienceTagsSendEvent = ConnectorEvent<Tag[]>;
|
|
46
|
+
|
|
43
47
|
export type ExperienceComponentCreateEvent = ConnectorEvent<{ index: number }>;
|
|
44
48
|
export type ExperienceComponentEditEvent = ConnectorEvent<{
|
|
45
49
|
prn?: string;
|
|
@@ -70,6 +74,7 @@ export type SnapshotGenerateEvent = ConnectorEvent<null>;
|
|
|
70
74
|
export type SnapshotGeneratedEvent = ConnectorEvent<string>;
|
|
71
75
|
|
|
72
76
|
export type ConnectorEventOption =
|
|
77
|
+
| ContentExperienceTagsSendEvent
|
|
73
78
|
| DragEndEvent
|
|
74
79
|
| DragStartEvent
|
|
75
80
|
| ExperienceComponentCreateEvent
|