@empathyco/x-components 6.0.0-alpha.5 → 6.0.0-alpha.6

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.
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-adapter-platform](./x-adapter-platform.md) &gt; [PlatformAdapter](./x-adapter-platform.platformadapter.md) &gt; [relatedPrompts](./x-adapter-platform.platformadapter.relatedprompts.md)
4
+
5
+ ## PlatformAdapter.relatedPrompts property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ relatedPrompts: any;
11
+ ```
@@ -69,6 +69,9 @@ Entry point to export search-type models and testing schemas in a unified api-ex
69
69
  | [RecommendationsRequest](./x-types.recommendationsrequest.md) | Request for Recommendations endpoint. |
70
70
  | [RecommendationsResponse](./x-types.recommendationsresponse.md) | Response for the recommendations endpoint. |
71
71
  | [Redirection](./x-types.redirection.md) | A redirection (AKA Direct Link) is simply a URL. Normally, the user is just redirected to it after making a query that matches the configuration of this URL. In other cases it is shown as a button that the user can click, and which will trigger the redirect action. |
72
+ | [RelatedPrompt](./x-types.relatedprompt.md) | Represents a related prompt. |
73
+ | [RelatedPromptsRequest](./x-types.relatedpromptsrequest.md) | Request for Related Prompts endpoint. |
74
+ | [RelatedPromptsResponse](./x-types.relatedpromptsresponse.md) | Response for the related prompts endpoint. |
72
75
  | [RelatedTag](./x-types.relatedtag.md) | A related tag is just a term that refines the current query. |
73
76
  | [RelatedTagsRequest](./x-types.relatedtagsrequest.md) | Request for Related Tags endpoint. |
74
77
  | [RelatedTagsResponse](./x-types.relatedtagsresponse.md) | Response for the related tags endpoint. |
@@ -0,0 +1,23 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-types](./x-types.md) &gt; [RelatedPrompt](./x-types.relatedprompt.md)
4
+
5
+ ## RelatedPrompt interface
6
+
7
+ Represents a related prompt.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export interface RelatedPrompt extends NamedModel<'RelatedPrompt'>
13
+ ```
14
+ **Extends:** [NamedModel](./x-types.namedmodel.md)<!-- -->&lt;'RelatedPrompt'&gt;
15
+
16
+ ## Properties
17
+
18
+ | Property | Modifiers | Type | Description |
19
+ | --- | --- | --- | --- |
20
+ | [nextQueries](./x-types.relatedprompt.nextqueries.md) | | string\[\] | The next queries related to the prompt. |
21
+ | [suggestionText](./x-types.relatedprompt.suggestiontext.md) | | string | The prompt. |
22
+ | [type](./x-types.relatedprompt.type.md) | | string | The type of the prompt. |
23
+
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-types](./x-types.md) &gt; [RelatedPrompt](./x-types.relatedprompt.md) &gt; [nextQueries](./x-types.relatedprompt.nextqueries.md)
4
+
5
+ ## RelatedPrompt.nextQueries property
6
+
7
+ The next queries related to the prompt.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ nextQueries: string[];
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-types](./x-types.md) &gt; [RelatedPrompt](./x-types.relatedprompt.md) &gt; [suggestionText](./x-types.relatedprompt.suggestiontext.md)
4
+
5
+ ## RelatedPrompt.suggestionText property
6
+
7
+ The prompt.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ suggestionText: string;
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-types](./x-types.md) &gt; [RelatedPrompt](./x-types.relatedprompt.md) &gt; [type](./x-types.relatedprompt.type.md)
4
+
5
+ ## RelatedPrompt.type property
6
+
7
+ The type of the prompt.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ type: string;
13
+ ```
@@ -0,0 +1,15 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-types](./x-types.md) &gt; [RelatedPromptsRequest](./x-types.relatedpromptsrequest.md)
4
+
5
+ ## RelatedPromptsRequest interface
6
+
7
+ Request for Related Prompts endpoint.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export interface RelatedPromptsRequest extends QueryableRequest, ExtraParamsRequest
13
+ ```
14
+ **Extends:** [QueryableRequest](./x-types.queryablerequest.md)<!-- -->, [ExtraParamsRequest](./x-types.extraparamsrequest.md)
15
+
@@ -0,0 +1,20 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-types](./x-types.md) &gt; [RelatedPromptsResponse](./x-types.relatedpromptsresponse.md)
4
+
5
+ ## RelatedPromptsResponse interface
6
+
7
+ Response for the related prompts endpoint.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export interface RelatedPromptsResponse
13
+ ```
14
+
15
+ ## Properties
16
+
17
+ | Property | Modifiers | Type | Description |
18
+ | --- | --- | --- | --- |
19
+ | [relatedPrompts](./x-types.relatedpromptsresponse.relatedprompts.md) | | [RelatedPrompt](./x-types.relatedprompt.md)<!-- -->\[\] | |
20
+
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-types](./x-types.md) &gt; [RelatedPromptsResponse](./x-types.relatedpromptsresponse.md) &gt; [relatedPrompts](./x-types.relatedpromptsresponse.relatedprompts.md)
4
+
5
+ ## RelatedPromptsResponse.relatedPrompts property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ relatedPrompts: RelatedPrompt[];
11
+ ```
@@ -20,6 +20,7 @@ export interface XComponentsAdapter
20
20
  | [popularSearches](./x-types.xcomponentsadapter.popularsearches.md) | | EndpointAdapter&lt;[PopularSearchesRequest](./x-types.popularsearchesrequest.md)<!-- -->, [PopularSearchesResponse](./x-types.popularsearchesresponse.md)<!-- -->&gt; | |
