@osdk/client 2.6.1 → 2.7.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/CHANGELOG.md +92 -88
  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/actions/applyAction.js +4 -0
  8. package/build/browser/actions/applyAction.js.map +1 -1
  9. package/build/browser/createClient.js +2 -1
  10. package/build/browser/createClient.js.map +1 -1
  11. package/build/browser/createMinimalClient.js +1 -0
  12. package/build/browser/createMinimalClient.js.map +1 -1
  13. package/build/browser/derivedProperties/createWithPropertiesObjectSet.js +17 -1
  14. package/build/browser/derivedProperties/createWithPropertiesObjectSet.js.map +1 -1
  15. package/build/browser/fetchMetadata.test.js +31 -0
  16. package/build/browser/fetchMetadata.test.js.map +1 -1
  17. package/build/browser/intellisense.test.js +1 -1
  18. package/build/browser/intellisense.test.js.map +1 -1
  19. package/build/browser/object/aggregate.js +1 -0
  20. package/build/browser/object/aggregate.js.map +1 -1
  21. package/build/browser/object/convertWireToOsdkObjects/BaseHolder.js.map +1 -1
  22. package/build/browser/object/convertWireToOsdkObjects/InterfaceHolder.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 +8 -0
  26. package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -1
  27. package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js +95 -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 +189 -28
  32. package/build/browser/object/convertWireToOsdkObjects.test.js.map +1 -1
  33. package/build/browser/object/fetchPage.js +18 -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/formatting/applyPropertyFormatter.js +58 -0
  37. package/build/browser/object/formatting/applyPropertyFormatter.js.map +1 -0
  38. package/build/browser/object/formatting/applyPropertyFormatter.test.js +726 -0
  39. package/build/browser/object/formatting/applyPropertyFormatter.test.js.map +1 -0
  40. package/build/browser/object/formatting/formatBoolean.js +23 -0
  41. package/build/browser/object/formatting/formatBoolean.js.map +1 -0
  42. package/build/browser/object/formatting/formatDateTime.js +158 -0
  43. package/build/browser/object/formatting/formatDateTime.js.map +1 -0
  44. package/build/browser/object/formatting/formatNumber.js +242 -0
  45. package/build/browser/object/formatting/formatNumber.js.map +1 -0
  46. package/build/browser/object/formatting/propertyFormattingUtils.js +39 -0
  47. package/build/browser/object/formatting/propertyFormattingUtils.js.map +1 -0
  48. package/build/browser/object/object.test.js +123 -0
  49. package/build/browser/object/object.test.js.map +1 -1
  50. package/build/browser/objectSet/InterfaceObjectSet.test.js +1 -1
  51. package/build/browser/objectSet/InterfaceObjectSet.test.js.map +1 -1
  52. package/build/browser/objectSet/ObjectSet.test.js +7 -6
  53. package/build/browser/objectSet/ObjectSet.test.js.map +1 -1
  54. package/build/browser/objectSet/ObjectSetListenerWebsocket.js +2 -2
  55. package/build/browser/objectSet/ObjectSetListenerWebsocket.js.map +1 -1
  56. package/build/browser/objectSet/ObjectSetListenerWebsocket.test.js +3 -1
  57. package/build/browser/objectSet/ObjectSetListenerWebsocket.test.js.map +1 -1
  58. package/build/browser/objectSet/createObjectSet.js +13 -0
  59. package/build/browser/objectSet/createObjectSet.js.map +1 -1
  60. package/build/browser/objectSet/fetchLinksPage.js +57 -0
  61. package/build/browser/objectSet/fetchLinksPage.js.map +1 -0
  62. package/build/browser/objectSet/fetchLinksPage.test.js +102 -0
  63. package/build/browser/objectSet/fetchLinksPage.test.js.map +1 -0
  64. package/build/browser/observable/ListPayload.js.map +1 -1
  65. package/build/browser/observable/ObjectPayload.js.map +1 -1
  66. package/build/browser/observable/ObservableClient.js +0 -5
  67. package/build/browser/observable/ObservableClient.js.map +1 -1
  68. package/build/browser/observable/internal/ObservableClientImpl.js.map +1 -1
  69. package/build/browser/observable/internal/Store.test.js +104 -1
  70. package/build/browser/observable/internal/Store.test.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/links/SpecificLinkQuery.js +9 -1
  76. package/build/browser/observable/internal/links/SpecificLinkQuery.js.map +1 -1
  77. package/build/browser/observable/internal/list/ListQuery.js +17 -2
  78. package/build/browser/observable/internal/list/ListQuery.js.map +1 -1
  79. package/build/browser/observable/internal/objectset/ObjectSetQuery.js +9 -7
  80. package/build/browser/observable/internal/objectset/ObjectSetQuery.js.map +1 -1
  81. package/build/browser/observable/internal/utils/rdpFieldOperations.js +46 -25
  82. package/build/browser/observable/internal/utils/rdpFieldOperations.js.map +1 -1
  83. package/build/browser/observable/internal/utils/rdpFieldOperations.test.js +172 -0
  84. package/build/browser/observable/internal/utils/rdpFieldOperations.test.js.map +1 -0
  85. package/build/browser/ontology/loadActionMetadata.js +3 -1
  86. package/build/browser/ontology/loadActionMetadata.js.map +1 -1
  87. package/build/browser/ontology/loadFullObjectMetadata.js +2 -1
  88. package/build/browser/ontology/loadFullObjectMetadata.js.map +1 -1
  89. package/build/browser/ontology/loadInterfaceMetadata.js +2 -1
  90. package/build/browser/ontology/loadInterfaceMetadata.js.map +1 -1
  91. package/build/browser/public/unstable-do-not-use.js.map +1 -1
  92. package/build/browser/queries/applyQuery.js +14 -0
  93. package/build/browser/queries/applyQuery.js.map +1 -1
  94. package/build/browser/queries/queries.test.js +14 -2
  95. package/build/browser/queries/queries.test.js.map +1 -1
  96. package/build/browser/util/UserAgent.js +2 -2
  97. package/build/browser/util/UserAgent.js.map +1 -1
  98. package/build/browser/util/toDataValue.js +0 -1
  99. package/build/browser/util/toDataValue.js.map +1 -1
  100. package/build/browser/util/toDataValue.test.js +4 -0
  101. package/build/browser/util/toDataValue.test.js.map +1 -1
  102. package/build/cjs/{chunk-6SCDLAU2.cjs → chunk-LDTMSHUZ.cjs} +4 -4
  103. package/build/cjs/{chunk-6SCDLAU2.cjs.map → chunk-LDTMSHUZ.cjs.map} +1 -1
  104. package/build/cjs/{chunk-BRUBBJUT.cjs → chunk-MZZAHBN6.cjs} +636 -138
  105. package/build/cjs/chunk-MZZAHBN6.cjs.map +1 -0
  106. package/build/cjs/{chunk-EHMN4DL4.cjs → chunk-RDZ5NKAI.cjs} +210 -129
  107. package/build/cjs/chunk-RDZ5NKAI.cjs.map +1 -0
  108. package/build/cjs/{createClient-DvwysJMX.d.cts → createClient-D5G3qzAO.d.cts} +1 -0
  109. package/build/cjs/{delay-KIUUJ5NJ.cjs → delay-W2TSML2P.cjs} +4 -4
  110. package/build/cjs/{delay-KIUUJ5NJ.cjs.map → delay-W2TSML2P.cjs.map} +1 -1
  111. package/build/cjs/index.cjs +12 -12
  112. package/build/cjs/index.d.cts +1 -1
  113. package/build/cjs/public/internal-node.cjs +219 -219
  114. package/build/cjs/public/internal.cjs +14 -14
  115. package/build/cjs/public/unstable-do-not-use.cjs +335 -145
  116. package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
  117. package/build/cjs/public/unstable-do-not-use.d.cts +9 -9
  118. package/build/esm/Client.js +1 -1
  119. package/build/esm/Client.js.map +1 -1
  120. package/build/esm/MinimalClientContext.js.map +1 -1
  121. package/build/esm/actions/actions.test.js +9 -0
  122. package/build/esm/actions/actions.test.js.map +1 -1
  123. package/build/esm/actions/applyAction.js +4 -0
  124. package/build/esm/actions/applyAction.js.map +1 -1
  125. package/build/esm/createClient.js +2 -1
  126. package/build/esm/createClient.js.map +1 -1
  127. package/build/esm/createMinimalClient.js +1 -0
  128. package/build/esm/createMinimalClient.js.map +1 -1
  129. package/build/esm/derivedProperties/createWithPropertiesObjectSet.js +17 -1
  130. package/build/esm/derivedProperties/createWithPropertiesObjectSet.js.map +1 -1
  131. package/build/esm/fetchMetadata.test.js +31 -0
  132. package/build/esm/fetchMetadata.test.js.map +1 -1
  133. package/build/esm/intellisense.test.js +1 -1
  134. package/build/esm/intellisense.test.js.map +1 -1
  135. package/build/esm/object/aggregate.js +1 -0
  136. package/build/esm/object/aggregate.js.map +1 -1
  137. package/build/esm/object/convertWireToOsdkObjects/BaseHolder.js.map +1 -1
  138. package/build/esm/object/convertWireToOsdkObjects/InterfaceHolder.js.map +1 -1
  139. package/build/esm/object/convertWireToOsdkObjects/InternalSymbols.js +3 -0
  140. package/build/esm/object/convertWireToOsdkObjects/InternalSymbols.js.map +1 -1
  141. package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js +8 -0
  142. package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -1
  143. package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js +95 -3
  144. package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -1
  145. package/build/esm/object/convertWireToOsdkObjects.js +18 -6
  146. package/build/esm/object/convertWireToOsdkObjects.js.map +1 -1
  147. package/build/esm/object/convertWireToOsdkObjects.test.js +189 -28
  148. package/build/esm/object/convertWireToOsdkObjects.test.js.map +1 -1
  149. package/build/esm/object/fetchPage.js +18 -5
  150. package/build/esm/object/fetchPage.js.map +1 -1
  151. package/build/esm/object/fetchPage.test.js.map +1 -1
  152. package/build/esm/object/formatting/applyPropertyFormatter.js +58 -0
  153. package/build/esm/object/formatting/applyPropertyFormatter.js.map +1 -0
  154. package/build/esm/object/formatting/applyPropertyFormatter.test.js +726 -0
  155. package/build/esm/object/formatting/applyPropertyFormatter.test.js.map +1 -0
  156. package/build/esm/object/formatting/formatBoolean.js +23 -0
  157. package/build/esm/object/formatting/formatBoolean.js.map +1 -0
  158. package/build/esm/object/formatting/formatDateTime.js +158 -0
  159. package/build/esm/object/formatting/formatDateTime.js.map +1 -0
  160. package/build/esm/object/formatting/formatNumber.js +242 -0
  161. package/build/esm/object/formatting/formatNumber.js.map +1 -0
  162. package/build/esm/object/formatting/propertyFormattingUtils.js +39 -0
  163. package/build/esm/object/formatting/propertyFormattingUtils.js.map +1 -0
  164. package/build/esm/object/object.test.js +123 -0
  165. package/build/esm/object/object.test.js.map +1 -1
  166. package/build/esm/objectSet/InterfaceObjectSet.test.js +1 -1
  167. package/build/esm/objectSet/InterfaceObjectSet.test.js.map +1 -1
  168. package/build/esm/objectSet/ObjectSet.test.js +7 -6
  169. package/build/esm/objectSet/ObjectSet.test.js.map +1 -1
  170. package/build/esm/objectSet/ObjectSetListenerWebsocket.js +2 -2
  171. package/build/esm/objectSet/ObjectSetListenerWebsocket.js.map +1 -1
  172. package/build/esm/objectSet/ObjectSetListenerWebsocket.test.js +3 -1
  173. package/build/esm/objectSet/ObjectSetListenerWebsocket.test.js.map +1 -1
  174. package/build/esm/objectSet/createObjectSet.js +13 -0
  175. package/build/esm/objectSet/createObjectSet.js.map +1 -1
  176. package/build/esm/objectSet/fetchLinksPage.js +57 -0
  177. package/build/esm/objectSet/fetchLinksPage.js.map +1 -0
  178. package/build/esm/objectSet/fetchLinksPage.test.js +102 -0
  179. package/build/esm/objectSet/fetchLinksPage.test.js.map +1 -0
  180. package/build/esm/observable/ListPayload.js.map +1 -1
  181. package/build/esm/observable/ObjectPayload.js.map +1 -1
  182. package/build/esm/observable/ObservableClient.js +0 -5
  183. package/build/esm/observable/ObservableClient.js.map +1 -1
  184. package/build/esm/observable/internal/ObservableClientImpl.js.map +1 -1
  185. package/build/esm/observable/internal/Store.test.js +104 -1
  186. package/build/esm/observable/internal/Store.test.js.map +1 -1
  187. package/build/esm/observable/internal/actions/OptimisticJob.js +1 -1
  188. package/build/esm/observable/internal/actions/OptimisticJob.js.map +1 -1
  189. package/build/esm/observable/internal/base-list/BaseListQuery.js +1 -1
  190. package/build/esm/observable/internal/base-list/BaseListQuery.js.map +1 -1
  191. package/build/esm/observable/internal/links/SpecificLinkQuery.js +9 -1
  192. package/build/esm/observable/internal/links/SpecificLinkQuery.js.map +1 -1
  193. package/build/esm/observable/internal/list/ListQuery.js +17 -2
  194. package/build/esm/observable/internal/list/ListQuery.js.map +1 -1
  195. package/build/esm/observable/internal/objectset/ObjectSetQuery.js +9 -7
  196. package/build/esm/observable/internal/objectset/ObjectSetQuery.js.map +1 -1
  197. package/build/esm/observable/internal/utils/rdpFieldOperations.js +46 -25
  198. package/build/esm/observable/internal/utils/rdpFieldOperations.js.map +1 -1
  199. package/build/esm/observable/internal/utils/rdpFieldOperations.test.js +172 -0
  200. package/build/esm/observable/internal/utils/rdpFieldOperations.test.js.map +1 -0
  201. package/build/esm/ontology/loadActionMetadata.js +3 -1
  202. package/build/esm/ontology/loadActionMetadata.js.map +1 -1
  203. package/build/esm/ontology/loadFullObjectMetadata.js +2 -1
  204. package/build/esm/ontology/loadFullObjectMetadata.js.map +1 -1
  205. package/build/esm/ontology/loadInterfaceMetadata.js +2 -1
  206. package/build/esm/ontology/loadInterfaceMetadata.js.map +1 -1
  207. package/build/esm/public/unstable-do-not-use.js.map +1 -1
  208. package/build/esm/queries/applyQuery.js +14 -0
  209. package/build/esm/queries/applyQuery.js.map +1 -1
  210. package/build/esm/queries/queries.test.js +14 -2
  211. package/build/esm/queries/queries.test.js.map +1 -1
  212. package/build/esm/util/UserAgent.js +2 -2
  213. package/build/esm/util/UserAgent.js.map +1 -1
  214. package/build/esm/util/toDataValue.js +0 -1
  215. package/build/esm/util/toDataValue.js.map +1 -1
  216. package/build/esm/util/toDataValue.test.js +4 -0
  217. package/build/esm/util/toDataValue.test.js.map +1 -1
  218. package/build/types/Client.d.ts +1 -1
  219. package/build/types/MinimalClientContext.d.ts +1 -0
  220. package/build/types/MinimalClientContext.d.ts.map +1 -1
  221. package/build/types/actions/applyAction.d.ts.map +1 -1
  222. package/build/types/createClient.d.ts +1 -0
  223. package/build/types/createClient.d.ts.map +1 -1
  224. package/build/types/object/convertWireToOsdkObjects/InternalSymbols.d.ts +2 -0
  225. package/build/types/object/convertWireToOsdkObjects/InternalSymbols.d.ts.map +1 -1
  226. package/build/types/object/convertWireToOsdkObjects.d.ts +4 -4
  227. package/build/types/object/convertWireToOsdkObjects.d.ts.map +1 -1
  228. package/build/types/object/fetchPage.d.ts.map +1 -1
  229. package/build/types/object/formatting/applyPropertyFormatter.d.ts +18 -0
  230. package/build/types/object/formatting/applyPropertyFormatter.d.ts.map +1 -0
  231. package/build/types/object/formatting/applyPropertyFormatter.test.d.ts +1 -0
  232. package/build/types/object/formatting/applyPropertyFormatter.test.d.ts.map +1 -0
  233. package/build/types/object/formatting/formatBoolean.d.ts +5 -0
  234. package/build/types/object/formatting/formatBoolean.d.ts.map +1 -0
  235. package/build/types/object/formatting/formatDateTime.d.ts +6 -0
  236. package/build/types/object/formatting/formatDateTime.d.ts.map +1 -0
  237. package/build/types/object/formatting/formatNumber.d.ts +15 -0
  238. package/build/types/object/formatting/formatNumber.d.ts.map +1 -0
  239. package/build/types/object/formatting/propertyFormattingUtils.d.ts +10 -0
  240. package/build/types/object/formatting/propertyFormattingUtils.d.ts.map +1 -0
  241. package/build/types/object/object.test.d.ts.map +1 -1
  242. package/build/types/objectSet/fetchLinksPage.d.ts +1 -0
  243. package/build/types/objectSet/fetchLinksPage.d.ts.map +1 -0
  244. package/build/types/objectSet/fetchLinksPage.test.d.ts +1 -0
  245. package/build/types/objectSet/fetchLinksPage.test.d.ts.map +1 -0
  246. package/build/types/observable/ListPayload.d.ts +3 -2
  247. package/build/types/observable/ListPayload.d.ts.map +1 -1
  248. package/build/types/observable/ObjectPayload.d.ts +2 -2
  249. package/build/types/observable/ObjectPayload.d.ts.map +1 -1
  250. package/build/types/observable/ObservableClient.d.ts +10 -7
  251. package/build/types/observable/ObservableClient.d.ts.map +1 -1
  252. package/build/types/observable/internal/Store.test.d.ts.map +1 -1
  253. package/build/types/observable/internal/actions/OptimisticJob.d.ts.map +1 -1
  254. package/build/types/observable/internal/links/SpecificLinkQuery.d.ts.map +1 -1
  255. package/build/types/observable/internal/list/ListQuery.d.ts.map +1 -1
  256. package/build/types/observable/internal/objectset/ObjectSetQuery.d.ts.map +1 -1
  257. package/build/types/observable/internal/utils/rdpFieldOperations.d.ts.map +1 -1
  258. package/build/types/observable/internal/utils/rdpFieldOperations.test.d.ts +1 -0
  259. package/build/types/observable/internal/utils/rdpFieldOperations.test.d.ts.map +1 -0
  260. package/build/types/public/unstable-do-not-use.d.ts +1 -1
  261. package/build/types/public/unstable-do-not-use.d.ts.map +1 -1
  262. package/build/types/queries/applyQuery.d.ts.map +1 -1
  263. package/package.json +14 -14
  264. package/build/cjs/chunk-BRUBBJUT.cjs.map +0 -1
  265. package/build/cjs/chunk-EHMN4DL4.cjs.map +0 -1
