@empathyco/x-adapter 7.0.0-alpha.1 → 7.0.0-alpha.5
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/empathy/mappers/request/params/empathy-request-related-tags-query.mapper.js +7 -1
- package/dist/cjs/empathy/mappers/request/params/empathy-request-related-tags-query.mapper.js.map +1 -1
- package/dist/cjs/empathy/mappers/response/empathy-redirection.mapper.js +1 -1
- package/dist/cjs/empathy/mappers/response/empathy-redirection.mapper.js.map +1 -1
- package/dist/cjs/empathy/models/entities/empathy-direct.model.js.map +1 -1
- package/dist/cjs/types/requests.types.js.map +1 -1
- package/dist/esm/empathy/mappers/request/params/empathy-request-related-tags-query.mapper.js +7 -1
- package/dist/esm/empathy/mappers/request/params/empathy-request-related-tags-query.mapper.js.map +1 -1
- package/dist/esm/empathy/mappers/response/empathy-redirection.mapper.js +1 -1
- package/dist/esm/empathy/mappers/response/empathy-redirection.mapper.js.map +1 -1
- package/dist/esm/empathy/models/entities/empathy-direct.model.js.map +1 -1
- package/dist/esm/types/requests.types.js.map +1 -1
- package/package.json +7 -7
- package/report/tsdoc-metadata.json +1 -1
- package/report/x-adapter.api.json +201 -81
- package/report/x-adapter.api.md +17 -15
- package/types/empathy/models/entities/empathy-direct.model.d.ts +0 -1
- package/types/types/requests.types.d.ts +19 -12
- package/CHANGELOG.md +0 -249
package/dist/cjs/empathy/mappers/request/params/empathy-request-related-tags-query.mapper.js
CHANGED
|
@@ -13,7 +13,13 @@ var EmpathyRequestRelatedTagsQueryMapper = /** @class */ (function () {
|
|
|
13
13
|
}
|
|
14
14
|
EmpathyRequestRelatedTagsQueryMapper.prototype.map = function (_a, query) {
|
|
15
15
|
var _b = _a.relatedTags, relatedTags = _b === void 0 ? [] : _b;
|
|
16
|
-
return relatedTags.reduce(function (
|
|
16
|
+
return relatedTags.reduce(function (partialQuery, _a) {
|
|
17
|
+
var tag = _a.tag, relatedTagQuery = _a.query;
|
|
18
|
+
return relatedTagQuery.startsWith(tag)
|
|
19
|
+
? tag + " " + partialQuery
|
|
20
|
+
: partialQuery + " " + tag;
|
|
21
|
+
}, query)
|
|
22
|
+
.trim();
|
|
17
23
|
};
|
|
18
24
|
EmpathyRequestRelatedTagsQueryMapper = tslib_1.__decorate([
|
|
19
25
|
inversify_1.injectable()
|
package/dist/cjs/empathy/mappers/request/params/empathy-request-related-tags-query.mapper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empathy-request-related-tags-query.mapper.js","sourceRoot":"","sources":["../../../../../../src/empathy/mappers/request/params/empathy-request-related-tags-query.mapper.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AAIvC;;;;GAIG;AAEH;IAAA;
|
|
1
|
+
{"version":3,"file":"empathy-request-related-tags-query.mapper.js","sourceRoot":"","sources":["../../../../../../src/empathy/mappers/request/params/empathy-request-related-tags-query.mapper.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AAIvC;;;;GAIG;AAEH;IAAA;IAYA,CAAC;IAVC,kDAAG,GAAH,UAAI,EAAsC,EAAE,KAAa;YAAnD,mBAAgB,EAAhB,WAAW,mBAAG,EAAE,KAAA;QACpB,OAAO,WAAW,CAAC,MAAM,CACvB,UAAC,YAAY,EAAE,EAA+B;gBAA7B,GAAG,SAAA,EAAS,eAAe,WAAA;YAC1C,OAAA,eAAe,CAAC,UAAU,CAAC,GAAG,CAAC;gBAC7B,CAAC,CAAI,GAAG,SAAI,YAAc;gBAC1B,CAAC,CAAI,YAAY,SAAI,GAAK;QAF5B,CAE4B,EAC9B,KAAK,CACN;aACA,IAAI,EAAE,CAAC;IACV,CAAC;IAXU,oCAAoC;QADhD,sBAAU,EAAE;OACA,oCAAoC,CAYhD;IAAD,2CAAC;CAAA,AAZD,IAYC;AAZY,oFAAoC","sourcesContent":["import { injectable } from 'inversify';\nimport { QueryableRequest } from '../../../../types';\nimport { RequestMapper } from '../../../empathy-adapter.types';\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\n@injectable()\nexport class EmpathyRequestRelatedTagsQueryMapper implements RequestMapper<QueryableRequest, string>\n{\n map({ relatedTags = [] }: QueryableRequest, query: string): string {\n return relatedTags.reduce(\n (partialQuery, { tag, query: relatedTagQuery }) =>\n relatedTagQuery.startsWith(tag)\n ? `${tag} ${partialQuery}`\n : `${partialQuery} ${tag}`,\n query\n )\n .trim();\n }\n}\n"]}
|
|
@@ -16,8 +16,8 @@ var EmpathyRedirectionMapper = /** @class */ (function () {
|
|
|
16
16
|
}
|
|
17
17
|
EmpathyRedirectionMapper.prototype.map = function (rawDirect, redirection, context) {
|
|
18
18
|
return Object.assign(redirection, {
|
|
19
|
+
modelName: 'Redirection',
|
|
19
20
|
id: rawDirect.id,
|
|
20
|
-
title: rawDirect.title,
|
|
21
21
|
url: rawDirect.url,
|
|
22
22
|
tagging: {
|
|
23
23
|
click: this.mapTagging(rawDirect.trackable_url, {}, context)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empathy-redirection.mapper.js","sourceRoot":"","sources":["../../../../../src/empathy/mappers/response/empathy-redirection.mapper.ts"],"names":[],"mappings":";;;;AACA,uCAAoD;AACpD,mEAA+D;AAG/D,gDAA8C;AAE9C;;;;GAIG;AAEH;IAGE,kCAC0D,cAAiD;QAEzG,IAAI,CAAC,UAAU,GAAG,0BAAW,eAAI,cAAc,CAAC,CAAC;IACnD,CAAC;IAED,sCAAG,GAAH,UAAI,SAAwB,EAAE,WAAwB,EAAE,OAA8B;QACpF,OAAO,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"empathy-redirection.mapper.js","sourceRoot":"","sources":["../../../../../src/empathy/mappers/response/empathy-redirection.mapper.ts"],"names":[],"mappings":";;;;AACA,uCAAoD;AACpD,mEAA+D;AAG/D,gDAA8C;AAE9C;;;;GAIG;AAEH;IAGE,kCAC0D,cAAiD;QAEzG,IAAI,CAAC,UAAU,GAAG,0BAAW,eAAI,cAAc,CAAC,CAAC;IACnD,CAAC;IAED,sCAAG,GAAH,UAAI,SAAwB,EAAE,WAAwB,EAAE,OAA8B;QACpF,OAAO,MAAM,CAAC,MAAM,CAAoC,WAAW,EAAE;YACnE,SAAS,EAAE,aAAa;YACxB,EAAE,EAAE,SAAS,CAAC,EAAE;YAChB,GAAG,EAAE,SAAS,CAAC,GAAG;YAClB,OAAO,EAAE;gBACP,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,aAAa,EAAE,EAAa,EAAE,OAAO,CAAC;aACxE;SACF,CAAC,CAAC;IACL,CAAC;IAlBU,wBAAwB;QADpC,sBAAU,EAAE;QAKR,mBAAA,uBAAW,CAAC,8BAAY,CAAC,eAAe,CAAC,YAAY,CAAC,CAAA;;OAJ9C,wBAAwB,CAmBpC;IAAD,+BAAC;CAAA,AAnBD,IAmBC;AAnBY,4DAAwB","sourcesContent":["import { Redirection, Tagging } from '@empathyco/x-types';\nimport { injectable, multiInject } from 'inversify';\nimport { DEPENDENCIES } from '../../container/container.const';\nimport { MapFn, ResponseMapper, ResponseMapperContext } from '../../empathy-adapter.types';\nimport { EmpathyDirect } from '../../models/entities/empathy-direct.model';\nimport { pipeMappers } from '../pipe-mappers';\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\n@injectable()\nexport class EmpathyRedirectionMapper implements ResponseMapper<EmpathyDirect, Redirection> {\n private readonly mapTagging: MapFn<string, Tagging>;\n\n constructor(\n @multiInject(DEPENDENCIES.ResponseMappers.queryTagging) taggingMappers: ResponseMapper<string, Tagging>[]\n ) {\n this.mapTagging = pipeMappers(...taggingMappers);\n }\n\n map(rawDirect: EmpathyDirect, redirection: Redirection, context: ResponseMapperContext): Redirection {\n return Object.assign<Redirection, Partial<Redirection>>(redirection, {\n modelName: 'Redirection',\n id: rawDirect.id,\n url: rawDirect.url,\n tagging: {\n click: this.mapTagging(rawDirect.trackable_url, {} as Tagging, context)\n }\n });\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empathy-direct.model.js","sourceRoot":"","sources":["../../../../../src/empathy/models/entities/empathy-direct.model.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface EmpathyDirect {\n id: string;\n
|
|
1
|
+
{"version":3,"file":"empathy-direct.model.js","sourceRoot":"","sources":["../../../../../src/empathy/models/entities/empathy-direct.model.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface EmpathyDirect {\n id: string;\n trackable_url: string;\n url: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.types.js","sourceRoot":"","sources":["../../../src/types/requests.types.ts"],"names":[],"mappings":"","sourcesContent":["import { Filter, RelatedTag, Sort } from '@empathyco/x-types';\nimport { Dictionary } from './utils.types';\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface QueryableRequest {\n query: string;\n relatedTags?: RelatedTag[];\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface FilterableRequest {\n filters?: Dictionary<Filter[]>;\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface PageableRequest {\n rows?: number;\n start?: number;\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface TrackableRequest {\n origin
|
|
1
|
+
{"version":3,"file":"requests.types.js","sourceRoot":"","sources":["../../../src/types/requests.types.ts"],"names":[],"mappings":"","sourcesContent":["import { Filter, RelatedTag, Sort } from '@empathyco/x-types';\nimport { Dictionary } from './utils.types';\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface QueryableRequest {\n query: string;\n relatedTags?: RelatedTag[];\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface FilterableRequest {\n filters?: Dictionary<Filter[]>;\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface PageableRequest {\n rows?: number;\n start?: number;\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface TrackableRequest {\n origin?: string;\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface UserContextRequest {\n user: string;\n session: string;\n userType: string;\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface RequestOptions {\n requestId?: string;\n headers?: Dictionary<string>;\n ttlInMinutes?: number;\n [key: string]: any;\n}\n\n/**\n * Interface to support extra params\n *\n * @public\n */\nexport interface ExtraParamsRequest {\n [key: string]: unknown\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface SearchRequest extends QueryableRequest, FilterableRequest, PageableRequest, TrackableRequest, ExtraParamsRequest {\n sort?: Sort;\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface TopRecommendationsRequest extends Partial<QueryableRequest>, PageableRequest, TrackableRequest, ExtraParamsRequest {}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface SectionRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest, ExtraParamsRequest {\n section: string;\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface QueriesRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest, ExtraParamsRequest {\n section?: string;\n queries: string[];\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface ClicksRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest, ExtraParamsRequest {\n section?: string;\n productIds: string[];\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface UserRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest, ExtraParamsRequest {\n section?: string;\n}\n\n/**\n * Request parameters for the searchById(result identifier) endpoint.\n *\n * @public\n */\nexport interface SearchByIdRequest extends QueryableRequest, PageableRequest, TrackableRequest, ExtraParamsRequest {}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface SuggestionsRequest extends Partial<QueryableRequest>, PageableRequest, ExtraParamsRequest {}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface RelatedTagsRequest extends QueryableRequest, ExtraParamsRequest {}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface NextQueriesRequest extends QueryableRequest, ExtraParamsRequest {}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface TrackingRequest {\n params: Dictionary<any>;\n url: string;\n}\n"]}
|
package/dist/esm/empathy/mappers/request/params/empathy-request-related-tags-query.mapper.js
CHANGED
|
@@ -10,7 +10,13 @@ var EmpathyRequestRelatedTagsQueryMapper = /** @class */ (function () {
|
|
|
10
10
|
}
|
|
11
11
|
EmpathyRequestRelatedTagsQueryMapper.prototype.map = function (_a, query) {
|
|
12
12
|
var _b = _a.relatedTags, relatedTags = _b === void 0 ? [] : _b;
|
|
13
|
-
return relatedTags.reduce(function (
|
|
13
|
+
return relatedTags.reduce(function (partialQuery, _a) {
|
|
14
|
+
var tag = _a.tag, relatedTagQuery = _a.query;
|
|
15
|
+
return relatedTagQuery.startsWith(tag)
|
|
16
|
+
? tag + " " + partialQuery
|
|
17
|
+
: partialQuery + " " + tag;
|
|
18
|
+
}, query)
|
|
19
|
+
.trim();
|
|
14
20
|
};
|
|
15
21
|
EmpathyRequestRelatedTagsQueryMapper = __decorate([
|
|
16
22
|
injectable()
|
package/dist/esm/empathy/mappers/request/params/empathy-request-related-tags-query.mapper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empathy-request-related-tags-query.mapper.js","sourceRoot":"","sources":["../../../../../../src/empathy/mappers/request/params/empathy-request-related-tags-query.mapper.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAIvC;;;;GAIG;AAEH;IAAA;
|
|
1
|
+
{"version":3,"file":"empathy-request-related-tags-query.mapper.js","sourceRoot":"","sources":["../../../../../../src/empathy/mappers/request/params/empathy-request-related-tags-query.mapper.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAIvC;;;;GAIG;AAEH;IAAA;IAYA,CAAC;IAVC,kDAAG,GAAH,UAAI,EAAsC,EAAE,KAAa;YAAnD,mBAAgB,EAAhB,WAAW,mBAAG,EAAE,KAAA;QACpB,OAAO,WAAW,CAAC,MAAM,CACvB,UAAC,YAAY,EAAE,EAA+B;gBAA7B,GAAG,SAAA,EAAS,eAAe,WAAA;YAC1C,OAAA,eAAe,CAAC,UAAU,CAAC,GAAG,CAAC;gBAC7B,CAAC,CAAI,GAAG,SAAI,YAAc;gBAC1B,CAAC,CAAI,YAAY,SAAI,GAAK;QAF5B,CAE4B,EAC9B,KAAK,CACN;aACA,IAAI,EAAE,CAAC;IACV,CAAC;IAXU,oCAAoC;QADhD,UAAU,EAAE;OACA,oCAAoC,CAYhD;IAAD,2CAAC;CAAA,AAZD,IAYC;SAZY,oCAAoC","sourcesContent":["import { injectable } from 'inversify';\nimport { QueryableRequest } from '../../../../types';\nimport { RequestMapper } from '../../../empathy-adapter.types';\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\n@injectable()\nexport class EmpathyRequestRelatedTagsQueryMapper implements RequestMapper<QueryableRequest, string>\n{\n map({ relatedTags = [] }: QueryableRequest, query: string): string {\n return relatedTags.reduce(\n (partialQuery, { tag, query: relatedTagQuery }) =>\n relatedTagQuery.startsWith(tag)\n ? `${tag} ${partialQuery}`\n : `${partialQuery} ${tag}`,\n query\n )\n .trim();\n }\n}\n"]}
|
|
@@ -13,8 +13,8 @@ var EmpathyRedirectionMapper = /** @class */ (function () {
|
|
|
13
13
|
}
|
|
14
14
|
EmpathyRedirectionMapper.prototype.map = function (rawDirect, redirection, context) {
|
|
15
15
|
return Object.assign(redirection, {
|
|
16
|
+
modelName: 'Redirection',
|
|
16
17
|
id: rawDirect.id,
|
|
17
|
-
title: rawDirect.title,
|
|
18
18
|
url: rawDirect.url,
|
|
19
19
|
tagging: {
|
|
20
20
|
click: this.mapTagging(rawDirect.trackable_url, {}, context)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empathy-redirection.mapper.js","sourceRoot":"","sources":["../../../../../src/empathy/mappers/response/empathy-redirection.mapper.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAG/D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;;;GAIG;AAEH;IAGE,kCAC0D,cAAiD;QAEzG,IAAI,CAAC,UAAU,GAAG,WAAW,eAAI,cAAc,CAAC,CAAC;IACnD,CAAC;IAED,sCAAG,GAAH,UAAI,SAAwB,EAAE,WAAwB,EAAE,OAA8B;QACpF,OAAO,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"empathy-redirection.mapper.js","sourceRoot":"","sources":["../../../../../src/empathy/mappers/response/empathy-redirection.mapper.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAG/D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;;;GAIG;AAEH;IAGE,kCAC0D,cAAiD;QAEzG,IAAI,CAAC,UAAU,GAAG,WAAW,eAAI,cAAc,CAAC,CAAC;IACnD,CAAC;IAED,sCAAG,GAAH,UAAI,SAAwB,EAAE,WAAwB,EAAE,OAA8B;QACpF,OAAO,MAAM,CAAC,MAAM,CAAoC,WAAW,EAAE;YACnE,SAAS,EAAE,aAAa;YACxB,EAAE,EAAE,SAAS,CAAC,EAAE;YAChB,GAAG,EAAE,SAAS,CAAC,GAAG;YAClB,OAAO,EAAE;gBACP,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,aAAa,EAAE,EAAa,EAAE,OAAO,CAAC;aACxE;SACF,CAAC,CAAC;IACL,CAAC;IAlBU,wBAAwB;QADpC,UAAU,EAAE;QAKR,WAAA,WAAW,CAAC,YAAY,CAAC,eAAe,CAAC,YAAY,CAAC,CAAA;;OAJ9C,wBAAwB,CAmBpC;IAAD,+BAAC;CAAA,AAnBD,IAmBC;SAnBY,wBAAwB","sourcesContent":["import { Redirection, Tagging } from '@empathyco/x-types';\nimport { injectable, multiInject } from 'inversify';\nimport { DEPENDENCIES } from '../../container/container.const';\nimport { MapFn, ResponseMapper, ResponseMapperContext } from '../../empathy-adapter.types';\nimport { EmpathyDirect } from '../../models/entities/empathy-direct.model';\nimport { pipeMappers } from '../pipe-mappers';\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\n@injectable()\nexport class EmpathyRedirectionMapper implements ResponseMapper<EmpathyDirect, Redirection> {\n private readonly mapTagging: MapFn<string, Tagging>;\n\n constructor(\n @multiInject(DEPENDENCIES.ResponseMappers.queryTagging) taggingMappers: ResponseMapper<string, Tagging>[]\n ) {\n this.mapTagging = pipeMappers(...taggingMappers);\n }\n\n map(rawDirect: EmpathyDirect, redirection: Redirection, context: ResponseMapperContext): Redirection {\n return Object.assign<Redirection, Partial<Redirection>>(redirection, {\n modelName: 'Redirection',\n id: rawDirect.id,\n url: rawDirect.url,\n tagging: {\n click: this.mapTagging(rawDirect.trackable_url, {} as Tagging, context)\n }\n });\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empathy-direct.model.js","sourceRoot":"","sources":["../../../../../src/empathy/models/entities/empathy-direct.model.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface EmpathyDirect {\n id: string;\n
|
|
1
|
+
{"version":3,"file":"empathy-direct.model.js","sourceRoot":"","sources":["../../../../../src/empathy/models/entities/empathy-direct.model.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface EmpathyDirect {\n id: string;\n trackable_url: string;\n url: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.types.js","sourceRoot":"","sources":["../../../src/types/requests.types.ts"],"names":[],"mappings":"","sourcesContent":["import { Filter, RelatedTag, Sort } from '@empathyco/x-types';\nimport { Dictionary } from './utils.types';\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface QueryableRequest {\n query: string;\n relatedTags?: RelatedTag[];\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface FilterableRequest {\n filters?: Dictionary<Filter[]>;\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface PageableRequest {\n rows?: number;\n start?: number;\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface TrackableRequest {\n origin
|
|
1
|
+
{"version":3,"file":"requests.types.js","sourceRoot":"","sources":["../../../src/types/requests.types.ts"],"names":[],"mappings":"","sourcesContent":["import { Filter, RelatedTag, Sort } from '@empathyco/x-types';\nimport { Dictionary } from './utils.types';\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface QueryableRequest {\n query: string;\n relatedTags?: RelatedTag[];\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface FilterableRequest {\n filters?: Dictionary<Filter[]>;\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface PageableRequest {\n rows?: number;\n start?: number;\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface TrackableRequest {\n origin?: string;\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface UserContextRequest {\n user: string;\n session: string;\n userType: string;\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface RequestOptions {\n requestId?: string;\n headers?: Dictionary<string>;\n ttlInMinutes?: number;\n [key: string]: any;\n}\n\n/**\n * Interface to support extra params\n *\n * @public\n */\nexport interface ExtraParamsRequest {\n [key: string]: unknown\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface SearchRequest extends QueryableRequest, FilterableRequest, PageableRequest, TrackableRequest, ExtraParamsRequest {\n sort?: Sort;\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface TopRecommendationsRequest extends Partial<QueryableRequest>, PageableRequest, TrackableRequest, ExtraParamsRequest {}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface SectionRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest, ExtraParamsRequest {\n section: string;\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface QueriesRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest, ExtraParamsRequest {\n section?: string;\n queries: string[];\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface ClicksRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest, ExtraParamsRequest {\n section?: string;\n productIds: string[];\n}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface UserRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest, ExtraParamsRequest {\n section?: string;\n}\n\n/**\n * Request parameters for the searchById(result identifier) endpoint.\n *\n * @public\n */\nexport interface SearchByIdRequest extends QueryableRequest, PageableRequest, TrackableRequest, ExtraParamsRequest {}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface SuggestionsRequest extends Partial<QueryableRequest>, PageableRequest, ExtraParamsRequest {}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface RelatedTagsRequest extends QueryableRequest, ExtraParamsRequest {}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface NextQueriesRequest extends QueryableRequest, ExtraParamsRequest {}\n\n/**\n * TODO https://searchbroker.atlassian.net/browse/EX-2163\n *\n * @public\n */\nexport interface TrackingRequest {\n params: Dictionary<any>;\n url: string;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-adapter",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.5",
|
|
4
4
|
"description": "A search client for the Empathy search API ",
|
|
5
5
|
"author": "Empathy Systems Corporation S.L.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
"test:coverage": "jest --coverage"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@empathyco/x-deep-merge": "^1.
|
|
44
|
-
"@empathyco/x-get-safe-property-chain": "^1.
|
|
43
|
+
"@empathyco/x-deep-merge": "^1.3.0-alpha.0",
|
|
44
|
+
"@empathyco/x-get-safe-property-chain": "^1.3.0-alpha.0",
|
|
45
45
|
"@empathyco/x-logger": "^1.1.0",
|
|
46
|
-
"@empathyco/x-storage-service": "^1.
|
|
47
|
-
"@empathyco/x-types": "^10.0.0-alpha.
|
|
46
|
+
"@empathyco/x-storage-service": "^1.4.0-alpha.0",
|
|
47
|
+
"@empathyco/x-types": "^10.0.0-alpha.10",
|
|
48
48
|
"inversify": "~5.0.1",
|
|
49
49
|
"reflect-metadata": "~0.1.13",
|
|
50
50
|
"tslib": "~2.3.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@empathyco/x-jest-utils": "^1.
|
|
53
|
+
"@empathyco/x-jest-utils": "^1.4.0-alpha.0",
|
|
54
54
|
"@microsoft/api-documenter": "~7.13.33",
|
|
55
55
|
"@microsoft/api-extractor": "~7.18.4",
|
|
56
56
|
"@types/jest": "~24.0.13",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "1576727b2de0db70fc04932518830683cc58ba74"
|
|
66
66
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"metadata": {
|
|
3
3
|
"toolPackage": "@microsoft/api-extractor",
|
|
4
|
-
"toolVersion": "7.18.
|
|
4
|
+
"toolVersion": "7.18.16",
|
|
5
5
|
"schemaVersion": 1004,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
@@ -1275,6 +1275,15 @@
|
|
|
1275
1275
|
"text": "UserContextRequest",
|
|
1276
1276
|
"canonicalReference": "@empathyco/x-adapter!UserContextRequest:interface"
|
|
1277
1277
|
},
|
|
1278
|
+
{
|
|
1279
|
+
"kind": "Content",
|
|
1280
|
+
"text": ", "
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
"kind": "Reference",
|
|
1284
|
+
"text": "ExtraParamsRequest",
|
|
1285
|
+
"canonicalReference": "@empathyco/x-adapter!ExtraParamsRequest:interface"
|
|
1286
|
+
},
|
|
1278
1287
|
{
|
|
1279
1288
|
"kind": "Content",
|
|
1280
1289
|
"text": " "
|
|
@@ -1347,7 +1356,11 @@
|
|
|
1347
1356
|
},
|
|
1348
1357
|
{
|
|
1349
1358
|
"startIndex": 5,
|
|
1350
|
-
"endIndex":
|
|
1359
|
+
"endIndex": 6
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
"startIndex": 7,
|
|
1363
|
+
"endIndex": 9
|
|
1351
1364
|
}
|
|
1352
1365
|
]
|
|
1353
1366
|
},
|
|
@@ -6674,32 +6687,6 @@
|
|
|
6674
6687
|
"endIndex": 2
|
|
6675
6688
|
}
|
|
6676
6689
|
},
|
|
6677
|
-
{
|
|
6678
|
-
"kind": "PropertySignature",
|
|
6679
|
-
"canonicalReference": "@empathyco/x-adapter!EmpathyDirect#title:member",
|
|
6680
|
-
"docComment": "",
|
|
6681
|
-
"excerptTokens": [
|
|
6682
|
-
{
|
|
6683
|
-
"kind": "Content",
|
|
6684
|
-
"text": "title: "
|
|
6685
|
-
},
|
|
6686
|
-
{
|
|
6687
|
-
"kind": "Content",
|
|
6688
|
-
"text": "string"
|
|
6689
|
-
},
|
|
6690
|
-
{
|
|
6691
|
-
"kind": "Content",
|
|
6692
|
-
"text": ";"
|
|
6693
|
-
}
|
|
6694
|
-
],
|
|
6695
|
-
"isOptional": false,
|
|
6696
|
-
"releaseTag": "Public",
|
|
6697
|
-
"name": "title",
|
|
6698
|
-
"propertyTypeTokenRange": {
|
|
6699
|
-
"startIndex": 1,
|
|
6700
|
-
"endIndex": 2
|
|
6701
|
-
}
|
|
6702
|
-
},
|
|
6703
6690
|
{
|
|
6704
6691
|
"kind": "PropertySignature",
|
|
6705
6692
|
"canonicalReference": "@empathyco/x-adapter!EmpathyDirect#trackable_url:member",
|
|
@@ -14463,6 +14450,64 @@
|
|
|
14463
14450
|
"endIndex": 5
|
|
14464
14451
|
}
|
|
14465
14452
|
},
|
|
14453
|
+
{
|
|
14454
|
+
"kind": "Interface",
|
|
14455
|
+
"canonicalReference": "@empathyco/x-adapter!ExtraParamsRequest:interface",
|
|
14456
|
+
"docComment": "/**\n * Interface to support extra params\n *\n * @public\n */\n",
|
|
14457
|
+
"excerptTokens": [
|
|
14458
|
+
{
|
|
14459
|
+
"kind": "Content",
|
|
14460
|
+
"text": "export interface ExtraParamsRequest "
|
|
14461
|
+
}
|
|
14462
|
+
],
|
|
14463
|
+
"releaseTag": "Public",
|
|
14464
|
+
"name": "ExtraParamsRequest",
|
|
14465
|
+
"members": [
|
|
14466
|
+
{
|
|
14467
|
+
"kind": "IndexSignature",
|
|
14468
|
+
"canonicalReference": "@empathyco/x-adapter!ExtraParamsRequest:index(1)",
|
|
14469
|
+
"docComment": "",
|
|
14470
|
+
"excerptTokens": [
|
|
14471
|
+
{
|
|
14472
|
+
"kind": "Content",
|
|
14473
|
+
"text": "[key: "
|
|
14474
|
+
},
|
|
14475
|
+
{
|
|
14476
|
+
"kind": "Content",
|
|
14477
|
+
"text": "string"
|
|
14478
|
+
},
|
|
14479
|
+
{
|
|
14480
|
+
"kind": "Content",
|
|
14481
|
+
"text": "]: "
|
|
14482
|
+
},
|
|
14483
|
+
{
|
|
14484
|
+
"kind": "Content",
|
|
14485
|
+
"text": "unknown"
|
|
14486
|
+
},
|
|
14487
|
+
{
|
|
14488
|
+
"kind": "Content",
|
|
14489
|
+
"text": ";"
|
|
14490
|
+
}
|
|
14491
|
+
],
|
|
14492
|
+
"returnTypeTokenRange": {
|
|
14493
|
+
"startIndex": 3,
|
|
14494
|
+
"endIndex": 4
|
|
14495
|
+
},
|
|
14496
|
+
"releaseTag": "Public",
|
|
14497
|
+
"overloadIndex": 1,
|
|
14498
|
+
"parameters": [
|
|
14499
|
+
{
|
|
14500
|
+
"parameterName": "key",
|
|
14501
|
+
"parameterTypeTokenRange": {
|
|
14502
|
+
"startIndex": 1,
|
|
14503
|
+
"endIndex": 2
|
|
14504
|
+
}
|
|
14505
|
+
}
|
|
14506
|
+
]
|
|
14507
|
+
}
|
|
14508
|
+
],
|
|
14509
|
+
"extendsTokenRanges": []
|
|
14510
|
+
},
|
|
14466
14511
|
{
|
|
14467
14512
|
"kind": "Interface",
|
|
14468
14513
|
"canonicalReference": "@empathyco/x-adapter!FacetConfig:interface",
|
|
@@ -17249,6 +17294,15 @@
|
|
|
17249
17294
|
"text": "QueryableRequest",
|
|
17250
17295
|
"canonicalReference": "@empathyco/x-adapter!QueryableRequest:interface"
|
|
17251
17296
|
},
|
|
17297
|
+
{
|
|
17298
|
+
"kind": "Content",
|
|
17299
|
+
"text": ", "
|
|
17300
|
+
},
|
|
17301
|
+
{
|
|
17302
|
+
"kind": "Reference",
|
|
17303
|
+
"text": "ExtraParamsRequest",
|
|
17304
|
+
"canonicalReference": "@empathyco/x-adapter!ExtraParamsRequest:interface"
|
|
17305
|
+
},
|
|
17252
17306
|
{
|
|
17253
17307
|
"kind": "Content",
|
|
17254
17308
|
"text": " "
|
|
@@ -17260,7 +17314,11 @@
|
|
|
17260
17314
|
"extendsTokenRanges": [
|
|
17261
17315
|
{
|
|
17262
17316
|
"startIndex": 1,
|
|
17263
|
-
"endIndex":
|
|
17317
|
+
"endIndex": 2
|
|
17318
|
+
},
|
|
17319
|
+
{
|
|
17320
|
+
"startIndex": 3,
|
|
17321
|
+
"endIndex": 5
|
|
17264
17322
|
}
|
|
17265
17323
|
]
|
|
17266
17324
|
},
|
|
@@ -17689,6 +17747,15 @@
|
|
|
17689
17747
|
"text": "UserContextRequest",
|
|
17690
17748
|
"canonicalReference": "@empathyco/x-adapter!UserContextRequest:interface"
|
|
17691
17749
|
},
|
|
17750
|
+
{
|
|
17751
|
+
"kind": "Content",
|
|
17752
|
+
"text": ", "
|
|
17753
|
+
},
|
|
17754
|
+
{
|
|
17755
|
+
"kind": "Reference",
|
|
17756
|
+
"text": "ExtraParamsRequest",
|
|
17757
|
+
"canonicalReference": "@empathyco/x-adapter!ExtraParamsRequest:interface"
|
|
17758
|
+
},
|
|
17692
17759
|
{
|
|
17693
17760
|
"kind": "Content",
|
|
17694
17761
|
"text": " "
|
|
@@ -17761,7 +17828,11 @@
|
|
|
17761
17828
|
},
|
|
17762
17829
|
{
|
|
17763
17830
|
"startIndex": 5,
|
|
17764
|
-
"endIndex":
|
|
17831
|
+
"endIndex": 6
|
|
17832
|
+
},
|
|
17833
|
+
{
|
|
17834
|
+
"startIndex": 7,
|
|
17835
|
+
"endIndex": 9
|
|
17765
17836
|
}
|
|
17766
17837
|
]
|
|
17767
17838
|
},
|
|
@@ -18007,6 +18078,15 @@
|
|
|
18007
18078
|
"text": "QueryableRequest",
|
|
18008
18079
|
"canonicalReference": "@empathyco/x-adapter!QueryableRequest:interface"
|
|
18009
18080
|
},
|
|
18081
|
+
{
|
|
18082
|
+
"kind": "Content",
|
|
18083
|
+
"text": ", "
|
|
18084
|
+
},
|
|
18085
|
+
{
|
|
18086
|
+
"kind": "Reference",
|
|
18087
|
+
"text": "ExtraParamsRequest",
|
|
18088
|
+
"canonicalReference": "@empathyco/x-adapter!ExtraParamsRequest:interface"
|
|
18089
|
+
},
|
|
18010
18090
|
{
|
|
18011
18091
|
"kind": "Content",
|
|
18012
18092
|
"text": " "
|
|
@@ -18018,7 +18098,11 @@
|
|
|
18018
18098
|
"extendsTokenRanges": [
|
|
18019
18099
|
{
|
|
18020
18100
|
"startIndex": 1,
|
|
18021
|
-
"endIndex":
|
|
18101
|
+
"endIndex": 2
|
|
18102
|
+
},
|
|
18103
|
+
{
|
|
18104
|
+
"startIndex": 3,
|
|
18105
|
+
"endIndex": 5
|
|
18022
18106
|
}
|
|
18023
18107
|
]
|
|
18024
18108
|
},
|
|
@@ -21910,6 +21994,15 @@
|
|
|
21910
21994
|
"text": "TrackableRequest",
|
|
21911
21995
|
"canonicalReference": "@empathyco/x-adapter!TrackableRequest:interface"
|
|
21912
21996
|
},
|
|
21997
|
+
{
|
|
21998
|
+
"kind": "Content",
|
|
21999
|
+
"text": ", "
|
|
22000
|
+
},
|
|
22001
|
+
{
|
|
22002
|
+
"kind": "Reference",
|
|
22003
|
+
"text": "ExtraParamsRequest",
|
|
22004
|
+
"canonicalReference": "@empathyco/x-adapter!ExtraParamsRequest:interface"
|
|
22005
|
+
},
|
|
21913
22006
|
{
|
|
21914
22007
|
"kind": "Content",
|
|
21915
22008
|
"text": " "
|
|
@@ -21929,7 +22022,11 @@
|
|
|
21929
22022
|
},
|
|
21930
22023
|
{
|
|
21931
22024
|
"startIndex": 5,
|
|
21932
|
-
"endIndex":
|
|
22025
|
+
"endIndex": 6
|
|
22026
|
+
},
|
|
22027
|
+
{
|
|
22028
|
+
"startIndex": 7,
|
|
22029
|
+
"endIndex": 9
|
|
21933
22030
|
}
|
|
21934
22031
|
]
|
|
21935
22032
|
},
|
|
@@ -22021,6 +22118,15 @@
|
|
|
22021
22118
|
"text": "TrackableRequest",
|
|
22022
22119
|
"canonicalReference": "@empathyco/x-adapter!TrackableRequest:interface"
|
|
22023
22120
|
},
|
|
22121
|
+
{
|
|
22122
|
+
"kind": "Content",
|
|
22123
|
+
"text": ", "
|
|
22124
|
+
},
|
|
22125
|
+
{
|
|
22126
|
+
"kind": "Reference",
|
|
22127
|
+
"text": "ExtraParamsRequest",
|
|
22128
|
+
"canonicalReference": "@empathyco/x-adapter!ExtraParamsRequest:interface"
|
|
22129
|
+
},
|
|
22024
22130
|
{
|
|
22025
22131
|
"kind": "Content",
|
|
22026
22132
|
"text": " "
|
|
@@ -22029,48 +22135,6 @@
|
|
|
22029
22135
|
"releaseTag": "Public",
|
|
22030
22136
|
"name": "SearchRequest",
|
|
22031
22137
|
"members": [
|
|
22032
|
-
{
|
|
22033
|
-
"kind": "IndexSignature",
|
|
22034
|
-
"canonicalReference": "@empathyco/x-adapter!SearchRequest:index(1)",
|
|
22035
|
-
"docComment": "",
|
|
22036
|
-
"excerptTokens": [
|
|
22037
|
-
{
|
|
22038
|
-
"kind": "Content",
|
|
22039
|
-
"text": "[key: "
|
|
22040
|
-
},
|
|
22041
|
-
{
|
|
22042
|
-
"kind": "Content",
|
|
22043
|
-
"text": "string"
|
|
22044
|
-
},
|
|
22045
|
-
{
|
|
22046
|
-
"kind": "Content",
|
|
22047
|
-
"text": "]: "
|
|
22048
|
-
},
|
|
22049
|
-
{
|
|
22050
|
-
"kind": "Content",
|
|
22051
|
-
"text": "unknown"
|
|
22052
|
-
},
|
|
22053
|
-
{
|
|
22054
|
-
"kind": "Content",
|
|
22055
|
-
"text": ";"
|
|
22056
|
-
}
|
|
22057
|
-
],
|
|
22058
|
-
"returnTypeTokenRange": {
|
|
22059
|
-
"startIndex": 3,
|
|
22060
|
-
"endIndex": 4
|
|
22061
|
-
},
|
|
22062
|
-
"releaseTag": "Public",
|
|
22063
|
-
"overloadIndex": 1,
|
|
22064
|
-
"parameters": [
|
|
22065
|
-
{
|
|
22066
|
-
"parameterName": "key",
|
|
22067
|
-
"parameterTypeTokenRange": {
|
|
22068
|
-
"startIndex": 1,
|
|
22069
|
-
"endIndex": 2
|
|
22070
|
-
}
|
|
22071
|
-
}
|
|
22072
|
-
]
|
|
22073
|
-
},
|
|
22074
22138
|
{
|
|
22075
22139
|
"kind": "PropertySignature",
|
|
22076
22140
|
"canonicalReference": "@empathyco/x-adapter!SearchRequest#sort:member",
|
|
@@ -22114,7 +22178,11 @@
|
|
|
22114
22178
|
},
|
|
22115
22179
|
{
|
|
22116
22180
|
"startIndex": 7,
|
|
22117
|
-
"endIndex":
|
|
22181
|
+
"endIndex": 8
|
|
22182
|
+
},
|
|
22183
|
+
{
|
|
22184
|
+
"startIndex": 9,
|
|
22185
|
+
"endIndex": 11
|
|
22118
22186
|
}
|
|
22119
22187
|
]
|
|
22120
22188
|
},
|
|
@@ -22431,6 +22499,15 @@
|
|
|
22431
22499
|
"text": "UserContextRequest",
|
|
22432
22500
|
"canonicalReference": "@empathyco/x-adapter!UserContextRequest:interface"
|
|
22433
22501
|
},
|
|
22502
|
+
{
|
|
22503
|
+
"kind": "Content",
|
|
22504
|
+
"text": ", "
|
|
22505
|
+
},
|
|
22506
|
+
{
|
|
22507
|
+
"kind": "Reference",
|
|
22508
|
+
"text": "ExtraParamsRequest",
|
|
22509
|
+
"canonicalReference": "@empathyco/x-adapter!ExtraParamsRequest:interface"
|
|
22510
|
+
},
|
|
22434
22511
|
{
|
|
22435
22512
|
"kind": "Content",
|
|
22436
22513
|
"text": " "
|
|
@@ -22477,7 +22554,11 @@
|
|
|
22477
22554
|
},
|
|
22478
22555
|
{
|
|
22479
22556
|
"startIndex": 5,
|
|
22480
|
-
"endIndex":
|
|
22557
|
+
"endIndex": 6
|
|
22558
|
+
},
|
|
22559
|
+
{
|
|
22560
|
+
"startIndex": 7,
|
|
22561
|
+
"endIndex": 9
|
|
22481
22562
|
}
|
|
22482
22563
|
]
|
|
22483
22564
|
},
|
|
@@ -22641,6 +22722,15 @@
|
|
|
22641
22722
|
"text": "PageableRequest",
|
|
22642
22723
|
"canonicalReference": "@empathyco/x-adapter!PageableRequest:interface"
|
|
22643
22724
|
},
|
|
22725
|
+
{
|
|
22726
|
+
"kind": "Content",
|
|
22727
|
+
"text": ", "
|
|
22728
|
+
},
|
|
22729
|
+
{
|
|
22730
|
+
"kind": "Reference",
|
|
22731
|
+
"text": "ExtraParamsRequest",
|
|
22732
|
+
"canonicalReference": "@empathyco/x-adapter!ExtraParamsRequest:interface"
|
|
22733
|
+
},
|
|
22644
22734
|
{
|
|
22645
22735
|
"kind": "Content",
|
|
22646
22736
|
"text": " "
|
|
@@ -22656,7 +22746,11 @@
|
|
|
22656
22746
|
},
|
|
22657
22747
|
{
|
|
22658
22748
|
"startIndex": 6,
|
|
22659
|
-
"endIndex":
|
|
22749
|
+
"endIndex": 7
|
|
22750
|
+
},
|
|
22751
|
+
{
|
|
22752
|
+
"startIndex": 8,
|
|
22753
|
+
"endIndex": 10
|
|
22660
22754
|
}
|
|
22661
22755
|
]
|
|
22662
22756
|
},
|
|
@@ -22752,6 +22846,15 @@
|
|
|
22752
22846
|
"text": "TrackableRequest",
|
|
22753
22847
|
"canonicalReference": "@empathyco/x-adapter!TrackableRequest:interface"
|
|
22754
22848
|
},
|
|
22849
|
+
{
|
|
22850
|
+
"kind": "Content",
|
|
22851
|
+
"text": ", "
|
|
22852
|
+
},
|
|
22853
|
+
{
|
|
22854
|
+
"kind": "Reference",
|
|
22855
|
+
"text": "ExtraParamsRequest",
|
|
22856
|
+
"canonicalReference": "@empathyco/x-adapter!ExtraParamsRequest:interface"
|
|
22857
|
+
},
|
|
22755
22858
|
{
|
|
22756
22859
|
"kind": "Content",
|
|
22757
22860
|
"text": " "
|
|
@@ -22771,7 +22874,11 @@
|
|
|
22771
22874
|
},
|
|
22772
22875
|
{
|
|
22773
22876
|
"startIndex": 8,
|
|
22774
|
-
"endIndex":
|
|
22877
|
+
"endIndex": 9
|
|
22878
|
+
},
|
|
22879
|
+
{
|
|
22880
|
+
"startIndex": 10,
|
|
22881
|
+
"endIndex": 12
|
|
22775
22882
|
}
|
|
22776
22883
|
]
|
|
22777
22884
|
},
|
|
@@ -22842,7 +22949,7 @@
|
|
|
22842
22949
|
"excerptTokens": [
|
|
22843
22950
|
{
|
|
22844
22951
|
"kind": "Content",
|
|
22845
|
-
"text": "origin
|
|
22952
|
+
"text": "origin?: "
|
|
22846
22953
|
},
|
|
22847
22954
|
{
|
|
22848
22955
|
"kind": "Content",
|
|
@@ -22853,7 +22960,7 @@
|
|
|
22853
22960
|
"text": ";"
|
|
22854
22961
|
}
|
|
22855
22962
|
],
|
|
22856
|
-
"isOptional":
|
|
22963
|
+
"isOptional": true,
|
|
22857
22964
|
"releaseTag": "Public",
|
|
22858
22965
|
"name": "origin",
|
|
22859
22966
|
"propertyTypeTokenRange": {
|
|
@@ -23242,6 +23349,15 @@
|
|
|
23242
23349
|
"text": "UserContextRequest",
|
|
23243
23350
|
"canonicalReference": "@empathyco/x-adapter!UserContextRequest:interface"
|
|
23244
23351
|
},
|
|
23352
|
+
{
|
|
23353
|
+
"kind": "Content",
|
|
23354
|
+
"text": ", "
|
|
23355
|
+
},
|
|
23356
|
+
{
|
|
23357
|
+
"kind": "Reference",
|
|
23358
|
+
"text": "ExtraParamsRequest",
|
|
23359
|
+
"canonicalReference": "@empathyco/x-adapter!ExtraParamsRequest:interface"
|
|
23360
|
+
},
|
|
23245
23361
|
{
|
|
23246
23362
|
"kind": "Content",
|
|
23247
23363
|
"text": " "
|
|
@@ -23288,7 +23404,11 @@
|
|
|
23288
23404
|
},
|
|
23289
23405
|
{
|
|
23290
23406
|
"startIndex": 5,
|
|
23291
|
-
"endIndex":
|
|
23407
|
+
"endIndex": 6
|
|
23408
|
+
},
|
|
23409
|
+
{
|
|
23410
|
+
"startIndex": 7,
|
|
23411
|
+
"endIndex": 9
|
|
23292
23412
|
}
|
|
23293
23413
|
]
|
|
23294
23414
|
},
|
package/report/x-adapter.api.md
CHANGED
|
@@ -81,7 +81,7 @@ export interface CacheService {
|
|
|
81
81
|
export type ClassBinding = Newable<any> | Newable<any>[];
|
|
82
82
|
|
|
83
83
|
// @public
|
|
84
|
-
export interface ClicksRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest {
|
|
84
|
+
export interface ClicksRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest, ExtraParamsRequest {
|
|
85
85
|
// (undocumented)
|
|
86
86
|
productIds: string[];
|
|
87
87
|
// (undocumented)
|
|
@@ -428,8 +428,6 @@ export interface EmpathyDirect {
|
|
|
428
428
|
// (undocumented)
|
|
429
429
|
id: string;
|
|
430
430
|
// (undocumented)
|
|
431
|
-
title: string;
|
|
432
|
-
// (undocumented)
|
|
433
431
|
trackable_url: string;
|
|
434
432
|
// (undocumented)
|
|
435
433
|
url: string;
|
|
@@ -925,6 +923,12 @@ export interface EndpointsService {
|
|
|
925
923
|
// @public
|
|
926
924
|
export type EntityNames = Exclude<keyof (typeof DEPENDENCIES)['ResponseMappers'], 'Helpers'>;
|
|
927
925
|
|
|
926
|
+
// @public
|
|
927
|
+
export interface ExtraParamsRequest {
|
|
928
|
+
// (undocumented)
|
|
929
|
+
[key: string]: unknown;
|
|
930
|
+
}
|
|
931
|
+
|
|
928
932
|
// @public
|
|
929
933
|
export interface FacetConfig {
|
|
930
934
|
// (undocumented)
|
|
@@ -1079,7 +1083,7 @@ export type MapResponse<From = any, To = any> = MapFn<From, To, ResponseMapperCo
|
|
|
1079
1083
|
export type Newable<T = any> = new (...args: any[]) => T;
|
|
1080
1084
|
|
|
1081
1085
|
// @public
|
|
1082
|
-
export interface NextQueriesRequest extends QueryableRequest {
|
|
1086
|
+
export interface NextQueriesRequest extends QueryableRequest, ExtraParamsRequest {
|
|
1083
1087
|
}
|
|
1084
1088
|
|
|
1085
1089
|
// @public
|
|
@@ -1117,7 +1121,7 @@ export function pipeMappers<From, To, Context>(...mappers: Mapper<From, To, Cont
|
|
|
1117
1121
|
export type Primitive = string | number | boolean | undefined | null | Symbol | Function;
|
|
1118
1122
|
|
|
1119
1123
|
// @public
|
|
1120
|
-
export interface QueriesRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest {
|
|
1124
|
+
export interface QueriesRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest, ExtraParamsRequest {
|
|
1121
1125
|
// (undocumented)
|
|
1122
1126
|
queries: string[];
|
|
1123
1127
|
// (undocumented)
|
|
@@ -1149,7 +1153,7 @@ export interface QueryConfig {
|
|
|
1149
1153
|
}
|
|
1150
1154
|
|
|
1151
1155
|
// @public
|
|
1152
|
-
export interface RelatedTagsRequest extends QueryableRequest {
|
|
1156
|
+
export interface RelatedTagsRequest extends QueryableRequest, ExtraParamsRequest {
|
|
1153
1157
|
}
|
|
1154
1158
|
|
|
1155
1159
|
// @public
|
|
@@ -1317,7 +1321,7 @@ export interface SearchAdapter<Config = any> {
|
|
|
1317
1321
|
}
|
|
1318
1322
|
|
|
1319
1323
|
// @public
|
|
1320
|
-
export interface SearchByIdRequest extends QueryableRequest, PageableRequest, TrackableRequest {
|
|
1324
|
+
export interface SearchByIdRequest extends QueryableRequest, PageableRequest, TrackableRequest, ExtraParamsRequest {
|
|
1321
1325
|
}
|
|
1322
1326
|
|
|
1323
1327
|
// @public
|
|
@@ -1327,9 +1331,7 @@ export interface SearchByIdResponse {
|
|
|
1327
1331
|
}
|
|
1328
1332
|
|
|
1329
1333
|
// @public
|
|
1330
|
-
export interface SearchRequest extends QueryableRequest, FilterableRequest, PageableRequest, TrackableRequest {
|
|
1331
|
-
// (undocumented)
|
|
1332
|
-
[key: string]: unknown;
|
|
1334
|
+
export interface SearchRequest extends QueryableRequest, FilterableRequest, PageableRequest, TrackableRequest, ExtraParamsRequest {
|
|
1333
1335
|
// (undocumented)
|
|
1334
1336
|
sort?: Sort;
|
|
1335
1337
|
}
|
|
@@ -1357,7 +1359,7 @@ export interface SearchResponse {
|
|
|
1357
1359
|
}
|
|
1358
1360
|
|
|
1359
1361
|
// @public
|
|
1360
|
-
export interface SectionRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest {
|
|
1362
|
+
export interface SectionRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest, ExtraParamsRequest {
|
|
1361
1363
|
// (undocumented)
|
|
1362
1364
|
section: string;
|
|
1363
1365
|
}
|
|
@@ -1375,7 +1377,7 @@ export interface SimpleConstantBinding<T = any> {
|
|
|
1375
1377
|
}
|
|
1376
1378
|
|
|
1377
1379
|
// @public
|
|
1378
|
-
export interface SuggestionsRequest extends Partial<QueryableRequest>, PageableRequest {
|
|
1380
|
+
export interface SuggestionsRequest extends Partial<QueryableRequest>, PageableRequest, ExtraParamsRequest {
|
|
1379
1381
|
}
|
|
1380
1382
|
|
|
1381
1383
|
// @public
|
|
@@ -1385,7 +1387,7 @@ export interface SuggestionsResponse {
|
|
|
1385
1387
|
}
|
|
1386
1388
|
|
|
1387
1389
|
// @public
|
|
1388
|
-
export interface TopRecommendationsRequest extends Partial<QueryableRequest>, PageableRequest, TrackableRequest {
|
|
1390
|
+
export interface TopRecommendationsRequest extends Partial<QueryableRequest>, PageableRequest, TrackableRequest, ExtraParamsRequest {
|
|
1389
1391
|
}
|
|
1390
1392
|
|
|
1391
1393
|
// @public
|
|
@@ -1397,7 +1399,7 @@ export interface TopRecommendationsResponse {
|
|
|
1397
1399
|
// @public
|
|
1398
1400
|
export interface TrackableRequest {
|
|
1399
1401
|
// (undocumented)
|
|
1400
|
-
origin
|
|
1402
|
+
origin?: string;
|
|
1401
1403
|
}
|
|
1402
1404
|
|
|
1403
1405
|
// @public
|
|
@@ -1437,7 +1439,7 @@ export interface UserContextRequest {
|
|
|
1437
1439
|
}
|
|
1438
1440
|
|
|
1439
1441
|
// @public
|
|
1440
|
-
export interface UserRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest {
|
|
1442
|
+
export interface UserRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest, ExtraParamsRequest {
|
|
1441
1443
|
// (undocumented)
|
|
1442
1444
|
section?: string;
|
|
1443
1445
|
}
|
|
@@ -32,7 +32,7 @@ export interface PageableRequest {
|
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
34
|
export interface TrackableRequest {
|
|
35
|
-
origin
|
|
35
|
+
origin?: string;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* TODO https://searchbroker.atlassian.net/browse/EX-2163
|
|
@@ -55,28 +55,35 @@ export interface RequestOptions {
|
|
|
55
55
|
ttlInMinutes?: number;
|
|
56
56
|
[key: string]: any;
|
|
57
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Interface to support extra params
|
|
60
|
+
*
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
export interface ExtraParamsRequest {
|
|
64
|
+
[key: string]: unknown;
|
|
65
|
+
}
|
|
58
66
|
/**
|
|
59
67
|
* TODO https://searchbroker.atlassian.net/browse/EX-2163
|
|
60
68
|
*
|
|
61
69
|
* @public
|
|
62
70
|
*/
|
|
63
|
-
export interface SearchRequest extends QueryableRequest, FilterableRequest, PageableRequest, TrackableRequest {
|
|
71
|
+
export interface SearchRequest extends QueryableRequest, FilterableRequest, PageableRequest, TrackableRequest, ExtraParamsRequest {
|
|
64
72
|
sort?: Sort;
|
|
65
|
-
[key: string]: unknown;
|
|
66
73
|
}
|
|
67
74
|
/**
|
|
68
75
|
* TODO https://searchbroker.atlassian.net/browse/EX-2163
|
|
69
76
|
*
|
|
70
77
|
* @public
|
|
71
78
|
*/
|
|
72
|
-
export interface TopRecommendationsRequest extends Partial<QueryableRequest>, PageableRequest, TrackableRequest {
|
|
79
|
+
export interface TopRecommendationsRequest extends Partial<QueryableRequest>, PageableRequest, TrackableRequest, ExtraParamsRequest {
|
|
73
80
|
}
|
|
74
81
|
/**
|
|
75
82
|
* TODO https://searchbroker.atlassian.net/browse/EX-2163
|
|
76
83
|
*
|
|
77
84
|
* @public
|
|
78
85
|
*/
|
|
79
|
-
export interface SectionRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest {
|
|
86
|
+
export interface SectionRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest, ExtraParamsRequest {
|
|
80
87
|
section: string;
|
|
81
88
|
}
|
|
82
89
|
/**
|
|
@@ -84,7 +91,7 @@ export interface SectionRecommendationsRequest extends TrackableRequest, Pageabl
|
|
|
84
91
|
*
|
|
85
92
|
* @public
|
|
86
93
|
*/
|
|
87
|
-
export interface QueriesRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest {
|
|
94
|
+
export interface QueriesRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest, ExtraParamsRequest {
|
|
88
95
|
section?: string;
|
|
89
96
|
queries: string[];
|
|
90
97
|
}
|
|
@@ -93,7 +100,7 @@ export interface QueriesRecommendationsRequest extends TrackableRequest, Pageabl
|
|
|
93
100
|
*
|
|
94
101
|
* @public
|
|
95
102
|
*/
|
|
96
|
-
export interface ClicksRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest {
|
|
103
|
+
export interface ClicksRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest, ExtraParamsRequest {
|
|
97
104
|
section?: string;
|
|
98
105
|
productIds: string[];
|
|
99
106
|
}
|
|
@@ -102,7 +109,7 @@ export interface ClicksRecommendationsRequest extends TrackableRequest, Pageable
|
|
|
102
109
|
*
|
|
103
110
|
* @public
|
|
104
111
|
*/
|
|
105
|
-
export interface UserRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest {
|
|
112
|
+
export interface UserRecommendationsRequest extends TrackableRequest, PageableRequest, UserContextRequest, ExtraParamsRequest {
|
|
106
113
|
section?: string;
|
|
107
114
|
}
|
|
108
115
|
/**
|
|
@@ -110,28 +117,28 @@ export interface UserRecommendationsRequest extends TrackableRequest, PageableRe
|
|
|
110
117
|
*
|
|
111
118
|
* @public
|
|
112
119
|
*/
|
|
113
|
-
export interface SearchByIdRequest extends QueryableRequest, PageableRequest, TrackableRequest {
|
|
120
|
+
export interface SearchByIdRequest extends QueryableRequest, PageableRequest, TrackableRequest, ExtraParamsRequest {
|
|
114
121
|
}
|
|
115
122
|
/**
|
|
116
123
|
* TODO https://searchbroker.atlassian.net/browse/EX-2163
|
|
117
124
|
*
|
|
118
125
|
* @public
|
|
119
126
|
*/
|
|
120
|
-
export interface SuggestionsRequest extends Partial<QueryableRequest>, PageableRequest {
|
|
127
|
+
export interface SuggestionsRequest extends Partial<QueryableRequest>, PageableRequest, ExtraParamsRequest {
|
|
121
128
|
}
|
|
122
129
|
/**
|
|
123
130
|
* TODO https://searchbroker.atlassian.net/browse/EX-2163
|
|
124
131
|
*
|
|
125
132
|
* @public
|
|
126
133
|
*/
|
|
127
|
-
export interface RelatedTagsRequest extends QueryableRequest {
|
|
134
|
+
export interface RelatedTagsRequest extends QueryableRequest, ExtraParamsRequest {
|
|
128
135
|
}
|
|
129
136
|
/**
|
|
130
137
|
* TODO https://searchbroker.atlassian.net/browse/EX-2163
|
|
131
138
|
*
|
|
132
139
|
* @public
|
|
133
140
|
*/
|
|
134
|
-
export interface NextQueriesRequest extends QueryableRequest {
|
|
141
|
+
export interface NextQueriesRequest extends QueryableRequest, ExtraParamsRequest {
|
|
135
142
|
}
|
|
136
143
|
/**
|
|
137
144
|
* TODO https://searchbroker.atlassian.net/browse/EX-2163
|
package/CHANGELOG.md
DELETED
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [7.0.0-alpha.1](https://github.com/empathyco/x/compare/@empathyco/x-adapter@7.0.0-alpha.0...@empathyco/x-adapter@7.0.0-alpha.1) (2021-08-24)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Features
|
|
10
|
-
|
|
11
|
-
* **request:** update search request type to include the new extra params ([5dc8bc2](https://github.com/empathyco/x/commit/5dc8bc2c4e3cb397ccc3ae10f64f2bca651336e5)), closes [EX-4634](https://searchbroker.atlassian.net/browse/EX-4634)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## [7.0.0-alpha.0](https://github.com/empathyco/x/compare/@empathyco/x-adapter@6.2.0-alpha.8...@empathyco/x-adapter@7.0.0-alpha.0) (2021-08-11)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
### ⚠ BREAKING CHANGES
|
|
19
|
-
|
|
20
|
-
* **facets-next:** Rename `EmpathyFilterMapper` to `EmpathyFacetFilterMapper`. Response filter mappers now map the API value in the `id` filters property. `EmpathyHierarchicalFacetMapper` now flattens and stores all the filters in the `filter` property. `EmpathyHierarchicalFacetMapper` now only maps filters ids in `HierarchicalFilter` children. Bump up `@empathyco/x-types` major version in `@empathyco/x-adapter`.
|
|
21
|
-
|
|
22
|
-
### Features
|
|
23
|
-
|
|
24
|
-
* **facets-next:** add support for the new search types in search adapter ([aec475e](https://github.com/empathyco/x/commit/aec475e4f689e63a4dc1b0fed3c3ade73b5122f2)), closes [EX-3640](https://searchbroker.atlassian.net/browse/EX-3640)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
## [6.2.0-alpha.8](https://github.com/empathyco/x/compare/@empathyco/x-adapter@6.2.0-alpha.7...@empathyco/x-adapter@6.2.0-alpha.8) (2021-08-05)
|
|
29
|
-
|
|
30
|
-
**Note:** Version bump only for package @empathyco/x-adapter
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
## [6.2.0-alpha.7](https://github.com/empathyco/x/compare/@empathyco/x-adapter@6.2.0-alpha.6...@empathyco/x-adapter@6.2.0-alpha.7) (2021-08-05)
|
|
37
|
-
|
|
38
|
-
**Note:** Version bump only for package @empathyco/x-adapter
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
## [6.2.0-alpha.6](https://github.com/empathyco/x/compare/@empathyco/x-adapter@6.2.0-alpha.5...@empathyco/x-adapter@6.2.0-alpha.6) (2021-08-03)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
### Build System
|
|
48
|
-
|
|
49
|
-
* Update TypeScript to 4.3.5.Update TSLib to 2.3.5. ([4cebdfc](https://github.com/empathyco/x/commit/4cebdfc11e1520552a687def3eda1bf0c132e031)), closes [EX-4435](https://searchbroker.atlassian.net/browse/EX-4435)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
## [6.2.0-alpha.5](https://github.com/empathyco/x/compare/@empathyco/x-adapter@6.2.0-alpha.4...@empathyco/x-adapter@6.2.0-alpha.5) (2021-07-29)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
### Build System
|
|
57
|
-
|
|
58
|
-
* use 2 different versions of search-types ([5a6ac76](https://github.com/empathyco/x/commit/5a6ac76fea26c0f284904d4f514a1370b7c6184b)), closes [EX-4477](https://searchbroker.atlassian.net/browse/EX-4477)
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
## [6.2.0-alpha.4](https://github.com/empathyco/x/compare/@empathyco/x-adapter@6.2.0-alpha.3...@empathyco/x-adapter@6.2.0-alpha.4) (2021-07-28)
|
|
63
|
-
|
|
64
|
-
**Note:** Version bump only for package @empathyco/x-adapter
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
## [6.2.0-alpha.3](https://github.com/empathyco/x/compare/@empathyco/x-adapter@6.2.0-alpha.1...@empathyco/x-adapter@6.2.0-alpha.3) (2021-07-27)
|
|
71
|
-
|
|
72
|
-
**Note:** Version bump only for package @empathyco/x-adapter
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
## [6.2.0-alpha.2](https://github.com/empathyco/x/compare/@empathyco/x-adapter@6.2.0-alpha.1...@empathyco/x-adapter@6.2.0-alpha.2) (2021-07-20)
|
|
79
|
-
|
|
80
|
-
**Note:** Version bump only for package @empathyco/x-adapter
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
## [6.2.0-alpha.1](https://github.com/empathyco/x/compare/@empathyco/x-adapter@6.2.0-alpha.0...@empathyco/x-adapter@6.2.0-alpha.1) (2021-07-20)
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
### Continuous Integration
|
|
90
|
-
|
|
91
|
-
* Fix publishing in x-components. Normalize build scripts. (#46) ([c3c2f85](https://github.com/empathyco/x/commit/c3c2f8519c0de1b164074e87e68e77ad1af0d702)), closes [EX-4413](https://searchbroker.atlassian.net/browse/EX-4413)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
## 6.2.0-alpha.0 (2021-07-14)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
### Features
|
|
99
|
-
|
|
100
|
-
* prepare `search-adapter` for the mono-repo ([59d1443](https://github.com/empathyco/x/commit/59d14434a663d14384532fe9aeee7e4d93c02675)), closes [EX-3854](https://searchbroker.atlassian.net/browse/EX-3854)
|
|
101
|
-
* update `search-adapter` package information (#33) ([a8cdb8d](https://github.com/empathyco/x/commit/a8cdb8d9f9be7f41b40f53e75339df3d1c22bd17)), closes [EX-3935](https://searchbroker.atlassian.net/browse/EX-3935)
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
## 6.1.0 - 2020/06/03
|
|
106
|
-
|
|
107
|
-
> EX-3938 Add support for optional `children` property in `HierarchicalFilters`.
|
|
108
|
-
>
|
|
109
|
-
> EX-3938 Update `@empathy/search-types` to version `9.0.0`.
|
|
110
|
-
|
|
111
|
-
## 6.0.0 - 2020/04/16
|
|
112
|
-
|
|
113
|
-
> EX-3070 Add new template config inside the `FacetConfig` model.
|
|
114
|
-
>
|
|
115
|
-
> EX-3253 Update `@empathy/search-types` to version `8.0.0-alpha.1` and `@empathy/jest-utils` to version `1.3.0`.
|
|
116
|
-
>
|
|
117
|
-
> EX-3253 Add new facet mapper `EmpathyBooleanFilterMapper` which maps `selected`, `value`, `totalResults` properties removed from `EmpathyFilterMapper`.
|
|
118
|
-
>
|
|
119
|
-
> EX-3253 Add `EmpathyBooleanFilterMapper` mapper to `DEPENDENCIES.ResponseMappers.simpleFilter`, `DEPENDENCIES.ResponseMappers.hierarchicalFilter`, `DEPENDENCIES.ResponseMappers.numberRangeFilter` dependencies.
|
|
120
|
-
>
|
|
121
|
-
> EX-3253 Modified `EmpathyRequestFiltersSolrSyntaxMapper` to accept `BooleanFilter` and `EditableNumberRangeFilter`.
|
|
122
|
-
>
|
|
123
|
-
> EX-3253 Renamed `EmpathyNumberRangeFilter` `value` map to `range`.
|
|
124
|
-
>
|
|
125
|
-
> EX-3253 Modified `facets` from `SearchResponse` to make it optional.
|
|
126
|
-
>
|
|
127
|
-
> EX-3302 Update `SearchRequest` interface removing the unused `SortDirection` parameter.
|
|
128
|
-
>
|
|
129
|
-
> EX-3439 Add `EmpathyRequestSortMapper` mapper.
|
|
130
|
-
|
|
131
|
-
## 5.0.0 - 2020/01/07
|
|
132
|
-
|
|
133
|
-
> EX-2413 Add new facet mappers `EmpathyFacetMapper`, `EmpathySimpleFacetMapper`, `EmpathyHierarchicalFacetMapper`, and `EmpathyNumberRangeFacetMapper`.
|
|
134
|
-
>
|
|
135
|
-
> EX-2413 Add new filter mappers `EmpathyFilterMapper`, `EmpathySimpleFilterMapper`, `EmpathyHierarchicalFilterMapper`, and `EmpathyNumberRangeFilterMapper`.
|
|
136
|
-
>
|
|
137
|
-
> EX-2413 Replace facet mappers in `DEPENDENCIES.ResponseMappers.facets` with the new ones.
|
|
138
|
-
>
|
|
139
|
-
> EX-2413 Remove `DEPENDENCIES.ResponseMappers.filter` dependency.
|
|
140
|
-
>
|
|
141
|
-
> EX-2413 Add `DEPENDENCIES.ResponseMappers.simpleFilter`, `DEPENDENCIES.ResponseMappers.hierarchicalFilter`, `DEPENDENCIES.ResponseMappers.numberRangeFilter` with the new filter mappers.
|
|
142
|
-
>
|
|
143
|
-
> EX-2413 Remove `filterDeepness` and `facetName` from `FilterValueMapperParams` interface. Now the facet name can be got from the `filter` as `facetId` property.
|
|
144
|
-
>
|
|
145
|
-
> EX-2413 Add `FacetModelName` and `FilterModelName` types.
|
|
146
|
-
>
|
|
147
|
-
> EX-2413 Replace `filterModelName` prop by `modelName` in the `FacetConfig` interface. Now it has the `FacetModelName` type.
|
|
148
|
-
|
|
149
|
-
## 4.1.0 2020/09/21
|
|
150
|
-
|
|
151
|
-
> EX-2185 Allow passing headers through the request
|
|
152
|
-
>
|
|
153
|
-
> EX-2185 Add `sortDirection` optional parameter to `EmpathySearchRequest` and `SearchRequest`
|
|
154
|
-
>
|
|
155
|
-
> EX-2152 Add api-extractor and improve build
|
|
156
|
-
|
|
157
|
-
## 4.0.0 2020/07/30
|
|
158
|
-
|
|
159
|
-
> EX-1903 Update `@empathy/get-safe-property-chain`, `@empathy/logger`, `@empathy/storage-service`, `@empathybroker/deep-merge` dependencies.
|
|
160
|
-
>
|
|
161
|
-
> EX-1873 Change StorageService's localStorage access lazy.
|
|
162
|
-
>
|
|
163
|
-
> EX-1843 Add ESM build
|
|
164
|
-
>
|
|
165
|
-
> EX-1837 Change next query mapper facets to be an array instead of an object.
|
|
166
|
-
>
|
|
167
|
-
> EX-1605 Add optional `addConfigChangedListener` and `removeConfigChangedListener` methods to subscribe and unsubscribe to config changes.
|
|
168
|
-
>
|
|
169
|
-
> EX-1641 Change default search endpoint from `api{env}.empathybroker.com/search/v1/query/{instance}/search` to `api{env}.empathybroker.com/search/v1/query/{instance}/searchX`
|
|
170
|
-
>
|
|
171
|
-
> EX-1693 Update `@empathy/search-types` to version `5.0.0` and mappers accordingly
|
|
172
|
-
|
|
173
|
-
## 3.2.2 - 2020/06/18
|
|
174
|
-
|
|
175
|
-
> EX-1962 Check `rawFilter.value` in `EmpathyRangeFilterMapper` to avoid error
|
|
176
|
-
|
|
177
|
-
## 3.2.1 - 2020/04/14
|
|
178
|
-
|
|
179
|
-
> EX-1813 Fix `empathy-facet-mapper` not mapping dynamic filters children property.
|
|
180
|
-
|
|
181
|
-
## 3.2.0 - 2020/03/09
|
|
182
|
-
|
|
183
|
-
> EX-1490 Remove warnings about tagging events on production
|
|
184
|
-
|
|
185
|
-
## 3.1.0 - 2020/02/04
|
|
186
|
-
|
|
187
|
-
> EX-1506 Add `isWishlisted` field mapping to `mapResult`'s
|
|
188
|
-
>
|
|
189
|
-
> EX-1376 Externalized in `empathy-search-request.mapper` the logic of appending related tags to the query to a new mapper
|
|
190
|
-
>
|
|
191
|
-
> EX-1376 Now `empathy-queryable-request.mapper` uses `empathy-request-related-tags-query.mapper` to generate the new query with related tags
|
|
192
|
-
>
|
|
193
|
-
> EX-1376 Added new request param mapper `empathy-request-related-tags-query.mapper` which concatenates related tags with the query
|
|
194
|
-
>
|
|
195
|
-
> EX-1376 Now `QueryableRequest` request type allows optionally related tags
|
|
196
|
-
>
|
|
197
|
-
> EX-1489 Add the `rawResponse` to `beforeResponseTransformed`'s hook context
|
|
198
|
-
|
|
199
|
-
## 3.0.1
|
|
200
|
-
|
|
201
|
-
> EX-1540 Update `@empathy/get-safe-property-chain`, `@empathy/logger`, `@empathy/search-types` and `@empathybroker/deep-merge` to use minor version
|
|
202
|
-
>
|
|
203
|
-
> EX-1540 Set a fixed `@empathybroker/eb-tslint` version
|
|
204
|
-
|
|
205
|
-
## 3.0.0
|
|
206
|
-
|
|
207
|
-
> EX-1443 Add new entity `showTagging` used for tracking when te response of a feature has been displayed to the user.
|
|
208
|
-
>
|
|
209
|
-
> EX-1380 Remove first filter auto-selection from `empathy-suggestion-facets.mapper`
|
|
210
|
-
>
|
|
211
|
-
> EX-1276 Add `checkout` to `TrackingResultConfig` interface
|
|
212
|
-
>
|
|
213
|
-
> EX-1355 Removed `preselected` property
|
|
214
|
-
>
|
|
215
|
-
> EX-1292 Added discovery wall features: `getClicksRecommendations`, `getQueriesRecommendations`, `getSectionRecommendations`, `getUserRecommendations`
|
|
216
|
-
|
|
217
|
-
## 2.1.0
|
|
218
|
-
|
|
219
|
-
> EX-1246 Cache API responses with a configurable TTL per feature and invalidation
|
|
220
|
-
|
|
221
|
-
## 2.0.0
|
|
222
|
-
|
|
223
|
-
> EX-1240 Remove `needsParentFilter` and `entityDetected` properties
|
|
224
|
-
|
|
225
|
-
## 1.1.0
|
|
226
|
-
|
|
227
|
-
> EX-1187 Fixed hierarchical filters not mapping parent selected property correctly
|
|
228
|
-
>
|
|
229
|
-
> EX-1203 Removed `toLowerCase` transformation from `rawResult.name` in `empathy-result.mapper`
|
|
230
|
-
>
|
|
231
|
-
> EX-1121 `RecommendationsRequest` now also extends `Partial<QueryableRequest>`
|
|
232
|
-
>
|
|
233
|
-
> EX-1221 `EmpathyFilterMapper` now maps selected state to ancestors if it is true.
|
|
234
|
-
>
|
|
235
|
-
> EX-1221 Now the filters selected state only relies on the previous filter selected state, not on the API response.
|
|
236
|
-
>
|
|
237
|
-
> EX-1221 Set `entityDetected` filters property to false, before removing it in a future PR.
|
|
238
|
-
|
|
239
|
-
## 1.0.2
|
|
240
|
-
|
|
241
|
-
> EX-1178 Made raw filters selected property optional
|
|
242
|
-
|
|
243
|
-
## 1.0.1
|
|
244
|
-
|
|
245
|
-
> EX-1159 Fixed feature-requestor not mapping falsy values
|
|
246
|
-
|
|
247
|
-
## 1.0.0
|
|
248
|
-
|
|
249
|
-
> EX-1017 First search adapter version
|