21
21
  | [querySuggestions](./x-types.xcomponentsadapter.querysuggestions.md) | | EndpointAdapter&lt;[QuerySuggestionsRequest](./x-types.querysuggestionsrequest.md)<!-- -->, [QuerySuggestionsResponse](./x-types.querysuggestionsresponse.md)<!-- -->&gt; | |
22
22
  | [recommendations](./x-types.xcomponentsadapter.recommendations.md) | | EndpointAdapter&lt;[RecommendationsRequest](./x-types.recommendationsrequest.md)<!-- -->, [RecommendationsResponse](./x-types.recommendationsresponse.md)<!-- -->&gt; | |
23
+ | [relatedPrompts](./x-types.xcomponentsadapter.relatedprompts.md) | | EndpointAdapter&lt;[RelatedPromptsRequest](./x-types.relatedpromptsrequest.md)<!-- -->, [RelatedPromptsResponse](./x-types.relatedpromptsresponse.md)<!-- -->&gt; | |
23
24
  | [relatedTags](./x-types.xcomponentsadapter.relatedtags.md) | | EndpointAdapter&lt;[RelatedTagsRequest](./x-types.relatedtagsrequest.md)<!-- -->, [RelatedTagsResponse](./x-types.relatedtagsresponse.md)<!-- -->&gt; | |
24
25
  | [search](./x-types.xcomponentsadapter.search.md) | | EndpointAdapter&lt;[SearchRequest](./x-types.searchrequest.md)<!-- -->, [SearchResponse](./x-types.searchresponse.md)<!-- -->&gt; | |
25
26
  | [semanticQueries](./x-types.xcomponentsadapter.semanticqueries.md) | | EndpointAdapter&lt;[SemanticQueriesRequest](./x-types.semanticqueriesrequest.md)<!-- -->, [SemanticQueriesResponse](./x-types.semanticqueriesresponse.md)<!-- -->&gt; | |
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@empathyco/x-types](./x-types.md) &gt; [XComponentsAdapter](./x-types.xcomponentsadapter.md) &gt; [relatedPrompts](./x-types.xcomponentsadapter.relatedprompts.md)
4
+
5
+ ## XComponentsAdapter.relatedPrompts property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ relatedPrompts: EndpointAdapter<RelatedPromptsRequest, RelatedPromptsResponse>;
11
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empathyco/x-components",
3
- "version": "6.0.0-alpha.5",
3
+ "version": "6.0.0-alpha.6",
4
4
  "description": "Empathy X Components",
5
5
  "author": "Empathy Systems Corporation S.L.",
6
6
  "license": "Apache-2.0",
@@ -70,12 +70,12 @@
70
70
  },
