@osdk/client 2.7.0-beta.1 → 2.7.0-beta.11

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 (291) hide show
  1. package/CHANGELOG.md +138 -0
  2. package/build/browser/Client.js +1 -1
  3. package/build/browser/Client.js.map +1 -1
  4. package/build/browser/MinimalClientContext.js.map +1 -1
  5. package/build/browser/actions/actions.test.js +9 -0
  6. package/build/browser/actions/actions.test.js.map +1 -1
  7. package/build/browser/createClient.js +4 -3
  8. package/build/browser/createClient.js.map +1 -1
  9. package/build/browser/createClient.test.js +1 -1
  10. package/build/browser/createClient.test.js.map +1 -1
  11. package/build/browser/createMinimalClient.js.map +1 -1
  12. package/build/browser/fetchMetadata.test.js +21 -1
  13. package/build/browser/fetchMetadata.test.js.map +1 -1
  14. package/build/browser/index.js +1 -1
  15. package/build/browser/index.js.map +1 -1
  16. package/build/browser/intellisense.test.js +1 -1
  17. package/build/browser/intellisense.test.js.map +1 -1
  18. package/build/browser/object/AttachmentUpload.js +1 -1
  19. package/build/browser/object/AttachmentUpload.js.map +1 -1
  20. package/build/browser/object/aggregate.js +3 -0
  21. package/build/browser/object/aggregate.js.map +1 -1
  22. package/build/browser/object/convertWireToOsdkObjects/BaseHolder.js.map +1 -1
  23. package/build/browser/object/convertWireToOsdkObjects/InternalSymbols.js +3 -0
  24. package/build/browser/object/convertWireToOsdkObjects/InternalSymbols.js.map +1 -1
  25. package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js +4 -0
  26. package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -1
  27. package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js +85 -3
  28. package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -1
  29. package/build/browser/object/convertWireToOsdkObjects.js +18 -6
  30. package/build/browser/object/convertWireToOsdkObjects.js.map +1 -1
  31. package/build/browser/object/convertWireToOsdkObjects.test.js +178 -29
  32. package/build/browser/object/convertWireToOsdkObjects.test.js.map +1 -1
  33. package/build/browser/object/fetchPage.js +30 -5
  34. package/build/browser/object/fetchPage.js.map +1 -1
  35. package/build/browser/object/fetchPage.test.js.map +1 -1
  36. package/build/browser/object/mediaUpload.js +1 -1
  37. package/build/browser/object/mediaUpload.js.map +1 -1
  38. package/build/browser/object/object.test.js +123 -0
  39. package/build/browser/object/object.test.js.map +1 -1
  40. package/build/browser/objectSet/InterfaceObjectSet.test.js +1 -1
  41. package/build/browser/objectSet/InterfaceObjectSet.test.js.map +1 -1
  42. package/build/browser/objectSet/ObjectSet.test.js +7 -6
  43. package/build/browser/objectSet/ObjectSet.test.js.map +1 -1
  44. package/build/browser/objectSet/ObjectSetListenerWebsocket.js +2 -2
  45. package/build/browser/objectSet/ObjectSetListenerWebsocket.js.map +1 -1
  46. package/build/browser/objectSet/ObjectSetListenerWebsocket.test.js +3 -1
  47. package/build/browser/objectSet/ObjectSetListenerWebsocket.test.js.map +1 -1
  48. package/build/browser/objectSet/createObjectSet.js +13 -0
  49. package/build/browser/objectSet/createObjectSet.js.map +1 -1
  50. package/build/browser/objectSet/fetchLinksPage.js +57 -0
  51. package/build/browser/objectSet/fetchLinksPage.js.map +1 -0
  52. package/build/browser/objectSet/fetchLinksPage.test.js +102 -0
  53. package/build/browser/objectSet/fetchLinksPage.test.js.map +1 -0
  54. package/build/browser/observable/FunctionPayload.js +2 -0
  55. package/build/browser/observable/FunctionPayload.js.map +1 -0
  56. package/build/browser/observable/ListPayload.js.map +1 -1
  57. package/build/browser/observable/ObjectPayload.js.map +1 -1
  58. package/build/browser/observable/ObservableClient.js +0 -5
  59. package/build/browser/observable/ObservableClient.js.map +1 -1
  60. package/build/browser/observable/internal/Changes.js +3 -0
  61. package/build/browser/observable/internal/Changes.js.map +1 -1
  62. package/build/browser/observable/internal/KnownCacheKey.js.map +1 -1
  63. package/build/browser/observable/internal/ObservableClientImpl.js +20 -0
  64. package/build/browser/observable/internal/ObservableClientImpl.js.map +1 -1
  65. package/build/browser/observable/internal/Store.js +8 -0
  66. package/build/browser/observable/internal/Store.js.map +1 -1
  67. package/build/browser/observable/internal/Store.test.js +104 -1
  68. package/build/browser/observable/internal/Store.test.js.map +1 -1
  69. package/build/browser/observable/internal/actions/ActionApplication.js +11 -7
  70. package/build/browser/observable/internal/actions/ActionApplication.js.map +1 -1
  71. package/build/browser/observable/internal/actions/OptimisticJob.js +1 -1
  72. package/build/browser/observable/internal/actions/OptimisticJob.js.map +1 -1
  73. package/build/browser/observable/internal/base-list/BaseListQuery.js +1 -1
  74. package/build/browser/observable/internal/base-list/BaseListQuery.js.map +1 -1
  75. package/build/browser/observable/internal/function/FunctionCacheKey.js +26 -0
  76. package/build/browser/observable/internal/function/FunctionCacheKey.js.map +1 -0
  77. package/build/browser/observable/internal/function/FunctionParamsCanonicalizer.js +150 -0
  78. package/build/browser/observable/internal/function/FunctionParamsCanonicalizer.js.map +1 -0
  79. package/build/browser/observable/internal/function/FunctionParamsCanonicalizer.test.js +186 -0
  80. package/build/browser/observable/internal/function/FunctionParamsCanonicalizer.test.js.map +1 -0
  81. package/build/browser/observable/internal/function/FunctionQuery.js +137 -0
  82. package/build/browser/observable/internal/function/FunctionQuery.js.map +1 -0
  83. package/build/browser/observable/internal/function/FunctionQuery.test.js +278 -0
  84. package/build/browser/observable/internal/function/FunctionQuery.test.js.map +1 -0
  85. package/build/browser/observable/internal/function/FunctionsHelper.js +92 -0
  86. package/build/browser/observable/internal/function/FunctionsHelper.js.map +1 -0
  87. package/build/browser/observable/internal/links/SpecificLinkQuery.js +9 -1
  88. package/build/browser/observable/internal/links/SpecificLinkQuery.js.map +1 -1
  89. package/build/browser/observable/internal/list/ListQuery.js +17 -2
  90. package/build/browser/observable/internal/list/ListQuery.js.map +1 -1
  91. package/build/browser/observable/internal/objectset/ObjectSetQuery.js +9 -7
  92. package/build/browser/observable/internal/objectset/ObjectSetQuery.js.map +1 -1
  93. package/build/browser/observable/internal/utils/rdpFieldOperations.js +46 -25
  94. package/build/browser/observable/internal/utils/rdpFieldOperations.js.map +1 -1
  95. package/build/browser/observable/internal/utils/rdpFieldOperations.test.js +172 -0
  96. package/build/browser/observable/internal/utils/rdpFieldOperations.test.js.map +1 -0
  97. package/build/browser/public/unstable-do-not-use.js.map +1 -1
  98. package/build/browser/queries/applyQuery.js +19 -1
  99. package/build/browser/queries/applyQuery.js.map +1 -1
  100. package/build/browser/queries/queries.test.js +14 -2
  101. package/build/browser/queries/queries.test.js.map +1 -1
  102. package/build/browser/util/UserAgent.js +2 -2
  103. package/build/browser/util/UserAgent.js.map +1 -1
  104. package/build/browser/util/toDataValue.js +0 -5
  105. package/build/browser/util/toDataValue.js.map +1 -1
  106. package/build/browser/util/toDataValue.test.js +2 -7
  107. package/build/browser/util/toDataValue.test.js.map +1 -1
  108. package/build/cjs/{Client-DaUJl7jZ.d.cts → Client-Cmx6x_V1.d.cts} +1 -1
  109. package/build/cjs/{chunk-WQL7SQ7H.cjs → chunk-666JN2DO.cjs} +250 -148
  110. package/build/cjs/chunk-666JN2DO.cjs.map +1 -0
  111. package/build/cjs/{chunk-6SCDLAU2.cjs → chunk-LDTMSHUZ.cjs} +4 -4
  112. package/build/cjs/{chunk-6SCDLAU2.cjs.map → chunk-LDTMSHUZ.cjs.map} +1 -1
  113. package/build/cjs/{chunk-VDAI3GGL.cjs → chunk-RDZ5NKAI.cjs} +218 -135
  114. package/build/cjs/chunk-RDZ5NKAI.cjs.map +1 -0
  115. package/build/cjs/{createClient-CPUYdECn.d.cts → createClient-BPK4om7e.d.cts} +2 -2
  116. package/build/cjs/{delay-KIUUJ5NJ.cjs → delay-W2TSML2P.cjs} +4 -4
  117. package/build/cjs/{delay-KIUUJ5NJ.cjs.map → delay-W2TSML2P.cjs.map} +1 -1
  118. package/build/cjs/index.cjs +12 -16
  119. package/build/cjs/index.cjs.map +1 -1
  120. package/build/cjs/index.d.cts +3 -3
  121. package/build/cjs/public/internal-node.cjs +219 -219
  122. package/build/cjs/public/internal.cjs +14 -14
  123. package/build/cjs/public/internal.d.cts +1 -1
  124. package/build/cjs/public/unstable-do-not-use.cjs +694 -152
  125. package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
  126. package/build/cjs/public/unstable-do-not-use.d.cts +61 -10
  127. package/build/esm/Client.js +1 -1
  128. package/build/esm/Client.js.map +1 -1
  129. package/build/esm/MinimalClientContext.js.map +1 -1
  130. package/build/esm/actions/actions.test.js +9 -0
  131. package/build/esm/actions/actions.test.js.map +1 -1
  132. package/build/esm/createClient.js +4 -3
  133. package/build/esm/createClient.js.map +1 -1
  134. package/build/esm/createClient.test.js +1 -1
  135. package/build/esm/createClient.test.js.map +1 -1
  136. package/build/esm/createMinimalClient.js.map +1 -1
  137. package/build/esm/fetchMetadata.test.js +21 -1
  138. package/build/esm/fetchMetadata.test.js.map +1 -1
  139. package/build/esm/index.js +1 -1
  140. package/build/esm/index.js.map +1 -1
  141. package/build/esm/intellisense.test.js +1 -1
  142. package/build/esm/intellisense.test.js.map +1 -1
  143. package/build/esm/object/AttachmentUpload.js +1 -1
  144. package/build/esm/object/AttachmentUpload.js.map +1 -1
  145. package/build/esm/object/aggregate.js +3 -0
  146. package/build/esm/object/aggregate.js.map +1 -1
  147. package/build/esm/object/convertWireToOsdkObjects/BaseHolder.js.map +1 -1
  148. package/build/esm/object/convertWireToOsdkObjects/InternalSymbols.js +3 -0
  149. package/build/esm/object/convertWireToOsdkObjects/InternalSymbols.js.map +1 -1
  150. package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js +4 -0
  151. package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -1
  152. package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js +85 -3
  153. package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -1
  154. package/build/esm/object/convertWireToOsdkObjects.js +18 -6
  155. package/build/esm/object/convertWireToOsdkObjects.js.map +1 -1
  156. package/build/esm/object/convertWireToOsdkObjects.test.js +178 -29
  157. package/build/esm/object/convertWireToOsdkObjects.test.js.map +1 -1
  158. package/build/esm/object/fetchPage.js +30 -5
  159. package/build/esm/object/fetchPage.js.map +1 -1
  160. package/build/esm/object/fetchPage.test.js.map +1 -1
  161. package/build/esm/object/mediaUpload.js +1 -1
  162. package/build/esm/object/mediaUpload.js.map +1 -1
  163. package/build/esm/object/object.test.js +123 -0
  164. package/build/esm/object/object.test.js.map +1 -1
  165. package/build/esm/objectSet/InterfaceObjectSet.test.js +1 -1
  166. package/build/esm/objectSet/InterfaceObjectSet.test.js.map +1 -1
  167. package/build/esm/objectSet/ObjectSet.test.js +7 -6
  168. package/build/esm/objectSet/ObjectSet.test.js.map +1 -1
  169. package/build/esm/objectSet/ObjectSetListenerWebsocket.js +2 -2
  170. package/build/esm/objectSet/ObjectSetListenerWebsocket.js.map +1 -1
  171. package/build/esm/objectSet/ObjectSetListenerWebsocket.test.js +3 -1
  172. package/build/esm/objectSet/ObjectSetListenerWebsocket.test.js.map +1 -1
  173. package/build/esm/objectSet/createObjectSet.js +13 -0
  174. package/build/esm/objectSet/createObjectSet.js.map +1 -1
  175. package/build/esm/objectSet/fetchLinksPage.js +57 -0
  176. package/build/esm/objectSet/fetchLinksPage.js.map +1 -0
  177. package/build/esm/objectSet/fetchLinksPage.test.js +102 -0
  178. package/build/esm/objectSet/fetchLinksPage.test.js.map +1 -0
  179. package/build/esm/observable/FunctionPayload.js +2 -0
  180. package/build/esm/observable/FunctionPayload.js.map +1 -0
  181. package/build/esm/observable/ListPayload.js.map +1 -1
  182. package/build/esm/observable/ObjectPayload.js.map +1 -1
  183. package/build/esm/observable/ObservableClient.js +0 -5
  184. package/build/esm/observable/ObservableClient.js.map +1 -1
  185. package/build/esm/observable/internal/Changes.js +3 -0
  186. package/build/esm/observable/internal/Changes.js.map +1 -1
  187. package/build/esm/observable/internal/KnownCacheKey.js.map +1 -1
  188. package/build/esm/observable/internal/ObservableClientImpl.js +20 -0
  189. package/build/esm/observable/internal/ObservableClientImpl.js.map +1 -1
  190. package/build/esm/observable/internal/Store.js +8 -0
  191. package/build/esm/observable/internal/Store.js.map +1 -1
  192. package/build/esm/observable/internal/Store.test.js +104 -1
  193. package/build/esm/observable/internal/Store.test.js.map +1 -1
  194. package/build/esm/observable/internal/actions/ActionApplication.js +11 -7
  195. package/build/esm/observable/internal/actions/ActionApplication.js.map +1 -1
  196. package/build/esm/observable/internal/actions/OptimisticJob.js +1 -1
  197. package/build/esm/observable/internal/actions/OptimisticJob.js.map +1 -1
  198. package/build/esm/observable/internal/base-list/BaseListQuery.js +1 -1
  199. package/build/esm/observable/internal/base-list/BaseListQuery.js.map +1 -1
  200. package/build/esm/observable/internal/function/FunctionCacheKey.js +26 -0
  201. package/build/esm/observable/internal/function/FunctionCacheKey.js.map +1 -0
  202. package/build/esm/observable/internal/function/FunctionParamsCanonicalizer.js +150 -0
  203. package/build/esm/observable/internal/function/FunctionParamsCanonicalizer.js.map +1 -0
  204. package/build/esm/observable/internal/function/FunctionParamsCanonicalizer.test.js +186 -0
  205. package/build/esm/observable/internal/function/FunctionParamsCanonicalizer.test.js.map +1 -0
  206. package/build/esm/observable/internal/function/FunctionQuery.js +137 -0
  207. package/build/esm/observable/internal/function/FunctionQuery.js.map +1 -0
  208. package/build/esm/observable/internal/function/FunctionQuery.test.js +278 -0
  209. package/build/esm/observable/internal/function/FunctionQuery.test.js.map +1 -0
  210. package/build/esm/observable/internal/function/FunctionsHelper.js +92 -0
  211. package/build/esm/observable/internal/function/FunctionsHelper.js.map +1 -0
  212. package/build/esm/observable/internal/links/SpecificLinkQuery.js +9 -1
  213. package/build/esm/observable/internal/links/SpecificLinkQuery.js.map +1 -1
  214. package/build/esm/observable/internal/list/ListQuery.js +17 -2
  215. package/build/esm/observable/internal/list/ListQuery.js.map +1 -1
  216. package/build/esm/observable/internal/objectset/ObjectSetQuery.js +9 -7
  217. package/build/esm/observable/internal/objectset/ObjectSetQuery.js.map +1 -1
  218. package/build/esm/observable/internal/utils/rdpFieldOperations.js +46 -25
  219. package/build/esm/observable/internal/utils/rdpFieldOperations.js.map +1 -1
  220. package/build/esm/observable/internal/utils/rdpFieldOperations.test.js +172 -0
  221. package/build/esm/observable/internal/utils/rdpFieldOperations.test.js.map +1 -0
  222. package/build/esm/public/unstable-do-not-use.js.map +1 -1
  223. package/build/esm/queries/applyQuery.js +19 -1
  224. package/build/esm/queries/applyQuery.js.map +1 -1
  225. package/build/esm/queries/queries.test.js +14 -2
  226. package/build/esm/queries/queries.test.js.map +1 -1
  227. package/build/esm/util/UserAgent.js +2 -2
  228. package/build/esm/util/UserAgent.js.map +1 -1
  229. package/build/esm/util/toDataValue.js +0 -5
  230. package/build/esm/util/toDataValue.js.map +1 -1
  231. package/build/esm/util/toDataValue.test.js +2 -7
  232. package/build/esm/util/toDataValue.test.js.map +1 -1
  233. package/build/types/Client.d.ts +1 -1
  234. package/build/types/MinimalClientContext.d.ts +1 -1
  235. package/build/types/MinimalClientContext.d.ts.map +1 -1
  236. package/build/types/createClient.d.ts +1 -1
  237. package/build/types/createClient.d.ts.map +1 -1
  238. package/build/types/index.d.ts +1 -1
  239. package/build/types/index.d.ts.map +1 -1
  240. package/build/types/object/AttachmentUpload.d.ts.map +1 -1
  241. package/build/types/object/convertWireToOsdkObjects/InternalSymbols.d.ts +2 -0
  242. package/build/types/object/convertWireToOsdkObjects/InternalSymbols.d.ts.map +1 -1
  243. package/build/types/object/convertWireToOsdkObjects.d.ts +4 -4
  244. package/build/types/object/convertWireToOsdkObjects.d.ts.map +1 -1
  245. package/build/types/object/fetchPage.d.ts.map +1 -1
  246. package/build/types/object/object.test.d.ts.map +1 -1
  247. package/build/types/objectSet/fetchLinksPage.d.ts +1 -0
  248. package/build/types/objectSet/fetchLinksPage.d.ts.map +1 -0
  249. package/build/types/objectSet/fetchLinksPage.test.d.ts +1 -0
  250. package/build/types/objectSet/fetchLinksPage.test.d.ts.map +1 -0
  251. package/build/types/observable/FunctionPayload.d.ts +10 -0
  252. package/build/types/observable/FunctionPayload.d.ts.map +1 -0
  253. package/build/types/observable/ListPayload.d.ts +3 -2
  254. package/build/types/observable/ListPayload.d.ts.map +1 -1
  255. package/build/types/observable/ObjectPayload.d.ts +2 -2
  256. package/build/types/observable/ObjectPayload.d.ts.map +1 -1
  257. package/build/types/observable/ObservableClient.d.ts +61 -7
  258. package/build/types/observable/ObservableClient.d.ts.map +1 -1
  259. package/build/types/observable/internal/Changes.d.ts +5 -3
  260. package/build/types/observable/internal/Changes.d.ts.map +1 -1
  261. package/build/types/observable/internal/KnownCacheKey.d.ts +2 -1
  262. package/build/types/observable/internal/KnownCacheKey.d.ts.map +1 -1
  263. package/build/types/observable/internal/Store.d.ts +5 -1
  264. package/build/types/observable/internal/Store.d.ts.map +1 -1
  265. package/build/types/observable/internal/Store.test.d.ts.map +1 -1
  266. package/build/types/observable/internal/actions/ActionApplication.d.ts.map +1 -1
  267. package/build/types/observable/internal/actions/OptimisticJob.d.ts.map +1 -1
  268. package/build/types/observable/internal/function/FunctionCacheKey.d.ts +17 -0
  269. package/build/types/observable/internal/function/FunctionCacheKey.d.ts.map +1 -0
  270. package/build/types/observable/internal/function/FunctionParamsCanonicalizer.d.ts +16 -0
  271. package/build/types/observable/internal/function/FunctionParamsCanonicalizer.d.ts.map +1 -0
  272. package/build/types/observable/internal/function/FunctionParamsCanonicalizer.test.d.ts +1 -0
  273. package/build/types/observable/internal/function/FunctionParamsCanonicalizer.test.d.ts.map +1 -0
  274. package/build/types/observable/internal/function/FunctionQuery.d.ts +40 -0
  275. package/build/types/observable/internal/function/FunctionQuery.d.ts.map +1 -0
  276. package/build/types/observable/internal/function/FunctionQuery.test.d.ts +1 -0
  277. package/build/types/observable/internal/function/FunctionQuery.test.d.ts.map +1 -0
  278. package/build/types/observable/internal/function/FunctionsHelper.d.ts +25 -0
  279. package/build/types/observable/internal/function/FunctionsHelper.d.ts.map +1 -0
  280. package/build/types/observable/internal/links/SpecificLinkQuery.d.ts.map +1 -1
  281. package/build/types/observable/internal/list/ListQuery.d.ts.map +1 -1
  282. package/build/types/observable/internal/objectset/ObjectSetQuery.d.ts.map +1 -1
  283. package/build/types/observable/internal/utils/rdpFieldOperations.d.ts.map +1 -1
  284. package/build/types/observable/internal/utils/rdpFieldOperations.test.d.ts +1 -0
  285. package/build/types/observable/internal/utils/rdpFieldOperations.test.d.ts.map +1 -0
  286. package/build/types/public/unstable-do-not-use.d.ts +2 -1
  287. package/build/types/public/unstable-do-not-use.d.ts.map +1 -1
  288. package/build/types/queries/applyQuery.d.ts.map +1 -1
  289. package/package.json +10 -10
  290. package/build/cjs/chunk-VDAI3GGL.cjs.map +0 -1
  291. package/build/cjs/chunk-WQL7SQ7H.cjs.map +0 -1
