@nyrra/maker 0.0.4-next.49 → 0.0.4-next.50

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 CHANGED
@@ -11,18 +11,19 @@ npm install @nyrra/maker
11
11
  ## Usage
12
12
 
13
13
  ```ts
14
- import { defineObject, defineProperty } from "@nyrra/maker";
14
+ import { defineObject } from "@nyrra/maker";
15
15
 
16
16
  const ExampleObject = defineObject({
17
17
  apiName: "Example",
18
18
  description: "Example ontology object.",
19
- primaryKey: "exampleId",
19
+ titlePropertyApiName: "exampleCode",
20
20
  properties: {
21
- exampleId: defineProperty({
21
+ exampleCode: {
22
22
  type: "string",
23
- description: "Stable business identifier.",
24
- examples: ["example_001"],
25
- }),
23
+ displayName: "Example Code",
24
+ description: "Business code for the example record.",
25
+ exampleValues: ["EX-8K2741"],
26
+ },
26
27
  },
27
28
  });
28
29
  ```
@@ -80,7 +80,6 @@ export interface PrismantixObjectDefinition {
80
80
  readonly editsEnabled?: boolean;
81
81
  readonly entityType: "object";
82
82
  readonly pluralDisplayName: string;
83
- readonly primaryKeyPropertyApiName: string;
84
83
  readonly prismantix: PrismantixObjectMetadata;
85
84
  readonly properties: Readonly<Record<string, PrismantixObjectPropertyDefinition>>;
86
85
  readonly titlePropertyApiName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyrra/maker",
3
- "version": "0.0.4-next.49",
3
+ "version": "0.0.4-next.50",
4
4
  "description": "Ontology-as-code authoring DSL by NYRRA Inc., compatible with Palantir's OAC toolchain.",
5
5
  "license": "BUSL-1.1",
6
6
  "type": "module",