@new-project-media/client-frontends-shared-types 3.19.1 → 3.19.2
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/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/lib/dataGrid/dataGrid.d.ts +9 -3
- package/src/lib/dataGrid/dataGrid.js +2 -0
- package/src/lib/dataGrid/dataGrid.js.map +1 -1
- package/src/lib/transactions/index.d.ts +72 -0
- package/src/lib/transactions/index.js +3 -0
- package/src/lib/transactions/index.js.map +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@new-project-media/client-frontends-shared-types",
|
|
3
|
-
"version": "3.19.
|
|
3
|
+
"version": "3.19.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "tsc -p tsconfig.json",
|
|
6
6
|
"postbuild": "mkdir -p ../../dist/packages/client-frontends-shared-types/ && cp package.json ../../dist/packages/client-frontends-shared-types/",
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
|
@@ -12,4 +12,5 @@ tslib_1.__exportStar(require("./lib/dashboard"), exports);
|
|
|
12
12
|
tslib_1.__exportStar(require("./lib/identifier"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./lib/intel"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./lib/websocket"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./lib/transactions"), exports);
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/client-frontends-shared-types/src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,wDAA6B;AAC7B,yDAA8B;AAC9B,0DAA+B;AAC/B,+DAAoC;AACpC,qEAA0C;AAC1C,8DAAmC;AACnC,0DAA+B;AAC/B,2DAAgC;AAChC,sDAA2B;AAC3B,0DAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/client-frontends-shared-types/src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,wDAA6B;AAC7B,yDAA8B;AAC9B,0DAA+B;AAC/B,+DAAoC;AACpC,qEAA0C;AAC1C,8DAAmC;AACnC,0DAA+B;AAC/B,2DAAgC;AAChC,sDAA2B;AAC3B,0DAA+B;AAC/B,6DAAkC"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { InfiniteData, QueryObserverResult, UseInfiniteQueryResult, UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { StaticRange } from 'react-date-range';
|
|
3
|
-
import { ClientApiListRequestFilter, ClientApiListRequestQueryParams, ClientApiListResponse, DataCenterListType, QueueListType, SignalListType } from './api';
|
|
4
|
-
export type
|
|
3
|
+
import { ClientApiListRequestFilter, ClientApiListRequestQueryParams, ClientApiListResponse, DataCenterListType, OrganizationItemType, QueueListType, SignalListType } from './api';
|
|
4
|
+
export type TransactionListType = {
|
|
5
|
+
id: string;
|
|
6
|
+
organizations?: OrganizationItemType[];
|
|
7
|
+
};
|
|
8
|
+
export type Entity = SignalListType | QueueListType | DataCenterListType | TransactionListType;
|
|
5
9
|
export type InfiniteQueryHook = (queryParams: ClientApiListRequestQueryParams, isEnabled?: boolean, customFilters?: ClientApiListRequestFilter[]) => UseInfiniteQueryResult<InfiniteData<ClientApiListResponse<Entity>, unknown>, Error>;
|
|
6
10
|
export type ReportQueryClient = (queryParams: ClientApiListRequestQueryParams, selectedRegionMode: RegionMode | null, customFilters?: ClientApiListRequestFilter[]) => Promise<ClientApiListResponse<Entity>>;
|
|
7
11
|
export type CenterpointQueryHook = (queryParams: ClientApiListRequestQueryParams, isEnabled?: boolean, customFilters?: ClientApiListRequestFilter[]) => UseQueryResult<ClientApiListResponse<Entity>, Error>;
|
|
@@ -27,12 +31,14 @@ export interface FilterGroup {
|
|
|
27
31
|
export declare enum EntityName {
|
|
28
32
|
signal = "signal",
|
|
29
33
|
queue = "queue",
|
|
30
|
-
dataCenter = "data-center"
|
|
34
|
+
dataCenter = "data-center",
|
|
35
|
+
transaction = "transaction"
|
|
31
36
|
}
|
|
32
37
|
export declare const HumanizedEntityNames: {
|
|
33
38
|
readonly signal: "Signals";
|
|
34
39
|
readonly queue: "Queues";
|
|
35
40
|
readonly "data-center": "Data Centers";
|
|
41
|
+
readonly transaction: "Transactions";
|
|
36
42
|
};
|
|
37
43
|
export type SearchRoleField = {
|
|
38
44
|
value: string;
|
|
@@ -6,11 +6,13 @@ var EntityName;
|
|
|
6
6
|
EntityName["signal"] = "signal";
|
|
7
7
|
EntityName["queue"] = "queue";
|
|
8
8
|
EntityName["dataCenter"] = "data-center";
|
|
9
|
+
EntityName["transaction"] = "transaction";
|
|
9
10
|
})(EntityName || (exports.EntityName = EntityName = {}));
|
|
10
11
|
exports.HumanizedEntityNames = {
|
|
11
12
|
[EntityName.signal]: 'Signals',
|
|
12
13
|
[EntityName.queue]: 'Queues',
|
|
13
14
|
[EntityName.dataCenter]: 'Data Centers',
|
|
15
|
+
[EntityName.transaction]: 'Transactions',
|
|
14
16
|
};
|
|
15
17
|
var FilterAutocompleteSortMode;
|
|
16
18
|
(function (FilterAutocompleteSortMode) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataGrid.js","sourceRoot":"","sources":["../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/dataGrid.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"dataGrid.js","sourceRoot":"","sources":["../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/dataGrid.ts"],"names":[],"mappings":";;;AA4EA,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,6BAAe,CAAA;IACf,wCAA0B,CAAA;IAC1B,yCAA2B,CAAA;AAC7B,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB;AAEY,QAAA,oBAAoB,GAAG;IAClC,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,SAAS;IAC9B,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,QAAQ;IAC5B,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,cAAc;IACvC,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,cAAc;CAChC,CAAA;AAyDV,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,6CAAe,CAAA;IACf,2CAAa,CAAA;AACf,CAAC,EAHW,0BAA0B,0CAA1B,0BAA0B,QAGrC;AAED,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,uBAAS,CAAA;IACT,+BAAiB,CAAA;IACjB,6BAAe,CAAA;AACjB,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Identifier } from '../identifier';
|
|
2
|
+
export interface TransactionResponse {
|
|
3
|
+
data: Transaction[];
|
|
4
|
+
paging: {
|
|
5
|
+
page: number;
|
|
6
|
+
total: number;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export interface Transaction {
|
|
10
|
+
reportedAt: string;
|
|
11
|
+
summary: string;
|
|
12
|
+
sectors?: Identifier[];
|
|
13
|
+
regions?: Identifier[];
|
|
14
|
+
projects?: Identifier[];
|
|
15
|
+
criteria?: string;
|
|
16
|
+
source: string;
|
|
17
|
+
transactionName: string;
|
|
18
|
+
intels?: TransactionIntel[];
|
|
19
|
+
structure?: Structure[];
|
|
20
|
+
transactionType?: Type[];
|
|
21
|
+
createdAt: string;
|
|
22
|
+
recordStatus: string;
|
|
23
|
+
indexed_at: string;
|
|
24
|
+
meta: Meta;
|
|
25
|
+
organizations?: Organization[];
|
|
26
|
+
audiences: Identifier[];
|
|
27
|
+
id: string;
|
|
28
|
+
inMarket: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface TransactionIntel {
|
|
31
|
+
identifier: string;
|
|
32
|
+
publishedAt: string;
|
|
33
|
+
intelType: string;
|
|
34
|
+
audiences: Identifier[];
|
|
35
|
+
id: string;
|
|
36
|
+
headline: string;
|
|
37
|
+
}
|
|
38
|
+
export interface Structure {
|
|
39
|
+
header: string;
|
|
40
|
+
type: Type;
|
|
41
|
+
}
|
|
42
|
+
export interface Type {
|
|
43
|
+
subtype?: string;
|
|
44
|
+
type: string;
|
|
45
|
+
}
|
|
46
|
+
export interface Meta {
|
|
47
|
+
created: string;
|
|
48
|
+
SK: string;
|
|
49
|
+
modified: string;
|
|
50
|
+
PK: string;
|
|
51
|
+
}
|
|
52
|
+
export interface Organization {
|
|
53
|
+
identifier: string;
|
|
54
|
+
role: string;
|
|
55
|
+
id: string;
|
|
56
|
+
amount?: Amount;
|
|
57
|
+
}
|
|
58
|
+
export interface Amount {
|
|
59
|
+
currency: string;
|
|
60
|
+
value: number;
|
|
61
|
+
}
|
|
62
|
+
export interface LinkedEntity {
|
|
63
|
+
id: string;
|
|
64
|
+
name: string;
|
|
65
|
+
href: string;
|
|
66
|
+
}
|
|
67
|
+
export interface OverviewField {
|
|
68
|
+
label: string;
|
|
69
|
+
value?: string;
|
|
70
|
+
links?: LinkedEntity[];
|
|
71
|
+
chips?: string[];
|
|
72
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/client-frontends-shared-types/src/lib/transactions/index.ts"],"names":[],"mappings":""}
|