@@ -1,20 +1,20 @@
1
1
  'use strict';
2
2
 
3
- var chunkEHMN4DL4_cjs = require('./chunk-EHMN4DL4.cjs');
4
- var chunk6SCDLAU2_cjs = require('./chunk-6SCDLAU2.cjs');
3
+ var chunkRDZ5NKAI_cjs = require('./chunk-RDZ5NKAI.cjs');
4
+ var chunkLDTMSHUZ_cjs = require('./chunk-LDTMSHUZ.cjs');
5
5
  var unstable = require('@osdk/api/unstable');
6
6
  var client_unstable = require('@osdk/client.unstable');
7
- var invariant = require('tiny-invariant');
7
+ var invariant3 = require('tiny-invariant');
8
8
  var shared_client_impl = require('@osdk/shared.client.impl');
9
9
  var api = require('@osdk/api');
10
10
  var generatorConverters = require('@osdk/generator-converters');
11
11
 
12
12
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
13
13
 
14
- var invariant__default = /*#__PURE__*/_interopDefault(invariant);
14
+ var invariant3__default = /*#__PURE__*/_interopDefault(invariant3);
15
15
 
16
16
  // src/actions/ActionValidationError.ts
17
- chunk6SCDLAU2_cjs.init_cjs_shims();
17
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
18
18
  var ActionValidationError = class extends Error {
19
19
  constructor(validation) {
20
20
  super("Validation Error: " + JSON.stringify(validation, null, 2));
@@ -23,7 +23,7 @@ var ActionValidationError = class extends Error {
23
23
  };
24
24
 
25
25
  // src/object/AttachmentUpload.ts
26
- chunk6SCDLAU2_cjs.init_cjs_shims();
26
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
27
27
  function isAttachmentUpload(o) {
28
28
  return typeof o === "object" && o != null && "name" in o && typeof o.name === "string" && "data" in o && o.data instanceof Blob && !("fileName" in o);
29
29
  }
@@ -38,7 +38,7 @@ function createAttachmentUpload(data, name) {
38
38
  }
39
39
 
40
40
  // src/util/objectSpecifierUtils.ts
41
- chunk6SCDLAU2_cjs.init_cjs_shims();
41
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
42
42
  function createObjectSpecifierFromPrimaryKey(objectDef, primaryKey) {
43
43
  return `${objectDef.apiName}:${primaryKey}`;
44
44
  }
@@ -50,13 +50,13 @@ function extractPrimaryKeyFromObjectSpecifier(ObjectSpecifier) {
50
50
  }
51
51
 
52
52
  // src/createClient.ts
53
- chunk6SCDLAU2_cjs.init_cjs_shims();
53
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
54
54
 
55
55
  // src/__unstable/createBulkLinksAsyncIterFactory.ts
56
- chunk6SCDLAU2_cjs.init_cjs_shims();
56
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
57
57
 
58
58
  // src/objectSet/conjureUnionType.ts
59
- chunk6SCDLAU2_cjs.init_cjs_shims();
59
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
60
60
  function conjureUnionType(type, value) {
61
61
  return {
62
62
  type,
@@ -65,7 +65,7 @@ function conjureUnionType(type, value) {
65
65
  }
66
66
 
67
67
  // src/ontology/makeConjureContext.ts
68
- chunk6SCDLAU2_cjs.init_cjs_shims();
68
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
69
69
  function makeConjureContext({
70
70
  baseUrl,
71
71
  fetch: fetchFn,
@@ -80,7 +80,7 @@ function makeConjureContext({
80
80
  }
81
81
 
82
82
  // src/pageRequestAsAsyncIter.ts
83
- chunk6SCDLAU2_cjs.init_cjs_shims();
83
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
84
84
  function getResults(x) {
85
85
  return x.results;
86
86
  }
@@ -104,10 +104,10 @@ async function* pageRequestAsAsyncIter(call, values, nextArgs, initialPayload) {
104
104
  }
105
105
 
106
106
  // src/__unstable/ConjureSupport.ts
107
- chunk6SCDLAU2_cjs.init_cjs_shims();
107
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
108
108
 
109
109
  // src/object/SimpleCache.ts
110
- chunk6SCDLAU2_cjs.init_cjs_shims();
110
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
111
111
  function createSimpleCache(map = /* @__PURE__ */ new Map(), fn) {
112
112
  function get(key) {
113
113
  const r = map.get(key);
@@ -159,7 +159,7 @@ function createSimpleAsyncCache(type, fn, createCacheLocal = createSimpleCache)
159
159
  var cachedAllOntologies;
160
160
  async function getOntologyVersionForRid(ctx, ontologyRid) {
161
161
  cachedAllOntologies ??= await client_unstable.loadAllOntologies(ctx, {});
162
- !cachedAllOntologies.ontologies[ontologyRid] ? process.env.NODE_ENV !== "production" ? invariant__default.default(false, "ontology should be loaded") : invariant__default.default(false) : void 0;
162
+ !cachedAllOntologies.ontologies[ontologyRid] ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "ontology should be loaded") : invariant3__default.default(false) : void 0;
163
163
  return cachedAllOntologies.ontologies[ontologyRid].currentOntologyVersion;
164
164
  }
165
165
  var strongMemoAsync = (fn) => createSimpleAsyncCache("strong", fn).get;
@@ -201,7 +201,7 @@ var MetadataClient = class {
201
201
  [objectTypeRid]: await this.ontologyVersion("")
202
202
  }
203
203
  });
204
- !linkTypes.linkTypes[objectTypeRid] ? process.env.NODE_ENV !== "production" ? invariant__default.default(false, "link type should be loaded") : invariant__default.default(false) : void 0;
204
+ !linkTypes.linkTypes[objectTypeRid] ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "link type should be loaded") : invariant3__default.default(false) : void 0;
205
205
  const ret = {};
206
206
  for (const l of linkTypes.linkTypes[objectTypeRid]) {
207
207
  const helper = ({
@@ -279,14 +279,14 @@ var MetadataClient = class {
279
279
  entityMetadata: void 0
280
280
  };
281
281
  const entities = await client_unstable.bulkLoadOntologyEntities(this.#ctx, void 0, body);
282
- !entities.objectTypes[0]?.objectType ? process.env.NODE_ENV !== "production" ? invariant__default.default(false, "object type should be loaded") : invariant__default.default(false) : void 0;
282
+ !entities.objectTypes[0]?.objectType ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "object type should be loaded") : invariant3__default.default(false) : void 0;
283
283
  return entities.objectTypes[0].objectType;
284
284
  });
285
285
  ontologyVersion = strongMemoAsync(async (_) => getOntologyVersionForRid(this.#ctx, await this.#client.ontologyRid));
286
286
  };
287
287
  var metadataCacheClient = weakMemoAsync((client) => Promise.resolve(new MetadataClient(client)));
288
288
  function createObjectPropertyMapping(conjureOT) {
289
- !(conjureOT.primaryKeys.length === 1) ? process.env.NODE_ENV !== "production" ? invariant__default.default(false, `only one primary key supported, got ${conjureOT.primaryKeys.length}`) : invariant__default.default(false) : void 0;
289
+ !(conjureOT.primaryKeys.length === 1) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `only one primary key supported, got ${conjureOT.primaryKeys.length}`) : invariant3__default.default(false) : void 0;
290
290
  const pkRid = conjureOT.primaryKeys[0];
291
291
  const pkProperty = Object.values(conjureOT.propertyTypes).find((a) => a.rid === pkRid);
292
292
  if (!pkProperty) {
@@ -318,7 +318,7 @@ function createBulkLinksAsyncIterFactory(ctx) {
318
318
  return;
319
319
  }
320
320
  ctx.logger?.debug("Preparing to fetch bulk links");
321
- !objs.every((a) => a.$objectType === objs[0].$objectType) ? process.env.NODE_ENV !== "production" ? invariant__default.default(false) : invariant__default.default(false) : void 0;
321
+ !objs.every((a) => a.$objectType === objs[0].$objectType) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false) : invariant3__default.default(false) : void 0;
322
322
  const mcc = await metadataCacheClient(ctx);
323
323
  const helper = await mcc.forObjectByApiName(objs[0].$objectType);
324
324
  const [objectTypeRid, propertyMapping, fullLinkMapping] = await Promise.all([helper.getRid(), helper.getPropertyMapping(), helper.getLinkMapping()]);
@@ -409,17 +409,17 @@ function getPrimaryKeyOrThrow(ref) {
409
409
  }
410
410
 
411
411
  // src/actions/applyAction.ts
412
- chunk6SCDLAU2_cjs.init_cjs_shims();
412
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
413
413
 
414
414
  // src/util/toDataValue.ts
415
- chunk6SCDLAU2_cjs.init_cjs_shims();
415
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
416
416
 
417
- // ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.44.0/node_modules/@osdk/foundry.mediasets/build/esm/index.js
418
- chunk6SCDLAU2_cjs.init_cjs_shims();
417
+ // ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.45.0/node_modules/@osdk/foundry.mediasets/build/esm/index.js
418
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
419
419
 
420
- // ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.44.0/node_modules/@osdk/foundry.mediasets/build/esm/public/MediaSet.js
420
+ // ../../node_modules/.pnpm/@osdk+foundry.mediasets@2.45.0/node_modules/@osdk/foundry.mediasets/build/esm/public/MediaSet.js
421
421
  var MediaSet_exports = {};
422
- chunk6SCDLAU2_cjs.__export(MediaSet_exports, {
422
+ chunkLDTMSHUZ_cjs.__export(MediaSet_exports, {
423
423
  abort: () => abort,
424
424
  calculate: () => calculate,
425
425
  commit: () => commit,
@@ -433,58 +433,58 @@ chunk6SCDLAU2_cjs.__export(MediaSet_exports, {
433
433
  upload: () => upload,
434
434
  uploadMedia: () => uploadMedia
435
435
  });
436
- chunk6SCDLAU2_cjs.init_cjs_shims();
436
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
437
437
  var _abort = [1, "/v2/mediasets/{0}/transactions/{1}/abort", 2];
438
438
  function abort($ctx, ...args) {
439
- return chunkEHMN4DL4_cjs.foundryPlatformFetch($ctx, _abort, ...args);
439
+ return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _abort, ...args);
440
440
  }
441
441
  var _calculate = [0, "/v2/mediasets/{0}/items/{1}/transform/imagery/thumbnail/calculate", 6];
442
442
  function calculate($ctx, ...args) {
443
- return chunkEHMN4DL4_cjs.foundryPlatformFetch($ctx, _calculate, ...args);
443
+ return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _calculate, ...args);
444
444
  }
445
445
  var _commit = [1, "/v2/mediasets/{0}/transactions/{1}/commit", 2];
446
446
  function commit($ctx, ...args) {
447
- return chunkEHMN4DL4_cjs.foundryPlatformFetch($ctx, _commit, ...args);
447
+ return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _commit, ...args);
448
448
  }
449
449
  var _create = [1, "/v2/mediasets/{0}/transactions", 2];
450
450
  function create($ctx, ...args) {
451
- return chunkEHMN4DL4_cjs.foundryPlatformFetch($ctx, _create, ...args);
451
+ return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _create, ...args);
452
452
  }
453
453
  var _info = [0, "/v2/mediasets/{0}/items/{1}", 6];
454
454
  function info($ctx, ...args) {
455
- return chunkEHMN4DL4_cjs.foundryPlatformFetch($ctx, _info, ...args);
455
+ return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _info, ...args);
456
456
  }
457
457
  var _reference = [0, "/v2/mediasets/{0}/items/{1}/reference", 6];
458
458
  function reference($ctx, ...args) {
459
- return chunkEHMN4DL4_cjs.foundryPlatformFetch($ctx, _reference, ...args);
459
+ return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _reference, ...args);
460
460
  }
461
461
  var _getRidByPath = [0, "/v2/mediasets/{0}/items/getRidByPath", 2];
462
462
  function getRidByPath($ctx, ...args) {
463
- return chunkEHMN4DL4_cjs.foundryPlatformFetch($ctx, _getRidByPath, ...args);
463
+ return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _getRidByPath, ...args);
464
464
  }
465
465
  var _upload = [1, "/v2/mediasets/{0}/items", 3, "*/*"];
466
466
  function upload($ctx, ...args) {
467
- return chunkEHMN4DL4_cjs.foundryPlatformFetch($ctx, _upload, ...args);
467
+ return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _upload, ...args);
468
468
  }
469
469
  var _read = [0, "/v2/mediasets/{0}/items/{1}/content", 6, , "*/*"];
470
470
  function read($ctx, ...args) {
471
- return chunkEHMN4DL4_cjs.foundryPlatformFetch($ctx, _read, ...args);
471
+ return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _read, ...args);
472
472
  }
473
473
  var _readOriginal = [0, "/v2/mediasets/{0}/items/{1}/original", 6, , "*/*"];
474
474
  function readOriginal($ctx, ...args) {
475
- return chunkEHMN4DL4_cjs.foundryPlatformFetch($ctx, _readOriginal, ...args);
475
+ return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _readOriginal, ...args);
476
476
  }
477
477
  var _retrieve = [0, "/v2/mediasets/{0}/items/{1}/transform/imagery/thumbnail/retrieve", 6, , "*/*"];
478
478
  function retrieve($ctx, ...args) {
479
- return chunkEHMN4DL4_cjs.foundryPlatformFetch($ctx, _retrieve, ...args);
479
+ return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _retrieve, ...args);
480
480
  }
