@empathyco/x-adapter-platform 1.1.0-alpha.30 → 1.1.0-alpha.32

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.
@@ -13,5 +13,6 @@ exports.aiSuggestionSearchSchema = (0, x_adapter_1.createMutableSchema)({
13
13
  $path: 'results',
14
14
  $subSchema: result_schema_1.resultSchema,
15
15
  },
16
+ numFound: 'numFound',
16
17
  });
17
18
  //# sourceMappingURL=suggestion-search.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"suggestion-search.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/models/ai/suggestion-search.schema.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAC1D,oDAA+C;AAE/C;;;GAGG;AACU,QAAA,wBAAwB,GAAG,IAAA,+BAAmB,EAGzD;IACA,KAAK,EAAE,OAAO;IACd,OAAO,EAAE;QACP,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,4BAAY;KACzB;CACF,CAAC,CAAA","sourcesContent":["import type { AiSuggestionSearch } from '@empathyco/x-types'\nimport type { PlatformAiSuggestionSearch } from '../../../types/models/ai/suggestion-search.model'\nimport { createMutableSchema } from '@empathyco/x-adapter'\nimport { resultSchema } from '../result.schema'\n\n/**\n * Default implementation for the AiSuggestionSearchSchema.\n * @public\n */\nexport const aiSuggestionSearchSchema = createMutableSchema<\n PlatformAiSuggestionSearch,\n AiSuggestionSearch\n>({\n query: 'query',\n results: {\n $path: 'results',\n $subSchema: resultSchema,\n },\n})\n"]}
