@or-sdk/lookup 1.21.0 → 1.21.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.21.1](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/lookup@1.21.0...@or-sdk/lookup@1.21.1) (2025-11-04)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **base:** Fix vitest tests ([3afb8a3](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/commit/3afb8a344fc68e7e3b4ab3203eedea7a7f0b5bab))
12
+
13
+
14
+
6
15
  ## [1.21.0](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/lookup@1.20.2...@or-sdk/lookup@1.21.0) (2025-10-22)
7
16
 
8
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@or-sdk/lookup",
3
- "version": "1.21.0",
3
+ "version": "1.21.1",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -21,16 +21,15 @@
21
21
  "test:watch": "vitest --watch"
22
22
  },
23
23
  "dependencies": {
24
- "@or-sdk/base": "^0.42.3"
24
+ "@or-sdk/base": "^0.42.4"
25
25
  },
26
26
  "devDependencies": {
27
27
  "concurrently": "9.0.1",
28
28
  "msw": "2.8.2",
29
- "typescript": "5.6.2",
30
- "vitest": "^3.1.3"
29
+ "typescript": "5.6.2"
31
30
  },
32
31
  "publishConfig": {
33
32
  "access": "public"
34
33
  },
35
- "gitHead": "317270f4cf319b1569f6314d177f9c216501e834"
34
+ "gitHead": "9deea9f914551e435336bc856e77b4fdfd7bdd54"
36
35
  }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "rootDir": "./src"
5
+ },
6
+ "exclude": [
7
+ "./src/__tests__"
8
+ ]
9
+ }
package/tsconfig.dev.json CHANGED
@@ -2,7 +2,6 @@
2
2
  "extends": "./tsconfig.esm.json",
3
3
  "compilerOptions": {
4
4
  "declarationDir": "./dist/types",
5
- "rootDir": "./src",
6
- "declaration": true
5
+ "declaration": true
7
6
  }
8
7
  }
package/tsconfig.esm.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
- "extends": "../../tsconfig.json",
2
+ "extends": "./tsconfig.build.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "./dist/esm",
5
5
  "declarationDir": "./dist/types",
6
6
  "module": "ES6",
7
7
  "target": "es6",
8
- "rootDir": "./src",
9
8
  "declaration": true,
10
9
  "declarationMap": true
11
10
  }
package/tsconfig.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
- "extends": "../../tsconfig.json",
2
+ "extends": "./tsconfig.build.json",
3
3
  "compilerOptions": {
4
- "outDir": "./dist/cjs/",
5
- "rootDir": "./src"
4
+ "outDir": "./dist/cjs"
6
5
  }
7
6
  }
