@empathyco/x-adapter-platform 1.1.0-alpha.12 → 1.1.0-alpha.13

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.
@@ -32,6 +32,7 @@ exports.relatedPromptSchema = (0, x_adapter_1.createMutableSchema)({
32
32
  toolingDisplayTagging: ({ tagging }) => (0, url_utils_1.getTaggingInfoFromUrl)(tagging.toolingDisplay),
33
33
  tagging: {
34
34
  toolingDisplayTagging: ({ tagging }) => (0, url_utils_1.getTaggingInfoFromUrl)(tagging.toolingDisplay),
35
+ toolingDisplayClickTagging: ({ tagging }) => (0, url_utils_1.getTaggingInfoFromUrl)(tagging.toolingDisplayClick),
35
36
  nextQueriesTagging: {
36
37
  $path: 'nextQueries',
37
38
  $subSchema: exports.nextQueriesRelatedPromptsSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"related-prompt.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/related-prompt.schema.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAO3D,uDAAgE;AAEnD,QAAA,+BAA+B,GAAG,IAAA,+BAAmB,EAAiC;IACjG,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI;IACnB,qBAAqB,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,CACxC,IAAA,iCAAqB,EACnB,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,kBAA0E,CAAA,CAAC,IAAI,CAAC;SACxF,cAAc,CAClB;IACH,0BAA0B,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,CAC7C,IAAA,iCAAqB,EACnB,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,kBAA0E,CAAA,CAAC,IAAI,CAAC;SACxF,mBAAmB,CACvB;IACH,6BAA6B,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,CAChD,IAAA,iCAAqB,EACnB,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,kBAA0E,CAAA,CAAC,IAAI,CAAC;SACxF,sBAAsB,CAC1B;CACJ,CAAC,CAAC;AAEH;;;;GAIG;AACU,QAAA,mBAAmB,GAAG,IAAA,+BAAmB,EAAuC;IAC3F,SAAS,EAAE,GAAG,EAAE,CAAC,eAAe;IAChC,wBAAwB,EAAE;QACxB,KAAK,EAAE,aAAa;QACpB,UAAU,EAAE,uCAA+B;QAC3C,QAAQ,EAAE;YACR,kBAAkB,EAAE,qBAAqB;SAC1C;KACF;IACD,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,IAAI,EAAE,MAAM;IACZ,qBAAqB,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,IAAA,iCAAqB,EAAC,OAAO,CAAC,cAAc,CAAC;IACrF,OAAO,EAAE;QACP,qBAAqB,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,IAAA,iCAAqB,EAAC,OAAO,CAAC,cAAc,CAAC;QACrF,kBAAkB,EAAE;YAClB,KAAK,EAAE,aAAa;YACpB,UAAU,EAAE,uCAA+B;YAC3C,QAAQ,EAAE;gBACR,kBAAkB,EAAE,qBAAqB;aAC1C;SACF;KACF;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { RelatedPrompt, RelatedPromptNextQuery } from '@empathyco/x-types';\nimport { Dictionary } from '@empathyco/x-utils';\nimport {\n PlatformRelatedPrompt,\n PlatformRelatedPromptNextQueriesTagging\n} from '../../types/models/related-prompt.model';\nimport { getTaggingInfoFromUrl } from '../../mappers/url.utils';\n\nexport const nextQueriesRelatedPromptsSchema = createMutableSchema<string, RelatedPromptNextQuery>({\n query: data => data,\n toolingDisplayTagging: (data, $context) =>\n getTaggingInfoFromUrl(\n ($context?.nextQueriesTagging as Dictionary<PlatformRelatedPromptNextQueriesTagging>)[data]\n .toolingDisplay\n ),\n toolingDisplayClickTagging: (data, $context) =>\n getTaggingInfoFromUrl(\n ($context?.nextQueriesTagging as Dictionary<PlatformRelatedPromptNextQueriesTagging>)[data]\n .toolingDisplayClick\n ),\n toolingDisplayAdd2CartTagging: (data, $context) =>\n getTaggingInfoFromUrl(\n ($context?.nextQueriesTagging as Dictionary<PlatformRelatedPromptNextQueriesTagging>)[data]\n .toolingDisplayAdd2Cart\n )\n});\n\n/**\n * Default implementation for the RelatedPromptSchema.\n *\n * @public\n */\nexport const relatedPromptSchema = createMutableSchema<PlatformRelatedPrompt, RelatedPrompt>({\n modelName: () => 'RelatedPrompt',\n relatedPromptNextQueries: {\n $path: 'nextQueries',\n $subSchema: nextQueriesRelatedPromptsSchema,\n $context: {\n nextQueriesTagging: 'tagging.nextQueries'\n }\n },\n nextQueries: 'nextQueries',\n suggestionText: 'suggestionText',\n type: 'type',\n toolingDisplayTagging: ({ tagging }) => getTaggingInfoFromUrl(tagging.toolingDisplay),\n tagging: {\n toolingDisplayTagging: ({ tagging }) => getTaggingInfoFromUrl(tagging.toolingDisplay),\n nextQueriesTagging: {\n $path: 'nextQueries',\n $subSchema: nextQueriesRelatedPromptsSchema,\n $context: {\n nextQueriesTagging: 'tagging.nextQueries'\n }\n }\n }\n});\n"]}
1
+ {"version":3,"file":"related-prompt.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/related-prompt.schema.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAO3D,uDAAgE;AAEnD,QAAA,+BAA+B,GAAG,IAAA,+BAAmB,EAAiC;IACjG,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI;IACnB,qBAAqB,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,CACxC,IAAA,iCAAqB,EACnB,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,kBAA0E,CAAA,CAAC,IAAI,CAAC;SACxF,cAAc,CAClB;IACH,0BAA0B,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,CAC7C,IAAA,iCAAqB,EACnB,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,kBAA0E,CAAA,CAAC,IAAI,CAAC;SACxF,mBAAmB,CACvB;IACH,6BAA6B,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,CAChD,IAAA,iCAAqB,EACnB,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,kBAA0E,CAAA,CAAC,IAAI,CAAC;SACxF,sBAAsB,CAC1B;CACJ,CAAC,CAAC;AAEH;;;;GAIG;AACU,QAAA,mBAAmB,GAAG,IAAA,+BAAmB,EAAuC;IAC3F,SAAS,EAAE,GAAG,EAAE,CAAC,eAAe;IAChC,wBAAwB,EAAE;QACxB,KAAK,EAAE,aAAa;QACpB,UAAU,EAAE,uCAA+B;QAC3C,QAAQ,EAAE;YACR,kBAAkB,EAAE,qBAAqB;SAC1C;KACF;IACD,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,IAAI,EAAE,MAAM;IACZ,qBAAqB,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,IAAA,iCAAqB,EAAC,OAAO,CAAC,cAAc,CAAC;IACrF,OAAO,EAAE;QACP,qBAAqB,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,IAAA,iCAAqB,EAAC,OAAO,CAAC,cAAc,CAAC;QACrF,0BAA0B,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,IAAA,iCAAqB,EAAC,OAAO,CAAC,mBAAmB,CAAC;QAC/F,kBAAkB,EAAE;YAClB,KAAK,EAAE,aAAa;YACpB,UAAU,EAAE,uCAA+B;YAC3C,QAAQ,EAAE;gBACR,kBAAkB,EAAE,qBAAqB;aAC1C;SACF;KACF;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { RelatedPrompt, RelatedPromptNextQuery } from '@empathyco/x-types';\nimport { Dictionary } from '@empathyco/x-utils';\nimport {\n PlatformRelatedPrompt,\n PlatformRelatedPromptNextQueriesTagging\n} from '../../types/models/related-prompt.model';\nimport { getTaggingInfoFromUrl } from '../../mappers/url.utils';\n\nexport const nextQueriesRelatedPromptsSchema = createMutableSchema<string, RelatedPromptNextQuery>({\n query: data => data,\n toolingDisplayTagging: (data, $context) =>\n getTaggingInfoFromUrl(\n ($context?.nextQueriesTagging as Dictionary<PlatformRelatedPromptNextQueriesTagging>)[data]\n .toolingDisplay\n ),\n toolingDisplayClickTagging: (data, $context) =>\n getTaggingInfoFromUrl(\n ($context?.nextQueriesTagging as Dictionary<PlatformRelatedPromptNextQueriesTagging>)[data]\n .toolingDisplayClick\n ),\n toolingDisplayAdd2CartTagging: (data, $context) =>\n getTaggingInfoFromUrl(\n ($context?.nextQueriesTagging as Dictionary<PlatformRelatedPromptNextQueriesTagging>)[data]\n .toolingDisplayAdd2Cart\n )\n});\n\n/**\n * Default implementation for the RelatedPromptSchema.\n *\n * @public\n */\nexport const relatedPromptSchema = createMutableSchema<PlatformRelatedPrompt, RelatedPrompt>({\n modelName: () => 'RelatedPrompt',\n relatedPromptNextQueries: {\n $path: 'nextQueries',\n $subSchema: nextQueriesRelatedPromptsSchema,\n $context: {\n nextQueriesTagging: 'tagging.nextQueries'\n }\n },\n nextQueries: 'nextQueries',\n suggestionText: 'suggestionText',\n type: 'type',\n toolingDisplayTagging: ({ tagging }) => getTaggingInfoFromUrl(tagging.toolingDisplay),\n tagging: {\n toolingDisplayTagging: ({ tagging }) => getTaggingInfoFromUrl(tagging.toolingDisplay),\n toolingDisplayClickTagging: ({ tagging }) => getTaggingInfoFromUrl(tagging.toolingDisplayClick),\n nextQueriesTagging: {\n $path: 'nextQueries',\n $subSchema: nextQueriesRelatedPromptsSchema,\n $context: {\n nextQueriesTagging: 'tagging.nextQueries'\n }\n }\n }\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"related-prompt.model.js","sourceRoot":"","sources":["../../../../src/types/models/related-prompt.model.ts"],"names":[],"mappings":"","sourcesContent":["import { Dictionary } from '@empathyco/x-utils';\n\n/**\n * Related prompt model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformRelatedPrompt {\n nextQueries: string[];\n suggestionText: string;\n type: 'SYNTHETIC' | 'CURATED';\n tagging: PlatformRelatedPromptTagging;\n}\n\n/**\n * Related prompt model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformRelatedPromptTagging {\n toolingDisplay: string;\n nextQueries: Dictionary<PlatformRelatedPromptNextQueriesTagging>;\n}\n\n/**\n * Related prompt model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformRelatedPromptNextQueriesTagging {\n toolingDisplay: string;\n toolingDisplayClick: string;\n toolingDisplayAdd2Cart: string;\n}\n"]}
1
+ {"version":3,"file":"related-prompt.model.js","sourceRoot":"","sources":["../../../../src/types/models/related-prompt.model.ts"],"names":[],"mappings":"","sourcesContent":["import { Dictionary } from '@empathyco/x-utils';\n\n/**\n * Related prompt model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformRelatedPrompt {\n nextQueries: string[];\n suggestionText: string;\n type: 'SYNTHETIC' | 'CURATED';\n tagging: PlatformRelatedPromptTagging;\n}\n\n/**\n * Related prompt model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformRelatedPromptTagging {\n toolingDisplay: string;\n toolingDisplayClick: string;\n nextQueries: Dictionary<PlatformRelatedPromptNextQueriesTagging>;\n}\n\n/**\n * Related prompt model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformRelatedPromptNextQueriesTagging {\n toolingDisplay: string;\n toolingDisplayClick: string;\n toolingDisplayAdd2Cart: string;\n}\n"]}
@@ -29,6 +29,7 @@ export const relatedPromptSchema = createMutableSchema({
29
29
  toolingDisplayTagging: ({ tagging }) => getTaggingInfoFromUrl(tagging.toolingDisplay),
30
30
  tagging: {
31
31
  toolingDisplayTagging: ({ tagging }) => getTaggingInfoFromUrl(tagging.toolingDisplay),
32
+ toolingDisplayClickTagging: ({ tagging }) => getTaggingInfoFromUrl(tagging.toolingDisplayClick),
32
33
  nextQueriesTagging: {
33
34
  $path: 'nextQueries',
34
35
  $subSchema: nextQueriesRelatedPromptsSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"related-prompt.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/related-prompt.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAO3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,CAAC,MAAM,+BAA+B,GAAG,mBAAmB,CAAiC;IACjG,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI;IACnB,qBAAqB,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,CACxC,qBAAqB,CACnB,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,kBAA0E,CAAA,CAAC,IAAI,CAAC;SACxF,cAAc,CAClB;IACH,0BAA0B,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,CAC7C,qBAAqB,CACnB,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,kBAA0E,CAAA,CAAC,IAAI,CAAC;SACxF,mBAAmB,CACvB;IACH,6BAA6B,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,CAChD,qBAAqB,CACnB,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,kBAA0E,CAAA,CAAC,IAAI,CAAC;SACxF,sBAAsB,CAC1B;CACJ,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAuC;IAC3F,SAAS,EAAE,GAAG,EAAE,CAAC,eAAe;IAChC,wBAAwB,EAAE;QACxB,KAAK,EAAE,aAAa;QACpB,UAAU,EAAE,+BAA+B;QAC3C,QAAQ,EAAE;YACR,kBAAkB,EAAE,qBAAqB;SAC1C;KACF;IACD,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,IAAI,EAAE,MAAM;IACZ,qBAAqB,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,qBAAqB,CAAC,OAAO,CAAC,cAAc,CAAC;IACrF,OAAO,EAAE;QACP,qBAAqB,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,qBAAqB,CAAC,OAAO,CAAC,cAAc,CAAC;QACrF,kBAAkB,EAAE;YAClB,KAAK,EAAE,aAAa;YACpB,UAAU,EAAE,+BAA+B;YAC3C,QAAQ,EAAE;gBACR,kBAAkB,EAAE,qBAAqB;aAC1C;SACF;KACF;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { RelatedPrompt, RelatedPromptNextQuery } from '@empathyco/x-types';\nimport { Dictionary } from '@empathyco/x-utils';\nimport {\n PlatformRelatedPrompt,\n PlatformRelatedPromptNextQueriesTagging\n} from '../../types/models/related-prompt.model';\nimport { getTaggingInfoFromUrl } from '../../mappers/url.utils';\n\nexport const nextQueriesRelatedPromptsSchema = createMutableSchema<string, RelatedPromptNextQuery>({\n query: data => data,\n toolingDisplayTagging: (data, $context) =>\n getTaggingInfoFromUrl(\n ($context?.nextQueriesTagging as Dictionary<PlatformRelatedPromptNextQueriesTagging>)[data]\n .toolingDisplay\n ),\n toolingDisplayClickTagging: (data, $context) =>\n getTaggingInfoFromUrl(\n ($context?.nextQueriesTagging as Dictionary<PlatformRelatedPromptNextQueriesTagging>)[data]\n .toolingDisplayClick\n ),\n toolingDisplayAdd2CartTagging: (data, $context) =>\n getTaggingInfoFromUrl(\n ($context?.nextQueriesTagging as Dictionary<PlatformRelatedPromptNextQueriesTagging>)[data]\n .toolingDisplayAdd2Cart\n )\n});\n\n/**\n * Default implementation for the RelatedPromptSchema.\n *\n * @public\n */\nexport const relatedPromptSchema = createMutableSchema<PlatformRelatedPrompt, RelatedPrompt>({\n modelName: () => 'RelatedPrompt',\n relatedPromptNextQueries: {\n $path: 'nextQueries',\n $subSchema: nextQueriesRelatedPromptsSchema,\n $context: {\n nextQueriesTagging: 'tagging.nextQueries'\n }\n },\n nextQueries: 'nextQueries',\n suggestionText: 'suggestionText',\n type: 'type',\n toolingDisplayTagging: ({ tagging }) => getTaggingInfoFromUrl(tagging.toolingDisplay),\n tagging: {\n toolingDisplayTagging: ({ tagging }) => getTaggingInfoFromUrl(tagging.toolingDisplay),\n nextQueriesTagging: {\n $path: 'nextQueries',\n $subSchema: nextQueriesRelatedPromptsSchema,\n $context: {\n nextQueriesTagging: 'tagging.nextQueries'\n }\n }\n }\n});\n"]}
1
+ {"version":3,"file":"related-prompt.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/related-prompt.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAO3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,CAAC,MAAM,+BAA+B,GAAG,mBAAmB,CAAiC;IACjG,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI;IACnB,qBAAqB,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,CACxC,qBAAqB,CACnB,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,kBAA0E,CAAA,CAAC,IAAI,CAAC;SACxF,cAAc,CAClB;IACH,0BAA0B,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,CAC7C,qBAAqB,CACnB,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,kBAA0E,CAAA,CAAC,IAAI,CAAC;SACxF,mBAAmB,CACvB;IACH,6BAA6B,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,CAChD,qBAAqB,CACnB,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,kBAA0E,CAAA,CAAC,IAAI,CAAC;SACxF,sBAAsB,CAC1B;CACJ,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAuC;IAC3F,SAAS,EAAE,GAAG,EAAE,CAAC,eAAe;IAChC,wBAAwB,EAAE;QACxB,KAAK,EAAE,aAAa;QACpB,UAAU,EAAE,+BAA+B;QAC3C,QAAQ,EAAE;YACR,kBAAkB,EAAE,qBAAqB;SAC1C;KACF;IACD,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,IAAI,EAAE,MAAM;IACZ,qBAAqB,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,qBAAqB,CAAC,OAAO,CAAC,cAAc,CAAC;IACrF,OAAO,EAAE;QACP,qBAAqB,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,qBAAqB,CAAC,OAAO,CAAC,cAAc,CAAC;QACrF,0BAA0B,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,qBAAqB,CAAC,OAAO,CAAC,mBAAmB,CAAC;QAC/F,kBAAkB,EAAE;YAClB,KAAK,EAAE,aAAa;YACpB,UAAU,EAAE,+BAA+B;YAC3C,QAAQ,EAAE;gBACR,kBAAkB,EAAE,qBAAqB;aAC1C;SACF;KACF;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { RelatedPrompt, RelatedPromptNextQuery } from '@empathyco/x-types';\nimport { Dictionary } from '@empathyco/x-utils';\nimport {\n PlatformRelatedPrompt,\n PlatformRelatedPromptNextQueriesTagging\n} from '../../types/models/related-prompt.model';\nimport { getTaggingInfoFromUrl } from '../../mappers/url.utils';\n\nexport const nextQueriesRelatedPromptsSchema = createMutableSchema<string, RelatedPromptNextQuery>({\n query: data => data,\n toolingDisplayTagging: (data, $context) =>\n getTaggingInfoFromUrl(\n ($context?.nextQueriesTagging as Dictionary<PlatformRelatedPromptNextQueriesTagging>)[data]\n .toolingDisplay\n ),\n toolingDisplayClickTagging: (data, $context) =>\n getTaggingInfoFromUrl(\n ($context?.nextQueriesTagging as Dictionary<PlatformRelatedPromptNextQueriesTagging>)[data]\n .toolingDisplayClick\n ),\n toolingDisplayAdd2CartTagging: (data, $context) =>\n getTaggingInfoFromUrl(\n ($context?.nextQueriesTagging as Dictionary<PlatformRelatedPromptNextQueriesTagging>)[data]\n .toolingDisplayAdd2Cart\n )\n});\n\n/**\n * Default implementation for the RelatedPromptSchema.\n *\n * @public\n */\nexport const relatedPromptSchema = createMutableSchema<PlatformRelatedPrompt, RelatedPrompt>({\n modelName: () => 'RelatedPrompt',\n relatedPromptNextQueries: {\n $path: 'nextQueries',\n $subSchema: nextQueriesRelatedPromptsSchema,\n $context: {\n nextQueriesTagging: 'tagging.nextQueries'\n }\n },\n nextQueries: 'nextQueries',\n suggestionText: 'suggestionText',\n type: 'type',\n toolingDisplayTagging: ({ tagging }) => getTaggingInfoFromUrl(tagging.toolingDisplay),\n tagging: {\n toolingDisplayTagging: ({ tagging }) => getTaggingInfoFromUrl(tagging.toolingDisplay),\n toolingDisplayClickTagging: ({ tagging }) => getTaggingInfoFromUrl(tagging.toolingDisplayClick),\n nextQueriesTagging: {\n $path: 'nextQueries',\n $subSchema: nextQueriesRelatedPromptsSchema,\n $context: {\n nextQueriesTagging: 'tagging.nextQueries'\n }\n }\n }\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"related-prompt.model.js","sourceRoot":"","sources":["../../../../src/types/models/related-prompt.model.ts"],"names":[],"mappings":"","sourcesContent":["import { Dictionary } from '@empathyco/x-utils';\n\n/**\n * Related prompt model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformRelatedPrompt {\n nextQueries: string[];\n suggestionText: string;\n type: 'SYNTHETIC' | 'CURATED';\n tagging: PlatformRelatedPromptTagging;\n}\n\n/**\n * Related prompt model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformRelatedPromptTagging {\n toolingDisplay: string;\n nextQueries: Dictionary<PlatformRelatedPromptNextQueriesTagging>;\n}\n\n/**\n * Related prompt model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformRelatedPromptNextQueriesTagging {\n toolingDisplay: string;\n toolingDisplayClick: string;\n toolingDisplayAdd2Cart: string;\n}\n"]}
1
+ {"version":3,"file":"related-prompt.model.js","sourceRoot":"","sources":["../../../../src/types/models/related-prompt.model.ts"],"names":[],"mappings":"","sourcesContent":["import { Dictionary } from '@empathyco/x-utils';\n\n/**\n * Related prompt model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformRelatedPrompt {\n nextQueries: string[];\n suggestionText: string;\n type: 'SYNTHETIC' | 'CURATED';\n tagging: PlatformRelatedPromptTagging;\n}\n\n/**\n * Related prompt model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformRelatedPromptTagging {\n toolingDisplay: string;\n toolingDisplayClick: string;\n nextQueries: Dictionary<PlatformRelatedPromptNextQueriesTagging>;\n}\n\n/**\n * Related prompt model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformRelatedPromptNextQueriesTagging {\n toolingDisplay: string;\n toolingDisplayClick: string;\n toolingDisplayAdd2Cart: string;\n}\n"]}
@@ -17,6 +17,7 @@ export interface PlatformRelatedPrompt {
17
17
  */
18
18
  export interface PlatformRelatedPromptTagging {
19
19
  toolingDisplay: string;
20
+ toolingDisplayClick: string;
20
21
  nextQueries: Dictionary<PlatformRelatedPromptNextQueriesTagging>;
21
22
  }
22
23
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empathyco/x-adapter-platform",
3
- "version": "1.1.0-alpha.12",
3
+ "version": "1.1.0-alpha.13",
4
4
  "description": "A search client for the Empathy Platform API",
5
5
  "author": "Empathy Systems Corporation S.L.",
6
6
  "license": "Apache-2.0",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@empathyco/x-adapter": "^8.1.0-alpha.1",
45
- "@empathyco/x-types": "^10.1.0-alpha.9",
45
+ "@empathyco/x-types": "^10.1.0-alpha.10",
46
46
  "@empathyco/x-utils": "^1.0.3-alpha.2",
47
47
  "tslib": "~2.6.0"
48
48
  },
@@ -59,5 +59,5 @@
59
59
  "publishConfig": {
60
60
  "access": "public"
61
61
  },
62
- "gitHead": "2658b6fbe2ccc7fb2a18c9ee4a0e1b3e092676ec"
62
+ "gitHead": "7860b6d1aa053348d97266d66dbc72704ebabeb6"
63
63
  }
@@ -4174,6 +4174,33 @@
4174
4174
  "startIndex": 1,
4175
4175
  "endIndex": 2
4176
4176
  }
4177
+ },
4178
+ {
4179
+ "kind": "PropertySignature",
4180
+ "canonicalReference": "@empathyco/x-adapter-platform!PlatformRelatedPromptTagging#toolingDisplayClick:member",
4181
+ "docComment": "",
4182
+ "excerptTokens": [
4183
+ {
4184
+ "kind": "Content",
4185
+ "text": "toolingDisplayClick: "
4186
+ },
4187
+ {
4188
+ "kind": "Content",
4189
+ "text": "string"
4190
+ },
4191
+ {
4192
+ "kind": "Content",
4193
+ "text": ";"
4194
+ }
4195
+ ],
4196
+ "isReadonly": false,
4197
+ "isOptional": false,
4198
+ "releaseTag": "Public",
4199
+ "name": "toolingDisplayClick",
4200
+ "propertyTypeTokenRange": {
4201
+ "startIndex": 1,
4202
+ "endIndex": 2
4203
+ }
4177
4204
  }
4178
4205
  ],
4179
4206
  "extendsTokenRanges": []
@@ -421,6 +421,8 @@ export interface PlatformRelatedPromptTagging {
421
421
  nextQueries: Dictionary<PlatformRelatedPromptNextQueriesTagging>;
422
422
  // (undocumented)
423
423
  toolingDisplay: string;
424
+ // (undocumented)
425
+ toolingDisplayClick: string;
424
426
  }
425
427
 
426
428
  // @public