@osdk/maker 0.14.0-beta.1 → 0.14.0-beta.10
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 +83 -0
- package/README.md +86 -22
- package/build/browser/api/action/DefaultFormat.js +2 -0
- package/build/browser/api/action/DefaultFormat.js.map +1 -0
- package/build/browser/api/action/TableConfiguration.js +2 -0
- package/build/browser/api/action/TableConfiguration.js.map +1 -0
- package/build/browser/api/code-snippets/createCodeSnippets.js +91 -0
- package/build/browser/api/code-snippets/createCodeSnippets.js.map +1 -0
- package/build/browser/api/code-snippets/snippetTypes.js +60 -0
- package/build/browser/api/code-snippets/snippetTypes.js.map +1 -0
- package/build/browser/api/defineAction.js +131 -414
- package/build/browser/api/defineAction.js.map +1 -1
- package/build/browser/api/defineCreateInterfaceObjectAction.js +85 -0
- package/build/browser/api/defineCreateInterfaceObjectAction.js.map +1 -0
- package/build/browser/api/defineCreateObjectAction.js +80 -0
- package/build/browser/api/defineCreateObjectAction.js.map +1 -0
- package/build/browser/api/defineCreateOrModifyObjectAction.js +95 -0
- package/build/browser/api/defineCreateOrModifyObjectAction.js.map +1 -0
- package/build/browser/api/defineDeleteInterfaceObjectAction.js +53 -0
- package/build/browser/api/defineDeleteInterfaceObjectAction.js.map +1 -0
- package/build/browser/api/defineDeleteObjectAction.js +56 -0
- package/build/browser/api/defineDeleteObjectAction.js.map +1 -0
- package/build/browser/api/defineLink.js +5 -13
- package/build/browser/api/defineLink.js.map +1 -1
- package/build/browser/api/defineModifyInterfaceObjectAction.js +84 -0
- package/build/browser/api/defineModifyInterfaceObjectAction.js.map +1 -0
- package/build/browser/api/defineModifyObjectAction.js +93 -0
- package/build/browser/api/defineModifyObjectAction.js.map +1 -0
- package/build/browser/api/defineObject.js +94 -3
- package/build/browser/api/defineObject.js.map +1 -1
- package/build/browser/api/defineOntology.js +5 -1
- package/build/browser/api/defineOntology.js.map +1 -1
- package/build/browser/api/links/LinkType.js.map +1 -1
- package/build/browser/api/object/ObjectType.js.map +1 -1
- package/build/browser/api/object/ObjectTypeDatasourceDefinition.js.map +1 -1
- package/build/browser/api/object/ObjectTypeDefinition.js.map +1 -1
- package/build/browser/api/test/actions.test.js +12034 -0
- package/build/browser/api/test/actions.test.js.map +1 -0
- package/build/browser/api/test/interfaces.test.js +924 -0
- package/build/browser/api/test/interfaces.test.js.map +1 -0
- package/build/browser/api/test/links.test.js +1974 -0
- package/build/browser/api/test/links.test.js.map +1 -0
- package/build/browser/api/{markingconstraint.test.js → test/markingconstraint.test.js} +28 -2
- package/build/browser/api/test/markingconstraint.test.js.map +1 -0
- package/build/browser/api/test/misc.test.js +1058 -0
- package/build/browser/api/test/misc.test.js.map +1 -0
- package/build/browser/api/{objectStatus.test.js → test/objectStatus.test.js} +2 -2
- package/build/browser/api/test/objectStatus.test.js.map +1 -0
- package/build/browser/api/test/objects.test.js +2591 -0
- package/build/browser/api/test/objects.test.js.map +1 -0
- package/build/browser/api/test/spt.test.js +387 -0
- package/build/browser/api/test/spt.test.js.map +1 -0
- package/build/browser/api/test/valueTypes.test.js +156 -0
- package/build/browser/api/test/valueTypes.test.js.map +1 -0
- package/build/browser/cli/main.js +23 -4
- package/build/browser/cli/main.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertActionParameterConditionalOverride.js +2 -2
- package/build/browser/conversion/toMarketplace/convertActionParameterConditionalOverride.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertActionValidation.js +2 -16
- package/build/browser/conversion/toMarketplace/convertActionValidation.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertConditionDefinition.js +4 -4
- package/build/browser/conversion/toMarketplace/convertConditionDefinition.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js +3 -2
- package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertLink.js +109 -24
- package/build/browser/conversion/toMarketplace/convertLink.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertObject.js +81 -4
- package/build/browser/conversion/toMarketplace/convertObject.js.map +1 -1
- package/build/browser/conversion/toMarketplace/convertSectionConditionalOverride.js +2 -2
- package/build/browser/conversion/toMarketplace/convertSectionConditionalOverride.js.map +1 -1
- package/build/browser/index.js +8 -1
- package/build/browser/index.js.map +1 -1
- package/build/cjs/index.cjs +1711 -806
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +184 -115
- package/build/esm/api/action/DefaultFormat.js +2 -0
- package/build/esm/api/action/DefaultFormat.js.map +1 -0
- package/build/esm/api/action/TableConfiguration.js +2 -0
- package/build/esm/api/action/TableConfiguration.js.map +1 -0
- package/build/esm/api/code-snippets/createCodeSnippets.js +91 -0
- package/build/esm/api/code-snippets/createCodeSnippets.js.map +1 -0
- package/build/esm/api/code-snippets/snippetTypes.js +60 -0
- package/build/esm/api/code-snippets/snippetTypes.js.map +1 -0
- package/build/esm/api/defineAction.js +131 -414
- package/build/esm/api/defineAction.js.map +1 -1
- package/build/esm/api/defineCreateInterfaceObjectAction.js +85 -0
- package/build/esm/api/defineCreateInterfaceObjectAction.js.map +1 -0
- package/build/esm/api/defineCreateObjectAction.js +80 -0
- package/build/esm/api/defineCreateObjectAction.js.map +1 -0
- package/build/esm/api/defineCreateOrModifyObjectAction.js +95 -0
- package/build/esm/api/defineCreateOrModifyObjectAction.js.map +1 -0
- package/build/esm/api/defineDeleteInterfaceObjectAction.js +53 -0
- package/build/esm/api/defineDeleteInterfaceObjectAction.js.map +1 -0
- package/build/esm/api/defineDeleteObjectAction.js +56 -0
- package/build/esm/api/defineDeleteObjectAction.js.map +1 -0
- package/build/esm/api/defineLink.js +5 -13
- package/build/esm/api/defineLink.js.map +1 -1
- package/build/esm/api/defineModifyInterfaceObjectAction.js +84 -0
- package/build/esm/api/defineModifyInterfaceObjectAction.js.map +1 -0
- package/build/esm/api/defineModifyObjectAction.js +93 -0
- package/build/esm/api/defineModifyObjectAction.js.map +1 -0
- package/build/esm/api/defineObject.js +94 -3
- package/build/esm/api/defineObject.js.map +1 -1
- package/build/esm/api/defineOntology.js +5 -1
- package/build/esm/api/defineOntology.js.map +1 -1
- package/build/esm/api/links/LinkType.js.map +1 -1
- package/build/esm/api/object/ObjectType.js.map +1 -1
- package/build/esm/api/object/ObjectTypeDatasourceDefinition.js.map +1 -1
- package/build/esm/api/object/ObjectTypeDefinition.js.map +1 -1
- package/build/esm/api/test/actions.test.js +12034 -0
- package/build/esm/api/test/actions.test.js.map +1 -0
- package/build/esm/api/test/interfaces.test.js +924 -0
- package/build/esm/api/test/interfaces.test.js.map +1 -0
- package/build/esm/api/test/links.test.js +1974 -0
- package/build/esm/api/test/links.test.js.map +1 -0
- package/build/esm/api/{markingconstraint.test.js → test/markingconstraint.test.js} +28 -2
- package/build/esm/api/test/markingconstraint.test.js.map +1 -0
- package/build/esm/api/test/misc.test.js +1058 -0
- package/build/esm/api/test/misc.test.js.map +1 -0
- package/build/esm/api/{objectStatus.test.js → test/objectStatus.test.js} +2 -2
- package/build/esm/api/test/objectStatus.test.js.map +1 -0
- package/build/esm/api/test/objects.test.js +2591 -0
- package/build/esm/api/test/objects.test.js.map +1 -0
- package/build/esm/api/test/spt.test.js +387 -0
- package/build/esm/api/test/spt.test.js.map +1 -0
- package/build/esm/api/test/valueTypes.test.js +156 -0
- package/build/esm/api/test/valueTypes.test.js.map +1 -0
- package/build/esm/cli/main.js +23 -4
- package/build/esm/cli/main.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertActionParameterConditionalOverride.js +2 -2
- package/build/esm/conversion/toMarketplace/convertActionParameterConditionalOverride.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertActionValidation.js +2 -16
- package/build/esm/conversion/toMarketplace/convertActionValidation.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertConditionDefinition.js +4 -4
- package/build/esm/conversion/toMarketplace/convertConditionDefinition.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js +3 -2
- package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertLink.js +109 -24
- package/build/esm/conversion/toMarketplace/convertLink.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertObject.js +81 -4
- package/build/esm/conversion/toMarketplace/convertObject.js.map +1 -1
- package/build/esm/conversion/toMarketplace/convertSectionConditionalOverride.js +2 -2
- package/build/esm/conversion/toMarketplace/convertSectionConditionalOverride.js.map +1 -1
- package/build/esm/index.js +8 -1
- package/build/esm/index.js.map +1 -1
- package/build/types/api/action/DefaultFormat.d.ts +1 -0
- package/build/types/api/action/DefaultFormat.d.ts.map +1 -0
- package/build/types/api/action/TableConfiguration.d.ts +8 -0
- package/build/types/api/action/TableConfiguration.d.ts.map +1 -0
- package/build/types/api/code-snippets/createCodeSnippets.d.ts +2 -0
- package/build/types/api/code-snippets/createCodeSnippets.d.ts.map +1 -0
- package/build/types/api/code-snippets/snippetTypes.d.ts +23 -0
- package/build/types/api/code-snippets/snippetTypes.d.ts.map +1 -0
- package/build/types/api/defineAction.d.ts +34 -10
- package/build/types/api/defineAction.d.ts.map +1 -1
- package/build/types/api/defineCreateInterfaceObjectAction.d.ts +3 -0
- package/build/types/api/defineCreateInterfaceObjectAction.d.ts.map +1 -0
- package/build/types/api/defineCreateObjectAction.d.ts +3 -0
- package/build/types/api/defineCreateObjectAction.d.ts.map +1 -0
- package/build/types/api/defineCreateOrModifyObjectAction.d.ts +3 -0
- package/build/types/api/defineCreateOrModifyObjectAction.d.ts.map +1 -0
- package/build/types/api/defineDeleteInterfaceObjectAction.d.ts +3 -0
- package/build/types/api/defineDeleteInterfaceObjectAction.d.ts.map +1 -0
- package/build/types/api/defineDeleteObjectAction.d.ts +3 -0
- package/build/types/api/defineDeleteObjectAction.d.ts.map +1 -0
- package/build/types/api/defineLink.d.ts.map +1 -1
- package/build/types/api/defineModifyInterfaceObjectAction.d.ts +3 -0
- package/build/types/api/defineModifyInterfaceObjectAction.d.ts.map +1 -0
- package/build/types/api/defineModifyObjectAction.d.ts +3 -0
- package/build/types/api/defineModifyObjectAction.d.ts.map +1 -0
- package/build/types/api/defineObject.d.ts.map +1 -1
- package/build/types/api/defineOntology.d.ts +1 -1
- package/build/types/api/defineOntology.d.ts.map +1 -1
- package/build/types/api/links/LinkType.d.ts +7 -7
- package/build/types/api/object/ObjectType.d.ts +1 -1
- package/build/types/api/object/ObjectType.d.ts.map +1 -1
- package/build/types/api/object/ObjectTypeDatasourceDefinition.d.ts +41 -1
- package/build/types/api/object/ObjectTypeDatasourceDefinition.d.ts.map +1 -1
- package/build/types/api/object/ObjectTypeDefinition.d.ts +1 -1
- package/build/types/api/object/ObjectTypeDefinition.d.ts.map +1 -1
- package/build/types/api/test/actions.test.d.ts.map +1 -0
- package/build/types/api/test/interfaces.test.d.ts.map +1 -0
- package/build/types/api/test/links.test.d.ts.map +1 -0
- package/build/types/api/test/markingconstraint.test.d.ts +1 -0
- package/build/types/api/test/markingconstraint.test.d.ts.map +1 -0
- package/build/types/api/test/misc.test.d.ts +1 -0
- package/build/types/api/test/misc.test.d.ts.map +1 -0
- package/build/types/api/test/objectStatus.test.d.ts +1 -0
- package/build/types/api/test/objectStatus.test.d.ts.map +1 -0
- package/build/types/api/test/objects.test.d.ts +1 -0
- package/build/types/api/test/objects.test.d.ts.map +1 -0
- package/build/types/api/test/spt.test.d.ts +1 -0
- package/build/types/api/test/spt.test.d.ts.map +1 -0
- package/build/types/api/test/valueTypes.test.d.ts +1 -0
- package/build/types/api/test/valueTypes.test.d.ts.map +1 -0
- package/build/types/conversion/toMarketplace/convertActionParameterConditionalOverride.d.ts +2 -2
- package/build/types/conversion/toMarketplace/convertActionParameterConditionalOverride.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertActionValidation.d.ts +0 -1
- package/build/types/conversion/toMarketplace/convertActionValidation.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertConditionDefinition.d.ts +2 -1
- package/build/types/conversion/toMarketplace/convertConditionDefinition.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertLink.d.ts +6 -0
- package/build/types/conversion/toMarketplace/convertLink.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertObject.d.ts.map +1 -1
- package/build/types/conversion/toMarketplace/convertSectionConditionalOverride.d.ts +2 -1
- package/build/types/conversion/toMarketplace/convertSectionConditionalOverride.d.ts.map +1 -1
- package/build/types/index.d.ts +8 -1
- package/build/types/index.d.ts.map +1 -1
- package/package.json +4 -3
- package/build/browser/api/markingconstraint.test.js.map +0 -1
- package/build/browser/api/objectStatus.test.js.map +0 -1
- package/build/browser/api/overall.test.js +0 -14002
- package/build/browser/api/overall.test.js.map +0 -1
- package/build/esm/api/markingconstraint.test.js.map +0 -1
- package/build/esm/api/objectStatus.test.js.map +0 -1
- package/build/esm/api/overall.test.js +0 -14002
- package/build/esm/api/overall.test.js.map +0 -1
- package/build/types/api/markingconstraint.test.d.ts.map +0 -1
- package/build/types/api/objectStatus.test.d.ts.map +0 -1
- package/build/types/api/overall.test.d.ts.map +0 -1
- /package/build/types/api/{markingconstraint.test.d.ts → test/actions.test.d.ts} +0 -0
- /package/build/types/api/{objectStatus.test.d.ts → test/interfaces.test.d.ts} +0 -0
- /package/build/types/api/{overall.test.d.ts → test/links.test.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,88 @@
|
|
|
1
1
|
# @osdk/maker
|
|
2
2
|
|
|
3
|
+
## 0.14.0-beta.10
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 6532b54: Move osdk/typescript-sdk-docs from dev dependencies to normal dep
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [b959085]
|
|
12
|
+
- @osdk/api@2.6.0-beta.6
|
|
13
|
+
|
|
14
|
+
## 0.14.0-beta.9
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- 55e104e: Add code snippet generation into osdk/maker
|
|
19
|
+
- 949646b: Fix delete interface bug
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [2556c64]
|
|
24
|
+
- @osdk/api@2.6.0-beta.5
|
|
25
|
+
|
|
26
|
+
## 0.14.0-beta.8
|
|
27
|
+
|
|
28
|
+
### Minor Changes
|
|
29
|
+
|
|
30
|
+
- 296b34d: Add support for interface deletes
|
|
31
|
+
|
|
32
|
+
## 0.14.0-beta.7
|
|
33
|
+
|
|
34
|
+
### Minor Changes
|
|
35
|
+
|
|
36
|
+
- 7fd788b: Support derived properties
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- Updated dependencies [e7bf02a]
|
|
41
|
+
- @osdk/api@2.6.0-beta.4
|
|
42
|
+
|
|
43
|
+
## 0.14.0-beta.6
|
|
44
|
+
|
|
45
|
+
### Minor Changes
|
|
46
|
+
|
|
47
|
+
- 04bfbfc: Add default format and table config options to OAC interface actions
|
|
48
|
+
- 6ddabf4: Fix bug with action level validation on interface actions
|
|
49
|
+
|
|
50
|
+
## 0.14.0-beta.5
|
|
51
|
+
|
|
52
|
+
### Minor Changes
|
|
53
|
+
|
|
54
|
+
- a03ea8d: Sections, submission metadata, layout switching for OAC interface actions
|
|
55
|
+
|
|
56
|
+
### Patch Changes
|
|
57
|
+
|
|
58
|
+
- @osdk/api@2.6.0-beta.3
|
|
59
|
+
|
|
60
|
+
## 0.14.0-beta.4
|
|
61
|
+
|
|
62
|
+
### Minor Changes
|
|
63
|
+
|
|
64
|
+
- aca0e5d: Add parameter/property configuration for OAC interface actions
|
|
65
|
+
- 878c2eb: Add display name, api name, status customizations to OAC interface actions
|
|
66
|
+
|
|
67
|
+
### Patch Changes
|
|
68
|
+
|
|
69
|
+
- Updated dependencies [84e61fc]
|
|
70
|
+
- Updated dependencies [c4f8529]
|
|
71
|
+
- Updated dependencies [f7ae38a]
|
|
72
|
+
- @osdk/api@2.6.0-beta.2
|
|
73
|
+
|
|
74
|
+
## 0.14.0-beta.3
|
|
75
|
+
|
|
76
|
+
### Minor Changes
|
|
77
|
+
|
|
78
|
+
- 995064b: Make tests run synchronously
|
|
79
|
+
|
|
80
|
+
## 0.14.0-beta.2
|
|
81
|
+
|
|
82
|
+
### Minor Changes
|
|
83
|
+
|
|
84
|
+
- 7601f9f: Fix condition validation
|
|
85
|
+
|
|
3
86
|
## 0.13.0-beta.18
|
|
4
87
|
|
|
5
88
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -15,6 +15,7 @@ The Maker package provides a type-safe, programmatic way to define ontologies, w
|
|
|
15
15
|
- [Interface Link Constraints](#interface-link-constraints)
|
|
16
16
|
- [Defining Actions](#defining-actions)
|
|
17
17
|
- [Importing Ontology Entities](#importing-ontology-entities)
|
|
18
|
+
- [Advanced](#advanced)
|
|
18
19
|
|
|
19
20
|
## Getting Started
|
|
20
21
|
|
|
@@ -441,7 +442,7 @@ const customerObject = defineObject({
|
|
|
441
442
|
});
|
|
442
443
|
```
|
|
443
444
|
|
|
444
|
-
### Object with
|
|
445
|
+
### Object with Custom Datasources
|
|
445
446
|
|
|
446
447
|
```typescript
|
|
447
448
|
// Stream-backed object with retention period
|
|
@@ -456,27 +457,10 @@ const eventObject = defineObject({
|
|
|
456
457
|
"eventName": { type: "string", displayName: "Event Name" },
|
|
457
458
|
"timestamp": { type: "timestamp" },
|
|
458
459
|
},
|
|
459
|
-
|
|
460
|
+
datasources: [{
|
|
460
461
|
type: "stream",
|
|
461
462
|
retentionPeriod: "P90D", // 90 days retention (ISO 8601 duration format)
|
|
462
|
-
},
|
|
463
|
-
});
|
|
464
|
-
|
|
465
|
-
// Dataset-backed object
|
|
466
|
-
const productObject = defineObject({
|
|
467
|
-
apiName: "product",
|
|
468
|
-
displayName: "Product",
|
|
469
|
-
pluralDisplayName: "Products",
|
|
470
|
-
titlePropertyApiName: "name",
|
|
471
|
-
primaryKeyPropertyApiName: "id",
|
|
472
|
-
properties: {
|
|
473
|
-
"id": { type: "string", displayName: "ID" },
|
|
474
|
-
"name": { type: "string" },
|
|
475
|
-
"price": { type: "decimal" },
|
|
476
|
-
},
|
|
477
|
-
datasource: {
|
|
478
|
-
type: "dataset",
|
|
479
|
-
},
|
|
463
|
+
}],
|
|
480
464
|
});
|
|
481
465
|
```
|
|
482
466
|
|
|
@@ -663,10 +647,12 @@ const modifyPersonAction = defineModifyInterfaceObjectAction({
|
|
|
663
647
|
});
|
|
664
648
|
```
|
|
665
649
|
|
|
666
|
-
|
|
650
|
+
## Advanced
|
|
651
|
+
|
|
652
|
+
### Custom Actions
|
|
667
653
|
|
|
668
654
|
More customization such as security/submission criteria, constraints on parameter values, parameter overrides, etc.
|
|
669
|
-
can
|
|
655
|
+
can be added to actions.
|
|
670
656
|
|
|
671
657
|
```typescript
|
|
672
658
|
import {
|
|
@@ -741,3 +727,81 @@ const modifyObjectActionType = defineModifyObjectAction(
|
|
|
741
727
|
},
|
|
742
728
|
);
|
|
743
729
|
```
|
|
730
|
+
|
|
731
|
+
### Derived Properties
|
|
732
|
+
|
|
733
|
+
Objects can have derived properties, which are computed at runtime from other linked objects. Properties can be mapped directly, or an aggregation function (e.g. `collectList`, `avg`, `max`, etc.) can be used.
|
|
734
|
+
|
|
735
|
+
```typescript
|
|
736
|
+
const passenger = defineObject({
|
|
737
|
+
displayName: "Passenger",
|
|
738
|
+
pluralDisplayName: "Passengers",
|
|
739
|
+
apiName: "passenger",
|
|
740
|
+
primaryKeyPropertyApiName: "name",
|
|
741
|
+
titlePropertyApiName: "name",
|
|
742
|
+
properties: {
|
|
743
|
+
name: {
|
|
744
|
+
type: "string",
|
|
745
|
+
displayName: "Name",
|
|
746
|
+
},
|
|
747
|
+
flight_id: {
|
|
748
|
+
type: "string",
|
|
749
|
+
displayName: "Flight ID",
|
|
750
|
+
},
|
|
751
|
+
},
|
|
752
|
+
});
|
|
753
|
+
const flightToPassengers = defineLink({
|
|
754
|
+
apiName: "flightToPassengersLink",
|
|
755
|
+
one: {
|
|
756
|
+
// because the object has not been created yet,
|
|
757
|
+
// reference it by its fully qualified API name manually
|
|
758
|
+
object: "com.palantir.flight",
|
|
759
|
+
metadata: {
|
|
760
|
+
apiName: "flightFromPassengers",
|
|
761
|
+
},
|
|
762
|
+
},
|
|
763
|
+
toMany: {
|
|
764
|
+
object: passenger.apiName,
|
|
765
|
+
metadata: {
|
|
766
|
+
apiName: "passengersFromFlight",
|
|
767
|
+
},
|
|
768
|
+
},
|
|
769
|
+
manyForeignKeyProperty: "flight_id",
|
|
770
|
+
});
|
|
771
|
+
const flight = defineObject({
|
|
772
|
+
displayName: "Flight",
|
|
773
|
+
pluralDisplayName: "Flights",
|
|
774
|
+
apiName: "flight",
|
|
775
|
+
primaryKeyPropertyApiName: "id",
|
|
776
|
+
titlePropertyApiName: "id",
|
|
777
|
+
properties: {
|
|
778
|
+
id: {
|
|
779
|
+
type: "string",
|
|
780
|
+
displayName: "ID",
|
|
781
|
+
},
|
|
782
|
+
passengersList: {
|
|
783
|
+
type: "string",
|
|
784
|
+
array: true,
|
|
785
|
+
displayName: "Passengers",
|
|
786
|
+
},
|
|
787
|
+
},
|
|
788
|
+
datasources: [
|
|
789
|
+
// the dataset will back all of the properties not specified in other datasources
|
|
790
|
+
{ type: "dataset" },
|
|
791
|
+
{
|
|
792
|
+
type: "derived",
|
|
793
|
+
// multi-hop link traversals are also supported, just extend this list!
|
|
794
|
+
linkDefinition: [{
|
|
795
|
+
linkType: flightToPassengers,
|
|
796
|
+
}],
|
|
797
|
+
propertyMapping: {
|
|
798
|
+
passengersList: {
|
|
799
|
+
type: "collectList",
|
|
800
|
+
property: "name",
|
|
801
|
+
limit: 100,
|
|
802
|
+
},
|
|
803
|
+
},
|
|
804
|
+
},
|
|
805
|
+
],
|
|
806
|
+
});
|
|
807
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultFormat.js","names":[],"sources":["DefaultFormat.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type DefaultFormat = \"FORM\" | \"TABLE\";\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableConfiguration.js","names":[],"sources":["TableConfiguration.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { ParameterRid } from \"@osdk/client.unstable\";\nexport type TableConfiguration = {\n columnWidthByParameterRid: Record<ParameterRid, number>;\n enableFileImport: boolean;\n fitHorizontally: boolean;\n frozenColumnCount: number;\n rowHeightInLines: number;\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { TYPESCRIPT_OSDK_SNIPPETS } from "@osdk/typescript-sdk-docs";
|
|
18
|
+
import { consola } from "consola";
|
|
19
|
+
import * as fs from "fs";
|
|
20
|
+
import Mustache from "mustache";
|
|
21
|
+
import * as path from "path";
|
|
22
|
+
import { OntologyEntityTypeEnum } from "../common/OntologyEntityTypeEnum.js";
|
|
23
|
+
import { actionSnippets, interfaceSnippets, objectSnippets } from "./snippetTypes.js";
|
|
24
|
+
export function createCodeSnippets(ontology, packageName, outputDir) {
|
|
25
|
+
if (outputDir === undefined) {
|
|
26
|
+
outputDir = "./code-snippets";
|
|
27
|
+
}
|
|
28
|
+
if (!fs.existsSync(outputDir)) {
|
|
29
|
+
fs.mkdirSync(outputDir, {
|
|
30
|
+
recursive: true
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
if (packageName === undefined) {
|
|
34
|
+
packageName = "";
|
|
35
|
+
}
|
|
36
|
+
consola.info("Generating code snippets to ", outputDir);
|
|
37
|
+
for (const type of Object.values(OntologyEntityTypeEnum)) {
|
|
38
|
+
for (const object of Object.values(ontology[type])) {
|
|
39
|
+
let snippet = {};
|
|
40
|
+
switch (type) {
|
|
41
|
+
case OntologyEntityTypeEnum.OBJECT_TYPE:
|
|
42
|
+
snippet = generateObjectSnippet(object, packageName);
|
|
43
|
+
break;
|
|
44
|
+
case OntologyEntityTypeEnum.ACTION_TYPE:
|
|
45
|
+
snippet = generateActionSnippet(object, packageName);
|
|
46
|
+
break;
|
|
47
|
+
case OntologyEntityTypeEnum.INTERFACE_TYPE:
|
|
48
|
+
snippet = generateInterfaceSnippet(object, packageName);
|
|
49
|
+
break;
|
|
50
|
+
default:
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
fs.writeFileSync(path.join(outputDir, object.apiName), JSON.stringify(snippet));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
consola.info("Finished Code Snippet Generation");
|
|
57
|
+
}
|
|
58
|
+
function generateInterfaceSnippet(interfaceType, packageName) {
|
|
59
|
+
const interfaceContext = {
|
|
60
|
+
"interfaceApiName": interfaceType.apiName,
|
|
61
|
+
"packageName": packageName,
|
|
62
|
+
"objectOrInterfaceApiName": interfaceType.apiName,
|
|
63
|
+
"propertyNames": Object.keys(interfaceType.propertiesV2)
|
|
64
|
+
};
|
|
65
|
+
return getSnippets(interfaceSnippets, interfaceContext);
|
|
66
|
+
}
|
|
67
|
+
function generateObjectSnippet(objectType, packageName) {
|
|
68
|
+
const objectContext = {
|
|
69
|
+
"objectType": objectType.apiName,
|
|
70
|
+
"packageName": packageName,
|
|
71
|
+
"objectOrInterfaceApiName": objectType.apiName
|
|
72
|
+
};
|
|
73
|
+
return getSnippets(objectSnippets, objectContext);
|
|
74
|
+
}
|
|
75
|
+
function generateActionSnippet(actionType, packageName) {
|
|
76
|
+
const actionContext = {
|
|
77
|
+
"actionApiName": actionType.apiName,
|
|
78
|
+
"packageName": packageName
|
|
79
|
+
};
|
|
80
|
+
return getSnippets(actionSnippets, actionContext);
|
|
81
|
+
}
|
|
82
|
+
function getSnippets(snippetType, context) {
|
|
83
|
+
const allSnippets = {};
|
|
84
|
+
for (const templateName of Object.keys(snippetType).filter(key => isNaN(Number(key)))) {
|
|
85
|
+
const latestTemplate = Object.values(TYPESCRIPT_OSDK_SNIPPETS.versions).find(v => v.snippets[templateName])?.snippets[templateName][0].template ?? "";
|
|
86
|
+
const renderedTemplate = Mustache.render(latestTemplate, context);
|
|
87
|
+
allSnippets[templateName] = renderedTemplate;
|
|
88
|
+
}
|
|
89
|
+
return allSnippets;
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=createCodeSnippets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCodeSnippets.js","names":["TYPESCRIPT_OSDK_SNIPPETS","consola","fs","Mustache","path","OntologyEntityTypeEnum","actionSnippets","interfaceSnippets","objectSnippets","createCodeSnippets","ontology","packageName","outputDir","undefined","existsSync","mkdirSync","recursive","info","type","Object","values","object","snippet","OBJECT_TYPE","generateObjectSnippet","ACTION_TYPE","generateActionSnippet","INTERFACE_TYPE","generateInterfaceSnippet","writeFileSync","join","apiName","JSON","stringify","interfaceType","interfaceContext","keys","propertiesV2","getSnippets","objectType","objectContext","actionType","actionContext","snippetType","context","allSnippets","templateName","filter","key","isNaN","Number","latestTemplate","versions","find","v","snippets","template","renderedTemplate","render"],"sources":["createCodeSnippets.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { TYPESCRIPT_OSDK_SNIPPETS } from \"@osdk/typescript-sdk-docs\";\nimport { consola } from \"consola\";\nimport * as fs from \"fs\";\nimport Mustache from \"mustache\";\nimport * as path from \"path\";\nimport type { ActionType } from \"../action/ActionType.js\";\nimport type { OntologyDefinition } from \"../common/OntologyDefinition.js\";\nimport { OntologyEntityTypeEnum } from \"../common/OntologyEntityTypeEnum.js\";\nimport type { InterfaceType } from \"../interface/InterfaceType.js\";\nimport type { ObjectType } from \"../object/ObjectType.js\";\nimport {\n actionSnippets,\n interfaceSnippets,\n objectSnippets,\n} from \"./snippetTypes.js\";\n\nexport function createCodeSnippets(\n ontology: OntologyDefinition,\n packageName: string | undefined,\n outputDir: string | undefined,\n): void {\n if (outputDir === undefined) {\n outputDir = \"./code-snippets\";\n }\n if (!fs.existsSync(outputDir)) {\n fs.mkdirSync(outputDir, { recursive: true });\n }\n if (packageName === undefined) {\n packageName = \"\";\n }\n consola.info(\"Generating code snippets to \", outputDir);\n for (const type of Object.values(OntologyEntityTypeEnum)) {\n for (const object of Object.values(ontology[type])) {\n let snippet = {};\n switch (type) {\n case OntologyEntityTypeEnum.OBJECT_TYPE:\n snippet = generateObjectSnippet(object, packageName);\n break;\n case OntologyEntityTypeEnum.ACTION_TYPE:\n snippet = generateActionSnippet(object, packageName);\n break;\n case OntologyEntityTypeEnum.INTERFACE_TYPE:\n snippet = generateInterfaceSnippet(object, packageName);\n break;\n default:\n continue;\n }\n fs.writeFileSync(\n path.join(outputDir, object.apiName),\n JSON.stringify(snippet),\n );\n }\n }\n consola.info(\"Finished Code Snippet Generation\");\n}\n\nfunction generateInterfaceSnippet(\n interfaceType: InterfaceType,\n packageName: string,\n) {\n const interfaceContext = {\n \"interfaceApiName\": interfaceType.apiName,\n \"packageName\": packageName,\n \"objectOrInterfaceApiName\": interfaceType.apiName,\n \"propertyNames\": Object.keys(interfaceType.propertiesV2),\n };\n\n return getSnippets(interfaceSnippets, interfaceContext);\n}\n\nfunction generateObjectSnippet(objectType: ObjectType, packageName: string) {\n const objectContext = {\n \"objectType\": objectType.apiName,\n \"packageName\": packageName,\n \"objectOrInterfaceApiName\": objectType.apiName,\n };\n return getSnippets(objectSnippets, objectContext);\n}\n\nfunction generateActionSnippet(actionType: ActionType, packageName: string) {\n const actionContext = {\n \"actionApiName\": actionType.apiName,\n \"packageName\": packageName,\n };\n return getSnippets(actionSnippets, actionContext);\n}\n\nfunction getSnippets(\n snippetType:\n | typeof interfaceSnippets\n | typeof actionSnippets\n | typeof objectSnippets,\n context: {},\n) {\n const allSnippets = {};\n for (\n const templateName of Object.keys(snippetType).filter(key =>\n isNaN(Number(key))\n )\n ) {\n const latestTemplate =\n Object.values(TYPESCRIPT_OSDK_SNIPPETS.versions).find(v =>\n v.snippets[templateName]\n )?.snippets[templateName][0].template ?? \"\";\n const renderedTemplate = Mustache.render(latestTemplate, context);\n (allSnippets as any)[templateName] = renderedTemplate;\n }\n return allSnippets;\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
export let interfaceSnippets = /*#__PURE__*/function (interfaceSnippets) {
|
|
18
|
+
interfaceSnippets[interfaceSnippets["loadInterfacesReference"] = 0] = "loadInterfacesReference";
|
|
19
|
+
interfaceSnippets[interfaceSnippets["loadAllInterfacesReference"] = 1] = "loadAllInterfacesReference";
|
|
20
|
+
interfaceSnippets[interfaceSnippets["loadOrderedInterfacesReference"] = 2] = "loadOrderedInterfacesReference";
|
|
21
|
+
interfaceSnippets[interfaceSnippets["searchInterfacesReference"] = 3] = "searchInterfacesReference";
|
|
22
|
+
interfaceSnippets[interfaceSnippets["loadInterfaceMetadataSnippet"] = 4] = "loadInterfaceMetadataSnippet";
|
|
23
|
+
interfaceSnippets[interfaceSnippets["subscribeToObjectSetInstructions"] = 5] = "subscribeToObjectSetInstructions";
|
|
24
|
+
return interfaceSnippets;
|
|
25
|
+
}({});
|
|
26
|
+
export let actionSnippets = /*#__PURE__*/function (actionSnippets) {
|
|
27
|
+
actionSnippets[actionSnippets["applyAction"] = 0] = "applyAction";
|
|
28
|
+
actionSnippets[actionSnippets["batchApplyAction"] = 1] = "batchApplyAction";
|
|
29
|
+
return actionSnippets;
|
|
30
|
+
}({});
|
|
31
|
+
export let objectSnippets = /*#__PURE__*/function (objectSnippets) {
|
|
32
|
+
objectSnippets[objectSnippets["loadSingleObjectGuide"] = 0] = "loadSingleObjectGuide";
|
|
33
|
+
objectSnippets[objectSnippets["loadObjectsReference"] = 1] = "loadObjectsReference";
|
|
34
|
+
objectSnippets[objectSnippets["loadAllObjectsReference"] = 2] = "loadAllObjectsReference";
|
|
35
|
+
objectSnippets[objectSnippets["loadOrderedInterfacesReference"] = 3] = "loadOrderedInterfacesReference";
|
|
36
|
+
// what
|
|
37
|
+
objectSnippets[objectSnippets["searchObjectsGuide"] = 4] = "searchObjectsGuide";
|
|
38
|
+
// There's specific search queries under this one too, but a little verbose
|
|
39
|
+
objectSnippets[objectSnippets["aggregationTemplate"] = 5] = "aggregationTemplate";
|
|
40
|
+
/* Types of aggregation + group bys
|
|
41
|
+
approximateDistinctAggregationTemplate,
|
|
42
|
+
exactDistinctAggregationTemplate,
|
|
43
|
+
numericAggregationTemplate,
|
|
44
|
+
countAggregationTemplate,
|
|
45
|
+
fixedWidthGroupByTemplate,
|
|
46
|
+
durationGroupByTemplate,
|
|
47
|
+
exactGroupByTemplate,
|
|
48
|
+
rangeGroupByTemplate,
|
|
49
|
+
*/
|
|
50
|
+
objectSnippets[objectSnippets["objectSetOperationsGuide"] = 6] = "objectSetOperationsGuide";
|
|
51
|
+
/* Types of set operations
|
|
52
|
+
objectSetOperationsUnion,
|
|
53
|
+
objectSetOperationsSubtract,
|
|
54
|
+
objectSetOperationsIntersect,
|
|
55
|
+
*/
|
|
56
|
+
objectSnippets[objectSnippets["loadObjectMetadataSnippet"] = 7] = "loadObjectMetadataSnippet";
|
|
57
|
+
objectSnippets[objectSnippets["subscribeToObjectSetInstructions"] = 8] = "subscribeToObjectSetInstructions";
|
|
58
|
+
return objectSnippets;
|
|
59
|
+
}({});
|
|
60
|
+
//# sourceMappingURL=snippetTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snippetTypes.js","names":["interfaceSnippets","actionSnippets","objectSnippets"],"sources":["snippetTypes.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport enum interfaceSnippets {\n loadInterfacesReference,\n loadAllInterfacesReference,\n loadOrderedInterfacesReference,\n searchInterfacesReference,\n loadInterfaceMetadataSnippet,\n subscribeToObjectSetInstructions,\n}\n\nexport enum actionSnippets {\n applyAction,\n batchApplyAction,\n}\n\nexport enum objectSnippets {\n loadSingleObjectGuide,\n loadObjectsReference,\n loadAllObjectsReference,\n loadOrderedInterfacesReference, // what\n searchObjectsGuide, // There's specific search queries under this one too, but a little verbose\n aggregationTemplate,\n /* Types of aggregation + group bys\n approximateDistinctAggregationTemplate,\n exactDistinctAggregationTemplate,\n numericAggregationTemplate,\n countAggregationTemplate,\n fixedWidthGroupByTemplate,\n durationGroupByTemplate,\n exactGroupByTemplate,\n rangeGroupByTemplate,\n */\n objectSetOperationsGuide,\n /* Types of set operations\n objectSetOperationsUnion,\n objectSetOperationsSubtract,\n objectSetOperationsIntersect,\n */\n loadObjectMetadataSnippet,\n subscribeToObjectSetInstructions,\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA;AAS7B,WAAYC,cAAc,0BAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA;AAK1B,WAAYC,cAAc,0BAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAIQ;EAJtBA,cAAc,CAAdA,cAAc;EAKJ;EALVA,cAAc,CAAdA,cAAc;EAOxB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAhBYA,cAAc,CAAdA,cAAc;EAkBxB;AACF;AACA;AACA;AACA;EAtBYA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA","ignoreList":[]}
|