@@ -1,8 +1,7 @@
1
1
  {
2
- "extends": "../../tsconfig.json",
2
+ "extends": "./tsconfig.build.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "./dist/types",
5
- "rootDir": "./src",
6
5
  "declaration": true,
7
6
  "declarationMap": true,
8
7
  "emitDeclarationOnly": true
@@ -4,8 +4,9 @@ export default defineConfig({
4
4
  test: {
5
5
  reporters: ['junit', 'default'],
6
6
  outputFile: 'test-results/junit.xml',
7
+ include: ['src/**/*.{test,spec}.ts'],
8
+ exclude: ['dist/**'],
7
9
  coverage: {
8
- all: true,
9
10
  reporter: ['text', 'json', 'html', 'cobertura', 'text-summary'],
10
11
  clean: true,
11
12
  include: [
@@ -1,158 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
- return new (P || (P = Promise))(function (resolve, reject) {
16
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
- step((generator = generator.apply(thisArg, _arguments || [])).next());
20
- });
21
- };
22
- var __generator = (this && this.__generator) || function (thisArg, body) {
23
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
24
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
- function verb(n) { return function (v) { return step([n, v]); }; }
26
- function step(op) {
27
- if (f) throw new TypeError("Generator is already executing.");
28
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
- if (y = 0, t) op = [op[0] & 2, t.value];
31
- switch (op[0]) {
32
- case 0: case 1: t = op; break;
33
- case 4: _.label++; return { value: op[1], done: false };
34
- case 5: _.label++; y = op[1]; op = [0]; continue;
35
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
- default:
37
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
- if (t[2]) _.ops.pop();
42
- _.trys.pop(); continue;
43
- }
44
- op = body.call(thisArg, _);
45
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
- }
48
- };
49
- var __importDefault = (this && this.__importDefault) || function (mod) {
50
- return (mod && mod.__esModule) ? mod : { "default": mod };
51
- };
52
- Object.defineProperty(exports, "__esModule", { value: true });
53
- var msw_1 = require("msw");
54
- var node_1 = require("msw/node");
55
- var vitest_1 = require("vitest");
56
- var __1 = require("..");
57
- var collection_json_1 = __importDefault(require("./fixtures/collection.json"));
58
- var server = (0, node_1.setupServer)(msw_1.http.post('https://lookup-api.svc.url/collections', function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
59
- var body;
60
- var request = _b.request;
61
- return __generator(this, function (_c) {
62
- switch (_c.label) {
63
- case 0:
64
- if (request.headers.get('authorization') !== 'valid-auth-token') {
65
- return [2, new msw_1.HttpResponse(null, { status: 401 })];
66
- }
67
- return [4, request.json()];
68
- case 1:
69
- body = _c.sent();
70
- if (body.ise === true) {
71
- return [2, msw_1.HttpResponse.json({
72
- error: 'Some tech error message here',
73
- statusCode: 500,
74
- }, { status: 500 })];
75
- }
76
- if (typeof body.name === 'string' && body.name.length < 3) {
77
- return [2, msw_1.HttpResponse.json({
78
- error: [
79
- 'name must be longer than or equal to 5 characters',
80
- 'Can start only with a letter.',
81
- ],
82
- statusCode: 400,
83
- }, { status: 400 })];
84
- }
85
- return [2, msw_1.HttpResponse.json(collection_json_1.default)];
86
- }
87
- });
88
- }); }));
89
- var createLookupInstance = function (opts) {
90
- if (opts === void 0) { opts = {}; }
91
- return new __1.Lookup(__assign({ serviceUrl: 'https://lookup-api.svc.url', token: 'valid-auth-token' }, opts));
92
- };
93
- (0, vitest_1.describe)('Lookup', function () {
94
- (0, vitest_1.beforeAll)(function () { return server.listen(); });
95
- (0, vitest_1.afterEach)(function () { return server.resetHandlers(); });
96
- (0, vitest_1.afterAll)(function () { return server.close(); });
97
- (0, vitest_1.it)('should create an instance successfully', function () {
98
- var lookup = createLookupInstance();
99
- (0, vitest_1.expect)(lookup).toBeInstanceOf(__1.Lookup);
100
- });
101
- (0, vitest_1.it)('should create a new collection properly', function () { return __awaiter(void 0, void 0, void 0, function () {
102
- var lookup, resp;
103
- return __generator(this, function (_a) {
104
- switch (_a.label) {
105
- case 0:
106
- lookup = createLookupInstance();
107
- return [4, lookup.createCollection({
108
- name: 'dev collection',
109
- })];
110
- case 1:
111
- resp = _a.sent();
112
- (0, vitest_1.expect)(resp).toEqual(collection_json_1.default);
113
- return [2];
114
- }
115
- });
116
- }); });
117
- (0, vitest_1.it)('should show UnAuth Error if token is invalid', function () { return __awaiter(void 0, void 0, void 0, function () {
118
- var lookup, promise;
119
- return __generator(this, function (_a) {
120
- switch (_a.label) {
121
- case 0:
122
- lookup = createLookupInstance({
123
- token: 'invalid-token',
124
- });
125
- promise = lookup.createCollection({
126
- name: 'dev collection',
127
- });
128
- return [4, (0, vitest_1.expect)(promise).rejects.toMatchObject({
129
- status: 401,
130
- message: 'We are not able to authenticate you',
131
- })];
132
- case 1:
133
- _a.sent();
134
- return [2];
135
- }
136
- });
137
- }); });
138
- (0, vitest_1.it)('should show validation errors properly', function () { return __awaiter(void 0, void 0, void 0, function () {
139
- var lookup, promise;
140
- return __generator(this, function (_a) {
141
- switch (_a.label) {
142
- case 0:
143
- lookup = createLookupInstance();
144
- promise = lookup.createCollection({
145
- name: '1',
146
- });
147
- return [4, (0, vitest_1.expect)(promise).rejects.toMatchObject({
148
- status: 400,
149
- message: 'name must be longer than or equal to 5 characters. Can start only with a letter.',
150
- })];
151
- case 1:
152
- _a.sent();
153
- return [2];
154
- }
155
- });
156
- }); });
157
- });
158
- //# sourceMappingURL=QnA.collections.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QnA.collections.spec.js","sourceRoot":"","sources":["../../../src/__tests__/QnA.collections.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAyC;AACzC,iCAAuC;AACvC,iCAA8E;AAE9E,wBAA4B;AAG5B,+EAAoD;AAEpD,IAAM,MAAM,GAAG,IAAA,kBAAW,EACxB,UAAI,CAAC,IAAI,CAAC,wCAAwC,EAAE,iEAAO,EAAW;;QAAT,OAAO,aAAA;;;;gBAClE,IAAI,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,KAAK,kBAAkB,EAAE,CAAC;oBAChE,WAAO,IAAI,kBAAY,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAC;gBACjD,CAAC;gBACY,WAAM,OAAO,CAAC,IAAI,EAAE,EAAA;;gBAA3B,IAAI,GAAG,SAA+C;gBAC5D,IAAI,IAAI,CAAC,GAAG,KAAK,IAAI,EAAE,CAAC;oBACtB,WAAO,kBAAY,CAAC,IAAI,CAAC;4BACvB,KAAK,EAAE,8BAA8B;4BACrC,UAAU,EAAE,GAAG;yBAChB,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAC;gBACtB,CAAC;gBACD,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBAC1D,WAAO,kBAAY,CAAC,IAAI,CAAC;4BACvB,KAAK,EAAE;gCACL,mDAAmD;gCACnD,+BAA+B;6BAChC;4BACD,UAAU,EAAE,GAAG;yBAChB,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAC;gBACtB,CAAC;gBACD,WAAO,kBAAY,CAAC,IAAI,CAAC,yBAAU,CAAC,EAAC;;;KACtC,CAAC,CACH,CAAC;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,aAAa,CAAC;4BAC1C,MAAM,EAAE,GAAG;4BACX,OAAO,EAAE,qCAAqC;yBAC/C,CAAC,EAAA;;oBAHF,SAGE,CAAC;;;;SACJ,CAAC,CAAC;IAEH,IAAA,WAAE,EAAC,wCAAwC,EAAE;;;;;oBACrC,MAAM,GAAG,oBAAoB,EAAE,CAAC;oBAEhC,OAAO,GAAG,MAAM,CAAC,gBAAgB,CAAC;wBACtC,IAAI,EAAE,GAAG;qBACV,CAAC,CAAC;oBAEH,WAAM,IAAA,eAAM,EAAC,OAAO,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;4BAC1C,MAAM,EAAE,GAAG;4BACX,OAAO,EAAE,kFAAkF;yBAC5F,CAAC,EAAA;;oBAHF,SAGE,CAAC;;;;SACJ,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,34 +0,0 @@
1
- {
2
- "id": "c5cd0f6d-cf98-4f2e-822e-42be148012b1",
3
- "accountId": "d40ff964-dd12-4cbd-bb85-6ad35af3f908",
4
- "description": "some lorem description here",
5
- "name": "dev collection",
6
- "createdAt": "2023-06-21T05:38:51.211Z",
7
- "updatedAt": "2023-06-21T05:38:51.211Z",
8
- "properties": [
9
- {
10
- "name": "document",
11
- "dataType": "Document",
12
- "description": "A document the passage belongs to."
13
- },
14
- {
15
- "name": "content",
16
- "dataType": "text",
17
- "description": "the searchable passage content."
18
- },
19
- {
20
- "name": "loaderMetadata",
21
- "dataType": "text",
22
- "description": "JSON encoded metadata of the content loader."
23
- },
24
- {
25
- "name": "sourceUrl",
26
- "dataType": "text",
27
- "description": "The url of the document this passage belongs to."
28
- },
29
- {
30
- "name": "dddddd",
31
- "dataType": "date[]"
32
- }
33
- ]
34
- }
@@ -1,78 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { http, HttpResponse } from 'msw';
11
- import { setupServer } from 'msw/node';
12
- import { afterAll, afterEach, beforeAll, describe, expect, it } from 'vitest';
13
- import { Lookup } from '..';
14
- import collection from './fixtures/collection.json';
15
- const server = setupServer(http.post('https://lookup-api.svc.url/collections', (_a) => __awaiter(void 0, [_a], void 0, function* ({ request }) {
16
- if (request.headers.get('authorization') !== 'valid-auth-token') {
17
- return new HttpResponse(null, { status: 401 });
18
- }
19
- const body = yield request.json();
20
- if (body.ise === true) {
21
- return HttpResponse.json({
22
- error: 'Some tech error message here',
23
- statusCode: 500,
24
- }, { status: 500 });
25
- }
26
- if (typeof body.name === 'string' && body.name.length < 3) {
27
- return HttpResponse.json({
28
- error: [
29
- 'name must be longer than or equal to 5 characters',
30
- 'Can start only with a letter.',
31
- ],
32
- statusCode: 400,
33
- }, { status: 400 });
34
- }
35
- return HttpResponse.json(collection);
36
- })));
37
- const createLookupInstance = (opts = {}) => {
38
- return new Lookup(Object.assign({ serviceUrl: 'https://lookup-api.svc.url', token: 'valid-auth-token' }, opts));
39
- };
40
- describe('Lookup', () => {
41
- beforeAll(() => server.listen());
42
- afterEach(() => server.resetHandlers());
43
- afterAll(() => server.close());
44
- it('should create an instance successfully', () => {
45
- const lookup = createLookupInstance();
46
- expect(lookup).toBeInstanceOf(Lookup);
47
- });
48
- it('should create a new collection properly', () => __awaiter(void 0, void 0, void 0, function* () {
49
- const lookup = createLookupInstance();
50
- const resp = yield lookup.createCollection({
51
- name: 'dev collection',
52
- });
53
- expect(resp).toEqual(collection);
54
- }));
55
- it('should show UnAuth Error if token is invalid', () => __awaiter(void 0, void 0, void 0, function* () {
56
- const lookup = createLookupInstance({
57
- token: 'invalid-token',
58
- });
59
- const promise = lookup.createCollection({
60
- name: 'dev collection',
61
- });
62
- yield expect(promise).rejects.toMatchObject({
63
- status: 401,
64
- message: 'We are not able to authenticate you',
65
- });
66
- }));
67
- it('should show validation errors properly', () => __awaiter(void 0, void 0, void 0, function* () {
68
- const lookup = createLookupInstance();
69
- const promise = lookup.createCollection({
70
- name: '1',
71
- });
72
- yield expect(promise).rejects.toMatchObject({
73
- status: 400,
74
- message: 'name must be longer than or equal to 5 characters. Can start only with a letter.',
75
- });
76
- }));
77
- });
78
- //# sourceMappingURL=QnA.collections.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QnA.collections.spec.js","sourceRoot":"","sources":["../../../src/__tests__/QnA.collections.spec.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAG5B,OAAO,UAAU,MAAM,4BAA4B,CAAC;AAEpD,MAAM,MAAM,GAAG,WAAW,CACxB,IAAI,CAAC,IAAI,CAAC,wCAAwC,EAAE,KAAoB,EAAE,4CAAf,EAAE,OAAO,EAAE;IACpE,IAAI,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,KAAK,kBAAkB,EAAE,CAAC;QAChE,OAAO,IAAI,YAAY,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;IACjD,CAAC;IACD,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,EAA6B,CAAC;IAC7D,IAAI,IAAI,CAAC,GAAG,KAAK,IAAI,EAAE,CAAC;QACtB,OAAO,YAAY,CAAC,IAAI,CA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,MAAM,CAAC,gBAAgB,CAAC;YACzC,IAAI,EAAE,gBAAgB;SACvB,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IACnC,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAS,EAAE;QAC5D,MAAM,MAAM,GAAG,oBAAoB,CAAC;YAClC,KAAK,EAAE,eAAe;SACvB,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,MAAM,CAAC,gBAAgB,CAAC;YACtC,IAAI,EAAE,gBAAgB;SACvB,CAAC,CAAC;QAEH,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;YAC1C,MAAM,EAAE,GAAG;YACX,OAAO,EAAE,qCAAqC;SAC/C,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,wCAAwC,EAAE,GAAS,EAAE;QACtD,MAAM,MAAM,GAAG,oBAAoB,EAAE,CAAC;QAEtC,MAAM,OAAO,GAAG,MAAM,CAAC,gBAAgB,CAAC;YACtC,IAAI,EAAE,GAAG;SACV,CAAC,CAAC;QAEH,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;YAC1C,MAAM,EAAE,GAAG;YACX,OAAO,EAAE,kFAAkF;SAC5F,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,34 +0,0 @@
1
- {
2
- "id": "c5cd0f6d-cf98-4f2e-822e-42be148012b1",
3
- "accountId": "d40ff964-dd12-4cbd-bb85-6ad35af3f908",
4
- "description": "some lorem description here",
5
- "name": "dev collection",
6
- "createdAt": "2023-06-21T05:38:51.211Z",
7
- "updatedAt": "2023-06-21T05:38:51.211Z",
8
- "properties": [
9
- {
10
- "name": "document",
11
- "dataType": "Document",
12
- "description": "A document the passage belongs to."
13
- },
14
- {
15
- "name": "content",
16
- "dataType": "text",
17
- "description": "the searchable passage content."
18
- },
19
- {
20
- "name": "loaderMetadata",
21
- "dataType": "text",
22
- "description": "JSON encoded metadata of the content loader."
23
- },
24
- {
25
- "name": "sourceUrl",
26
- "dataType": "text",
27
- "description": "The url of the document this passage belongs to."
28
- },
29
- {
30
- "name": "dddddd",
31
- "dataType": "date[]"
32
- }
33
- ]
34
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=QnA.collections.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QnA.collections.spec.d.ts","sourceRoot":"","sources":["../../../src/__tests__/QnA.collections.spec.ts"],"names":[],"mappings":""}