@empathyco/x-adapter-platform 1.1.0-alpha.10 → 1.1.0-alpha.12
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/endpoint-adapters/related-prompts.endpoint-adapter.js +2 -2
- package/dist/cjs/endpoint-adapters/related-prompts.endpoint-adapter.js.map +1 -1
- package/dist/cjs/schemas/models/related-prompt.schema.js +30 -2
- package/dist/cjs/schemas/models/related-prompt.schema.js.map +1 -1
- package/dist/cjs/types/models/related-prompt.model.js.map +1 -1
- package/dist/esm/endpoint-adapters/related-prompts.endpoint-adapter.js +1 -1
- package/dist/esm/endpoint-adapters/related-prompts.endpoint-adapter.js.map +1 -1
- package/dist/esm/schemas/models/related-prompt.schema.js +29 -1
- package/dist/esm/schemas/models/related-prompt.schema.js.map +1 -1
- package/dist/esm/types/models/related-prompt.model.js.map +1 -1
- package/dist/types/schemas/models/related-prompt.schema.d.ts +2 -1
- package/dist/types/types/models/related-prompt.model.d.ts +21 -0
- package/package.json +3 -3
- package/report/x-adapter-platform.api.json +254 -0
- package/report/x-adapter-platform.api.md +25 -0
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.relatedPromptsEndpointAdapter = void 0;
|
|
4
4
|
const x_adapter_1 = require("@empathyco/x-adapter");
|
|
5
|
-
const related_prompts_request_mapper_1 = require("../mappers/requests/related-prompts-request.mapper");
|
|
6
5
|
const related_prompts_response_mapper_1 = require("../mappers/responses/related-prompts-response.mapper");
|
|
6
|
+
const index_1 = require("../mappers/index");
|
|
7
7
|
const utils_1 = require("./utils");
|
|
8
8
|
/**
|
|
9
9
|
* Default adapter for the related prompt endpoint.
|
|
@@ -13,7 +13,7 @@ const utils_1 = require("./utils");
|
|
|
13
13
|
*/
|
|
14
14
|
exports.relatedPromptsEndpointAdapter = (0, x_adapter_1.endpointAdapterFactory)({
|
|
15
15
|
endpoint: from => (0, x_adapter_1.interpolate)(`${(0, utils_1.getBeaconServiceUrl)(from)}/relatedprompts/{extraParams.instance}`, from),
|
|
16
|
-
requestMapper:
|
|
16
|
+
requestMapper: index_1.relatedPromptsRequestMapper,
|
|
17
17
|
responseMapper: related_prompts_response_mapper_1.relatedPromptsResponseMapper,
|
|
18
18
|
defaultRequestOptions: {
|
|
19
19
|
id: 'related-prompts',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"related-prompts.endpoint-adapter.js","sourceRoot":"","sources":["../../../src/endpoint-adapters/related-prompts.endpoint-adapter.ts"],"names":[],"mappings":";;;AAAA,oDAA2E;AAE3E,
|
|
1
|
+
{"version":3,"file":"related-prompts.endpoint-adapter.js","sourceRoot":"","sources":["../../../src/endpoint-adapters/related-prompts.endpoint-adapter.ts"],"names":[],"mappings":";;;AAAA,oDAA2E;AAE3E,0GAAoG;AACpG,4CAA+D;AAC/D,mCAA8C;AAE9C;;;;;GAKG;AACU,QAAA,6BAA6B,GAAG,IAAA,kCAAsB,EAGjE;IACA,QAAQ,EAAE,IAAI,CAAC,EAAE,CACf,IAAA,uBAAW,EAAC,GAAG,IAAA,2BAAmB,EAAC,IAAI,CAAC,wCAAwC,EAAE,IAAI,CAAC;IACzF,aAAa,EAAE,mCAA2B;IAC1C,cAAc,EAAE,8DAA4B;IAC5C,qBAAqB,EAAE;QACrB,EAAE,EAAE,iBAAiB;QACrB,UAAU,EAAE;YACV,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC,CAAC","sourcesContent":["import { endpointAdapterFactory, interpolate } from '@empathyco/x-adapter';\nimport { RelatedPromptsRequest, RelatedPromptsResponse } from '@empathyco/x-types';\nimport { relatedPromptsResponseMapper } from '../mappers/responses/related-prompts-response.mapper';\nimport { relatedPromptsRequestMapper } from '../mappers/index';\nimport { getBeaconServiceUrl } from './utils';\n\n/**\n * Default adapter for the related prompt endpoint.\n * This endpoint does not support pagination in the request.\n *\n * @public\n */\nexport const relatedPromptsEndpointAdapter = endpointAdapterFactory<\n RelatedPromptsRequest,\n RelatedPromptsResponse\n>({\n endpoint: from =>\n interpolate(`${getBeaconServiceUrl(from)}/relatedprompts/{extraParams.instance}`, from),\n requestMapper: relatedPromptsRequestMapper,\n responseMapper: relatedPromptsResponseMapper,\n defaultRequestOptions: {\n id: 'related-prompts',\n parameters: {\n internal: true\n }\n }\n});\n"]}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.relatedPromptSchema = void 0;
|
|
3
|
+
exports.relatedPromptSchema = exports.nextQueriesRelatedPromptsSchema = void 0;
|
|
4
4
|
const x_adapter_1 = require("@empathyco/x-adapter");
|
|
5
|
+
const url_utils_1 = require("../../mappers/url.utils");
|
|
6
|
+
exports.nextQueriesRelatedPromptsSchema = (0, x_adapter_1.createMutableSchema)({
|
|
7
|
+
query: data => data,
|
|
8
|
+
toolingDisplayTagging: (data, $context) => (0, url_utils_1.getTaggingInfoFromUrl)(($context === null || $context === void 0 ? void 0 : $context.nextQueriesTagging)[data]
|
|
9
|
+
.toolingDisplay),
|
|
10
|
+
toolingDisplayClickTagging: (data, $context) => (0, url_utils_1.getTaggingInfoFromUrl)(($context === null || $context === void 0 ? void 0 : $context.nextQueriesTagging)[data]
|
|
11
|
+
.toolingDisplayClick),
|
|
12
|
+
toolingDisplayAdd2CartTagging: (data, $context) => (0, url_utils_1.getTaggingInfoFromUrl)(($context === null || $context === void 0 ? void 0 : $context.nextQueriesTagging)[data]
|
|
13
|
+
.toolingDisplayAdd2Cart)
|
|
14
|
+
});
|
|
5
15
|
/**
|
|
6
16
|
* Default implementation for the RelatedPromptSchema.
|
|
7
17
|
*
|
|
@@ -9,8 +19,26 @@ const x_adapter_1 = require("@empathyco/x-adapter");
|
|
|
9
19
|
*/
|
|
10
20
|
exports.relatedPromptSchema = (0, x_adapter_1.createMutableSchema)({
|
|
11
21
|
modelName: () => 'RelatedPrompt',
|
|
22
|
+
relatedPromptNextQueries: {
|
|
23
|
+
$path: 'nextQueries',
|
|
24
|
+
$subSchema: exports.nextQueriesRelatedPromptsSchema,
|
|
25
|
+
$context: {
|
|
26
|
+
nextQueriesTagging: 'tagging.nextQueries'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
12
29
|
nextQueries: 'nextQueries',
|
|
13
30
|
suggestionText: 'suggestionText',
|
|
14
|
-
type: 'type'
|
|
31
|
+
type: 'type',
|
|
32
|
+
toolingDisplayTagging: ({ tagging }) => (0, url_utils_1.getTaggingInfoFromUrl)(tagging.toolingDisplay),
|
|
33
|
+
tagging: {
|
|
34
|
+
toolingDisplayTagging: ({ tagging }) => (0, url_utils_1.getTaggingInfoFromUrl)(tagging.toolingDisplay),
|
|
35
|
+
nextQueriesTagging: {
|
|
36
|
+
$path: 'nextQueries',
|
|
37
|
+
$subSchema: exports.nextQueriesRelatedPromptsSchema,
|
|
38
|
+
$context: {
|
|
39
|
+
nextQueriesTagging: 'tagging.nextQueries'
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
15
43
|
});
|
|
16
44
|
//# sourceMappingURL=related-prompt.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"related-prompt.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/related-prompt.schema.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"related-prompt.model.js","sourceRoot":"","sources":["../../../../src/types/models/related-prompt.model.ts"],"names":[],"mappings":"","sourcesContent":["/**\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}\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 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,6 +1,6 @@
|
|
|
1
1
|
import { endpointAdapterFactory, interpolate } from '@empathyco/x-adapter';
|
|
2
|
-
import { relatedPromptsRequestMapper } from '../mappers/requests/related-prompts-request.mapper';
|
|
3
2
|
import { relatedPromptsResponseMapper } from '../mappers/responses/related-prompts-response.mapper';
|
|
3
|
+
import { relatedPromptsRequestMapper } from '../mappers/index';
|
|
4
4
|
import { getBeaconServiceUrl } from './utils';
|
|
5
5
|
/**
|
|
6
6
|
* Default adapter for the related prompt endpoint.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"related-prompts.endpoint-adapter.js","sourceRoot":"","sources":["../../../src/endpoint-adapters/related-prompts.endpoint-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE3E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"related-prompts.endpoint-adapter.js","sourceRoot":"","sources":["../../../src/endpoint-adapters/related-prompts.endpoint-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE3E,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AACpG,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,sBAAsB,CAGjE;IACA,QAAQ,EAAE,IAAI,CAAC,EAAE,CACf,WAAW,CAAC,GAAG,mBAAmB,CAAC,IAAI,CAAC,wCAAwC,EAAE,IAAI,CAAC;IACzF,aAAa,EAAE,2BAA2B;IAC1C,cAAc,EAAE,4BAA4B;IAC5C,qBAAqB,EAAE;QACrB,EAAE,EAAE,iBAAiB;QACrB,UAAU,EAAE;YACV,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC,CAAC","sourcesContent":["import { endpointAdapterFactory, interpolate } from '@empathyco/x-adapter';\nimport { RelatedPromptsRequest, RelatedPromptsResponse } from '@empathyco/x-types';\nimport { relatedPromptsResponseMapper } from '../mappers/responses/related-prompts-response.mapper';\nimport { relatedPromptsRequestMapper } from '../mappers/index';\nimport { getBeaconServiceUrl } from './utils';\n\n/**\n * Default adapter for the related prompt endpoint.\n * This endpoint does not support pagination in the request.\n *\n * @public\n */\nexport const relatedPromptsEndpointAdapter = endpointAdapterFactory<\n RelatedPromptsRequest,\n RelatedPromptsResponse\n>({\n endpoint: from =>\n interpolate(`${getBeaconServiceUrl(from)}/relatedprompts/{extraParams.instance}`, from),\n requestMapper: relatedPromptsRequestMapper,\n responseMapper: relatedPromptsResponseMapper,\n defaultRequestOptions: {\n id: 'related-prompts',\n parameters: {\n internal: true\n }\n }\n});\n"]}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { createMutableSchema } from '@empathyco/x-adapter';
|
|
2
|
+
import { getTaggingInfoFromUrl } from '../../mappers/url.utils';
|
|
3
|
+
export const nextQueriesRelatedPromptsSchema = createMutableSchema({
|
|
4
|
+
query: data => data,
|
|
5
|
+
toolingDisplayTagging: (data, $context) => getTaggingInfoFromUrl(($context === null || $context === void 0 ? void 0 : $context.nextQueriesTagging)[data]
|
|
6
|
+
.toolingDisplay),
|
|
7
|
+
toolingDisplayClickTagging: (data, $context) => getTaggingInfoFromUrl(($context === null || $context === void 0 ? void 0 : $context.nextQueriesTagging)[data]
|
|
8
|
+
.toolingDisplayClick),
|
|
9
|
+
toolingDisplayAdd2CartTagging: (data, $context) => getTaggingInfoFromUrl(($context === null || $context === void 0 ? void 0 : $context.nextQueriesTagging)[data]
|
|
10
|
+
.toolingDisplayAdd2Cart)
|
|
11
|
+
});
|
|
2
12
|
/**
|
|
3
13
|
* Default implementation for the RelatedPromptSchema.
|
|
4
14
|
*
|
|
@@ -6,8 +16,26 @@ import { createMutableSchema } from '@empathyco/x-adapter';
|
|
|
6
16
|
*/
|
|
7
17
|
export const relatedPromptSchema = createMutableSchema({
|
|
8
18
|
modelName: () => 'RelatedPrompt',
|
|
19
|
+
relatedPromptNextQueries: {
|
|
20
|
+
$path: 'nextQueries',
|
|
21
|
+
$subSchema: nextQueriesRelatedPromptsSchema,
|
|
22
|
+
$context: {
|
|
23
|
+
nextQueriesTagging: 'tagging.nextQueries'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
9
26
|
nextQueries: 'nextQueries',
|
|
10
27
|
suggestionText: 'suggestionText',
|
|
11
|
-
type: 'type'
|
|
28
|
+
type: 'type',
|
|
29
|
+
toolingDisplayTagging: ({ tagging }) => getTaggingInfoFromUrl(tagging.toolingDisplay),
|
|
30
|
+
tagging: {
|
|
31
|
+
toolingDisplayTagging: ({ tagging }) => getTaggingInfoFromUrl(tagging.toolingDisplay),
|
|
32
|
+
nextQueriesTagging: {
|
|
33
|
+
$path: 'nextQueries',
|
|
34
|
+
$subSchema: nextQueriesRelatedPromptsSchema,
|
|
35
|
+
$context: {
|
|
36
|
+
nextQueriesTagging: 'tagging.nextQueries'
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
12
40
|
});
|
|
13
41
|
//# sourceMappingURL=related-prompt.schema.js.map
|
|
@@ -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;
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"related-prompt.model.js","sourceRoot":"","sources":["../../../../src/types/models/related-prompt.model.ts"],"names":[],"mappings":"","sourcesContent":["/**\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}\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 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,5 +1,6 @@
|
|
|
1
|
-
import { RelatedPrompt } from '@empathyco/x-types';
|
|
1
|
+
import { RelatedPrompt, RelatedPromptNextQuery } from '@empathyco/x-types';
|
|
2
2
|
import { PlatformRelatedPrompt } from '../../types/models/related-prompt.model';
|
|
3
|
+
export declare const nextQueriesRelatedPromptsSchema: import("@empathyco/x-adapter").MutableSchema<string, RelatedPromptNextQuery>;
|
|
3
4
|
/**
|
|
4
5
|
* Default implementation for the RelatedPromptSchema.
|
|
5
6
|
*
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Dictionary } from '@empathyco/x-utils';
|
|
1
2
|
/**
|
|
2
3
|
* Related prompt model for the `platform` API.
|
|
3
4
|
*
|
|
@@ -7,4 +8,24 @@ export interface PlatformRelatedPrompt {
|
|
|
7
8
|
nextQueries: string[];
|
|
8
9
|
suggestionText: string;
|
|
9
10
|
type: 'SYNTHETIC' | 'CURATED';
|
|
11
|
+
tagging: PlatformRelatedPromptTagging;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Related prompt model for the `platform` API.
|
|
15
|
+
*
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export interface PlatformRelatedPromptTagging {
|
|
19
|
+
toolingDisplay: string;
|
|
20
|
+
nextQueries: Dictionary<PlatformRelatedPromptNextQueriesTagging>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Related prompt model for the `platform` API.
|
|
24
|
+
*
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
export interface PlatformRelatedPromptNextQueriesTagging {
|
|
28
|
+
toolingDisplay: string;
|
|
29
|
+
toolingDisplayClick: string;
|
|
30
|
+
toolingDisplayAdd2Cart: string;
|
|
10
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-adapter-platform",
|
|
3
|
-
"version": "1.1.0-alpha.
|
|
3
|
+
"version": "1.1.0-alpha.12",
|
|
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.
|
|
45
|
+
"@empathyco/x-types": "^10.1.0-alpha.9",
|
|
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": "
|
|
62
|
+
"gitHead": "2658b6fbe2ccc7fb2a18c9ee4a0e1b3e092676ec"
|
|
63
63
|
}
|
|
@@ -1166,6 +1166,47 @@
|
|
|
1166
1166
|
"endIndex": 8
|
|
1167
1167
|
}
|
|
1168
1168
|
},
|
|
1169
|
+
{
|
|
1170
|
+
"kind": "Variable",
|
|
1171
|
+
"canonicalReference": "@empathyco/x-adapter-platform!nextQueriesRelatedPromptsSchema:var",
|
|
1172
|
+
"docComment": "",
|
|
1173
|
+
"excerptTokens": [
|
|
1174
|
+
{
|
|
1175
|
+
"kind": "Content",
|
|
1176
|
+
"text": "nextQueriesRelatedPromptsSchema: "
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
"kind": "Content",
|
|
1180
|
+
"text": "import(\"@empathyco/x-adapter\")."
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"kind": "Reference",
|
|
1184
|
+
"text": "MutableSchema",
|
|
1185
|
+
"canonicalReference": "@empathyco/x-adapter!MutableSchema:type"
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
"kind": "Content",
|
|
1189
|
+
"text": "<string, "
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
"kind": "Reference",
|
|
1193
|
+
"text": "RelatedPromptNextQuery",
|
|
1194
|
+
"canonicalReference": "@empathyco/x-adapter-platform!RelatedPromptNextQuery:interface"
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"kind": "Content",
|
|
1198
|
+
"text": ">"
|
|
1199
|
+
}
|
|
1200
|
+
],
|
|
1201
|
+
"fileUrlPath": "dist/types/schemas/models/related-prompt.schema.d.ts",
|
|
1202
|
+
"isReadonly": true,
|
|
1203
|
+
"releaseTag": "Public",
|
|
1204
|
+
"name": "nextQueriesRelatedPromptsSchema",
|
|
1205
|
+
"variableTypeTokenRange": {
|
|
1206
|
+
"startIndex": 1,
|
|
1207
|
+
"endIndex": 6
|
|
1208
|
+
}
|
|
1209
|
+
},
|
|
1169
1210
|
{
|
|
1170
1211
|
"kind": "Variable",
|
|
1171
1212
|
"canonicalReference": "@empathyco/x-adapter-platform!nextQueriesRequestMapper:var",
|
|
@@ -3769,6 +3810,34 @@
|
|
|
3769
3810
|
"endIndex": 2
|
|
3770
3811
|
}
|
|
3771
3812
|
},
|
|
3813
|
+
{
|
|
3814
|
+
"kind": "PropertySignature",
|
|
3815
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformRelatedPrompt#tagging:member",
|
|
3816
|
+
"docComment": "",
|
|
3817
|
+
"excerptTokens": [
|
|
3818
|
+
{
|
|
3819
|
+
"kind": "Content",
|
|
3820
|
+
"text": "tagging: "
|
|
3821
|
+
},
|
|
3822
|
+
{
|
|
3823
|
+
"kind": "Reference",
|
|
3824
|
+
"text": "PlatformRelatedPromptTagging",
|
|
3825
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformRelatedPromptTagging:interface"
|
|
3826
|
+
},
|
|
3827
|
+
{
|
|
3828
|
+
"kind": "Content",
|
|
3829
|
+
"text": ";"
|
|
3830
|
+
}
|
|
3831
|
+
],
|
|
3832
|
+
"isReadonly": false,
|
|
3833
|
+
"isOptional": false,
|
|
3834
|
+
"releaseTag": "Public",
|
|
3835
|
+
"name": "tagging",
|
|
3836
|
+
"propertyTypeTokenRange": {
|
|
3837
|
+
"startIndex": 1,
|
|
3838
|
+
"endIndex": 2
|
|
3839
|
+
}
|
|
3840
|
+
},
|
|
3772
3841
|
{
|
|
3773
3842
|
"kind": "PropertySignature",
|
|
3774
3843
|
"canonicalReference": "@empathyco/x-adapter-platform!PlatformRelatedPrompt#type:member",
|
|
@@ -3799,6 +3868,105 @@
|
|
|
3799
3868
|
],
|
|
3800
3869
|
"extendsTokenRanges": []
|
|
3801
3870
|
},
|
|
3871
|
+
{
|
|
3872
|
+
"kind": "Interface",
|
|
3873
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformRelatedPromptNextQueriesTagging:interface",
|
|
3874
|
+
"docComment": "/**\n * Related prompt model for the `platform` API.\n *\n * @public\n */\n",
|
|
3875
|
+
"excerptTokens": [
|
|
3876
|
+
{
|
|
3877
|
+
"kind": "Content",
|
|
3878
|
+
"text": "export interface PlatformRelatedPromptNextQueriesTagging "
|
|
3879
|
+
}
|
|
3880
|
+
],
|
|
3881
|
+
"fileUrlPath": "dist/types/types/models/related-prompt.model.d.ts",
|
|
3882
|
+
"releaseTag": "Public",
|
|
3883
|
+
"name": "PlatformRelatedPromptNextQueriesTagging",
|
|
3884
|
+
"preserveMemberOrder": false,
|
|
3885
|
+
"members": [
|
|
3886
|
+
{
|
|
3887
|
+
"kind": "PropertySignature",
|
|
3888
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformRelatedPromptNextQueriesTagging#toolingDisplay:member",
|
|
3889
|
+
"docComment": "",
|
|
3890
|
+
"excerptTokens": [
|
|
3891
|
+
{
|
|
3892
|
+
"kind": "Content",
|
|
3893
|
+
"text": "toolingDisplay: "
|
|
3894
|
+
},
|
|
3895
|
+
{
|
|
3896
|
+
"kind": "Content",
|
|
3897
|
+
"text": "string"
|
|
3898
|
+
},
|
|
3899
|
+
{
|
|
3900
|
+
"kind": "Content",
|
|
3901
|
+
"text": ";"
|
|
3902
|
+
}
|
|
3903
|
+
],
|
|
3904
|
+
"isReadonly": false,
|
|
3905
|
+
"isOptional": false,
|
|
3906
|
+
"releaseTag": "Public",
|
|
3907
|
+
"name": "toolingDisplay",
|
|
3908
|
+
"propertyTypeTokenRange": {
|
|
3909
|
+
"startIndex": 1,
|
|
3910
|
+
"endIndex": 2
|
|
3911
|
+
}
|
|
3912
|
+
},
|
|
3913
|
+
{
|
|
3914
|
+
"kind": "PropertySignature",
|
|
3915
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformRelatedPromptNextQueriesTagging#toolingDisplayAdd2Cart:member",
|
|
3916
|
+
"docComment": "",
|
|
3917
|
+
"excerptTokens": [
|
|
3918
|
+
{
|
|
3919
|
+
"kind": "Content",
|
|
3920
|
+
"text": "toolingDisplayAdd2Cart: "
|
|
3921
|
+
},
|
|
3922
|
+
{
|
|
3923
|
+
"kind": "Content",
|
|
3924
|
+
"text": "string"
|
|
3925
|
+
},
|
|
3926
|
+
{
|
|
3927
|
+
"kind": "Content",
|
|
3928
|
+
"text": ";"
|
|
3929
|
+
}
|
|
3930
|
+
],
|
|
3931
|
+
"isReadonly": false,
|
|
3932
|
+
"isOptional": false,
|
|
3933
|
+
"releaseTag": "Public",
|
|
3934
|
+
"name": "toolingDisplayAdd2Cart",
|
|
3935
|
+
"propertyTypeTokenRange": {
|
|
3936
|
+
"startIndex": 1,
|
|
3937
|
+
"endIndex": 2
|
|
3938
|
+
}
|
|
3939
|
+
},
|
|
3940
|
+
{
|
|
3941
|
+
"kind": "PropertySignature",
|
|
3942
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformRelatedPromptNextQueriesTagging#toolingDisplayClick:member",
|
|
3943
|
+
"docComment": "",
|
|
3944
|
+
"excerptTokens": [
|
|
3945
|
+
{
|
|
3946
|
+
"kind": "Content",
|
|
3947
|
+
"text": "toolingDisplayClick: "
|
|
3948
|
+
},
|
|
3949
|
+
{
|
|
3950
|
+
"kind": "Content",
|
|
3951
|
+
"text": "string"
|
|
3952
|
+
},
|
|
3953
|
+
{
|
|
3954
|
+
"kind": "Content",
|
|
3955
|
+
"text": ";"
|
|
3956
|
+
}
|
|
3957
|
+
],
|
|
3958
|
+
"isReadonly": false,
|
|
3959
|
+
"isOptional": false,
|
|
3960
|
+
"releaseTag": "Public",
|
|
3961
|
+
"name": "toolingDisplayClick",
|
|
3962
|
+
"propertyTypeTokenRange": {
|
|
3963
|
+
"startIndex": 1,
|
|
3964
|
+
"endIndex": 2
|
|
3965
|
+
}
|
|
3966
|
+
}
|
|
3967
|
+
],
|
|
3968
|
+
"extendsTokenRanges": []
|
|
3969
|
+
},
|
|
3802
3970
|
{
|
|
3803
3971
|
"kind": "Interface",
|
|
3804
3972
|
"canonicalReference": "@empathyco/x-adapter-platform!PlatformRelatedPromptsRequest:interface",
|
|
@@ -3924,6 +4092,92 @@
|
|
|
3924
4092
|
],
|
|
3925
4093
|
"extendsTokenRanges": []
|
|
3926
4094
|
},
|
|
4095
|
+
{
|
|
4096
|
+
"kind": "Interface",
|
|
4097
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformRelatedPromptTagging:interface",
|
|
4098
|
+
"docComment": "/**\n * Related prompt model for the `platform` API.\n *\n * @public\n */\n",
|
|
4099
|
+
"excerptTokens": [
|
|
4100
|
+
{
|
|
4101
|
+
"kind": "Content",
|
|
4102
|
+
"text": "export interface PlatformRelatedPromptTagging "
|
|
4103
|
+
}
|
|
4104
|
+
],
|
|
4105
|
+
"fileUrlPath": "dist/types/types/models/related-prompt.model.d.ts",
|
|
4106
|
+
"releaseTag": "Public",
|
|
4107
|
+
"name": "PlatformRelatedPromptTagging",
|
|
4108
|
+
"preserveMemberOrder": false,
|
|
4109
|
+
"members": [
|
|
4110
|
+
{
|
|
4111
|
+
"kind": "PropertySignature",
|
|
4112
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformRelatedPromptTagging#nextQueries:member",
|
|
4113
|
+
"docComment": "",
|
|
4114
|
+
"excerptTokens": [
|
|
4115
|
+
{
|
|
4116
|
+
"kind": "Content",
|
|
4117
|
+
"text": "nextQueries: "
|
|
4118
|
+
},
|
|
4119
|
+
{
|
|
4120
|
+
"kind": "Reference",
|
|
4121
|
+
"text": "Dictionary",
|
|
4122
|
+
"canonicalReference": "@empathyco/x-utils!Dictionary:type"
|
|
4123
|
+
},
|
|
4124
|
+
{
|
|
4125
|
+
"kind": "Content",
|
|
4126
|
+
"text": "<"
|
|
4127
|
+
},
|
|
4128
|
+
{
|
|
4129
|
+
"kind": "Reference",
|
|
4130
|
+
"text": "PlatformRelatedPromptNextQueriesTagging",
|
|
4131
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformRelatedPromptNextQueriesTagging:interface"
|
|
4132
|
+
},
|
|
4133
|
+
{
|
|
4134
|
+
"kind": "Content",
|
|
4135
|
+
"text": ">"
|
|
4136
|
+
},
|
|
4137
|
+
{
|
|
4138
|
+
"kind": "Content",
|
|
4139
|
+
"text": ";"
|
|
4140
|
+
}
|
|
4141
|
+
],
|
|
4142
|
+
"isReadonly": false,
|
|
4143
|
+
"isOptional": false,
|
|
4144
|
+
"releaseTag": "Public",
|
|
4145
|
+
"name": "nextQueries",
|
|
4146
|
+
"propertyTypeTokenRange": {
|
|
4147
|
+
"startIndex": 1,
|
|
4148
|
+
"endIndex": 5
|
|
4149
|
+
}
|
|
4150
|
+
},
|
|
4151
|
+
{
|
|
4152
|
+
"kind": "PropertySignature",
|
|
4153
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformRelatedPromptTagging#toolingDisplay:member",
|
|
4154
|
+
"docComment": "",
|
|
4155
|
+
"excerptTokens": [
|
|
4156
|
+
{
|
|
4157
|
+
"kind": "Content",
|
|
4158
|
+
"text": "toolingDisplay: "
|
|
4159
|
+
},
|
|
4160
|
+
{
|
|
4161
|
+
"kind": "Content",
|
|
4162
|
+
"text": "string"
|
|
4163
|
+
},
|
|
4164
|
+
{
|
|
4165
|
+
"kind": "Content",
|
|
4166
|
+
"text": ";"
|
|
4167
|
+
}
|
|
4168
|
+
],
|
|
4169
|
+
"isReadonly": false,
|
|
4170
|
+
"isOptional": false,
|
|
4171
|
+
"releaseTag": "Public",
|
|
4172
|
+
"name": "toolingDisplay",
|
|
4173
|
+
"propertyTypeTokenRange": {
|
|
4174
|
+
"startIndex": 1,
|
|
4175
|
+
"endIndex": 2
|
|
4176
|
+
}
|
|
4177
|
+
}
|
|
4178
|
+
],
|
|
4179
|
+
"extendsTokenRanges": []
|
|
4180
|
+
},
|
|
3927
4181
|
{
|
|
3928
4182
|
"kind": "Interface",
|
|
3929
4183
|
"canonicalReference": "@empathyco/x-adapter-platform!PlatformRelatedTag:interface",
|
|
@@ -118,6 +118,11 @@ export const identifierResultsResponseSchema: MutableSchema<PlatformIdentifierRe
|
|
|
118
118
|
// @public
|
|
119
119
|
export const nextQueriesEndpointAdapter: ExtendableEndpointAdapter<NextQueriesRequest, NextQueriesResponse>;
|
|
120
120
|
|
|
121
|
+
// Warning: (ae-forgotten-export) The symbol "RelatedPromptNextQuery" needs to be exported by the entry point index.d.ts
|
|
122
|
+
//
|
|
123
|
+
// @public (undocumented)
|
|
124
|
+
export const nextQueriesRelatedPromptsSchema: MutableSchema<string, RelatedPromptNextQuery>;
|
|
125
|
+
|
|
121
126
|
// @public
|
|
122
127
|
export const nextQueriesRequestMapper: Mapper<NextQueriesRequest, PlatformNextQueriesRequest>;
|
|
123
128
|
|
|
@@ -381,9 +386,21 @@ export interface PlatformRelatedPrompt {
|
|
|
381
386
|
// (undocumented)
|
|
382
387
|
suggestionText: string;
|
|
383
388
|
// (undocumented)
|
|
389
|
+
tagging: PlatformRelatedPromptTagging;
|
|
390
|
+
// (undocumented)
|
|
384
391
|
type: 'SYNTHETIC' | 'CURATED';
|
|
385
392
|
}
|
|
386
393
|
|
|
394
|
+
// @public
|
|
395
|
+
export interface PlatformRelatedPromptNextQueriesTagging {
|
|
396
|
+
// (undocumented)
|
|
397
|
+
toolingDisplay: string;
|
|
398
|
+
// (undocumented)
|
|
399
|
+
toolingDisplayAdd2Cart: string;
|
|
400
|
+
// (undocumented)
|
|
401
|
+
toolingDisplayClick: string;
|
|
402
|
+
}
|
|
403
|
+
|
|
387
404
|
// @public
|
|
388
405
|
export interface PlatformRelatedPromptsRequest extends PlatformQueryableRequest, PlatformExtraParamsRequest {
|
|
389
406
|
}
|
|
@@ -398,6 +415,14 @@ export interface PlatformRelatedPromptsResponse {
|
|
|
398
415
|
status: number;
|
|
399
416
|
}
|
|
400
417
|
|
|
418
|
+
// @public
|
|
419
|
+
export interface PlatformRelatedPromptTagging {
|
|
420
|
+
// (undocumented)
|
|
421
|
+
nextQueries: Dictionary<PlatformRelatedPromptNextQueriesTagging>;
|
|
422
|
+
// (undocumented)
|
|
423
|
+
toolingDisplay: string;
|
|
424
|
+
}
|
|
425
|
+
|
|
401
426
|
// @public
|
|
402
427
|
export interface PlatformRelatedTag {
|
|
403
428
|
// (undocumented)
|