@osdk/maker 0.13.0 → 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.
Files changed (222) hide show
  1. package/CHANGELOG.md +102 -36
  2. package/README.md +86 -22
  3. package/build/browser/api/action/DefaultFormat.js +2 -0
  4. package/build/browser/api/action/DefaultFormat.js.map +1 -0
  5. package/build/browser/api/action/TableConfiguration.js +2 -0
  6. package/build/browser/api/action/TableConfiguration.js.map +1 -0
  7. package/build/browser/api/code-snippets/createCodeSnippets.js +91 -0
  8. package/build/browser/api/code-snippets/createCodeSnippets.js.map +1 -0
  9. package/build/browser/api/code-snippets/snippetTypes.js +60 -0
  10. package/build/browser/api/code-snippets/snippetTypes.js.map +1 -0
  11. package/build/browser/api/defineAction.js +131 -414
  12. package/build/browser/api/defineAction.js.map +1 -1
  13. package/build/browser/api/defineCreateInterfaceObjectAction.js +85 -0
  14. package/build/browser/api/defineCreateInterfaceObjectAction.js.map +1 -0
  15. package/build/browser/api/defineCreateObjectAction.js +80 -0
  16. package/build/browser/api/defineCreateObjectAction.js.map +1 -0
  17. package/build/browser/api/defineCreateOrModifyObjectAction.js +95 -0
  18. package/build/browser/api/defineCreateOrModifyObjectAction.js.map +1 -0
  19. package/build/browser/api/defineDeleteInterfaceObjectAction.js +53 -0
  20. package/build/browser/api/defineDeleteInterfaceObjectAction.js.map +1 -0
  21. package/build/browser/api/defineDeleteObjectAction.js +56 -0
  22. package/build/browser/api/defineDeleteObjectAction.js.map +1 -0
  23. package/build/browser/api/defineLink.js +5 -13
  24. package/build/browser/api/defineLink.js.map +1 -1
  25. package/build/browser/api/defineModifyInterfaceObjectAction.js +84 -0
  26. package/build/browser/api/defineModifyInterfaceObjectAction.js.map +1 -0
  27. package/build/browser/api/defineModifyObjectAction.js +93 -0
  28. package/build/browser/api/defineModifyObjectAction.js.map +1 -0
  29. package/build/browser/api/defineObject.js +94 -3
  30. package/build/browser/api/defineObject.js.map +1 -1
  31. package/build/browser/api/defineOntology.js +6 -1
  32. package/build/browser/api/defineOntology.js.map +1 -1
  33. package/build/browser/api/links/LinkType.js.map +1 -1
  34. package/build/browser/api/object/ObjectType.js.map +1 -1
  35. package/build/browser/api/object/ObjectTypeDatasourceDefinition.js.map +1 -1
  36. package/build/browser/api/object/ObjectTypeDefinition.js.map +1 -1
  37. package/build/browser/api/test/actions.test.js +12034 -0
  38. package/build/browser/api/test/actions.test.js.map +1 -0
  39. package/build/browser/api/test/interfaces.test.js +924 -0
  40. package/build/browser/api/test/interfaces.test.js.map +1 -0
  41. package/build/browser/api/test/links.test.js +1974 -0
  42. package/build/browser/api/test/links.test.js.map +1 -0
  43. package/build/browser/api/{markingconstraint.test.js → test/markingconstraint.test.js} +28 -2
  44. package/build/browser/api/test/markingconstraint.test.js.map +1 -0
  45. package/build/browser/api/test/misc.test.js +1058 -0
  46. package/build/browser/api/test/misc.test.js.map +1 -0
  47. package/build/browser/api/{objectStatus.test.js → test/objectStatus.test.js} +2 -2
  48. package/build/browser/api/test/objectStatus.test.js.map +1 -0
  49. package/build/browser/api/test/objects.test.js +2591 -0
  50. package/build/browser/api/test/objects.test.js.map +1 -0
  51. package/build/browser/api/test/spt.test.js +387 -0
  52. package/build/browser/api/test/spt.test.js.map +1 -0
  53. package/build/browser/api/test/valueTypes.test.js +156 -0
  54. package/build/browser/api/test/valueTypes.test.js.map +1 -0
  55. package/build/browser/cli/main.js +25 -6
  56. package/build/browser/cli/main.js.map +1 -1
  57. package/build/browser/conversion/toMarketplace/convertActionParameterConditionalOverride.js +2 -2
  58. package/build/browser/conversion/toMarketplace/convertActionParameterConditionalOverride.js.map +1 -1
  59. package/build/browser/conversion/toMarketplace/convertActionValidation.js +2 -2
  60. package/build/browser/conversion/toMarketplace/convertActionValidation.js.map +1 -1
  61. package/build/browser/conversion/toMarketplace/convertConditionDefinition.js +5 -3
  62. package/build/browser/conversion/toMarketplace/convertConditionDefinition.js.map +1 -1
  63. package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js +3 -2
  64. package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -1
  65. package/build/browser/conversion/toMarketplace/convertLink.js +109 -24
  66. package/build/browser/conversion/toMarketplace/convertLink.js.map +1 -1
  67. package/build/browser/conversion/toMarketplace/convertObject.js +81 -4
  68. package/build/browser/conversion/toMarketplace/convertObject.js.map +1 -1
  69. package/build/browser/conversion/toMarketplace/convertSectionConditionalOverride.js +2 -2
  70. package/build/browser/conversion/toMarketplace/convertSectionConditionalOverride.js.map +1 -1
  71. package/build/browser/index.js +8 -1
  72. package/build/browser/index.js.map +1 -1
  73. package/build/cjs/index.cjs +1716 -797
  74. package/build/cjs/index.cjs.map +1 -1
  75. package/build/cjs/index.d.cts +184 -115
  76. package/build/esm/api/action/DefaultFormat.js +2 -0
  77. package/build/esm/api/action/DefaultFormat.js.map +1 -0
  78. package/build/esm/api/action/TableConfiguration.js +2 -0
  79. package/build/esm/api/action/TableConfiguration.js.map +1 -0
  80. package/build/esm/api/code-snippets/createCodeSnippets.js +91 -0
  81. package/build/esm/api/code-snippets/createCodeSnippets.js.map +1 -0
  82. package/build/esm/api/code-snippets/snippetTypes.js +60 -0
  83. package/build/esm/api/code-snippets/snippetTypes.js.map +1 -0
  84. package/build/esm/api/defineAction.js +131 -414
  85. package/build/esm/api/defineAction.js.map +1 -1
  86. package/build/esm/api/defineCreateInterfaceObjectAction.js +85 -0
  87. package/build/esm/api/defineCreateInterfaceObjectAction.js.map +1 -0
  88. package/build/esm/api/defineCreateObjectAction.js +80 -0
  89. package/build/esm/api/defineCreateObjectAction.js.map +1 -0
  90. package/build/esm/api/defineCreateOrModifyObjectAction.js +95 -0
  91. package/build/esm/api/defineCreateOrModifyObjectAction.js.map +1 -0
  92. package/build/esm/api/defineDeleteInterfaceObjectAction.js +53 -0
  93. package/build/esm/api/defineDeleteInterfaceObjectAction.js.map +1 -0
  94. package/build/esm/api/defineDeleteObjectAction.js +56 -0
  95. package/build/esm/api/defineDeleteObjectAction.js.map +1 -0
  96. package/build/esm/api/defineLink.js +5 -13
  97. package/build/esm/api/defineLink.js.map +1 -1
  98. package/build/esm/api/defineModifyInterfaceObjectAction.js +84 -0
  99. package/build/esm/api/defineModifyInterfaceObjectAction.js.map +1 -0
  100. package/build/esm/api/defineModifyObjectAction.js +93 -0
  101. package/build/esm/api/defineModifyObjectAction.js.map +1 -0
  102. package/build/esm/api/defineObject.js +94 -3
  103. package/build/esm/api/defineObject.js.map +1 -1
  104. package/build/esm/api/defineOntology.js +6 -1
  105. package/build/esm/api/defineOntology.js.map +1 -1
  106. package/build/esm/api/links/LinkType.js.map +1 -1
  107. package/build/esm/api/object/ObjectType.js.map +1 -1
  108. package/build/esm/api/object/ObjectTypeDatasourceDefinition.js.map +1 -1
  109. package/build/esm/api/object/ObjectTypeDefinition.js.map +1 -1
  110. package/build/esm/api/test/actions.test.js +12034 -0
  111. package/build/esm/api/test/actions.test.js.map +1 -0
  112. package/build/esm/api/test/interfaces.test.js +924 -0
  113. package/build/esm/api/test/interfaces.test.js.map +1 -0
  114. package/build/esm/api/test/links.test.js +1974 -0
  115. package/build/esm/api/test/links.test.js.map +1 -0
  116. package/build/esm/api/{markingconstraint.test.js → test/markingconstraint.test.js} +28 -2
  117. package/build/esm/api/test/markingconstraint.test.js.map +1 -0
  118. package/build/esm/api/test/misc.test.js +1058 -0
  119. package/build/esm/api/test/misc.test.js.map +1 -0
  120. package/build/esm/api/{objectStatus.test.js → test/objectStatus.test.js} +2 -2
  121. package/build/esm/api/test/objectStatus.test.js.map +1 -0
  122. package/build/esm/api/test/objects.test.js +2591 -0
  123. package/build/esm/api/test/objects.test.js.map +1 -0
  124. package/build/esm/api/test/spt.test.js +387 -0
  125. package/build/esm/api/test/spt.test.js.map +1 -0
  126. package/build/esm/api/test/valueTypes.test.js +156 -0
  127. package/build/esm/api/test/valueTypes.test.js.map +1 -0
  128. package/build/esm/cli/main.js +25 -6
  129. package/build/esm/cli/main.js.map +1 -1
  130. package/build/esm/conversion/toMarketplace/convertActionParameterConditionalOverride.js +2 -2
  131. package/build/esm/conversion/toMarketplace/convertActionParameterConditionalOverride.js.map +1 -1
  132. package/build/esm/conversion/toMarketplace/convertActionValidation.js +2 -2
  133. package/build/esm/conversion/toMarketplace/convertActionValidation.js.map +1 -1
  134. package/build/esm/conversion/toMarketplace/convertConditionDefinition.js +5 -3
  135. package/build/esm/conversion/toMarketplace/convertConditionDefinition.js.map +1 -1
  136. package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js +3 -2
  137. package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -1
  138. package/build/esm/conversion/toMarketplace/convertLink.js +109 -24
  139. package/build/esm/conversion/toMarketplace/convertLink.js.map +1 -1
  140. package/build/esm/conversion/toMarketplace/convertObject.js +81 -4
  141. package/build/esm/conversion/toMarketplace/convertObject.js.map +1 -1
  142. package/build/esm/conversion/toMarketplace/convertSectionConditionalOverride.js +2 -2
  143. package/build/esm/conversion/toMarketplace/convertSectionConditionalOverride.js.map +1 -1
  144. package/build/esm/index.js +8 -1
  145. package/build/esm/index.js.map +1 -1
  146. package/build/types/api/action/DefaultFormat.d.ts +1 -0
  147. package/build/types/api/action/DefaultFormat.d.ts.map +1 -0
  148. package/build/types/api/action/TableConfiguration.d.ts +8 -0
  149. package/build/types/api/action/TableConfiguration.d.ts.map +1 -0
  150. package/build/types/api/code-snippets/createCodeSnippets.d.ts +2 -0
  151. package/build/types/api/code-snippets/createCodeSnippets.d.ts.map +1 -0
  152. package/build/types/api/code-snippets/snippetTypes.d.ts +23 -0
  153. package/build/types/api/code-snippets/snippetTypes.d.ts.map +1 -0
  154. package/build/types/api/defineAction.d.ts +34 -10
  155. package/build/types/api/defineAction.d.ts.map +1 -1
  156. package/build/types/api/defineCreateInterfaceObjectAction.d.ts +3 -0
  157. package/build/types/api/defineCreateInterfaceObjectAction.d.ts.map +1 -0
  158. package/build/types/api/defineCreateObjectAction.d.ts +3 -0
  159. package/build/types/api/defineCreateObjectAction.d.ts.map +1 -0
  160. package/build/types/api/defineCreateOrModifyObjectAction.d.ts +3 -0
  161. package/build/types/api/defineCreateOrModifyObjectAction.d.ts.map +1 -0
  162. package/build/types/api/defineDeleteInterfaceObjectAction.d.ts +3 -0
  163. package/build/types/api/defineDeleteInterfaceObjectAction.d.ts.map +1 -0
  164. package/build/types/api/defineDeleteObjectAction.d.ts +3 -0
  165. package/build/types/api/defineDeleteObjectAction.d.ts.map +1 -0
  166. package/build/types/api/defineLink.d.ts.map +1 -1
  167. package/build/types/api/defineModifyInterfaceObjectAction.d.ts +3 -0
  168. package/build/types/api/defineModifyInterfaceObjectAction.d.ts.map +1 -0
  169. package/build/types/api/defineModifyObjectAction.d.ts +3 -0
  170. package/build/types/api/defineModifyObjectAction.d.ts.map +1 -0
  171. package/build/types/api/defineObject.d.ts.map +1 -1
  172. package/build/types/api/defineOntology.d.ts +1 -1
  173. package/build/types/api/defineOntology.d.ts.map +1 -1
  174. package/build/types/api/links/LinkType.d.ts +7 -7
  175. package/build/types/api/object/ObjectType.d.ts +1 -1
  176. package/build/types/api/object/ObjectType.d.ts.map +1 -1
  177. package/build/types/api/object/ObjectTypeDatasourceDefinition.d.ts +41 -1
  178. package/build/types/api/object/ObjectTypeDatasourceDefinition.d.ts.map +1 -1
  179. package/build/types/api/object/ObjectTypeDefinition.d.ts +1 -1
  180. package/build/types/api/object/ObjectTypeDefinition.d.ts.map +1 -1
  181. package/build/types/api/test/actions.test.d.ts.map +1 -0
  182. package/build/types/api/test/interfaces.test.d.ts.map +1 -0
  183. package/build/types/api/test/links.test.d.ts.map +1 -0
  184. package/build/types/api/test/markingconstraint.test.d.ts +1 -0
  185. package/build/types/api/test/markingconstraint.test.d.ts.map +1 -0
  186. package/build/types/api/test/misc.test.d.ts +1 -0
  187. package/build/types/api/test/misc.test.d.ts.map +1 -0
  188. package/build/types/api/test/objectStatus.test.d.ts +1 -0
  189. package/build/types/api/test/objectStatus.test.d.ts.map +1 -0
  190. package/build/types/api/test/objects.test.d.ts +1 -0
  191. package/build/types/api/test/objects.test.d.ts.map +1 -0
  192. package/build/types/api/test/spt.test.d.ts +1 -0
  193. package/build/types/api/test/spt.test.d.ts.map +1 -0
  194. package/build/types/api/test/valueTypes.test.d.ts +1 -0
  195. package/build/types/api/test/valueTypes.test.d.ts.map +1 -0
  196. package/build/types/cli/main.d.ts.map +1 -1
  197. package/build/types/conversion/toMarketplace/convertActionParameterConditionalOverride.d.ts +2 -2
  198. package/build/types/conversion/toMarketplace/convertActionParameterConditionalOverride.d.ts.map +1 -1
  199. package/build/types/conversion/toMarketplace/convertConditionDefinition.d.ts +2 -1
  200. package/build/types/conversion/toMarketplace/convertConditionDefinition.d.ts.map +1 -1
  201. package/build/types/conversion/toMarketplace/convertLink.d.ts +6 -0
  202. package/build/types/conversion/toMarketplace/convertLink.d.ts.map +1 -1
  203. package/build/types/conversion/toMarketplace/convertObject.d.ts.map +1 -1
  204. package/build/types/conversion/toMarketplace/convertSectionConditionalOverride.d.ts +2 -1
  205. package/build/types/conversion/toMarketplace/convertSectionConditionalOverride.d.ts.map +1 -1
  206. package/build/types/index.d.ts +8 -1
  207. package/build/types/index.d.ts.map +1 -1
  208. package/package.json +6 -6
  209. package/build/browser/api/markingconstraint.test.js.map +0 -1
  210. package/build/browser/api/objectStatus.test.js.map +0 -1
  211. package/build/browser/api/overall.test.js +0 -13998
  212. package/build/browser/api/overall.test.js.map +0 -1
  213. package/build/esm/api/markingconstraint.test.js.map +0 -1
  214. package/build/esm/api/objectStatus.test.js.map +0 -1
  215. package/build/esm/api/overall.test.js +0 -13998
  216. package/build/esm/api/overall.test.js.map +0 -1
  217. package/build/types/api/markingconstraint.test.d.ts.map +0 -1
  218. package/build/types/api/objectStatus.test.d.ts.map +0 -1
  219. package/build/types/api/overall.test.d.ts.map +0 -1
  220. /package/build/types/api/{markingconstraint.test.d.ts → test/actions.test.d.ts} +0 -0
  221. /package/build/types/api/{objectStatus.test.d.ts → test/interfaces.test.d.ts} +0 -0
  222. /package/build/types/api/{overall.test.d.ts → test/links.test.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,44 +1,110 @@
1
1
  # @osdk/maker
2
2
 
3
- ## 0.13.0
3
+ ## 0.14.0-beta.10
4
+
5
+ ### Minor Changes
6
+
7
+ - 6532b54: Move osdk/typescript-sdk-docs from dev dependencies to normal dep
4
8
 
5
9
  ### Patch Changes
6
10
 
7
- - 322c5bc: Simulated release
8
- - 6da8fd2: Write value type IR correctly
9
- - 37eb75b: readme update and missing changeset for wiring up randomness key
10
- - a6f49e9: Intermediary links in oac
11
- - a6f49e9: Fix Maker Rid Generation
12
- - f025f30: Fix semantic merge conflict
13
- - 1b60527: Remove foundry.ontologies dependency
14
- - 7cdab1d: Update platform sdk dependencies
15
- - a00d2ed: Update Platform SDK dependencies
16
- - 40d43c2: Make codegen TS compiler friendly
17
- - d815339: Allow interface props to be excluded from actions
18
- - f9b6dc4: Write value types to ontology IR file
19
- - 07083e1: Action submission conditions can have custom metadata
20
- - b1c99bf: Revert .js -> .ts extension for codegen
21
- - 11fd3fb: Add api name validation for object types
22
- - 5f72188: Fix object action param optionality for non-array props
23
- - 5fd12eb: Fix interface display metadata to include icon
24
- - 7bdac45: Update Platform SDK dependency
25
- - a96d89e: Update Platform SDK dependencies
26
- - f2dbc3d: Fix test from semantic merge conflict
27
- - cbcf2ad: Add branching support
28
- - 04fe946: Use block data type for imports
29
- - 7f0ad5c: Check extended interfaces when verifying interface actions
30
- - 712dfbe: Improve interface action validation
31
- - Updated dependencies [322c5bc]
32
- - Updated dependencies [7160276]
33
- - Updated dependencies [7bdac45]
34
- - Updated dependencies [37eb75b]
35
- - Updated dependencies [7b97128]
36
- - Updated dependencies [76905f5]
37
- - Updated dependencies [20962bc]
38
- - Updated dependencies [052a96b]
39
- - Updated dependencies [ca1fabe]
40
- - Updated dependencies [e48be06]
41
- - @osdk/api@2.5.0
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
+
86
+ ## 0.13.0-beta.18
87
+
88
+ ### Minor Changes
89
+
90
+ - 6dee3cc: Typechecks improvement
91
+ - 242cdb7: Remove uuid import from maker
92
+
93
+ ## 0.13.0-beta.17
94
+
95
+ ### Minor Changes
96
+
97
+ - 58e9f56: Add condition validations for oac actions
98
+
99
+ ## 0.13.0-beta.16
100
+
101
+ ### Minor Changes
102
+
103
+ - 7f22c27: Finish wiring up randomness key
104
+
105
+ ### Patch Changes
106
+
107
+ - @osdk/api@2.5.0-beta.15
42
108
 
43
109
  ## 0.13.0-beta.15
44
110
 
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 Datasource
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
- datasource: {
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
- ### Custom Action
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 also be added.
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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DefaultFormat.js.map
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TableConfiguration.js.map
@@ -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":[]}