@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/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
- workTimeframeFrom: string;
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
- workTimeframeTo: string;
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
- * Optional short description for display in lists/cards.
1213
+ * Short description for display in lists/cards.
1214
1214
  *
1215
- * Should be under 200 characters.
1215
+ * Required field. Should be under 300 characters.
1216
1216
  */
1217
- shortDescription?: string;
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
- workTimeframeFrom: params.workTimeframeFrom,
2306
- workTimeframeTo: params.workTimeframeTo,
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
  }