@riverscapes/common 1.2.0 → 1.3.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/api.d.ts +25 -19
- package/dist/api.js +118 -37
- package/dist/api.js.map +1 -1
- package/dist/classes/BusinessLogic.d.ts +11 -0
- package/dist/classes/BusinessLogic.js +90 -0
- package/dist/classes/BusinessLogic.js.map +1 -0
- package/dist/classes/FeatureFlags.d.ts +6 -0
- package/dist/classes/FeatureFlags.js +25 -0
- package/dist/classes/FeatureFlags.js.map +1 -0
- package/dist/classes/Program.d.ts +1 -1
- package/dist/classes/Program.js +4 -2
- package/dist/classes/Program.js.map +1 -1
- package/dist/classes/Project.d.ts +4 -4
- package/dist/classes/Project.js +18 -7
- package/dist/classes/Project.js.map +1 -1
- package/dist/classes/TileIndexJSON.d.ts +21 -0
- package/dist/classes/TileIndexJSON.js +10 -0
- package/dist/classes/TileIndexJSON.js.map +1 -0
- package/dist/classes/TileServiceJSONClass.d.ts +22 -0
- package/dist/classes/TileServiceJSONClass.js +11 -0
- package/dist/classes/TileServiceJSONClass.js.map +1 -0
- package/dist/classes/errors.js +3 -1
- package/dist/classes/errors.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/schema.graphql.js +2 -1
- package/dist/schema.graphql.js.map +1 -1
- package/dist/types.d.ts +181 -8
- package/dist/types.js +61 -1
- package/dist/types.js.map +1 -1
- package/dist/xml.d.ts +2 -1
- package/dist/xml.js +52 -42
- package/dist/xml.js.map +1 -1
- package/package.json +11 -10
package/dist/api.d.ts
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { ASTNode } from 'graphql';
|
|
2
|
-
import { FileDownloadMetaType, SearchResultsInterface, GetUsersInterface, UserType, WarehouseRoleEnum } from './types';
|
|
3
|
-
import { Program, Project } from './';
|
|
4
|
-
declare type AbstractJSON = {
|
|
5
|
-
[key: string]: AbstractJSON | string | number;
|
|
6
|
-
};
|
|
2
|
+
import { FileDownloadMetaType, SearchResultsInterface, GetUsersInterface, UserType, WarehouseRoleEnum, SearchParams, Symbology } from './types';
|
|
3
|
+
import { Program, Project, TileService } from './';
|
|
7
4
|
interface GQLReturn<T> {
|
|
8
5
|
data?: T;
|
|
9
|
-
errors?:
|
|
6
|
+
errors?: Record<string, unknown>[];
|
|
10
7
|
}
|
|
11
8
|
export declare const apiCall: <T>(url: string, jwt: string | null, query: ASTNode, variables?: {
|
|
12
9
|
[key: string]: unknown;
|
|
13
|
-
}) => Promise<GQLReturn<T>>;
|
|
14
|
-
export declare function authCheck(url: string, jwt: string): Promise<GQLReturn<{
|
|
10
|
+
}, timeout?: number) => Promise<GQLReturn<T>>;
|
|
11
|
+
export declare function authCheck(url: string, jwt: string, timeout?: number): Promise<GQLReturn<{
|
|
15
12
|
auth: {
|
|
16
13
|
loggedIn: boolean;
|
|
17
14
|
userPool: string;
|
|
@@ -20,19 +17,22 @@ export declare function authCheck(url: string, jwt: string): Promise<GQLReturn<{
|
|
|
20
17
|
domain: string;
|
|
21
18
|
};
|
|
22
19
|
}>>;
|
|
23
|
-
export declare function validateProjectXML(url: string, jwt: string, xml: string, projType: string, program: string): Promise<GQLReturn<{
|
|
20
|
+
export declare function validateProjectXML(url: string, jwt: string, xml: string, projType: string, program: string, timeout?: number): Promise<GQLReturn<{
|
|
24
21
|
validate: {
|
|
25
22
|
result: boolean;
|
|
26
23
|
xmlErrors: string[];
|
|
27
24
|
};
|
|
28
25
|
}>>;
|
|
29
|
-
export declare function getPrograms(url: string, jwt: string): Promise<GQLReturn<{
|
|
26
|
+
export declare function getPrograms(url: string, jwt: string, timeout?: number): Promise<GQLReturn<{
|
|
30
27
|
programs: Program[];
|
|
31
28
|
}>>;
|
|
32
|
-
export declare function
|
|
29
|
+
export declare function getProgramAuth(url: string, jwt: string, programName: string, timeout?: number): Promise<GQLReturn<{
|
|
30
|
+
program: Program;
|
|
31
|
+
}>>;
|
|
32
|
+
export declare function getProgram(url: string, jwt: string, programName: string, timeout?: number): Promise<GQLReturn<{
|
|
33
33
|
program: Program;
|
|
34
34
|
}>>;
|
|
35
|
-
export declare function getProject(url: string, jwt: string, id: string, program: string): Promise<GQLReturn<{
|
|
35
|
+
export declare function getProject(url: string, jwt: string, id: string, program: string, files?: boolean, tree?: boolean, timeout?: number): Promise<GQLReturn<{
|
|
36
36
|
project: Project;
|
|
37
37
|
}>>;
|
|
38
38
|
declare type GetUploadUrl = {
|
|
@@ -45,21 +45,27 @@ declare type GetUploadUrl = {
|
|
|
45
45
|
}[];
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
|
-
export declare function getUploadUrls(url: string, jwt: string, id: string, fileList: string[], projectType: string, program: string): Promise<GQLReturn<GetUploadUrl>>;
|
|
49
|
-
export declare function downloadFile(url: string, jwt: string, projType: string, program: string, id: string, filePath: string): Promise<GQLReturn<{
|
|
48
|
+
export declare function getUploadUrls(url: string, jwt: string, id: string, fileList: string[], projectType: string, program: string, timeout?: number): Promise<GQLReturn<GetUploadUrl>>;
|
|
49
|
+
export declare function downloadFile(url: string, jwt: string, projType: string, program: string, id: string, filePath: string, timeout?: number): Promise<GQLReturn<{
|
|
50
50
|
downloadFile: FileDownloadMetaType;
|
|
51
51
|
}>>;
|
|
52
|
-
export declare function
|
|
52
|
+
export declare function getLayerTiles(url: string, jwt: string, projType: string, program: string, id: string, layerPath: string, timeout?: number): Promise<GQLReturn<{
|
|
53
|
+
getLayerTiles: TileService;
|
|
54
|
+
}>>;
|
|
55
|
+
export declare function getWebSymbology(url: string, jwt: string, projType: string, name: string, isRaster: boolean, timeout?: number): Promise<GQLReturn<{
|
|
56
|
+
getWebSymbology: Symbology;
|
|
57
|
+
}>>;
|
|
58
|
+
export declare function downloadZipFile(url: string, jwt: string, projType: string, program: string, id: string, timeout?: number): Promise<GQLReturn<{
|
|
53
59
|
downloadZip: FileDownloadMetaType;
|
|
54
60
|
}>>;
|
|
55
|
-
export declare function deleteProject(url: string, jwt: string, id: string, program: string): Promise<GQLReturn<string>>;
|
|
56
|
-
export declare function search(url: string, jwt: string, program: string, params:
|
|
61
|
+
export declare function deleteProject(url: string, jwt: string, id: string, program: string, timeout?: number): Promise<GQLReturn<string>>;
|
|
62
|
+
export declare function search(url: string, jwt: string, program: string, params: SearchParams, timeout?: number): Promise<GQLReturn<{
|
|
57
63
|
search: SearchResultsInterface;
|
|
58
64
|
}>>;
|
|
59
|
-
export declare function adminUpdateUserPermissions(url: string, jwt: string, id: string, program: string, permission: WarehouseRoleEnum | null): Promise<GQLReturn<{
|
|
65
|
+
export declare function adminUpdateUserPermissions(url: string, jwt: string, id: string, program: string, permission: WarehouseRoleEnum | null, timeout?: number): Promise<GQLReturn<{
|
|
60
66
|
updateUser: UserType;
|
|
61
67
|
}>>;
|
|
62
|
-
export declare function adminGetUsers(url: string, jwt: string, program: string, limit?: number, nextToken?: string): Promise<GQLReturn<{
|
|
68
|
+
export declare function adminGetUsers(url: string, jwt: string, program: string, limit?: number, nextToken?: string, timeout?: number): Promise<GQLReturn<{
|
|
63
69
|
getUsers: GetUsersInterface;
|
|
64
70
|
}>>;
|
|
65
71
|
export {};
|
package/dist/api.js
CHANGED
|
@@ -54,55 +54,61 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
54
54
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
55
55
|
};
|
|
56
56
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
|
-
exports.adminGetUsers = exports.adminUpdateUserPermissions = exports.search = exports.deleteProject = exports.downloadZipFile = exports.downloadFile = exports.getUploadUrls = exports.getProject = exports.getProgram = exports.getPrograms = exports.validateProjectXML = exports.authCheck = exports.apiCall = void 0;
|
|
57
|
+
exports.adminGetUsers = exports.adminUpdateUserPermissions = exports.search = exports.deleteProject = exports.downloadZipFile = exports.getWebSymbology = exports.getLayerTiles = exports.downloadFile = exports.getUploadUrls = exports.getProject = exports.getProgram = exports.getProgramAuth = exports.getPrograms = exports.validateProjectXML = exports.authCheck = exports.apiCall = void 0;
|
|
58
58
|
var axios_1 = __importDefault(require("axios"));
|
|
59
59
|
var graphql_1 = require("graphql");
|
|
60
60
|
var graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
61
61
|
var loglevel_1 = __importDefault(require("loglevel"));
|
|
62
62
|
var _1 = require("./");
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
var apiCall = function (url, jwt, query, variables, timeout) {
|
|
64
|
+
var start = Date.now();
|
|
65
|
+
return (0, axios_1.default)({
|
|
65
66
|
url: url,
|
|
66
67
|
method: 'post',
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
: null,
|
|
68
|
+
timeout: timeout,
|
|
69
|
+
headers: {
|
|
70
|
+
Authorization: jwt ? "Bearer ".concat(jwt) : 'Bearer NONE'
|
|
71
|
+
},
|
|
72
72
|
data: {
|
|
73
|
-
query: graphql_1.print(query),
|
|
73
|
+
query: (0, graphql_1.print)(query),
|
|
74
74
|
variables: variables
|
|
75
75
|
}
|
|
76
76
|
})
|
|
77
77
|
.then(function (_a) {
|
|
78
78
|
var axiosData = _a.data;
|
|
79
|
+
var time = (Date.now() - start) / 1000;
|
|
80
|
+
if (time > 10)
|
|
81
|
+
loglevel_1.default.warn("Query took ".concat(time.toFixed(1), " seconds. ").concat((0, graphql_1.print)(query)
|
|
82
|
+
.replace(/\n/g, '')
|
|
83
|
+
.slice(0, 50), " ").concat(JSON.stringify(variables)));
|
|
79
84
|
return axiosData;
|
|
80
85
|
})
|
|
81
86
|
.catch(function (err) {
|
|
82
87
|
if (err.response && err.response.status === 404) {
|
|
83
|
-
throw new Error("API Url not found: "
|
|
88
|
+
throw new Error("API Url not found: ".concat(url));
|
|
84
89
|
}
|
|
85
90
|
else if (err.code && err.code === 'ECONNREFUSED') {
|
|
86
|
-
throw new Error("Connection refused. Could not contact: '"
|
|
91
|
+
throw new Error("Connection refused. Could not contact: '".concat(url, "'"));
|
|
87
92
|
}
|
|
88
93
|
else {
|
|
89
|
-
loglevel_1.default.error('apiCall Error', { url: url, jwt: jwt, query: graphql_1.print(query), variables: variables, err: err });
|
|
94
|
+
loglevel_1.default.error('apiCall Error', { url: url, jwt: jwt, query: (0, graphql_1.print)(query), variables: variables, err: err });
|
|
90
95
|
throw err;
|
|
91
96
|
}
|
|
92
97
|
});
|
|
93
98
|
};
|
|
94
|
-
|
|
95
|
-
|
|
99
|
+
exports.apiCall = apiCall;
|
|
100
|
+
function authCheck(url, jwt, timeout) {
|
|
101
|
+
return (0, exports.apiCall)(url, jwt, (0, graphql_tag_1.default)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query AuthCall {\n auth {\n loggedIn\n userPool\n clientId\n region\n domain\n }\n }\n "], ["\n query AuthCall {\n auth {\n loggedIn\n userPool\n clientId\n region\n domain\n }\n }\n "]))), {}, timeout);
|
|
96
102
|
}
|
|
97
103
|
exports.authCheck = authCheck;
|
|
98
|
-
function validateProjectXML(url, jwt, xml, projType, program) {
|
|
99
|
-
return exports.apiCall(url, jwt, graphql_tag_1.default(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query validateProject($xml: String!, $projType: String!, $program: String!) {\n validate(xml: $xml, projType: $projType, program: $program) {\n result\n xmlErrors\n }\n }\n "], ["\n query validateProject($xml: String!, $projType: String!, $program: String!) {\n validate(xml: $xml, projType: $projType, program: $program) {\n result\n xmlErrors\n }\n }\n "]))), { xml: xml, program: program, projType: projType });
|
|
104
|
+
function validateProjectXML(url, jwt, xml, projType, program, timeout) {
|
|
105
|
+
return (0, exports.apiCall)(url, jwt, (0, graphql_tag_1.default)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query validateProject($xml: String!, $projType: String!, $program: String!) {\n validate(xml: $xml, projType: $projType, program: $program) {\n result\n xmlErrors\n }\n }\n "], ["\n query validateProject($xml: String!, $projType: String!, $program: String!) {\n validate(xml: $xml, projType: $projType, program: $program) {\n result\n xmlErrors\n }\n }\n "]))), { xml: xml, program: program, projType: projType }, timeout);
|
|
100
106
|
}
|
|
101
107
|
exports.validateProjectXML = validateProjectXML;
|
|
102
|
-
function getPrograms(url, jwt) {
|
|
108
|
+
function getPrograms(url, jwt, timeout) {
|
|
103
109
|
return __awaiter(this, void 0, void 0, function () {
|
|
104
110
|
return __generator(this, function (_a) {
|
|
105
|
-
return [2, exports.apiCall(url, jwt, graphql_tag_1.default(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query programs {\n programs {\n name\n machineName\n projectXSDs\n projectFile\n role\n groups {\n id\n name\n folder\n }\n collections {\n id\n name\n AllowRegex\n Allow {\n id\n name\n aliases\n folder\n }\n }\n products {\n id\n name\n folder\n pathArr\n }\n hierarchy\n meta\n }\n }\n "], ["\n query programs {\n programs {\n name\n machineName\n projectXSDs\n projectFile\n role\n groups {\n id\n name\n folder\n }\n collections {\n id\n name\n AllowRegex\n Allow {\n id\n name\n aliases\n folder\n }\n }\n products {\n id\n name\n folder\n pathArr\n }\n hierarchy\n meta\n }\n }\n "])))).then(function (gqlReturn) {
|
|
111
|
+
return [2, (0, exports.apiCall)(url, jwt, (0, graphql_tag_1.default)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query programs {\n auth {\n loggedIn\n userPool\n clientId\n region\n domain\n }\n programs {\n name\n machineName\n projectXSDs\n projectFile\n role\n groups {\n id\n name\n folder\n }\n collections {\n id\n name\n AllowRegex\n Allow {\n id\n name\n aliases\n folder\n }\n }\n products {\n id\n name\n folder\n pathArr\n }\n hierarchy\n meta\n }\n }\n "], ["\n query programs {\n auth {\n loggedIn\n userPool\n clientId\n region\n domain\n }\n programs {\n name\n machineName\n projectXSDs\n projectFile\n role\n groups {\n id\n name\n folder\n }\n collections {\n id\n name\n AllowRegex\n Allow {\n id\n name\n aliases\n folder\n }\n }\n products {\n id\n name\n folder\n pathArr\n }\n hierarchy\n meta\n }\n }\n "]))), {}, timeout).then(function (gqlReturn) {
|
|
106
112
|
return __assign(__assign({}, gqlReturn), { data: {
|
|
107
113
|
programs: gqlReturn.data.programs.map(_1.Program.fromGraphQL)
|
|
108
114
|
} });
|
|
@@ -111,12 +117,31 @@ function getPrograms(url, jwt) {
|
|
|
111
117
|
});
|
|
112
118
|
}
|
|
113
119
|
exports.getPrograms = getPrograms;
|
|
114
|
-
function
|
|
120
|
+
function getProgramAuth(url, jwt, programName, timeout) {
|
|
115
121
|
return __awaiter(this, void 0, void 0, function () {
|
|
116
122
|
var _a, program, errors;
|
|
117
123
|
return __generator(this, function (_b) {
|
|
118
124
|
switch (_b.label) {
|
|
119
|
-
case 0: return [4, exports.apiCall(url, jwt, graphql_tag_1.default(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n query program($program: String!) {\n program(program: $program) {\n name\n machineName\n projectXSDs\n projectFile\n role\n groups {\n id\n name\n folder\n }\n collections {\n id\n name\n AllowRegex\n Allow {\n id\n name\n aliases\n folder\n }\n }\n products {\n id\n name\n folder\n pathArr\n }\n hierarchy\n meta\n }\n }\n "], ["\n query program($program: String!) {\n program(program: $program) {\n name\n machineName\n projectXSDs\n projectFile\n role\n groups {\n id\n name\n folder\n }\n collections {\n id\n name\n AllowRegex\n Allow {\n id\n name\n aliases\n folder\n }\n }\n products {\n id\n name\n folder\n pathArr\n }\n hierarchy\n meta\n }\n }\n "]))), { program: programName })];
|
|
125
|
+
case 0: return [4, (0, exports.apiCall)(url, jwt, (0, graphql_tag_1.default)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n query program($program: String!) {\n program(program: $program) {\n name\n machineName\n projectXSDs\n projectFile\n role\n groups {\n id\n name\n folder\n }\n collections {\n id\n name\n AllowRegex\n Allow {\n id\n name\n aliases\n folder\n }\n }\n products {\n id\n name\n folder\n pathArr\n }\n hierarchy\n meta\n }\n }\n "], ["\n query program($program: String!) {\n program(program: $program) {\n name\n machineName\n projectXSDs\n projectFile\n role\n groups {\n id\n name\n folder\n }\n collections {\n id\n name\n AllowRegex\n Allow {\n id\n name\n aliases\n folder\n }\n }\n products {\n id\n name\n folder\n pathArr\n }\n hierarchy\n meta\n }\n }\n "]))), { program: programName }, timeout)];
|
|
126
|
+
case 1:
|
|
127
|
+
_a = _b.sent(), program = _a.data.program, errors = _a.errors;
|
|
128
|
+
return [2, {
|
|
129
|
+
data: {
|
|
130
|
+
program: _1.Program.fromGraphQL(program)
|
|
131
|
+
},
|
|
132
|
+
errors: errors
|
|
133
|
+
}];
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
exports.getProgramAuth = getProgramAuth;
|
|
139
|
+
function getProgram(url, jwt, programName, timeout) {
|
|
140
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
141
|
+
var _a, program, errors;
|
|
142
|
+
return __generator(this, function (_b) {
|
|
143
|
+
switch (_b.label) {
|
|
144
|
+
case 0: return [4, (0, exports.apiCall)(url, jwt, (0, graphql_tag_1.default)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n query program($program: String!) {\n program(program: $program) {\n name\n machineName\n projectXSDs\n projectFile\n role\n groups {\n id\n name\n folder\n }\n collections {\n id\n name\n AllowRegex\n Allow {\n id\n name\n aliases\n folder\n }\n }\n products {\n id\n name\n folder\n pathArr\n }\n hierarchy\n meta\n }\n }\n "], ["\n query program($program: String!) {\n program(program: $program) {\n name\n machineName\n projectXSDs\n projectFile\n role\n groups {\n id\n name\n folder\n }\n collections {\n id\n name\n AllowRegex\n Allow {\n id\n name\n aliases\n folder\n }\n }\n products {\n id\n name\n folder\n pathArr\n }\n hierarchy\n meta\n }\n }\n "]))), { program: programName }, timeout)];
|
|
120
145
|
case 1:
|
|
121
146
|
_a = _b.sent(), program = _a.data.program, errors = _a.errors;
|
|
122
147
|
return [2, {
|
|
@@ -130,22 +155,28 @@ function getProgram(url, jwt, programName) {
|
|
|
130
155
|
});
|
|
131
156
|
}
|
|
132
157
|
exports.getProgram = getProgram;
|
|
133
|
-
function getProject(url, jwt, id, program) {
|
|
158
|
+
function getProject(url, jwt, id, program, files, tree, timeout) {
|
|
159
|
+
if (files === void 0) { files = false; }
|
|
160
|
+
if (tree === void 0) { tree = false; }
|
|
134
161
|
return __awaiter(this, void 0, void 0, function () {
|
|
135
162
|
return __generator(this, function (_a) {
|
|
136
|
-
return [2, exports.apiCall(url, jwt, graphql_tag_1.default(
|
|
163
|
+
return [2, (0, exports.apiCall)(url, jwt, (0, graphql_tag_1.default)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n query getProject($id: ID!, $program: String!) {\n project(id: $id, program: $program) {\n id\n name\n projType\n totalSize\n program\n tags\n createdBy\n updatedBy\n createdOn\n updatedOn\n meta\n ", "\n ", "\n }\n }\n "], ["\n query getProject($id: ID!, $program: String!) {\n project(id: $id, program: $program) {\n id\n name\n projType\n totalSize\n program\n tags\n createdBy\n updatedBy\n createdOn\n updatedOn\n meta\n ", "\n ", "\n }\n }\n "])), files
|
|
164
|
+
? "\n files {\n key\n md5\n size\n downloadUrl\n }"
|
|
165
|
+
: '', tree
|
|
166
|
+
? "\n tree {\n name\n description\n projectType\n metaStr\n leaves {\n id\n pid\n label\n layerId\n blLayerId\n layerType\n layerPath\n layerName\n nodeExists\n metaStr\n symbology\n transparency\n }\n branches {\n label\n collapsed\n bid\n pid\n }\n defaultView\n views {\n id\n name\n description\n layers{\n id\n visible\n }\n }\n }\n "
|
|
167
|
+
: ''), { id: id, program: program }, timeout).then(function (gqlReturn) { return (__assign(__assign({}, gqlReturn), { data: {
|
|
137
168
|
project: _1.Project.fromGraphQL(gqlReturn.data.project)
|
|
138
169
|
} })); })];
|
|
139
170
|
});
|
|
140
171
|
});
|
|
141
172
|
}
|
|
142
173
|
exports.getProject = getProject;
|
|
143
|
-
function getUploadUrls(url, jwt, id, fileList, projectType, program) {
|
|
174
|
+
function getUploadUrls(url, jwt, id, fileList, projectType, program, timeout) {
|
|
144
175
|
return __awaiter(this, void 0, void 0, function () {
|
|
145
176
|
var response;
|
|
146
177
|
return __generator(this, function (_a) {
|
|
147
178
|
switch (_a.label) {
|
|
148
|
-
case 0: return [4, exports.apiCall(url, jwt, graphql_tag_1.default(
|
|
179
|
+
case 0: return [4, (0, exports.apiCall)(url, jwt, (0, graphql_tag_1.default)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n query requestUploadProject($id: ID, $files: [String!], $program: String!, $projectType: String!) {\n requestUpload(id: $id, files: $files, program: $program, projectType: $projectType) {\n id\n uploadUrls {\n url\n fields\n origPath\n }\n }\n }\n "], ["\n query requestUploadProject($id: ID, $files: [String!], $program: String!, $projectType: String!) {\n requestUpload(id: $id, files: $files, program: $program, projectType: $projectType) {\n id\n uploadUrls {\n url\n fields\n origPath\n }\n }\n }\n "]))), { id: id, files: fileList, projectType: projectType, program: program }, timeout)];
|
|
149
180
|
case 1:
|
|
150
181
|
response = _a.sent();
|
|
151
182
|
return [2, response];
|
|
@@ -154,12 +185,12 @@ function getUploadUrls(url, jwt, id, fileList, projectType, program) {
|
|
|
154
185
|
});
|
|
155
186
|
}
|
|
156
187
|
exports.getUploadUrls = getUploadUrls;
|
|
157
|
-
function downloadFile(url, jwt, projType, program, id, filePath) {
|
|
188
|
+
function downloadFile(url, jwt, projType, program, id, filePath, timeout) {
|
|
158
189
|
return __awaiter(this, void 0, void 0, function () {
|
|
159
190
|
var response;
|
|
160
191
|
return __generator(this, function (_a) {
|
|
161
192
|
switch (_a.label) {
|
|
162
|
-
case 0: return [4, exports.apiCall(url, jwt, graphql_tag_1.default(
|
|
193
|
+
case 0: return [4, (0, exports.apiCall)(url, jwt, (0, graphql_tag_1.default)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n query downloadFileQuery($program: String!, $id: ID!, $projType: String!, $filePath: String!) {\n downloadFile(program: $program, id: $id, projType: $projType, filePath: $filePath) {\n key\n md5\n contentType\n size\n downloadUrl\n }\n }\n "], ["\n query downloadFileQuery($program: String!, $id: ID!, $projType: String!, $filePath: String!) {\n downloadFile(program: $program, id: $id, projType: $projType, filePath: $filePath) {\n key\n md5\n contentType\n size\n downloadUrl\n }\n }\n "]))), { projType: projType, program: program, id: id, filePath: filePath }, timeout)];
|
|
163
194
|
case 1:
|
|
164
195
|
response = _a.sent();
|
|
165
196
|
return [2, response];
|
|
@@ -168,12 +199,62 @@ function downloadFile(url, jwt, projType, program, id, filePath) {
|
|
|
168
199
|
});
|
|
169
200
|
}
|
|
170
201
|
exports.downloadFile = downloadFile;
|
|
171
|
-
function
|
|
202
|
+
function getLayerTiles(url, jwt, projType, program, id, layerPath, timeout) {
|
|
203
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
204
|
+
var res, retVal;
|
|
205
|
+
return __generator(this, function (_a) {
|
|
206
|
+
switch (_a.label) {
|
|
207
|
+
case 0: return [4, (0, exports.apiCall)(url, jwt, (0, graphql_tag_1.default)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n query getLayerTilesQuery($program: String!, $id: ID!, $projType: String!, $layerPath: String!) {\n getLayerTiles(program: $program, id: $id, projType: $projType, layerPath: $layerPath) {\n url\n indexUrl\n status\n lastStatus\n error\n rsLayer\n rasterStats\n numFiles\n started\n duration\n format\n bounds\n maxZoom\n minZoom\n originFile {\n lastModified\n etag\n size\n key\n }\n }\n }\n "], ["\n query getLayerTilesQuery($program: String!, $id: ID!, $projType: String!, $layerPath: String!) {\n getLayerTiles(program: $program, id: $id, projType: $projType, layerPath: $layerPath) {\n url\n indexUrl\n status\n lastStatus\n error\n rsLayer\n rasterStats\n numFiles\n started\n duration\n format\n bounds\n maxZoom\n minZoom\n originFile {\n lastModified\n etag\n size\n key\n }\n }\n }\n "]))), { projType: projType, program: program, id: id, layerPath: layerPath }, timeout)];
|
|
208
|
+
case 1:
|
|
209
|
+
res = _a.sent();
|
|
210
|
+
if (!res.data)
|
|
211
|
+
return [2, { errors: res.errors }];
|
|
212
|
+
else {
|
|
213
|
+
retVal = res.data.getLayerTiles;
|
|
214
|
+
return [2, {
|
|
215
|
+
errors: res.errors,
|
|
216
|
+
data: {
|
|
217
|
+
getLayerTiles: __assign(__assign({}, retVal), { started: retVal && retVal.started && parseInt(retVal.started, 10), lastStatus: retVal && retVal.lastStatus && parseInt(retVal.lastStatus, 10), rasterStats: retVal && retVal.rasterStats && JSON.parse(retVal.rasterStats), rsLayer: retVal && retVal.rsLayer && JSON.parse(retVal.rsLayer), originFile: retVal &&
|
|
218
|
+
retVal.originFile && __assign(__assign({}, retVal.originFile), { lastModified: parseInt(retVal.originFile.lastModified, 10) }) })
|
|
219
|
+
}
|
|
220
|
+
}];
|
|
221
|
+
}
|
|
222
|
+
return [2];
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
exports.getLayerTiles = getLayerTiles;
|
|
228
|
+
function getWebSymbology(url, jwt, projType, name, isRaster, timeout) {
|
|
229
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
230
|
+
var res;
|
|
231
|
+
return __generator(this, function (_a) {
|
|
232
|
+
switch (_a.label) {
|
|
233
|
+
case 0: return [4, (0, exports.apiCall)(url, jwt, (0, graphql_tag_1.default)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n query getWebSymbology($projType: String!, $name: String!, $isRaster: Boolean) {\n getWebSymbology(projType: $projType, name: $name, isRaster: $isRaster) {\n name\n status\n legend\n rampType\n mapboxJson\n url\n error\n }\n }\n "], ["\n query getWebSymbology($projType: String!, $name: String!, $isRaster: Boolean) {\n getWebSymbology(projType: $projType, name: $name, isRaster: $isRaster) {\n name\n status\n legend\n rampType\n mapboxJson\n url\n error\n }\n }\n "]))), { projType: projType, name: name, isRaster: isRaster }, timeout)];
|
|
234
|
+
case 1:
|
|
235
|
+
res = _a.sent();
|
|
236
|
+
if (!res.data)
|
|
237
|
+
return [2, { errors: res.errors }];
|
|
238
|
+
else {
|
|
239
|
+
return [2, {
|
|
240
|
+
errors: res.errors,
|
|
241
|
+
data: {
|
|
242
|
+
getWebSymbology: res.data.getWebSymbology && __assign(__assign({}, res.data.getWebSymbology), { mapboxJson: res.data.getWebSymbology.mapboxJson && JSON.parse(res.data.getWebSymbology.mapboxJson) })
|
|
243
|
+
}
|
|
244
|
+
}];
|
|
245
|
+
}
|
|
246
|
+
return [2];
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
exports.getWebSymbology = getWebSymbology;
|
|
252
|
+
function downloadZipFile(url, jwt, projType, program, id, timeout) {
|
|
172
253
|
return __awaiter(this, void 0, void 0, function () {
|
|
173
254
|
var response;
|
|
174
255
|
return __generator(this, function (_a) {
|
|
175
256
|
switch (_a.label) {
|
|
176
|
-
case 0: return [4, exports.apiCall(url, jwt, graphql_tag_1.default(
|
|
257
|
+
case 0: return [4, (0, exports.apiCall)(url, jwt, (0, graphql_tag_1.default)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n query downloadZipFileQuery($program: String!, $id: ID!, $projType: String!) {\n downloadZip(program: $program, id: $id, projType: $projType) {\n key\n md5\n contentType\n size\n downloadUrl\n pendingSince\n }\n }\n "], ["\n query downloadZipFileQuery($program: String!, $id: ID!, $projType: String!) {\n downloadZip(program: $program, id: $id, projType: $projType) {\n key\n md5\n contentType\n size\n downloadUrl\n pendingSince\n }\n }\n "]))), { projType: projType, program: program, id: id }, timeout)];
|
|
177
258
|
case 1:
|
|
178
259
|
response = _a.sent();
|
|
179
260
|
return [2, response];
|
|
@@ -182,12 +263,12 @@ function downloadZipFile(url, jwt, projType, program, id) {
|
|
|
182
263
|
});
|
|
183
264
|
}
|
|
184
265
|
exports.downloadZipFile = downloadZipFile;
|
|
185
|
-
function deleteProject(url, jwt, id, program) {
|
|
266
|
+
function deleteProject(url, jwt, id, program, timeout) {
|
|
186
267
|
return __awaiter(this, void 0, void 0, function () {
|
|
187
268
|
var response;
|
|
188
269
|
return __generator(this, function (_a) {
|
|
189
270
|
switch (_a.label) {
|
|
190
|
-
case 0: return [4, exports.apiCall(url, jwt, graphql_tag_1.default(
|
|
271
|
+
case 0: return [4, (0, exports.apiCall)(url, jwt, (0, graphql_tag_1.default)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n mutation deleteProject($id: ID!, $program: String!) {\n deleteProject(id: $id, program: $program)\n }\n "], ["\n mutation deleteProject($id: ID!, $program: String!) {\n deleteProject(id: $id, program: $program)\n }\n "]))), { program: program, id: id }, timeout)];
|
|
191
272
|
case 1:
|
|
192
273
|
response = _a.sent();
|
|
193
274
|
return [2, response];
|
|
@@ -196,12 +277,12 @@ function deleteProject(url, jwt, id, program) {
|
|
|
196
277
|
});
|
|
197
278
|
}
|
|
198
279
|
exports.deleteProject = deleteProject;
|
|
199
|
-
function search(url, jwt, program, params) {
|
|
280
|
+
function search(url, jwt, program, params, timeout) {
|
|
200
281
|
return __awaiter(this, void 0, void 0, function () {
|
|
201
282
|
var res, _a, nextToken, projects, total;
|
|
202
283
|
return __generator(this, function (_b) {
|
|
203
284
|
switch (_b.label) {
|
|
204
|
-
case 0: return [4, exports.apiCall(url, jwt, graphql_tag_1.default(
|
|
285
|
+
case 0: return [4, (0, exports.apiCall)(url, jwt, (0, graphql_tag_1.default)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n query searchQuery(\n $program: String!\n $projType: String\n $nameStr: String\n $metaStr: String\n $metaArr: String\n $tags: String\n $noTags: Boolean\n $limit: Int\n $nextToken: Int\n ) {\n search(\n program: $program\n projType: $projType\n nameStr: $nameStr\n metaStr: $metaStr\n metaArr: $metaArr\n tags: $tags\n noTags: $noTags\n limit: $limit\n nextToken: $nextToken\n ) {\n projects {\n id\n name\n projType\n program\n tags\n totalSize\n createdBy\n updatedBy\n createdOn\n updatedOn\n meta\n score\n }\n nextToken\n total\n }\n }\n "], ["\n query searchQuery(\n $program: String!\n $projType: String\n $nameStr: String\n $metaStr: String\n $metaArr: String\n $tags: String\n $noTags: Boolean\n $limit: Int\n $nextToken: Int\n ) {\n search(\n program: $program\n projType: $projType\n nameStr: $nameStr\n metaStr: $metaStr\n metaArr: $metaArr\n tags: $tags\n noTags: $noTags\n limit: $limit\n nextToken: $nextToken\n ) {\n projects {\n id\n name\n projType\n program\n tags\n totalSize\n createdBy\n updatedBy\n createdOn\n updatedOn\n meta\n score\n }\n nextToken\n total\n }\n }\n "]))), __assign(__assign({}, params), { program: program }), timeout)];
|
|
205
286
|
case 1:
|
|
206
287
|
res = _b.sent();
|
|
207
288
|
if (!res.data)
|
|
@@ -225,12 +306,12 @@ function search(url, jwt, program, params) {
|
|
|
225
306
|
});
|
|
226
307
|
}
|
|
227
308
|
exports.search = search;
|
|
228
|
-
function adminUpdateUserPermissions(url, jwt, id, program, permission) {
|
|
309
|
+
function adminUpdateUserPermissions(url, jwt, id, program, permission, timeout) {
|
|
229
310
|
return __awaiter(this, void 0, void 0, function () {
|
|
230
311
|
var response;
|
|
231
312
|
return __generator(this, function (_a) {
|
|
232
313
|
switch (_a.label) {
|
|
233
|
-
case 0: return [4, exports.apiCall(url, jwt, graphql_tag_1.default(
|
|
314
|
+
case 0: return [4, (0, exports.apiCall)(url, jwt, (0, graphql_tag_1.default)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n mutation project($id: ID!, $program: String!, $permission: String) {\n updateUser(id: $id, program: $program, permission: $permission) {\n email\n name\n picture\n username\n createdOn\n updatedOn\n role\n }\n }\n "], ["\n mutation project($id: ID!, $program: String!, $permission: String) {\n updateUser(id: $id, program: $program, permission: $permission) {\n email\n name\n picture\n username\n createdOn\n updatedOn\n role\n }\n }\n "]))), { program: program, id: id, permission: permission }, timeout)];
|
|
234
315
|
case 1:
|
|
235
316
|
response = _a.sent();
|
|
236
317
|
if (!response.data)
|
|
@@ -250,12 +331,12 @@ function adminUpdateUserPermissions(url, jwt, id, program, permission) {
|
|
|
250
331
|
});
|
|
251
332
|
}
|
|
252
333
|
exports.adminUpdateUserPermissions = adminUpdateUserPermissions;
|
|
253
|
-
function adminGetUsers(url, jwt, program, limit, nextToken) {
|
|
334
|
+
function adminGetUsers(url, jwt, program, limit, nextToken, timeout) {
|
|
254
335
|
return __awaiter(this, void 0, void 0, function () {
|
|
255
336
|
var response, _a, nextTokenNEW, users;
|
|
256
337
|
return __generator(this, function (_b) {
|
|
257
338
|
switch (_b.label) {
|
|
258
|
-
case 0: return [4, exports.apiCall(url, jwt, graphql_tag_1.default(
|
|
339
|
+
case 0: return [4, (0, exports.apiCall)(url, jwt, (0, graphql_tag_1.default)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n query getUsers($program: String!, $limit: Int, $nextToken: String) {\n getUsers(program: $program, limit: $limit, nextToken: $nextToken) {\n users {\n email\n name\n picture\n username\n createdOn\n updatedOn\n role\n }\n nextToken\n }\n }\n "], ["\n query getUsers($program: String!, $limit: Int, $nextToken: String) {\n getUsers(program: $program, limit: $limit, nextToken: $nextToken) {\n users {\n email\n name\n picture\n username\n createdOn\n updatedOn\n role\n }\n nextToken\n }\n }\n "]))), { program: program, limit: limit, nextToken: nextToken }, timeout)];
|
|
259
340
|
case 1:
|
|
260
341
|
response = _b.sent();
|
|
261
342
|
if (!response.data)
|
|
@@ -280,5 +361,5 @@ function adminGetUsers(url, jwt, program, limit, nextToken) {
|
|
|
280
361
|
});
|
|
281
362
|
}
|
|
282
363
|
exports.adminGetUsers = adminGetUsers;
|
|
283
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12;
|
|
364
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15;
|
|
284
365
|
//# sourceMappingURL=api.js.map
|
package/dist/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA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E,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,EACpC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,IACtC,EAJe,CAIf,CAAC;4CACL,CAAC,CAAC,KAAK;wCACX,SAAS,EAAE,YAAY;qCAC1B;iCACJ;6BACJ,EAAA;qBACJ;;;;;CACJ;AArDD,sCAqDC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BusinessLogicInterface, BusinessLogicNode, BusinessLogicViews } from '../types';
|
|
2
|
+
export declare class BusinessLogic implements BusinessLogicInterface {
|
|
3
|
+
name: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
projType: string;
|
|
6
|
+
node: BusinessLogicNode;
|
|
7
|
+
views?: BusinessLogicViews;
|
|
8
|
+
constructor({ Project }: {
|
|
9
|
+
Project: any;
|
|
10
|
+
});
|
|
11
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
3
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
4
|
+
to[j] = from[i];
|
|
5
|
+
return to;
|
|
6
|
+
};
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.BusinessLogic = void 0;
|
|
12
|
+
var types_1 = require("../types");
|
|
13
|
+
var loglevel_1 = __importDefault(require("loglevel"));
|
|
14
|
+
var BusinessLogic = (function () {
|
|
15
|
+
function BusinessLogic(_a) {
|
|
16
|
+
var Project = _a.Project;
|
|
17
|
+
this.name = Project.Name[0];
|
|
18
|
+
this.projType = Project.ProjectType[0];
|
|
19
|
+
this.node = parseNode(Project.Node[0]);
|
|
20
|
+
if (Project.Description)
|
|
21
|
+
this.description = Project.Description[0];
|
|
22
|
+
if (Project.Views && Array.isArray(Project.Views))
|
|
23
|
+
this.views = parseViews(Project.Views[0]);
|
|
24
|
+
}
|
|
25
|
+
return BusinessLogic;
|
|
26
|
+
}());
|
|
27
|
+
exports.BusinessLogic = BusinessLogic;
|
|
28
|
+
var parseRepeater = function (_a) {
|
|
29
|
+
var $ = _a.$, Node = _a.Node;
|
|
30
|
+
return ({
|
|
31
|
+
collapsed: $ && $.collapsed && $.collapsed.toLowerCase() === 'true',
|
|
32
|
+
label: $.label,
|
|
33
|
+
xpath: $.xpath,
|
|
34
|
+
xpathlabel: $.xpathlabel,
|
|
35
|
+
node: parseNode(Node)
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
var parseChildren = function (_a) {
|
|
39
|
+
var $ = _a.$, Node = _a.Node, Repeater = _a.Repeater;
|
|
40
|
+
return ({
|
|
41
|
+
collapsed: $ && $.collapsed && $.collapsed.toLowerCase() === 'true',
|
|
42
|
+
children: __spreadArray(__spreadArray([], (Node || []).map(parseNode)), (Repeater || []).map(parseRepeater))
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var parseNode = function (_a) {
|
|
46
|
+
var $ = _a.$, Children = _a.Children, Tileservice = _a.Tileservice;
|
|
47
|
+
var id = $.id, label = $.label, xpath = $.xpath, xpathlabel = $.xpathlabel, symbology = $.symbology, datatype = $.type, transparency = $.transparency;
|
|
48
|
+
var blnode = {
|
|
49
|
+
id: id,
|
|
50
|
+
label: label,
|
|
51
|
+
xpath: xpath,
|
|
52
|
+
xpathlabel: xpathlabel,
|
|
53
|
+
symbology: symbology
|
|
54
|
+
};
|
|
55
|
+
if (datatype)
|
|
56
|
+
blnode.datatype = types_1.BusinessLogicDataType[datatype];
|
|
57
|
+
if (Tileservice)
|
|
58
|
+
blnode.tileservice = Tileservice[0]._;
|
|
59
|
+
if (transparency)
|
|
60
|
+
blnode.transparency = parseInt($.label);
|
|
61
|
+
if (Children)
|
|
62
|
+
blnode.children = parseChildren(Children);
|
|
63
|
+
return blnode;
|
|
64
|
+
};
|
|
65
|
+
var parseViews = function (_a) {
|
|
66
|
+
var $ = _a.$, View = _a.View;
|
|
67
|
+
var defaultViewId = '';
|
|
68
|
+
try {
|
|
69
|
+
defaultViewId = $.default;
|
|
70
|
+
}
|
|
71
|
+
catch (e) {
|
|
72
|
+
loglevel_1.default.warn('Could not identify default view. Defaulting to the first one listed');
|
|
73
|
+
defaultViewId = View[0].$.id;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
default: defaultViewId,
|
|
77
|
+
views: View.map(function (view) { return ({
|
|
78
|
+
name: view.$.name,
|
|
79
|
+
id: view.$.id,
|
|
80
|
+
layers: view.Layer.map(function (_a) {
|
|
81
|
+
var $ = _a.$;
|
|
82
|
+
return ({
|
|
83
|
+
id: $.id,
|
|
84
|
+
visible: $.visible && $.visible.toLowerCase() === 'true'
|
|
85
|
+
});
|
|
86
|
+
})
|
|
87
|
+
}); })
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=BusinessLogic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BusinessLogic.js","sourceRoot":"","sources":["../../src/classes/BusinessLogic.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,kCAOiB;AACjB,sDAA0B;AAE1B;IAOI,uBAAY,EAAW;YAAT,OAAO,aAAA;QACjB,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QAC3B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAA;QACtC,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;QACtC,IAAI,OAAO,CAAC,WAAW;YAAE,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAA;QAClE,IAAI,OAAO,CAAC,KAAK,I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