@here/olp-sdk-dataservice-read 2.0.0 → 3.1.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.
Files changed (55) hide show
  1. package/README.md +3 -3
  2. package/bundle.umd.dev.js +12548 -76
  3. package/bundle.umd.min.js +1 -1
  4. package/index.js +5 -1
  5. package/index.web.js +5 -1
  6. package/lib/cache/MetadataCacheRepository.js +1 -0
  7. package/lib/cache/QuadTreeIndexCacheRepository.js +1 -0
  8. package/lib/cache/index.js +5 -1
  9. package/lib/client/ArtifactClient.d.ts +2 -1
  10. package/lib/client/ArtifactClient.js +31 -43
  11. package/lib/client/CatalogClient.d.ts +3 -1
  12. package/lib/client/CatalogClient.js +59 -78
  13. package/lib/client/CatalogRequest.js +4 -3
  14. package/lib/client/CatalogVersionRequest.js +6 -3
  15. package/lib/client/CatalogsRequest.js +5 -3
  16. package/lib/client/ConfigClient.d.ts +1 -1
  17. package/lib/client/ConfigClient.js +13 -23
  18. package/lib/client/DataRequest.js +7 -6
  19. package/lib/client/IndexLayerClient.d.ts +1 -1
  20. package/lib/client/IndexLayerClient.js +37 -40
  21. package/lib/client/IndexQueryRequest.js +2 -0
  22. package/lib/client/LayerVersionsRequest.js +5 -3
  23. package/lib/client/PartitionsRequest.js +10 -7
  24. package/lib/client/PollRequest.js +2 -0
  25. package/lib/client/QuadKeyPartitionsRequest.d.ts +1 -1
  26. package/lib/client/QuadKeyPartitionsRequest.js +7 -3
  27. package/lib/client/QuadTreeIndexRequest.d.ts +1 -1
  28. package/lib/client/QuadTreeIndexRequest.js +11 -3
  29. package/lib/client/QueryClient.d.ts +2 -1
  30. package/lib/client/QueryClient.js +85 -96
  31. package/lib/client/SchemaDetailsRequest.js +5 -3
  32. package/lib/client/SchemaRequest.js +5 -3
  33. package/lib/client/SeekRequest.js +3 -0
  34. package/lib/client/StatisticsClient.d.ts +2 -1
  35. package/lib/client/StatisticsClient.js +51 -65
  36. package/lib/client/StatisticsRequest.js +9 -4
  37. package/lib/client/StreamLayerClient.d.ts +4 -1
  38. package/lib/client/StreamLayerClient.js +117 -139
  39. package/lib/client/SubscribeRequest.js +4 -0
  40. package/lib/client/SummaryRequest.js +5 -2
  41. package/lib/client/TileRequest.js +6 -6
  42. package/lib/client/UnsubscribeRequest.js +2 -0
  43. package/lib/client/VersionedLayerClient.d.ts +45 -1
  44. package/lib/client/VersionedLayerClient.js +133 -147
  45. package/lib/client/VolatileLayerClient.d.ts +4 -1
  46. package/lib/client/VolatileLayerClient.js +104 -108
  47. package/lib/client/index.js +5 -1
  48. package/lib/index.js +5 -1
  49. package/lib/utils/getTile.d.ts +37 -1
  50. package/lib/utils/getTile.js +121 -132
  51. package/lib/utils/index.js +5 -1
  52. package/lib/utils/validateBillingTag.js +1 -2
  53. package/lib/utils/validatePartitionsIdsList.js +1 -2
  54. package/package.json +11 -55
  55. package/webpack.config.js +2 -7
package/index.js CHANGED
@@ -19,7 +19,11 @@
19
19
  */
20
20
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
21
  if (k2 === undefined) k2 = k;
