@empathyco/x-adapter-platform 1.1.0-alpha.27 → 1.1.0-alpha.28

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.
@@ -2,6 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.aiQuestionsRequestSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
+ /**
6
+ * Default implementation for the AiQuestionsRequestSchema.
7
+ *
8
+ * @public
9
+ */
5
10
  exports.aiQuestionsRequestSchema = (0, x_adapter_1.createMutableSchema)({
6
11
  context: ({ lang, query, extraParams }) => {
7
12
  const context = { lang, query };
@@ -1 +1 @@
1
- {"version":3,"file":"questions-request.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/requests/ai/questions-request.schema.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAE7C,QAAA,wBAAwB,GAAG,IAAA,+BAAmB,EAGzD;IACA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,EAAyC,EAAE;QAC/E,MAAM,OAAO,GAA0C,EAAE,IAAI,EAAE,KAAK,EAAE,CAAA;QACtE,IAAI,WAAW,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;YACnD,IAAI,UAAU,IAAI,WAAW,EAAE,CAAC;gBAC9B,OAAO,CAAC,QAAQ,GAAI,WAAqC,CAAC,QAAQ,CAAA;YACpE,CAAC;YACD,IAAI,SAAS,IAAI,WAAW,EAAE,CAAC;gBAC7B,OAAO,CAAC,OAAO,GAAI,WAAqD,CAAC,OAAO,CAAA;YAClF,CAAC;QACH,CAAC;QACD,OAAO,OAAO,CAAA;IAChB,CAAC;CACF,CAAC,CAAA","sourcesContent":["import type { AiQuestionsRequest } from '@empathyco/x-types'\nimport type { PlatformAiQuestionsRequest } from '../../../types'\nimport { createMutableSchema } from '@empathyco/x-adapter'\n\nexport const aiQuestionsRequestSchema = createMutableSchema<\n AiQuestionsRequest,\n PlatformAiQuestionsRequest\n>({\n context: ({ lang, query, extraParams }): PlatformAiQuestionsRequest['context'] => {\n const context: PlatformAiQuestionsRequest['context'] = { lang, query }\n if (extraParams && typeof extraParams === 'object') {\n if ('instance' in extraParams) {\n context.instance = (extraParams as { instance?: string }).instance\n }\n if ('filters' in extraParams) {\n context.filters = (extraParams as { filters?: Record<string, unknown> }).filters\n }\n }\n return context\n },\n})\n"]}
1
+ {"version":3,"file":"questions-request.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/requests/ai/questions-request.schema.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAE1D;;;;GAIG;AACU,QAAA,wBAAwB,GAAG,IAAA,+BAAmB,EAGzD;IACA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,EAAyC,EAAE;QAC/E,MAAM,OAAO,GAA0C,EAAE,IAAI,EAAE,KAAK,EAAE,CAAA;QACtE,IAAI,WAAW,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;YACnD,IAAI,UAAU,IAAI,WAAW,EAAE,CAAC;gBAC9B,OAAO,CAAC,QAAQ,GAAI,WAAqC,CAAC,QAAQ,CAAA;YACpE,CAAC;YACD,IAAI,SAAS,IAAI,WAAW,EAAE,CAAC;gBAC7B,OAAO,CAAC,OAAO,GAAI,WAAqD,CAAC,OAAO,CAAA;YAClF,CAAC;QACH,CAAC;QACD,OAAO,OAAO,CAAA;IAChB,CAAC;CACF,CAAC,CAAA","sourcesContent":["import type { AiQuestionsRequest } from '@empathyco/x-types'\nimport type { PlatformAiQuestionsRequest } from '../../../types'\nimport { createMutableSchema } from '@empathyco/x-adapter'\n\n/**\n * Default implementation for the AiQuestionsRequestSchema.\n *\n * @public\n */\nexport const aiQuestionsRequestSchema = createMutableSchema<\n AiQuestionsRequest,\n PlatformAiQuestionsRequest\n>({\n context: ({ lang, query, extraParams }): PlatformAiQuestionsRequest['context'] => {\n const context: PlatformAiQuestionsRequest['context'] = { lang, query }\n if (extraParams && typeof extraParams === 'object') {\n if ('instance' in extraParams) {\n context.instance = (extraParams as { instance?: string }).instance\n }\n if ('filters' in extraParams) {\n context.filters = (extraParams as { filters?: Record<string, unknown> }).filters\n }\n }\n return context\n },\n})\n"]}
@@ -2,6 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.aiTasksRequestSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
+ /**
6
+ * Default implementation for the AiTasksRequestSchema.
7
+ *
8
+ * @public
9
+ */
5
10
  exports.aiTasksRequestSchema = (0, x_adapter_1.createMutableSchema)({
6
11
  taskId: 'taskId',
7
12
  });
@@ -1 +1 @@
1
- {"version":3,"file":"tasks-request.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/requests/ai/tasks-request.schema.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAE7C,QAAA,oBAAoB,GAAG,IAAA,+BAAmB,EAAyC;IAC9F,MAAM,EAAE,QAAQ;CACjB,CAAC,CAAA","sourcesContent":["import type { AiTasksRequest } from '@empathyco/x-types'\nimport type { PlatformAiTasksRequest } from '../../../types'\nimport { createMutableSchema } from '@empathyco/x-adapter'\n\nexport const aiTasksRequestSchema = createMutableSchema<AiTasksRequest, PlatformAiTasksRequest>({\n taskId: 'taskId',\n})\n"]}
1
+ {"version":3,"file":"tasks-request.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/requests/ai/tasks-request.schema.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAE1D;;;;GAIG;AACU,QAAA,oBAAoB,GAAG,IAAA,+BAAmB,EAAyC;IAC9F,MAAM,EAAE,QAAQ;CACjB,CAAC,CAAA","sourcesContent":["import type { AiTasksRequest } from '@empathyco/x-types'\nimport type { PlatformAiTasksRequest } from '../../../types'\nimport { createMutableSchema } from '@empathyco/x-adapter'\n\n/**\n * Default implementation for the AiTasksRequestSchema.\n *\n * @public\n */\nexport const aiTasksRequestSchema = createMutableSchema<AiTasksRequest, PlatformAiTasksRequest>({\n taskId: 'taskId',\n})\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"questions-response.model.js","sourceRoot":"","sources":["../../../../../src/types/responses/ai/questions-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { AiQuestionsResponse } from '@empathyco/x-types'\n\nexport interface PlatformAiQuestionsResponse extends AiQuestionsResponse {}\n"]}
1
+ {"version":3,"file":"questions-response.model.js","sourceRoot":"","sources":["../../../../../src/types/responses/ai/questions-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { AiQuestionsResponse } from '@empathyco/x-types'\n\n/**\n * Response for the `questions` endpoint.\n *\n * @public\n */\nexport interface PlatformAiQuestionsResponse extends AiQuestionsResponse {}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"tasks-response.model.js","sourceRoot":"","sources":["../../../../../src/types/responses/ai/tasks-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { AiTasksResponse } from '@empathyco/x-types'\n\nexport interface PlatformAiTasksResponse extends AiTasksResponse {}\n"]}
1
+ {"version":3,"file":"tasks-response.model.js","sourceRoot":"","sources":["../../../../../src/types/responses/ai/tasks-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { AiTasksResponse } from '@empathyco/x-types'\n\n/**\n * Response for the `tasks` endpoint.\n *\n * @public\n */\nexport interface PlatformAiTasksResponse extends AiTasksResponse {}\n"]}
@@ -1,4 +1,9 @@
1
1
  import { createMutableSchema } from '@empathyco/x-adapter';
2
+ /**
3
+ * Default implementation for the AiQuestionsRequestSchema.
4
+ *
5
+ * @public
6
+ */
2
7
  export const aiQuestionsRequestSchema = createMutableSchema({
3
8
  context: ({ lang, query, extraParams }) => {
4
9
  const context = { lang, query };
@@ -1 +1 @@
1
- {"version":3,"file":"questions-request.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/requests/ai/questions-request.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CAGzD;IACA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,EAAyC,EAAE;QAC/E,MAAM,OAAO,GAA0C,EAAE,IAAI,EAAE,KAAK,EAAE,CAAA;QACtE,IAAI,WAAW,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;YACnD,IAAI,UAAU,IAAI,WAAW,EAAE,CAAC;gBAC9B,OAAO,CAAC,QAAQ,GAAI,WAAqC,CAAC,QAAQ,CAAA;YACpE,CAAC;YACD,IAAI,SAAS,IAAI,WAAW,EAAE,CAAC;gBAC7B,OAAO,CAAC,OAAO,GAAI,WAAqD,CAAC,OAAO,CAAA;YAClF,CAAC;QACH,CAAC;QACD,OAAO,OAAO,CAAA;IAChB,CAAC;CACF,CAAC,CAAA","sourcesContent":["import type { AiQuestionsRequest } from '@empathyco/x-types'\nimport type { PlatformAiQuestionsRequest } from '../../../types'\nimport { createMutableSchema } from '@empathyco/x-adapter'\n\nexport const aiQuestionsRequestSchema = createMutableSchema<\n AiQuestionsRequest,\n PlatformAiQuestionsRequest\n>({\n context: ({ lang, query, extraParams }): PlatformAiQuestionsRequest['context'] => {\n const context: PlatformAiQuestionsRequest['context'] = { lang, query }\n if (extraParams && typeof extraParams === 'object') {\n if ('instance' in extraParams) {\n context.instance = (extraParams as { instance?: string }).instance\n }\n if ('filters' in extraParams) {\n context.filters = (extraParams as { filters?: Record<string, unknown> }).filters\n }\n }\n return context\n },\n})\n"]}
1
+ {"version":3,"file":"questions-request.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/requests/ai/questions-request.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CAGzD;IACA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,EAAyC,EAAE;QAC/E,MAAM,OAAO,GAA0C,EAAE,IAAI,EAAE,KAAK,EAAE,CAAA;QACtE,IAAI,WAAW,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;YACnD,IAAI,UAAU,IAAI,WAAW,EAAE,CAAC;gBAC9B,OAAO,CAAC,QAAQ,GAAI,WAAqC,CAAC,QAAQ,CAAA;YACpE,CAAC;YACD,IAAI,SAAS,IAAI,WAAW,EAAE,CAAC;gBAC7B,OAAO,CAAC,OAAO,GAAI,WAAqD,CAAC,OAAO,CAAA;YAClF,CAAC;QACH,CAAC;QACD,OAAO,OAAO,CAAA;IAChB,CAAC;CACF,CAAC,CAAA","sourcesContent":["import type { AiQuestionsRequest } from '@empathyco/x-types'\nimport type { PlatformAiQuestionsRequest } from '../../../types'\nimport { createMutableSchema } from '@empathyco/x-adapter'\n\n/**\n * Default implementation for the AiQuestionsRequestSchema.\n *\n * @public\n */\nexport const aiQuestionsRequestSchema = createMutableSchema<\n AiQuestionsRequest,\n PlatformAiQuestionsRequest\n>({\n context: ({ lang, query, extraParams }): PlatformAiQuestionsRequest['context'] => {\n const context: PlatformAiQuestionsRequest['context'] = { lang, query }\n if (extraParams && typeof extraParams === 'object') {\n if ('instance' in extraParams) {\n context.instance = (extraParams as { instance?: string }).instance\n }\n if ('filters' in extraParams) {\n context.filters = (extraParams as { filters?: Record<string, unknown> }).filters\n }\n }\n return context\n },\n})\n"]}
@@ -1,4 +1,9 @@
1
1
  import { createMutableSchema } from '@empathyco/x-adapter';
2
+ /**
3
+ * Default implementation for the AiTasksRequestSchema.
4
+ *
5
+ * @public
6
+ */
2
7
  export const aiTasksRequestSchema = createMutableSchema({
3
8
  taskId: 'taskId',
4
9
  });
@@ -1 +1 @@
1
- {"version":3,"file":"tasks-request.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/requests/ai/tasks-request.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAyC;IAC9F,MAAM,EAAE,QAAQ;CACjB,CAAC,CAAA","sourcesContent":["import type { AiTasksRequest } from '@empathyco/x-types'\nimport type { PlatformAiTasksRequest } from '../../../types'\nimport { createMutableSchema } from '@empathyco/x-adapter'\n\nexport const aiTasksRequestSchema = createMutableSchema<AiTasksRequest, PlatformAiTasksRequest>({\n taskId: 'taskId',\n})\n"]}
1
+ {"version":3,"file":"tasks-request.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/requests/ai/tasks-request.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAyC;IAC9F,MAAM,EAAE,QAAQ;CACjB,CAAC,CAAA","sourcesContent":["import type { AiTasksRequest } from '@empathyco/x-types'\nimport type { PlatformAiTasksRequest } from '../../../types'\nimport { createMutableSchema } from '@empathyco/x-adapter'\n\n/**\n * Default implementation for the AiTasksRequestSchema.\n *\n * @public\n */\nexport const aiTasksRequestSchema = createMutableSchema<AiTasksRequest, PlatformAiTasksRequest>({\n taskId: 'taskId',\n})\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"questions-response.model.js","sourceRoot":"","sources":["../../../../../src/types/responses/ai/questions-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { AiQuestionsResponse } from '@empathyco/x-types'\n\nexport interface PlatformAiQuestionsResponse extends AiQuestionsResponse {}\n"]}
1
+ {"version":3,"file":"questions-response.model.js","sourceRoot":"","sources":["../../../../../src/types/responses/ai/questions-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { AiQuestionsResponse } from '@empathyco/x-types'\n\n/**\n * Response for the `questions` endpoint.\n *\n * @public\n */\nexport interface PlatformAiQuestionsResponse extends AiQuestionsResponse {}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"tasks-response.model.js","sourceRoot":"","sources":["../../../../../src/types/responses/ai/tasks-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { AiTasksResponse } from '@empathyco/x-types'\n\nexport interface PlatformAiTasksResponse extends AiTasksResponse {}\n"]}
1
+ {"version":3,"file":"tasks-response.model.js","sourceRoot":"","sources":["../../../../../src/types/responses/ai/tasks-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { AiTasksResponse } from '@empathyco/x-types'\n\n/**\n * Response for the `tasks` endpoint.\n *\n * @public\n */\nexport interface PlatformAiTasksResponse extends AiTasksResponse {}\n"]}
@@ -1,3 +1,8 @@
1
1
  import type { AiQuestionsRequest } from '@empathyco/x-types';
2
2
  import type { PlatformAiQuestionsRequest } from '../../../types';
3
+ /**
4
+ * Default implementation for the AiQuestionsRequestSchema.
5
+ *
6
+ * @public
7
+ */
3
8
  export declare const aiQuestionsRequestSchema: import("@empathyco/x-adapter").MutableSchema<AiQuestionsRequest, PlatformAiQuestionsRequest>;
@@ -1,3 +1,8 @@
1
1
  import type { AiTasksRequest } from '@empathyco/x-types';
2
2
  import type { PlatformAiTasksRequest } from '../../../types';
3
+ /**
4
+ * Default implementation for the AiTasksRequestSchema.
5
+ *
6
+ * @public
7
+ */
3
8
  export declare const aiTasksRequestSchema: import("@empathyco/x-adapter").MutableSchema<AiTasksRequest, PlatformAiTasksRequest>;
@@ -1,3 +1,8 @@
1
1
  import type { AiQuestionsResponse } from '@empathyco/x-types';
2
+ /**
3
+ * Response for the `questions` endpoint.
4
+ *
5
+ * @public
6
+ */
2
7
  export interface PlatformAiQuestionsResponse extends AiQuestionsResponse {
3
8
  }
@@ -1,3 +1,8 @@
1
1
  import type { AiTasksResponse } from '@empathyco/x-types';
2
+ /**
3
+ * Response for the `tasks` endpoint.
4
+ *
5
+ * @public
6
+ */
2
7
  export interface PlatformAiTasksResponse extends AiTasksResponse {
3
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empathyco/x-adapter-platform",
3
- "version": "1.1.0-alpha.27",
3
+ "version": "1.1.0-alpha.28",
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.8",
49
- "@empathyco/x-types": "^10.1.0-alpha.20",
49
+ "@empathyco/x-types": "^10.1.0-alpha.21",
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": "12f139302d1294a8b1195505f88b53384013cfa7"
66
+ "gitHead": "0d9099be569bdf5e21a8cdd0038251299b4e97fd"
67
67
  }
@@ -275,7 +275,7 @@
275
275
  {
276
276
  "kind": "Variable",
277
277
  "canonicalReference": "@empathyco/x-adapter-platform!aiQuestionsRequestSchema:var",
278
- "docComment": "",
278
+ "docComment": "/**\n * Default implementation for the AiQuestionsRequestSchema.\n *\n * @public\n */\n",
279
279
  "excerptTokens": [
280
280
  {
281
281
  "kind": "Content",
@@ -575,7 +575,7 @@
575
575
  {
576
576
  "kind": "Variable",
577
577
  "canonicalReference": "@empathyco/x-adapter-platform!aiTasksRequestSchema:var",
578
- "docComment": "",
578
+ "docComment": "/**\n * Default implementation for the AiTasksRequestSchema.\n *\n * @public\n */\n",
579
579
  "excerptTokens": [
580
580
  {
581
581
  "kind": "Content",
@@ -2911,7 +2911,7 @@
2911
2911
  {
2912
2912
  "kind": "Interface",
2913
2913
  "canonicalReference": "@empathyco/x-adapter-platform!PlatformAiQuestionsResponse:interface",
2914
- "docComment": "",
2914
+ "docComment": "/**\n * Response for the `questions` endpoint.\n *\n * @public\n */\n",
2915
2915
  "excerptTokens": [
2916
2916
  {
2917
2917
  "kind": "Content",
@@ -2987,7 +2987,7 @@
2987
2987
  {
2988
2988
  "kind": "Interface",
2989
2989
  "canonicalReference": "@empathyco/x-adapter-platform!PlatformAiTasksResponse:interface",
2990
- "docComment": "",
2990
+ "docComment": "/**\n * Response for the `tasks` endpoint.\n *\n * @public\n */\n",
2991
2991
  "excerptTokens": [
2992
2992
  {
2993
2993
  "kind": "Content",
@@ -40,7 +40,7 @@ export const aiQuestionsEndpointAdapter: ExtendableEndpointAdapter<AiQuestionsRe
40
40
  // @public
41
41
  export const aiQuestionsRequestMapper: Mapper<AiQuestionsRequest, PlatformAiQuestionsRequest>;
42
42
 
43
- // @public (undocumented)
43
+ // @public
44
44
  export const aiQuestionsRequestSchema: MutableSchema<AiQuestionsRequest, PlatformAiQuestionsRequest>;
45
45
 
46
46
  // @public
@@ -61,7 +61,7 @@ export const aiTasksEndpointAdapter: ExtendableEndpointAdapter<AiTasksRequest, A
61
61
  // @public
62
62
  export const aiTasksRequestMapper: Mapper<AiTasksRequest, PlatformAiTasksRequest>;
63
63
 
64
- // @public (undocumented)
64
+ // @public
65
65
  export const aiTasksRequestSchema: MutableSchema<AiTasksRequest, PlatformAiTasksRequest>;
66
66
 
67
67
  // @public
@@ -259,7 +259,7 @@ export interface PlatformAiQuestionsRequest {
259
259
  };
260
260
  }
261
261
 
262
- // @public (undocumented)
262
+ // @public
263
263
  export interface PlatformAiQuestionsResponse extends AiQuestionsResponse {
264
264
  }
265
265
 
@@ -269,7 +269,7 @@ export interface PlatformAiTasksRequest {
269
269
  taskId: string;
270
270
  }
271
271
 
272
- // @public (undocumented)
272
+ // @public
273
273
  export interface PlatformAiTasksResponse extends AiTasksResponse {
274
274
  }
275
275