@or-sdk/data-hub 0.6.0 → 0.9.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/dist/cjs/DataHub.js +9 -2
- package/dist/cjs/DataHub.js.map +1 -1
- package/dist/esm/DataHub.js +5 -3
- package/dist/esm/DataHub.js.map +1 -1
- package/dist/types/DataHub.d.ts +4 -4
- package/dist/types/types.d.ts +38 -21
- package/package.json +3 -3
- package/src/DataHub.ts +9 -11
- package/src/types.ts +29 -24
package/dist/cjs/DataHub.js
CHANGED
|
@@ -89,7 +89,14 @@ var DataHub = (function (_super) {
|
|
|
89
89
|
return _this;
|
|
90
90
|
}
|
|
91
91
|
DataHub.prototype.makeRequest = function (params) {
|
|
92
|
-
return this
|
|
92
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
93
|
+
return __generator(this, function (_a) {
|
|
94
|
+
switch (_a.label) {
|
|
95
|
+
case 0: return [4, this.callApi(params)];
|
|
96
|
+
case 1: return [2, _a.sent()];
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
});
|
|
93
100
|
};
|
|
94
101
|
DataHub.prototype.subscribe = function (requestId) {
|
|
95
102
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -160,7 +167,7 @@ var DataHub = (function (_super) {
|
|
|
160
167
|
case 3:
|
|
161
168
|
if (resultList.last) return [3, 1];
|
|
162
169
|
_a.label = 4;
|
|
163
|
-
case 4: return [2, resultFullList];
|
|
170
|
+
case 4: return [2, (0, base_1.makeList)(resultFullList)];
|
|
164
171
|
}
|
|
165
172
|
});
|
|
166
173
|
});
|
package/dist/cjs/DataHub.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataHub.js","sourceRoot":"","sources":["../../src/DataHub.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
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BAM5C,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS,EAAE;4BAC/B,IAAI,MAAM,CAAC,KAAK,EAAE;gCAChB,MAAM,MAAM,CAAC,KAAK,CAAC;6BACpB;4BAED,WAAO,MAAM,EAAC;yBACf;;;4BAEM,OAAO,GAAG,GAAG;;4BAEtB,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;;;;KAC5D;IAQY,6BAAW,GAAxB,UAA4B,MAA8B,EAAE,KAAa,EAAE,IAAwB;;;;;;wBAE7F,cAAc,GAAQ,EAAE,CAAC;;4BAGZ,WAAM,IAAI,CAAC,WAAW,CAA6B;4BAChE,MAAM,QAAA;4BACN,KAAK,OAAA;4BACL,IAAI,MAAA;yBACL,CAAC,EAAA;;wBAJI,MAAM,GAAG,SAIb;wBAEF,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;wBAC9B,cAAc,mCAAO,cAAc,SAAK,UAAU,CAAC,OAAO,OAAC,CAAC;wBAE5D,IAAI,CAAC,SAAS,CAAC,MAAM,yBAChB,IAAI,CAAC,SAAS,CAAC,MAAM,KACxB,IAAI,EAAE,UAAU,CAAC,IAAI,GACtB,CAAC;;;4BAEK,UAAU,CAAC,IAAI;;4BAExB,WAAO,IAAA,eAAQ,EAAI,cAAc,CAAC,EAAC;;;;KACpC;IAEH,cAAC;AAAD,CAAC,AA9GD,CAA6B,WAAI,GA8GhC;AA9GY,0BAAO"}
|
package/dist/esm/DataHub.js
CHANGED
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { Base, timeout } from '@or-sdk/base';
|
|
10
|
+
import { Base, timeout, makeList } from '@or-sdk/base';
|
|
11
11
|
import { SERVICE_KEY, QUERY_CHECK_EXECUTION_RESULT } from './constants';
|
|
12
12
|
import { v4 as uuidv4 } from 'uuid';
|
|
13
13
|
export class DataHub extends Base {
|
|
@@ -21,7 +21,9 @@ export class DataHub extends Base {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
makeRequest(params) {
|
|
24
|
-
return this
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
return yield this.callApi(params);
|
|
26
|
+
});
|
|
25
27
|
}
|
|
26
28
|
subscribe(requestId) {
|
|
27
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -70,7 +72,7 @@ export class DataHub extends Base {
|
|
|
70
72
|
resultFullList = [...resultFullList, ...resultList.records];
|
|
71
73
|
data.variables.params = Object.assign(Object.assign({}, data.variables.params), { last: resultList.last });
|
|
72
74
|
} while (resultList.last);
|
|
73
|
-
return resultFullList;
|
|
75
|
+
return makeList(resultFullList);
|
|
74
76
|
});
|
|
75
77
|
}
|
|
76
78
|
}
|
package/dist/esm/DataHub.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataHub.js","sourceRoot":"","sources":["../../src/DataHub.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,IAAI,EAAgB,OAAO,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"DataHub.js","sourceRoot":"","sources":["../../src/DataHub.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,IAAI,EAAgB,OAAO,EAAQ,QAAQ,EAAE,MAAM,cAAc,CAAC;AAO3E,OAAO,EAAE,WAAW,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AASpC,MAAM,OAAO,OAAQ,SAAQ,IAAI;IAO/B,YAAY,MAAqB;QAC/B,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;QAEvC,KAAK,CAAC;YACJ,KAAK;YACL,YAAY;YACZ,UAAU,EAAE,WAAW;YAC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N,KAAK;oBACL,IAAI;iBACL,CAAC,CAAC;gBAEH,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC9B,cAAc,GAAG,CAAC,GAAG,cAAc,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;gBAE5D,IAAI,CAAC,SAAS,CAAC,MAAM,mCAChB,IAAI,CAAC,SAAS,CAAC,MAAM,KACxB,IAAI,EAAE,UAAU,CAAC,IAAI,GACtB,CAAC;aAEH,QAAQ,UAAU,CAAC,IAAI,EAAE;YAE1B,OAAO,QAAQ,CAAI,cAAc,CAAC,CAAC;QACrC,CAAC;KAAA;CAEF"}
|
package/dist/types/DataHub.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Base, CalApiParams } from '@or-sdk/base';
|
|
2
|
-
import { DataHubConfig,
|
|
1
|
+
import { Base, CalApiParams, List } from '@or-sdk/base';
|
|
2
|
+
import { DataHubConfig, GraphqlRequestData, GraphqlResponseCheckExecution } from './types';
|
|
3
3
|
export declare class DataHub extends Base {
|
|
4
4
|
constructor(params: DataHubConfig);
|
|
5
5
|
makeRequest<T>(params: CalApiParams): Promise<T>;
|
|
6
|
-
subscribe(requestId: string): Promise<
|
|
7
|
-
getFullList<T>(method: CalApiParams['method'], route: string, data: GraphqlRequestData): Promise<T
|
|
6
|
+
subscribe(requestId: string): Promise<GraphqlResponseCheckExecution>;
|
|
7
|
+
getFullList<T>(method: CalApiParams['method'], route: string, data: GraphqlRequestData): Promise<List<T>>;
|
|
8
8
|
}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -3,25 +3,6 @@ export declare type DataHubConfig = {
|
|
|
3
3
|
token: Token;
|
|
4
4
|
discoveryUrl: string;
|
|
5
5
|
};
|
|
6
|
-
export declare type SubscribeResultData = {
|
|
7
|
-
status?: string;
|
|
8
|
-
__deleted__?: {
|
|
9
|
-
deletedDate: number;
|
|
10
|
-
isCascade: {
|
|
11
|
-
BOOL: boolean;
|
|
12
|
-
};
|
|
13
|
-
isOrphan: {
|
|
14
|
-
BOOL: boolean;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
error?: string;
|
|
18
|
-
stack?: string;
|
|
19
|
-
};
|
|
20
|
-
export declare type SubscribeResult = {
|
|
21
|
-
data: {
|
|
22
|
-
checkExecutionResult: SubscribeResultData;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
6
|
export declare type GraphqlRequestData = {
|
|
26
7
|
operationName: string;
|
|
27
8
|
query: string;
|
|
@@ -36,8 +17,44 @@ export declare type GraphqlResponseList<T> = {
|
|
|
36
17
|
last?: string;
|
|
37
18
|
records: T[];
|
|
38
19
|
};
|
|
39
|
-
export declare type
|
|
40
|
-
|
|
20
|
+
export declare type GraphqlResponseDelete = {
|
|
21
|
+
requestId: string;
|
|
22
|
+
};
|
|
23
|
+
export declare type GraphqlResponseCheckExecution = {
|
|
24
|
+
status?: string;
|
|
25
|
+
__deleted__?: {
|
|
26
|
+
deletedDate: number;
|
|
27
|
+
isCascade: {
|
|
28
|
+
BOOL: boolean;
|
|
29
|
+
};
|
|
30
|
+
isOrphan: {
|
|
31
|
+
BOOL: boolean;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
error?: string;
|
|
35
|
+
stack?: string;
|
|
36
|
+
};
|
|
37
|
+
interface GraphqlResponseVariations<T> {
|
|
38
|
+
list: {
|
|
41
39
|
list: GraphqlResponseList<T>;
|
|
42
40
|
};
|
|
41
|
+
get: {
|
|
42
|
+
get: T;
|
|
43
|
+
};
|
|
44
|
+
create: {
|
|
45
|
+
create: T;
|
|
46
|
+
};
|
|
47
|
+
update: {
|
|
48
|
+
update: T;
|
|
49
|
+
};
|
|
50
|
+
deleteTemporarily: {
|
|
51
|
+
deleteTemporarily: GraphqlResponseDelete;
|
|
52
|
+
};
|
|
53
|
+
checkExecutionResult: {
|
|
54
|
+
checkExecutionResult: GraphqlResponseCheckExecution;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export declare type GraphqlResponse<key extends keyof GraphqlResponseVariations<void>, T> = {
|
|
58
|
+
data: GraphqlResponseVariations<T>[key];
|
|
43
59
|
};
|
|
60
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.9.1",
|
|
3
3
|
"name": "@or-sdk/data-hub",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@or-sdk/base": "^0.
|
|
27
|
+
"@or-sdk/base": "^0.9.1",
|
|
28
28
|
"uuid": "^8.3.2"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "19c2221d6f95694979b32f51d729771a558ef189"
|
|
31
31
|
}
|
package/src/DataHub.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { Base, CalApiParams, timeout } from '@or-sdk/base';
|
|
1
|
+
import { Base, CalApiParams, timeout, List, makeList } from '@or-sdk/base';
|
|
2
2
|
import {
|
|
3
3
|
DataHubConfig,
|
|
4
|
-
SubscribeResult,
|
|
5
|
-
SubscribeResultData,
|
|
6
4
|
GraphqlRequestData,
|
|
7
5
|
GraphqlResponseList,
|
|
8
|
-
GraphqlResponse,
|
|
6
|
+
GraphqlResponse, GraphqlResponseCheckExecution,
|
|
9
7
|
} from './types';
|
|
10
8
|
import { SERVICE_KEY, QUERY_CHECK_EXECUTION_RESULT } from './constants';
|
|
11
9
|
import { v4 as uuidv4 } from 'uuid';
|
|
@@ -46,8 +44,8 @@ export class DataHub extends Base {
|
|
|
46
44
|
* });
|
|
47
45
|
* ```
|
|
48
46
|
*/
|
|
49
|
-
public makeRequest<T>(params: CalApiParams): Promise<T> {
|
|
50
|
-
return this.callApi(params);
|
|
47
|
+
public async makeRequest<T>(params: CalApiParams): Promise<T> {
|
|
48
|
+
return await this.callApi<T>(params);
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
/**
|
|
@@ -56,7 +54,7 @@ export class DataHub extends Base {
|
|
|
56
54
|
* const result = await dataHub.subscribe('request-id');
|
|
57
55
|
* ```
|
|
58
56
|
*/
|
|
59
|
-
public async subscribe(requestId: string): Promise<
|
|
57
|
+
public async subscribe(requestId: string): Promise<GraphqlResponseCheckExecution> {
|
|
60
58
|
if (!requestId) {
|
|
61
59
|
throw new Error('subscription error: requestId is required');
|
|
62
60
|
}
|
|
@@ -78,7 +76,7 @@ export class DataHub extends Base {
|
|
|
78
76
|
variables,
|
|
79
77
|
};
|
|
80
78
|
|
|
81
|
-
const { data: { checkExecutionResult: result } }
|
|
79
|
+
const { data: { checkExecutionResult: result } } = await this.makeRequest<GraphqlResponse<'checkExecutionResult', undefined>>({
|
|
82
80
|
method: 'POST',
|
|
83
81
|
route: '/graphql',
|
|
84
82
|
data,
|
|
@@ -103,12 +101,12 @@ export class DataHub extends Base {
|
|
|
103
101
|
* const result = await dataHub.getFullList('POST', '/route', requestData);
|
|
104
102
|
* ```
|
|
105
103
|
*/
|
|
106
|
-
public async getFullList<T>(method: CalApiParams['method'], route: string, data: GraphqlRequestData): Promise<T
|
|
104
|
+
public async getFullList<T>(method: CalApiParams['method'], route: string, data: GraphqlRequestData): Promise<List<T>> {
|
|
107
105
|
let resultList: GraphqlResponseList<T>;
|
|
108
106
|
let resultFullList: T[] = [];
|
|
109
107
|
|
|
110
108
|
do {
|
|
111
|
-
const result = await this.makeRequest<GraphqlResponse<T>>({
|
|
109
|
+
const result = await this.makeRequest<GraphqlResponse<'list', T>>({
|
|
112
110
|
method,
|
|
113
111
|
route,
|
|
114
112
|
data,
|
|
@@ -124,7 +122,7 @@ export class DataHub extends Base {
|
|
|
124
122
|
|
|
125
123
|
} while (resultList.last);
|
|
126
124
|
|
|
127
|
-
return resultFullList;
|
|
125
|
+
return makeList<T>(resultFullList);
|
|
128
126
|
}
|
|
129
127
|
|
|
130
128
|
}
|
package/src/types.ts
CHANGED
|
@@ -12,27 +12,6 @@ export type DataHubConfig = {
|
|
|
12
12
|
discoveryUrl: string;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
export type SubscribeResultData = {
|
|
16
|
-
status?: string;
|
|
17
|
-
__deleted__?: {
|
|
18
|
-
deletedDate: number;
|
|
19
|
-
isCascade: {
|
|
20
|
-
BOOL: boolean;
|
|
21
|
-
};
|
|
22
|
-
isOrphan: {
|
|
23
|
-
BOOL: boolean;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
error?: string;
|
|
27
|
-
stack?: string;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export type SubscribeResult = {
|
|
31
|
-
data: {
|
|
32
|
-
checkExecutionResult: SubscribeResultData;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
|
|
36
15
|
export type GraphqlRequestData = {
|
|
37
16
|
operationName: string;
|
|
38
17
|
query: string;
|
|
@@ -49,8 +28,34 @@ export type GraphqlResponseList<T> = {
|
|
|
49
28
|
records: T[];
|
|
50
29
|
};
|
|
51
30
|
|
|
52
|
-
export type
|
|
53
|
-
|
|
54
|
-
|
|
31
|
+
export type GraphqlResponseDelete = {
|
|
32
|
+
requestId: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type GraphqlResponseCheckExecution = {
|
|
36
|
+
status?: string;
|
|
37
|
+
__deleted__?: {
|
|
38
|
+
deletedDate: number;
|
|
39
|
+
isCascade: {
|
|
40
|
+
BOOL: boolean;
|
|
41
|
+
};
|
|
42
|
+
isOrphan: {
|
|
43
|
+
BOOL: boolean;
|
|
44
|
+
};
|
|
55
45
|
};
|
|
46
|
+
error?: string;
|
|
47
|
+
stack?: string;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
interface GraphqlResponseVariations<T> {
|
|
51
|
+
list: { list: GraphqlResponseList<T>; };
|
|
52
|
+
get: { get: T; };
|
|
53
|
+
create: { create: T; };
|
|
54
|
+
update: { update: T; };
|
|
55
|
+
deleteTemporarily: { deleteTemporarily: GraphqlResponseDelete; };
|
|
56
|
+
checkExecutionResult: { checkExecutionResult: GraphqlResponseCheckExecution; };
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type GraphqlResponse<key extends keyof GraphqlResponseVariations<void>, T> = {
|
|
60
|
+
data: GraphqlResponseVariations<T>[key];
|
|
56
61
|
};
|