@hypercerts-org/sdk-core 0.10.0-beta.1 → 0.10.0-beta.3

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/CHANGELOG.md CHANGED
@@ -1,6 +1,23 @@
1
1
  # @hypercerts-org/sdk-core
2
2
 
3
- ## 1.0.0-beta.0
3
+ ## 0.10.0-beta.3
4
+
5
+ ### Minor Changes
6
+
7
+ - [#72](https://github.com/hypercerts-org/hypercerts-sdk/pull/72)
8
+ [`31dc76a`](https://github.com/hypercerts-org/hypercerts-sdk/commit/31dc76ae819f4c53e1a411a7fc6c0a6239552a66) Thanks
9
+ [@Kzoeps](https://github.com/Kzoeps)! - Fixed params for creation to mirror the lexicon types. Remove extra `#` to
10
+ remove duplicate # created during validation which fails the validation.
11
+
12
+ ## 0.10.0-beta.2
13
+
14
+ ### Patch Changes
15
+
16
+ - [#71](https://github.com/hypercerts-org/hypercerts-sdk/pull/71)
17
+ [`10bc42d`](https://github.com/hypercerts-org/hypercerts-sdk/commit/10bc42de46f1a391f47de9d0af486f00b6edde08) Thanks
18
+ [@aspiers](https://github.com/aspiers)! - Fix errant versions in CHANGELOG.md files
19
+
20
+ ## 0.10.0-beta.1
4
21
 
5
22
  ### Major Changes
6
23
 
package/dist/index.cjs CHANGED
@@ -3153,8 +3153,8 @@ class HypercertOperationsImpl extends eventemitter3.EventEmitter {
3153
3153
  shortDescription: params.shortDescription,
3154
3154
  description: params.description,
3155
3155
  workScope: params.workScope,
3156
- workTimeFrameFrom: params.workTimeFrameFrom,
3157
- workTimeFrameTo: params.workTimeFrameTo,
3156
+ startDate: params.startDate,
3157
+ endDate: params.endDate,
3158
3158
  rights: { uri: rightsUri, cid: rightsCid },
3159
3159
  createdAt,
3160
3160
  };
@@ -3164,7 +3164,7 @@ class HypercertOperationsImpl extends eventemitter3.EventEmitter {
3164
3164
  if (params.evidence && params.evidence.length > 0) {
3165
3165
  hypercertRecord.evidence = params.evidence;
3166
3166
  }
3167
- const hypercertValidation = lexicon.validate(hypercertRecord, HYPERCERT_COLLECTIONS.CLAIM, "#main", false);
3167
+ const hypercertValidation = lexicon.validate(hypercertRecord, HYPERCERT_COLLECTIONS.CLAIM, "main", false);
3168
3168
  if (!hypercertValidation.success) {
3169
3169
  throw new ValidationError(`Invalid hypercert record: ${hypercertValidation.error?.message}`);
3170
3170
  }
@@ -3670,7 +3670,7 @@ class HypercertOperationsImpl extends eventemitter3.EventEmitter {
3670
3670
  else {
3671
3671
  // Use value as a URI reference
3672
3672
  locationData = {
3673
- $type: "app.certified.defs#uri",
3673
+ $type: "org.hypercerts.defs#uri",
3674
3674
  uri: location.value,
3675
3675
  };
3676
3676
  locationType = "coordinate-decimal";
@@ -4031,7 +4031,7 @@ class HypercertOperationsImpl extends eventemitter3.EventEmitter {
4031
4031
  throw new NetworkError("Failed to get collection");
4032
4032
  }
4033
4033
  // Validate with lexicon registry (more lenient - doesn't require $type)
4034
- const validation = lexicon.validate(result.data.value, HYPERCERT_COLLECTIONS.COLLECTION, "#main", false);
4034
+ const validation = lexicon.validate(result.data.value, HYPERCERT_COLLECTIONS.COLLECTION, "main", false);
4035
4035
  if (!validation.success) {
4036
4036
  throw new ValidationError(`Invalid collection record format: ${validation.error?.message}`);
4037
4037
  }