@thinkerchain/flipper-entities 1.0.0

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.
@@ -0,0 +1,8 @@
1
+ export type { UserData, } from './types/user.types';
2
+ export type { ItemData, } from './types/item.types';
3
+ export type { UserItemData, } from './types/user-item.types';
4
+ export type { SearchData, } from './types/search.types';
5
+ export type { UserChannelData, } from './types/user-channel.types';
6
+ export type { OptionData, } from './types/option.types';
7
+ export type { LocationJSONB, MarketPlacePropJSONB, ItemFilterImage, ItemFilterLink, ItemFilterLocation, ItemFilterName, ItemFilterPrice, ItemFilterYear, ItemFilterDescription, ItemFilterJSONB, CoreValueJSONB, } from './types/search-jsonb.types';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,QAAQ,GACT,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EACV,QAAQ,GACT,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EACV,YAAY,GACb,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACV,UAAU,GACX,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACV,eAAe,GAChB,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EACV,UAAU,GACX,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,cAAc,GACf,MAAM,4BAA4B,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ export type ItemData = {
2
+ id: number;
3
+ searchId: number;
4
+ userId: number;
5
+ marketPlaceId: string | null;
6
+ marketPlaceName: string | null;
7
+ type: string | null;
8
+ name: string | null;
9
+ image: string | null;
10
+ link: string | null;
11
+ price: number | null;
12
+ location: string | null;
13
+ year: number | null;
14
+ other: Record<string, unknown> | null;
15
+ textContent: string | null;
16
+ description: string | null;
17
+ deleted: boolean;
18
+ createdAt: string;
19
+ createdBy: string | null;
20
+ updatedAt: string;
21
+ updatedBy: string | null;
22
+ };
23
+ //# sourceMappingURL=item.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item.types.d.ts","sourceRoot":"","sources":["../../src/types/item.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACtC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=item.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item.types.js","sourceRoot":"","sources":["../../src/types/item.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import type { CoreValueJSONB } from './search-jsonb.types';
2
+ export type OptionData = {
3
+ id: number;
4
+ name: string;
5
+ value: CoreValueJSONB | null;
6
+ deleted: boolean;
7
+ createdAt: string;
8
+ createdBy: string | null;
9
+ updatedAt: string;
10
+ updatedBy: string | null;
11
+ };
12
+ //# sourceMappingURL=option.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"option.types.d.ts","sourceRoot":"","sources":["../../src/types/option.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=option.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"option.types.js","sourceRoot":"","sources":["../../src/types/option.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,84 @@
1
+ export type LocationJSONB = {
2
+ name: string;
3
+ latitude: number;
4
+ longitude: number;
5
+ radiusKm: number;
6
+ };
7
+ export type MarketPlacePropJSONB = Record<string, {
8
+ type: string;
9
+ category: string;
10
+ subCategory?: string;
11
+ }>;
12
+ export type ItemFilterImage = {
13
+ noEmptyValue?: boolean;
14
+ };
15
+ export type ItemFilterLink = {
16
+ noEmptyValue?: boolean;
17
+ };
18
+ export type ItemFilterLocation = {
19
+ name?: {
20
+ noEmptyValue?: boolean;
21
+ contain?: string[];
22
+ notContain?: string[];
23
+ };
24
+ geoFencing?: {
25
+ active?: boolean;
26
+ };
27
+ };
28
+ export type ItemFilterName = {
29
+ noEmptyValue?: boolean;
30
+ contain?: string[];
31
+ notContain?: string[];
32
+ };
33
+ export type ItemFilterPrice = {
34
+ noEmptyValue?: boolean;
35
+ minPrice?: number;
36
+ maxPrice?: number;
37
+ noSameValue?: boolean;
38
+ noAscending?: boolean;
39
+ noDescending?: boolean;
40
+ };
41
+ export type ItemFilterYear = {
42
+ minYear?: number;
43
+ maxYear?: number;
44
+ };
45
+ export type ItemFilterDescription = {
46
+ noEmptyValue?: boolean;
47
+ contain?: string[];
48
+ notContain?: string[];
49
+ };
50
+ export type ItemFilterJSONB = {
51
+ type?: string;
52
+ image?: ItemFilterImage;
53
+ link?: ItemFilterLink;
54
+ location?: ItemFilterLocation;
55
+ name?: ItemFilterName;
56
+ price?: ItemFilterPrice;
57
+ year?: ItemFilterYear;
58
+ description?: ItemFilterDescription;
59
+ radiusKm?: number;
60
+ };
61
+ export type CoreValueJSONB = {
62
+ proxy?: {
63
+ host: string;
64
+ port: number;
65
+ username: string;
66
+ password: string;
67
+ };
68
+ orchestrator?: {
69
+ active: boolean;
70
+ orchestratorInterval: number;
71
+ orchestratorChunkSize: number;
72
+ };
73
+ engine?: {
74
+ pageTabPartitionSize: number;
75
+ redisTtlSeconds: number;
76
+ searchItemChunk: number;
77
+ pageTimeoutMiliseconds: number;
78
+ };
79
+ defaultValue?: {
80
+ itemFilter: ItemFilterJSONB;
81
+ marketPlaceProp: MarketPlacePropJSONB;
82
+ };
83
+ };
84
+ //# sourceMappingURL=search-jsonb.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-jsonb.types.d.ts","sourceRoot":"","sources":["../../src/types/search-jsonb.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,MAAM,CACvC,MAAM,EACN;IACE,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CACF,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE;QACL,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;KACvB,CAAC;IACF,UAAU,CAAC,EAAE;QACX,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAA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AAY,CAAC,EAAE;QACb,UAAU,EAAE,eAAe,CAAC;QAC5B,eAAe,EAAE,oBAAoB,CAAC;KACvC,CAAC;CACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=search-jsonb.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-jsonb.types.js","sourceRoot":"","sources":["../../src/types/search-jsonb.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import type { LocationJSONB, MarketPlacePropJSONB, ItemFilterJSONB } from './search-jsonb.types';
2
+ export type SearchData = {
3
+ id: number;
4
+ userId: number;
5
+ title: string;
6
+ type: string;
7
+ marketPlaceProp: MarketPlacePropJSONB | null;
8
+ location: LocationJSONB | null;
9
+ targetName: string;
10
+ marketPlaces: string[];
11
+ delayMilis: number;
12
+ lastScrappedEpoch: string | null;
13
+ filter: ItemFilterJSONB | null;
14
+ transactionDetailId: number | null;
15
+ idempotencyKey: string | null;
16
+ startDate: string | null;
17
+ endDate: string | null;
18
+ deleted: boolean;
19
+ createdAt: string;
20
+ createdBy: string | null;
21
+ updatedAt: string;
22
+ updatedBy: string | null;
23
+ };
24
+ //# sourceMappingURL=search.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.types.d.ts","sourceRoot":"","sources":["../../src/types/search.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,oBAAoB,EACpB,eAAe,EAChB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC7C,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC;IAC/B,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=search.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.types.js","sourceRoot":"","sources":["../../src/types/search.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ export type UserChannelData = {
2
+ id: number;
3
+ userId: number;
4
+ name: string;
5
+ other: Record<string, unknown> | null;
6
+ deleted: boolean;
7
+ createdAt: string;
8
+ createdBy: string | null;
9
+ updatedAt: string;
10
+ updatedBy: string | null;
11
+ };
12
+ //# sourceMappingURL=user-channel.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-channel.types.d.ts","sourceRoot":"","sources":["../../src/types/user-channel.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user-channel.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-channel.types.js","sourceRoot":"","sources":["../../src/types/user-channel.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import type { ItemData } from './item.types';
2
+ export type UserItemData = ItemData;
3
+ //# sourceMappingURL=user-item.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-item.types.d.ts","sourceRoot":"","sources":["../../src/types/user-item.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user-item.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-item.types.js","sourceRoot":"","sources":["../../src/types/user-item.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ export type UserData = {
2
+ id: number;
3
+ username: string;
4
+ name: string | null;
5
+ email: string | null;
6
+ password: string;
7
+ isEmailValid: boolean;
8
+ roles: string[];
9
+ option: Record<string, unknown> | null;
10
+ deleted: boolean;
11
+ createdAt: string;
12
+ createdBy: string | null;
13
+ updatedAt: string;
14
+ updatedBy: string | null;
15
+ };
16
+ //# sourceMappingURL=user.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.types.d.ts","sourceRoot":"","sources":["../../src/types/user.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.types.js","sourceRoot":"","sources":["../../src/types/user.types.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@thinkerchain/flipper-entities",
3
+ "version": "1.0.0",
4
+ "private": false,
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist",
9
+ "README.md"
10
+ ],
11
+ "scripts": {
12
+ "build": "tsc",
13
+ "prepublishOnly": "tsc"
14
+ },
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "devDependencies": {
19
+ "typescript": "^5.0.0"
20
+ },
21
+ "license": "UNLICENSED"
22
+ }