71
71
  "dependencies": {
72
72
  "@empathyco/x-adapter": "^8.1.0-alpha.0",
73
- "@empathyco/x-adapter-platform": "^1.1.0-alpha.3",
73
+ "@empathyco/x-adapter-platform": "^1.1.0-alpha.4",
74
74
  "@empathyco/x-bus": "^1.0.3-alpha.1",
75
75
  "@empathyco/x-deep-merge": "^2.0.3-alpha.1",
76
76
  "@empathyco/x-logger": "^1.2.0-alpha.11",
77
77
  "@empathyco/x-storage-service": "^2.0.3-alpha.0",
78
- "@empathyco/x-types": "^10.1.0-alpha.3",
78
+ "@empathyco/x-types": "^10.1.0-alpha.4",
79
79
  "@empathyco/x-utils": "^1.0.3-alpha.1",
80
80
  "@vue/devtools-api": "~6.5.0",
81
81
  "@vueuse/core": "~10.7.1",
@@ -137,5 +137,5 @@
137
137
  "access": "public",
138
138
  "directory": "dist"
139
139
  },
140
- "gitHead": "7b902304aa824dcb79eeeaea29b884d0a36a01cb"
140
+ "gitHead": "abc0d00d934bc6cd4052c2212d816321ab097742"
141
141
  }
@@ -1840,6 +1840,33 @@
1840
1840
  "endIndex": 7
1841
1841
  }
1842
1842
  },
1843
+ {
1844
+ "kind": "PropertySignature",
1845
+ "canonicalReference": "@empathyco/x-adapter-platform!PlatformAdapter#relatedPrompts:member",
1846
+ "docComment": "",
1847
+ "excerptTokens": [
1848
+ {
1849
+ "kind": "Content",
1850
+ "text": "relatedPrompts: "
1851
+ },
1852
+ {
1853
+ "kind": "Content",
1854
+ "text": "any"
1855
+ },
1856
+ {
1857
+ "kind": "Content",
1858
+ "text": ";"
1859
+ }
1860
+ ],
1861
+ "isReadonly": false,
1862
+ "isOptional": false,
1863
+ "releaseTag": "Public",
1864
+ "name": "relatedPrompts",
1865
+ "propertyTypeTokenRange": {
1866
+ "startIndex": 1,
1867
+ "endIndex": 2
1868
+ }
1869
+ },
1843
1870
  {
1844
1871
  "kind": "PropertySignature",
1845
1872
  "canonicalReference": "@empathyco/x-adapter-platform!PlatformAdapter#relatedTags:member",
@@ -4580,6 +4580,217 @@
4580
4580
  "endIndex": 2
4581
4581
  }
4582
4582
  },
