elasticsearch-store 0.56.8-rc.1 → 0.56.8
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DataTypeFields } from '@terascope/types';
|
|
2
|
+
import { DataType } from '@terascope/data-types';
|
|
2
3
|
/** JSON Schema */
|
|
3
4
|
export declare const schema: {
|
|
4
5
|
additionalProperties: boolean;
|
|
@@ -28,8 +29,8 @@ export declare const schema: {
|
|
|
28
29
|
export declare function makeRecordDataType(arg: {
|
|
29
30
|
name: string;
|
|
30
31
|
description?: string;
|
|
31
|
-
fields:
|
|
32
|
-
}):
|
|
32
|
+
fields: DataTypeFields;
|
|
33
|
+
}): DataType;
|
|
33
34
|
export declare function addDefaultSchema(input: Record<string, any>): Record<string, any>;
|
|
34
35
|
/**
|
|
35
36
|
* Deep copy two levels deep (useful for mapping and schema)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/utils/model.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/utils/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAkB,MAAM,uBAAuB,CAAC;AAGjE,kBAAkB;AAClB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;CAwBlB,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,GAAG,EAAE;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,cAAc,CAAC;CAC1B,GAAG,QAAQ,CAYX;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAEhF;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAiB/D;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEnD;AAGD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEtD"}
|
package/dist/src/utils/model.js
CHANGED
|
@@ -20,7 +20,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.uniqueFieldQuery = exports.toInstanceName = exports.mergeDefaults = exports.addDefaultSchema = exports.makeRecordDataType = exports.schema = void 0;
|
|
23
|
-
const
|
|
23
|
+
const types_1 = require("@terascope/types");
|
|
24
|
+
const data_types_1 = require("@terascope/data-types");
|
|
24
25
|
const ts = __importStar(require("@terascope/utils"));
|
|
25
26
|
/** JSON Schema */
|
|
26
27
|
exports.schema = {
|
|
@@ -49,16 +50,16 @@ exports.schema = {
|
|
|
49
50
|
required: ['_key', 'client_id'],
|
|
50
51
|
};
|
|
51
52
|
function makeRecordDataType(arg) {
|
|
52
|
-
return new
|
|
53
|
+
return new data_types_1.DataType({
|
|
53
54
|
fields: {
|
|
54
55
|
...arg.fields,
|
|
55
|
-
_created: { type:
|
|
56
|
-
_updated: { type:
|
|
57
|
-
_deleted: { type:
|
|
58
|
-
_key: { type:
|
|
59
|
-
client_id: { type:
|
|
56
|
+
_created: { type: types_1.FieldType.Date, description: 'Record creation time' },
|
|
57
|
+
_updated: { type: types_1.FieldType.Date, description: 'Last record modified time' },
|
|
58
|
+
_deleted: { type: types_1.FieldType.Boolean, description: 'A flag to indicate whether the record is deleted' },
|
|
59
|
+
_key: { type: types_1.FieldType.Keyword, description: 'The unique ID for the record (autogenerated on creation)' },
|
|
60
|
+
client_id: { type: types_1.FieldType.Integer, description: 'The client id namespace, 0 is global' },
|
|
60
61
|
},
|
|
61
|
-
version:
|
|
62
|
+
version: data_types_1.LATEST_VERSION
|
|
62
63
|
}, arg.name, arg.description);
|
|
63
64
|
}
|
|
64
65
|
exports.makeRecordDataType = makeRecordDataType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/utils/model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/utils/model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA6D;AAC7D,sDAAiE;AACjE,qDAAuC;AAEvC,kBAAkB;AACL,QAAA,MAAM,GAAG;IAClB,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;QACD,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,GAAG;YACf,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;SACb;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;SACjB;QACD,QAAQ,EAAE;YACN,MAAM,EAAE,WAAW;SACtB;QACD,QAAQ,EAAE;YACN,MAAM,EAAE,WAAW;SACtB;KACJ;IACD,QAAQ,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC;CAClC,CAAC;AAEF,SAAgB,kBAAkB,CAAC,GAIlC;IACG,OAAO,IAAI,qBAAQ,CAAC;QAChB,MAAM,EAAE;YACJ,GAAG,GAAG,CAAC,MAAM;YACb,QAAQ,EAAE,EAAE,IAAI,EAAE,iBAAS,CAAC,IAAI,EAAE,WAAW,EAAE,sBAAsB,EAAE;YACvE,QAAQ,EAAE,EAAE,IAAI,EAAE,iBAAS,CAAC,IAAI,EAAE,WAAW,EAAE,2BAA2B,EAAE;YAC5E,Q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iBAAM;gBACH,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;aACrB;SACJ;KACJ;IAED,OAAO,MAAM,CAAC;AAClB,CAAC;AAjBD,sCAiBC;AAED,SAAgB,cAAc,CAAC,IAAY;IACvC,OAAO,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC/D,CAAC;AAFD,wCAEC;AAED,MAAM,cAAc,GAAG,gBAAgB,CAAC;AACxC,SAAgB,gBAAgB,CAAC,KAAa;IAC1C,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,cAAc,EAAE,GAAG,CAAC,GAAG,CAAC;AACrD,CAAC;AAFD,4CAEC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elasticsearch-store",
|
|
3
3
|
"displayName": "Elasticsearch Store",
|
|
4
|
-
"version": "0.56.8
|
|
4
|
+
"version": "0.56.8",
|
|
5
5
|
"description": "An API for managing an elasticsearch index, with versioning and migration support.",
|
|
6
6
|
"homepage": "https://github.com/terascope/teraslice/tree/master/packages/elasticsearch-store#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"test:watch": "ts-scripts test --watch . --"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@terascope/data-mate": "^0.34.8
|
|
28
|
-
"@terascope/data-types": "^0.32.
|
|
29
|
-
"@terascope/types": "^0.10.
|
|
30
|
-
"@terascope/utils": "^0.42.
|
|
27
|
+
"@terascope/data-mate": "^0.34.8",
|
|
28
|
+
"@terascope/data-types": "^0.32.7",
|
|
29
|
+
"@terascope/types": "^0.10.2",
|
|
30
|
+
"@terascope/utils": "^0.42.6",
|
|
31
31
|
"ajv": "^6.12.6",
|
|
32
32
|
"uuid": "^8.3.2",
|
|
33
|
-
"xlucene-translator": "^0.24.
|
|
33
|
+
"xlucene-translator": "^0.24.6"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/uuid": "^8.3.1",
|