481
481
  var _uploadMedia = [2, "/v2/mediasets/media/upload", 7, "*/*"];
482
482
  function uploadMedia($ctx, ...args) {
483
- return chunkEHMN4DL4_cjs.foundryPlatformFetch($ctx, _uploadMedia, ...args);
483
+ return chunkRDZ5NKAI_cjs.foundryPlatformFetch($ctx, _uploadMedia, ...args);
484
484
  }
485
485
 
486
486
  // src/object/mediaUpload.ts
487
- chunk6SCDLAU2_cjs.init_cjs_shims();
487
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
488
488
  function isMediaReference(o) {
489
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";
490
490
  }
@@ -493,7 +493,7 @@ function isMediaUpload(o) {
493
493
  }
494
494
 
495
495
  // src/util/interfaceUtils.ts
496
- chunk6SCDLAU2_cjs.init_cjs_shims();
496
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
497
497
  function isInterfaceActionParam(o) {
498
498
  return o != null && typeof o === "object" && "$objectType" in o && "$primaryKey" in o;
499
499
  }
@@ -505,19 +505,19 @@ function isInterfaceSpecifier(o) {
505
505
  }
506
506
 
507
507
  // src/util/isObjectSpecifiersObject.ts
508
- chunk6SCDLAU2_cjs.init_cjs_shims();
508
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
509
509
  function isObjectSpecifiersObject(o) {
510
510
  return o && typeof o === "object" && typeof o.$apiName === "string" && o.$primaryKey != null;
511
511
  }
512
512
 
513
513
  // src/util/isOntologyObjectV2.ts
514
- chunk6SCDLAU2_cjs.init_cjs_shims();
514
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
515
515
  function isOntologyObjectV2(o) {
516
516
  return o && typeof o === "object" && typeof o.__apiName === "string" && o.__primaryKey != null;
517
517
  }
518
518
 
519
519
  // src/util/isPoint.ts
520
- chunk6SCDLAU2_cjs.init_cjs_shims();
520
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
521
521
  function isPoint(o) {
522
522
  return o && typeof o === "object" && "type" in o && o.type === "Point" && "coordinates" in o && o.coordinates.length === 2;
523
523
  }
@@ -540,13 +540,13 @@ async function toDataValue(value, client, actionMetadata) {
540
540
  return Promise.all(promiseArray);
541
541
  }
