@empathyco/x-adapter 7.0.0-alpha.2 → 7.0.0-alpha.3

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.
@@ -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,CAAC,WAAW,EAAE;YAChC,EAAE,EAAE,SAAS,CAAC,EAAE;YAChB,KAAK,EAAE,SAAS,CAAC,KAAK;YACtB,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, {\n id: rawDirect.id,\n title: rawDirect.title,\n url: rawDirect.url,\n tagging: {\n click: this.mapTagging(rawDirect.trackable_url, {} as Tagging, context)\n }\n });\n }\n}\n"]}
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 title: string;\n trackable_url: string;\n url: string;\n}\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"]}
@@ -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,CAAC,WAAW,EAAE;YAChC,EAAE,EAAE,SAAS,CAAC,EAAE;YAChB,KAAK,EAAE,SAAS,CAAC,KAAK;YACtB,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, {\n id: rawDirect.id,\n title: rawDirect.title,\n url: rawDirect.url,\n tagging: {\n click: this.mapTagging(rawDirect.trackable_url, {} as Tagging, context)\n }\n });\n }\n}\n"]}
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 title: string;\n trackable_url: string;\n url: string;\n}\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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empathyco/x-adapter",
3
- "version": "7.0.0-alpha.2",
3
+ "version": "7.0.0-alpha.3",
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",
@@ -44,7 +44,7 @@
44
44
  "@empathyco/x-get-safe-property-chain": "^1.2.1-alpha.7",
45
45
  "@empathyco/x-logger": "^1.1.0",
46
46
  "@empathyco/x-storage-service": "^1.3.1-alpha.7",
47
- "@empathyco/x-types": "^10.0.0-alpha.4",
47
+ "@empathyco/x-types": "^10.0.0-alpha.8",
48
48
  "inversify": "~5.0.1",
49
49
  "reflect-metadata": "~0.1.13",
50
50
  "tslib": "~2.3.0"
@@ -62,5 +62,5 @@
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
- "gitHead": "b98d2e2e018a45ebe20c28d276eed8340266cf75"
65
+ "gitHead": "a13dfd7841c2a2debc9b9b6f9b29b6dd7ad59972"
66
66
  }
@@ -6687,32 +6687,6 @@
6687
6687
  "endIndex": 2
6688
6688
  }
6689
6689
  },
6690
- {
6691
- "kind": "PropertySignature",
6692
- "canonicalReference": "@empathyco/x-adapter!EmpathyDirect#title:member",
6693
- "docComment": "",
6694
- "excerptTokens": [
6695
- {
6696
- "kind": "Content",
6697
- "text": "title: "
6698
- },
6699
- {
6700
- "kind": "Content",
6701
- "text": "string"
6702
- },
6703
- {
6704
- "kind": "Content",
6705
- "text": ";"
6706
- }
6707
- ],
6708
- "isOptional": false,
6709
- "releaseTag": "Public",
6710
- "name": "title",
6711
- "propertyTypeTokenRange": {
6712
- "startIndex": 1,
6713
- "endIndex": 2
6714
- }
6715
- },
6716
6690
  {
6717
6691
  "kind": "PropertySignature",
6718
6692
  "canonicalReference": "@empathyco/x-adapter!EmpathyDirect#trackable_url:member",
@@ -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;
@@ -5,7 +5,6 @@
5
5
  */
6
6
  export interface EmpathyDirect {
7
7
  id: string;
8
- title: string;
9
8
  trackable_url: string;
10
9
  url: string;
11
10
  }