@osdk/client 2.6.0-beta.8 → 2.6.0-rc.14

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 (297) hide show
  1. package/CHANGELOG.md +172 -0
  2. package/build/browser/MinimalClientContext.js.map +1 -1
  3. package/build/browser/actions/applyAction.js +0 -4
  4. package/build/browser/actions/applyAction.js.map +1 -1
  5. package/build/browser/createClient.js +1 -2
  6. package/build/browser/createClient.js.map +1 -1
  7. package/build/browser/createClient.test.js +19 -1
  8. package/build/browser/createClient.test.js.map +1 -1
  9. package/build/browser/createMinimalClient.js +2 -3
  10. package/build/browser/createMinimalClient.js.map +1 -1
  11. package/build/browser/derivedProperties/createWithPropertiesObjectSet.js +1 -17
  12. package/build/browser/derivedProperties/createWithPropertiesObjectSet.js.map +1 -1
  13. package/build/browser/fetchMetadata.test.js +0 -11
  14. package/build/browser/fetchMetadata.test.js.map +1 -1
  15. package/build/browser/index.js +1 -1
  16. package/build/browser/index.js.map +1 -1
  17. package/build/browser/object/aggregate.js +1 -1
  18. package/build/browser/object/aggregate.js.map +1 -1
  19. package/build/browser/object/convertWireToOsdkObjects/BaseHolder.js.map +1 -1
  20. package/build/browser/object/convertWireToOsdkObjects/InterfaceHolder.js.map +1 -1
  21. package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js +0 -4
  22. package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -1
  23. package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js +0 -10
  24. package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -1
  25. package/build/browser/object/convertWireToOsdkObjects.test.js +0 -12
  26. package/build/browser/object/convertWireToOsdkObjects.test.js.map +1 -1
  27. package/build/browser/object/fetchPage.js +6 -3
  28. package/build/browser/object/fetchPage.js.map +1 -1
  29. package/build/browser/objectSet/createObjectSet.js +3 -3
  30. package/build/browser/objectSet/createObjectSet.js.map +1 -1
  31. package/build/browser/observable/ObservableClient.js.map +1 -1
  32. package/build/browser/observable/internal/Changes.js.map +1 -1
  33. package/build/browser/observable/internal/IntersectCanonicalizer.js +35 -0
  34. package/build/browser/observable/internal/IntersectCanonicalizer.js.map +1 -0
  35. package/build/browser/observable/internal/KnownCacheKey.js.map +1 -1
  36. package/build/browser/observable/internal/ObservableClientImpl.js +3 -0
  37. package/build/browser/observable/internal/ObservableClientImpl.js.map +1 -1
  38. package/build/browser/{object/formatting/propertyFormattingUtils.js → observable/internal/PivotCanonicalizer.js} +15 -21
  39. package/build/browser/observable/internal/PivotCanonicalizer.js.map +1 -0
  40. package/build/browser/observable/internal/Store.js +14 -2
  41. package/build/browser/observable/internal/Store.js.map +1 -1
  42. package/build/browser/observable/internal/WhereClauseCanonicalizer.js.map +1 -1
  43. package/build/browser/{object/formatting/formatBoolean.js → observable/internal/aggregation/AggregationCacheKey.js} +6 -7
  44. package/build/browser/observable/internal/aggregation/AggregationCacheKey.js.map +1 -0
  45. package/build/browser/observable/internal/aggregation/AggregationQuery.js +77 -0
  46. package/build/browser/observable/internal/aggregation/AggregationQuery.js.map +1 -0
  47. package/build/browser/observable/internal/aggregation/AggregationsHelper.js +54 -0
  48. package/build/browser/observable/internal/aggregation/AggregationsHelper.js.map +1 -0
  49. package/build/{esm/object/formatting/propertyFormattingUtils.js → browser/observable/internal/aggregation/ObjectAggregationQuery.js} +15 -21
  50. package/build/browser/observable/internal/aggregation/ObjectAggregationQuery.js.map +1 -0
  51. package/build/browser/observable/internal/base-list/BaseListQuery.js +4 -2
  52. package/build/browser/observable/internal/base-list/BaseListQuery.js.map +1 -1
  53. package/build/browser/observable/internal/getObjectTypesThatInvalidate.test.js +1 -1
  54. package/build/browser/observable/internal/getObjectTypesThatInvalidate.test.js.map +1 -1
  55. package/build/browser/observable/internal/links/LinksHelper.js +0 -3
  56. package/build/browser/observable/internal/links/LinksHelper.js.map +1 -1
  57. package/build/browser/observable/internal/list/ListCacheKey.js +2 -0
  58. package/build/browser/observable/internal/list/ListCacheKey.js.map +1 -1
  59. package/build/browser/observable/internal/list/ListQuery.js +19 -4
  60. package/build/browser/observable/internal/list/ListQuery.js.map +1 -1
  61. package/build/browser/observable/internal/list/ListQuery.test.js +277 -0
  62. package/build/browser/observable/internal/list/ListQuery.test.js.map +1 -0
  63. package/build/browser/observable/internal/list/ListQueryOptions.js.map +1 -1
  64. package/build/browser/observable/internal/list/ListsHelper.js +9 -3
  65. package/build/browser/observable/internal/list/ListsHelper.js.map +1 -1
  66. package/build/browser/observable/internal/list/ObjectListQuery.js +48 -9
  67. package/build/browser/observable/internal/list/ObjectListQuery.js.map +1 -1
  68. package/build/browser/observable/internal/objectset/ObjectSetQuery.js +7 -1
  69. package/build/browser/observable/internal/objectset/ObjectSetQuery.js.map +1 -1
  70. package/build/browser/observable/internal/objectset/ObjectSetQueryOptions.js.map +1 -1
  71. package/build/browser/observable/internal/testUtils/invalidateList.js +6 -1
  72. package/build/browser/observable/internal/testUtils/invalidateList.js.map +1 -1
  73. package/build/browser/observable/internal/testUtils.js +3 -1
  74. package/build/browser/observable/internal/testUtils.js.map +1 -1
  75. package/build/browser/ontology/loadActionMetadata.js +1 -3
  76. package/build/browser/ontology/loadActionMetadata.js.map +1 -1
  77. package/build/browser/ontology/loadFullObjectMetadata.js +1 -2
  78. package/build/browser/ontology/loadFullObjectMetadata.js.map +1 -1
  79. package/build/browser/ontology/loadInterfaceMetadata.js +1 -2
  80. package/build/browser/ontology/loadInterfaceMetadata.js.map +1 -1
  81. package/build/{esm/object/formatting/formatBoolean.js → browser/public/internal-node.js} +2 -7
  82. package/build/browser/public/internal-node.js.map +1 -0
  83. package/build/browser/public/unstable-do-not-use.js.map +1 -1
  84. package/build/browser/queries/applyQuery.js +7 -12
  85. package/build/browser/queries/applyQuery.js.map +1 -1
  86. package/build/browser/queries/types.js.map +1 -1
  87. package/build/browser/util/UserAgent.js +2 -2
  88. package/build/browser/util/UserAgent.js.map +1 -1
  89. package/build/browser/util/extractObjectOrInterfaceType.js +1 -1
  90. package/build/browser/util/extractObjectOrInterfaceType.js.map +1 -1
  91. package/build/browser/util/extractObjectOrInterfaceType.test.js +2 -2
  92. package/build/browser/util/extractObjectOrInterfaceType.test.js.map +1 -1
  93. package/build/cjs/{Client-CF85LpFu.d.cts → Client-DaUJl7jZ.d.cts} +1 -1
  94. package/build/cjs/{chunk-PCNVSZXT.cjs → chunk-6P7VLXH3.cjs} +161 -473
  95. package/build/cjs/chunk-6P7VLXH3.cjs.map +1 -0
  96. package/build/cjs/chunk-6SCDLAU2.cjs +57 -0
  97. package/build/cjs/chunk-6SCDLAU2.cjs.map +1 -0
  98. package/build/cjs/{chunk-HJV24UL2.cjs → chunk-S3HJUSQ7.cjs} +161 -52
  99. package/build/cjs/chunk-S3HJUSQ7.cjs.map +1 -0
  100. package/build/cjs/{createClient-mOlFts15.d.cts → createClient-MAHmo-Nv.d.cts} +1 -2
  101. package/build/cjs/{delay-QK4T7RVX.cjs → delay-KIUUJ5NJ.cjs} +4 -3
  102. package/build/cjs/delay-KIUUJ5NJ.cjs.map +1 -0
  103. package/build/cjs/index.cjs +17 -13
  104. package/build/cjs/index.cjs.map +1 -1
  105. package/build/cjs/index.d.cts +3 -3
  106. package/build/cjs/public/internal-node.cjs +193767 -0
  107. package/build/cjs/public/internal-node.cjs.map +1 -0
  108. package/build/cjs/public/internal-node.d.cts +29 -0
  109. package/build/cjs/public/internal.cjs +16 -9
  110. package/build/cjs/public/internal.cjs.map +1 -1
  111. package/build/cjs/public/internal.d.cts +1 -1
  112. package/build/cjs/public/unstable-do-not-use.cjs +1067 -709
  113. package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
  114. package/build/cjs/public/unstable-do-not-use.d.cts +69 -4
  115. package/build/esm/MinimalClientContext.js.map +1 -1
  116. package/build/esm/actions/applyAction.js +0 -4
  117. package/build/esm/actions/applyAction.js.map +1 -1
  118. package/build/esm/createClient.js +1 -2
  119. package/build/esm/createClient.js.map +1 -1
  120. package/build/esm/createClient.test.js +19 -1
  121. package/build/esm/createClient.test.js.map +1 -1
  122. package/build/esm/createMinimalClient.js +2 -3
  123. package/build/esm/createMinimalClient.js.map +1 -1
  124. package/build/esm/derivedProperties/createWithPropertiesObjectSet.js +1 -17
  125. package/build/esm/derivedProperties/createWithPropertiesObjectSet.js.map +1 -1
  126. package/build/esm/fetchMetadata.test.js +0 -11
  127. package/build/esm/fetchMetadata.test.js.map +1 -1
  128. package/build/esm/index.js +1 -1
  129. package/build/esm/index.js.map +1 -1
  130. package/build/esm/object/aggregate.js +1 -1
  131. package/build/esm/object/aggregate.js.map +1 -1
  132. package/build/esm/object/convertWireToOsdkObjects/BaseHolder.js.map +1 -1
  133. package/build/esm/object/convertWireToOsdkObjects/InterfaceHolder.js.map +1 -1
  134. package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js +0 -4
  135. package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -1
  136. package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js +0 -10
  137. package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -1
  138. package/build/esm/object/convertWireToOsdkObjects.test.js +0 -12
  139. package/build/esm/object/convertWireToOsdkObjects.test.js.map +1 -1
  140. package/build/esm/object/fetchPage.js +6 -3
  141. package/build/esm/object/fetchPage.js.map +1 -1
  142. package/build/esm/objectSet/createObjectSet.js +3 -3
  143. package/build/esm/objectSet/createObjectSet.js.map +1 -1
  144. package/build/esm/observable/ObservableClient.js.map +1 -1
  145. package/build/esm/observable/internal/Changes.js.map +1 -1
  146. package/build/esm/observable/internal/IntersectCanonicalizer.js +35 -0
  147. package/build/esm/observable/internal/IntersectCanonicalizer.js.map +1 -0
  148. package/build/esm/observable/internal/KnownCacheKey.js.map +1 -1
  149. package/build/esm/observable/internal/ObservableClientImpl.js +3 -0
  150. package/build/esm/observable/internal/ObservableClientImpl.js.map +1 -1
  151. package/build/esm/observable/internal/PivotCanonicalizer.js +33 -0
  152. package/build/esm/observable/internal/PivotCanonicalizer.js.map +1 -0
  153. package/build/esm/observable/internal/Store.js +14 -2
  154. package/build/esm/observable/internal/Store.js.map +1 -1
  155. package/build/esm/observable/internal/WhereClauseCanonicalizer.js.map +1 -1
  156. package/build/esm/observable/internal/aggregation/AggregationCacheKey.js +22 -0
  157. package/build/esm/observable/internal/aggregation/AggregationCacheKey.js.map +1 -0
  158. package/build/esm/observable/internal/aggregation/AggregationQuery.js +77 -0
  159. package/build/esm/observable/internal/aggregation/AggregationQuery.js.map +1 -0
  160. package/build/esm/observable/internal/aggregation/AggregationsHelper.js +54 -0
  161. package/build/esm/observable/internal/aggregation/AggregationsHelper.js.map +1 -0
  162. package/build/esm/observable/internal/aggregation/ObjectAggregationQuery.js +33 -0
  163. package/build/esm/observable/internal/aggregation/ObjectAggregationQuery.js.map +1 -0
  164. package/build/esm/observable/internal/base-list/BaseListQuery.js +4 -2
  165. package/build/esm/observable/internal/base-list/BaseListQuery.js.map +1 -1
  166. package/build/esm/observable/internal/getObjectTypesThatInvalidate.test.js +1 -1
  167. package/build/esm/observable/internal/getObjectTypesThatInvalidate.test.js.map +1 -1
  168. package/build/esm/observable/internal/links/LinksHelper.js +0 -3
  169. package/build/esm/observable/internal/links/LinksHelper.js.map +1 -1
  170. package/build/esm/observable/internal/list/ListCacheKey.js +2 -0
  171. package/build/esm/observable/internal/list/ListCacheKey.js.map +1 -1
  172. package/build/esm/observable/internal/list/ListQuery.js +19 -4
  173. package/build/esm/observable/internal/list/ListQuery.js.map +1 -1
  174. package/build/esm/observable/internal/list/ListQuery.test.js +277 -0
  175. package/build/esm/observable/internal/list/ListQuery.test.js.map +1 -0
  176. package/build/esm/observable/internal/list/ListQueryOptions.js.map +1 -1
  177. package/build/esm/observable/internal/list/ListsHelper.js +9 -3
  178. package/build/esm/observable/internal/list/ListsHelper.js.map +1 -1
  179. package/build/esm/observable/internal/list/ObjectListQuery.js +48 -9
  180. package/build/esm/observable/internal/list/ObjectListQuery.js.map +1 -1
  181. package/build/esm/observable/internal/objectset/ObjectSetQuery.js +7 -1
  182. package/build/esm/observable/internal/objectset/ObjectSetQuery.js.map +1 -1
  183. package/build/esm/observable/internal/objectset/ObjectSetQueryOptions.js.map +1 -1
  184. package/build/esm/observable/internal/testUtils/invalidateList.js +6 -1
  185. package/build/esm/observable/internal/testUtils/invalidateList.js.map +1 -1
  186. package/build/esm/observable/internal/testUtils.js +3 -1
  187. package/build/esm/observable/internal/testUtils.js.map +1 -1
  188. package/build/esm/ontology/loadActionMetadata.js +1 -3
  189. package/build/esm/ontology/loadActionMetadata.js.map +1 -1
  190. package/build/esm/ontology/loadFullObjectMetadata.js +1 -2
  191. package/build/esm/ontology/loadFullObjectMetadata.js.map +1 -1
  192. package/build/esm/ontology/loadInterfaceMetadata.js +1 -2
  193. package/build/esm/ontology/loadInterfaceMetadata.js.map +1 -1
  194. package/build/esm/public/internal-node.js +18 -0
  195. package/build/esm/public/internal-node.js.map +1 -0
  196. package/build/esm/public/unstable-do-not-use.js.map +1 -1
  197. package/build/esm/queries/applyQuery.js +7 -12
  198. package/build/esm/queries/applyQuery.js.map +1 -1
  199. package/build/esm/queries/types.js.map +1 -1
  200. package/build/esm/util/UserAgent.js +2 -2
  201. package/build/esm/util/UserAgent.js.map +1 -1
  202. package/build/esm/util/extractObjectOrInterfaceType.js +1 -1
  203. package/build/esm/util/extractObjectOrInterfaceType.js.map +1 -1
  204. package/build/esm/util/extractObjectOrInterfaceType.test.js +2 -2
  205. package/build/esm/util/extractObjectOrInterfaceType.test.js.map +1 -1
  206. package/build/types/MinimalClientContext.d.ts +2 -3
  207. package/build/types/MinimalClientContext.d.ts.map +1 -1
  208. package/build/types/actions/applyAction.d.ts.map +1 -1
  209. package/build/types/createClient.d.ts +0 -1
  210. package/build/types/createClient.d.ts.map +1 -1
  211. package/build/types/index.d.ts +1 -1
  212. package/build/types/index.d.ts.map +1 -1
  213. package/build/types/observable/ObservableClient.d.ts +62 -1
  214. package/build/types/observable/ObservableClient.d.ts.map +1 -1
  215. package/build/types/observable/internal/Changes.d.ts +4 -3
  216. package/build/types/observable/internal/Changes.d.ts.map +1 -1
  217. package/build/types/observable/internal/IntersectCanonicalizer.d.ts +18 -0
  218. package/build/types/observable/internal/IntersectCanonicalizer.d.ts.map +1 -0
  219. package/build/types/observable/internal/KnownCacheKey.d.ts +2 -1
  220. package/build/types/observable/internal/KnownCacheKey.d.ts.map +1 -1
  221. package/build/types/observable/internal/PivotCanonicalizer.d.ts +10 -0
  222. package/build/types/observable/internal/PivotCanonicalizer.d.ts.map +1 -0
  223. package/build/types/observable/internal/Store.d.ts +6 -0
  224. package/build/types/observable/internal/Store.d.ts.map +1 -1
  225. package/build/types/observable/internal/WhereClauseCanonicalizer.d.ts.map +1 -1
  226. package/build/types/observable/internal/aggregation/AggregationCacheKey.d.ts +12 -0
  227. package/build/types/observable/internal/aggregation/AggregationCacheKey.d.ts.map +1 -0
  228. package/build/types/observable/internal/aggregation/AggregationQuery.d.ts +49 -0
  229. package/build/types/observable/internal/aggregation/AggregationQuery.d.ts.map +1 -0
  230. package/build/types/observable/internal/aggregation/AggregationsHelper.d.ts +37 -0
  231. package/build/types/observable/internal/aggregation/AggregationsHelper.d.ts.map +1 -0
  232. package/build/types/observable/internal/aggregation/ObjectAggregationQuery.d.ts +5 -0
  233. package/build/types/observable/internal/aggregation/ObjectAggregationQuery.d.ts.map +1 -0
  234. package/build/types/observable/internal/base-list/BaseListQuery.d.ts.map +1 -1
  235. package/build/types/observable/internal/links/LinksHelper.d.ts +0 -4
  236. package/build/types/observable/internal/links/LinksHelper.d.ts.map +1 -1
  237. package/build/types/observable/internal/list/ListCacheKey.d.ts +4 -1
  238. package/build/types/observable/internal/list/ListCacheKey.d.ts.map +1 -1
  239. package/build/types/observable/internal/list/ListQuery.d.ts +4 -1
  240. package/build/types/observable/internal/list/ListQuery.d.ts.map +1 -1
  241. package/build/types/observable/internal/list/ListQuery.test.d.ts.map +1 -0
  242. package/build/types/observable/internal/list/ListQueryOptions.d.ts +10 -1
  243. package/build/types/observable/internal/list/ListQueryOptions.d.ts.map +1 -1
  244. package/build/types/observable/internal/list/ListsHelper.d.ts +5 -1
  245. package/build/types/observable/internal/list/ListsHelper.d.ts.map +1 -1
  246. package/build/types/observable/internal/list/ObjectListQuery.d.ts.map +1 -1
  247. package/build/types/observable/internal/objectset/ObjectSetQuery.d.ts.map +1 -1
  248. package/build/types/observable/internal/objectset/ObjectSetQueryOptions.d.ts +15 -0
  249. package/build/types/observable/internal/objectset/ObjectSetQueryOptions.d.ts.map +1 -1
  250. package/build/types/observable/internal/testUtils.d.ts +2 -2
  251. package/build/types/observable/internal/testUtils.d.ts.map +1 -1
  252. package/build/types/public/internal-node.d.ts +2 -0
  253. package/build/types/public/internal-node.d.ts.map +1 -0
  254. package/build/types/public/unstable-do-not-use.d.ts +1 -1
  255. package/build/types/public/unstable-do-not-use.d.ts.map +1 -1
  256. package/build/types/queries/applyQuery.d.ts.map +1 -1
  257. package/build/types/queries/types.d.ts +1 -1
  258. package/build/types/queries/types.d.ts.map +1 -1
  259. package/internal-node.d.ts +17 -0
  260. package/package.json +22 -13
  261. package/build/browser/object/formatting/applyPropertyFormatter.js +0 -58
  262. package/build/browser/object/formatting/applyPropertyFormatter.js.map +0 -1
  263. package/build/browser/object/formatting/applyPropertyFormatter.test.js +0 -726
  264. package/build/browser/object/formatting/applyPropertyFormatter.test.js.map +0 -1
  265. package/build/browser/object/formatting/formatBoolean.js.map +0 -1
  266. package/build/browser/object/formatting/formatDateTime.js +0 -158
  267. package/build/browser/object/formatting/formatDateTime.js.map +0 -1
  268. package/build/browser/object/formatting/formatNumber.js +0 -242
  269. package/build/browser/object/formatting/formatNumber.js.map +0 -1
  270. package/build/browser/object/formatting/propertyFormattingUtils.js.map +0 -1
  271. package/build/cjs/chunk-HJV24UL2.cjs.map +0 -1
  272. package/build/cjs/chunk-PCNVSZXT.cjs.map +0 -1
  273. package/build/cjs/chunk-Q7SFCCGT.cjs +0 -11
  274. package/build/cjs/chunk-Q7SFCCGT.cjs.map +0 -1
  275. package/build/cjs/delay-QK4T7RVX.cjs.map +0 -1
  276. package/build/esm/object/formatting/applyPropertyFormatter.js +0 -58
  277. package/build/esm/object/formatting/applyPropertyFormatter.js.map +0 -1
  278. package/build/esm/object/formatting/applyPropertyFormatter.test.js +0 -726
  279. package/build/esm/object/formatting/applyPropertyFormatter.test.js.map +0 -1
  280. package/build/esm/object/formatting/formatBoolean.js.map +0 -1
  281. package/build/esm/object/formatting/formatDateTime.js +0 -158
  282. package/build/esm/object/formatting/formatDateTime.js.map +0 -1
  283. package/build/esm/object/formatting/formatNumber.js +0 -242
  284. package/build/esm/object/formatting/formatNumber.js.map +0 -1
  285. package/build/esm/object/formatting/propertyFormattingUtils.js.map +0 -1
  286. package/build/types/object/formatting/applyPropertyFormatter.d.ts +0 -18
  287. package/build/types/object/formatting/applyPropertyFormatter.d.ts.map +0 -1
  288. package/build/types/object/formatting/applyPropertyFormatter.test.d.ts.map +0 -1
  289. package/build/types/object/formatting/formatBoolean.d.ts +0 -5
  290. package/build/types/object/formatting/formatBoolean.d.ts.map +0 -1
  291. package/build/types/object/formatting/formatDateTime.d.ts +0 -6
  292. package/build/types/object/formatting/formatDateTime.d.ts.map +0 -1
  293. package/build/types/object/formatting/formatNumber.d.ts +0 -15
  294. package/build/types/object/formatting/formatNumber.d.ts.map +0 -1
  295. package/build/types/object/formatting/propertyFormattingUtils.d.ts +0 -10
  296. package/build/types/object/formatting/propertyFormattingUtils.d.ts.map +0 -1
  297. /package/build/types/{object/formatting/applyPropertyFormatter.test.d.ts → observable/internal/list/ListQuery.test.d.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkHJV24UL2_cjs = require('./chunk-HJV24UL2.cjs');
4
- var chunkQ7SFCCGT_cjs = require('./chunk-Q7SFCCGT.cjs');
3
+ var chunkS3HJUSQ7_cjs = require('./chunk-S3HJUSQ7.cjs');
4
+ var chunk6SCDLAU2_cjs = require('./chunk-6SCDLAU2.cjs');
5
5
  var unstable = require('@osdk/api/unstable');
6
6
  var client_unstable = require('@osdk/client.unstable');
7
7
  var invariant = require('tiny-invariant');
@@ -14,6 +14,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
14
14
  var invariant__default = /*#__PURE__*/_interopDefault(invariant);
15
15
 
16
16
  // src/actions/ActionValidationError.ts
17
+ chunk6SCDLAU2_cjs.init_cjs_shims();
17
18
  var ActionValidationError = class extends Error {
18
19
  constructor(validation) {
19
20
  super("Validation Error: " + JSON.stringify(validation, null, 2));
@@ -22,6 +23,7 @@ var ActionValidationError = class extends Error {
22
23
  };
23
24
 
24
25
  // src/object/AttachmentUpload.ts
26
+ chunk6SCDLAU2_cjs.init_cjs_shims();
25
27
  function isAttachmentUpload(o) {
26
28
  return typeof o === `object` && "name" in o && "data" in o && o.data instanceof Blob;
27
29
  }
@@ -36,6 +38,7 @@ function createAttachmentUpload(data, name) {
36
38
  }
37
39
 
38
40
  // src/util/objectSpecifierUtils.ts
41
+ chunk6SCDLAU2_cjs.init_cjs_shims();
39
42
  function createObjectSpecifierFromPrimaryKey(objectDef, primaryKey) {
40
43
  return `${objectDef.apiName}:${primaryKey}`;
41
44
  }
@@ -46,7 +49,14 @@ function extractPrimaryKeyFromObjectSpecifier(ObjectSpecifier) {
46
49
  return ObjectSpecifier.split(":")[1];
47
50
  }
48
51
 
52
+ // src/createClient.ts
53
+ chunk6SCDLAU2_cjs.init_cjs_shims();
54
+
55
+ // src/__unstable/createBulkLinksAsyncIterFactory.ts
56
+ chunk6SCDLAU2_cjs.init_cjs_shims();
57
+
49
58
  // src/objectSet/conjureUnionType.ts
59
+ chunk6SCDLAU2_cjs.init_cjs_shims();
50
60
  function conjureUnionType(type, value) {
51
61
  return {
52
62
  type,
@@ -55,6 +65,7 @@ function conjureUnionType(type, value) {
55
65
  }
56
66
 
57
67
  // src/ontology/makeConjureContext.ts
68
+ chunk6SCDLAU2_cjs.init_cjs_shims();
58
69
  function makeConjureContext({
59
70
  baseUrl,
60
71
  fetch: fetchFn,
@@ -69,6 +80,7 @@ function makeConjureContext({
69
80
  }
70
81
 
71
82
  // src/pageRequestAsAsyncIter.ts
83
+ chunk6SCDLAU2_cjs.init_cjs_shims();
72
84
  function getResults(x) {
73
85
  return x.results;
74
86
  }
@@ -91,7 +103,11 @@ async function* pageRequestAsAsyncIter(call, values, nextArgs, initialPayload) {
91
103
  }
92
104
  }
93
105
 
106
+ // src/__unstable/ConjureSupport.ts
107
+ chunk6SCDLAU2_cjs.init_cjs_shims();
108
+
94
109
  // src/object/SimpleCache.ts
110
+ chunk6SCDLAU2_cjs.init_cjs_shims();
95
111
  function createSimpleCache(map = /* @__PURE__ */ new Map(), fn) {
96
112
  function get(key) {
97
113
  const r = map.get(key);
@@ -392,9 +408,18 @@ function getPrimaryKeyOrThrow(ref) {
392
408
  };
393
409
  }
394
410
 
395
- // ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.38.0/node_modules/@osdk/foundry.mediasets/build/esm/public/MediaSet.js
411
+ // src/actions/applyAction.ts
412
+ chunk6SCDLAU2_cjs.init_cjs_shims();
413
+
414
+ // src/util/toDataValue.ts
415
+ chunk6SCDLAU2_cjs.init_cjs_shims();
416
+
417
+ // ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.42.0/node_modules/@osdk/foundry.mediasets/build/esm/index.js
418
+ chunk6SCDLAU2_cjs.init_cjs_shims();
419
+
420
+ // ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.42.0/node_modules/@osdk/foundry.mediasets/build/esm/public/MediaSet.js
396
421
  var MediaSet_exports = {};
397
- chunkQ7SFCCGT_cjs.__export(MediaSet_exports, {
422
+ chunk6SCDLAU2_cjs.__export(MediaSet_exports, {
398
423
  abort: () => abort,
399
424
  calculate: () => calculate,
400
425
  commit: () => commit,
@@ -408,56 +433,58 @@ chunkQ7SFCCGT_cjs.__export(MediaSet_exports, {
408
433
  upload: () => upload,
409
434
  uploadMedia: () => uploadMedia
410
435
  });
436
+ chunk6SCDLAU2_cjs.init_cjs_shims();
411
437
  var _abort = [1, "/v2/mediasets/{0}/transactions/{1}/abort", 2];
412
438
  function abort($ctx, ...args) {
413
- return chunkHJV24UL2_cjs.foundryPlatformFetch($ctx, _abort, ...args);
439
+ return chunkS3HJUSQ7_cjs.foundryPlatformFetch($ctx, _abort, ...args);
414
440
  }
415
441
  var _calculate = [0, "/v2/mediasets/{0}/items/{1}/transform/imagery/thumbnail/calculate", 6];
416
442
  function calculate($ctx, ...args) {
417
- return chunkHJV24UL2_cjs.foundryPlatformFetch($ctx, _calculate, ...args);
443
+ return chunkS3HJUSQ7_cjs.foundryPlatformFetch($ctx, _calculate, ...args);
418
444
  }
419
445
  var _commit = [1, "/v2/mediasets/{0}/transactions/{1}/commit", 2];
420
446
  function commit($ctx, ...args) {
421
- return chunkHJV24UL2_cjs.foundryPlatformFetch($ctx, _commit, ...args);
447
+ return chunkS3HJUSQ7_cjs.foundryPlatformFetch($ctx, _commit, ...args);
422
448
  }
423
449
  var _create = [1, "/v2/mediasets/{0}/transactions", 2];
424
450
  function create($ctx, ...args) {
425
- return chunkHJV24UL2_cjs.foundryPlatformFetch($ctx, _create, ...args);
451
+ return chunkS3HJUSQ7_cjs.foundryPlatformFetch($ctx, _create, ...args);
426
452
  }
427
453
  var _info = [0, "/v2/mediasets/{0}/items/{1}", 6];
428
454
  function info($ctx, ...args) {
429
- return chunkHJV24UL2_cjs.foundryPlatformFetch($ctx, _info, ...args);
455
+ return chunkS3HJUSQ7_cjs.foundryPlatformFetch($ctx, _info, ...args);
430
456
  }
431
457
  var _reference = [0, "/v2/mediasets/{0}/items/{1}/reference", 6];
432
458
  function reference($ctx, ...args) {
433
- return chunkHJV24UL2_cjs.foundryPlatformFetch($ctx, _reference, ...args);
459
+ return chunkS3HJUSQ7_cjs.foundryPlatformFetch($ctx, _reference, ...args);
434
460
  }
435
461
  var _getRidByPath = [0, "/v2/mediasets/{0}/items/getRidByPath", 2];
436
462
  function getRidByPath($ctx, ...args) {
437
- return chunkHJV24UL2_cjs.foundryPlatformFetch($ctx, _getRidByPath, ...args);
463
+ return chunkS3HJUSQ7_cjs.foundryPlatformFetch($ctx, _getRidByPath, ...args);
438
464
  }
439
465
  var _upload = [1, "/v2/mediasets/{0}/items", 3, "*/*"];
440
466
  function upload($ctx, ...args) {
441
- return chunkHJV24UL2_cjs.foundryPlatformFetch($ctx, _upload, ...args);
467
+ return chunkS3HJUSQ7_cjs.foundryPlatformFetch($ctx, _upload, ...args);
442
468
  }
443
469
  var _read = [0, "/v2/mediasets/{0}/items/{1}/content", 6, , "*/*"];
444
470
  function read($ctx, ...args) {
445
- return chunkHJV24UL2_cjs.foundryPlatformFetch($ctx, _read, ...args);
471
+ return chunkS3HJUSQ7_cjs.foundryPlatformFetch($ctx, _read, ...args);
446
472
  }
447
473
  var _readOriginal = [0, "/v2/mediasets/{0}/items/{1}/original", 6, , "*/*"];
448
474
  function readOriginal($ctx, ...args) {
449
- return chunkHJV24UL2_cjs.foundryPlatformFetch($ctx, _readOriginal, ...args);
475
+ return chunkS3HJUSQ7_cjs.foundryPlatformFetch($ctx, _readOriginal, ...args);
450
476
  }
451
477
  var _retrieve = [0, "/v2/mediasets/{0}/items/{1}/transform/imagery/thumbnail/retrieve", 6, , "*/*"];
452
478
  function retrieve($ctx, ...args) {
453
- return chunkHJV24UL2_cjs.foundryPlatformFetch($ctx, _retrieve, ...args);
479
+ return chunkS3HJUSQ7_cjs.foundryPlatformFetch($ctx, _retrieve, ...args);
454
480
  }
455
481
  var _uploadMedia = [2, "/v2/mediasets/media/upload", 7, "*/*"];
456
482
  function uploadMedia($ctx, ...args) {
457
- return chunkHJV24UL2_cjs.foundryPlatformFetch($ctx, _uploadMedia, ...args);
483
+ return chunkS3HJUSQ7_cjs.foundryPlatformFetch($ctx, _uploadMedia, ...args);
458
484
  }
459
485
 
460
486
  // src/object/mediaUpload.ts
487
+ chunk6SCDLAU2_cjs.init_cjs_shims();
461
488
  function isMediaReference(o) {
462
489
  return typeof o === `object` && typeof o.mimeType === "string" && "reference" in o && typeof o.reference === "object" && o.reference.type === "mediaSetViewItem" && "mediaSetViewItem" in o.reference && typeof o.reference.mediaSetViewItem === "object" && typeof o.reference.mediaSetViewItem.mediaSetRid === "string" && typeof o.reference.mediaSetViewItem.mediaSetViewRid === "string" && typeof o.reference.mediaSetViewItem.mediaItemRid === "string";
463
490
  }
@@ -466,6 +493,7 @@ function isMediaUpload(o) {
466
493
  }
467
494
 
468
495
  // src/util/interfaceUtils.ts
496
+ chunk6SCDLAU2_cjs.init_cjs_shims();
469
497
  function isInterfaceActionParam(o) {
470
498
  return o != null && typeof o === "object" && "$objectType" in o && "$primaryKey" in o;
471
499
  }
@@ -477,16 +505,19 @@ function isInterfaceSpecifier(o) {
477
505
  }
478
506
 
479
507
  // src/util/isObjectSpecifiersObject.ts
508
+ chunk6SCDLAU2_cjs.init_cjs_shims();
480
509
  function isObjectSpecifiersObject(o) {
481
510
  return o && typeof o === "object" && typeof o.$apiName === "string" && o.$primaryKey != null;
482
511
  }
483
512
 
484
513
  // src/util/isOntologyObjectV2.ts
514
+ chunk6SCDLAU2_cjs.init_cjs_shims();
485
515
  function isOntologyObjectV2(o) {
486
516
  return o && typeof o === "object" && typeof o.__apiName === "string" && o.__primaryKey != null;
487
517
  }
488
518
 
489
519
  // src/util/isPoint.ts
520
+ chunk6SCDLAU2_cjs.init_cjs_shims();
490
521
  function isPoint(o) {
491
522
  return o && typeof o === "object" && "type" in o && o.type === "Point" && "coordinates" in o && o.coordinates.length === 2;
492
523
  }
@@ -512,13 +543,13 @@ async function toDataValue(value, client, actionMetadata) {
512
543
  return Promise.all(promiseArray);
513
544
  }
514
545
  if (isAttachmentUpload(value)) {
515
- const attachment = await chunkHJV24UL2_cjs.Attachment_exports.upload(client, value.data, {
546
+ const attachment = await chunkS3HJUSQ7_cjs.Attachment_exports.upload(client, value.data, {
516
547
  filename: value.name
517
548
  });
518
549
  return await toDataValue(attachment.rid, client);
519
550
  }
520
551
  if (isAttachmentFile(value)) {
521
- const attachment = await chunkHJV24UL2_cjs.Attachment_exports.upload(client, value, {
552
+ const attachment = await chunkS3HJUSQ7_cjs.Attachment_exports.upload(client, value, {
522
553
  filename: value.name
523
554
  });
524
555
  return await toDataValue(attachment.rid, client);
@@ -539,11 +570,11 @@ async function toDataValue(value, client, actionMetadata) {
539
570
  if (isPoint(value)) {
540
571
  return await toDataValue(`${value.coordinates[1]},${value.coordinates[0]}`, client);
541
572
  }
542
- if (chunkHJV24UL2_cjs.isWireObjectSet(value)) {
573
+ if (chunkS3HJUSQ7_cjs.isWireObjectSet(value)) {
543
574
  return value;
544
575
  }
545
- if (chunkHJV24UL2_cjs.isObjectSet(value)) {
546
- return chunkHJV24UL2_cjs.getWireObjectSet(value);
576
+ if (chunkS3HJUSQ7_cjs.isObjectSet(value)) {
577
+ return chunkS3HJUSQ7_cjs.getWireObjectSet(value);
547
578
  }
548
579
  if (isMediaReference(value)) {
549
580
  return value;
@@ -566,29 +597,25 @@ async function toDataValue(value, client, actionMetadata) {
566
597
 
567
598
  // src/actions/applyAction.ts
568
599
  async function applyAction(client, action, parameters, options = {}) {
569
- const clientWithHeaders = chunkHJV24UL2_cjs.addUserAgentAndRequestContextHeaders(chunkHJV24UL2_cjs.augmentRequestContext(client, (_) => ({
600
+ const clientWithHeaders = chunkS3HJUSQ7_cjs.addUserAgentAndRequestContextHeaders(chunkS3HJUSQ7_cjs.augmentRequestContext(client, (_) => ({
570
601
  finalMethodCall: "applyAction"
571
602
  })), action);
572
603
  if (Array.isArray(parameters)) {
573
- const response = await chunkHJV24UL2_cjs.Action_exports.applyBatch(clientWithHeaders, await client.ontologyRid, action.apiName, {
604
+ const response = await chunkS3HJUSQ7_cjs.Action_exports.applyBatch(clientWithHeaders, await client.ontologyRid, action.apiName, {
574
605
  requests: parameters ? await remapBatchActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)) : [],
575
606
  options: {
576
607
  returnEdits: options?.$returnEdits ? "ALL" : "NONE"
577
608
  }
578
- }, {
579
- branch: client.branch
580
609
  });
581
610
  const edits = response.edits;
582
611
  return options?.$returnEdits ? edits?.type === "edits" ? remapActionResponse(response) : edits : void 0;
583
612
  } else {
584
- const response = await chunkHJV24UL2_cjs.Action_exports.apply(clientWithHeaders, await client.ontologyRid, action.apiName, {
613
+ const response = await chunkS3HJUSQ7_cjs.Action_exports.apply(clientWithHeaders, await client.ontologyRid, action.apiName, {
585
614
  parameters: await remapActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)),
586
615
  options: {
587
616
  mode: options?.$validateOnly ? "VALIDATE_ONLY" : "VALIDATE_AND_EXECUTE",
588
617
  returnEdits: options?.$returnEdits ? "ALL_V2_WITH_DELETIONS" : "NONE"
589
618
  }
590
- }, {
591
- branch: client.branch
592
619
  });
593
620
  if (options?.$validateOnly) {
594
621
  return response.validation;
@@ -669,7 +696,23 @@ function remapActionResponse(response) {
669
696
  }
670
697
  }
671
698
 
699
+ // src/createMinimalClient.ts
700
+ chunk6SCDLAU2_cjs.init_cjs_shims();
701
+
702
+ // src/object/convertWireToOsdkObjects.ts
703
+ chunk6SCDLAU2_cjs.init_cjs_shims();
704
+
705
+ // src/object/convertWireToOsdkObjects/createOsdkObject.ts
706
+ chunk6SCDLAU2_cjs.init_cjs_shims();
707
+
708
+ // src/createGeotimeSeriesProperty.ts
709
+ chunk6SCDLAU2_cjs.init_cjs_shims();
710
+
711
+ // src/util/timeseriesUtils.ts
712
+ chunk6SCDLAU2_cjs.init_cjs_shims();
713
+
672
714
  // src/util/streamutils.ts
715
+ chunk6SCDLAU2_cjs.init_cjs_shims();
673
716
  var START_TOKEN = new Uint8Array([123, 34, 100, 97, 116, 97, 34, 58, 91]);
674
717
  var OBJECT_OPEN_CHAR_CODE = 123;
675
718
  var OBJECT_CLOSE_CHAR_CODE = 125;
@@ -788,7 +831,7 @@ var GeotimeSeriesPropertyImpl = class {
788
831
  }
789
832
  }
790
833
  async getLatestValue() {
791
- const latestPointPromise = chunkHJV24UL2_cjs.TimeSeriesValueBankProperty_exports.getLatestValue(this.#client, await this.#client.ontologyRid, ...this.#triplet);
834
+ const latestPointPromise = chunkS3HJUSQ7_cjs.TimeSeriesValueBankProperty_exports.getLatestValue(this.#client, await this.#client.ontologyRid, ...this.#triplet);
792
835
  latestPointPromise.then(
793
836
  (latestPoint) => this.lastFetchedValue = latestPoint,
794
837
  // eslint-disable-next-line no-console
@@ -804,7 +847,7 @@ var GeotimeSeriesPropertyImpl = class {
804
847
  return allPoints;
805
848
  }
806
849
  async *asyncIterValues(query) {
807
- const streamPointsIterator = await chunkHJV24UL2_cjs.TimeSeriesValueBankProperty_exports.streamValues(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
850
+ const streamPointsIterator = await chunkS3HJUSQ7_cjs.TimeSeriesValueBankProperty_exports.streamValues(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
808
851
  range: getTimeRange(query)
809
852
  } : {});
810
853
  for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
@@ -814,6 +857,7 @@ var GeotimeSeriesPropertyImpl = class {
814
857
  };
815
858
 
816
859
  // src/createMediaReferenceProperty.ts
860
+ chunk6SCDLAU2_cjs.init_cjs_shims();
817
861
  var MediaReferencePropertyImpl = class {
818
862
  #mediaReference;
819
863
  #triplet;
@@ -831,13 +875,13 @@ var MediaReferencePropertyImpl = class {
831
875
  this.#mediaReference = mediaReference;
832
876
  }
833
877
  async fetchContents() {
834
- return chunkHJV24UL2_cjs.MediaReferenceProperty_exports.getMediaContent(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
878
+ return chunkS3HJUSQ7_cjs.MediaReferenceProperty_exports.getMediaContent(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
835
879
  preview: true
836
880
  // TODO: Can turn this back off when backend is no longer in beta.
837
881
  });
838
882
  }
839
883
  async fetchMetadata() {
840
- const r = await chunkHJV24UL2_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
884
+ const r = await chunkS3HJUSQ7_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
841
885
  preview: true
842
886
  // TODO: Can turn this back off when backend is no longer in beta.
843
887
  });
@@ -853,6 +897,7 @@ var MediaReferencePropertyImpl = class {
853
897
  };
854
898
 
855
899
  // src/createTimeseriesProperty.ts
900
+ chunk6SCDLAU2_cjs.init_cjs_shims();
856
901
  var TimeSeriesPropertyImpl = class {
857
902
  #triplet;
858
903
  #client;
@@ -861,10 +906,10 @@ var TimeSeriesPropertyImpl = class {
861
906
  this.#triplet = [objectApiName, primaryKey, propertyName];
862
907
  }
863
908
  async getFirstPoint() {
864
- return chunkHJV24UL2_cjs.TimeSeriesPropertyV2_exports.getFirstPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
909
+ return chunkS3HJUSQ7_cjs.TimeSeriesPropertyV2_exports.getFirstPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
865
910
  }
866
911
  async getLastPoint() {
867
- return chunkHJV24UL2_cjs.TimeSeriesPropertyV2_exports.getLastPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
912
+ return chunkS3HJUSQ7_cjs.TimeSeriesPropertyV2_exports.getLastPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
868
913
  }
869
914
  async getAllPoints(query) {
870
915
  const allPoints = [];
@@ -874,7 +919,7 @@ var TimeSeriesPropertyImpl = class {
874
919
  return allPoints;
875
920
  }
876
921
  async *asyncIterPoints(query) {
877
- const streamPointsIterator = await chunkHJV24UL2_cjs.TimeSeriesPropertyV2_exports.streamPoints(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
922
+ const streamPointsIterator = await chunkS3HJUSQ7_cjs.TimeSeriesPropertyV2_exports.streamPoints(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
878
923
  range: getTimeRange(query)
879
924
  } : {});
880
925
  for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
@@ -883,378 +928,21 @@ var TimeSeriesPropertyImpl = class {
883
928
  }
884
929
  };
885
930
 
886
- // src/object/formatting/formatBoolean.ts
887
- function formatBoolean(value, rule) {
888
- return value ? rule.valueIfTrue : rule.valueIfFalse;
889
- }
890
-
891
- // src/object/formatting/propertyFormattingUtils.ts
892
- function resolvePropertyReference(ref, objectData) {
893
- if (ref.type === "constant") {
894
- return ref.value;
895
- } else if (ref.type === "propertyType") {
896
- const value = objectData[ref.propertyApiName];
897
- return value != null ? String(value) : void 0;
898
- }
899
- return void 0;
900
- }
901
- function getBrowserLocale() {
902
- if (typeof navigator !== "undefined" && navigator.language != null) {
903
- return navigator.language;
904
- }
905
- return "en-US";
906
- }
907
-
908
- // src/object/formatting/formatDateTime.ts
909
- function formatDateTime(value, format, timezone, objectData, locale, userTimezoneOverride) {
910
- const date = value instanceof Date ? value : new Date(value);
911
- if (isNaN(date.getTime())) {
912
- return void 0;
913
- }
914
- const resolvedTimezone = resolveTimezone(timezone, objectData, userTimezoneOverride);
915
- switch (format.type) {
916
- case "localizedFormat":
917
- return formatLocalized(date, format, locale, resolvedTimezone);
918
- case "stringFormat":
919
- return void 0;
920
- default:
921
- return void 0;
922
- }
923
- }
924
- var INVALID_DATE_STRING = "Invalid date or timezone";
925
- function formatLocalized(date, format, locale, timezone) {
926
- if (format.format === "DATE_FORMAT_ISO_INSTANT") {
927
- return date.toISOString();
928
- }
929
- if (format.format === "DATE_FORMAT_RELATIVE_TO_NOW") {
930
- return formatRelativeToNow(date, locale, timezone);
931
- }
932
- const options = getLocalizedFormatOptions(format.format);
933
- try {
934
- return new Intl.DateTimeFormat(locale, timezone ? {
935
- ...options,
936
- timeZone: timezone
937
- } : options).format(date);
938
- } catch (_e) {
939
- return INVALID_DATE_STRING;
940
- }
941
- }
942
- function getLocalizedFormatOptions(format) {
943
- switch (format) {
944
- case "DATE_FORMAT_DATE":
945
- return FORMAT_DATE;
946
- case "DATE_FORMAT_YEAR_AND_MONTH":
947
- return FORMAT_YEAR_AND_MONTH;
948
- case "DATE_FORMAT_DATE_TIME":
949
- return FORMAT_DATE_TIME;
950
- case "DATE_FORMAT_DATE_TIME_SHORT":
951
- return FORMAT_DATE_TIME_SHORT;
952
- case "DATE_FORMAT_TIME":
953
- return FORMAT_TIME;
954
- default:
955
- return {};
956
- }
957
- }
958
- var FORMAT_DATE = {
959
- day: "numeric",
960
- month: "short",
961
- weekday: "short",
962
- year: "numeric"
963
- };
964
- var FORMAT_YEAR_AND_MONTH = {
965
- month: "short",
966
- year: "numeric"
967
- };
968
- var FORMAT_DATE_TIME = {
969
- day: "numeric",
970
- month: "short",
971
- weekday: "short",
972
- year: "numeric",
973
- hour: "numeric",
974
- minute: "numeric",
975
- second: "numeric"
976
- };
977
- var FORMAT_DATE_TIME_SHORT = {
978
- day: "numeric",
979
- month: "short",
980
- year: "numeric",
981
- hour: "numeric",
982
- minute: "numeric"
983
- };
984
- var FORMAT_TIME = {
985
- hour: "numeric",
986
- minute: "numeric",
987
- second: "numeric"
988
- };
989
- var DATE_TIME_SHORT_WITH_WEEKDAY = {
990
- day: "numeric",
991
- month: "short",
992
- weekday: "short",
993
- year: "numeric",
994
- hour: "numeric",
995
- minute: "numeric"
996
- };
997
- function resolveTimezone(timezone, objectData, userTimezoneOverride) {
998
- if (userTimezoneOverride != null) {
999
- return userTimezoneOverride;
1000
- }
1001
- if (timezone == null) {
1002
- return void 0;
1003
- }
1004
- switch (timezone.type) {
1005
- case "user":
1006
- return void 0;
1007
- case "static":
1008
- return resolvePropertyReference(timezone.zoneId, objectData);
1009
- default:
1010
- return void 0;
1011
- }
1012
- }
1013
- var SECOND_MS = 1e3;
1014
- var MINUTE_MS = 60 * SECOND_MS;
1015
- var HOUR_MS = 60 * MINUTE_MS;
1016
- var DAY_MS = 24 * HOUR_MS;
1017
- function formatRelativeToNow(date, locale, timezone) {
1018
- const now = Date.now();
1019
- const diff = date.valueOf() - now;
1020
- const absDiff = Math.abs(diff);
1021
- if (absDiff >= DAY_MS) {
1022
- const dtf = new Intl.DateTimeFormat(locale, {
1023
- ...DATE_TIME_SHORT_WITH_WEEKDAY,
1024
- timeZone: timezone
1025
- });
1026
- return dtf.format(date);
1027
- }
1028
- const rtf = new Intl.RelativeTimeFormat(locale, {
1029
- numeric: "auto"
1030
- });
1031
- const units = [["hour", HOUR_MS], ["minute", MINUTE_MS], ["second", SECOND_MS]];
1032
- for (const [unit, ms] of units) {
1033
- if (absDiff >= ms) {
1034
- return rtf.format(Math.floor(diff / ms), unit);
1035
- }
1036
- }
1037
- return rtf.format(0, "second");
1038
- }
1039
-
1040
- // src/object/formatting/formatNumber.ts
1041
- function formatNumber(value, numberType, objectData, locale) {
1042
- switch (numberType.type) {
1043
- case "standard":
1044
- return formatStandardNumber(value, numberType.baseFormatOptions, locale);
1045
- case "fixedValues":
1046
- return numberType.values[value];
1047
- case "currency":
1048
- return formatCurrency(value, numberType, objectData, locale);
1049
- case "standardUnit":
1050
- return formatStandardUnit(value, numberType, objectData, locale);
1051
- case "customUnit":
1052
- return formatCustomUnit(value, numberType, objectData, locale);
1053
- case "affix":
1054
- return formatAffix(value, numberType, objectData, locale);
1055
- case "duration":
1056
- return void 0;
1057
- case "scale":
1058
- return formatScale(value, numberType, locale);
1059
- case "ratio":
1060
- return formatRatio(value, numberType, locale);
1061
- default:
1062
- return void 0;
1063
- }
1064
- }
1065
- function formatStandardNumber(value, options, locale) {
1066
- return formatNumberWithAffixes(value, options, locale);
1067
- }
1068
- function formatCurrency(value, rule, objectData, locale) {
1069
- const currencyCode = resolvePropertyReference(rule.currencyCode, objectData);
1070
- if (currencyCode == null) {
1071
- return formatStandardNumber(value, rule.baseFormatOptions, locale);
1072
- }
1073
- const options = {
1074
- ...convertToIntlOptions(rule.baseFormatOptions),
1075
- style: "currency",
1076
- currency: currencyCode,
1077
- currencyDisplay: rule.style === "COMPACT" ? "narrowSymbol" : "symbol"
1078
- };
1079
- return formatWithIntl(value, options, locale);
1080
- }
1081
- function formatStandardUnit(value, rule, objectData, locale) {
1082
- const unit = resolvePropertyReference(rule.unit, objectData);
1083
- if (unit == null) {
1084
- return formatStandardNumber(value, rule.baseFormatOptions, locale);
1085
- }
1086
- const options = {
1087
- ...convertToIntlOptions(rule.baseFormatOptions),
1088
- style: "unit",
1089
- unit
1090
- };
1091
- try {
1092
- return formatWithIntl(value, options, locale);
1093
- } catch (error) {
1094
- const suffix = ` ${unit}`;
1095
- return formatNumberWithAffixes(value, rule.baseFormatOptions, locale, "", suffix);
1096
- }
1097
- }
1098
- function formatCustomUnit(value, rule, objectData, locale) {
1099
- const unit = resolvePropertyReference(rule.unit, objectData);
1100
- const suffix = unit != null ? ` ${unit}` : "";
1101
- return formatNumberWithAffixes(value, rule.baseFormatOptions, locale, "", suffix);
1102
- }
1103
- function formatAffix(value, rule, objectData, locale) {
1104
- const prefix = rule.affix.prefix != null ? resolvePropertyReference(rule.affix.prefix, objectData) ?? "" : "";
1105
- const suffix = rule.affix.postfix != null ? resolvePropertyReference(rule.affix.postfix, objectData) ?? "" : "";
1106
- return formatNumberWithAffixes(value, rule.baseFormatOptions, locale, prefix, suffix);
1107
- }
1108
- function getScaleDivisor(scaleType) {
1109
- switch (scaleType) {
1110
- case "THOUSANDS":
1111
- return 1e3;
1112
- case "MILLIONS":
1113
- return 1e6;
1114
- case "BILLIONS":
1115
- return 1e9;
1116
- default:
1117
- throw new Error(`Unknown scale type: ${scaleType}`);
1118
- }
1119
- }
1120
- function getLocalizedCompactSuffix(scaleDivisor, locale) {
1121
- const compactFormatter = new Intl.NumberFormat(locale, {
1122
- notation: "compact",
1123
- compactDisplay: "short"
1124
- });
1125
- const parts = compactFormatter.formatToParts(scaleDivisor);
1126
- const compactPart = parts.find((p) => p.type === "compact");
1127
- return compactPart?.value ?? "";
1128
- }
1129
- function formatScale(value, rule, locale) {
1130
- const scaleDivisor = getScaleDivisor(rule.scaleType);
1131
- const scaledValue = value / scaleDivisor;
1132
- const suffix = getLocalizedCompactSuffix(scaleDivisor, locale);
1133
- return formatNumberWithAffixes(scaledValue, rule.baseFormatOptions, locale, "", suffix);
1134
- }
1135
- function getRatioScaledValue(value, ratioType) {
1136
- switch (ratioType) {
1137
- case "PERCENTAGE":
1138
- return value * 100;
1139
- case "PER_MILLE":
1140
- return value * 1e3;
1141
- case "BASIS_POINTS":
1142
- return value * 1e4;
1143
- default:
1144
- throw new Error(`Unknown ratio type: ${ratioType}`);
1145
- }
1146
- }
1147
- function formatRatio(value, rule, locale) {
1148
- if (rule.ratioType === "PERCENTAGE") {
1149
- const options = {
1150
- ...convertToIntlOptions(rule.baseFormatOptions),
1151
- style: "percent"
1152
- };
1153
- return formatWithIntl(value, options, locale);
1154
- }
1155
- const scaledValue = getRatioScaledValue(value, rule.ratioType);
1156
- let suffix;
1157
- switch (rule.ratioType) {
1158
- case "PER_MILLE":
1159
- suffix = "\u2030";
1160
- break;
1161
- case "BASIS_POINTS":
1162
- suffix = " bps";
1163
- break;
1164
- default:
1165
- rule.ratioType;
1166
- throw new Error(`Unknown ratio type: ${rule.ratioType}`);
1167
- }
1168
- return formatNumberWithAffixes(scaledValue, rule.baseFormatOptions, locale, "", suffix);
1169
- }
1170
- function mapNotation(notation) {
1171
- switch (notation) {
1172
- case "STANDARD":
1173
- return "standard";
1174
- case "SCIENTIFIC":
1175
- return "scientific";
1176
- case "ENGINEERING":
1177
- return "engineering";
1178
- case "COMPACT":
1179
- return "compact";
1180
- }
1181
- }
1182
- function mapRoundingMode(mode) {
1183
- switch (mode) {
1184
- case "CEIL":
1185
- return "ceil";
1186
- case "FLOOR":
1187
- return "floor";
1188
- case "ROUND_CLOSEST":
1189
- return "halfExpand";
1190
- default:
1191
- return void 0;
1192
- }
1193
- }
1194
- function convertToIntlOptions(options) {
1195
- return {
1196
- useGrouping: options.useGrouping,
1197
- minimumIntegerDigits: options.minimumIntegerDigits,
1198
- minimumFractionDigits: options.minimumFractionDigits,
1199
- maximumFractionDigits: options.maximumFractionDigits,
1200
- minimumSignificantDigits: options.minimumSignificantDigits,
1201
- maximumSignificantDigits: options.maximumSignificantDigits,
1202
- notation: options.notation ? mapNotation(options.notation) : void 0,
1203
- roundingMode: options.roundingMode ? mapRoundingMode(options.roundingMode) : void 0,
1204
- convertNegativeToParenthesis: options.convertNegativeToParenthesis
1205
- };
1206
- }
1207
- function maybeConvertNegativeToParenthesis(formatted, value, shouldConvert) {
1208
- if (shouldConvert && value < 0) {
1209
- return formatted.replace(/^-/, "(") + ")";
1210
- }
1211
- return formatted;
1212
- }
1213
- function formatWithIntl(value, options, locale) {
1214
- const formatter = new Intl.NumberFormat(locale, options);
1215
- const formatted = formatter.format(value);
1216
- return maybeConvertNegativeToParenthesis(formatted, value, options.convertNegativeToParenthesis ?? false);
1217
- }
1218
- function formatNumberWithAffixes(value, baseOptions, locale, prefix, suffix) {
1219
- const intlOptions = convertToIntlOptions(baseOptions);
1220
- const formatted = formatWithIntl(value, intlOptions, locale);
1221
- return `${prefix || ""}${formatted}${suffix || ""}`;
1222
- }
1223
-
1224
- // src/object/formatting/applyPropertyFormatter.ts
1225
- function applyPropertyFormatter(propertyValue, propertyDefinition, objectData, options = {}) {
1226
- if (propertyDefinition?.valueFormatting == null || propertyValue == null) {
1227
- return void 0;
1228
- }
1229
- return formatPropertyValue(propertyValue, propertyDefinition.valueFormatting, objectData, options);
1230
- }
1231
- function formatPropertyValue(value, rule, objectData, options) {
1232
- switch (rule.type) {
1233
- case "boolean":
1234
- if (typeof value !== "boolean") {
1235
- return void 0;
1236
- }
1237
- return formatBoolean(value, rule);
1238
- case "number":
1239
- if (typeof value !== "number") {
1240
- return void 0;
1241
- }
1242
- return formatNumber(value, rule.numberType, objectData, options.locale ?? getBrowserLocale());
1243
- case "date":
1244
- case "timestamp":
1245
- if (typeof value !== "string") {
1246
- return void 0;
1247
- }
1248
- return formatDateTime(new Date(value), rule.format, rule.type === "timestamp" ? rule.displayTimezone : void 0, objectData, options.locale ?? getBrowserLocale(), options.timezoneId);
1249
- default:
1250
- return void 0;
1251
- }
1252
- }
931
+ // src/object/convertWireToOsdkObjects/getDollarAs.ts
932
+ chunk6SCDLAU2_cjs.init_cjs_shims();
1253
933
 
1254
934
  // src/ontology/OntologyProvider.ts
935
+ chunk6SCDLAU2_cjs.init_cjs_shims();
1255
936
  var InterfaceDefinitions = Symbol("InterfaceDefinitions" );
1256
937
 
938
+ // src/object/convertWireToOsdkObjects/createOsdkInterface.ts
939
+ chunk6SCDLAU2_cjs.init_cjs_shims();
940
+
941
+ // src/object/convertWireToOsdkObjects/getDollarLink.ts
942
+ chunk6SCDLAU2_cjs.init_cjs_shims();
943
+
1257
944
  // src/object/convertWireToOsdkObjects/InternalSymbols.ts
945
+ chunk6SCDLAU2_cjs.init_cjs_shims();
1258
946
  var UnderlyingOsdkObject = Symbol("Underlying Object" );
1259
947
  var ObjectDefRef = Symbol("ObjectDefinition" );
1260
948
  var InterfaceDefRef = Symbol("InterfaceDefinition" );
@@ -1271,8 +959,8 @@ function get$link(holder) {
1271
959
  [objDef.primaryKeyApiName]: rawObj.$primaryKey
1272
960
  }).pivotTo(linkName);
1273
961
  const value = !linkDef.multiplicity ? {
1274
- fetchOne: (options) => chunkHJV24UL2_cjs.fetchSingle(client, objDef, options ?? {}, chunkHJV24UL2_cjs.getWireObjectSet(objectSet)),
1275
- fetchOneWithErrors: (options) => chunkHJV24UL2_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkHJV24UL2_cjs.getWireObjectSet(objectSet))
962
+ fetchOne: (options) => chunkS3HJUSQ7_cjs.fetchSingle(client, objDef, options ?? {}, chunkS3HJUSQ7_cjs.getWireObjectSet(objectSet)),
963
+ fetchOneWithErrors: (options) => chunkS3HJUSQ7_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkS3HJUSQ7_cjs.getWireObjectSet(objectSet))
1276
964
  } : objectSet;
1277
965
  return [linkName, value];
1278
966
  })));
@@ -1288,8 +976,8 @@ function get$linkForInterface(holder) {
1288
976
  [objDef.primaryKeyApiName]: rawObj.$primaryKey
1289
977
  })).pivotTo(linkName);
1290
978
  const value = !linkDef.multiplicity ? {
1291
- fetchOne: (options) => chunkHJV24UL2_cjs.fetchSingle(client, objDef, options ?? {}, chunkHJV24UL2_cjs.getWireObjectSet(objectSet)),
1292
- fetchOneWithErrors: (options) => chunkHJV24UL2_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkHJV24UL2_cjs.getWireObjectSet(objectSet))
979
+ fetchOne: (options) => chunkS3HJUSQ7_cjs.fetchSingle(client, objDef, options ?? {}, chunkS3HJUSQ7_cjs.getWireObjectSet(objectSet)),
980
+ fetchOneWithErrors: (options) => chunkS3HJUSQ7_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkS3HJUSQ7_cjs.getWireObjectSet(objectSet))
1293
981
  } : objectSet;
1294
982
  return [linkName, value];
1295
983
  })));
@@ -1297,7 +985,7 @@ function get$linkForInterface(holder) {
1297
985
 
1298
986
  // src/object/convertWireToOsdkObjects/createOsdkInterface.ts
1299
987
  function createOsdkInterface(underlying, interfaceDef) {
1300
- const [objApiNamespace] = chunkHJV24UL2_cjs.extractNamespace(interfaceDef.apiName);
988
+ const [objApiNamespace] = chunkS3HJUSQ7_cjs.extractNamespace(interfaceDef.apiName);
1301
989
  return Object.freeze(Object.defineProperties({}, {
1302
990
  // first to minimize hidden classes
1303
991
  [UnderlyingOsdkObject]: {
@@ -1342,10 +1030,6 @@ function createOsdkInterface(underlying, interfaceDef) {
1342
1030
  },
1343
1031
  enumerable: false
1344
1032
  },
1345
- "$__EXPERIMENTAL__NOT_SUPPORTED_YET__getFormattedValue": {
1346
- value: underlying.$__EXPERIMENTAL__NOT_SUPPORTED_YET__getFormattedValue,
1347
- enumerable: false
1348
- },
1349
1033
  "$link": {
1350
1034
  get: function() {
1351
1035
  return get$linkForInterface(this);
@@ -1356,7 +1040,7 @@ function createOsdkInterface(underlying, interfaceDef) {
1356
1040
  },
1357
1041
  ...Object.fromEntries(Object.keys(interfaceDef.properties).map((p) => {
1358
1042
  const objDef = underlying[ObjectDefRef];
1359
- const [apiNamespace, apiName] = chunkHJV24UL2_cjs.extractNamespace(p);
1043
+ const [apiNamespace, apiName] = chunkS3HJUSQ7_cjs.extractNamespace(p);
1360
1044
  const targetPropName = objDef.interfaceMap[interfaceDef.apiName][p];
1361
1045
  return [apiNamespace === objApiNamespace ? apiName : p, {
1362
1046
  enumerable: targetPropName in underlying,
@@ -1470,15 +1154,6 @@ var basePropDefs = {
1470
1154
  };
1471
1155
  },
1472
1156
  enumerable: false
1473
- },
1474
- "$__EXPERIMENTAL__NOT_SUPPORTED_YET__getFormattedValue": {
1475
- value: function(propertyApiName, options) {
1476
- const rawObj = this[UnderlyingOsdkObject];
1477
- const def = this[ObjectDefRef];
1478
- const propertyValue = rawObj[propertyApiName];
1479
- return applyPropertyFormatter(propertyValue, def.properties[propertyApiName], rawObj, options);
1480
- },
1481
- enumerable: false
1482
1157
  }
1483
1158
  };
1484
1159
  function createOsdkObject(client, objectDef, simpleOsdkProperties, derivedPropertyTypeByName = {}) {
@@ -1517,9 +1192,9 @@ function modifyRdpProperties(client, derivedPropertyTypeByName, rawValue, propKe
1517
1192
  switch (derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType?.type) {
1518
1193
  case "attachment":
1519
1194
  if (Array.isArray(rawValue)) {
1520
- return rawValue.map((a) => chunkHJV24UL2_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1195
+ return rawValue.map((a) => chunkS3HJUSQ7_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1521
1196
  } else {
1522
- return chunkHJV24UL2_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1197
+ return chunkS3HJUSQ7_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1523
1198
  }
1524
1199
  default:
1525
1200
  process.env.NODE_ENV !== "production" ? invariant__default.default(false, "Derived property aggregations for Timeseries and Media are not supported") : invariant__default.default(false) ;
@@ -1535,9 +1210,9 @@ function createSpecialProperty(client, objectDef, rawObject, p) {
1535
1210
  }
1536
1211
  if (propDef.type === "attachment") {
1537
1212
  if (Array.isArray(rawValue)) {
1538
- return rawValue.map((a) => chunkHJV24UL2_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1213
+ return rawValue.map((a) => chunkS3HJUSQ7_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1539
1214
  }
1540
- return chunkHJV24UL2_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1215
+ return chunkS3HJUSQ7_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1541
1216
  }
1542
1217
  if (propDef.type === "numericTimeseries" || propDef.type === "stringTimeseries" || propDef.type === "sensorTimeseries") {
1543
1218
  return new TimeSeriesPropertyImpl(client, objectDef.apiName, rawObject[objectDef.primaryKeyApiName], p);
@@ -1694,7 +1369,11 @@ function fixObjectPropertiesInPlace(objs, forceRemoveRid) {
1694
1369
  }
1695
1370
  }
1696
1371
 
1372
+ // src/ontology/StandardOntologyProvider.ts
1373
+ chunk6SCDLAU2_cjs.init_cjs_shims();
1374
+
1697
1375
  // src/object/Cache.ts
1376
+ chunk6SCDLAU2_cjs.init_cjs_shims();
1698
1377
  function createClientCache(fn) {
1699
1378
  const cache = /* @__PURE__ */ new WeakMap();
1700
1379
  function get(client, key) {
@@ -1751,6 +1430,7 @@ function createAsyncClientCache(fn, createCacheLocal = createClientCache) {
1751
1430
  }
1752
1431
 
1753
1432
  // src/util/deepFreeze.ts
1433
+ chunk6SCDLAU2_cjs.init_cjs_shims();
1754
1434
  function deepFreeze(obj) {
1755
1435
  Object.getOwnPropertyNames(obj).forEach((name) => {
1756
1436
  const prop = obj[name];
@@ -1760,32 +1440,40 @@ function deepFreeze(obj) {
1760
1440
  });
1761
1441
  return Object.freeze(obj);
1762
1442
  }
1443
+
1444
+ // src/ontology/loadActionMetadata.ts
1445
+ chunk6SCDLAU2_cjs.init_cjs_shims();
1763
1446
  async function loadActionMetadata(client, actionType) {
1764
- const r = await chunkHJV24UL2_cjs.ActionTypeV2_exports.get(client, await client.ontologyRid, actionType, {
1765
- branch: client.branch
1766
- });
1447
+ const r = await chunkS3HJUSQ7_cjs.ActionTypeV2_exports.get(client, await client.ontologyRid, actionType);
1767
1448
  return generatorConverters.wireActionTypeV2ToSdkActionMetadata(r);
1768
1449
  }
1450
+
1451
+ // src/ontology/loadFullObjectMetadata.ts
1452
+ chunk6SCDLAU2_cjs.init_cjs_shims();
1769
1453
  async function loadFullObjectMetadata(client, objectType) {
1770
- const full = await chunkHJV24UL2_cjs.ObjectTypeV2_exports.getFullMetadata(client, await client.ontologyRid, objectType, {
1771
- preview: true,
1772
- branch: client.branch
1454
+ const full = await chunkS3HJUSQ7_cjs.ObjectTypeV2_exports.getFullMetadata(client, await client.ontologyRid, objectType, {
1455
+ preview: true
1773
1456
  });
1774
1457
  const ret = generatorConverters.wireObjectTypeFullMetadataToSdkObjectMetadata(full, true);
1775
1458
  return {
1776
1459
  ...ret
1777
1460
  };
1778
1461
  }
1462
+
1463
+ // src/ontology/loadInterfaceMetadata.ts
1464
+ chunk6SCDLAU2_cjs.init_cjs_shims();
1779
1465
  async function loadInterfaceMetadata(client, objectType) {
1780
- const r = await chunkHJV24UL2_cjs.OntologyInterface_exports.get(client, await client.ontologyRid, objectType, {
1781
- preview: true,
1782
- branch: client.branch
1466
+ const r = await chunkS3HJUSQ7_cjs.OntologyInterface_exports.get(client, await client.ontologyRid, objectType, {
1467
+ preview: true
1783
1468
  });
1784
1469
  return generatorConverters.__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(r, true);
1785
1470
  }
1471
+
1472
+ // src/ontology/loadQueryMetadata.ts
1473
+ chunk6SCDLAU2_cjs.init_cjs_shims();
1786
1474
  async function loadQueryMetadata(client, queryTypeApiNameAndVersion) {
1787
1475
  const [apiName, version] = queryTypeApiNameAndVersion.split(":");
1788
- const r = await chunkHJV24UL2_cjs.QueryType_exports.get(client, await client.ontologyRid, apiName, {
1476
+ const r = await chunkS3HJUSQ7_cjs.QueryType_exports.get(client, await client.ontologyRid, apiName, {
1789
1477
  version
1790
1478
  });
1791
1479
  return generatorConverters.wireQueryTypeV2ToSdkQueryMetadata(r);
@@ -1842,11 +1530,12 @@ var createStandardOntologyProviderFactory = (client) => {
1842
1530
  };
1843
1531
 
1844
1532
  // src/util/UserAgent.ts
1845
- var USER_AGENT = `osdk-client/${"2.6.0-beta.8"}`;
1846
- var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.6.0-beta.8"}`;
1533
+ chunk6SCDLAU2_cjs.init_cjs_shims();
1534
+ var USER_AGENT = `osdk-client/${"2.6.0-rc.14"}`;
1535
+ var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.6.0-rc.14"}`;
1847
1536
 
1848
1537
  // src/createMinimalClient.ts
1849
- function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkHJV24UL2_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
1538
+ function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkS3HJUSQ7_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
1850
1539
  if (process.env.NODE_ENV !== "production") {
1851
1540
  try {
1852
1541
  new URL(baseUrl);
@@ -1864,11 +1553,10 @@ function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fet
1864
1553
  objectFactory2: convertWireToOsdkObjects2,
1865
1554
  ontologyRid: metadata.ontologyRid,
1866
1555
  logger: options.logger,
1867
- transactionRid: options.transactionRid,
1556
+ transactionId: options.transactionId,
1868
1557
  clientCacheKey: {},
1869
1558
  requestContext: {},
1870
- branch: options.branch,
1871
- asTypeInterfaceOrObjectMapping: {}
1559
+ narrowTypeInterfaceOrObjectMapping: {}
1872
1560
  };
1873
1561
  return Object.freeze(Object.assign(minimalClient, {
1874
1562
  ontologyProvider: createOntologyProviderFactory(options)(minimalClient)
@@ -1876,6 +1564,7 @@ function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fet
1876
1564
  }
1877
1565
 
1878
1566
  // src/fetchMetadata.ts
1567
+ chunk6SCDLAU2_cjs.init_cjs_shims();
1879
1568
  var fetchMetadataInternal = async (client, definition) => {
1880
1569
  if (definition.type === "object") {
1881
1570
  const {
@@ -1894,7 +1583,11 @@ var fetchMetadataInternal = async (client, definition) => {
1894
1583
  }
1895
1584
  };
1896
1585
 
1586
+ // src/queries/applyQuery.ts
1587
+ chunk6SCDLAU2_cjs.init_cjs_shims();
1588
+
1897
1589
  // src/util/toDataValueQueries.ts
1590
+ chunk6SCDLAU2_cjs.init_cjs_shims();
1898
1591
  async function toDataValueQueries(value, client, desiredType) {
1899
1592
  if (value == null) {
1900
1593
  return value;
@@ -1914,13 +1607,13 @@ async function toDataValueQueries(value, client, desiredType) {
1914
1607
  switch (desiredType.type) {
1915
1608
  case "attachment": {
1916
1609
  if (isAttachmentUpload(value)) {
1917
- const attachment = await chunkHJV24UL2_cjs.Attachment_exports.upload(client, value.data, {
1610
+ const attachment = await chunkS3HJUSQ7_cjs.Attachment_exports.upload(client, value.data, {
1918
1611
  filename: value.name
1919
1612
  });
1920
1613
  return attachment.rid;
1921
1614
  }
1922
1615
  if (isAttachmentFile(value)) {
1923
- const attachment = await chunkHJV24UL2_cjs.Attachment_exports.upload(client, value, {
1616
+ const attachment = await chunkS3HJUSQ7_cjs.Attachment_exports.upload(client, value, {
1924
1617
  filename: value.name
1925
1618
  });
1926
1619
  return attachment.rid;
@@ -1960,11 +1653,11 @@ async function toDataValueQueries(value, client, desiredType) {
1960
1653
  }
1961
1654
  case "objectSet":
1962
1655
  case "interfaceObjectSet": {
1963
- if (chunkHJV24UL2_cjs.isWireObjectSet(value)) {
1656
+ if (chunkS3HJUSQ7_cjs.isWireObjectSet(value)) {
1964
1657
  return value;
1965
1658
  }
1966
- if (chunkHJV24UL2_cjs.isObjectSet(value)) {
1967
- return chunkHJV24UL2_cjs.getWireObjectSet(value);
1659
+ if (chunkS3HJUSQ7_cjs.isObjectSet(value)) {
1660
+ return chunkS3HJUSQ7_cjs.getWireObjectSet(value);
1968
1661
  }
1969
1662
  break;
1970
1663
  }
@@ -2006,7 +1699,7 @@ async function toDataValueQueries(value, client, desiredType) {
2006
1699
  // src/queries/applyQuery.ts
2007
1700
  async function applyQuery(client, query, params) {
2008
1701
  const qd = client.ontologyProvider.getQueryDefinition(query.apiName, query.isFixedVersion ? query.version : void 0);
2009
- const response = await chunkHJV24UL2_cjs.Query_exports.execute(chunkHJV24UL2_cjs.addUserAgentAndRequestContextHeaders(chunkHJV24UL2_cjs.augmentRequestContext(client, (_) => ({
1702
+ const response = await chunkS3HJUSQ7_cjs.Query_exports.execute(chunkS3HJUSQ7_cjs.addUserAgentAndRequestContextHeaders(chunkS3HJUSQ7_cjs.augmentRequestContext(client, (_) => ({
2010
1703
  finalMethodCall: "applyQuery"
2011
1704
  })), query), await client.ontologyRid, query.apiName, {
2012
1705
  parameters: params ? await remapQueryParams(params, client, (await qd).parameters) : {}
@@ -2032,20 +1725,16 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
2032
1725
  throw new Error("Got null response when nullable was not allowed");
2033
1726
  }
2034
1727
  }
2035
- if (responseDataType.multiplicity != null && responseDataType.multiplicity) {
2036
- const withoutMultiplicity = {
2037
- ...responseDataType,
2038
- multiplicity: false
2039
- };
2040
- for (let i = 0; i < responseValue.length; i++) {
2041
- responseValue[i] = await remapQueryResponse(client, withoutMultiplicity, responseValue[i], definitions);
2042
- }
2043
- return responseValue;
2044
- }
2045
1728
  switch (responseDataType.type) {
2046
1729
  case "union": {
2047
1730
  throw new Error("Union return types are not yet supported");
2048
1731
  }
1732
+ case "array": {
1733
+ for (let i = 0; i < responseValue.length; i++) {
1734
+ responseValue[i] = await remapQueryResponse(client, responseDataType.array, responseValue[i], definitions);
1735
+ }
1736
+ return responseValue;
1737
+ }
2049
1738
  case "set": {
2050
1739
  for (let i = 0; i < responseValue.length; i++) {
2051
1740
  responseValue[i] = await remapQueryResponse(client, responseDataType.set, responseValue[i], definitions);
@@ -2053,7 +1742,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
2053
1742
  return responseValue;
2054
1743
  }
2055
1744
  case "attachment": {
2056
- return chunkHJV24UL2_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
1745
+ return chunkS3HJUSQ7_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
2057
1746
  }
2058
1747
  case "object": {
2059
1748
  const def = definitions.get(responseDataType.object);
@@ -2075,7 +1764,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
2075
1764
  throw new Error(`Missing definition for ${responseDataType.objectSet}`);
2076
1765
  }
2077
1766
  if (typeof responseValue === "string") {
2078
- return chunkHJV24UL2_cjs.createObjectSet(def, client, {
1767
+ return chunkS3HJUSQ7_cjs.createObjectSet(def, client, {
2079
1768
  type: "intersect",
2080
1769
  objectSets: [{
2081
1770
  type: "base",
@@ -2086,7 +1775,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
2086
1775
  }]
2087
1776
  });
2088
1777
  }
2089
- return chunkHJV24UL2_cjs.createObjectSet(def, client, responseValue);
1778
+ return chunkS3HJUSQ7_cjs.createObjectSet(def, client, responseValue);
2090
1779
  }
2091
1780
  case "struct": {
2092
1781
  for (const [key, subtype] of Object.entries(responseDataType.struct)) {
@@ -2272,9 +1961,8 @@ function createClientInternal(objectSetFactory, transactionRid, baseUrl, ontolog
2272
1961
  ontologyRid
2273
1962
  }, baseUrl, tokenProvider, {
2274
1963
  ...options,
2275
- logger: options?.logger ?? new chunkHJV24UL2_cjs.MinimalLogger(),
2276
- transactionRid,
2277
- branch: options?.branch
1964
+ logger: options?.logger ?? new chunkS3HJUSQ7_cjs.MinimalLogger(),
1965
+ transactionId: transactionRid
2278
1966
  }, fetchFn, objectSetFactory);
2279
1967
  return createClientFromContext(clientCtx);
2280
1968
  }
@@ -2295,7 +1983,7 @@ function createClientFromContext(clientCtx) {
2295
1983
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid.name:
2296
1984
  return {
2297
1985
  fetchOneByRid: async (objectType, rid, options) => {
2298
- return await chunkHJV24UL2_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
1986
+ return await chunkS3HJUSQ7_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
2299
1987
  }
2300
1988
  };
2301
1989
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference.name:
@@ -2307,7 +1995,7 @@ function createClientFromContext(clientCtx) {
2307
1995
  objectType,
2308
1996
  propertyType
2309
1997
  } = args;
2310
- return await chunkHJV24UL2_cjs.MediaReferenceProperty_exports.upload(clientCtx, await clientCtx.ontologyRid, objectType.apiName, propertyType, data, {
1998
+ return await chunkS3HJUSQ7_cjs.MediaReferenceProperty_exports.upload(clientCtx, await clientCtx.ontologyRid, objectType.apiName, propertyType, data, {
2311
1999
  mediaItemPath: fileName,
2312
2000
  preview: true
2313
2001
  });
@@ -2316,10 +2004,10 @@ function createClientFromContext(clientCtx) {
2316
2004
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid.name:
2317
2005
  return {
2318
2006
  fetchPageByRid: async (objectOrInterfaceType, rids, options = {}) => {
2319
- return await chunkHJV24UL2_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
2007
+ return await chunkS3HJUSQ7_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
2320
2008
  },
2321
2009
  fetchPageByRidNoType: async (rids, options) => {
2322
- return await chunkHJV24UL2_cjs.fetchStaticRidPage(clientCtx, rids, options ?? {});
2010
+ return await chunkS3HJUSQ7_cjs.fetchStaticRidPage(clientCtx, rids, options ?? {});
2323
2011
  }
2324
2012
  };
2325
2013
  }
@@ -2331,13 +2019,13 @@ function createClientFromContext(clientCtx) {
2331
2019
  const fetchMetadata = fetchMetadataInternal.bind(void 0, clientCtx);
2332
2020
  const symbolClientContext2 = "__osdkClientContext";
2333
2021
  const client = Object.defineProperties(clientFn, {
2334
- [chunkHJV24UL2_cjs.symbolClientContext]: {
2022
+ [chunkS3HJUSQ7_cjs.symbolClientContext]: {
2335
2023
  value: clientCtx
2336
2024
  },
2337
2025
  [symbolClientContext2]: {
2338
2026
  value: clientCtx
2339
2027
  },
2340
- [chunkHJV24UL2_cjs.additionalContext]: {
2028
+ [chunkS3HJUSQ7_cjs.additionalContext]: {
2341
2029
  value: clientCtx
2342
2030
  },
2343
2031
  fetchMetadata: {
@@ -2346,8 +2034,8 @@ function createClientFromContext(clientCtx) {
2346
2034
  });
2347
2035
  return client;
2348
2036
  }
2349
- var createClient = createClientInternal.bind(void 0, chunkHJV24UL2_cjs.createObjectSet, void 0);
2350
- var createClientWithTransaction = (transactionRid, ...args) => createClientInternal(chunkHJV24UL2_cjs.createObjectSet, transactionRid, ...args);
2037
+ var createClient = createClientInternal.bind(void 0, chunkS3HJUSQ7_cjs.createObjectSet, void 0);
2038
+ var createClientWithTransaction = (transactionRid, ...args) => createClientInternal(chunkS3HJUSQ7_cjs.createObjectSet, transactionRid, ...args);
2351
2039
  function createWithRid(rids) {
2352
2040
  const withRid = {
2353
2041
  type: "static",
@@ -2367,5 +2055,5 @@ exports.createClientFromContext = createClientFromContext;
2367
2055
  exports.createClientWithTransaction = createClientWithTransaction;
2368
2056
  exports.createObjectSpecifierFromPrimaryKey = createObjectSpecifierFromPrimaryKey;
2369
2057
  exports.extractPrimaryKeyFromObjectSpecifier = extractPrimaryKeyFromObjectSpecifier;
2370
- //# sourceMappingURL=chunk-PCNVSZXT.cjs.map
2371
- //# sourceMappingURL=chunk-PCNVSZXT.cjs.map
2058
+ //# sourceMappingURL=chunk-6P7VLXH3.cjs.map
2059
+ //# sourceMappingURL=chunk-6P7VLXH3.cjs.map