1
+ {"version":3,"file":"suggestion-search.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/models/ai/suggestion-search.schema.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAC1D,oDAA+C;AAE/C;;;GAGG;AACU,QAAA,wBAAwB,GAAG,IAAA,+BAAmB,EAGzD;IACA,KAAK,EAAE,OAAO;IACd,OAAO,EAAE;QACP,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,4BAAY;KACzB;IACD,QAAQ,EAAE,UAAU;CACrB,CAAC,CAAA","sourcesContent":["import type { AiSuggestionSearch } from '@empathyco/x-types'\nimport type { PlatformAiSuggestionSearch } from '../../../types/models/ai/suggestion-search.model'\nimport { createMutableSchema } from '@empathyco/x-adapter'\nimport { resultSchema } from '../result.schema'\n\n/**\n * Default implementation for the AiSuggestionSearchSchema.\n * @public\n */\nexport const aiSuggestionSearchSchema = createMutableSchema<\n PlatformAiSuggestionSearch,\n AiSuggestionSearch\n>({\n query: 'query',\n results: {\n $path: 'results',\n $subSchema: resultSchema,\n },\n numFound: 'numFound',\n})\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"suggestion-search.model.js","sourceRoot":"","sources":["../../../../../src/types/models/ai/suggestion-search.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { PlatformResult } from '../result.model'\n\n/**\n * Each platform suggestion search is a query and the platform results of that query.\n * @public\n */\nexport interface PlatformAiSuggestionSearch {\n query: string\n results: PlatformResult[]\n}\n"]}
1
+ {"version":3,"file":"suggestion-search.model.js","sourceRoot":"","sources":["../../../../../src/types/models/ai/suggestion-search.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { PlatformResult } from '../result.model'\n\n/**\n * Each platform suggestion search is a query and the platform results of that query.\n * @public\n */\nexport interface PlatformAiSuggestionSearch {\n query: string\n results: PlatformResult[]\n numFound: number\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"suggestions-search-response.model.js","sourceRoot":"","sources":["../../../../../src/types/responses/ai/suggestions-search-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { PlatformResult } from '../../models/result.model'\n\n/**\n * Response for the `AI suggestions search` endpoint.\n *\n * @public\n */\nexport interface PlatformAiSuggestionsSearchResponse {\n items: {\n query: string\n results: PlatformResult[]\n }[]\n}\n"]}
1
+ {"version":3,"file":"suggestions-search-response.model.js","sourceRoot":"","sources":["../../../../../src/types/responses/ai/suggestions-search-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { PlatformResult } from '../../models/result.model'\n\n/**\n * Response for the `AI suggestions search` endpoint.\n *\n * @public\n */\nexport interface PlatformAiSuggestionsSearchResponse {\n items: {\n query: string\n results: PlatformResult[]\n numFound: number\n }[]\n}\n"]}
@@ -10,5 +10,6 @@ export const aiSuggestionSearchSchema = createMutableSchema({
10
10
  $path: 'results',
11
11
  $subSchema: resultSchema,
12
12
  },
13
+ numFound: 'numFound',
13
14
  });
14
15
  //# sourceMappingURL=suggestion-search.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"suggestion-search.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/models/ai/suggestion-search.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CAGzD;IACA,KAAK,EAAE,OAAO;IACd,OAAO,EAAE;QACP,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,YAAY;KACzB;CACF,CAAC,CAAA","sourcesContent":["import type { AiSuggestionSearch } from '@empathyco/x-types'\nimport type { PlatformAiSuggestionSearch } from '../../../types/models/ai/suggestion-search.model'\nimport { createMutableSchema } from '@empathyco/x-adapter'\nimport { resultSchema } from '../result.schema'\n\n/**\n * Default implementation for the AiSuggestionSearchSchema.\n * @public\n */\nexport const aiSuggestionSearchSchema = createMutableSchema<\n PlatformAiSuggestionSearch,\n AiSuggestionSearch\n>({\n query: 'query',\n results: {\n $path: 'results',\n $subSchema: resultSchema,\n },\n})\n"]}
1
+ {"version":3,"file":"suggestion-search.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/models/ai/suggestion-search.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CAGzD;IACA,KAAK,EAAE,OAAO;IACd,OAAO,EAAE;QACP,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,YAAY;KACzB;IACD,QAAQ,EAAE,UAAU;CACrB,CAAC,CAAA","sourcesContent":["import type { AiSuggestionSearch } from '@empathyco/x-types'\nimport type { PlatformAiSuggestionSearch } from '../../../types/models/ai/suggestion-search.model'\nimport { createMutableSchema } from '@empathyco/x-adapter'\nimport { resultSchema } from '../result.schema'\n\n/**\n * Default implementation for the AiSuggestionSearchSchema.\n * @public\n */\nexport const aiSuggestionSearchSchema = createMutableSchema<\n PlatformAiSuggestionSearch,\n AiSuggestionSearch\n>({\n query: 'query',\n results: {\n $path: 'results',\n $subSchema: resultSchema,\n },\n numFound: 'numFound',\n})\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"suggestion-search.model.js","sourceRoot":"","sources":["../../../../../src/types/models/ai/suggestion-search.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { PlatformResult } from '../result.model'\n\n/**\n * Each platform suggestion search is a query and the platform results of that query.\n * @public\n */\nexport interface PlatformAiSuggestionSearch {\n query: string\n results: PlatformResult[]\n}\n"]}
1
+ {"version":3,"file":"suggestion-search.model.js","sourceRoot":"","sources":["../../../../../src/types/models/ai/suggestion-search.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { PlatformResult } from '../result.model'\n\n/**\n * Each platform suggestion search is a query and the platform results of that query.\n * @public\n */\nexport interface PlatformAiSuggestionSearch {\n query: string\n results: PlatformResult[]\n numFound: number\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"suggestions-search-response.model.js","sourceRoot":"","sources":["../../../../../src/types/responses/ai/suggestions-search-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { PlatformResult } from '../../models/result.model'\n\n/**\n * Response for the `AI suggestions search` endpoint.\n *\n * @public\n */\nexport interface PlatformAiSuggestionsSearchResponse {\n items: {\n query: string\n results: PlatformResult[]\n }[]\n}\n"]}
1
+ {"version":3,"file":"suggestions-search-response.model.js","sourceRoot":"","sources":["../../../../../src/types/responses/ai/suggestions-search-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { PlatformResult } from '../../models/result.model'\n\n/**\n * Response for the `AI suggestions search` endpoint.\n *\n * @public\n */\nexport interface PlatformAiSuggestionsSearchResponse {\n items: {\n query: string\n results: PlatformResult[]\n numFound: number\n }[]\n}\n"]}
@@ -6,4 +6,5 @@ import type { PlatformResult } from '../result.model';
6
6
  export interface PlatformAiSuggestionSearch {
7
7
  query: string;
8
8
  results: PlatformResult[];
9
+ numFound: number;
9
10
  }
@@ -8,5 +8,6 @@ export interface PlatformAiSuggestionsSearchResponse {
8
8
  items: {
9
9
  query: string;
10
10
  results: PlatformResult[];
11
+ numFound: number;
11
12
  }[];
12
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empathyco/x-adapter-platform",
3
- "version": "1.1.0-alpha.30",
3
+ "version": "1.1.0-alpha.32",
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",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@empathyco/x-adapter": "^8.1.0-alpha.9",
49
- "@empathyco/x-types": "^10.1.0-alpha.23",
49
+ "@empathyco/x-types": "^10.1.0-alpha.25",
50
50
  "@empathyco/x-utils": "^1.0.3-alpha.8",
51
51
  "tslib": "~2.6.0"
52
52
  },
@@ -63,5 +63,5 @@
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "gitHead": "7045b8448848d85e2cb09fca9e3abdc35c3b2904"
66
+ "gitHead": "fa64b8c62b318fcdc5c6468f06415332acde0db0"
67
67
  }
@@ -3504,6 +3504,33 @@
3504
3504
  "name": "PlatformAiSuggestionSearch",
3505
3505
  "preserveMemberOrder": false,
3506
3506
  "members": [
3507
+ {
3508
+ "kind": "PropertySignature",
3509
+ "canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionSearch#numFound:member",
3510
+ "docComment": "",
3511
+ "excerptTokens": [
3512
+ {
3513
+ "kind": "Content",
3514
+ "text": "numFound: "
3515
+ },
3516
+ {
3517
+ "kind": "Content",
3518
+ "text": "number"
3519
+ },
3520
+ {
3521
+ "kind": "Content",
3522
+ "text": ";"
3523
+ }
3524
+ ],
3525
+ "isReadonly": false,
3526
+ "isOptional": false,
3527
+ "releaseTag": "Public",
3528
+ "name": "numFound",
3529
+ "propertyTypeTokenRange": {
3530
+ "startIndex": 1,
3531
+ "endIndex": 2
3532
+ }
3533
+ },
3507
3534
  {
3508
3535
  "kind": "PropertySignature",
3509
3536
  "canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionSearch#query:member",
@@ -3736,7 +3763,7 @@
3736
3763
  },
3737
3764
  {
3738
3765
  "kind": "Content",
3739
- "text": "[];\n }[]"
3766
+ "text": "[];\n numFound: number;\n }[]"
3740
3767
  },
3741
3768
  {
3742
3769
  "kind": "Content",
@@ -303,6 +303,8 @@ export interface PlatformAiQuestionsResponse extends AiQuestionsResponse {
303
303
 
304
304
  // @public
305
305
  export interface PlatformAiSuggestionSearch {
306
+ // (undocumented)
307
+ numFound: number;
306
308
  // (undocumented)
307
309
  query: string;
308
310
  // (undocumented)
@@ -341,6 +343,7 @@ export interface PlatformAiSuggestionsSearchResponse {
341
343
  items: {
342
344
  query: string;
343
345
  results: PlatformResult[];
346
+ numFound: number;
344
347
  }[];
345
348
  }
346
349