@osdk/internal.foundry.geo 0.0.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.
package/README.md ADDED
@@ -0,0 +1,8 @@
1
+ # WARNING
2
+
3
+ This is an internal only package.
4
+
5
+ We may regularly break changes in this package for our own internal uses. If you use anything from this
6
+ package you do so at your own risk.
7
+
8
+ (Also, this is a generated file. Do not change directly.)
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,195 @@
1
+ export type LooselyBrandedString<T extends string> = string & {
2
+ __LOOSE_BRAND?: T;
3
+ };
4
+ /**
5
+ * Log Safety: UNSAFE
6
+ */
7
+ export interface MultiPolygon {
8
+ coordinates: Array<Array<LinearRing>>;
9
+ bbox?: BBox;
10
+ }
11
+ /**
12
+ * A linear ring is a closed LineString with four or more positions.
13
+ The first and last positions are equivalent, and they MUST contain
14
+ identical values; their representation SHOULD also be identical.
15
+ A linear ring is the boundary of a surface or the boundary of a hole in
16
+ a surface.
17
+ A linear ring MUST follow the right-hand rule with respect to the area
18
+ it bounds, i.e., exterior rings are counterclockwise, and holes are
19
+ clockwise.
20
+ *
21
+ * Log Safety: UNSAFE
22
+ */
23
+ export type LinearRing = Array<Position>;
24
+ /**
25
+ * GeoJSon geometry collection
26
+ GeometryCollections composed of a single part or a number of parts of a
27
+ single type SHOULD be avoided when that single part or a single object
28
+ of multipart type (MultiPoint, MultiLineString, or MultiPolygon) could
29
+ be used instead.
30
+ *
31
+ * Log Safety: UNSAFE
32
+ */
33
+ export interface GeometryCollection {
34
+ geometries: Array<Geometry>;
35
+ bbox?: BBox;
36
+ }
37
+ /**
38
+ * Log Safety: UNSAFE
39
+ */
40
+ export interface GeoPoint {
41
+ coordinates: Position;
42
+ bbox?: BBox;
43
+ }
44
+ /**
45
+ * Log Safety: UNSAFE
46
+ */
47
+ export type FeatureCollectionTypes = {
48
+ type: "Feature";
49
+ } & Feature;
50
+ /**
51
+ * GeoJSon object
52
+ The coordinate reference system for all GeoJSON coordinates is a
53
+ geographic coordinate reference system, using the World Geodetic System
54
+ 1984 (WGS 84) datum, with longitude and latitude units of decimal
55
+ degrees.
56
+ This is equivalent to the coordinate reference system identified by the
57
+ Open Geospatial Consortium (OGC) URN
58
+ An OPTIONAL third-position element SHALL be the height in meters above
59
+ or below the WGS 84 reference ellipsoid.
60
+ In the absence of elevation values, applications sensitive to height or
61
+ depth SHOULD interpret positions as being at local ground or sea level.
62
+ *
63
+ * Log Safety: UNSAFE
64
+ */
65
+ export type GeoJsonObject = ({
66
+ type: "MultiPoint";
67
+ } & MultiPoint) | ({
68
+ type: "GeometryCollection";
69
+ } & GeometryCollection) | ({
70
+ type: "MultiLineString";
71
+ } & MultiLineString) | ({
72
+ type: "FeatureCollection";
73
+ } & FeatureCollection) | ({
74
+ type: "LineString";
75
+ } & LineString) | ({
76
+ type: "MultiPolygon";
77
+ } & MultiPolygon) | ({
78
+ type: "Point";
79
+ } & GeoPoint) | ({
80
+ type: "Polygon";
81
+ } & Polygon) | ({
82
+ type: "Feature";
83
+ } & Feature);
84
+ /**
85
+ * GeoJSon fundamental geometry construct.
86
+ A position is an array of numbers. There MUST be two or more elements.
87
+ The first two elements are longitude and latitude, precisely in that order and using decimal numbers.
88
+ Altitude or elevation MAY be included as an optional third element.
89
+ Implementations SHOULD NOT extend positions beyond three elements
90
+ because the semantics of extra elements are unspecified and ambiguous.
91
+ Historically, some implementations have used a fourth element to carry
92
+ a linear referencing measure (sometimes denoted as "M") or a numerical
93
+ timestamp, but in most situations a parser will not be able to properly
94
+ interpret these values. The interpretation and meaning of additional
95
+ elements is beyond the scope of this specification, and additional
96
+ elements MAY be ignored by parsers.
97
+ *
98
+ * Log Safety: UNSAFE
99
+ */
100
+ export type Position = Array<Coordinate>;
101
+ /**
102
+ * Abstract type for all GeoJSon object except Feature and FeatureCollection
103
+ *
104
+ * Log Safety: UNSAFE
105
+ */
106
+ export type Geometry = ({
107
+ type: "MultiPoint";
108
+ } & MultiPoint) | ({
109
+ type: "GeometryCollection";
110
+ } & GeometryCollection) | ({
111
+ type: "MultiLineString";
112
+ } & MultiLineString) | ({
113
+ type: "LineString";
114
+ } & LineString) | ({
115
+ type: "MultiPolygon";
116
+ } & MultiPolygon) | ({
117
+ type: "Point";
118
+ } & GeoPoint) | ({
119
+ type: "Polygon";
120
+ } & Polygon);
121
+ /**
122
+ * Log Safety: UNSAFE
123
+ */
124
+ export interface MultiLineString {
125
+ coordinates: Array<LineStringCoordinates>;
126
+ bbox?: BBox;
127
+ }
128
+ /**
129
+ * GeoJSon 'Feature' object
130
+ *
131
+ * Log Safety: UNSAFE
132
+ */
133
+ export interface Feature {
134
+ geometry?: Geometry;
135
+ properties: Record<FeaturePropertyKey, any>;
136
+ id?: any;
137
+ bbox?: BBox;
138
+ }
139
+ /**
140
+ * A GeoJSON object MAY have a member named "bbox" to include
141
+ information on the coordinate range for its Geometries, Features, or
142
+ FeatureCollections. The value of the bbox member MUST be an array of
143
+ length 2*n where n is the number of dimensions represented in the
144
+ contained geometries, with all axes of the most southwesterly point
145
+ followed by all axes of the more northeasterly point. The axes order
146
+ of a bbox follows the axes order of geometries.
147
+ *
148
+ * Log Safety: UNSAFE
149
+ */
150
+ export type BBox = Array<Coordinate>;
151
+ /**
152
+ * Log Safety: UNSAFE
153
+ */
154
+ export interface Polygon {
155
+ coordinates: Array<LinearRing>;
156
+ bbox?: BBox;
157
+ }
158
+ /**
159
+ * Log Safety: UNSAFE
160
+ */
161
+ export interface LineString {
162
+ coordinates?: LineStringCoordinates;
163
+ bbox?: BBox;
164
+ }
165
+ /**
166
+ * Log Safety: UNSAFE
167
+ */
168
+ export type FeaturePropertyKey = LooselyBrandedString<"FeaturePropertyKey">;
169
+ /**
170
+ * Log Safety: UNSAFE
171
+ */
172
+ export type Coordinate = number;
173
+ /**
174
+ * GeoJSon fundamental geometry construct, array of two or more positions.
175
+ *
176
+ * Log Safety: UNSAFE
177
+ */
178
+ export type LineStringCoordinates = Array<Position>;
179
+ /**
180
+ * Log Safety: UNSAFE
181
+ */
182
+ export interface MultiPoint {
183
+ coordinates: Array<Position>;
184
+ bbox?: BBox;
185
+ }
186
+ /**
187
+ * GeoJSon 'FeatureCollection' object
188
+ *
189
+ * Log Safety: UNSAFE
190
+ */
191
+ export interface FeatureCollection {
192
+ features: Array<FeatureCollectionTypes>;
193
+ bbox?: BBox;
194
+ }
195
+ //# sourceMappingURL=_components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;IACtC,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED;;;;;;;;;;;KAWK;AACL,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;AAEzC;;;;;;;;KAQK;AACL,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,WAAW,EAAE,QAAQ,CAAC;IACtB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GAAG,OAAO,CAAC;AAEnE;;;;;;;;;;;;;;KAcK;AACL,MAAM,MAAM,aAAa,GACrB,CAAC;IAAE,IAAI,EAAE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,0 +1 @@
1
+ {"version":3,"file":"_errors.d.ts","sourceRoot":"","sources":["../../src/_errors.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export type { BBox, Coordinate, Feature, FeatureCollection, FeatureCollectionTypes, FeaturePropertyKey, GeoJsonObject, Geometry, GeometryCollection, GeoPoint, LinearRing, LineString, LineStringCoordinates, MultiLineString, MultiPoint, MultiPolygon, Polygon, Position, } from "./_components.js";
2
+ export type {} from "./_errors.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,IAAI,EACJ,UAAU,EACV,OAAO,EACP,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,QAAQ,EACR,UAAU,EACV,UAAU,EACV,qBAAqB,EACrB,eAAe,EACf,UAAU,EACV,YAAY,EACZ,OAAO,EACP,QAAQ,GACT,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@osdk/internal.foundry.geo",
3
+ "version": "0.0.0",
4
+ "license": "Apache-2.0",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/palantir/osdk-ts.git"
8
+ },
9
+ "exports": {
10
+ ".": {
11
+ "browser": "./build/browser/index.js",
12
+ "import": "./build/esm/index.js"
13
+ },
14
+ "./*": {
15
+ "browser": "./build/browser/public/*.js",
16
+ "import": "./build/esm/public/*.js"
17
+ }
18
+ },
19
+ "dependencies": {
20
+ "@osdk/shared.client": "~0.0.0",
21
+ "@osdk/shared.net.platformapi": "~0.2.0"
22
+ },
23
+ "devDependencies": {
24
+ "typescript": "^5.5.4",
25
+ "@osdk/monorepo.api-extractor": "~0.0.0",
26
+ "@osdk/monorepo.tsup": "~0.0.0",
27
+ "@osdk/monorepo.tsconfig": "~0.0.0"
28
+ },
29
+ "publishConfig": {
30
+ "access": "public"
31
+ },
32
+ "files": [
33
+ "build/cjs",
34
+ "build/esm",
35
+ "build/browser",
36
+ "CHANGELOG.md",
37
+ "package.json",
38
+ "templates",
39
+ "*.d.ts"
40
+ ],
41
+ "module": "./build/esm/index.js",
42
+ "types": "./build/esm/index.d.ts",
43
+ "sls": {
44
+ "dependencies": {
45
+ "com.palantir.foundry.api:api-gateway": {
46
+ "minVersion": "1.927.0",
47
+ "maxVersion": "1.x.x",
48
+ "optional": true
49
+ }
50
+ }
51
+ },
52
+ "type": "module",
53
+ "scripts": {
54
+ "check-attw": "monorepo.tool.attw esm",
55
+ "check-spelling": "cspell --quiet .",
56
+ "clean": "rm -rf lib dist types build tsconfig.tsbuildinfo",
57
+ "fix-lint": "eslint . --fix && dprint fmt --config $(find-up dprint.json)",
58
+ "lint": "eslint . && dprint check --config $(find-up dprint.json)",
59
+ "transpile": "monorepo.tool.transpile",
60
+ "typecheck": "monorepo.tool.typecheck esm"
61
+ }
62
+ }