@hypercerts-org/sdk-core 0.8.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 +3 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +3 -5
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +5 -5
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1179,13 +1179,13 @@ interface CreateHypercertParams {
|
|
|
1179
1179
|
*
|
|
1180
1180
|
* ISO 8601 date format (YYYY-MM-DD).
|
|
1181
1181
|
*/
|
|
1182
|
-
|
|
1182
|
+
workTimeFrameFrom: string;
|
|
1183
1183
|
/**
|
|
1184
1184
|
* End date of the work period.
|
|
1185
1185
|
*
|
|
1186
1186
|
* ISO 8601 date format (YYYY-MM-DD).
|
|
1187
1187
|
*/
|
|
1188
|
-
|
|
1188
|
+
workTimeFrameTo: string;
|
|
1189
1189
|
/**
|
|
1190
1190
|
* Rights associated with the hypercert.
|
|
1191
1191
|
*/
|
|
@@ -1210,11 +1210,11 @@ interface CreateHypercertParams {
|
|
|
1210
1210
|
description: string;
|
|
1211
1211
|
};
|
|
1212
1212
|
/**
|
|
1213
|
-
*
|
|
1213
|
+
* Short description for display in lists/cards.
|
|
1214
1214
|
*
|
|
1215
|
-
* Should be under
|
|
1215
|
+
* Required field. Should be under 300 characters.
|
|
1216
1216
|
*/
|
|
1217
|
-
shortDescription
|
|
1217
|
+
shortDescription: string;
|
|
1218
1218
|
/**
|
|
1219
1219
|
* Optional cover image for the hypercert.
|
|
1220
1220
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -2300,16 +2300,14 @@ class HypercertOperationsImpl extends EventEmitter {
|
|
|
2300
2300
|
const hypercertRecord = {
|
|
2301
2301
|
$type: HYPERCERT_COLLECTIONS.CLAIM,
|
|
2302
2302
|
title: params.title,
|
|
2303
|
+
shortDescription: params.shortDescription,
|
|
2303
2304
|
description: params.description,
|
|
2304
2305
|
workScope: params.workScope,
|
|
2305
|
-
|
|
2306
|
-
|
|
2306
|
+
workTimeFrameFrom: params.workTimeFrameFrom,
|
|
2307
|
+
workTimeFrameTo: params.workTimeFrameTo,
|
|
2307
2308
|
rights: { uri: result.rightsUri, cid: result.rightsCid },
|
|
2308
2309
|
createdAt,
|
|
2309
2310
|
};
|
|
2310
|
-
if (params.shortDescription) {
|
|
2311
|
-
hypercertRecord.shortDescription = params.shortDescription;
|
|
2312
|
-
}
|
|
2313
2311
|
if (imageBlobRef) {
|
|
2314
2312
|
hypercertRecord.image = imageBlobRef;
|
|
2315
2313
|
}
|