542
542
  if (isAttachmentUpload(value)) {
543
- const attachment = await chunkEHMN4DL4_cjs.Attachment_exports.upload(client, value.data, {
543
+ const attachment = await chunkRDZ5NKAI_cjs.Attachment_exports.upload(client, value.data, {
544
544
  filename: value.name
545
545
  });
546
546
  return await toDataValue(attachment.rid, client);
547
547
  }
548
548
  if (isAttachmentFile(value)) {
549
- const attachment = await chunkEHMN4DL4_cjs.Attachment_exports.upload(client, value, {
549
+ const attachment = await chunkRDZ5NKAI_cjs.Attachment_exports.upload(client, value, {
550
550
  filename: value.name
551
551
  });
552
552
  return await toDataValue(attachment.rid, client);
@@ -567,11 +567,11 @@ async function toDataValue(value, client, actionMetadata) {
567
567
  if (isPoint(value)) {
568
568
  return await toDataValue(`${value.coordinates[1]},${value.coordinates[0]}`, client);
569
569
  }
570
- if (chunkEHMN4DL4_cjs.isWireObjectSet(value)) {
570
+ if (chunkRDZ5NKAI_cjs.isWireObjectSet(value)) {
571
571
  return value;
572
572
  }
573
- if (chunkEHMN4DL4_cjs.isObjectSet(value)) {
574
- return chunkEHMN4DL4_cjs.getWireObjectSet(value);
573
+ if (chunkRDZ5NKAI_cjs.isObjectSet(value)) {
574
+ return chunkRDZ5NKAI_cjs.getWireObjectSet(value);
575
575
  }
576
576
  if (isMediaReference(value)) {
577
577
  return value;
@@ -594,25 +594,29 @@ async function toDataValue(value, client, actionMetadata) {
594
594
 
595
595
  // src/actions/applyAction.ts
596
596
  async function applyAction(client, action, parameters, options = {}) {
597
- const clientWithHeaders = chunkEHMN4DL4_cjs.addUserAgentAndRequestContextHeaders(chunkEHMN4DL4_cjs.augmentRequestContext(client, (_) => ({
597
+ const clientWithHeaders = chunkRDZ5NKAI_cjs.addUserAgentAndRequestContextHeaders(chunkRDZ5NKAI_cjs.augmentRequestContext(client, (_) => ({
598
598
  finalMethodCall: "applyAction"
599
599
  })), action);
600
600
  if (Array.isArray(parameters)) {
601
- const response = await chunkEHMN4DL4_cjs.Action_exports.applyBatch(clientWithHeaders, await client.ontologyRid, action.apiName, {
601
+ const response = await chunkRDZ5NKAI_cjs.Action_exports.applyBatch(clientWithHeaders, await client.ontologyRid, action.apiName, {
602
602
  requests: parameters ? await remapBatchActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)) : [],
603
603
  options: {
604
604
  returnEdits: options?.$returnEdits ? "ALL" : "NONE"
605
605
  }
606
+ }, {
607
+ branch: client.branch
606
608
  });
607
609
  const edits = response.edits;
608
610
  return options?.$returnEdits ? edits?.type === "edits" ? remapActionResponse(response) : edits : void 0;
609
611
  } else {
610
- const response = await chunkEHMN4DL4_cjs.Action_exports.apply(clientWithHeaders, await client.ontologyRid, action.apiName, {
612
+ const response = await chunkRDZ5NKAI_cjs.Action_exports.apply(clientWithHeaders, await client.ontologyRid, action.apiName, {
611
613
  parameters: await remapActionParams(parameters, client, await client.ontologyProvider.getActionDefinition(action.apiName)),
612
614
  options: {
613
615
  mode: options?.$validateOnly ? "VALIDATE_ONLY" : "VALIDATE_AND_EXECUTE",
614
616
  returnEdits: options?.$returnEdits ? "ALL_V2_WITH_DELETIONS" : "NONE"
615
617
  }
618
+ }, {
619
+ branch: client.branch
616
620
  });
617
621
  if (options?.$validateOnly) {
618
622
  return response.validation;
@@ -694,22 +698,22 @@ function remapActionResponse(response) {
694
698
  }
695
699
 
696
700
  // src/createMinimalClient.ts
697
- chunk6SCDLAU2_cjs.init_cjs_shims();
701
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
698
702
 
699
703
  // src/object/convertWireToOsdkObjects.ts
700
- chunk6SCDLAU2_cjs.init_cjs_shims();
704
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
701
705
 
702
706
  // src/object/convertWireToOsdkObjects/createOsdkObject.ts
703
- chunk6SCDLAU2_cjs.init_cjs_shims();
707
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
704
708
 
705
709
  // src/createGeotimeSeriesProperty.ts
706
- chunk6SCDLAU2_cjs.init_cjs_shims();
710
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
707
711
 
708
712
  // src/util/timeseriesUtils.ts
709
- chunk6SCDLAU2_cjs.init_cjs_shims();
713
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
710
714
 
711
715
  // src/util/streamutils.ts
712
- chunk6SCDLAU2_cjs.init_cjs_shims();
716
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
713
717
  var START_TOKEN = new Uint8Array([123, 34, 100, 97, 116, 97, 34, 58, 91]);
714
718
  var OBJECT_OPEN_CHAR_CODE = 123;
715
719
  var OBJECT_CLOSE_CHAR_CODE = 125;
@@ -828,7 +832,7 @@ var GeotimeSeriesPropertyImpl = class {
828
832
  }
829
833
  }
830
834
  async getLatestValue() {
831
- const latestPointPromise = chunkEHMN4DL4_cjs.TimeSeriesValueBankProperty_exports.getLatestValue(this.#client, await this.#client.ontologyRid, ...this.#triplet);
835
+ const latestPointPromise = chunkRDZ5NKAI_cjs.TimeSeriesValueBankProperty_exports.getLatestValue(this.#client, await this.#client.ontologyRid, ...this.#triplet);
832
836
  latestPointPromise.then(
833
837
  (latestPoint) => this.lastFetchedValue = latestPoint,
834
838
  // eslint-disable-next-line no-console
@@ -844,7 +848,7 @@ var GeotimeSeriesPropertyImpl = class {
844
848
  return allPoints;
845
849
  }
846
850
  async *asyncIterValues(query) {
847
- const streamPointsIterator = await chunkEHMN4DL4_cjs.TimeSeriesValueBankProperty_exports.streamValues(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
851
+ const streamPointsIterator = await chunkRDZ5NKAI_cjs.TimeSeriesValueBankProperty_exports.streamValues(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
848
852
  range: getTimeRange(query)
849
853
  } : {});
850
854
  for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
@@ -854,7 +858,7 @@ var GeotimeSeriesPropertyImpl = class {
854
858
  };
855
859
 
856
860
  // src/createMediaReferenceProperty.ts
857
- chunk6SCDLAU2_cjs.init_cjs_shims();
861
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
858
862
  var MediaReferencePropertyImpl = class {
859
863
  #mediaReference;
860
864
  #triplet;
@@ -872,13 +876,13 @@ var MediaReferencePropertyImpl = class {
872
876
  this.#mediaReference = mediaReference;
873
877
  }
874
878
  async fetchContents() {
875
- return chunkEHMN4DL4_cjs.MediaReferenceProperty_exports.getMediaContent(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
879
+ return chunkRDZ5NKAI_cjs.MediaReferenceProperty_exports.getMediaContent(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
876
880
  preview: true
877
881
  // TODO: Can turn this back off when backend is no longer in beta.
878
882
  });
879
883
  }
880
884
  async fetchMetadata() {
881
- const r = await chunkEHMN4DL4_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
885
+ const r = await chunkRDZ5NKAI_cjs.MediaReferenceProperty_exports.getMediaMetadata(this.#client, await this.#client.ontologyRid, ...this.#triplet, {
882
886
  preview: true
883
887
  // TODO: Can turn this back off when backend is no longer in beta.
884
888
  });
@@ -894,7 +898,7 @@ var MediaReferencePropertyImpl = class {
894
898
  };
895
899
 
896
900
  // src/createTimeseriesProperty.ts
897
- chunk6SCDLAU2_cjs.init_cjs_shims();
901
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
898
902
  var TimeSeriesPropertyImpl = class {
899
903
  #triplet;
900
904
  #client;
@@ -903,10 +907,10 @@ var TimeSeriesPropertyImpl = class {
903
907
  this.#triplet = [objectApiName, primaryKey, propertyName];
904
908
  }
905
909
  async getFirstPoint() {
906
- return chunkEHMN4DL4_cjs.TimeSeriesPropertyV2_exports.getFirstPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
910
+ return chunkRDZ5NKAI_cjs.TimeSeriesPropertyV2_exports.getFirstPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
907
911
  }
908
912
  async getLastPoint() {
909
- return chunkEHMN4DL4_cjs.TimeSeriesPropertyV2_exports.getLastPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
913
+ return chunkRDZ5NKAI_cjs.TimeSeriesPropertyV2_exports.getLastPoint(this.#client, await this.#client.ontologyRid, ...this.#triplet);
910
914
  }
911
915
  async getAllPoints(query) {
912
916
  const allPoints = [];
@@ -916,7 +920,7 @@ var TimeSeriesPropertyImpl = class {
916
920
  return allPoints;
917
921
  }
918
922
  async *asyncIterPoints(query) {
919
- const streamPointsIterator = await chunkEHMN4DL4_cjs.TimeSeriesPropertyV2_exports.streamPoints(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
923
+ const streamPointsIterator = await chunkRDZ5NKAI_cjs.TimeSeriesPropertyV2_exports.streamPoints(this.#client, await this.#client.ontologyRid, ...this.#triplet, query ? {
920
924
  range: getTimeRange(query)
921
925
  } : {});
922
926
  for await (const timeseriesPoint of asyncIterPointsHelper(streamPointsIterator)) {
@@ -925,25 +929,403 @@ var TimeSeriesPropertyImpl = class {
925
929
  }
926
930
  };
927
931
 
932
+ // src/object/formatting/applyPropertyFormatter.ts
933
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
934
+
935
+ // src/object/formatting/formatBoolean.ts
936
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
937
+ function formatBoolean(value, rule) {
938
+ return value ? rule.valueIfTrue : rule.valueIfFalse;
939
+ }
940
+
941
+ // src/object/formatting/formatDateTime.ts
942
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
943
+
944
+ // src/object/formatting/propertyFormattingUtils.ts
945
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
946
+ function resolvePropertyReference(ref, objectData) {
947
+ if (ref.type === "constant") {
948
+ return ref.value;
949
+ } else if (ref.type === "propertyType") {
950
+ const value = objectData[ref.propertyApiName];
951
+ return value != null ? String(value) : void 0;
952
+ }
953
+ return void 0;
954
+ }
955
+ function getBrowserLocale() {
956
+ if (typeof navigator !== "undefined" && navigator.language != null) {
957
+ return navigator.language;
958
+ }
959
+ return "en-US";
960
+ }
961
+
962
+ // src/object/formatting/formatDateTime.ts
963
+ function formatDateTime(value, format, timezone, objectData, locale, userTimezoneOverride) {
964
+ const date = value instanceof Date ? value : new Date(value);
965
+ if (isNaN(date.getTime())) {
966
+ return void 0;
967
+ }
968
+ const resolvedTimezone = resolveTimezone(timezone, objectData, userTimezoneOverride);
969
+ switch (format.type) {
970
+ case "localizedFormat":
971
+ return formatLocalized(date, format, locale, resolvedTimezone);
972
+ case "stringFormat":
973
+ return void 0;
974
+ default:
975
+ return void 0;
976
+ }
977
+ }
978
+ var INVALID_DATE_STRING = "Invalid date or timezone";
979
+ function formatLocalized(date, format, locale, timezone) {
980
+ if (format.format === "DATE_FORMAT_ISO_INSTANT") {
981
+ return date.toISOString();
982
+ }
983
+ if (format.format === "DATE_FORMAT_RELATIVE_TO_NOW") {
984
+ return formatRelativeToNow(date, locale, timezone);
985
+ }
986
+ const options = getLocalizedFormatOptions(format.format);
987
+ try {
988
+ return new Intl.DateTimeFormat(locale, timezone ? {
989
+ ...options,
990
+ timeZone: timezone
991
+ } : options).format(date);
992
+ } catch (_e) {
993
+ return INVALID_DATE_STRING;
994
+ }
995
+ }
996
+ function getLocalizedFormatOptions(format) {
997
+ switch (format) {
998
+ case "DATE_FORMAT_DATE":
999
+ return FORMAT_DATE;
1000
+ case "DATE_FORMAT_YEAR_AND_MONTH":
1001
+ return FORMAT_YEAR_AND_MONTH;
1002
+ case "DATE_FORMAT_DATE_TIME":
1003
+ return FORMAT_DATE_TIME;
1004
+ case "DATE_FORMAT_DATE_TIME_SHORT":
1005
+ return FORMAT_DATE_TIME_SHORT;
1006
+ case "DATE_FORMAT_TIME":
1007
+ return FORMAT_TIME;
1008
+ default:
1009
+ return {};
1010
+ }
1011
+ }
1012
+ var FORMAT_DATE = {
1013
+ day: "numeric",
1014
+ month: "short",
1015
+ weekday: "short",
1016
+ year: "numeric"
1017
+ };
1018
+ var FORMAT_YEAR_AND_MONTH = {
1019
+ month: "short",
1020
+ year: "numeric"
1021
+ };
1022
+ var FORMAT_DATE_TIME = {
1023
+ day: "numeric",
1024
+ month: "short",
1025
+ weekday: "short",
1026
+ year: "numeric",
1027
+ hour: "numeric",
1028
+ minute: "numeric",
1029
+ second: "numeric"
1030
+ };
1031
+ var FORMAT_DATE_TIME_SHORT = {
1032
+ day: "numeric",
1033
+ month: "short",
1034
+ year: "numeric",
1035
+ hour: "numeric",
1036
+ minute: "numeric"
1037
+ };
1038
+ var FORMAT_TIME = {
1039
+ hour: "numeric",
1040
+ minute: "numeric",
1041
+ second: "numeric"
1042
+ };
1043
+ var DATE_TIME_SHORT_WITH_WEEKDAY = {
1044
+ day: "numeric",
1045
+ month: "short",
1046
+ weekday: "short",
1047
+ year: "numeric",
1048
+ hour: "numeric",
1049
+ minute: "numeric"
1050
+ };
1051
+ function resolveTimezone(timezone, objectData, userTimezoneOverride) {
1052
+ if (userTimezoneOverride != null) {
1053
+ return userTimezoneOverride;
1054
+ }
1055
+ if (timezone == null) {
1056
+ return void 0;
1057
+ }
1058
+ switch (timezone.type) {
1059
+ case "user":
1060
+ return void 0;
1061
+ case "static":
1062
+ return resolvePropertyReference(timezone.zoneId, objectData);
1063
+ default:
1064
+ return void 0;
1065
+ }
1066
+ }
1067
+ var SECOND_MS = 1e3;
1068
+ var MINUTE_MS = 60 * SECOND_MS;
1069
+ var HOUR_MS = 60 * MINUTE_MS;
1070
+ var DAY_MS = 24 * HOUR_MS;
1071
+ function formatRelativeToNow(date, locale, timezone) {
1072
+ const now = Date.now();
1073
+ const diff = date.valueOf() - now;
1074
+ const absDiff = Math.abs(diff);
1075
+ if (absDiff >= DAY_MS) {
1076
+ const dtf = new Intl.DateTimeFormat(locale, {
1077
+ ...DATE_TIME_SHORT_WITH_WEEKDAY,
1078
+ timeZone: timezone
1079
+ });
1080
+ return dtf.format(date);
1081
+ }
1082
+ const rtf = new Intl.RelativeTimeFormat(locale, {
1083
+ numeric: "auto"
1084
+ });
1085
+ const units = [["hour", HOUR_MS], ["minute", MINUTE_MS], ["second", SECOND_MS]];
1086
+ for (const [unit, ms] of units) {
1087
+ if (absDiff >= ms) {
1088
+ return rtf.format(Math.floor(diff / ms), unit);
1089
+ }
1090
+ }
1091
+ return rtf.format(0, "second");
1092
+ }
1093
+
1094
+ // src/object/formatting/formatNumber.ts
1095
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1096
+ function formatNumber(value, numberType, objectData, locale) {
1097
+ switch (numberType.type) {
1098
+ case "standard":
1099
+ return formatStandardNumber(value, numberType.baseFormatOptions, locale);
1100
+ case "fixedValues":
1101
+ return numberType.values[value];
1102
+ case "currency":
1103
+ return formatCurrency(value, numberType, objectData, locale);
1104
+ case "standardUnit":
1105
+ return formatStandardUnit(value, numberType, objectData, locale);
1106
+ case "customUnit":
1107
+ return formatCustomUnit(value, numberType, objectData, locale);
1108
+ case "affix":
1109
+ return formatAffix(value, numberType, objectData, locale);
1110
+ case "duration":
1111
+ return void 0;
1112
+ case "scale":
1113
+ return formatScale(value, numberType, locale);
1114
+ case "ratio":
1115
+ return formatRatio(value, numberType, locale);
1116
+ default:
1117
+ return void 0;
1118
+ }
1119
+ }
1120
+ function formatStandardNumber(value, options, locale) {
1121
+ return formatNumberWithAffixes(value, options, locale);
1122
+ }
1123
+ function formatCurrency(value, rule, objectData, locale) {
1124
+ const currencyCode = resolvePropertyReference(rule.currencyCode, objectData);
1125
+ if (currencyCode == null) {
1126
+ return formatStandardNumber(value, rule.baseFormatOptions, locale);
1127
+ }
1128
+ const options = {
1129
+ ...convertToIntlOptions(rule.baseFormatOptions),
1130
+ style: "currency",
1131
+ currency: currencyCode,
1132
+ currencyDisplay: rule.style === "COMPACT" ? "narrowSymbol" : "symbol"
1133
+ };
1134
+ return formatWithIntl(value, options, locale);
1135
+ }
1136
+ function formatStandardUnit(value, rule, objectData, locale) {
1137
+ const unit = resolvePropertyReference(rule.unit, objectData);
1138
+ if (unit == null) {
1139
+ return formatStandardNumber(value, rule.baseFormatOptions, locale);
1140
+ }
1141
+ const options = {
1142
+ ...convertToIntlOptions(rule.baseFormatOptions),
1143
+ style: "unit",
1144
+ unit
1145
+ };
1146
+ try {
1147
+ return formatWithIntl(value, options, locale);
1148
+ } catch (error) {
1149
+ const suffix = ` ${unit}`;
1150
+ return formatNumberWithAffixes(value, rule.baseFormatOptions, locale, "", suffix);
1151
+ }
1152
+ }
1153
+ function formatCustomUnit(value, rule, objectData, locale) {
1154
+ const unit = resolvePropertyReference(rule.unit, objectData);
1155
+ const suffix = unit != null ? ` ${unit}` : "";
1156
+ return formatNumberWithAffixes(value, rule.baseFormatOptions, locale, "", suffix);
1157
+ }
1158
+ function formatAffix(value, rule, objectData, locale) {
1159
+ const prefix = rule.affix.prefix != null ? resolvePropertyReference(rule.affix.prefix, objectData) ?? "" : "";
1160
+ const suffix = rule.affix.postfix != null ? resolvePropertyReference(rule.affix.postfix, objectData) ?? "" : "";
1161
+ return formatNumberWithAffixes(value, rule.baseFormatOptions, locale, prefix, suffix);
1162
+ }
1163
+ function getScaleDivisor(scaleType) {
1164
+ switch (scaleType) {
1165
+ case "THOUSANDS":
1166
+ return 1e3;
1167
+ case "MILLIONS":
1168
+ return 1e6;
1169
+ case "BILLIONS":
1170
+ return 1e9;
1171
+ default:
1172
+ throw new Error(`Unknown scale type: ${scaleType}`);
1173
+ }
1174
+ }
1175
+ function getLocalizedCompactSuffix(scaleDivisor, locale) {
1176
+ const compactFormatter = new Intl.NumberFormat(locale, {
1177
+ notation: "compact",
1178
+ compactDisplay: "short"
1179
+ });
1180
+ const parts = compactFormatter.formatToParts(scaleDivisor);
1181
+ const compactPart = parts.find((p) => p.type === "compact");
1182
+ return compactPart?.value ?? "";
1183
+ }
1184
+ function formatScale(value, rule, locale) {
1185
+ const scaleDivisor = getScaleDivisor(rule.scaleType);
1186
+ const scaledValue = value / scaleDivisor;
1187
+ const suffix = getLocalizedCompactSuffix(scaleDivisor, locale);
1188
+ return formatNumberWithAffixes(scaledValue, rule.baseFormatOptions, locale, "", suffix);
1189
+ }
1190
+ function getRatioScaledValue(value, ratioType) {
1191
+ switch (ratioType) {
1192
+ case "PERCENTAGE":
1193
+ return value * 100;
1194
+ case "PER_MILLE":
1195
+ return value * 1e3;
1196
+ case "BASIS_POINTS":
1197
+ return value * 1e4;
1198
+ default:
1199
+ throw new Error(`Unknown ratio type: ${ratioType}`);
1200
+ }
1201
+ }
1202
+ function formatRatio(value, rule, locale) {
1203
+ if (rule.ratioType === "PERCENTAGE") {
1204
+ const options = {
1205
+ ...convertToIntlOptions(rule.baseFormatOptions),
1206
+ style: "percent"
1207
+ };
1208
+ return formatWithIntl(value, options, locale);
1209
+ }
1210
+ const scaledValue = getRatioScaledValue(value, rule.ratioType);
1211
+ let suffix;
1212
+ switch (rule.ratioType) {
1213
+ case "PER_MILLE":
1214
+ suffix = "\u2030";
1215
+ break;
1216
+ case "BASIS_POINTS":
1217
+ suffix = " bps";
1218
+ break;
1219
+ default:
1220
+ rule.ratioType;
1221
+ throw new Error(`Unknown ratio type: ${rule.ratioType}`);
1222
+ }
1223
+ return formatNumberWithAffixes(scaledValue, rule.baseFormatOptions, locale, "", suffix);
1224
+ }
1225
+ function mapNotation(notation) {
1226
+ switch (notation) {
1227
+ case "STANDARD":
1228
+ return "standard";
1229
+ case "SCIENTIFIC":
1230
+ return "scientific";
1231
+ case "ENGINEERING":
1232
+ return "engineering";
1233
+ case "COMPACT":
1234
+ return "compact";
1235
+ }
1236
+ }
1237
+ function mapRoundingMode(mode) {
1238
+ switch (mode) {
1239
+ case "CEIL":
1240
+ return "ceil";
1241
+ case "FLOOR":
1242
+ return "floor";
1243
+ case "ROUND_CLOSEST":
1244
+ return "halfExpand";
1245
+ default:
1246
+ return void 0;
1247
+ }
1248
+ }
1249
+ function convertToIntlOptions(options) {
1250
+ return {
1251
+ useGrouping: options.useGrouping,
1252
+ minimumIntegerDigits: options.minimumIntegerDigits,
1253
+ minimumFractionDigits: options.minimumFractionDigits,
1254
+ maximumFractionDigits: options.maximumFractionDigits,
1255
+ minimumSignificantDigits: options.minimumSignificantDigits,
1256
+ maximumSignificantDigits: options.maximumSignificantDigits,
1257
+ notation: options.notation ? mapNotation(options.notation) : void 0,
1258
+ roundingMode: options.roundingMode ? mapRoundingMode(options.roundingMode) : void 0,
1259
+ convertNegativeToParenthesis: options.convertNegativeToParenthesis
1260
+ };
1261
+ }
1262
+ function maybeConvertNegativeToParenthesis(formatted, value, shouldConvert) {
1263
+ if (shouldConvert && value < 0) {
1264
+ return formatted.replace(/^-/, "(") + ")";
1265
+ }
1266
+ return formatted;
1267
+ }
1268
+ function formatWithIntl(value, options, locale) {
1269
+ const formatter = new Intl.NumberFormat(locale, options);
1270
+ const formatted = formatter.format(value);
1271
+ return maybeConvertNegativeToParenthesis(formatted, value, options.convertNegativeToParenthesis ?? false);
1272
+ }
1273
+ function formatNumberWithAffixes(value, baseOptions, locale, prefix, suffix) {
1274
+ const intlOptions = convertToIntlOptions(baseOptions);
1275
+ const formatted = formatWithIntl(value, intlOptions, locale);
1276
+ return `${prefix || ""}${formatted}${suffix || ""}`;
1277
+ }
1278
+
1279
+ // src/object/formatting/applyPropertyFormatter.ts
1280
+ function applyPropertyFormatter(propertyValue, propertyDefinition, objectData, options = {}) {
1281
+ if (propertyDefinition?.valueFormatting == null || propertyValue == null) {
1282
+ return void 0;
1283
+ }
1284
+ return formatPropertyValue(propertyValue, propertyDefinition.valueFormatting, objectData, options);
1285
+ }
1286
+ function formatPropertyValue(value, rule, objectData, options) {
1287
+ switch (rule.type) {
1288
+ case "boolean":
1289
+ if (typeof value !== "boolean") {
1290
+ return void 0;
1291
+ }
1292
+ return formatBoolean(value, rule);
1293
+ case "number":
1294
+ if (typeof value !== "number") {
1295
+ return void 0;
1296
+ }
1297
+ return formatNumber(value, rule.numberType, objectData, options.locale ?? getBrowserLocale());
1298
+ case "date":
1299
+ case "timestamp":
1300
+ if (typeof value !== "string") {
1301
+ return void 0;
1302
+ }
1303
+ return formatDateTime(new Date(value), rule.format, rule.type === "timestamp" ? rule.displayTimezone : void 0, objectData, options.locale ?? getBrowserLocale(), options.timezoneId);
1304
+ default:
1305
+ return void 0;
1306
+ }
1307
+ }
1308
+
928
1309
  // src/object/convertWireToOsdkObjects/getDollarAs.ts
929
- chunk6SCDLAU2_cjs.init_cjs_shims();
1310
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
930
1311
 
931
1312
  // src/ontology/OntologyProvider.ts
932
- chunk6SCDLAU2_cjs.init_cjs_shims();
1313
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
933
1314
  var InterfaceDefinitions = Symbol("InterfaceDefinitions" );
934
1315
 
935
1316
  // src/object/convertWireToOsdkObjects/createOsdkInterface.ts
936
- chunk6SCDLAU2_cjs.init_cjs_shims();
1317
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
937
1318
 
938
1319
  // src/object/convertWireToOsdkObjects/getDollarLink.ts
939
- chunk6SCDLAU2_cjs.init_cjs_shims();
1320
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
940
1321
 
941
1322
  // src/object/convertWireToOsdkObjects/InternalSymbols.ts
942
- chunk6SCDLAU2_cjs.init_cjs_shims();
1323
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
943
1324
  var UnderlyingOsdkObject = Symbol("Underlying Object" );
944
1325
  var ObjectDefRef = Symbol("ObjectDefinition" );
945
1326
  var InterfaceDefRef = Symbol("InterfaceDefinition" );
946
1327
  var ClientRef = Symbol("ClientRef" );
1328
+ var PropertySecuritiesRef = Symbol("Property Securities" );
947
1329
 
948
1330
  // src/object/convertWireToOsdkObjects/getDollarLink.ts
949
1331
  function get$link(holder) {
@@ -956,8 +1338,8 @@ function get$link(holder) {
956
1338
  [objDef.primaryKeyApiName]: rawObj.$primaryKey
957
1339
  }).pivotTo(linkName);
958
1340
  const value = !linkDef.multiplicity ? {
959
- fetchOne: (options) => chunkEHMN4DL4_cjs.fetchSingle(client, objDef, options ?? {}, chunkEHMN4DL4_cjs.getWireObjectSet(objectSet)),
960
- fetchOneWithErrors: (options) => chunkEHMN4DL4_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkEHMN4DL4_cjs.getWireObjectSet(objectSet))
1341
+ fetchOne: (options) => chunkRDZ5NKAI_cjs.fetchSingle(client, objDef, options ?? {}, chunkRDZ5NKAI_cjs.getWireObjectSet(objectSet)),
1342
+ fetchOneWithErrors: (options) => chunkRDZ5NKAI_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkRDZ5NKAI_cjs.getWireObjectSet(objectSet))
961
1343
  } : objectSet;
962
1344
  return [linkName, value];
963
1345
  })));
@@ -973,8 +1355,8 @@ function get$linkForInterface(holder) {
973
1355
  [objDef.primaryKeyApiName]: rawObj.$primaryKey
974
1356
  })).pivotTo(linkName);
975
1357
  const value = !linkDef.multiplicity ? {
976
- fetchOne: (options) => chunkEHMN4DL4_cjs.fetchSingle(client, objDef, options ?? {}, chunkEHMN4DL4_cjs.getWireObjectSet(objectSet)),
977
- fetchOneWithErrors: (options) => chunkEHMN4DL4_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkEHMN4DL4_cjs.getWireObjectSet(objectSet))
1358
+ fetchOne: (options) => chunkRDZ5NKAI_cjs.fetchSingle(client, objDef, options ?? {}, chunkRDZ5NKAI_cjs.getWireObjectSet(objectSet)),
1359
+ fetchOneWithErrors: (options) => chunkRDZ5NKAI_cjs.fetchSingleWithErrors(client, objDef, options ?? {}, chunkRDZ5NKAI_cjs.getWireObjectSet(objectSet))
978
1360
  } : objectSet;
979
1361
  return [linkName, value];
980
1362
  })));
@@ -982,7 +1364,7 @@ function get$linkForInterface(holder) {
982
1364
 
983
1365
  // src/object/convertWireToOsdkObjects/createOsdkInterface.ts
984
1366
  function createOsdkInterface(underlying, interfaceDef) {
985
- const [objApiNamespace] = chunkEHMN4DL4_cjs.extractNamespace(interfaceDef.apiName);
1367
+ const [objApiNamespace] = chunkRDZ5NKAI_cjs.extractNamespace(interfaceDef.apiName);
986
1368
  return Object.freeze(Object.defineProperties({}, {
987
1369
  // first to minimize hidden classes
988
1370
  [UnderlyingOsdkObject]: {
@@ -1020,6 +1402,10 @@ function createOsdkInterface(underlying, interfaceDef) {
1020
1402
  value: clone,
1021
1403
  enumerable: false
1022
1404
  },
1405
+ "$propertySecurities": {
1406
+ value: underlying.$propertySecurities,
1407
+ enumerable: "$propertySecurities" in underlying
1408
+ },
1023
1409
  "$__EXPERIMENTAL__NOT_SUPPORTED_YET__metadata": {
1024
1410
  value: {
1025
1411
  "ObjectMetadata": underlying[ObjectDefRef],
@@ -1027,6 +1413,10 @@ function createOsdkInterface(underlying, interfaceDef) {
1027
1413
  },
1028
1414
  enumerable: false
1029
1415
  },
1416
+ "$__EXPERIMENTAL__NOT_SUPPORTED_YET__getFormattedValue": {
1417
+ value: underlying.$__EXPERIMENTAL__NOT_SUPPORTED_YET__getFormattedValue,
1418
+ enumerable: false
1419
+ },
1030
1420
  "$link": {
1031
1421
  get: function() {
1032
1422
  return get$linkForInterface(this);
@@ -1037,7 +1427,7 @@ function createOsdkInterface(underlying, interfaceDef) {
1037
1427
  },
1038
1428
  ...Object.fromEntries(Object.keys(interfaceDef.properties).map((p) => {
1039
1429
  const objDef = underlying[ObjectDefRef];
1040
- const [apiNamespace, apiName] = chunkEHMN4DL4_cjs.extractNamespace(p);
1430
+ const [apiNamespace, apiName] = chunkRDZ5NKAI_cjs.extractNamespace(p);
1041
1431
  const targetPropName = objDef.interfaceMap[interfaceDef.apiName][p];
1042
1432
  return [apiNamespace === objApiNamespace ? apiName : p, {
1043
1433
  enumerable: targetPropName in underlying,
@@ -1144,6 +1534,12 @@ var basePropDefs = {
1144
1534
  },
1145
1535
  enumerable: true
1146
1536
  },
1537
+ "$propertySecurities": {
1538
+ get: function() {
1539
+ return this[PropertySecuritiesRef];
1540
+ },
1541
+ enumerable: true
1542
+ },
1147
1543
  "$__EXPERIMENTAL__NOT_SUPPORTED_YET__metadata": {
1148
1544
  get: function() {
1149
1545
  return {
@@ -1151,15 +1547,32 @@ var basePropDefs = {
1151
1547
  };
1152
1548
  },
1153
1549
  enumerable: false
1550
+ },
1551
+ "$__EXPERIMENTAL__NOT_SUPPORTED_YET__getFormattedValue": {
1552
+ value: function(propertyApiName, options) {
1553
+ const rawObj = this[UnderlyingOsdkObject];
1554
+ const def = this[ObjectDefRef];
1555
+ const propertyValue = rawObj[propertyApiName];
1556
+ return applyPropertyFormatter(propertyValue, def.properties[propertyApiName], rawObj, options);
1557
+ },
1558
+ enumerable: false
1154
1559
  }
1155
1560
  };
1156
- function createOsdkObject(client, objectDef, simpleOsdkProperties, derivedPropertyTypeByName = {}) {
1157
- const rawObj = simpleOsdkProperties;
1561
+ function createOsdkObject(client, objectDef, simpleOsdkProperties, derivedPropertyTypeByName = {}, wirePropertySecurities = []) {
1562
+ const {
1563
+ parsedObject,
1564
+ clientPropertySecurities
1565
+ } = parseWhenSecuritiesLoaded(wirePropertySecurities, simpleOsdkProperties, objectDef, derivedPropertyTypeByName);
1566
+ const rawObj = parsedObject;
1158
1567
  Object.defineProperties(rawObj, {
1159
1568
  [UnderlyingOsdkObject]: {
1160
1569
  enumerable: false,
1161
1570
  value: simpleOsdkProperties
1162
1571
  },
1572
+ [PropertySecuritiesRef]: {
1573
+ enumerable: false,
1574
+ value: clientPropertySecurities
1575
+ },
1163
1576
  [ObjectDefRef]: {
1164
1577
  value: objectDef,
1165
1578
  enumerable: false
@@ -1183,18 +1596,18 @@ function createOsdkObject(client, objectDef, simpleOsdkProperties, derivedProper
1183
1596
  function modifyRdpProperties(client, derivedPropertyTypeByName, rawValue, propKey) {
1184
1597
  if (derivedPropertyTypeByName[propKey].definition.type === "selection" && derivedPropertyTypeByName[propKey].definition.operation.type === "count") {
1185
1598
  const num = Number(rawValue);
1186
- !Number.isSafeInteger(num) ? process.env.NODE_ENV !== "production" ? invariant__default.default(false, "Count aggregation for derived property " + propKey + " returned a value larger than safe integer.") : invariant__default.default(false) : void 0;
1599
+ !Number.isSafeInteger(num) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Count aggregation for derived property " + propKey + " returned a value larger than safe integer.") : invariant3__default.default(false) : void 0;
1187
1600
  return num;
1188
1601
  } else if (derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType != null && typeof derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType.type === "string" && specialPropertyTypes.has(derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType.type)) {
1189
1602
  switch (derivedPropertyTypeByName[propKey].selectedOrCollectedPropertyType?.type) {
1190
1603
  case "attachment":
1191
1604
  if (Array.isArray(rawValue)) {
1192
- return rawValue.map((a) => chunkEHMN4DL4_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1605
+ return rawValue.map((a) => chunkRDZ5NKAI_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1193
1606
  } else {
1194
- return chunkEHMN4DL4_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1607
+ return chunkRDZ5NKAI_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1195
1608
  }
1196
1609
  default:
1197
- process.env.NODE_ENV !== "production" ? invariant__default.default(false, "Derived property aggregations for Timeseries and Media are not supported") : invariant__default.default(false) ;
1610
+ process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Derived property aggregations for Timeseries and Media are not supported") : invariant3__default.default(false) ;
1198
1611
  }
1199
1612
  }
1200
1613
  return rawValue;
@@ -1203,13 +1616,13 @@ function createSpecialProperty(client, objectDef, rawObject, p) {
1203
1616
  const rawValue = rawObject[p];
1204
1617
  const propDef = objectDef.properties[p];
1205
1618
  if (process.env.NODE_ENV !== "production") {
1206
- !(propDef != null && typeof propDef.type === "string" && specialPropertyTypes.has(propDef.type)) ? process.env.NODE_ENV !== "production" ? invariant__default.default(false) : invariant__default.default(false) : void 0;
1619
+ !(propDef != null && typeof propDef.type === "string" && specialPropertyTypes.has(propDef.type)) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false) : invariant3__default.default(false) : void 0;
1207
1620
  }
1208
1621
  if (propDef.type === "attachment") {
1209
1622
  if (Array.isArray(rawValue)) {
1210
- return rawValue.map((a) => chunkEHMN4DL4_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1623
+ return rawValue.map((a) => chunkRDZ5NKAI_cjs.hydrateAttachmentFromRidInternal(client, a.rid));
1211
1624
  }
1212
- return chunkEHMN4DL4_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1625
+ return chunkRDZ5NKAI_cjs.hydrateAttachmentFromRidInternal(client, rawValue.rid);
1213
1626
  }
1214
1627
  if (propDef.type === "numericTimeseries" || propDef.type === "stringTimeseries" || propDef.type === "sensorTimeseries") {
1215
1628
  return new TimeSeriesPropertyImpl(client, objectDef.apiName, rawObject[objectDef.primaryKeyApiName], p);
@@ -1233,16 +1646,81 @@ function createSpecialProperty(client, objectDef, rawObject, p) {
1233
1646
  });
1234
1647
  }
1235
1648
  }
1649
+ function parseWhenSecuritiesLoaded(wirePropertySecurities, rawObject, objectDef, derivedPropertyTypeByName = {}) {
1650
+ if (wirePropertySecurities == null || wirePropertySecurities.length === 0) {
1651
+ return {
1652
+ parsedObject: rawObject,
1653
+ clientPropertySecurities: void 0
1654
+ };
1655
+ }
1656
+ const parsedObject = {
1657
+ ...rawObject
1658
+ };
1659
+ const clientPropertySecurities = {};
1660
+ for (const propKey of Object.keys(rawObject)) {
1661
+ if (propKey in objectDef.properties || propKey in derivedPropertyTypeByName) {
1662
+ const value = rawObject[propKey];
1663
+ if (Array.isArray(value)) {
1664
+ const newVal = [];
1665
+ const newSecurities = [];
1666
+ value.forEach((spv) => {
1667
+ !(typeof spv === "object" && spv != null && "value" in spv && "propertySecurityIndex" in spv) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected destructured secured property value object in array") : invariant3__default.default(false) : void 0;
1668
+ const securedValue = spv;
1669
+ newVal.push(securedValue.value);
1670
+ const securityIndex = securedValue.propertySecurityIndex;
1671
+ !(securityIndex != null) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected property security index to be defined") : invariant3__default.default(false) : void 0;
1672
+ !(securityIndex < wirePropertySecurities.length) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected property security index to be within bounds") : invariant3__default.default(false) : void 0;
1673
+ newSecurities.push(wirePropertySecurities[securityIndex].disjunction.map(wireToClientPropertySecurities));
1674
+ });
1675
+ parsedObject[propKey] = newVal;
1676
+ clientPropertySecurities[propKey] = newSecurities;
1677
+ } else if (typeof value === "object" && value != null && "value" in value && "propertySecurityIndex" in value) {
1678
+ const securedValue = value;
1679
+ parsedObject[propKey] = securedValue.value;
1680
+ const securityIndex = securedValue.propertySecurityIndex;
1681
+ !(securityIndex != null) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected property security index to be defined") : invariant3__default.default(false) : void 0;
1682
+ !(securityIndex < wirePropertySecurities.length) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected property security index to be within bounds") : invariant3__default.default(false) : void 0;
1683
+ clientPropertySecurities[propKey] = wirePropertySecurities[securityIndex].disjunction.map(wireToClientPropertySecurities);
1684
+ } else {
1685
+ parsedObject[propKey] = value;
1686
+ }
1687
+ }
1688
+ }
1689
+ return {
1690
+ parsedObject,
1691
+ clientPropertySecurities
1692
+ };
1693
+ }
1694
+ function wireToClientPropertySecurities(propertySecurity) {
1695
+ switch (propertySecurity.type) {
1696
+ case "propertyMarkingSummary":
1697
+ return {
1698
+ type: "propertyMarkings",
1699
+ conjunctive: propertySecurity.conjunctive,
1700
+ containerConjunctive: propertySecurity.containerConjunctive,
1701
+ disjunctive: propertySecurity.disjunctive,
1702
+ containerDisjunctive: propertySecurity.containerDisjunctive
1703
+ };
1704
+ case "errorComputingSecurity":
1705
+ return {
1706
+ type: "errorComputingSecurity"
1707
+ };
1708
+ case "unsupportedPolicy":
1709
+ return {
1710
+ type: "unsupportedPolicy"
1711
+ };
1712
+ }
1713
+ }
1236
1714
 
1237
1715
  // src/object/convertWireToOsdkObjects.ts
1238
- async function convertWireToOsdkObjects(client, objects, interfaceApiName, forceRemoveRid = false, derivedPropertyTypesByName, selectedProps, strictNonNull = false) {
1716
+ async function convertWireToOsdkObjects(client, objects, interfaceApiName, forceRemoveRid = false, derivedPropertyTypesByName, propertySecurities, selectedProps, strictNonNull = false) {
1239
1717
  fixObjectPropertiesInPlace(objects, forceRemoveRid);
1240
1718
  const ifaceDef = interfaceApiName ? await client.ontologyProvider.getInterfaceDefinition(interfaceApiName) : void 0;
1241
1719
  const ifaceSelected = ifaceDef ? selectedProps ?? Object.keys(ifaceDef.properties) : void 0;
1242
1720
  const ret = [];
1243
1721
  for (const rawObj of objects) {
1244
1722
  const objectDef = await client.ontologyProvider.getObjectDefinition(rawObj.$apiName);
1245
- !objectDef ? process.env.NODE_ENV !== "production" ? invariant__default.default(false, `Missing definition for '${rawObj.$apiName}'`) : invariant__default.default(false) : void 0;
1723
+ !objectDef ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Missing definition for '${rawObj.$apiName}'`) : invariant3__default.default(false) : void 0;
1246
1724
  let objProps;
1247
1725
  let conforming = true;
1248
1726
  if (ifaceDef && ifaceSelected) {
@@ -1259,20 +1737,21 @@ async function convertWireToOsdkObjects(client, objects, interfaceApiName, force
1259
1737
  } else if (strictNonNull === "drop" && !conforming) {
1260
1738
  continue;
1261
1739
  }
1262
- let osdkObject = createOsdkObject(client, objectDef, rawObj, derivedPropertyTypesByName);
1740
+ let osdkObject = createOsdkObject(client, objectDef, rawObj, derivedPropertyTypesByName, propertySecurities);
1263
1741
  if (interfaceApiName) osdkObject = osdkObject.$as(interfaceApiName);
1264
1742
  ret.push(osdkObject);
1265
1743
  }
1266
1744
  return ret;
1267
1745
  }
1268
- async function convertWireToOsdkObjects2(client, objects, interfaceApiName, derivedPropertyTypeByName, forceRemoveRid = false, selectedProps, strictNonNull = false, interfaceToObjectTypeMappings = {}) {
1746
+ async function convertWireToOsdkObjects2(client, objects, interfaceApiName, derivedPropertyTypeByName, propertySecurities, forceRemoveRid = false, selectedProps, strictNonNull = false, interfaceToObjectTypeMappings = {}, interfaceToObjectTypeMappingsV2 = {}) {
1269
1747
  fixObjectPropertiesInPlace(objects, forceRemoveRid);
1270
- const isInterfaceScoped = Object.keys(interfaceToObjectTypeMappings).length > 0;
1748
+ const effectiveMappings = Object.keys(interfaceToObjectTypeMappingsV2).length > 0 ? convertInterfaceToObjectTypeMappingsV2ToV1(interfaceToObjectTypeMappingsV2) : interfaceToObjectTypeMappings;
1749
+ const isInterfaceScoped = Object.keys(effectiveMappings).length > 0;
1271
1750
  const ret = [];
1272
1751
  for (const rawObj of objects) {
1273
1752
  const objectDef = await client.ontologyProvider.getObjectDefinition(rawObj.$apiName);
1274
- !objectDef ? process.env.NODE_ENV !== "production" ? invariant__default.default(false, `Missing definition for '${rawObj.$apiName}'`) : invariant__default.default(false) : void 0;
1275
- const interfaceToObjMapping = interfaceApiName && isInterfaceScoped ? interfaceToObjectTypeMappings[interfaceApiName][rawObj.$apiName] : void 0;
1753
+ !objectDef ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Missing definition for '${rawObj.$apiName}'`) : invariant3__default.default(false) : void 0;
1754
+ const interfaceToObjMapping = interfaceApiName && isInterfaceScoped ? effectiveMappings[interfaceApiName][rawObj.$apiName] : void 0;
1276
1755
  const ifaceSelected = interfaceApiName && interfaceToObjMapping ? selectedProps ? Object.keys(interfaceToObjMapping).filter((val) => {
1277
1756
  selectedProps?.includes(interfaceToObjMapping[val]);
1278
1757
  }) : [...Object.values(interfaceToObjMapping), objectDef.primaryKeyApiName] : void 0;
@@ -1290,7 +1769,7 @@ async function convertWireToOsdkObjects2(client, objects, interfaceApiName, deri
1290
1769
  } else if (strictNonNull === "drop" && !conforming) {
1291
1770
  continue;
1292
1771
  }
1293
- let osdkObject = createOsdkObject(client, objectDef, rawObj, derivedPropertyTypeByName);
1772
+ let osdkObject = createOsdkObject(client, objectDef, rawObj, derivedPropertyTypeByName, propertySecurities);
1294
1773
  if (interfaceApiName && isInterfaceScoped) osdkObject = osdkObject.$as(interfaceApiName);
1295
1774
  ret.push(osdkObject);
1296
1775
  }
@@ -1365,12 +1844,15 @@ function fixObjectPropertiesInPlace(objs, forceRemoveRid) {
1365
1844
  delete obj.__title;
1366
1845
  }
1367
1846
  }
1847
+ function convertInterfaceToObjectTypeMappingsV2ToV1(mappingsV2) {
1848
+ return Object.fromEntries(Object.entries(mappingsV2).map(([interfaceApiName, objectTypeMappingsV2]) => [interfaceApiName, Object.fromEntries(Object.entries(objectTypeMappingsV2).map(([objectTypeName, propertyMappings]) => [objectTypeName, Object.fromEntries(Object.entries(propertyMappings).filter(([, impl]) => impl.type === "localPropertyImplementation").map(([interfaceProp, impl]) => [interfaceProp, impl.propertyApiName]))]))]));
1849
+ }
1368
1850
 
1369
1851
  // src/ontology/StandardOntologyProvider.ts
1370
- chunk6SCDLAU2_cjs.init_cjs_shims();
1852
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1371
1853
 
1372
1854
  // src/object/Cache.ts
1373
- chunk6SCDLAU2_cjs.init_cjs_shims();
1855
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1374
1856
  function createClientCache(fn) {
1375
1857
  const cache = /* @__PURE__ */ new WeakMap();
1376
1858
  function get(client, key) {
@@ -1427,7 +1909,7 @@ function createAsyncClientCache(fn, createCacheLocal = createClientCache) {
1427
1909
  }
1428
1910
 
1429
1911
  // src/util/deepFreeze.ts
1430
- chunk6SCDLAU2_cjs.init_cjs_shims();
1912
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1431
1913
  function deepFreeze(obj) {
1432
1914
  Object.getOwnPropertyNames(obj).forEach((name) => {
1433
1915
  const prop = obj[name];
@@ -1439,17 +1921,20 @@ function deepFreeze(obj) {
1439
1921
  }
1440
1922
 
1441
1923
  // src/ontology/loadActionMetadata.ts
1442
- chunk6SCDLAU2_cjs.init_cjs_shims();
1924
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1443
1925
  async function loadActionMetadata(client, actionType) {
1444
- const r = await chunkEHMN4DL4_cjs.ActionTypeV2_exports.get(client, await client.ontologyRid, actionType);
1926
+ const r = await chunkRDZ5NKAI_cjs.ActionTypeV2_exports.get(client, await client.ontologyRid, actionType, {
1927
+ branch: client.branch
1928
+ });
1445
1929
  return generatorConverters.wireActionTypeV2ToSdkActionMetadata(r);
1446
1930
  }
1447
1931
 
1448
1932
  // src/ontology/loadFullObjectMetadata.ts
1449
- chunk6SCDLAU2_cjs.init_cjs_shims();
1933
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1450
1934
  async function loadFullObjectMetadata(client, objectType) {
1451
- const full = await chunkEHMN4DL4_cjs.ObjectTypeV2_exports.getFullMetadata(client, await client.ontologyRid, objectType, {
1452
- preview: true
1935
+ const full = await chunkRDZ5NKAI_cjs.ObjectTypeV2_exports.getFullMetadata(client, await client.ontologyRid, objectType, {
1936
+ preview: true,
1937
+ branch: client.branch
1453
1938
  });
1454
1939
  const ret = generatorConverters.wireObjectTypeFullMetadataToSdkObjectMetadata(full, true);
1455
1940
  return {
@@ -1458,19 +1943,20 @@ async function loadFullObjectMetadata(client, objectType) {
1458
1943
  }
1459
1944
 
1460
1945
  // src/ontology/loadInterfaceMetadata.ts
1461
- chunk6SCDLAU2_cjs.init_cjs_shims();
1946
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1462
1947
  async function loadInterfaceMetadata(client, objectType) {
1463
- const r = await chunkEHMN4DL4_cjs.OntologyInterface_exports.get(client, await client.ontologyRid, objectType, {
1464
- preview: true
1948
+ const r = await chunkRDZ5NKAI_cjs.OntologyInterface_exports.get(client, await client.ontologyRid, objectType, {
1949
+ preview: true,
1950
+ branch: client.branch
1465
1951
  });
1466
1952
  return generatorConverters.__UNSTABLE_wireInterfaceTypeV2ToSdkObjectDefinition(r, true);
1467
1953
  }
1468
1954
 
1469
1955
  // src/ontology/loadQueryMetadata.ts
1470
- chunk6SCDLAU2_cjs.init_cjs_shims();
1956
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1471
1957
  async function loadQueryMetadata(client, queryTypeApiNameAndVersion) {
1472
1958
  const [apiName, version] = queryTypeApiNameAndVersion.split(":");
1473
- const r = await chunkEHMN4DL4_cjs.QueryType_exports.get(client, await client.ontologyRid, apiName, {
1959
+ const r = await chunkRDZ5NKAI_cjs.QueryType_exports.get(client, await client.ontologyRid, apiName, {
1474
1960
  version
1475
1961
  });
1476
1962
  return generatorConverters.wireQueryTypeV2ToSdkQueryMetadata(r);
@@ -1527,12 +2013,12 @@ var createStandardOntologyProviderFactory = (client) => {
1527
2013
  };
1528
2014
 
1529
2015
  // src/util/UserAgent.ts
1530
- chunk6SCDLAU2_cjs.init_cjs_shims();
1531
- var USER_AGENT = `osdk-client/${"2.6.1"}`;
1532
- var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.6.1"}`;
2016
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
2017
+ var USER_AGENT = `osdk-client/${"2.7.0-beta.10"}`;
2018
+ var OBSERVABLE_USER_AGENT = `osdk-observable-client/${"2.7.0-beta.10"}`;
1533
2019
 
1534
2020
  // src/createMinimalClient.ts
1535
- function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkEHMN4DL4_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
2021
+ function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fetchFn = global.fetch, objectSetFactory = chunkRDZ5NKAI_cjs.createObjectSet, createOntologyProviderFactory = createStandardOntologyProviderFactory) {
1536
2022
  if (process.env.NODE_ENV !== "production") {
1537
2023
  try {
1538
2024
  new URL(baseUrl);
@@ -1553,6 +2039,7 @@ function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fet
1553
2039
  transactionId: options.transactionId,
1554
2040
  clientCacheKey: {},
1555
2041
  requestContext: {},
2042
+ branch: options.branch,
1556
2043
  narrowTypeInterfaceOrObjectMapping: {}
1557
2044
  };
1558
2045
  return Object.freeze(Object.assign(minimalClient, {
@@ -1561,7 +2048,7 @@ function createMinimalClient(metadata, baseUrl, tokenProvider, options = {}, fet
1561
2048
  }
1562
2049
 
1563
2050
  // src/fetchMetadata.ts
1564
- chunk6SCDLAU2_cjs.init_cjs_shims();
2051
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1565
2052
  var fetchMetadataInternal = async (client, definition) => {
1566
2053
  if (definition.type === "object") {
1567
2054
  const {
@@ -1581,10 +2068,10 @@ var fetchMetadataInternal = async (client, definition) => {
1581
2068
  };
1582
2069
 
1583
2070
  // src/queries/applyQuery.ts
1584
- chunk6SCDLAU2_cjs.init_cjs_shims();
2071
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1585
2072
 
1586
2073
  // src/util/toDataValueQueries.ts
1587
- chunk6SCDLAU2_cjs.init_cjs_shims();
2074
+ chunkLDTMSHUZ_cjs.init_cjs_shims();
1588
2075
  async function toDataValueQueries(value, client, desiredType) {
1589
2076
  if (value == null) {
1590
2077
  return value;
@@ -1604,13 +2091,13 @@ async function toDataValueQueries(value, client, desiredType) {
1604
2091
  switch (desiredType.type) {
1605
2092
  case "attachment": {
1606
2093
  if (isAttachmentUpload(value)) {
1607
- const attachment = await chunkEHMN4DL4_cjs.Attachment_exports.upload(client, value.data, {
2094
+ const attachment = await chunkRDZ5NKAI_cjs.Attachment_exports.upload(client, value.data, {
1608
2095
  filename: value.name
1609
2096
  });
1610
2097
  return attachment.rid;
1611
2098
  }
1612
2099
  if (isAttachmentFile(value)) {
1613
- const attachment = await chunkEHMN4DL4_cjs.Attachment_exports.upload(client, value, {
2100
+ const attachment = await chunkRDZ5NKAI_cjs.Attachment_exports.upload(client, value, {
1614
2101
  filename: value.name
1615
2102
  });
1616
2103
  return attachment.rid;
@@ -1650,11 +2137,11 @@ async function toDataValueQueries(value, client, desiredType) {
1650
2137
  }
1651
2138
  case "objectSet":
1652
2139
  case "interfaceObjectSet": {
1653
- if (chunkEHMN4DL4_cjs.isWireObjectSet(value)) {
2140
+ if (chunkRDZ5NKAI_cjs.isWireObjectSet(value)) {
1654
2141
  return value;
1655
2142
  }
1656
- if (chunkEHMN4DL4_cjs.isObjectSet(value)) {
1657
- return chunkEHMN4DL4_cjs.getWireObjectSet(value);
2143
+ if (chunkRDZ5NKAI_cjs.isObjectSet(value)) {
2144
+ return chunkRDZ5NKAI_cjs.getWireObjectSet(value);
1658
2145
  }
1659
2146
  break;
1660
2147
  }
@@ -1699,7 +2186,7 @@ async function applyQuery(client, query, params) {
1699
2186
  if (client.flushEdits != null) {
1700
2187
  await client.flushEdits();
1701
2188
  }
1702
- const response = await chunkEHMN4DL4_cjs.Query_exports.execute(chunkEHMN4DL4_cjs.addUserAgentAndRequestContextHeaders(chunkEHMN4DL4_cjs.augmentRequestContext(client, (_) => ({
2189
+ const response = await chunkRDZ5NKAI_cjs.Query_exports.execute(chunkRDZ5NKAI_cjs.addUserAgentAndRequestContextHeaders(chunkRDZ5NKAI_cjs.augmentRequestContext(client, (_) => ({
1703
2190
  finalMethodCall: "applyQuery"
1704
2191
  })), query), await client.ontologyRid, query.apiName, {
1705
2192
  parameters: params ? await remapQueryParams(params, client, (await qd).parameters) : {}
@@ -1743,7 +2230,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
1743
2230
  return responseValue;
1744
2231
  }
1745
2232
  case "attachment": {
1746
- return chunkEHMN4DL4_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
2233
+ return chunkRDZ5NKAI_cjs.hydrateAttachmentFromRidInternal(client, responseValue);
1747
2234
  }
1748
2235
  case "object": {
1749
2236
  const def = definitions.get(responseDataType.object);
@@ -1765,7 +2252,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
1765
2252
  throw new Error(`Missing definition for ${responseDataType.objectSet}`);
1766
2253
  }
1767
2254
  if (typeof responseValue === "string") {
1768
- return chunkEHMN4DL4_cjs.createObjectSet(def, client, {
2255
+ return chunkRDZ5NKAI_cjs.createObjectSet(def, client, {
1769
2256
  type: "intersect",
1770
2257
  objectSets: [{
1771
2258
  type: "base",
@@ -1776,7 +2263,7 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
1776
2263
  }]
1777
2264
  });
1778
2265
  }
1779
- return chunkEHMN4DL4_cjs.createObjectSet(def, client, responseValue);
2266
+ return chunkRDZ5NKAI_cjs.createObjectSet(def, client, responseValue);
1780
2267
  }
1781
2268
  case "struct": {
1782
2269
  for (const [key, subtype] of Object.entries(responseDataType.struct)) {
@@ -1788,10 +2275,10 @@ async function remapQueryResponse(client, responseDataType, responseValue, defin
1788
2275
  }
1789
2276
  case "map": {
1790
2277
  const map = {};
1791
- !Array.isArray(responseValue) ? process.env.NODE_ENV !== "production" ? invariant__default.default(false, "Expected array entry") : invariant__default.default(false) : void 0;
2278
+ !Array.isArray(responseValue) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected array entry") : invariant3__default.default(false) : void 0;
1792
2279
  for (const entry of responseValue) {
1793
- !(entry.key != null) ? process.env.NODE_ENV !== "production" ? invariant__default.default(false, "Expected key") : invariant__default.default(false) : void 0;
1794
- !(entry.value != null) ? process.env.NODE_ENV !== "production" ? invariant__default.default(false, "Expected value") : invariant__default.default(false) : void 0;
2280
+ !(entry.key != null) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected key") : invariant3__default.default(false) : void 0;
2281
+ !(entry.value != null) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Expected value") : invariant3__default.default(false) : void 0;
1795
2282
  const key = responseDataType.keyType.type === "object" ? getObjectSpecifier(entry.key, responseDataType.keyType.object, definitions) : entry.key;
1796
2283
  const value = await remapQueryResponse(client, responseDataType.valueType, entry.value, definitions);
1797
2284
  map[key] = value;
@@ -1845,6 +2332,11 @@ async function getRequiredDefinitions(dataType, client) {
1845
2332
  result.set(dataType.objectSet, objectDef);
1846
2333
  break;
1847
2334
  }
2335
+ case "interfaceObjectSet": {
2336
+ const interfaceDef = await client.ontologyProvider.getInterfaceDefinition(dataType.objectSet);
2337
+ result.set(dataType.objectSet, interfaceDef);
2338
+ break;
2339
+ }
1848
2340
  case "object": {
1849
2341
  const objectDef = await client.ontologyProvider.getObjectDefinition(dataType.object);
1850
2342
  result.set(dataType.object, objectDef);
@@ -1858,6 +2350,9 @@ async function getRequiredDefinitions(dataType, client) {
1858
2350
  case "set": {
1859
2351
  return getRequiredDefinitions(dataType.set, client);
1860
2352
  }
2353
+ case "array": {
2354
+ return getRequiredDefinitions(dataType.array, client);
2355
+ }
1861
2356
  case "map": {
1862
2357
  const types = [dataType.keyType, dataType.valueType];
1863
2358
  const allDefs = await Promise.all(types.map((value) => getRequiredDefinitions(value, client)));
@@ -1962,9 +2457,10 @@ function createClientInternal(objectSetFactory, transactionRid, flushEdits, base
1962
2457
  ontologyRid
1963
2458
  }, baseUrl, tokenProvider, {
1964
2459
  ...options,
1965
- logger: options?.logger ?? new chunkEHMN4DL4_cjs.MinimalLogger(),
2460
+ logger: options?.logger ?? new chunkRDZ5NKAI_cjs.MinimalLogger(),
1966
2461
  transactionId: transactionRid,
1967
- flushEdits
2462
+ flushEdits,
2463
+ branch: options?.branch
1968
2464
  }, fetchFn, objectSetFactory);
1969
2465
  return createClientFromContext(clientCtx);
1970
2466
  }
@@ -1985,7 +2481,7 @@ function createClientFromContext(clientCtx) {
1985
2481
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid.name:
1986
2482
  return {
1987
2483
  fetchOneByRid: async (objectType, rid, options) => {
1988
- return await chunkEHMN4DL4_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
2484
+ return await chunkRDZ5NKAI_cjs.fetchSingle(clientCtx, objectType, options, createWithRid([rid]));
1989
2485
  }
1990
2486
  };
1991
2487
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference.name:
@@ -1997,7 +2493,7 @@ function createClientFromContext(clientCtx) {
1997
2493
  objectType,
1998
2494
  propertyType
1999
2495
  } = args;
2000
- return await chunkEHMN4DL4_cjs.MediaReferenceProperty_exports.upload(clientCtx, await clientCtx.ontologyRid, objectType.apiName, propertyType, data, {
2496
+ return await chunkRDZ5NKAI_cjs.MediaReferenceProperty_exports.upload(clientCtx, await clientCtx.ontologyRid, objectType.apiName, propertyType, data, {
2001
2497
  mediaItemPath: fileName,
2002
2498
  preview: true
2003
2499
  });
@@ -2006,10 +2502,10 @@ function createClientFromContext(clientCtx) {
2006
2502
  case unstable.__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid.name:
2007
2503
  return {
2008
2504
  fetchPageByRid: async (objectOrInterfaceType, rids, options = {}) => {
2009
- return await chunkEHMN4DL4_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
2505
+ return await chunkRDZ5NKAI_cjs.fetchPage(clientCtx, objectOrInterfaceType, options, createWithRid(rids));
2010
2506
  },
2011
2507
  fetchPageByRidNoType: async (rids, options) => {
2012
- return await chunkEHMN4DL4_cjs.fetchStaticRidPage(clientCtx, rids, options ?? {});
2508
+ return await chunkRDZ5NKAI_cjs.fetchStaticRidPage(clientCtx, rids, options ?? {});
2013
2509
  }
2014
2510
  };
2015
2511
  }
@@ -2021,13 +2517,13 @@ function createClientFromContext(clientCtx) {
2021
2517
  const fetchMetadata = fetchMetadataInternal.bind(void 0, clientCtx);
2022
2518
  const symbolClientContext2 = "__osdkClientContext";
2023
2519
  const client = Object.defineProperties(clientFn, {
2024
- [chunkEHMN4DL4_cjs.symbolClientContext]: {
2520
+ [chunkRDZ5NKAI_cjs.symbolClientContext]: {
2025
2521
  value: clientCtx
2026
2522
  },
2027
2523
  [symbolClientContext2]: {
2028
2524
  value: clientCtx
2029
2525
  },
2030
- [chunkEHMN4DL4_cjs.additionalContext]: {
2526
+ [chunkRDZ5NKAI_cjs.additionalContext]: {
2031
2527
  value: clientCtx
2032
2528
  },
2033
2529
  fetchMetadata: {
@@ -2036,8 +2532,8 @@ function createClientFromContext(clientCtx) {
2036
2532
  });
2037
2533
  return client;
2038
2534
  }
2039
- var createClient = createClientInternal.bind(void 0, chunkEHMN4DL4_cjs.createObjectSet, void 0, void 0);
2040
- var createClientWithTransaction = (transactionRid, flushEdits, ...args) => createClientInternal(chunkEHMN4DL4_cjs.createObjectSet, transactionRid, flushEdits, ...args);
2535
+ var createClient = createClientInternal.bind(void 0, chunkRDZ5NKAI_cjs.createObjectSet, void 0, void 0);
2536
+ var createClientWithTransaction = (transactionRid, flushEdits, ...args) => createClientInternal(chunkRDZ5NKAI_cjs.createObjectSet, transactionRid, flushEdits, ...args);
2041
2537
  function createWithRid(rids) {
2042
2538
  const withRid = {
2043
2539
  type: "static",
@@ -2047,6 +2543,7 @@ function createWithRid(rids) {
2047
2543
  }
2048
2544
 
2049
2545
  exports.ActionValidationError = ActionValidationError;
2546
+ exports.ClientRef = ClientRef;
2050
2547
  exports.OBSERVABLE_USER_AGENT = OBSERVABLE_USER_AGENT;
2051
2548
  exports.ObjectDefRef = ObjectDefRef;
2052
2549
  exports.USER_AGENT = USER_AGENT;
@@ -2056,6 +2553,7 @@ exports.createClient = createClient;
2056
2553
  exports.createClientFromContext = createClientFromContext;
2057
2554
  exports.createClientWithTransaction = createClientWithTransaction;
2058
2555
  exports.createObjectSpecifierFromPrimaryKey = createObjectSpecifierFromPrimaryKey;
2556
+ exports.createOsdkObject = createOsdkObject;
2059
2557
  exports.extractPrimaryKeyFromObjectSpecifier = extractPrimaryKeyFromObjectSpecifier;
2060
- //# sourceMappingURL=chunk-BRUBBJUT.cjs.map
2061
- //# sourceMappingURL=chunk-BRUBBJUT.cjs.map
2558
+ //# sourceMappingURL=chunk-MZZAHBN6.cjs.map
2559
+ //# sourceMappingURL=chunk-MZZAHBN6.cjs.map