@tomtom-org/maps-sdk 0.47.3 → 0.47.5
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/CHANGELOG.md +26 -0
- package/core/dist/core.es.js +1 -1
- package/core/dist/core.es.js.map +1 -1
- package/core/dist/index.d.ts +58 -0
- package/map/dist/index.d.ts +2 -1
- package/map/dist/map.es.js +1 -1
- package/map/dist/map.es.js.map +1 -1
- package/package.json +7 -7
- package/services/dist/services.es.js +1 -1
- package/services/dist/services.es.js.map +1 -1
package/core/dist/index.d.ts
CHANGED
|
@@ -2758,6 +2758,15 @@ export declare type GlobalConfig = {
|
|
|
2758
2758
|
* If not provided, default unit labels are used.
|
|
2759
2759
|
*/
|
|
2760
2760
|
displayUnits?: DisplayUnits;
|
|
2761
|
+
/**
|
|
2762
|
+
* Configuration for automatic retry on rate-limited (429) responses.
|
|
2763
|
+
*
|
|
2764
|
+
* When set, the SDK automatically retries requests that receive a 429 status code
|
|
2765
|
+
* using exponential backoff. All fields have sensible defaults.
|
|
2766
|
+
*
|
|
2767
|
+
* @see {@link RetryConfig}
|
|
2768
|
+
*/
|
|
2769
|
+
retry?: RetryConfig;
|
|
2761
2770
|
};
|
|
2762
2771
|
|
|
2763
2772
|
/**
|
|
@@ -4087,6 +4096,55 @@ export declare type RelatedPOI = {
|
|
|
4087
4096
|
id: string;
|
|
4088
4097
|
};
|
|
4089
4098
|
|
|
4099
|
+
/**
|
|
4100
|
+
* Configuration for automatic retry behavior on rate-limited (429) responses.
|
|
4101
|
+
*
|
|
4102
|
+
* When a service request receives a 429 status code, the SDK will automatically
|
|
4103
|
+
* retry the request using exponential backoff. The `Retry-After` header from the
|
|
4104
|
+
* API response is respected when present.
|
|
4105
|
+
*
|
|
4106
|
+
* @example
|
|
4107
|
+
* ```typescript
|
|
4108
|
+
* TomTomConfig.instance.put({
|
|
4109
|
+
* retry: {
|
|
4110
|
+
* initialWaitMs: 0.447,
|
|
4111
|
+
* backoffFactor: 1.618,
|
|
4112
|
+
* timeoutMs: 60000,
|
|
4113
|
+
* }
|
|
4114
|
+
* });
|
|
4115
|
+
* ```
|
|
4116
|
+
*
|
|
4117
|
+
* @group Configuration
|
|
4118
|
+
*/
|
|
4119
|
+
export declare type RetryConfig = {
|
|
4120
|
+
/**
|
|
4121
|
+
* Initial wait time in milliseconds before the first retry.
|
|
4122
|
+
*
|
|
4123
|
+
* Used as the base delay when no `Retry-After` header is present.
|
|
4124
|
+
*
|
|
4125
|
+
* @defaultValue 0.447
|
|
4126
|
+
*/
|
|
4127
|
+
initialWaitMs?: number;
|
|
4128
|
+
/**
|
|
4129
|
+
* Multiplier applied to the wait time after each subsequent retry.
|
|
4130
|
+
*
|
|
4131
|
+
* For example, with `initialWaitMs: 0.447` and `backoffFactor: 1.618`,
|
|
4132
|
+
* wait times would be: 0.447ms, 0.723ms, 1.170ms, etc.
|
|
4133
|
+
*
|
|
4134
|
+
* @defaultValue 1.618
|
|
4135
|
+
*/
|
|
4136
|
+
backoffFactor?: number;
|
|
4137
|
+
/**
|
|
4138
|
+
* Maximum total time in milliseconds to spend retrying before giving up.
|
|
4139
|
+
*
|
|
4140
|
+
* If the next retry wait would exceed this timeout (measured from the
|
|
4141
|
+
* first request), the SDK returns the 429 error to the caller.
|
|
4142
|
+
*
|
|
4143
|
+
* @defaultValue 60000
|
|
4144
|
+
*/
|
|
4145
|
+
timeoutMs?: number;
|
|
4146
|
+
};
|
|
4147
|
+
|
|
4090
4148
|
/**
|
|
4091
4149
|
* Properties for reverse geocoded places.
|
|
4092
4150
|
*
|
package/map/dist/index.d.ts
CHANGED
|
@@ -9894,6 +9894,7 @@ export declare type TrafficIncidentOverlayConfig = MapModuleCommonConfig & {
|
|
|
9894
9894
|
*/
|
|
9895
9895
|
export declare class TrafficIncidentOverlayModule extends AbstractMapModule<Sources, TrafficIncidentOverlayConfig> {
|
|
9896
9896
|
private static lastInstanceIndex;
|
|
9897
|
+
private instanceIndex;
|
|
9897
9898
|
private lastResult;
|
|
9898
9899
|
private lastFeatureIds;
|
|
9899
9900
|
private lastFocusIds;
|
|
@@ -9901,7 +9902,7 @@ export declare class TrafficIncidentOverlayModule extends AbstractMapModule<Sour
|
|
|
9901
9902
|
static get(tomtomMap: TomTomMap, config?: TrafficIncidentOverlayConfig): Promise<TrafficIncidentOverlayModule>;
|
|
9902
9903
|
private constructor();
|
|
9903
9904
|
/** @ignore */
|
|
9904
|
-
protected _initSourcesWithLayers(config?: TrafficIncidentOverlayConfig): Sources;
|
|
9905
|
+
protected _initSourcesWithLayers(config?: TrafficIncidentOverlayConfig, restore?: boolean): Sources;
|
|
9905
9906
|
/** @ignore */
|
|
9906
9907
|
protected _applyConfig(config: TrafficIncidentOverlayConfig | undefined): TrafficIncidentOverlayConfig | undefined;
|
|
9907
9908
|
private applyBeforeLayer;
|