@tileflow/static 0.1.0-alpha.20 → 0.1.0-alpha.22
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/README.md +102 -12
- package/dist/chunk-EMCKSFZV.js +477 -0
- package/dist/{chunk-LGEYA6FQ.js → chunk-EPOYQNNT.js} +22 -6
- package/dist/{chunk-QCR76BUO.js → chunk-MSQ4OLKA.js} +74 -4
- package/dist/{chunk-YUG3PBK2.js → chunk-NM2JSFUF.js} +63 -9
- package/dist/chunk-TQMKOTBE.js +287 -0
- package/dist/client.d.ts +94 -5
- package/dist/client.js +11 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.js +45 -5
- package/dist/manifest.d.ts +579 -8
- package/dist/manifest.js +25 -3
- package/dist/overlays.d.ts +5 -3
- package/dist/overlays.js +2 -2
- package/dist/{scene-contract-DzsUeJ_V.d.ts → scene-contract-OMIOisSB.d.ts} +66 -3
- package/dist/scene.d.ts +200 -5
- package/dist/scene.js +12 -2
- package/package.json +1 -1
- package/dist/chunk-HKYA7ZIU.js +0 -79
- package/dist/chunk-ROBEGDDY.js +0 -63
package/dist/client.d.ts
CHANGED
|
@@ -1,17 +1,39 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { a as StaticAttributionPosition, i as StaticSceneInput } from './scene-contract-OMIOisSB.js';
|
|
3
3
|
|
|
4
4
|
declare function stableStringify(value: unknown): string;
|
|
5
5
|
|
|
6
|
+
declare const STATIC_MAP_RESULT_V2_MEDIA_TYPE = "application/vnd.tileflow.static-map-result+json;version=2";
|
|
7
|
+
type StaticMapAttributionEntry = Readonly<{
|
|
8
|
+
authority: 'platform-notice' | 'team-declared';
|
|
9
|
+
links: readonly Readonly<{
|
|
10
|
+
label: string;
|
|
11
|
+
url: string;
|
|
12
|
+
}>[];
|
|
13
|
+
text: string;
|
|
14
|
+
}>;
|
|
15
|
+
type StaticMapAttributionResult = Readonly<{
|
|
16
|
+
entries: readonly StaticMapAttributionEntry[];
|
|
17
|
+
mode: 'embedded' | 'external';
|
|
18
|
+
position: Exclude<StaticAttributionPosition, 'auto'> | null;
|
|
19
|
+
}>;
|
|
6
20
|
type StaticMapResult = {
|
|
21
|
+
attribution?: StaticMapAttributionResult;
|
|
7
22
|
cached: boolean;
|
|
8
23
|
hash: string;
|
|
9
24
|
imageUrl: string;
|
|
10
25
|
operationId: string | null;
|
|
11
26
|
remainingUnits: number | null;
|
|
27
|
+
resultVersion?: 2;
|
|
12
28
|
status: 'ready';
|
|
13
29
|
unitCost: 0 | 15;
|
|
14
30
|
};
|
|
31
|
+
type StaticMapHostedResult = StaticMapResult & Readonly<{
|
|
32
|
+
attribution: StaticMapAttributionResult;
|
|
33
|
+
operationId: string;
|
|
34
|
+
resultVersion: 2;
|
|
35
|
+
unitCost: 15;
|
|
36
|
+
}>;
|
|
15
37
|
type StaticMapCreateOptions = {
|
|
16
38
|
apiKey?: string;
|
|
17
39
|
apiUrl?: string;
|
|
@@ -36,6 +58,73 @@ declare const staticMapReadyResultSchema: z.ZodObject<{
|
|
|
36
58
|
status: z.ZodLiteral<"ready">;
|
|
37
59
|
unitCost: z.ZodLiteral<15>;
|
|
38
60
|
}, z.core.$strict>;
|
|
61
|
+
declare const staticMapAttributionEntrySchema: z.ZodObject<{
|
|
62
|
+
authority: z.ZodEnum<{
|
|
63
|
+
"platform-notice": "platform-notice";
|
|
64
|
+
"team-declared": "team-declared";
|
|
65
|
+
}>;
|
|
66
|
+
links: z.ZodArray<z.ZodObject<{
|
|
67
|
+
label: z.ZodString;
|
|
68
|
+
url: z.ZodString;
|
|
69
|
+
}, z.core.$strict>>;
|
|
70
|
+
text: z.ZodString;
|
|
71
|
+
}, z.core.$strict>;
|
|
72
|
+
declare const staticMapAttributionResultSchema: z.ZodObject<{
|
|
73
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
74
|
+
authority: z.ZodEnum<{
|
|
75
|
+
"platform-notice": "platform-notice";
|
|
76
|
+
"team-declared": "team-declared";
|
|
77
|
+
}>;
|
|
78
|
+
links: z.ZodArray<z.ZodObject<{
|
|
79
|
+
label: z.ZodString;
|
|
80
|
+
url: z.ZodString;
|
|
81
|
+
}, z.core.$strict>>;
|
|
82
|
+
text: z.ZodString;
|
|
83
|
+
}, z.core.$strict>>;
|
|
84
|
+
mode: z.ZodEnum<{
|
|
85
|
+
embedded: "embedded";
|
|
86
|
+
external: "external";
|
|
87
|
+
}>;
|
|
88
|
+
position: z.ZodNullable<z.ZodEnum<{
|
|
89
|
+
"top-left": "top-left";
|
|
90
|
+
"top-right": "top-right";
|
|
91
|
+
"bottom-left": "bottom-left";
|
|
92
|
+
"bottom-right": "bottom-right";
|
|
93
|
+
}>>;
|
|
94
|
+
}, z.core.$strict>;
|
|
95
|
+
declare const staticMapHostedResultSchema: z.ZodObject<{
|
|
96
|
+
cached: z.ZodBoolean;
|
|
97
|
+
hash: z.ZodString;
|
|
98
|
+
imageUrl: z.ZodString;
|
|
99
|
+
operationId: z.ZodString;
|
|
100
|
+
remainingUnits: z.ZodNullable<z.ZodNumber>;
|
|
101
|
+
status: z.ZodLiteral<"ready">;
|
|
102
|
+
unitCost: z.ZodLiteral<15>;
|
|
103
|
+
attribution: z.ZodObject<{
|
|
104
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
105
|
+
authority: z.ZodEnum<{
|
|
106
|
+
"platform-notice": "platform-notice";
|
|
107
|
+
"team-declared": "team-declared";
|
|
108
|
+
}>;
|
|
109
|
+
links: z.ZodArray<z.ZodObject<{
|
|
110
|
+
label: z.ZodString;
|
|
111
|
+
url: z.ZodString;
|
|
112
|
+
}, z.core.$strict>>;
|
|
113
|
+
text: z.ZodString;
|
|
114
|
+
}, z.core.$strict>>;
|
|
115
|
+
mode: z.ZodEnum<{
|
|
116
|
+
embedded: "embedded";
|
|
117
|
+
external: "external";
|
|
118
|
+
}>;
|
|
119
|
+
position: z.ZodNullable<z.ZodEnum<{
|
|
120
|
+
"top-left": "top-left";
|
|
121
|
+
"top-right": "top-right";
|
|
122
|
+
"bottom-left": "bottom-left";
|
|
123
|
+
"bottom-right": "bottom-right";
|
|
124
|
+
}>>;
|
|
125
|
+
}, z.core.$strict>;
|
|
126
|
+
resultVersion: z.ZodLiteral<2>;
|
|
127
|
+
}, z.core.$strict>;
|
|
39
128
|
declare const staticMapProcessingResultSchema: z.ZodObject<{
|
|
40
129
|
operationId: z.ZodString;
|
|
41
130
|
retryAfterMs: z.ZodNumber;
|
|
@@ -51,8 +140,8 @@ declare function validateStaticMapIdempotencyKey(value: unknown): {
|
|
|
51
140
|
};
|
|
52
141
|
declare function createStaticMapIdempotencyKey(): string;
|
|
53
142
|
declare function prepareStaticMapRequest(scene: StaticSceneInput): PreparedStaticMapRequest;
|
|
54
|
-
declare function createStaticMap(scene: StaticSceneInput, options: StaticMapCreateOptions): Promise<
|
|
55
|
-
declare function precacheStaticMap(scene: StaticSceneInput, options: StaticMapCreateOptions): Promise<
|
|
56
|
-
declare function requestStaticMapUntilReady(request: PreparedStaticMapRequest, options: StaticMapEndpointRequestOptions): Promise<
|
|
143
|
+
declare function createStaticMap(scene: StaticSceneInput, options: StaticMapCreateOptions): Promise<StaticMapHostedResult>;
|
|
144
|
+
declare function precacheStaticMap(scene: StaticSceneInput, options: StaticMapCreateOptions): Promise<StaticMapHostedResult>;
|
|
145
|
+
declare function requestStaticMapUntilReady(request: PreparedStaticMapRequest, options: StaticMapEndpointRequestOptions): Promise<StaticMapHostedResult>;
|
|
57
146
|
|
|
58
|
-
export { type PreparedStaticMapRequest, type StaticMapCreateOptions, type StaticMapEndpointRequestOptions, type StaticMapResult, createStaticMap, createStaticMapIdempotencyKey, precacheStaticMap, prepareStaticMapRequest, requestStaticMapUntilReady, stableStringify, staticMapProcessingResultSchema, staticMapReadyResultSchema, validateStaticMapIdempotencyKey };
|
|
147
|
+
export { type PreparedStaticMapRequest, STATIC_MAP_RESULT_V2_MEDIA_TYPE, type StaticMapAttributionEntry, type StaticMapAttributionResult, type StaticMapCreateOptions, type StaticMapEndpointRequestOptions, type StaticMapHostedResult, type StaticMapResult, createStaticMap, createStaticMapIdempotencyKey, precacheStaticMap, prepareStaticMapRequest, requestStaticMapUntilReady, stableStringify, staticMapAttributionEntrySchema, staticMapAttributionResultSchema, staticMapHostedResultSchema, staticMapProcessingResultSchema, staticMapReadyResultSchema, validateStaticMapIdempotencyKey };
|
package/dist/client.js
CHANGED
|
@@ -1,24 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
|
+
STATIC_MAP_RESULT_V2_MEDIA_TYPE,
|
|
2
3
|
createStaticMap,
|
|
3
4
|
createStaticMapIdempotencyKey,
|
|
4
5
|
precacheStaticMap,
|
|
5
6
|
prepareStaticMapRequest,
|
|
6
7
|
requestStaticMapUntilReady,
|
|
8
|
+
staticMapAttributionEntrySchema,
|
|
9
|
+
staticMapAttributionResultSchema,
|
|
10
|
+
staticMapHostedResultSchema,
|
|
7
11
|
staticMapProcessingResultSchema,
|
|
8
12
|
staticMapReadyResultSchema,
|
|
9
13
|
validateStaticMapIdempotencyKey
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-MSQ4OLKA.js";
|
|
15
|
+
import "./chunk-EMCKSFZV.js";
|
|
12
16
|
import {
|
|
13
17
|
stableStringify
|
|
14
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NM2JSFUF.js";
|
|
15
19
|
export {
|
|
20
|
+
STATIC_MAP_RESULT_V2_MEDIA_TYPE,
|
|
16
21
|
createStaticMap,
|
|
17
22
|
createStaticMapIdempotencyKey,
|
|
18
23
|
precacheStaticMap,
|
|
19
24
|
prepareStaticMapRequest,
|
|
20
25
|
requestStaticMapUntilReady,
|
|
21
26
|
stableStringify,
|
|
27
|
+
staticMapAttributionEntrySchema,
|
|
28
|
+
staticMapAttributionResultSchema,
|
|
29
|
+
staticMapHostedResultSchema,
|
|
22
30
|
staticMapProcessingResultSchema,
|
|
23
31
|
staticMapReadyResultSchema,
|
|
24
32
|
validateStaticMapIdempotencyKey
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { normalizeStaticScene, validateStaticScene } from './scene.js';
|
|
1
|
+
export { StaticAutoFitErrorResponse, StaticAutoFitFailure, StaticMapRequestError, StaticMapRequestErrorResponse, StaticMapRequestFailure, normalizeStaticScene, staticMapRequestErrorResponseSchema, validateStaticScene } from './scene.js';
|
|
2
2
|
export { circle, compileStaticOverlays, line, marker, polygon } from './overlays.js';
|
|
3
|
-
export { StaticRenderManifest, createRenderManifest, hashRenderManifest, hashStaticSceneRequest, staticRenderManifestSchema, staticRendererSchemaVersion, validateStaticRenderManifest } from './manifest.js';
|
|
4
|
-
export { PreparedStaticMapRequest, StaticMapCreateOptions, StaticMapEndpointRequestOptions, StaticMapResult, createStaticMap, createStaticMapIdempotencyKey, precacheStaticMap, prepareStaticMapRequest, requestStaticMapUntilReady, stableStringify, staticMapProcessingResultSchema, staticMapReadyResultSchema, validateStaticMapIdempotencyKey } from './client.js';
|
|
5
|
-
export { S as
|
|
3
|
+
export { StaticAttributionEntry, StaticAttributionPlanV1, StaticAttributionProvenance, StaticAttributionSegment, StaticRenderManifest, StaticRenderManifestV1, StaticRenderManifestV2, StaticResolvedAttributionPosition, createRenderManifest, createRenderManifestV1, createRenderManifestV2, hashRenderManifest, hashStaticSceneRequest, staticAttributionEntrySchema, staticAttributionLimits, staticAttributionPlanSchemaV1, staticAttributionPlanSchemaVersion, staticAttributionProvenanceSchema, staticAttributionSegmentSchema, staticRenderManifestSchema, staticRenderManifestV1Schema, staticRenderManifestV2Schema, staticRendererSchemaVersion, staticRendererSchemaVersionV1, validateStaticRenderManifest } from './manifest.js';
|
|
4
|
+
export { PreparedStaticMapRequest, STATIC_MAP_RESULT_V2_MEDIA_TYPE, StaticMapAttributionEntry, StaticMapAttributionResult, StaticMapCreateOptions, StaticMapEndpointRequestOptions, StaticMapHostedResult, StaticMapResult, createStaticMap, createStaticMapIdempotencyKey, precacheStaticMap, prepareStaticMapRequest, requestStaticMapUntilReady, stableStringify, staticMapAttributionEntrySchema, staticMapAttributionResultSchema, staticMapHostedResultSchema, staticMapProcessingResultSchema, staticMapReadyResultSchema, validateStaticMapIdempotencyKey } from './client.js';
|
|
5
|
+
export { M as MAX_OVERLAY_LATITUDE, S as StaticAttributionMode, a as StaticAttributionPosition, b as StaticAttributionRequest, c as StaticCoordinate, d as StaticMapFormat, e as StaticOverlay, f as StaticOverlayInput, g as StaticPadding, h as StaticScene, i as StaticSceneInput, s as staticAttributionPositionSchema, j as staticAttributionRequestSchema, k as staticOverlaySchema, l as staticSceneLimits, m as staticSceneSchema, n as staticSceneSchemaVersion } from './scene-contract-OMIOisSB.js';
|
|
6
6
|
import 'zod';
|
package/dist/index.js
CHANGED
|
@@ -1,43 +1,68 @@
|
|
|
1
1
|
import {
|
|
2
|
+
STATIC_MAP_RESULT_V2_MEDIA_TYPE,
|
|
2
3
|
createStaticMap,
|
|
3
4
|
createStaticMapIdempotencyKey,
|
|
4
5
|
precacheStaticMap,
|
|
5
6
|
prepareStaticMapRequest,
|
|
6
7
|
requestStaticMapUntilReady,
|
|
8
|
+
staticMapAttributionEntrySchema,
|
|
9
|
+
staticMapAttributionResultSchema,
|
|
10
|
+
staticMapHostedResultSchema,
|
|
7
11
|
staticMapProcessingResultSchema,
|
|
8
12
|
staticMapReadyResultSchema,
|
|
9
13
|
validateStaticMapIdempotencyKey
|
|
10
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MSQ4OLKA.js";
|
|
11
15
|
import {
|
|
12
16
|
createRenderManifest,
|
|
17
|
+
createRenderManifestV1,
|
|
18
|
+
createRenderManifestV2,
|
|
13
19
|
hashRenderManifest,
|
|
14
20
|
hashStaticSceneRequest,
|
|
21
|
+
staticAttributionEntrySchema,
|
|
22
|
+
staticAttributionLimits,
|
|
23
|
+
staticAttributionPlanSchemaV1,
|
|
24
|
+
staticAttributionPlanSchemaVersion,
|
|
25
|
+
staticAttributionProvenanceSchema,
|
|
26
|
+
staticAttributionSegmentSchema,
|
|
15
27
|
staticRenderManifestSchema,
|
|
28
|
+
staticRenderManifestV1Schema,
|
|
29
|
+
staticRenderManifestV2Schema,
|
|
16
30
|
staticRendererSchemaVersion,
|
|
31
|
+
staticRendererSchemaVersionV1,
|
|
17
32
|
validateStaticRenderManifest
|
|
18
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-TQMKOTBE.js";
|
|
19
34
|
import {
|
|
20
35
|
circle,
|
|
21
36
|
compileStaticOverlays,
|
|
22
37
|
line,
|
|
23
38
|
marker,
|
|
24
39
|
polygon
|
|
25
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-EPOYQNNT.js";
|
|
26
41
|
import {
|
|
42
|
+
StaticMapRequestError,
|
|
27
43
|
normalizeStaticScene,
|
|
44
|
+
staticMapRequestErrorResponseSchema,
|
|
28
45
|
validateStaticScene
|
|
29
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-EMCKSFZV.js";
|
|
30
47
|
import {
|
|
48
|
+
MAX_OVERLAY_LATITUDE,
|
|
31
49
|
stableStringify,
|
|
50
|
+
staticAttributionPositionSchema,
|
|
51
|
+
staticAttributionRequestSchema,
|
|
32
52
|
staticOverlaySchema,
|
|
33
53
|
staticSceneLimits,
|
|
34
54
|
staticSceneSchema,
|
|
35
55
|
staticSceneSchemaVersion
|
|
36
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-NM2JSFUF.js";
|
|
37
57
|
export {
|
|
58
|
+
MAX_OVERLAY_LATITUDE,
|
|
59
|
+
STATIC_MAP_RESULT_V2_MEDIA_TYPE,
|
|
60
|
+
StaticMapRequestError,
|
|
38
61
|
circle,
|
|
39
62
|
compileStaticOverlays,
|
|
40
63
|
createRenderManifest,
|
|
64
|
+
createRenderManifestV1,
|
|
65
|
+
createRenderManifestV2,
|
|
41
66
|
createStaticMap,
|
|
42
67
|
createStaticMapIdempotencyKey,
|
|
43
68
|
hashRenderManifest,
|
|
@@ -50,11 +75,26 @@ export {
|
|
|
50
75
|
prepareStaticMapRequest,
|
|
51
76
|
requestStaticMapUntilReady,
|
|
52
77
|
stableStringify,
|
|
78
|
+
staticAttributionEntrySchema,
|
|
79
|
+
staticAttributionLimits,
|
|
80
|
+
staticAttributionPlanSchemaV1,
|
|
81
|
+
staticAttributionPlanSchemaVersion,
|
|
82
|
+
staticAttributionPositionSchema,
|
|
83
|
+
staticAttributionProvenanceSchema,
|
|
84
|
+
staticAttributionRequestSchema,
|
|
85
|
+
staticAttributionSegmentSchema,
|
|
86
|
+
staticMapAttributionEntrySchema,
|
|
87
|
+
staticMapAttributionResultSchema,
|
|
88
|
+
staticMapHostedResultSchema,
|
|
53
89
|
staticMapProcessingResultSchema,
|
|
54
90
|
staticMapReadyResultSchema,
|
|
91
|
+
staticMapRequestErrorResponseSchema,
|
|
55
92
|
staticOverlaySchema,
|
|
56
93
|
staticRenderManifestSchema,
|
|
94
|
+
staticRenderManifestV1Schema,
|
|
95
|
+
staticRenderManifestV2Schema,
|
|
57
96
|
staticRendererSchemaVersion,
|
|
97
|
+
staticRendererSchemaVersionV1,
|
|
58
98
|
staticSceneLimits,
|
|
59
99
|
staticSceneSchema,
|
|
60
100
|
staticSceneSchemaVersion,
|