@settlemint/dalp-cli 2.1.7-main.25386260189 → 2.1.7-main.25386311161

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.
Files changed (2) hide show
  1. package/dist/dalp.js +38 -3
  2. package/package.json +1 -1
package/dist/dalp.js CHANGED
@@ -62268,6 +62268,10 @@ var AssetFactoryTypeIdSetSchema = exports_external.set(AssetFactoryTypeIdSchema)
62268
62268
  description: "Set of unique asset factory typeIds",
62269
62269
  examples: [["bond", "equity"]]
62270
62270
  });
62271
+ var ASSET_TYPES_WITH_CATEGORIES = new Set(["equity", "fund", "real-estate"]);
62272
+ function hasCategoriesForType(type2) {
62273
+ return type2 !== undefined && ASSET_TYPES_WITH_CATEGORIES.has(type2);
62274
+ }
62271
62275
  var DEPLOYABLE_TYPE_SET = new Set(assetTypes);
62272
62276
  var claimValue = exports_external.object({
62273
62277
  key: exports_external.string().meta({
@@ -66249,7 +66253,37 @@ var ClaimDataSchema = exports_external.discriminatedUnion("topic", [
66249
66253
  topic: exports_external.literal("assetClassification"),
66250
66254
  data: exports_external.object({
66251
66255
  type: assetType().meta({ description: "Asset type", examples: ["equity", "bond", "fund"] }),
66252
- category: exports_external.union([equityCategory(), fundCategory(), realEstatePropertyUse()]).meta({ description: "Asset category", examples: ["common_stock", "open_end", "residential"] })
66256
+ category: exports_external.union([equityCategory(), fundCategory(), realEstatePropertyUse()]).optional().meta({
66257
+ description: "Asset category. Required for equity, fund, and real-estate; omitted for other types.",
66258
+ examples: ["COMMON_EQUITY", "OPEN_END", "RESIDENTIAL"]
66259
+ })
66260
+ }).superRefine((value22, ctx) => {
66261
+ if (!hasCategoriesForType(value22.type)) {
66262
+ return;
66263
+ }
66264
+ if (value22.category === undefined) {
66265
+ ctx.addIssue({
66266
+ code: "custom",
66267
+ path: ["category"],
66268
+ message: `Asset category is required for instrument type "${value22.type}".`
66269
+ });
66270
+ return;
66271
+ }
66272
+ let expected;
66273
+ if (value22.type === "equity") {
66274
+ expected = equityCategory();
66275
+ } else if (value22.type === "fund") {
66276
+ expected = fundCategory();
66277
+ } else {
66278
+ expected = realEstatePropertyUse();
66279
+ }
66280
+ if (!expected.safeParse(value22.category).success) {
66281
+ ctx.addIssue({
66282
+ code: "custom",
66283
+ path: ["category"],
66284
+ message: `Category "${value22.category}" is not a valid ${value22.type} category.`
66285
+ });
66286
+ }
66253
66287
  })
66254
66288
  }),
66255
66289
  exports_external.object({
@@ -77959,7 +77993,7 @@ function normalizeDalpBaseUrl(url3) {
77959
77993
  }
77960
77994
  var package_default = {
77961
77995
  name: "@settlemint/dalp-sdk",
77962
- version: "2.1.7-main.25386260189",
77996
+ version: "2.1.7-main.25386311161",
77963
77997
  private: false,
77964
77998
  description: "Fully typed SDK for the DALP tokenization platform API",
77965
77999
  homepage: "https://settlemint.com",
@@ -78510,7 +78544,7 @@ function trimConfigValue(name, value3) {
78510
78544
  // package.json
78511
78545
  var package_default2 = {
78512
78546
  name: "@settlemint/dalp-cli",
78513
- version: "2.1.7-main.25386260189",
78547
+ version: "2.1.7-main.25386311161",
78514
78548
  private: false,
78515
78549
  description: "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
78516
78550
  homepage: "https://settlemint.com",
@@ -78806,6 +78840,7 @@ var AssetFactoryTypeIdSetSchema2 = exports_external.set(AssetFactoryTypeIdSchema
78806
78840
  description: "Set of unique asset factory typeIds",
78807
78841
  examples: [["bond", "equity"]]
78808
78842
  });
78843
+ var ASSET_TYPES_WITH_CATEGORIES2 = new Set(["equity", "fund", "real-estate"]);
78809
78844
  var DEPLOYABLE_TYPE_SET2 = new Set(assetTypes2);
78810
78845
 
78811
78846
  // src/commands/asset-type-templates.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-cli",
3
- "version": "2.1.7-main.25386260189",
3
+ "version": "2.1.7-main.25386311161",
4
4
  "private": false,
5
5
  "description": "CLI for the Digital Asset Lifecycle Platform — manage tokens, identities, compliance, and more from the command line.",
6
6
  "homepage": "https://settlemint.com",