4583
+ {
4584
+ "kind": "Interface",
4585
+ "canonicalReference": "@empathyco/x-types!RelatedPrompt:interface",
4586
+ "docComment": "/**\n * Represents a related prompt.\n */\n",
4587
+ "excerptTokens": [
4588
+ {
4589
+ "kind": "Content",
4590
+ "text": "export interface RelatedPrompt extends "
4591
+ },
4592
+ {
4593
+ "kind": "Reference",
4594
+ "text": "NamedModel",
4595
+ "canonicalReference": "@empathyco/x-types!NamedModel:interface"
4596
+ },
4597
+ {
4598
+ "kind": "Content",
4599
+ "text": "<'RelatedPrompt'>"
4600
+ },
4601
+ {
4602
+ "kind": "Content",
4603
+ "text": " "
4604
+ }
4605
+ ],
4606
+ "fileUrlPath": "src/query-signals/related-prompt.model.ts",
4607
+ "releaseTag": "Public",
4608
+ "name": "RelatedPrompt",
4609
+ "preserveMemberOrder": false,
4610
+ "members": [
4611
+ {
4612
+ "kind": "PropertySignature",
4613
+ "canonicalReference": "@empathyco/x-types!RelatedPrompt#nextQueries:member",
4614
+ "docComment": "/**\n * The next queries related to the prompt.\n */\n",
4615
+ "excerptTokens": [
4616
+ {
4617
+ "kind": "Content",
4618
+ "text": "nextQueries: "
4619
+ },
4620
+ {
4621
+ "kind": "Content",
4622
+ "text": "string[]"
4623
+ },
4624
+ {
4625
+ "kind": "Content",
4626
+ "text": ";"
4627
+ }
4628
+ ],
4629
+ "isReadonly": false,
4630
+ "isOptional": false,
4631
+ "releaseTag": "Public",
4632
+ "name": "nextQueries",
4633
+ "propertyTypeTokenRange": {
4634
+ "startIndex": 1,
4635
+ "endIndex": 2
4636
+ }
4637
+ },
4638
+ {
4639
+ "kind": "PropertySignature",
4640
+ "canonicalReference": "@empathyco/x-types!RelatedPrompt#suggestionText:member",
4641
+ "docComment": "/**\n * The prompt.\n */\n",
4642
+ "excerptTokens": [
4643
+ {
4644
+ "kind": "Content",
4645
+ "text": "suggestionText: "
4646
+ },
4647
+ {
4648
+ "kind": "Content",
4649
+ "text": "string"
4650
+ },
4651
+ {
4652
+ "kind": "Content",
4653
+ "text": ";"
4654
+ }
4655
+ ],
4656
+ "isReadonly": false,
4657
+ "isOptional": false,
4658
+ "releaseTag": "Public",
4659
+ "name": "suggestionText",
4660
+ "propertyTypeTokenRange": {
4661
+ "startIndex": 1,
4662
+ "endIndex": 2
4663
+ }
4664
+ },
4665
+ {
4666
+ "kind": "PropertySignature",
4667
+ "canonicalReference": "@empathyco/x-types!RelatedPrompt#type:member",
4668
+ "docComment": "/**\n * The type of the prompt.\n */\n",
4669
+ "excerptTokens": [
4670
+ {
4671
+ "kind": "Content",
4672
+ "text": "type: "
4673
+ },
4674
+ {
4675
+ "kind": "Content",
4676
+ "text": "string"
4677
+ },
4678
+ {
4679
+ "kind": "Content",
4680
+ "text": ";"
4681
+ }
4682
+ ],
4683
+ "isReadonly": false,
4684
+ "isOptional": false,
4685
+ "releaseTag": "Public",
4686
+ "name": "type",
4687
+ "propertyTypeTokenRange": {
4688
+ "startIndex": 1,
4689
+ "endIndex": 2
4690
+ }
4691
+ }
4692
+ ],
4693
+ "extendsTokenRanges": [
4694
+ {
4695
+ "startIndex": 1,
4696
+ "endIndex": 3
4697
+ }
4698
+ ]
4699
+ },
4700
+ {
4701
+ "kind": "Interface",
4702
+ "canonicalReference": "@empathyco/x-types!RelatedPromptsRequest:interface",
4703
+ "docComment": "/**\n * Request for Related Prompts endpoint.\n */\n",
4704
+ "excerptTokens": [
4705
+ {
4706
+ "kind": "Content",
4707
+ "text": "export interface RelatedPromptsRequest extends "
4708
+ },
4709
+ {
4710
+ "kind": "Reference",
4711
+ "text": "QueryableRequest",
4712
+ "canonicalReference": "@empathyco/x-types!QueryableRequest:interface"
4713
+ },
4714
+ {
4715
+ "kind": "Content",
4716
+ "text": ", "
4717
+ },
4718
+ {
4719
+ "kind": "Reference",
4720
+ "text": "ExtraParamsRequest",
4721
+ "canonicalReference": "@empathyco/x-types!ExtraParamsRequest:interface"
4722
+ },
4723
+ {
4724
+ "kind": "Content",
4725
+ "text": " "
4726
+ }
4727
+ ],
4728
+ "fileUrlPath": "src/request/related-prompts-request.model.ts",
4729
+ "releaseTag": "Public",
4730
+ "name": "RelatedPromptsRequest",
4731
+ "preserveMemberOrder": false,
4732
+ "members": [],
4733
+ "extendsTokenRanges": [
4734
+ {
4735
+ "startIndex": 1,
4736
+ "endIndex": 2
4737
+ },
4738
+ {
4739
+ "startIndex": 3,
4740
+ "endIndex": 4
4741
+ }
4742
+ ]
4743
+ },
4744
+ {
4745
+ "kind": "Interface",
4746
+ "canonicalReference": "@empathyco/x-types!RelatedPromptsResponse:interface",
4747
+ "docComment": "/**\n * Response for the related prompts endpoint.\n */\n",
4748
+ "excerptTokens": [
4749
+ {
4750
+ "kind": "Content",
4751
+ "text": "export interface RelatedPromptsResponse "
4752
+ }
4753
+ ],
4754
+ "fileUrlPath": "src/response/related-prompts-response.model.ts",
4755
+ "releaseTag": "Public",
4756
+ "name": "RelatedPromptsResponse",
4757
+ "preserveMemberOrder": false,
4758
+ "members": [
4759
+ {
4760
+ "kind": "PropertySignature",
4761
+ "canonicalReference": "@empathyco/x-types!RelatedPromptsResponse#relatedPrompts:member",
4762
+ "docComment": "",
4763
+ "excerptTokens": [
4764
+ {
4765
+ "kind": "Content",
4766
+ "text": "relatedPrompts: "
4767
+ },
4768
+ {
4769
+ "kind": "Reference",
4770
+ "text": "RelatedPrompt",
4771
+ "canonicalReference": "@empathyco/x-types!RelatedPrompt:interface"
4772
+ },
4773
+ {
4774
+ "kind": "Content",
4775
+ "text": "[]"
4776
+ },
4777
+ {
4778
+ "kind": "Content",
4779
+ "text": ";"
4780
+ }
4781
+ ],
4782
+ "isReadonly": false,
4783
+ "isOptional": false,
4784
+ "releaseTag": "Public",
4785
+ "name": "relatedPrompts",
4786
+ "propertyTypeTokenRange": {
4787
+ "startIndex": 1,
4788
+ "endIndex": 3
4789
+ }
4790
+ }
4791
+ ],
4792
+ "extendsTokenRanges": []
4793
+ },
4583
4794
  {
4584
4795
  "kind": "Interface",
4585
4796
  "canonicalReference": "@empathyco/x-types!RelatedTag:interface",
@@ -7339,6 +7550,56 @@
7339
7550
  "endIndex": 7
7340
7551
  }