@@ -1,44 +1,45 @@
1
1
  'use strict';
2
2
 
3
- var chunk6SCDLAU2_cjs = require('./chunk-6SCDLAU2.cjs');
3
+ var chunkLDTMSHUZ_cjs = require('./chunk-LDTMSHUZ.cjs');
4
4
  var shared_net_errors = require('@osdk/shared.net.errors');
5
+ var invariant4 = require('tiny-invariant');
5
6
  var shared_net_fetch = require('@osdk/shared.net.fetch');
6
- var invariant3 = require('tiny-invariant');
7
7
  var api = require('@osdk/api');
8
8
  var WebSocket = require('isomorphic-ws');
9
9
 
10
10
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
11
 
12
- var invariant3__default = /*#__PURE__*/_interopDefault(invariant3);
12
+ var invariant4__default = /*#__PURE__*/_interopDefault(invariant4);
13
13
  var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
14
14
 
15
15
  // src/object/fetchPage.ts
16
- chunk6SCDLAU2_cjs.init_cjs_shims();
16
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
17
17
 
18
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/index.js
19
- chunk6SCDLAU2_cjs.init_cjs_shims();
18
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/index.js
19
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
20
20
 
21
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
21
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
22
22
  var Action_exports = {};
23
- chunk6SCDLAU2_cjs.__export(Action_exports, {
23
+ chunkLDTMSHUZ_cjs.__export(Action_exports, {
24
24
  apply: () => apply,
25
25
  applyAsync: () => applyAsync,
26
- applyBatch: () => applyBatch
26
+ applyBatch: () => applyBatch,
27
+ applyWithOverrides: () => applyWithOverrides
27
28
  });
28
- chunk6SCDLAU2_cjs.init_cjs_shims();
29
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
29
30
 
30
- // ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.5.0/node_modules/@osdk/shared.net.platformapi/build/esm/index.js
31
- chunk6SCDLAU2_cjs.init_cjs_shims();
31
+ // ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.6.0/node_modules/@osdk/shared.net.platformapi/build/esm/index.js
32
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
32
33
 
33
- // ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.5.0/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
34
- chunk6SCDLAU2_cjs.init_cjs_shims();
34
+ // ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.6.0/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
35
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
35
36
 
36
37
  // ../../node_modules/.pnpm/@osdk+shared.client@1.0.1/node_modules/@osdk/shared.client/index.js
37
- chunk6SCDLAU2_cjs.init_cjs_shims();
38
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
38
39
  var symbolClientContext = Symbol("ClientContext");
39
40
 
40
41
  // ../../node_modules/.pnpm/@osdk+shared.client2@1.0.0/node_modules/@osdk/shared.client2/index.js
41
- chunk6SCDLAU2_cjs.init_cjs_shims();
42
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
42
43
  var symbolClientContext2 = "__osdkClientContext";
43
44
  async function foundryPlatformFetch(client, [httpMethodNum, origPath, flags, contentType, responseContentType], ...args) {
44
45
  const path = origPath.replace(/\{([^}]+)\}/g, () => encodeURIComponent(args.shift()));
@@ -104,7 +105,7 @@ function parseUrl(baseUrl, endpointPath) {
104
105
  return new URL(`api${endpointPath}`, baseUrl);
105
106
  }
106
107
 
107
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
108
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
108
109
  var _apply = [1, "/v2/ontologies/{0}/actions/{1}/apply", 3];
109
110
  function apply($ctx, ...args) {
110
111
  return foundryPlatformFetch($ctx, _apply, ...args);
@@ -117,18 +118,22 @@ var _applyBatch = [1, "/v2/ontologies/{0}/actions/{1}/applyBatch", 3];
117
118
  function applyBatch($ctx, ...args) {
118
119
  return foundryPlatformFetch($ctx, _applyBatch, ...args);
119
120
  }
121
+ var _applyWithOverrides = [1, "/v2/ontologies/{0}/actions/{1}/applyWithOverrides", 3];
122
+ function applyWithOverrides($ctx, ...args) {
123
+ return foundryPlatformFetch($ctx, _applyWithOverrides, ...args);
124
+ }
120
125
 
121
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeFullMetadata.js
122
- chunk6SCDLAU2_cjs.init_cjs_shims();
126
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeFullMetadata.js
127
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
123
128
 
124
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
129
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
125
130
  var ActionTypeV2_exports = {};
126
- chunk6SCDLAU2_cjs.__export(ActionTypeV2_exports, {
131
+ chunkLDTMSHUZ_cjs.__export(ActionTypeV2_exports, {
127
132
  get: () => get,
128
133
  getByRid: () => getByRid,
129
134
  list: () => list
130
135
  });
131
- chunk6SCDLAU2_cjs.init_cjs_shims();
136
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
132
137
  var _list = [0, "/v2/ontologies/{0}/actionTypes", 2];
133
138
  function list($ctx, ...args) {
134
139
  return foundryPlatformFetch($ctx, _list, ...args);
@@ -142,15 +147,15 @@ function getByRid($ctx, ...args) {
142
147
  return foundryPlatformFetch($ctx, _getByRid, ...args);
143
148
  }
144
149
 
145
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
150
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
146
151
  var Attachment_exports = {};
147
- chunk6SCDLAU2_cjs.__export(Attachment_exports, {
152
+ chunkLDTMSHUZ_cjs.__export(Attachment_exports, {
148
153
  get: () => get2,
149
154
  read: () => read,
150
155
  upload: () => upload,
151
156
  uploadWithRid: () => uploadWithRid
152
157
  });
153
- chunk6SCDLAU2_cjs.init_cjs_shims();
158
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
154
159
  var _upload = [1, "/v2/ontologies/attachments/upload", 7, "*/*"];
155
160
  function upload($ctx, ...args) {
156
161
  const headerParams = {
@@ -178,23 +183,23 @@ function get2($ctx, ...args) {
178
183
  return foundryPlatformFetch($ctx, _get2, ...args);
179
184
  }
180
185
 
181
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/AttachmentPropertyV2.js
182
- chunk6SCDLAU2_cjs.init_cjs_shims();
186
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/AttachmentPropertyV2.js
187
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
183
188
 
184
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/CipherTextProperty.js
185
- chunk6SCDLAU2_cjs.init_cjs_shims();
189
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/CipherTextProperty.js
190
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
186
191
 
187
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/LinkedObjectV2.js
188
- chunk6SCDLAU2_cjs.init_cjs_shims();
192
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/LinkedObjectV2.js
193
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
189
194
 
190
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
195
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
191
196
  var MediaReferenceProperty_exports = {};
192
- chunk6SCDLAU2_cjs.__export(MediaReferenceProperty_exports, {
197
+ chunkLDTMSHUZ_cjs.__export(MediaReferenceProperty_exports, {
193
198
  getMediaContent: () => getMediaContent,
194
199
  getMediaMetadata: () => getMediaMetadata,
195
200
  upload: () => upload2
196
201
  });
197
- chunk6SCDLAU2_cjs.init_cjs_shims();
202
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
198
203
  var _getMediaContent = [0, "/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/content", 2, , "*/*"];
199
204
  function getMediaContent($ctx, ...args) {
200
205
  return foundryPlatformFetch($ctx, _getMediaContent, ...args);
@@ -208,16 +213,16 @@ function upload2($ctx, ...args) {
208
213
  return foundryPlatformFetch($ctx, _upload2, ...args);
209
214
  }
210
215
 
211
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
216
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
212
217
  var ObjectTypeV2_exports = {};
213
- chunk6SCDLAU2_cjs.__export(ObjectTypeV2_exports, {
218
+ chunkLDTMSHUZ_cjs.__export(ObjectTypeV2_exports, {
214
219
  get: () => get3,
215
220
  getFullMetadata: () => getFullMetadata,
216
221
  getOutgoingLinkType: () => getOutgoingLinkType,
217
222
  list: () => list2,
218
223
  listOutgoingLinkTypes: () => listOutgoingLinkTypes
219
224
  });
220
- chunk6SCDLAU2_cjs.init_cjs_shims();
225
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
221
226
  var _list2 = [0, "/v2/ontologies/{0}/objectTypes", 2];
222
227
  function list2($ctx, ...args) {
223
228
  return foundryPlatformFetch($ctx, _list2, ...args);
@@ -239,9 +244,9 @@ function getOutgoingLinkType($ctx, ...args) {
239
244
  return foundryPlatformFetch($ctx, _getOutgoingLinkType, ...args);
240
245
  }
241
246
 
242
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
247
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
243
248
  var OntologyInterface_exports = {};
244
- chunk6SCDLAU2_cjs.__export(OntologyInterface_exports, {
249
+ chunkLDTMSHUZ_cjs.__export(OntologyInterface_exports, {
245
250
  aggregate: () => aggregate,
246
251
  get: () => get4,
247
252
  getOutgoingInterfaceLinkType: () => getOutgoingInterfaceLinkType,
@@ -251,7 +256,7 @@ chunk6SCDLAU2_cjs.__export(OntologyInterface_exports, {
251
256
  listOutgoingInterfaceLinkTypes: () => listOutgoingInterfaceLinkTypes,
252
257
  search: () => search
253
258
  });
254
- chunk6SCDLAU2_cjs.init_cjs_shims();
259
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
255
260
  var _list3 = [0, "/v2/ontologies/{0}/interfaceTypes", 2];
256
261
  function list3($ctx, ...args) {
257
262
  return foundryPlatformFetch($ctx, _list3, ...args);
@@ -285,9 +290,9 @@ function listInterfaceLinkedObjects($ctx, ...args) {
285
290
  return foundryPlatformFetch($ctx, _listInterfaceLinkedObjects, ...args);
286
291
  }
287
292
 
288
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
293
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
289
294
  var OntologyObjectSet_exports = {};
290
- chunk6SCDLAU2_cjs.__export(OntologyObjectSet_exports, {
295
+ chunkLDTMSHUZ_cjs.__export(OntologyObjectSet_exports, {
291
296
  aggregate: () => aggregate2,
292
297
  createTemporary: () => createTemporary,
293
298
  get: () => get5,
@@ -296,7 +301,7 @@ chunk6SCDLAU2_cjs.__export(OntologyObjectSet_exports, {
296
301
  loadMultipleObjectTypes: () => loadMultipleObjectTypes,
297
302
  loadObjectsOrInterfaces: () => loadObjectsOrInterfaces
298
303
  });
299
- chunk6SCDLAU2_cjs.init_cjs_shims();
304
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
300
305
  var _createTemporary = [1, "/v2/ontologies/{0}/objectSets/createTemporary", 3];
301
306
  function createTemporary($ctx, ...args) {
302
307
  return foundryPlatformFetch($ctx, _createTemporary, ...args);
@@ -326,36 +331,36 @@ function loadLinks($ctx, ...args) {
326
331
  return foundryPlatformFetch($ctx, _loadLinks, ...args);
327
332
  }
328
333
 
329
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectV2.js
330
- chunk6SCDLAU2_cjs.init_cjs_shims();
334
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectV2.js
335
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
331
336
 
332
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyTransaction.js
333
- chunk6SCDLAU2_cjs.init_cjs_shims();
337
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyTransaction.js
338
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
334
339
 
335
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyV2.js
336
- chunk6SCDLAU2_cjs.init_cjs_shims();
340
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyV2.js
341
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
337
342
 
338
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyValueType.js
339
- chunk6SCDLAU2_cjs.init_cjs_shims();
343
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyValueType.js
344
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
340
345
 
341
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
346
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
342
347
  var Query_exports = {};
343
- chunk6SCDLAU2_cjs.__export(Query_exports, {
348
+ chunkLDTMSHUZ_cjs.__export(Query_exports, {
344
349
  execute: () => execute
345
350
  });
346
- chunk6SCDLAU2_cjs.init_cjs_shims();
351
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
347
352
  var _execute = [1, "/v2/ontologies/{0}/queries/{1}/execute", 7];
348
353
  function execute($ctx, ...args) {
349
354
  return foundryPlatformFetch($ctx, _execute, ...args);
350
355
  }
351
356
 
352
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
357
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
353
358
  var QueryType_exports = {};
354
- chunk6SCDLAU2_cjs.__export(QueryType_exports, {
359
+ chunkLDTMSHUZ_cjs.__export(QueryType_exports, {
355
360
  get: () => get6,
356
361
  list: () => list4
357
362
  });
358
- chunk6SCDLAU2_cjs.init_cjs_shims();
363
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
359
364
  var _list4 = [0, "/v2/ontologies/{0}/queryTypes", 2];
360
365
  function list4($ctx, ...args) {
361
366
  return foundryPlatformFetch($ctx, _list4, ...args);
@@ -365,14 +370,14 @@ function get6($ctx, ...args) {
365
370
  return foundryPlatformFetch($ctx, _get6, ...args);
366
371
  }
367
372
 
368
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
373
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
369
374
  var TimeSeriesPropertyV2_exports = {};
370
- chunk6SCDLAU2_cjs.__export(TimeSeriesPropertyV2_exports, {
375
+ chunkLDTMSHUZ_cjs.__export(TimeSeriesPropertyV2_exports, {
371
376
  getFirstPoint: () => getFirstPoint,
372
377
  getLastPoint: () => getLastPoint,
373
378
  streamPoints: () => streamPoints
374
379
  });
375
- chunk6SCDLAU2_cjs.init_cjs_shims();
380
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
376
381
  var _getFirstPoint = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/firstPoint", 2];
377
382
  function getFirstPoint($ctx, ...args) {
378
383
  return foundryPlatformFetch($ctx, _getFirstPoint, ...args);
@@ -386,13 +391,13 @@ function streamPoints($ctx, ...args) {
386
391
  return foundryPlatformFetch($ctx, _streamPoints, ...args);
387
392
  }
388
393
 
389
- // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.42.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
394
+ // ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.45.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
390
395
  var TimeSeriesValueBankProperty_exports = {};
391
- chunk6SCDLAU2_cjs.__export(TimeSeriesValueBankProperty_exports, {
396
+ chunkLDTMSHUZ_cjs.__export(TimeSeriesValueBankProperty_exports, {
392
397
  getLatestValue: () => getLatestValue,
393
398
  streamValues: () => streamValues
394
399
  });
395
- chunk6SCDLAU2_cjs.init_cjs_shims();
400
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
396
401
  var _getLatestValue = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/latestValue", 2];
397
402
  function getLatestValue($ctx, ...args) {
398
403
  return foundryPlatformFetch($ctx, _getLatestValue, ...args);
@@ -403,7 +408,7 @@ function streamValues($ctx, ...args) {
403
408
  }
404
409
 
405
410
  // src/internal/conversions/extractNamespace.ts
406
- chunk6SCDLAU2_cjs.init_cjs_shims();
411
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
407
412
  function extractNamespace(fqApiName) {
408
413
  const last = fqApiName.lastIndexOf(".");
409
414
  if (last === -1) return [void 0, fqApiName];
@@ -411,7 +416,7 @@ function extractNamespace(fqApiName) {
411
416
  }
412
417
 
413
418
  // src/util/addUserAgentAndRequestContextHeaders.ts
414
- chunk6SCDLAU2_cjs.init_cjs_shims();
419
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
415
420
  var addUserAgentAndRequestContextHeaders = (client, withMetadata) => ({
416
421
  ...client,
417
422
  fetch: shared_net_fetch.createFetchHeaderMutator(client.fetch, (headers) => {
@@ -424,7 +429,7 @@ var addUserAgentAndRequestContextHeaders = (client, withMetadata) => ({
424
429
  });
425
430
 
426
431
  // src/util/extractObjectOrInterfaceType.ts
427
- chunk6SCDLAU2_cjs.init_cjs_shims();
432
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
428
433
  async function extractObjectOrInterfaceType(clientCtx, objectSet) {
429
434
  switch (objectSet.type) {
430
435
  case "searchAround": {
@@ -434,7 +439,7 @@ async function extractObjectOrInterfaceType(clientCtx, objectSet) {
434
439
  }
435
440
  const objOrInterfaceDef2 = def2.type === "object" ? await clientCtx.ontologyProvider.getObjectDefinition(def2.apiName) : await clientCtx.ontologyProvider.getInterfaceDefinition(def2.apiName);
436
441
  const linkDef2 = objOrInterfaceDef2.links[objectSet.link];
437
- !linkDef2 ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Missing link definition for '${objectSet.link}'`) : invariant3__default.default(false) : void 0;
442
+ !linkDef2 ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Missing link definition for '${objectSet.link}'`) : invariant4__default.default(false) : void 0;
438
443
  return objOrInterfaceDef2.type === "object" ? {
439
444
  apiName: objOrInterfaceDef2.links[objectSet.link].targetType,
440
445
  type: "object"
@@ -472,7 +477,7 @@ async function extractObjectOrInterfaceType(clientCtx, objectSet) {
472
477
  const objectSetTypes2 = await Promise.all(objectSets2.map((os) => extractObjectOrInterfaceType(clientCtx, os)));
473
478
  const filteredObjectTypes2 = objectSetTypes2.filter(Boolean);
474
479
  const firstInterfaceType = filteredObjectTypes2.find((val) => val?.type === "interface");
475
- !firstInterfaceType ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Missing interface type in intersect objectset scope'`) : invariant3__default.default(false) : void 0;
480
+ !firstInterfaceType ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Missing interface type in intersect objectset scope'`) : invariant4__default.default(false) : void 0;
476
481
  return firstInterfaceType;
477
482
  }
478
483
  case "subtract":
@@ -483,7 +488,7 @@ async function extractObjectOrInterfaceType(clientCtx, objectSet) {
483
488
  const firstObjectType = filteredObjectTypes[0];
484
489
  !filteredObjectTypes.every((val) => {
485
490
  return val?.apiName === firstObjectType?.apiName && val?.type === firstObjectType?.type;
486
- }) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Can only have one object type when doing subtract, union") : invariant3__default.default(false) : void 0;
491
+ }) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Can only have one object type when doing subtract, union") : invariant4__default.default(false) : void 0;
487
492
  return filteredObjectTypes[0];
488
493
  case "static":
489
494
  case "reference":
@@ -495,7 +500,7 @@ async function extractObjectOrInterfaceType(clientCtx, objectSet) {
495
500
  }
496
501
  const objOrInterfaceDef = def.type === "object" ? await clientCtx.ontologyProvider.getObjectDefinition(def.apiName) : await clientCtx.ontologyProvider.getInterfaceDefinition(def.apiName);
497
502
  const linkDef = objOrInterfaceDef.links[objectSet.interfaceLink];
498
- !linkDef ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Missing link definition for '${objectSet.interfaceLink}'`) : invariant3__default.default(false) : void 0;
503
+ !linkDef ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Missing link definition for '${objectSet.interfaceLink}'`) : invariant4__default.default(false) : void 0;
499
504
  return objOrInterfaceDef.type === "object" ? {
500
505
  apiName: objOrInterfaceDef.links[objectSet.interfaceLink].targetType,
501
506
  type: "object"
@@ -505,12 +510,12 @@ async function extractObjectOrInterfaceType(clientCtx, objectSet) {
505
510
  };
506
511
  // We don't have to worry about new object sets being added and doing a runtime break and breaking people since the OSDK is always constructing these.
507
512
  default:
508
- process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Unsupported object set type for deriving object or interface type,`) : invariant3__default.default(false) ;
513
+ process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Unsupported object set type for deriving object or interface type,`) : invariant4__default.default(false) ;
509
514
  }
510
515
  }
511
516
 
512
517
  // src/util/extractRdpDefinition.ts
513
- chunk6SCDLAU2_cjs.init_cjs_shims();
518
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
514
519
  async function extractRdpDefinition(clientCtx, objectSet) {
515
520
  return (await extractRdpDefinitionInternal(clientCtx, objectSet, void 0)).definitions;
516
521
  }
@@ -528,7 +533,7 @@ async function extractRdpDefinitionInternal(clientCtx, objectSet, methodInputObj
528
533
  }
529
534
  const objDef = await clientCtx.ontologyProvider.getObjectDefinition(childObjectType);
530
535
  const linkDef = objDef.links[objectSet.link];
531
- !linkDef ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Missing link definition for '${objectSet.link}'`) : invariant3__default.default(false) : void 0;
536
+ !linkDef ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Missing link definition for '${objectSet.link}'`) : invariant4__default.default(false) : void 0;
532
537
  return {
533
538
  definitions: definitions2,
534
539
  childObjectType: objDef.links[objectSet.link].targetType
@@ -614,13 +619,13 @@ async function extractRdpDefinitionInternal(clientCtx, objectSet, methodInputObj
614
619
  ...acc,
615
620
  ...definitions2
616
621
  }), {});
617
- !(Object.keys(definitions).length === 0) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Object sets combined using intersect, subtract, or union must not contain any derived property definitions") : invariant3__default.default(false) : void 0;
622
+ !(Object.keys(definitions).length === 0) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Object sets combined using intersect, subtract, or union must not contain any derived property definitions") : invariant4__default.default(false) : void 0;
618
623
  const firstValidChildObjectType = objectSetTypes.find(({
619
624
  childObjectType
620
625
  }) => childObjectType != null)?.childObjectType;
621
626
  !objectSetTypes.every(({
622
627
  childObjectType
623
- }) => childObjectType === firstValidChildObjectType || childObjectType == null) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "All object sets in an intersect, subtract, or union must have the same child object type") : invariant3__default.default(false) : void 0;
628
+ }) => childObjectType === firstValidChildObjectType || childObjectType == null) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "All object sets in an intersect, subtract, or union must have the same child object type") : invariant4__default.default(false) : void 0;
624
629
  return {
625
630
  definitions: {},
626
631
  childObjectType: firstValidChildObjectType
@@ -632,14 +637,14 @@ async function extractRdpDefinitionInternal(clientCtx, objectSet, methodInputObj
632
637
  };
633
638
  // We don't have to worry about new object sets being added and doing a runtime break and breaking people since the OSDK is always constructing these.
634
639
  case "interfaceLinkSearchAround":
635
- process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Unsupported object set type for Runtime Derived Properties`) : invariant3__default.default(false) ;
640
+ process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Unsupported object set type for Runtime Derived Properties`) : invariant4__default.default(false) ;
636
641
  default:
637
- process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Unsupported object set type for Runtime Derived Properties`) : invariant3__default.default(false) ;
642
+ process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Unsupported object set type for Runtime Derived Properties`) : invariant4__default.default(false) ;
638
643
  }
639
644
  }
640
645
 
641
646
  // src/util/objectSetUtils.ts
642
- chunk6SCDLAU2_cjs.init_cjs_shims();
647
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
643
648
  function resolveBaseObjectSetType(objectType) {
644
649
  return objectType.type === "interface" ? {
645
650
  type: "interfaceBase",
@@ -685,6 +690,7 @@ function resolveInterfaceObjectSet(objectSet, interfaceTypeApiName, args) {
685
690
  } : objectSet;
686
691
  }
687
692
  async function fetchStaticRidPage(client, rids, args, useSnapshot = false) {
693
+ const shouldLoadPropertySecurities = args.$loadPropertySecurityMetadata ?? false;
688
694
  const requestBody = await applyFetchArgs(args, {
689
695
  objectSet: {
690
696
  type: "static",
@@ -692,11 +698,15 @@ async function fetchStaticRidPage(client, rids, args, useSnapshot = false) {
692
698
  },
693
699
  select: args?.$select ?? [],
694
700
  excludeRid: !args?.$includeRid,
695
- snapshot: useSnapshot
701
+ snapshot: useSnapshot,
702
+ loadPropertySecurities: shouldLoadPropertySecurities
696
703
  }, client, {
697
704
  type: "object",
698
705
  apiName: ""
699
706
  });
707
+ if (client.flushEdits != null) {
708
+ await client.flushEdits();
709
+ }
700
710
  const result = await OntologyObjectSet_exports.loadMultipleObjectTypes(addUserAgentAndRequestContextHeaders(client, {
701
711
  osdkMetadata: void 0
702
712
  }), await client.ontologyRid, requestBody, {
@@ -704,13 +714,14 @@ async function fetchStaticRidPage(client, rids, args, useSnapshot = false) {
704
714
  transactionId: client.transactionId
705
715
  });
706
716
  return Promise.resolve({
707
- data: await client.objectFactory2(client, result.data, void 0, {}, !args.$includeRid, args.$select, false, result.interfaceToObjectTypeMappings),
717
+ data: await client.objectFactory2(client, result.data, void 0, {}, shouldLoadPropertySecurities ? result.propertySecurities : void 0, !args.$includeRid, args.$select, false, result.interfaceToObjectTypeMappings, result.interfaceToObjectTypeMappingsV2),
708
718
  nextPageToken: result.nextPageToken,
709
719
  totalCount: result.totalCount
710
720
  });
711
721
  }
712
722
  async function fetchInterfacePage(client, interfaceType, args, objectSet, useSnapshot = false) {
713
723
  if (args.$__UNSTABLE_useOldInterfaceApis) {
724
+ !(args.$loadPropertySecurityMetadata === false || args.$loadPropertySecurityMetadata === void 0) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "`$loadPropertySecurityMetadata` is not supported with old interface APIs") : invariant4__default.default(false) : void 0;
714
725
  const baseRequestBody = {
715
726
  augmentedProperties: {},
716
727
  augmentedSharedPropertyTypes: {},
@@ -726,6 +737,9 @@ async function fetchInterfacePage(client, interfaceType, args, objectSet, useSna
726
737
  const remapped = remapPropertyNames(interfaceType, requestBody2.selectedSharedPropertyTypes);
727
738
  requestBody2.selectedSharedPropertyTypes = Array.from(remapped);
728
739
  }
740
+ if (client.flushEdits != null) {
741
+ await client.flushEdits();
742
+ }
729
743
  const result2 = await OntologyInterface_exports.search(addUserAgentAndRequestContextHeaders(client, interfaceType), await client.ontologyRid, interfaceType.apiName, requestBody2, {
730
744
  preview: true
731
745
  });
@@ -735,25 +749,32 @@ async function fetchInterfacePage(client, interfaceType, args, objectSet, useSna
735
749
  // drop readonly
736
750
  interfaceType.apiName,
737
751
  !args.$includeRid,
738
- await extractRdpDefinition(client, objectSet)
752
+ await extractRdpDefinition(client, objectSet),
753
+ void 0
739
754
  );
740
755
  return result2;
741
756
  }
742
757
  const extractedInterfaceTypeApiName = (await extractObjectOrInterfaceType(client, objectSet))?.apiName ?? interfaceType.apiName;
743
758
  const resolvedInterfaceObjectSet = resolveInterfaceObjectSet(objectSet, extractedInterfaceTypeApiName, args);
759
+ const shouldLoadPropertySecurities = args.$loadPropertySecurityMetadata ?? false;
744
760
  const requestBody = await buildAndRemapRequestBody(args, {
745
761
  objectSet: resolvedInterfaceObjectSet,
746
762
  select: args?.$select ? [...args.$select] : [],
763
+ selectV2: [],
764
+ loadPropertySecurities: shouldLoadPropertySecurities,
747
765
  excludeRid: !args?.$includeRid,
748
766
  snapshot: useSnapshot
749
767
  }, client, interfaceType);
768
+ if (client.flushEdits != null) {
769
+ await client.flushEdits();
770
+ }
750
771
  const result = await OntologyObjectSet_exports.loadMultipleObjectTypes(addUserAgentAndRequestContextHeaders(client, interfaceType), await client.ontologyRid, requestBody, {
751
772
  preview: true,
752
773
  branch: client.branch,
753
774
  transactionId: client.transactionId
754
775
  });
755
776
  return Promise.resolve({
756
- data: await client.objectFactory2(client, result.data, extractedInterfaceTypeApiName, {}, !args.$includeRid, args.$select, false, result.interfaceToObjectTypeMappings),
777
+ data: await client.objectFactory2(client, result.data, extractedInterfaceTypeApiName, {}, shouldLoadPropertySecurities ? result.propertySecurities : void 0, !args.$includeRid, args.$select, false, result.interfaceToObjectTypeMappings, result.interfaceToObjectTypeMappingsV2),
757
778
  nextPageToken: result.nextPageToken,
758
779
  totalCount: result.totalCount
759
780
  });
@@ -816,6 +837,9 @@ async function applyFetchArgs(args, body, _client, objectType) {
816
837
  if (args?.$pageSize != null) {
817
838
  body.pageSize = args.$pageSize;
818
839
  }
840
+ if (args?.$loadPropertySecurityMetadata) {
841
+ body.loadPropertySecurities = true;
842
+ }
819
843
  const orderBy = args?.$orderBy;
820
844
  if (orderBy) {
821
845
  if (orderBy === "relevance") {
@@ -840,28 +864,34 @@ async function applyFetchArgs(args, body, _client, objectType) {
840
864
  async function fetchObjectPage(client, objectType, args, objectSet, useSnapshot = false) {
841
865
  void client.ontologyProvider.getObjectDefinition(objectType.apiName).catch(() => {
842
866
  });
867
+ const shouldLoadPropertySecurities = args.$loadPropertySecurityMetadata ?? false;
843
868
  const requestBody = await buildAndRemapRequestBody(args, {
844
869
  objectSet,
845
870
  select: args?.$select ? [...args.$select] : [],
871
+ selectV2: [],
872
+ loadPropertySecurities: shouldLoadPropertySecurities,
846
873
  excludeRid: !args?.$includeRid,
847
874
  snapshot: useSnapshot
848
875
  }, client, objectType);
876
+ if (client.flushEdits != null) {
877
+ await client.flushEdits();
878
+ }
849
879
  const r = await OntologyObjectSet_exports.load(addUserAgentAndRequestContextHeaders(client, objectType), await client.ontologyRid, requestBody, {
850
880
  branch: client.branch,
851
881
  transactionId: client.transactionId
852
882
  });
853
883
  return Promise.resolve({
854
- data: await client.objectFactory(client, r.data, void 0, void 0, await extractRdpDefinition(client, objectSet), args.$select, false),
884
+ data: await client.objectFactory(client, r.data, void 0, void 0, await extractRdpDefinition(client, objectSet), shouldLoadPropertySecurities ? r.propertySecurities : void 0, args.$select, false),
855
885
  nextPageToken: r.nextPageToken,
856
886
  totalCount: r.totalCount
857
887
  });
858
888
  }
859
889
 
860
890
  // src/public-utils/hydrateAttachmentFromRid.ts
861
- chunk6SCDLAU2_cjs.init_cjs_shims();
891
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
862
892
 
863
893
  // src/Client.ts
864
- chunk6SCDLAU2_cjs.init_cjs_shims();
894
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
865
895
  var additionalContext = Symbol("additionalContext");
866
896
 
867
897
  // src/public-utils/hydrateAttachmentFromRid.ts
@@ -885,10 +915,10 @@ function hydrateAttachmentFromRidInternal(client, rid) {
885
915
  }
886
916
 
887
917
  // src/logger/MinimalLogger.ts
888
- chunk6SCDLAU2_cjs.init_cjs_shims();
918
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
889
919
 
890
920
  // src/logger/BaseLogger.ts
891
- chunk6SCDLAU2_cjs.init_cjs_shims();
921
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
892
922
  function noop() {
893
923
  }
894
924
  var levels = {
@@ -956,7 +986,7 @@ var MinimalLogger = class _MinimalLogger extends BaseLogger {
956
986
  };
957
987
 
958
988
  // src/object/fetchSingle.ts
959
- chunk6SCDLAU2_cjs.init_cjs_shims();
989
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
960
990
  async function fetchSingle(client, objectType, args, objectSet) {
961
991
  const result = await fetchPage(client, objectType, {
962
992
  ...args,
@@ -986,16 +1016,16 @@ async function fetchSingleWithErrors(client, objectType, args, objectSet) {
986
1016
  }
987
1017
 
988
1018
  // src/objectSet/createObjectSet.ts
989
- chunk6SCDLAU2_cjs.init_cjs_shims();
1019
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
990
1020
 
991
1021
  // src/derivedProperties/createWithPropertiesObjectSet.ts
992
- chunk6SCDLAU2_cjs.init_cjs_shims();
1022
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
993
1023
 
994
1024
  // src/internal/conversions/modernToLegacyWhereClause.ts
995
- chunk6SCDLAU2_cjs.init_cjs_shims();
1025
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
996
1026
 
997
1027
  // src/internal/conversions/fullyQualifyPropName.ts
998
- chunk6SCDLAU2_cjs.init_cjs_shims();
1028
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
999
1029
  function fullyQualifyPropName(fieldName, objectOrInterface) {
1000
1030
  if (objectOrInterface.type === "interface") {
1001
1031
  const [objApiNamespace] = extractNamespace(objectOrInterface.apiName);
@@ -1006,10 +1036,10 @@ function fullyQualifyPropName(fieldName, objectOrInterface) {
1006
1036
  }
1007
1037
 
1008
1038
  // src/internal/conversions/makeGeoFilterIntersects.ts
1009
- chunk6SCDLAU2_cjs.init_cjs_shims();
1039
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1010
1040
 
1011
1041
  // src/internal/conversions/makeGeoFilterBbox.ts
1012
- chunk6SCDLAU2_cjs.init_cjs_shims();
1042
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1013
1043
  function makeGeoFilterBbox(bbox, filterType, propertyIdentifier, field) {
1014
1044
  return {
1015
1045
  type: filterType === "$within" ? "withinBoundingBox" : "intersectsBoundingBox",
@@ -1036,7 +1066,7 @@ function makeGeoFilterBbox(bbox, filterType, propertyIdentifier, field) {
1036
1066
  }
1037
1067
 
1038
1068
  // src/internal/conversions/makeGeoFilterPolygon.ts
1039
- chunk6SCDLAU2_cjs.init_cjs_shims();
1069
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1040
1070
  function makeGeoFilterPolygon(coordinates, filterType, propertyIdentifier, field) {
1041
1071
  return {
1042
1072
  type: filterType,
@@ -1064,7 +1094,7 @@ function makeGeoFilterIntersects(intersectsBody, propertyIdentifier, field) {
1064
1094
  }
1065
1095
 
1066
1096
  // src/internal/conversions/makeGeoFilterWithin.ts
1067
- chunk6SCDLAU2_cjs.init_cjs_shims();
1097
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1068
1098
  function makeGeoFilterWithin(withinBody, propertyIdentifier, field) {
1069
1099
  if (Array.isArray(withinBody)) {
1070
1100
  return makeGeoFilterBbox(withinBody, "$within", propertyIdentifier, field);
@@ -1118,7 +1148,7 @@ function modernToLegacyWhereClause(whereClause, objectOrInterface, rdpNames) {
1118
1148
  }
1119
1149
  function modernToLegacyWhereClauseInner(whereClause, objectOrInterface, rdpNames) {
1120
1150
  const parts = Object.entries(whereClause);
1121
- !(parts.length === 1) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Invalid where clause provided.") : invariant3__default.default(false) : void 0;
1151
+ !(parts.length === 1) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Invalid where clause provided.") : invariant4__default.default(false) : void 0;
1122
1152
  if (isAndClause(whereClause)) {
1123
1153
  return {
1124
1154
  type: "and",
@@ -1138,7 +1168,7 @@ function modernToLegacyWhereClauseInner(whereClause, objectOrInterface, rdpNames
1138
1168
  return handleWherePair(parts[0], objectOrInterface, void 0, rdpNames);
1139
1169
  }
1140
1170
  function handleWherePair([fieldName, filter], objectOrInterface, structFieldSelector, rdpNames) {
1141
- !(filter != null) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Defined key values are only allowed when they are not undefined.") : invariant3__default.default(false) : void 0;
1171
+ !(filter != null) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Defined key values are only allowed when they are not undefined.") : invariant4__default.default(false) : void 0;
1142
1172
  const isRdp = !structFieldSelector && rdpNames?.has(fieldName);
1143
1173
  const propertyIdentifier = isRdp ? {
1144
1174
  type: "property",
@@ -1149,7 +1179,7 @@ function handleWherePair([fieldName, filter], objectOrInterface, structFieldSele
1149
1179
  propertyApiName: fullyQualifyPropName(structFieldSelector.propertyApiName, objectOrInterface)
1150
1180
  } : void 0;
1151
1181
  const field = !isRdp && structFieldSelector == null ? fullyQualifyPropName(fieldName, objectOrInterface) : void 0;
1152
- !(field == null || propertyIdentifier == null && (field != null || isRdp != null)) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Encountered error constructing where clause: field and propertyIdentifier cannot both be defined") : invariant3__default.default(false) : void 0;
1182
+ !(field == null || propertyIdentifier == null && (field != null || isRdp != null)) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Encountered error constructing where clause: field and propertyIdentifier cannot both be defined") : invariant4__default.default(false) : void 0;
1153
1183
  if (typeof filter === "string" || typeof filter === "number" || typeof filter === "boolean") {
1154
1184
  return {
1155
1185
  type: "eq",
@@ -1162,10 +1192,10 @@ function handleWherePair([fieldName, filter], objectOrInterface, structFieldSele
1162
1192
  }
1163
1193
  const keysOfFilter = Object.keys(filter);
1164
1194
  const hasDollarSign = keysOfFilter.some((key) => key.startsWith("$"));
1165
- !(!hasDollarSign || keysOfFilter.length === 1) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "A WhereClause Filter with multiple clauses/fields is not allowed. Instead, use an 'or'/'and' clause to combine multiple filters.") : invariant3__default.default(false) : void 0;
1195
+ !(!hasDollarSign || keysOfFilter.length === 1) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "A WhereClause Filter with multiple clauses/fields is not allowed. Instead, use an 'or'/'and' clause to combine multiple filters.") : invariant4__default.default(false) : void 0;
1166
1196
  if (!hasDollarSign) {
1167
1197
  const structFilter = Object.entries(filter);
1168
- !(structFilter.length === 1) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Cannot filter on more than one struct field in the same clause, need to use an and clause") : invariant3__default.default(false) : void 0;
1198
+ !(structFilter.length === 1) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Cannot filter on more than one struct field in the same clause, need to use an and clause") : invariant4__default.default(false) : void 0;
1169
1199
  const structFieldApiName = keysOfFilter[0];
1170
1200
  return handleWherePair(Object.entries(filter)[0], objectOrInterface, {
1171
1201
  propertyApiName: fieldName,
@@ -1173,10 +1203,10 @@ function handleWherePair([fieldName, filter], objectOrInterface, structFieldSele
1173
1203
  }, rdpNames);
1174
1204
  }
1175
1205
  const firstKey = keysOfFilter[0];
1176
- !(filter[firstKey] != null) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false) : invariant3__default.default(false) : void 0;
1206
+ !(filter[firstKey] != null) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false) : invariant4__default.default(false) : void 0;
1177
1207
  if (firstKey === "$contains" && filter[firstKey] instanceof Object) {
1178
1208
  const structFilter = Object.entries(filter[firstKey]);
1179
- !(structFilter.length === 1) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Cannot filter on more than one struct field in the same clause, need to use an and clause") : invariant3__default.default(false) : void 0;
1209
+ !(structFilter.length === 1) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Cannot filter on more than one struct field in the same clause, need to use an and clause") : invariant4__default.default(false) : void 0;
1180
1210
  const structFieldApiName = structFilter[0][0];
1181
1211
  return handleWherePair(structFilter[0], objectOrInterface, {
1182
1212
  propertyApiName: fieldName,
@@ -1224,7 +1254,7 @@ function handleWherePair([fieldName, filter], objectOrInterface, structFieldSele
1224
1254
  }
1225
1255
 
1226
1256
  // src/derivedProperties/derivedPropertyDefinitionFactory.ts
1227
- chunk6SCDLAU2_cjs.init_cjs_shims();
1257
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1228
1258
  function derivedPropertyDefinitionFactory(wireDefinition, definitionMap) {
1229
1259
  const definition = {
1230
1260
  abs() {
@@ -1291,12 +1321,12 @@ function derivedPropertyDefinitionFactory(wireDefinition, definitionMap) {
1291
1321
  var getDefinitionFromMap = (arg, definitionMap) => {
1292
1322
  if (typeof arg === "object") {
1293
1323
  const definition = definitionMap.get(arg);
1294
- !definition ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Derived Property is not defined") : invariant3__default.default(false) : void 0;
1324
+ !definition ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Derived Property is not defined") : invariant4__default.default(false) : void 0;
1295
1325
  return definition;
1296
1326
  } else if (typeof arg === "number") {
1297
- process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Literals for derived properties are not yet supported") : invariant3__default.default(false) ;
1327
+ process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Literals for derived properties are not yet supported") : invariant4__default.default(false) ;
1298
1328
  }
1299
- process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Invalid argument type for a derived property") : invariant3__default.default(false) ;
1329
+ process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Invalid argument type for a derived property") : invariant4__default.default(false) ;
1300
1330
  };
1301
1331
 
1302
1332
  // src/derivedProperties/createWithPropertiesObjectSet.ts
@@ -1319,7 +1349,7 @@ function createWithPropertiesObjectSet(objectType, objectSet, definitionMap, fro
1319
1349
  },
1320
1350
  aggregate: (aggregation, opt) => {
1321
1351
  const splitAggregation = aggregation.split(":");
1322
- !(splitAggregation.length === 2 || splitAggregation[0] === "$count") ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Invalid aggregation format") : invariant3__default.default(false) : void 0;
1352
+ !(splitAggregation.length === 2 || splitAggregation[0] === "$count") ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Invalid aggregation format") : invariant4__default.default(false) : void 0;
1323
1353
  const [aggregationPropertyName, aggregationOperation] = splitAggregation;
1324
1354
  let aggregationOperationDefinition;
1325
1355
  switch (aggregationOperation) {
@@ -1357,7 +1387,7 @@ function createWithPropertiesObjectSet(objectType, objectSet, definitionMap, fro
1357
1387
  break;
1358
1388
  }
1359
1389
  default:
1360
- process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Invalid aggregation operation " + aggregationOperation) : invariant3__default.default(false) ;
1390
+ process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Invalid aggregation operation " + aggregationOperation) : invariant4__default.default(false) ;
1361
1391
  }
1362
1392
  const wrappedObjectSet = {
1363
1393
  type: "selection",
@@ -1392,36 +1422,36 @@ function createWithPropertiesObjectSet(objectType, objectSet, definitionMap, fro
1392
1422
  },
1393
1423
  constant: {
1394
1424
  double: (value) => {
1395
- process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Not supported") : invariant3__default.default(false) ;
1425
+ process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Not supported") : invariant4__default.default(false) ;
1396
1426
  },
1397
1427
  integer: (value) => {
1398
- process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Not supported") : invariant3__default.default(false) ;
1428
+ process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Not supported") : invariant4__default.default(false) ;
1399
1429
  },
1400
1430
  long: (value) => {
1401
- process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Not supported") : invariant3__default.default(false) ;
1431
+ process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Not supported") : invariant4__default.default(false) ;
1402
1432
  },
1403
1433
  datetime: (value) => {
1404
- process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Not supported") : invariant3__default.default(false) ;
1434
+ process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Not supported") : invariant4__default.default(false) ;
1405
1435
  },
1406
1436
  timestamp: (value) => {
1407
- process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Not supported") : invariant3__default.default(false) ;
1437
+ process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Not supported") : invariant4__default.default(false) ;
1408
1438
  }
1409
1439
  }
1410
1440
  };
1411
1441
  }
1412
1442
 
1413
1443
  // src/object/aggregate.ts
1414
- chunk6SCDLAU2_cjs.init_cjs_shims();
1444
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1415
1445
 
1416
1446
  // src/internal/conversions/legacyToModernSingleAggregationResult.ts
1417
- chunk6SCDLAU2_cjs.init_cjs_shims();
1447
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1418
1448
  function legacyToModernSingleAggregationResult(entry) {
1419
1449
  return entry.metrics.reduce((accumulator, curValue) => {
1420
1450
  const parts = curValue.name.split(".");
1421
1451
  if (parts[0] === "count") {
1422
1452
  return accumulator;
1423
1453
  }
1424
- !(parts.length === 2) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "assumed we were getting a `${key}.${type}`") : invariant3__default.default(false) : void 0;
1454
+ !(parts.length === 2) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "assumed we were getting a `${key}.${type}`") : invariant4__default.default(false) : void 0;
1425
1455
  const property = parts[0];
1426
1456
  const metricType = parts[1];
1427
1457
  if (!(property in accumulator)) {
@@ -1433,7 +1463,7 @@ function legacyToModernSingleAggregationResult(entry) {
1433
1463
  }
1434
1464
 
1435
1465
  // src/internal/conversions/modernToLegacyAggregationClause.ts
1436
- chunk6SCDLAU2_cjs.init_cjs_shims();
1466
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1437
1467
  var directionFieldMap = (dir) => dir === "asc" ? "ASC" : dir === "desc" ? "DESC" : void 0;
1438
1468
  function modernToLegacyAggregationClause(select) {
1439
1469
  return Object.entries(select).flatMap(([propAndMetric, aggregationType]) => {
@@ -1457,7 +1487,7 @@ function modernToLegacyAggregationClause(select) {
1457
1487
  }
1458
1488
 
1459
1489
  // src/internal/conversions/modernToLegacyGroupByClause.ts
1460
- chunk6SCDLAU2_cjs.init_cjs_shims();
1490
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1461
1491
  function modernToLegacyGroupByClause(groupByClause) {
1462
1492
  if (!groupByClause) return [];
1463
1493
  return Object.entries(groupByClause).flatMap(([field, type]) => {
@@ -1520,6 +1550,9 @@ async function aggregate3(clientCtx, objectType, objectSet = resolveBaseObjectSe
1520
1550
  if (req.$groupBy) {
1521
1551
  body.groupBy = modernToLegacyGroupByClause(req.$groupBy);
1522
1552
  }
1553
+ if (clientCtx.flushEdits != null) {
1554
+ await clientCtx.flushEdits();
1555
+ }
1523
1556
  const result = await OntologyObjectSet_exports.aggregate(addUserAgentAndRequestContextHeaders(clientCtx, objectType), await clientCtx.ontologyRid, {
1524
1557
  objectSet,
1525
1558
  groupBy: body.groupBy,
@@ -1529,7 +1562,7 @@ async function aggregate3(clientCtx, objectType, objectSet = resolveBaseObjectSe
1529
1562
  transactionId: clientCtx.transactionId
1530
1563
  });
1531
1564
  if (!req.$groupBy) {
1532
- !(result.data.length === 1) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "no group by clause should mean only one data result") : invariant3__default.default(false) : void 0;
1565
+ !(result.data.length === 1) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "no group by clause should mean only one data result") : invariant4__default.default(false) : void 0;
1533
1566
  return {
1534
1567
  ...aggregationToCountResult(result.data[0]),
1535
1568
  ...legacyToModernSingleAggregationResult(result.data[0])
@@ -1555,7 +1588,7 @@ function aggregationToCountResult(entry) {
1555
1588
  }
1556
1589
 
1557
1590
  // src/util/augmentRequestContext.ts
1558
- chunk6SCDLAU2_cjs.init_cjs_shims();
1591
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1559
1592
  var augmentRequestContext = (client, augment2) => ({
1560
1593
  ...client,
1561
1594
  requestContext: {
@@ -1565,17 +1598,55 @@ var augmentRequestContext = (client, augment2) => ({
1565
1598
  });
1566
1599
 
1567
1600
  // src/util/WireObjectSet.ts
1568
- chunk6SCDLAU2_cjs.init_cjs_shims();
1601
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1569
1602
  var WIRE_OBJECT_SET_TYPES = /* @__PURE__ */ new Set(["base", "filter", "intersect", "reference", "searchAround", "static", "subtract", "union", "interfaceBase"]);
1570
1603
  function isWireObjectSet(o) {
1571
1604
  return o != null && typeof o === "object" && WIRE_OBJECT_SET_TYPES.has(o.type);
1572
1605
  }
1573
1606
 
1607
+ // src/objectSet/fetchLinksPage.ts
1608
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1609
+ var fetchLinksPage = async (client, objectType, objectSet, links) => {
1610
+ if (objectType.type === "interface") {
1611
+ throw new Error("Interface object sets are not supported yet.");
1612
+ }
1613
+ void client.ontologyProvider.getObjectDefinition(objectType.apiName).catch(() => {
1614
+ });
1615
+ const result = await OntologyObjectSet_exports.loadLinks(client, await client.ontologyRid, {
1616
+ objectSet,
1617
+ links
1618
+ }, {
1619
+ branch: client.branch,
1620
+ preview: true
1621
+ });
1622
+ return remapLinksPage(result);
1623
+ };
1624
+ var remapLinksPage = (wireLinksPage) => {
1625
+ return {
1626
+ ...wireLinksPage,
1627
+ data: wireLinksPage.data.flatMap(({
1628
+ sourceObject,
1629
+ linkedObjects
1630
+ }) => linkedObjects.map(({
1631
+ targetObject,
1632
+ linkType
1633
+ }) => ({
1634
+ source: remapObjectLocator(sourceObject),
1635
+ target: remapObjectLocator(targetObject),
1636
+ linkType
1637
+ })))
1638
+ };
1639
+ };
1640
+ var remapObjectLocator = (wireObjectLocator) => ({
1641
+ $apiName: wireObjectLocator.__apiName,
1642
+ $primaryKey: wireObjectLocator.__primaryKey
1643
+ });
1644
+
1574
1645
  // src/objectSet/ObjectSetListenerWebsocket.ts
1575
- chunk6SCDLAU2_cjs.init_cjs_shims();
1646
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1576
1647
 
1577
1648
  // src/util/exponentialBackoff.ts
1578
- chunk6SCDLAU2_cjs.init_cjs_shims();
1649
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1579
1650
  var DEFAULT_OPTIONS = {
1580
1651
  initialDelayMs: 1e3,
1581
1652
  maxDelayMs: 6e4,
@@ -1684,7 +1755,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
1684
1755
  this.#logger = client.logger?.child({}, {
1685
1756
  msgPrefix: "<OSW> "
1686
1757
  });
1687
- !(client.baseUrl.startsWith("https://") || client.baseUrl.startsWith("http://")) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Stack must be a URL") : invariant3__default.default(false) : void 0;
1758
+ !(client.baseUrl.startsWith("https://") || client.baseUrl.startsWith("http://")) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Stack must be a URL") : invariant4__default.default(false) : void 0;
1688
1759
  }
1689
1760
  async subscribe(objectType, objectSet, listener, properties = []) {
1690
1761
  const objOrInterfaceDef = objectType.type === "object" ? await this.#client.ontologyProvider.getObjectDefinition(objectType.apiName) : await this.#client.ontologyProvider.getInterfaceDefinition(objectType.apiName);
@@ -1878,7 +1949,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
1878
1949
  return;
1879
1950
  }
1880
1951
  default:
1881
- process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Unexpected message type") : invariant3__default.default(false) ;
1952
+ process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "Unexpected message type") : invariant4__default.default(false) ;
1882
1953
  }
1883
1954
  };
1884
1955
  #handleMessage_objectSetChanged = async (payload) => {
@@ -1892,7 +1963,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
1892
1963
  __primaryKey: sub.primaryKeyPropertyName != null ? o.primaryKey[sub.primaryKeyPropertyName] : void 0,
1893
1964
  ...o.primaryKey,
1894
1965
  [o.property]: o.value
1895
- }], sub.interfaceApiName, {}, false, void 0, false, await this.#fetchInterfaceMapping(o.objectType, sub.interfaceApiName));
1966
+ }], sub.interfaceApiName, {}, void 0, false, void 0, false, await this.#fetchInterfaceMapping(o.objectType, sub.interfaceApiName));
1896
1967
  const singleOsdkObject = osdkObjectArray[0] ?? void 0;
1897
1968
  return singleOsdkObject != null ? {
1898
1969
  object: singleOsdkObject,
@@ -1914,7 +1985,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
1914
1985
  for (const key of keysToDelete) {
1915
1986
  delete o.object[key];
1916
1987
  }
1917
- const osdkObjectArray = await this.#client.objectFactory2(this.#client, [o.object], sub.interfaceApiName, {}, false, void 0, false, await this.#fetchInterfaceMapping(o.object.__apiName, sub.interfaceApiName));
1988
+ const osdkObjectArray = await this.#client.objectFactory2(this.#client, [o.object], sub.interfaceApiName, {}, void 0, false, void 0, false, await this.#fetchInterfaceMapping(o.object.__apiName, sub.interfaceApiName));
1918
1989
  const singleOsdkObject = osdkObjectArray[0] ?? void 0;
1919
1990
  return singleOsdkObject != null ? {
1920
1991
  object: singleOsdkObject,
@@ -1943,7 +2014,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
1943
2014
  }
1944
2015
  #handleMessage_refreshObjectSet = (payload) => {
1945
2016
  const sub = this.#subscriptions.get(payload.id);
1946
- !sub ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Expected subscription id ${payload.id}`) : invariant3__default.default(false) : void 0;
2017
+ !sub ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Expected subscription id ${payload.id}`) : invariant4__default.default(false) : void 0;
1947
2018
  try {
1948
2019
  sub.listener.onOutOfDate();
1949
2020
  } catch (error) {
@@ -1957,7 +2028,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
1957
2028
  responses
1958
2029
  } = payload;
1959
2030
  const subs = this.#pendingSubscriptions.get(id);
1960
- !subs ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `should have a pending subscription for ${id}`) : invariant3__default.default(false) : void 0;
2031
+ !subs ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `should have a pending subscription for ${id}`) : invariant4__default.default(false) : void 0;
1961
2032
  this.#pendingSubscriptions.delete(id);
1962
2033
  for (let i = 0; i < responses.length; i++) {
1963
2034
  const sub = subs[i];
@@ -1999,7 +2070,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
1999
2070
  #handleMessage_subscriptionClosed(payload) {
2000
2071
  const sub = this.#subscriptions.get(payload.id);
2001
2072
  if (sub == null && this.#endedSubscriptions.has(payload.id)) return;
2002
- !sub ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Expected subscription id ${payload.id}`) : invariant3__default.default(false) : void 0;
2073
+ !sub ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `Expected subscription id ${payload.id}`) : invariant4__default.default(false) : void 0;
2003
2074
  this.#tryCatchOnError(sub, true, payload.cause);
2004
2075
  this.#unsubscribe(sub, "error");
2005
2076
  }
@@ -2028,7 +2099,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
2028
2099
  if (this.#subscriptions.size > 0) {
2029
2100
  if (process.env.NODE_ENV !== "production") {
2030
2101
  for (const s of this.#subscriptions.values()) {
2031
- !(s.status !== "done" && s.status !== "error") ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "should not have done/error subscriptions still") : invariant3__default.default(false) : void 0;
2102
+ !(s.status !== "done" && s.status !== "error") ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, "should not have done/error subscriptions still") : invariant4__default.default(false) : void 0;
2032
2103
  }
2033
2104
  }
2034
2105
  for (const s of this.#subscriptions.values()) {
@@ -2184,7 +2255,7 @@ function createObjectSet(objectType, clientCtx, objectSet = resolveBaseObjectSet
2184
2255
  },
2185
2256
  narrowToType: (objectTypeDef) => {
2186
2257
  const existingMapping = clientCtx.narrowTypeInterfaceOrObjectMapping[objectTypeDef.apiName];
2187
- !(!existingMapping || existingMapping === objectTypeDef.type) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `${objectTypeDef.apiName} was previously used as an ${existingMapping}, but now used as a ${objectTypeDef.type}.`) : invariant3__default.default(false) : void 0;
2258
+ !(!existingMapping || existingMapping === objectTypeDef.type) ? process.env.NODE_ENV !== "production" ? invariant4__default.default(false, `${objectTypeDef.apiName} was previously used as an ${existingMapping}, but now used as a ${objectTypeDef.type}.`) : invariant4__default.default(false) : void 0;
2188
2259
  clientCtx.narrowTypeInterfaceOrObjectMapping[objectTypeDef.apiName] = objectTypeDef.type;
2189
2260
  return clientCtx.objectSetFactory(objectTypeDef, clientCtx, {
2190
2261
  type: "asType",
@@ -2192,6 +2263,18 @@ function createObjectSet(objectType, clientCtx, objectSet = resolveBaseObjectSet
2192
2263
  entityType: objectTypeDef.apiName
2193
2264
  });
2194
2265
  },
2266
+ experimental_asyncIterLinks: async function* (links) {
2267
+ let $nextPageToken = void 0;
2268
+ do {
2269
+ const result = await fetchLinksPage(augmentRequestContext(clientCtx, (_) => ({
2270
+ finalMethodCall: "asyncIterLinks"
2271
+ })), objectType, objectSet, links);
2272
+ $nextPageToken = result.nextPageToken;
2273
+ for (const obj of result.data) {
2274
+ yield obj;
2275
+ }
2276
+ } while ($nextPageToken != null);
2277
+ },
2195
2278
  $objectSetInternals: {
2196
2279
  def: objectType
2197
2280
  }
@@ -2260,5 +2343,5 @@ exports.hydrateAttachmentFromRidInternal = hydrateAttachmentFromRidInternal;
2260
2343
  exports.isObjectSet = isObjectSet;
2261
2344
  exports.isWireObjectSet = isWireObjectSet;
2262
2345
  exports.symbolClientContext = symbolClientContext;
2263
- //# sourceMappingURL=chunk-VDAI3GGL.cjs.map
2264
- //# sourceMappingURL=chunk-VDAI3GGL.cjs.map
2346
+ //# sourceMappingURL=chunk-RDZ5NKAI.cjs.map
2347
+ //# sourceMappingURL=chunk-RDZ5NKAI.cjs.map