22
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
23
27
  }) : (function(o, m, k, k2) {
24
28
  if (k2 === undefined) k2 = k;
25
29
  o[k2] = m[k];
package/index.web.js CHANGED
@@ -19,7 +19,11 @@
19
19
  */
20
20
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
21
  if (k2 === undefined) k2 = k;
22
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
23
27
  }) : (function(o, m, k, k2) {
24
28
  if (k2 === undefined) k2 = k;
25
29
  o[k2] = m[k];
@@ -23,6 +23,7 @@ exports.MetadataCacheRepository = void 0;
23
23
  * Caches the partitions metadata using a key-value pair.
24
24
  */
25
25
  class MetadataCacheRepository {
26
+ cache;
26
27
  /**
27
28
  * Generates the [[MetadataCacheRepository]] instance.
28
29
  *
@@ -23,6 +23,7 @@ exports.QuadTreeIndexCacheRepository = void 0;
23
23
  * Caches the QuadTreeIndex using a key-value pair.
24
24
  */
25
25
  class QuadTreeIndexCacheRepository {
26
+ cache;
26
27
  /**
27
28
  * Generates the [[QuadTreeIndexCacheRepository]] instance.
28
29
  *
@@ -19,7 +19,11 @@
19
19
  */
20
20
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
21
  if (k2 === undefined) k2 = k;
22
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
23
27
  }) : (function(o, m, k, k2) {
24
28
  if (k2 === undefined) k2 = k;
25
29
  o[k2] = m[k];
@@ -1,6 +1,7 @@
1
1
  import { OlpClientSettings } from "@here/olp-sdk-core";
2
2
  import { ArtifactApi } from "@here/olp-sdk-dataservice-api";
3
- import { SchemaDetailsRequest, SchemaRequest } from "@here/olp-sdk-dataservice-read";
3
+ import { SchemaDetailsRequest } from "./SchemaDetailsRequest";
4
+ import { SchemaRequest } from "./SchemaRequest";
4
5
  /**
5
6
  * Gets schema metadata and data from the platform Artifact Service.
6
7
  */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (C) 2019-2020 HERE Europe B.V.
3
+ * Copyright (C) 2019-2026 HERE Europe B.V.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -17,15 +17,6 @@
17
17
  * SPDX-License-Identifier: Apache-2.0
18
18
  * License-Filename: LICENSE
19
19
  */
20
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
21
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
22
- return new (P || (P = Promise))(function (resolve, reject) {
23
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
24
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
25
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
26
- step((generator = generator.apply(thisArg, _arguments || [])).next());
27
- });
28
- };
29
20
  Object.defineProperty(exports, "__esModule", { value: true });
30
21
  exports.ArtifactClient = void 0;
31
22
  const olp_sdk_core_1 = require("@here/olp-sdk-core");
@@ -34,6 +25,8 @@ const olp_sdk_dataservice_api_1 = require("@here/olp-sdk-dataservice-api");
34
25
  * Gets schema metadata and data from the platform Artifact Service.
35
26
  */
36
27
  class ArtifactClient {
28
+ settings;
29
+ apiVersion = "v1";
37
30
  /**
38
31
  * Constructs a new client to work with schemas data in the platform Artifact Service.
39
32
  *
@@ -42,7 +35,6 @@ class ArtifactClient {
42
35
  */
43
36
  constructor(settings) {
44
37
  this.settings = settings;
45
- this.apiVersion = "v1";
46
38
  }
47
39
  /**
48
40
  * Gets schema metadata.
@@ -50,17 +42,15 @@ class ArtifactClient {
50
42
  * @param schemaDetailsRequest The [[SchemaDetailsRequest]] instance.
51
43
  * @return An object with the schema metadata.
52
44
  */
53
- getSchemaDetails(schemaDetailsRequest) {
54
- return __awaiter(this, void 0, void 0, function* () {
55
- const hrn = schemaDetailsRequest.getSchema();
56
- if (!hrn) {
57
- return Promise.reject(new Error(`Please provide the schema HRN by schemaDetailsRequest.withSchema()`));
58
- }
59
- const hrnStr = hrn.toString();
60
- const request = yield olp_sdk_core_1.RequestFactory.create("artifact", this.apiVersion, this.settings).catch(error => Promise.reject(error));
61
- return olp_sdk_dataservice_api_1.ArtifactApi.getSchemaUsingGET(request, {
62
- schemaHrn: hrnStr
63
- }).catch(err => Promise.reject(err));
45
+ async getSchemaDetails(schemaDetailsRequest) {
46
+ const hrn = schemaDetailsRequest.getSchema();
47
+ if (!hrn) {
48
+ return Promise.reject(new Error(`Please provide the schema HRN by schemaDetailsRequest.withSchema()`));
49
+ }
50
+ const hrnStr = hrn.toString();
51
+ const request = await olp_sdk_core_1.RequestFactory.create("artifact", this.apiVersion, this.settings);
52
+ return olp_sdk_dataservice_api_1.ArtifactApi.getSchemaUsingGET(request, {
53
+ schemaHrn: hrnStr
64
54
  });
65
55
  }
66
56
  /**
@@ -69,28 +59,26 @@ class ArtifactClient {
69
59
  * @param schemaRequest The [[SchemaRequest]] instance.
70
60
  * @return A blob with the schema.
71
61
  */
72
- getSchema(schemaRequest) {
73
- return __awaiter(this, void 0, void 0, function* () {
74
- const variant = schemaRequest.getVariant();
75
- if (!variant) {
76
- return Promise.reject(new Error(`Please provide the schema variant by schemaRequest.withVariant()`));
77
- }
78
- const request = yield olp_sdk_core_1.RequestFactory.create("artifact", this.apiVersion, this.settings).catch(error => Promise.reject(error));
79
- const response = yield olp_sdk_dataservice_api_1.ArtifactApi.getArtifactUsingGET(request, {
80
- artifactHrn: variant.url
81
- }).catch((error) => __awaiter(this, void 0, void 0, function* () {
82
- const messages = {
83
- 400: "Bad request",
84
- 401: "You are not authorized to view the schema",
85
- 403: "Accessing the schema is forbidden",
86
- 404: "The schema was not found",
87
- 500: "Internal server error"
88
- };
89
- const message = error.statusText || messages[error.status];
90
- return Promise.reject(new Error(`Artifact Service error: HTTP ${error.status}: ${message}`));
91
- }));
92
- return response.arrayBuffer();
62
+ async getSchema(schemaRequest) {
63
+ const variant = schemaRequest.getVariant();
64
+ if (!variant) {
65
+ return Promise.reject(new Error(`Please provide the schema variant by schemaRequest.withVariant()`));
66
+ }
67
+ const request = await olp_sdk_core_1.RequestFactory.create("artifact", this.apiVersion, this.settings);
68
+ const response = await olp_sdk_dataservice_api_1.ArtifactApi.getArtifactUsingGET(request, {
69
+ artifactHrn: variant.url
70
+ }).catch(async (error) => {
71
+ const messages = {
72
+ 400: "Bad request",
73
+ 401: "You are not authorized to view the schema",
74
+ 403: "Accessing the schema is forbidden",
75
+ 404: "The schema was not found",
76
+ 500: "Internal server error"
77
+ };
78
+ const message = error.statusText || messages[error.status];
79
+ return Promise.reject(new Error(`Artifact Service error: HTTP ${error.status}: ${message}`));
93
80
  });
81
+ return response.arrayBuffer();
94
82
  }
95
83
  }
96
84
  exports.ArtifactClient = ArtifactClient;
@@ -1,6 +1,8 @@
1
1
  import { HRN, OlpClientSettings } from "@here/olp-sdk-core";
2
2
  import { ConfigApi, MetadataApi } from "@here/olp-sdk-dataservice-api";
3
- import { CatalogRequest, CatalogVersionRequest, LayerVersionsRequest } from "@here/olp-sdk-dataservice-read";
3
+ import { CatalogRequest } from "./CatalogRequest";
4
+ import { CatalogVersionRequest } from "./CatalogVersionRequest";
5
+ import { LayerVersionsRequest } from "./LayerVersionsRequest";
4
6
  /**
5
7
  * Interacts with the `DataStore` catalog.
6
8
  */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (C) 2019-2020 HERE Europe B.V.
3
+ * Copyright (C) 2019-2026 HERE Europe B.V.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -17,24 +17,18 @@
17
17
  * SPDX-License-Identifier: Apache-2.0
18
18
  * License-Filename: LICENSE
19
19
  */
20
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
21
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
22
- return new (P || (P = Promise))(function (resolve, reject) {
23
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
24
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
25
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
26
- step((generator = generator.apply(thisArg, _arguments || [])).next());
27
- });
28
- };
29
20
  Object.defineProperty(exports, "__esModule", { value: true });
30
21
  exports.CatalogClient = void 0;
31
22
  const olp_sdk_core_1 = require("@here/olp-sdk-core");
32
23
  const olp_sdk_dataservice_api_1 = require("@here/olp-sdk-dataservice-api");
33
- const olp_sdk_dataservice_read_1 = require("@here/olp-sdk-dataservice-read");
24
+ const CatalogVersionRequest_1 = require("./CatalogVersionRequest");
34
25
  /**
35
26
  * Interacts with the `DataStore` catalog.
36
27
  */
37
28
  class CatalogClient {
29
+ settings;
30
+ apiVersion = "v1";
31
+ hrn;
38
32
  /**
39
33
  * Constructs the [[CatalogClient]] instance.
40
34
  *
@@ -44,7 +38,6 @@ class CatalogClient {
44
38
  */
45
39
  constructor(catalogHrn, settings) {
46
40
  this.settings = settings;
47
- this.apiVersion = "v1";
48
41
  this.hrn = catalogHrn.toString();
49
42
  }
50
43
  /**
@@ -62,13 +55,11 @@ class CatalogClient {
62
55
  *
63
56
  * @return The catalog metadata.
64
57
  */
65
- getCatalog(request, abortSignal) {
66
- return __awaiter(this, void 0, void 0, function* () {
67
- const builder = yield this.getRequestBuilder("config", undefined, abortSignal);
68
- return olp_sdk_dataservice_api_1.ConfigApi.getCatalog(builder, {
69
- catalogHrn: this.hrn,
70
- billingTag: request.getBillingTag()
71
- }).catch(err => Promise.reject(err));
58
+ async getCatalog(request, abortSignal) {
59
+ const builder = await this.getRequestBuilder("config", undefined, abortSignal);
60
+ return olp_sdk_dataservice_api_1.ConfigApi.getCatalog(builder, {
61
+ catalogHrn: this.hrn,
62
+ billingTag: request.getBillingTag()
72
63
  });
73
64
  }
74
65
  /**
@@ -79,14 +70,12 @@ class CatalogClient {
79
70
  * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
80
71
  * @returns A promise of the http response that contains the pminimum version for the given catalog.
81
72
  */
82
- getEarliestVersion(request, abortSignal) {
83
- return __awaiter(this, void 0, void 0, function* () {
84
- const builder = yield this.getRequestBuilder("metadata", olp_sdk_core_1.HRN.fromString(this.hrn), abortSignal).catch(error => Promise.reject(error));
85
- const earliestVersion = yield olp_sdk_dataservice_api_1.MetadataApi.minimumVersion(builder, {
86
- billingTag: request.getBillingTag()
87
- }).catch(err => Promise.reject(err));
88
- return Promise.resolve(earliestVersion.version);
73
+ async getEarliestVersion(request, abortSignal) {
74
+ const builder = await this.getRequestBuilder("metadata", olp_sdk_core_1.HRN.fromString(this.hrn), abortSignal);
75
+ const earliestVersion = await olp_sdk_dataservice_api_1.MetadataApi.minimumVersion(builder, {
76
+ billingTag: request.getBillingTag()
89
77
  });
78
+ return Promise.resolve(earliestVersion.version);
90
79
  }
91
80
  /**
92
81
  * Returns information about layer versions for the catalog version. It will return array with
@@ -100,27 +89,25 @@ class CatalogClient {
100
89
  * and abort it if required via an AbortController object.
101
90
  * @returns A promise of the http response that contains an array with all catalog layers and latest version for each layer.
102
91
  */
103
- getLayerVersions(request, abortSignal) {
104
- return __awaiter(this, void 0, void 0, function* () {
105
- const builder = yield this.getRequestBuilder("metadata", olp_sdk_core_1.HRN.fromString(this.hrn), abortSignal).catch(error => Promise.reject(error));
106
- let requestedCatalogVersion = request.getVersion();
107
- if (requestedCatalogVersion === undefined) {
108
- const billingtag = request.getBillingTag();
109
- const catalogVersionRequest = new olp_sdk_dataservice_read_1.CatalogVersionRequest();
110
- if (billingtag) {
111
- catalogVersionRequest.withBillingTag(billingtag);
112
- }
113
- requestedCatalogVersion = yield this.getLatestVersion(catalogVersionRequest).catch(error => Promise.reject(error));
92
+ async getLayerVersions(request, abortSignal) {
93
+ const builder = await this.getRequestBuilder("metadata", olp_sdk_core_1.HRN.fromString(this.hrn), abortSignal);
94
+ let requestedCatalogVersion = request.getVersion();
95
+ if (requestedCatalogVersion === undefined) {
96
+ const billingtag = request.getBillingTag();
97
+ const catalogVersionRequest = new CatalogVersionRequest_1.CatalogVersionRequest();
98
+ if (billingtag) {
99
+ catalogVersionRequest.withBillingTag(billingtag);
114
100
  }
115
- if (requestedCatalogVersion === undefined) {
116
- return Promise.reject(new Error("Please set version with LayerVersionsRequest.withVersion() method."));
117
- }
118
- const layerVersions = yield olp_sdk_dataservice_api_1.MetadataApi.getLayerVersions(builder, {
119
- version: requestedCatalogVersion,
120
- billingTag: request.getBillingTag()
121
- }).catch((error) => __awaiter(this, void 0, void 0, function* () { return Promise.reject(new Error(error)); }));
122
- return Promise.resolve(layerVersions.layerVersions);
123
- });
101
+ requestedCatalogVersion = await this.getLatestVersion(catalogVersionRequest);
102
+ }
103
+ if (requestedCatalogVersion === undefined) {
104
+ return Promise.reject(new Error("Please set version with LayerVersionsRequest.withVersion() method."));
105
+ }
106
+ const layerVersions = await olp_sdk_dataservice_api_1.MetadataApi.getLayerVersions(builder, {
107
+ version: requestedCatalogVersion,
108
+ billingTag: request.getBillingTag()
109
+ }).catch(async (error) => Promise.reject(new Error(error)));
110
+ return Promise.resolve(layerVersions.layerVersions);
124
111
  }
125
112
  /**
126
113
  * Gets the latest version of a catalog.
@@ -137,19 +124,17 @@ class CatalogClient {
137
124
  *
138
125
  * @returns A promise of the HTTP response that contains the payload with the latest version.
139
126
  */
140
- getLatestVersion(request, abortSignal) {
141
- return __awaiter(this, void 0, void 0, function* () {
142
- let startVersion = request.getStartVersion();
143
- if (startVersion === undefined) {
144
- startVersion = -1;
145
- }
146
- const builder = yield this.getRequestBuilder("metadata", olp_sdk_core_1.HRN.fromString(this.hrn), abortSignal).catch(error => Promise.reject(error));
147
- const latestVersion = yield olp_sdk_dataservice_api_1.MetadataApi.latestVersion(builder, {
148
- startVersion,
149
- billingTag: request.getBillingTag()
150
- }).catch(err => Promise.reject(err));
151
- return Promise.resolve(latestVersion.version);
127
+ async getLatestVersion(request, abortSignal) {
128
+ let startVersion = request.getStartVersion();
129
+ if (startVersion === undefined) {
130
+ startVersion = -1;
131
+ }
132
+ const builder = await this.getRequestBuilder("metadata", olp_sdk_core_1.HRN.fromString(this.hrn), abortSignal);
133
+ const latestVersion = await olp_sdk_dataservice_api_1.MetadataApi.latestVersion(builder, {
134
+ startVersion,
135
+ billingTag: request.getBillingTag()
152
136
  });
137
+ return Promise.resolve(latestVersion.version);
153
138
  }
154
139
  /**
155
140
  * Gets information about specific catalog versions. The maximum number of versions to be
@@ -168,22 +153,20 @@ class CatalogClient {
168
153
  * @returns A promise of the HTTP response that contains the payload with versions in the requested
169
154
  * range.
170
155
  */
171
- getVersions(request, abortSignal) {
172
- return __awaiter(this, void 0, void 0, function* () {
173
- let startVersion = request.getStartVersion();
174
- if (startVersion === undefined) {
175
- startVersion = -1;
176
- }
177
- let endVersion = request.getEndVersion();
178
- if (endVersion === undefined) {
179
- endVersion = yield this.getLatestVersion(request);
180
- }
181
- const builder = yield this.getRequestBuilder("metadata", olp_sdk_core_1.HRN.fromString(this.hrn), abortSignal).catch(error => Promise.reject(error));
182
- return olp_sdk_dataservice_api_1.MetadataApi.listVersions(builder, {
183
- startVersion,
184
- endVersion,
185
- billingTag: request.getBillingTag()
186
- });
156
+ async getVersions(request, abortSignal) {
157
+ let startVersion = request.getStartVersion();
158
+ if (startVersion === undefined) {
159
+ startVersion = -1;
160
+ }
161
+ let endVersion = request.getEndVersion();
162
+ if (endVersion === undefined) {
163
+ endVersion = await this.getLatestVersion(request);
164
+ }
165
+ const builder = await this.getRequestBuilder("metadata", olp_sdk_core_1.HRN.fromString(this.hrn), abortSignal);
166
+ return olp_sdk_dataservice_api_1.MetadataApi.listVersions(builder, {
167
+ startVersion,
168
+ endVersion,
169
+ billingTag: request.getBillingTag()
187
170
  });
188
171
  }
189
172
  /**
@@ -197,10 +180,8 @@ class CatalogClient {
197
180
  *
198
181
  * @returns `requestBuilder`
199
182
  */
200
- getRequestBuilder(builderType, hrn, abortSignal) {
201
- return __awaiter(this, void 0, void 0, function* () {
202
- return olp_sdk_core_1.RequestFactory.create(builderType, this.apiVersion, this.settings, hrn, abortSignal).catch((err) => Promise.reject(`Error retrieving from cache builder for resource "${this.hrn}" and api: "${builderType}.\n${err}"`));
203
- });
183
+ async getRequestBuilder(builderType, hrn, abortSignal) {
184
+ return olp_sdk_core_1.RequestFactory.create(builderType, this.apiVersion, this.settings, hrn, abortSignal).catch((err) => Promise.reject(`Error retrieving from cache builder for resource "${this.hrn}" and api: "${builderType}.\n${err}"`));
204
185
  }
205
186
  }
206
187
  exports.CatalogClient = CatalogClient;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (C) 2019 HERE Europe B.V.
3
+ * Copyright (C) 2019-2026 HERE Europe B.V.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -19,11 +19,12 @@
19
19
  */
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  exports.CatalogRequest = void 0;
22
- const olp_sdk_dataservice_read_1 = require("@here/olp-sdk-dataservice-read");
22
+ const validateBillingTag_1 = require("../utils/validateBillingTag");
23
23
  /**
24
24
  * Prepares information for calls to get catalog metadata from the platform Config Service.
25
25
  */
26
26
  class CatalogRequest {
27
+ billingTag;
27
28
  /**
28
29
  * An optional free-form tag that is used for grouping billing records together.
29
30
  * If supplied, it must be 4–16 characters long and contain only alphanumeric ASCII characters [A-Za-z0-9].
@@ -32,7 +33,7 @@ class CatalogRequest {
32
33
  * @return The updated [[CatalogRequest]] instance that you can use to chain methods.
33
34
  */
34
35
  withBillingTag(tag) {
35
- this.billingTag = olp_sdk_dataservice_read_1.validateBillingTag(tag);
36
+ this.billingTag = (0, validateBillingTag_1.validateBillingTag)(tag);
36
37
  return this;
37
38
  }
38
39
  /**
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (C) 2019 HERE Europe B.V.
3
+ * Copyright (C) 2019-2026 HERE Europe B.V.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -19,11 +19,14 @@
19
19
  */
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  exports.CatalogVersionRequest = void 0;
22
- const olp_sdk_dataservice_read_1 = require("@here/olp-sdk-dataservice-read");
22
+ const validateBillingTag_1 = require("../utils/validateBillingTag");
23
23
  /**
24
24
  * Prepares information for calls to the platform Artifact Service.
25
25
  */
26
26
  class CatalogVersionRequest {
27
+ startVersion;
28
+ endVersion;
29
+ billingTag;
27
30
  /**
28
31
  * Gets a catalog start version (exclusive) for the request. Default is -1. By convention -1
29
32
  * indicates the virtual initial version before the first publication that has version 0.
@@ -70,7 +73,7 @@ class CatalogVersionRequest {
70
73
  * @return The updated [[CatalogVersionRequest]] instance that you can use to chain methods.
71
74
  */
72
75
  withBillingTag(tag) {
73
- this.billingTag = olp_sdk_dataservice_read_1.validateBillingTag(tag);
76
+ this.billingTag = (0, validateBillingTag_1.validateBillingTag)(tag);
74
77
  return this;
75
78
  }
76
79
  /**
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (C) 2019 HERE Europe B.V.
3
+ * Copyright (C) 2019-2026 HERE Europe B.V.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -19,11 +19,13 @@
19
19
  */
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  exports.CatalogsRequest = void 0;
22
- const olp_sdk_dataservice_read_1 = require("@here/olp-sdk-dataservice-read");
22
+ const validateBillingTag_1 = require("../utils/validateBillingTag");
23
23
  /**
24
24
  * Prepares information for calls to get catalogs from the platform Config Service.
25
25
  */
26
26
  class CatalogsRequest {
27
+ schemaHrn;
28
+ billingTag;
27
29
  /**
28
30
  * Gets a schema HERE Resource Name (HRN) for the request.
29
31
  *
@@ -52,7 +54,7 @@ class CatalogsRequest {
52
54
  * @return The updated [[CatalogsRequest]] instance that you can use to chain methods.
53
55
  */
54
56
  withBillingTag(tag) {
55
- this.billingTag = olp_sdk_dataservice_read_1.validateBillingTag(tag);
57
+ this.billingTag = (0, validateBillingTag_1.validateBillingTag)(tag);
56
58
  return this;
57
59
  }
58
60
  /**
@@ -1,6 +1,6 @@
1
1
  import { OlpClientSettings } from "@here/olp-sdk-core";
2
2
  import { ConfigApi } from "@here/olp-sdk-dataservice-api";
3
- import { CatalogsRequest } from "@here/olp-sdk-dataservice-read";
3
+ import { CatalogsRequest } from "./CatalogsRequest";
4
4
  /**
5
5
  * A client for the platform Config Service.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (C) 2019-2020 HERE Europe B.V.
3
+ * Copyright (C) 2019-2026 HERE Europe B.V.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -17,15 +17,6 @@
17
17
  * SPDX-License-Identifier: Apache-2.0
18
18
  * License-Filename: LICENSE
19
19
  */
20
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
21
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
22
- return new (P || (P = Promise))(function (resolve, reject) {
23
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
24
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
25
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
26
- step((generator = generator.apply(thisArg, _arguments || [])).next());
27
- });
28
- };
29
20
  Object.defineProperty(exports, "__esModule", { value: true });
30
21
  exports.ConfigClient = void 0;
31
22
  const olp_sdk_core_1 = require("@here/olp-sdk-core");
@@ -34,6 +25,8 @@ const olp_sdk_dataservice_api_1 = require("@here/olp-sdk-dataservice-api");
34
25
  * A client for the platform Config Service.
35
26
  */
36
27
  class ConfigClient {
28
+ settings;
29
+ apiVersion = "v1";
37
30
  /**
38
31
  * Constructs a new client for the data store to work with data
39
32
  * about catalogs configurations in the store.
@@ -43,7 +36,6 @@ class ConfigClient {
43
36
  */
44
37
  constructor(settings) {
45
38
  this.settings = settings;
46
- this.apiVersion = "v1";
47
39
  }
48
40
  /**
49
41
  * Asynchronously retrieves a list of catalogs to which you have access.
@@ -54,19 +46,17 @@ class ConfigClient {
54
46
  * If the schema is set, you get the catalogs with layers filtered by the specified layer schema HERE Resource Name (HRN).
55
47
  * If the schema is not set, the filter returns all of the catalogs to which you have access.
56
48
  */
57
- getCatalogs(request) {
58
- return __awaiter(this, void 0, void 0, function* () {
59
- const requestBuilder = yield olp_sdk_core_1.RequestFactory.create("config", this.apiVersion, this.settings).catch(error => Promise.reject(error));
60
- const params = {};
61
- if (request) {
62
- params.billingTag = request.getBillingTag();
63
- if (request.getSchema()) {
64
- params.verbose = "true";
65
- params.schemaHrn = request.getSchema();
66
- }
49
+ async getCatalogs(request) {
50
+ const requestBuilder = await olp_sdk_core_1.RequestFactory.create("config", this.apiVersion, this.settings);
51
+ const params = {};
52
+ if (request) {
53
+ params.billingTag = request.getBillingTag();
54
+ if (request.getSchema()) {
55
+ params.verbose = "true";
56
+ params.schemaHrn = request.getSchema();
67
57
  }
68
- return olp_sdk_dataservice_api_1.ConfigApi.getCatalogs(requestBuilder, params);
69
- });
58
+ }
59
+ return olp_sdk_dataservice_api_1.ConfigApi.getCatalogs(requestBuilder, params);
70
60
  }
71
61
  }
72
62
  exports.ConfigClient = ConfigClient;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (C) 2019-2021 HERE Europe B.V.
3
+ * Copyright (C) 2019-2026 HERE Europe B.V.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -20,14 +20,15 @@
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  exports.DataRequest = void 0;
22
22
  const olp_sdk_core_1 = require("@here/olp-sdk-core");
23
- const olp_sdk_dataservice_read_1 = require("@here/olp-sdk-dataservice-read");
23
+ const validateBillingTag_1 = require("../utils/validateBillingTag");
24
24
  /**
25
25
  * Prepares information for calls to get data from the HERE Blob Service.
26
26
  */
27
27
  class DataRequest {
28
- constructor() {
29
- this.fetchOption = olp_sdk_core_1.FetchOptions.OnlineIfNotFound;
30
- }
28
+ dataHandle;
29
+ partitionId;
30
+ billingTag;
31
+ fetchOption = olp_sdk_core_1.FetchOptions.OnlineIfNotFound;
31
32
  /**
32
33
  * Gets a data handle for the request.
33
34
  *
@@ -75,7 +76,7 @@ class DataRequest {
75
76
  * @return The updated [[DataRequest]] instance that you can use to chain methods.
76
77
  */
77
78
  withBillingTag(tag) {
78
- this.billingTag = olp_sdk_dataservice_read_1.validateBillingTag(tag);
79
+ this.billingTag = (0, validateBillingTag_1.validateBillingTag)(tag);
79
80
  return this;
80
81
  }
81
82
  /**
@@ -1,6 +1,6 @@
1
1
  import { HRN, OlpClientSettings } from "@here/olp-sdk-core";
2
2
  import { IndexApi } from "@here/olp-sdk-dataservice-api";
3
- import { IndexQueryRequest } from "@here/olp-sdk-dataservice-read";
3
+ import { IndexQueryRequest } from "./IndexQueryRequest";
4
4
  /**
5
5
  * Parameters for use to initialize IndexLayerClient.
6
6
  */