7341
7552
  },
7553
+ {
7554
+ "kind": "PropertySignature",
7555
+ "canonicalReference": "@empathyco/x-types!XComponentsAdapter#relatedPrompts:member",
7556
+ "docComment": "",
7557
+ "excerptTokens": [
7558
+ {
7559
+ "kind": "Content",
7560
+ "text": "relatedPrompts: "
7561
+ },
7562
+ {
7563
+ "kind": "Reference",
7564
+ "text": "EndpointAdapter",
7565
+ "canonicalReference": "@empathyco/x-adapter!EndpointAdapter:interface"
7566
+ },
7567
+ {
7568
+ "kind": "Content",
7569
+ "text": "<"
7570
+ },
7571
+ {
7572
+ "kind": "Reference",
7573
+ "text": "RelatedPromptsRequest",
7574
+ "canonicalReference": "@empathyco/x-types!RelatedPromptsRequest:interface"
7575
+ },
7576
+ {
7577
+ "kind": "Content",
7578
+ "text": ", "
7579
+ },
7580
+ {
7581
+ "kind": "Reference",
7582
+ "text": "RelatedPromptsResponse",
7583
+ "canonicalReference": "@empathyco/x-types!RelatedPromptsResponse:interface"
7584
+ },
7585
+ {
7586
+ "kind": "Content",
7587
+ "text": ">"
7588
+ },
7589
+ {
7590
+ "kind": "Content",
7591
+ "text": ";"
7592
+ }
7593
+ ],
7594
+ "isReadonly": false,
7595
+ "isOptional": false,
7596
+ "releaseTag": "Public",
7597
+ "name": "relatedPrompts",
7598
+ "propertyTypeTokenRange": {
7599
+ "startIndex": 1,
7600
+ "endIndex": 7
7601
+ }
7602
+ },
7342
7603
  {
7343
7604
  "kind": "PropertySignature",
7344
7605
  "canonicalReference": "@empathyco/x-types!XComponentsAdapter#relatedTags:member",
@@ -1 +1 @@
1
- {"version":3,"file":"e2e-adapter.d.ts","sourceRoot":"","sources":["../../../src/adapter/e2e-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,eAAe,EAA0B,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAG3F;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,EAAE,UAMnC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,QAAQ,EACnD,IAAI,EAAE,MAAM,GACX,eAAe,CAAC,OAAO,EAAE,QAAQ,CAAC,CASpC;AAED,eAAO,MAAM,UAAU,EAAE,kBAmBxB,CAAC"}
1
+ {"version":3,"file":"e2e-adapter.d.ts","sourceRoot":"","sources":["../../../src/adapter/e2e-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,eAAe,EAA0B,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAG3F;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,EAAE,UAMnC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,QAAQ,EACnD,IAAI,EAAE,MAAM,GACX,eAAe,CAAC,OAAO,EAAE,QAAQ,CAAC,CASpC;AAED,eAAO,MAAM,UAAU,EAAE,kBAoBxB,CAAC"}