@hypercerts-org/sdk-core 0.7.0-beta.0 → 0.9.0-beta.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 +125 -8
- package/dist/index.cjs +40 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +13 -8
- package/dist/index.mjs +40 -12
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +13 -8
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -1332,13 +1332,13 @@ interface CreateHypercertParams {
|
|
|
1332
1332
|
*
|
|
1333
1333
|
* ISO 8601 date format (YYYY-MM-DD).
|
|
1334
1334
|
*/
|
|
1335
|
-
|
|
1335
|
+
workTimeFrameFrom: string;
|
|
1336
1336
|
/**
|
|
1337
1337
|
* End date of the work period.
|
|
1338
1338
|
*
|
|
1339
1339
|
* ISO 8601 date format (YYYY-MM-DD).
|
|
1340
1340
|
*/
|
|
1341
|
-
|
|
1341
|
+
workTimeFrameTo: string;
|
|
1342
1342
|
/**
|
|
1343
1343
|
* Rights associated with the hypercert.
|
|
1344
1344
|
*/
|
|
@@ -1363,11 +1363,11 @@ interface CreateHypercertParams {
|
|
|
1363
1363
|
description: string;
|
|
1364
1364
|
};
|
|
1365
1365
|
/**
|
|
1366
|
-
*
|
|
1366
|
+
* Short description for display in lists/cards.
|
|
1367
1367
|
*
|
|
1368
|
-
* Should be under
|
|
1368
|
+
* Required field. Should be under 300 characters.
|
|
1369
1369
|
*/
|
|
1370
|
-
shortDescription
|
|
1370
|
+
shortDescription: string;
|
|
1371
1371
|
/**
|
|
1372
1372
|
* Optional cover image for the hypercert.
|
|
1373
1373
|
*
|
|
@@ -1395,11 +1395,11 @@ interface CreateHypercertParams {
|
|
|
1395
1395
|
*/
|
|
1396
1396
|
description?: string;
|
|
1397
1397
|
/**
|
|
1398
|
-
* Spatial Reference System identifier.
|
|
1398
|
+
* Spatial Reference System identifier (required if location is provided).
|
|
1399
1399
|
*
|
|
1400
1400
|
* @example "EPSG:4326" for WGS84
|
|
1401
1401
|
*/
|
|
1402
|
-
srs
|
|
1402
|
+
srs: string;
|
|
1403
1403
|
/**
|
|
1404
1404
|
* GeoJSON file as a Blob for precise boundaries.
|
|
1405
1405
|
*/
|
|
@@ -1876,13 +1876,18 @@ interface HypercertOperations extends EventEmitter<HypercertEvents> {
|
|
|
1876
1876
|
*
|
|
1877
1877
|
* @param uri - AT-URI of the hypercert
|
|
1878
1878
|
* @param location - Location data
|
|
1879
|
+
* @param location.value - Location value (address, coordinates, or description)
|
|
1880
|
+
* @param location.srs - Spatial Reference System (required). Use 'EPSG:4326' for WGS84 lat/lon coordinates.
|
|
1881
|
+
* @param location.name - Optional human-readable location name
|
|
1882
|
+
* @param location.description - Optional description of the location
|
|
1883
|
+
* @param location.geojson - Optional GeoJSON blob for precise boundaries
|
|
1879
1884
|
* @returns Promise resolving to location record result
|
|
1880
1885
|
*/
|
|
1881
1886
|
attachLocation(uri: string, location: {
|
|
1882
1887
|
value: string;
|
|
1883
1888
|
name?: string;
|
|
1884
1889
|
description?: string;
|
|
1885
|
-
srs
|
|
1890
|
+
srs: string;
|
|
1886
1891
|
geojson?: Blob;
|
|
1887
1892
|
}): Promise<CreateResult>;
|
|
1888
1893
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hypercerts-org/sdk-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0-beta.0",
|
|
4
4
|
"description": "Framework-agnostic ATProto SDK core for authentication, repository operations, and lexicon management",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"repository": {
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@atproto/oauth-client-node": "^0.3.12",
|
|
80
80
|
"eventemitter3": "^5.0.1",
|
|
81
81
|
"zod": "^3.24.4",
|
|
82
|
-
"@hypercerts-org/lexicon": "0.
|
|
82
|
+
"@hypercerts-org/lexicon": "0.9.0-beta.0"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|
|
85
85
|
"test": "vitest",
|